*{box-sizing:border-box}
body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:#f3f5f9;color:#222}
.hidden{display:none!important}
.topbar{display:flex;justify-content:space-between;align-items:center;background:#0f766e;color:#fff;padding:14px 24px}
.container{max-width:1100px;margin:24px auto;padding:0 16px}
.card{background:#fff;padding:22px;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.07);margin-bottom:20px}
.narrow{max-width:420px;margin:60px auto}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px}
h1,h2{margin-top:0}
label{display:block;margin:12px 0 6px;font-weight:600}
input,select{width:100%;padding:10px;border:1px solid #cbd2e0;border-radius:6px;font:inherit}
.btn{margin-top:16px;padding:10px 20px;background:#0f766e;color:#fff;border:0;border-radius:6px;cursor:pointer;font:inherit}
.btn.secondary{background:#6b7280}
.btn.danger{background:#dc2626}
.btn.small{margin:0;padding:5px 10px;font-size:13px}
.tabs{display:flex;gap:8px;margin-bottom:12px}
.tab{flex:1;padding:8px;border:1px solid #cbd2e0;background:#fff;border-radius:6px;cursor:pointer;font:inherit}
.tab.active{background:#0f766e;color:#fff;border-color:#0f766e}
.alert{padding:10px 14px;border-radius:6px;margin-bottom:14px}
.alert.error{background:#fee2e2;color:#991b1b}
.alert.success{background:#dcfce7;color:#166534}
.stats{display:flex;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.stat{flex:1;min-width:160px;background:#fff;padding:16px;border-radius:10px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.07)}
.stat span{display:block;font-size:26px;font-weight:700;color:#0f766e}
table{width:100%;border-collapse:collapse}
th,td{padding:9px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}
th{background:#f9fafb}
td.num,th.num{text-align:right}
.scroll{overflow-x:auto}
.bar-row{margin-bottom:12px}
.bar-label{display:flex;justify-content:space-between;font-size:14px;margin-bottom:4px}
.bar-track{background:#e5e7eb;border-radius:6px;height:12px}
.bar-fill{background:#0f766e;height:12px;border-radius:6px}
.empty{color:#6b7280;font-style:italic}
