/* ---------- Raja Rani Coaching · warm light glass theme (teal primary) ---------- */
:root {
  color-scheme: light;
  --bg: #faf5ee;
  --text: #2a2420;
  --muted: #7a6d62;
  --dim: #a99c90;
  --teal: #0f9488;
  --teal-dark: #0b766c;
  --teal-soft: rgba(15, 148, 136, .11);
  --amber: #e08a2e;
  --amber-soft: rgba(224, 138, 46, .13);
  --rose: #e2725b;
  --green: #15803d;
  --green-soft: rgba(21, 128, 61, .1);
  --red: #c2410c;
  --red-soft: rgba(194, 65, 12, .1);
  --glass: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  --border: rgba(255, 255, 255, .85);
  --line: rgba(120, 90, 60, .12);
  --line-soft: rgba(120, 90, 60, .07);
  --shadow: 0 10px 34px rgba(120, 80, 40, .09), 0 1px 2px rgba(120, 80, 40, .05);
  --r: 20px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font: 14.5px/1.55 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 700; }
code { background: var(--teal-soft); color: var(--teal-dark); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.ic { flex-shrink: 0; vertical-align: -3px; }

/* warm aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora .b1 { width: 560px; height: 560px; background: #ffd9b3; top: -200px; left: -140px; opacity: .8; }
.aurora .b2 { width: 500px; height: 500px; background: #a7e6dd; top: 25%; right: -170px; opacity: .65; }
.aurora .b3 { width: 520px; height: 520px; background: #fbc9b8; bottom: -240px; left: 28%; opacity: .55; }
.aurora .b4 { width: 320px; height: 320px; background: #fde7a8; top: 8%; left: 48%; opacity: .45; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(120, 90, 60, .07) 1px, transparent 1px); background-size: 26px 26px;
}

/* glass */
.glass {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow);
}

/* layout */
.shell { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding: 18px; min-height: 100vh; }
.sidebar {
  position: sticky; top: 18px; height: calc(100vh - 36px); padding: 22px 14px;
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-text { font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.brand-text small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 14px 12px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 600; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .7); color: var(--text); }
.nav a.active { color: #fff; background: linear-gradient(135deg, #14a396, #0b766c); box-shadow: 0 6px 16px rgba(15, 148, 136, .3); }
.sidebar-foot { margin-top: auto; font-size: .72rem; color: var(--dim); padding: 0 12px; }

.main { min-width: 0; padding: 6px 4px 50px; display: flex; flex-direction: column; gap: 20px; }
.main-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: .82rem; }
.crumb a:hover { color: var(--teal); }
.page-title { font-size: 1.85rem; font-weight: 800; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; width: min(340px, 100%); color: var(--muted); }
.search input { border: 0; background: transparent; padding: 11px 0; box-shadow: none; }
.search input:focus { outline: none; box-shadow: none; }
.glass-input { background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 14px; backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.glass-input:focus-within { border-color: var(--teal); }

/* utilities */
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mt { margin-top: 22px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.push { margin-left: auto; }
.pre { white-space: pre-wrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
.panel { padding: 20px 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.panel-head p { margin: 2px 0 0; }
.link-more { color: var(--teal); font-size: .82rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.strong-link { font-weight: 600; }
.strong-link:hover { color: var(--teal); }
.c-green { color: var(--green); } .c-teal { color: var(--teal); } .c-red { color: var(--red); } .c-gold { color: var(--amber); }

.flash { padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; }
.flash.success { border-left: 4px solid var(--teal); color: var(--teal-dark); }
.flash.error { border-left: 4px solid var(--red); color: var(--red); }

.empty { text-align: center; padding: 60px 20px; }
.empty h2 { margin: 14px 0 6px; }
.empty-icon { width: 70px; height: 70px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text); white-space: nowrap;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); transition: all .15s;
}
.btn:hover { background: #fff; border-color: rgba(15, 148, 136, .4); }
.btn-primary { background: linear-gradient(135deg, #14a396, #0b766c); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(15, 148, 136, .3); }
.btn-primary:hover { background: linear-gradient(135deg, #17b3a5, #0d8378); }
.btn-gold { background: linear-gradient(135deg, #14a396, #0b766c); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(15, 148, 136, .3); }
.btn-gold:hover { background: linear-gradient(135deg, #17b3a5, #0d8378); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: rgba(194, 65, 12, .35); }
.btn-ghost { background: transparent; }
.btn-on { color: var(--teal-dark); background: var(--teal-soft); border-color: rgba(15, 148, 136, .3); }
.btn-sm { padding: 5px 11px; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: 12px 26px; font-size: 1rem; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi { padding: 20px 22px; position: relative; overflow: hidden; }
.kpi.highlight { background: linear-gradient(145deg, #12a093, #0b6f66); border-color: transparent; color: #fff; box-shadow: 0 14px 36px rgba(15, 148, 136, .32); }
.kpi.highlight::before {
  content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(rgba(255, 222, 170, .45), transparent 70%);
}
.kpi.highlight .kpi-label, .kpi.highlight .kpi-sub { color: rgba(255, 255, 255, .82); }
.kpi.highlight .kpi-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.kpi.highlight .badge.up { background: rgba(255, 255, 255, .22); color: #fff; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; flex-shrink: 0; }
.kpi-icon.teal { background: var(--teal-soft); color: var(--teal); }
.kpi-icon.green { background: var(--green-soft); color: var(--green); }
.kpi-icon.slate { background: rgba(120, 90, 60, .08); color: #8a7462; }
.kpi-icon.gold { background: var(--amber-soft); color: var(--amber); }
.kpi-label { color: var(--muted); font-size: .8rem; font-weight: 500; }
.kpi-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; position: relative; }
.kpi-unit { font-size: 1rem; color: var(--dim); font-weight: 600; }
.kpi-sub { color: var(--muted); font-size: .78rem; margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; position: relative; }
.meter { height: 6px; border-radius: 99px; background: rgba(120, 90, 60, .1); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0f9488, #5eead4); }

.chart-box { position: relative; height: 270px; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-before { background: #ead9c6; }
.lg-after { background: linear-gradient(#2dd4bf, #0f766e); }

/* table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .55); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.inactive td { opacity: .45; }

/* chips, tags, badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 99px; font-size: .8rem;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); margin: 2px;
}
.chip b { color: var(--teal); }
a.chip:hover { border-color: var(--teal); }
.chip.dim { color: var(--dim); }
.chip.gold { border-color: rgba(224, 138, 46, .4); color: #a85f14; background: var(--amber-soft); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; max-width: 100%; }
.tag-green { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid rgba(15, 148, 136, .25); }
.tag-dim { background: rgba(120, 90, 60, .06); color: var(--muted); border: 1px solid var(--line); }
.tag-teal { background: var(--amber-soft); color: #a85f14; border: 1px solid rgba(224, 138, 46, .3); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge.up { background: var(--green-soft); color: var(--green); }
.badge.down { background: var(--red-soft); color: var(--red); }
.badge.flat { background: rgba(120, 90, 60, .08); color: var(--muted); }

/* avatars */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; background: #f3e9dd; box-shadow: 0 2px 8px rgba(120, 80, 40, .12); }
.avatar.initials { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2bb5a6, #e5a15a); }
.avatar.sm { width: 40px; height: 40px; font-size: .82rem; }
.avatar.md { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar.xl { width: 140px; height: 140px; font-size: 2.6rem; border-width: 4px; box-shadow: 0 12px 34px rgba(15, 148, 136, .25); }

.row-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .15s; }
.row-link:hover { background: rgba(255, 255, 255, .7); }
.rank { width: 22px; text-align: center; font-weight: 800; color: var(--dim); }
.row-link:nth-child(2) .rank { color: var(--amber); }

/* filters */
.filters { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; border-radius: 18px; }
.f-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fld select { width: 100%; }
.earn-box { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.earn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.earn-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .chip { margin: 0; padding: 6px 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .8); }
.presets .chip:hover { color: var(--teal-dark); border-color: rgba(15, 148, 136, .4); }
.presets .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 110px; min-width: 0; padding: 8px 11px; }
.range .muted { font-size: .8rem; }
.seg-sm a { padding: 5px 12px; font-size: .8rem; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: rgba(120, 90, 60, .07); }
.seg a, .seg button { padding: 6px 14px; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; }
.seg a.on, .seg button.on { background: #fff; color: var(--teal-dark); box-shadow: 0 2px 6px rgba(120, 80, 40, .1); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.summary { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.summary strong { color: var(--text); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); margin: 0 8px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip.x { background: var(--teal-soft); border-color: rgba(15, 148, 136, .25); color: var(--teal-dark); font-weight: 600; }
.chip.x:hover { background: rgba(15, 148, 136, .18); }

/* india map */
.g-map { grid-template-columns: 3fr 2fr; }
.map-wrap { position: relative; display: flex; justify-content: center; }
.india-map { width: 100%; max-width: 520px; max-height: 560px; height: auto; display: block; }
.india-map path { stroke: #fffaf3; stroke-width: .8; stroke-linejoin: round; transition: filter .15s, opacity .15s; }
.india-map path.has-data { cursor: pointer; }
.india-map path:hover { filter: brightness(.92) drop-shadow(0 2px 4px rgba(80, 50, 20, .25)); stroke: #2a2420; stroke-width: 1; }
.map-tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px; padding: 10px 12px; border-radius: 12px;
  background: rgba(42, 36, 32, .94); color: #fff; font-size: .8rem; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.map-tip[hidden] { display: none; }
.map-tip strong { font-size: .88rem; margin-bottom: 2px; }
.map-tip .muted { color: #c9bfb4; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.lg-title { font-weight: 700; color: var(--text); }
.lg-item, .lg-scale { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.lg-scale i { border-radius: 0; }
.lg-scale i:nth-of-type(1) { border-radius: 3px 0 0 3px; }
.lg-scale i:last-of-type { border-radius: 0 3px 3px 0; }
.lg-scale em { font-style: normal; margin: 0 4px; }
.map-credit { text-align: center; font-size: .68rem; color: var(--dim); margin: 8px 0 0; }
.map-credit a { text-decoration: underline; }
.state-rank { list-style: none; margin: 0; padding: 0; counter-reset: sr; }
.state-rank li a {
  display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "rank name num" ". bar bar" ". meta meta";
  column-gap: 8px; row-gap: 4px; padding: 9px 8px; border-radius: 12px; transition: background .15s;
}
.state-rank li a::before { counter-increment: sr; content: counter(sr); grid-area: rank; font-weight: 800; color: var(--dim); font-size: .85rem; }
.state-rank li:first-child a::before { color: var(--amber); }
.state-rank li a:hover { background: rgba(255, 255, 255, .7); }
.sr-name { grid-area: name; font-weight: 600; }
.sr-name.dim { color: var(--dim); font-weight: 500; }
.sr-num { grid-area: num; font-weight: 800; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.sr-bar { grid-area: bar; height: 6px; border-radius: 99px; background: rgba(120, 90, 60, .08); overflow: hidden; }
.sr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0f9488, #5eead4); }
.sr-meta { grid-area: meta; font-size: .74rem; color: var(--muted); }

/* student cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.scard { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.scard:hover { transform: translateY(-3px); border-color: rgba(15, 148, 136, .35); box-shadow: 0 18px 44px rgba(120, 80, 40, .14); }
.scard-head { display: flex; gap: 14px; align-items: center; }
.scard-head h3 { font-size: 1.05rem; }
.course { color: #a85f14; font-size: .8rem; margin-top: 3px; font-weight: 600; }
.scard-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .8rem; }
.scard-meta span { display: flex; gap: 6px; align-items: center; }
.scard-income {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 14px;
  background: rgba(250, 240, 228, .75); border: 1px solid var(--line-soft); font-variant-numeric: tabular-nums;
}
.scard-income .lbl { display: block; font-size: .66rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.scard-income strong { color: var(--teal-dark); }
.scard-income .arr { color: var(--dim); }

/* profile */
.profile { display: flex; gap: 26px; align-items: center; padding: 26px; flex-wrap: wrap; position: relative; overflow: hidden; }
.profile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 340px;
  background: radial-gradient(circle at 30% 50%, rgba(45, 212, 191, .22), rgba(253, 186, 116, .15) 45%, transparent 72%); pointer-events: none;
}
.profile-photo { position: relative; }
.profile h2 { font-size: 1.6rem; font-weight: 800; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .88rem; }
.contact a, .contact span { display: inline-flex; gap: 7px; align-items: center; }
.contact a:hover { color: var(--teal); }
.profile-actions { display: flex; gap: 10px; align-self: flex-start; position: relative; }

.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: 12px; align-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.bar-row strong { text-align: right; font-size: .95rem; }
.bar { height: 14px; border-radius: 99px; background: rgba(120, 90, 60, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar i.before { background: #e3cfb9; }
.bar i.after { background: linear-gradient(90deg, #0f9488, #2dd4bf); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dim); margin-top: 3px; flex-shrink: 0; background: #fff; }
.timeline li.done .dot { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.timeline li.done::before { background: rgba(15, 148, 136, .35); }

.qa { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.qa:last-child { border-bottom: 0; }
.qa .q { font-size: .8rem; font-weight: 700; color: var(--teal-dark); }
.qa .a { white-space: pre-wrap; margin-top: 2px; }

/* forms */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); padding: 10px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; color: var(--teal-dark); background: var(--teal-soft); border: 0;
  border-radius: 9px; padding: 5px 12px; margin-right: 10px; cursor: pointer;
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form > .panel h3 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; margin: 6px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--teal); }
.photo-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.inline-form { display: flex; gap: 10px; padding: 14px; }
.rename { display: flex; gap: 6px; align-items: center; }
.rename input { background: transparent; border-color: transparent; padding: 6px 10px; }
.rename input:hover { border-color: var(--line); background: rgba(255, 255, 255, .7); }

/* upload */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 34px 20px; margin-bottom: 14px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed rgba(15, 148, 136, .45); background: rgba(15, 148, 136, .05); transition: all .2s;
}
.drop:hover, .drop.over { background: rgba(15, 148, 136, .1); border-color: var(--teal); }
.drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.drop.has-file .drop-name { color: var(--green); font-weight: 600; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--teal); margin-bottom: 4px; box-shadow: var(--shadow); }
.drop-title { font-weight: 700; }
.drop-sm { padding: 20px; border-color: rgba(224, 138, 46, .45); background: rgba(224, 138, 46, .05); }
.drop-sm:hover, .drop-sm.over { background: rgba(224, 138, 46, .1); border-color: var(--amber); }
.drop-sm .drop-icon { width: 42px; height: 42px; border-radius: 13px; color: var(--amber); }
.action-card { display: flex; align-items: center; gap: 14px; transition: transform .2s, border-color .2s; }
.action-card:hover { border-color: rgba(15, 148, 136, .4); transform: translateX(3px); }
.action-card .kpi-icon { margin: 0; }
.action-card p { margin: 2px 0 0; }
.col-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .82rem; }
.col-list li { display: flex; gap: 8px; align-items: baseline; }
.col-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; transform: translateY(-2px); }
.col-list em { font-style: normal; font-size: .68rem; color: var(--amber); font-weight: 700; }
.mini-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.mini-stats div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .65); border: 1px solid var(--line-soft); }
.mini-stats span { display: block; font-size: .72rem; color: var(--muted); }
.mini-stats b { font-size: 1.5rem; }
details summary { cursor: pointer; color: var(--amber); font-weight: 600; }

/* responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .g-3-2, .g-map { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
  .sidebar { position: static; height: auto; padding: 12px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label, .sidebar-foot, .brand-text small { display: none; }
  .nav a span { display: none; }
  .nav a { padding: 10px; }
  .g-2 { grid-template-columns: 1fr; }
  .profile { flex-direction: column; text-align: center; }
  .profile-tags, .contact, .profile-actions { justify-content: center; align-self: center; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .page-title { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-row strong { text-align: left; }
  .col-list { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .range { width: 100%; }
  .range input { flex: 1; width: auto; }
}
