:root{--dark: #1a1a1a;--bg: #f4f4f2;--border: #e2e2e2}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--dark)}.shell{display:flex;min-height:100vh}.sidebar{width:220px;background:#fff;border-right:1px solid var(--border);padding:24px 16px;display:flex;flex-direction:column;gap:4px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-title{font-weight:800;font-size:18px;margin-bottom:20px}.sidebar a{padding:10px 12px;border-radius:8px;color:#444;text-decoration:none;font-weight:600;font-size:14px;display:flex;align-items:center;gap:10px}.sidebar a svg{width:18px;height:18px;flex-shrink:0}.sidebar a.active{background:var(--dark);color:#fff}.logout-btn{margin-top:auto;background:none;color:var(--dark);border:1px solid var(--border);border-radius:8px;padding:10px;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}.logout-btn svg{width:18px;height:18px;flex-shrink:0}.content{flex:1;padding:32px;min-width:0}@media (max-width: 780px){.shell{flex-direction:column;min-height:auto}.content{padding:20px 16px 90px}}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}h1{font-size:24px;font-weight:800;margin:0 0 20px}h2{font-size:16px;margin-top:0}.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;margin-bottom:20px;overflow-x:auto}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.form-grid input,.form-grid select{padding:10px;border:1px solid var(--border);border-radius:8px}.form-grid button{grid-column:span 2}input,select,textarea{font-family:inherit;font-size:14px}button{background:var(--dark);color:#fff;border:none;border-radius:8px;padding:10px 16px;font-weight:600;cursor:pointer;font-size:13px}button.danger{background:#e53935}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--border);font-size:14px}.table th{font-size:11px;text-transform:uppercase;color:#888}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button{background:#fff;color:var(--dark);border:1px solid var(--border)}.muted{color:#888;font-size:12px}.error{color:#e53935}.success{color:#2e7d32}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;margin-right:4px}.badge-red{background:#fdecea;color:#e53935}.badge-grey{background:#f0f0ee;color:#888}.badge-gold{background:#1a1a1a;color:#f0c96b}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh}.login-card{background:#fff;padding:32px;border-radius:16px;width:320px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 24px #00000014}.login-card input{padding:10px;border:1px solid var(--border);border-radius:8px}.equip-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.equip-row select,.equip-row input{padding:8px;border:1px solid var(--border);border-radius:8px}.equip-row .muted{flex:1;font-style:italic}.photo-grid{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.photo-thumb{position:relative;width:110px}.photo-thumb img{width:110px;height:110px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.photo-thumb-actions{display:flex;gap:4px;margin-top:4px}.photo-thumb-actions button{flex:1;padding:4px;font-size:11px}.upload-label{display:inline-block;background:#fff;border:1px dashed var(--border);border-radius:8px;padding:10px 16px;cursor:pointer;font-size:13px;font-weight:600}.plan-list{display:flex;flex-direction:column;gap:8px}.plan-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:var(--bg);border-radius:8px;font-size:13px}.stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}.stat-label{font-size:11px;text-transform:uppercase;color:#888;font-weight:700}.stat-value{font-size:24px;font-weight:800;margin-top:4px}.hbar-row{display:grid;grid-template-columns:130px 1fr 30px;align-items:center;gap:10px;margin-bottom:10px}@media (max-width: 480px){.hbar-row{grid-template-columns:90px 1fr 26px;gap:6px}}.hbar-track{background:var(--bg);border-radius:6px;height:10px;overflow:hidden}.hbar-fill{height:100%;background:var(--dark);border-radius:6px}.hbar-count{text-align:right;font-weight:700;font-size:12px}.lead-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border)}.lead-row:last-child{border-bottom:none}@media (max-width: 780px){.sidebar{position:fixed;bottom:0;left:0;right:0;top:auto;width:100%;flex-direction:row;align-items:center;justify-content:space-around;overflow-x:auto;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));border-right:none;border-top:1px solid var(--border);border-bottom:none;z-index:30;gap:4px}.sidebar-title{display:none}.sidebar a{flex-direction:column;gap:3px;white-space:nowrap;padding:6px 8px;font-size:10px;flex:1;text-align:center}.sidebar a svg{width:20px;height:20px}.logout-btn{flex-direction:column;gap:3px;margin-top:0;margin-left:0;white-space:nowrap;flex-shrink:0;padding:6px 8px;font-size:10px}.logout-btn svg{width:20px;height:20px}}@media (max-width: 480px){.page-header{flex-direction:column;align-items:flex-start;gap:12px}.form-grid{grid-template-columns:1fr}.form-grid button{grid-column:span 1}.table{font-size:12px}.table th,.table td{padding:8px 6px}.actions{flex-direction:column}.actions button,.actions a{width:100%}}
