/* =====================================================================
   Soft Navy — components (RTL, light theme)
   Part of the Soft Navy design kit (from the IAU class grouping site).
   Load order: tokens.css → components.css → motion.css
   ===================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Peyda", Tahoma, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .7rem; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.i { flex-shrink: 0; vertical-align: middle; }
.tone { color: var(--tone); }
.tone-blue { color: var(--blue); }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- shell */
.shell { max-width: 1180px; margin: 0 auto; padding: 22px 20px 130px; }

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .who .greet { font-size: 13px; color: var(--muted); line-height: 1.3; }
.topbar .who .name { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.topbar .brandline { margin-inline-start: auto; text-align: left; line-height: 1.35; }
.topbar .brandline b { display: block; font-size: 14px; }
.topbar .brandline span { font-size: 12px; color: var(--muted); }
.topbar .acts { display: flex; gap: 10px; }
@media (max-width: 720px) { .topbar .brandline { display: none; } .topbar .acts { margin-inline-start: auto; } }

.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue-soft-2)); color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ring), 0 4px 14px rgba(14, 26, 48, .08);
}
.avatar.sm { width: 38px; height: 38px; font-size: 14px; box-shadow: inset 0 0 0 2px var(--ring); }
.avatar.navy { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: none; }
.avatar.has-photo { padding: 2px; background: var(--ring); overflow: hidden; }
.avatar.has-photo.navy { background: var(--navy); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.xl { width: 96px; height: 96px; font-size: 38px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.avatar.xl.has-photo { padding: 3px; }
.topbar .avatar.has-photo { padding: 3px; }

/* round icon buttons */
.circle {
  width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--surface); color: var(--text); border: 0; cursor: pointer; position: relative;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.circle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: var(--text); }
.circle.sm { width: 38px; height: 38px; }
.circle.glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.circle.glass:hover { background: rgba(255, 255, 255, .18); }
.circle.navy { background: var(--navy); color: #fff; }
.circle .dot {
  position: absolute; top: -2px; left: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 3px var(--bg);
}

/* floating dock (bottom navigation) */
/* Solid page-coloured band from under the dock to the very bottom edge. Without it, content scrolls
   visibly between the dock and Safari's floating address bar, and Safari tints its toolbar from
   that content, so the bar and the page don't match. */
.dock-fade {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; pointer-events: none;
  height: calc(52px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 60%);
}
.dock {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 7px;
  background: var(--glass); backdrop-filter: blur(14px);
  border-radius: 999px; box-shadow: 0 10px 40px rgba(14, 26, 48, .14), 0 0 0 1px rgba(14, 26, 48, .04);
  max-width: calc(100vw - 24px);
}
.dock :is(a, button) {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; position: relative;
  transition: background .15s ease, color .15s ease;
}
.dock :is(a, button):hover { background: var(--surface-2); color: var(--text); }
.dock :is(a, button).on { background: var(--navy); color: #fff; padding: 0 20px; }
.dock :is(a, button) .dot {
  position: absolute; top: 6px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 0 2px var(--surface);
}
.dock :is(a, button).on .dot { box-shadow: 0 0 0 2px var(--navy); }
@media (max-width: 820px) {
  /* Equal-width cells with the same gap between items and at both edges; label always under the icon. */
  .dock { bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); gap: 6px; padding: 6px; border-radius: 28px; }
  .dock :is(a, button) {
    flex: 1 1 0; min-width: 0; height: 58px; padding: 0 2px; border-radius: 22px;
    flex-direction: column; justify-content: center; gap: 3px; font-size: 11.5px; line-height: 1.2;
  }
  .dock :is(a, button).on { padding: 0 2px; }
  .dock :is(a, button) .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .dock :is(a, button) .dot { top: 7px; left: calc(50% - 16px); }
  .dock-fade { height: calc(48px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- navy hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, var(--hero-1) 0%, var(--hero-2) 28%, var(--hero-3) 70%);
  color: #fff; border-radius: var(--r-xl); padding: 26px 28px; margin-bottom: 18px;
}
.hero::after { /* soft glow, like the light on the reference cards */
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -120px; bottom: -220px;
  background: radial-gradient(circle, rgba(168, 193, 236, .28), transparent 65%);
}
.hero h1 { color: #fff; font-size: 1.85rem; margin: 0; line-height: 1.4; }
.hero h1 .tone { display: block; font-weight: 600; }
.hero p { color: rgba(255, 255, 255, .72); margin: 8px 0 0; }
.hero .hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.hero .hero-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head h1 { margin: 0; }
.photo-pick { position: relative; cursor: pointer; flex-shrink: 0; border-radius: 50%; }
.photo-pick .cam {
  position: absolute; bottom: 0; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.photo-pick:hover .cam { transform: scale(1.08); }
@media (max-width: 520px) { .avatar.xl { width: 78px; height: 78px; font-size: 30px; } .profile-head { gap: 14px; } }
.hero .hero-art { position: absolute; left: 90px; bottom: -70px; color: rgba(168, 193, 236, .12); z-index: -1; }
@media (max-width: 720px) { .hero { padding: 22px 20px; border-radius: 26px; } .hero h1 { font-size: 1.5rem; } .hero .hero-art { display: none; } }

/* search pill + round filter button */
.search { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 240px; }
.search-pill {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px;
  padding: 0 18px; height: 50px; color: var(--muted);
}
.search-pill input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); flex: 1; min-width: 0; height: 100%; }
.search-pill input::placeholder { color: var(--muted); }

/* segmented pill switch */
.seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a { padding: 7px 16px; border-radius: 999px; color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 500; }
.seg a:hover { color: #fff; }
.seg a.on { background: #fff; color: var(--navy); }
.seg.light { background: var(--surface); box-shadow: var(--shadow); }
.seg.light a { color: var(--text-2); }
.seg.light a.on { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head .more { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

.card-blue { background: linear-gradient(180deg, var(--blue-soft) 0%, var(--blue-soft-2) 100%); box-shadow: none; }
.card-navy {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(130% 150% at 100% 0%, var(--hero-1) 0%, var(--hero-2) 30%, var(--hero-3) 75%);
}
.card-navy::after {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -90px; top: -150px;
  background: radial-gradient(circle, rgba(168, 193, 236, .22), transparent 65%);
}
.card-navy .muted, .card-navy small { color: rgba(255, 255, 255, .66); }
.card-navy h2, .card-navy h3 { color: #fff; }
.card-navy .label { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.card-navy .big { font-size: 3rem; font-weight: 700; line-height: 1.15; margin: 8px 0 2px; letter-spacing: -.02em; }
.card-navy .art { position: absolute; left: 18px; bottom: 10px; color: rgba(168, 193, 236, .2); z-index: -1; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* metrics row with thin dividers (the "Health Overview" card) */
.metrics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.metric { padding: 2px 16px; border-inline-start: 1px solid var(--divider); min-width: 0; }
.metric:first-child { border-inline-start: 0; padding-inline-start: 0; }
.metric .k { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.metric .v { font-size: 1.75rem; font-weight: 700; line-height: 1.3; margin: 4px 0; }
.metric .u { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.metric .u .i { color: var(--blue); }
@media (max-width: 560px) { .metric { padding: 2px 10px; } .metric .v { font-size: 1.4rem; } }

/* quick access circles */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.quick a { color: var(--text); font-size: 13.5px; font-weight: 500; line-height: 1.4; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.quick .q {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); transition: background .15s ease, transform .15s ease;
}
.quick a:hover .q { background: var(--blue-soft); transform: translateY(-2px); }
.quick a.on .q { background: var(--blue-soft); color: var(--blue); }

/* call-to-action bar ("Book Consultation") */
.cta {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 60%, #2d4677 100%);
  box-shadow: 0 14px 30px rgba(10, 26, 51, .22); margin-bottom: 18px; border: 0; width: 100%; font: inherit; text-align: right; cursor: pointer;
}
.cta:hover { color: #fff; filter: brightness(1.06); }
.cta .t { font-weight: 600; font-size: 1.02rem; display: block; }
.cta .s { color: rgba(255, 255, 255, .7); font-size: 13px; display: block; }
.cta .go { margin-inline-start: auto; }
.go {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(10, 26, 51, .18); transition: transform .15s ease;
}
a:hover .go, button:hover .go { transform: translateX(-3px); }
.go.sm { width: 38px; height: 38px; }

/* soft info strip ("Talk to a Specialist") */
.strip {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--blue-soft-2), var(--blue-soft)); margin-bottom: 18px; color: var(--text);
}
.strip .t { font-weight: 600; display: block; }
.strip .s { font-size: 13px; color: var(--text-2); display: block; }
.strip .go { margin-inline-start: auto; }
.strip.warn { background: linear-gradient(90deg, color-mix(in srgb, var(--warn-soft) 55%, var(--surface)), var(--warn-soft)); }
.strip.ok { background: linear-gradient(90deg, color-mix(in srgb, var(--ok-soft) 55%, var(--surface)), var(--ok-soft)); }
.strip.bad { background: linear-gradient(90deg, color-mix(in srgb, var(--bad-soft) 55%, var(--surface)), var(--bad-soft)); }
.strip .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ic-glass); display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }

/* stacked avatars */
.stack { display: flex; }
.stack .avatar { width: 36px; height: 36px; font-size: 13px; margin-inline-start: -10px; box-shadow: 0 0 0 3px var(--ring); }
.stack .avatar:first-child { margin-inline-start: 0; }

/* "image" tiles — gradient cards with a big faded icon (the treatment tiles) */
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 20px; min-height: 190px;
  display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(130% 130% at 100% 0%, var(--hero-1), var(--hero-3) 70%);
  box-shadow: var(--shadow);
}
.tile.alt { background: radial-gradient(130% 130% at 100% 0%, #b9c8de, #6f84a6 75%); }
.tile.alt2 { background: radial-gradient(130% 130% at 100% 0%, #31507f, #1b2f55 75%); }
.tile .art { position: absolute; left: -10px; top: -14px; color: rgba(255, 255, 255, .12); z-index: -1; }
.tile .tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile .tile-body { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; gap: 12px; }
.tile .tile-body .txt { flex: 1; min-width: 0; }
.tile h3 { color: #fff; font-size: 1.12rem; margin: 0; }
.tile .sub { color: rgba(255, 255, 255, .75); font-size: 13px; }
.tile .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tile .chip { background: rgba(255, 255, 255, .14); color: #fff; border: 0; }
.tile .chip.lead { background: #fff; color: var(--navy); }
.tile .meter { height: 5px; background: rgba(255, 255, 255, .18); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.tile .meter i { display: block; height: 100%; background: var(--tone); border-radius: 99px; }
.tile.mine { box-shadow: 0 0 0 3px var(--tone), var(--shadow); }

/* ---------------------------------------------------------------- lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows li:last-child { border-bottom: 0; padding-bottom: 2px; }
.rows li:first-child { padding-top: 2px; }
.rows .main { flex: 1; min-width: 150px; line-height: 1.5; }
.rows .main b { font-weight: 600; }
.rows .main small { color: var(--muted); display: block; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 11px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface-2); color: var(--text-2); font-weight: 500; white-space: nowrap;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap; line-height: 1.6;
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.info { background: var(--blue-soft-2); color: var(--blue); }
.tag.navy { background: var(--navy); color: #fff; }
.tag.glass { background: rgba(255, 255, 255, .14); color: #fff; }

.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { padding: 13px 10px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty .ei {
  width: 66px; height: 66px; border-radius: 50%; background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center; margin: 0 auto 12px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--text); transition: filter .15s ease, background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--hover); color: var(--text); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-soft { background: var(--blue-soft-2); color: var(--blue); }
.btn-soft:hover { background: var(--blue-soft); color: var(--blue); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: var(--ok); filter: brightness(1.08); color: #fff; }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); color: var(--bad); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #fff; filter: brightness(.97); color: var(--navy); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; font-weight: 600; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 34px; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 7px; color: var(--text-2); }
.field .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field .error { font-size: 12.5px; color: var(--bad); margin-top: 5px; }
.field.check-field label { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--text); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid transparent; background: var(--surface-2); color: var(--text);
  border-radius: var(--r-sm); padding: 0 16px; height: 50px; font: inherit; font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
textarea.input { height: auto; padding: 13px 16px; line-height: 1.8; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b93a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 38px; }
.input:focus { outline: 0; border-color: var(--navy-3); background: var(--surface); }
input[type=file].input { padding: 11px 14px; height: auto; }
input[type=file].input::file-selector-button {
  font: inherit; font-size: 13px; border: 0; border-radius: 99px; padding: 6px 14px; margin-inline-end: 10px;
  background: var(--navy); color: #fff; cursor: pointer;
}
.check { width: 20px; height: 20px; accent-color: var(--navy-3); }
.form-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.errorlist { margin: 0 0 14px; padding: 12px 16px; list-style: none; background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- flash messages */
.flash { display: grid; gap: 8px; margin-bottom: 18px; }
.flash div { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-md); background: var(--blue-soft-2); color: var(--ink); font-weight: 500; }
.flash .success { background: var(--ok-soft); color: var(--ok); }
.flash .error { background: var(--bad-soft); color: var(--bad); }
.flash .warning { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate; margin: 16px; border-radius: 34px; padding: 44px;
  background: radial-gradient(120% 120% at 100% 0%, var(--hero-1) 0%, var(--hero-2) 30%, var(--hero-3) 72%);
  color: #fff; display: flex; flex-direction: column;
}
.auth-side::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(168, 193, 236, .3), transparent 65%); }
.auth-side .art { position: absolute; left: 40px; top: 46%; color: rgba(168, 193, 236, .1); z-index: -1; }
.auth-side h1 { font-size: 2.5rem; color: #fff; line-height: 1.35; margin: auto 0 12px; }
.auth-side h1 .tone { display: block; font-weight: 600; }
.auth-side p { color: rgba(255, 255, 255, .7); max-width: 420px; }
.auth-side .features { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.auth-side .features div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .8); text-align: center; width: 82px; }
.auth-side .features .fi { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .input { background: var(--surface); box-shadow: 0 1px 2px rgba(14, 26, 48, .05); }
.auth-card .input:focus { border-color: var(--navy-3); }
.auth-card h2 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.brandmark {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); margin-bottom: 18px;
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { margin: 12px 12px 0; padding: 28px 24px 30px; border-radius: 28px; }
  .auth-side h1 { font-size: 1.75rem; margin-top: 8px; }
  .auth-side .features, .auth-side .art { display: none; }
  .auth-main { padding: 24px 16px 40px; align-items: start; }
}

/* ---------------------------------------------------------------- workspace */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 22px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .08);
}
.tabs a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.tabs a.on { background: #fff; color: var(--navy); }

.progress { height: 8px; border-radius: 99px; background: var(--divider); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-3), var(--navy)); }

.board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.column { background: var(--column); border-radius: var(--r-lg); padding: 14px; min-height: 140px; }
.column-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; font-weight: 600; }
.column-head .count { min-width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; }
.column.doing { background: linear-gradient(180deg, var(--blue-soft), var(--blue-soft-2)); }
.column.done { background: var(--ok-soft); }
.task { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(14, 26, 48, .05); }
.task:last-child { margin-bottom: 0; }
.task-title { font-weight: 600; line-height: 1.5; }
.column.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task p { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; white-space: pre-line; }
.task .actions { gap: 6px; }
.task select.input { height: 34px; font-size: 13px; width: auto; padding: 0 12px 0 32px; border-radius: 99px; background-position: left 12px center; }

.chat { display: flex; flex-direction: column; height: calc(100vh - 470px); min-height: 380px; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--chat-a), var(--chat-b)); }
.msg { max-width: 76%; display: flex; flex-direction: row-reverse; gap: 10px; align-items: flex-end; align-self: flex-end; }
.msg .bubble { background: var(--surface); padding: 9px 15px; border-radius: 20px 20px 20px 6px; box-shadow: 0 1px 2px rgba(14, 26, 48, .06); }
.msg.mine { align-self: flex-start; flex-direction: row; }
.msg.mine .bubble { background: var(--navy); color: #fff; border-radius: 20px 20px 6px 20px; }
.msg .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.msg.mine .meta { color: rgba(255, 255, 255, .6); }
.msg .body { white-space: pre-wrap; word-wrap: break-word; line-height: 1.75; }
.msg.mine .body a { color: var(--tone); }
.chat-form { display: flex; gap: 10px; padding: 14px; background: var(--surface); align-items: center; }
.chat-form textarea { flex: 1; resize: none; height: 50px; border-radius: 999px; padding: 12px 20px; overflow: hidden; }
@media (max-width: 820px) { .chat { height: calc(100vh - 400px); } }

.file-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-soft-2); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; padding-bottom: 16px; }
.steps li::before {
  content: counter(s, persian); position: absolute; right: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; right: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.steps li.done::before { content: "✓"; background: var(--navy); color: #fff; }

.prose { white-space: pre-line; color: var(--text-2); line-height: 1.95; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 22px 0 0; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 4px 14px; }
.section-title h2 { margin: 0; }

/* ---------------------------------------------------------------- project additions (portal.hamiddev.com)
   The site runs under a strict CSP (no inline style attributes), so anything that used to be
   an inline style lives here as a class, and widths are set from data-meter by app.js. */
.topbar .who .name { color: var(--text); }
.topbar .brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.topbar .brand .brandmark { margin: 0; width: 46px; height: 46px; border-radius: 15px; background: var(--navy); }
.topbar .brand b { display: block; font-size: 1.05rem; line-height: 1.35; }
.topbar .brand span { font-size: 12px; color: var(--muted); }
.acts form { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field .req { color: var(--bad); }
.password { position: relative; }
.password .input { padding-left: 50px; }
.password .eye {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.password .eye:hover { color: var(--ink); background: var(--surface-2); }
.auth-card .links { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 16px; font-size: 13.5px; }
.auth-card .links .field { margin: 0; }
.auth-card .foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.auth-card .steps { display: flex; gap: 22px; margin-bottom: 18px; }
.auth-card .steps li { padding-bottom: 0; padding-inline-start: 40px; line-height: 32px; color: var(--muted); font-size: 13.5px; }
.auth-card .steps li::after { display: none; }
.auth-card .steps li.on { color: var(--text); font-weight: 600; }
.auth-card .steps li.on::before { background: var(--blue-soft); color: var(--blue); }
.resend { text-align: center; margin-top: 10px; }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--blue); font: inherit; font-size: 13.5px; cursor: pointer; }
.btn-link[disabled] { color: var(--muted); cursor: default; }
.card-blue .metric .v small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--verified); color: #fff; vertical-align: middle; }
.file-ic.ext { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.rows a.main { color: var(--text); }
.rows a.main:hover b { color: var(--blue); }
.error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--tone); margin: 0 0 10px; }
.center { text-align: center; }
.narrow { max-width: 560px; margin-inline: auto; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-pill { box-shadow: var(--shadow); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; direction: ltr; }
.codes li { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 12px; text-align: center; font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .08em; }
.qr { background: #fff; border-radius: var(--r-md); padding: 12px; display: inline-block; box-shadow: var(--shadow); }
.qr svg { display: block; width: 200px; height: 200px; }
.secret { font-family: ui-monospace, Consolas, monospace; direction: ltr; display: inline-block; word-break: break-all; background: var(--surface-2); padding: 4px 10px; border-radius: 10px; font-size: 13px; }
.rows li.empty { display: block; border-bottom: 0; padding: 22px 10px; }
/* Four or five metrics don't fit side by side on a phone: rows of two (a fifth spans the row). */
@media (max-width: 560px) {
  .metrics.four, .metrics.five { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .metrics.four .metric:nth-child(odd), .metrics.five .metric:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .metrics.five .metric:last-child { grid-column: 1 / -1; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .metrics.five .metric .u { white-space: normal; }
}

/* ---------------------------------------------------------------- chat page (project) */
.chat.full { height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 420px; margin-bottom: 12px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .who { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; flex: 1; }
.chat-head .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .presence { font-size: 12px; color: var(--muted); }
.chat-head .presence.on { color: var(--ok); }
.chat-status { cursor: help; }
.chat-status.poll { color: var(--warn); }
.chat-status.poll i { background: var(--warn); animation: none; }
.chat-status.wait i, .chat-status.off i { background: var(--muted); animation: none; }
.chat-log .more-btn { align-self: center; flex-shrink: 0; }
.chat-log > .empty { margin: auto; }
.msg .bubble { position: relative; min-width: 0; max-width: 100%; }
.msg .meta { margin: 4px 0 0; display: flex; align-items: center; gap: 2px; }
.msg .ticks { margin-inline-start: 6px; letter-spacing: -3px; font-weight: 700; }
.msg .ticks.read { color: var(--tone); }
.msg.pending { opacity: .7; }
.msg.failed .bubble { box-shadow: 0 0 0 2px var(--bad); }
.msg.deleted .body { opacity: .65; font-size: 13.5px; }
.msg.system { align-self: center; max-width: 92%; }
.msg.system .bubble { background: var(--blue-soft-2); color: var(--ink); border-radius: 14px; box-shadow: none; text-align: center; font-size: 13.5px; }
.msg.system .meta { justify-content: center; }
.msg .quote {
  display: block; width: 100%; max-width: 280px; margin-bottom: 6px; padding: 4px 10px; border: 0; border-inline-start: 3px solid var(--blue);
  border-radius: 10px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; text-align: right;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg.mine .quote { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); border-color: var(--tone); }
.msg .body img { display: block; max-width: min(260px, 62vw); max-height: 320px; border-radius: 14px; margin: 2px 0; }
.msg .body audio { display: block; width: 240px; max-width: 62vw; height: 40px; }
.msg .body .dur { font-size: 12px; opacity: .7; }
.msg .body.sticker { font-size: 1.2rem; font-weight: 700; padding: 4px 2px; }
/* Actions float over the bubble's lower edge, so showing them never shifts the conversation. */
.msg-actions {
  position: absolute; z-index: 3; top: calc(100% - 12px); inset-inline-end: 12px;
  display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface); white-space: nowrap;
  box-shadow: 0 6px 20px rgba(14, 26, 48, .14), 0 0 0 1px rgba(14, 26, 48, .05);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px) scale(.94); transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.msg.mine .msg-actions { inset-inline-end: auto; inset-inline-start: 12px; }
.msg-actions button {
  border: 0; border-radius: 99px; padding: 3px 11px; font: inherit; font-size: 12px; cursor: pointer;
  background: transparent; color: var(--text-2); transition: background .15s ease, color .15s ease;
}
.msg-actions button:hover { background: var(--surface-2); color: var(--ink); }
.msg-actions button[data-act="delete"]:hover { background: var(--bad-soft); color: var(--bad); }
.msg.open .msg-actions, .msg:focus-within .msg-actions {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .2s ease, transform .22s cubic-bezier(.2, .9, .3, 1.15), visibility 0s;
}
/* A short hover delay: sweeping the mouse across the conversation doesn't flash every toolbar. */
@media (hover: hover) {
  .msg:hover .msg-actions {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity .2s ease .12s, transform .22s cubic-bezier(.2, .9, .3, 1.15) .12s, visibility 0s .12s;
  }
}
.chat-log > .msg:last-child { margin-bottom: 14px; }  /* room for the last message's toolbar */
@media (prefers-reduced-motion: reduce) { .msg-actions { transition: none !important; transform: none; } }
.msg.flash-hl .bubble { box-shadow: 0 0 0 3px var(--tone); }
.chat-typing, .chat-alert { font-size: 12.5px; padding: 5px 22px; color: var(--muted); background: var(--surface); }
.chat-alert { color: var(--bad); background: var(--bad-soft); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; background: var(--surface-2); border-top: 1px solid var(--line); }
.chat-bar .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-bar.rec { background: var(--bad-soft); color: var(--bad); }
.chat-bar.rec .ltr { margin-inline-end: auto; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: ping 1.2s ease-in-out infinite; }
.sticker-panel { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.sticker-panel .chip { border: 0; cursor: pointer; font: inherit; font-size: 13px; padding: 5px 12px; }
.sticker-panel .chip:hover { background: var(--blue-soft); color: var(--ink); }
.chat-form { gap: 6px; border-top: 1px solid var(--line); }
.chat-form textarea { min-width: 0; max-height: 160px; }
@media (max-width: 520px) {
  .chat.full { height: calc(100vh - 250px); height: calc(100dvh - 250px); }
  .chat-head { padding: 12px 14px; }
  .chat-head .chat-status span { display: none; }
  .chat-log { padding: 14px; }
  .msg { max-width: 88%; }
  .chat-form { padding: 10px; gap: 4px; }
  .chat-form .circle.sm { width: 34px; height: 34px; }
  .chat-form .circle.navy { width: 44px; height: 44px; }
}

/* --- Toasts (new-message notifications, static/js/notify.js) --- */
.toasts {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lift); text-decoration: none; pointer-events: auto;
  animation: toast-in .35s cubic-bezier(.2, .8, .2, 1) backwards; transition: opacity .35s, transform .35s;
}
.toast .ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.toast .main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast .main b { font-size: .92rem; }
.toast .main small { color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }

.toast .ic { position: relative; }
.toast.online .ic { background: rgba(31, 169, 113, .22); color: #7ee2b4; }
.toast.online .ic::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--navy);
}
/* Dashboard: "the teacher is online right now" (static/js/notify.js toggles .hidden). */
.teacher-strip { animation: rise-in .4s cubic-bezier(.2, .8, .2, 1) backwards; }
.teacher-strip .ic { position: relative; color: var(--ok); }
.teacher-strip .live {
  position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--surface); animation: ping 2.4s ease-in-out infinite;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .teacher-strip, .teacher-strip .live { animation: none; } }

/* --- Assignments & tickets --- */
.attach { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.attach a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); transition: background .15s ease;
}
.attach a:hover { background: var(--blue-soft-2); color: var(--ink); }
.attach a > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.45; }
.attach b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach small { color: var(--muted); }
.attach .file-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); }
.review-box { padding: 14px 16px; border-radius: var(--r-md); background: var(--blue-soft-2); }
.review-box .card-head { margin-bottom: 6px; }
.review-box h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.post { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); max-width: 92%; }
.post.mine { align-self: flex-start; background: var(--blue-soft-2); }
.post:not(.mine) { align-self: flex-end; }
.post header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.post header small, .post .seen { color: var(--muted); font-size: 12px; }
.post .seen { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.post .prose { color: var(--text); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; }
.faq summary svg { transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(-90deg); }
.faq details .prose { margin: 8px 0 0; font-size: 14px; }
div.choices { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
div.choices label {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); font-weight: 400; font-size: 13.5px; color: var(--text); transition: background .15s ease;
}
div.choices label:has(input:checked) { background: var(--blue-soft); color: var(--ink); }
input.choices { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-3); }
.field input[type="file"] { padding: 10px; }

/* ---------------------------------------------------------------- class rooms (project) */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.linkish:hover { color: var(--blue); }
.room .chat-head .presence { text-decoration: underline dotted; text-underline-offset: 4px; }
.room [data-room-lock].on { background: var(--warn-soft); color: var(--warn); }
.room-pin {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 18px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--blue-soft-2); color: var(--ink); font: inherit; font-size: 13px; text-align: start; cursor: pointer;
}
.room-pin .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-pin .circle { width: 28px; height: 28px; box-shadow: none; }
.room-panel { padding: 16px 18px; background: var(--surface); overflow-y: auto; flex: 1; min-height: 0; }
/* An open panel (members, new poll) takes the place of the conversation until it is closed. */
.room-panel:not(.hidden) ~ .chat-log, .room-panel:not(.hidden) ~ .chat-form, .room-panel:not(.hidden) ~ .chat-bar,
.room-panel:not(.hidden) ~ .sticker-panel, .room-panel:not(.hidden) ~ .chat-typing { display: none; }
.room-panel-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.room-panel-head small { font-size: 12px; }
.room-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; }
.room-people li { display: flex; align-items: center; gap: 10px; padding: 5px 0; min-width: 0; }
.room-people .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.room-people .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-inline-start: auto; flex-shrink: 0; }
.room-people li.on .dot { background: var(--ok); }
.room-options { display: grid; gap: 8px; margin-bottom: 12px; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions .grow { flex: 1; }
.room-locked { color: var(--warn); justify-content: center; }
.msg > .avatar { flex-shrink: 0; }
.msg.cont > .avatar { visibility: hidden; height: 0; }
.msg.cont { margin-top: -6px; }
.msg .who-line { font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.msg .who-line .tag { font-size: 10.5px; padding: 1px 7px; }
.msg.cont .who-line { display: none; }
.poll { min-width: min(280px, 58vw); }
.poll-q { font-weight: 700; margin-bottom: 6px; }
.poll-opt {
  position: relative; display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 6px 0; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 13.5px; text-align: start; cursor: pointer; overflow: hidden; transition: border-color .2s ease;
}
.poll-opt:hover:not(:disabled) { border-color: var(--blue); }
.poll-opt:disabled { cursor: default; }
.poll-opt .bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--blue-soft); transition: width .45s cubic-bezier(.2, .9, .3, 1); }
.poll-opt .t, .poll-opt .n { position: relative; }
.poll-opt .n { font-size: 12px; color: var(--muted); }
.poll-opt.mine { border-color: var(--blue); }
.poll-opt.mine .t::after { content: " ✓"; color: var(--blue); font-weight: 700; }
.poll-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.poll-foot .linkish { font-size: 12px; font-weight: 700; color: var(--blue); }
.msg.mine .poll-opt { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.msg.mine .poll-opt .bar { background: rgba(255, 255, 255, .16); }
.msg.mine .poll-opt .n, .msg.mine .poll-foot { color: rgba(255, 255, 255, .7); }
.msg.mine .poll-opt.mine, .msg.mine .poll-opt:hover:not(:disabled) { border-color: var(--tone); }
.msg.mine .poll-opt.mine .t::after, .msg.mine .poll-foot .linkish { color: var(--tone); }
@media (prefers-reduced-motion: reduce) { .poll-opt .bar { transition: none; } }
.quick.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 480px) { .quick.five a { font-size: 12px; } .quick.five .q { width: 50px; height: 50px; } }

/* ---------------------------------------------------------------- dock «سایر» menu and «همهٔ بخش‌ها» (project) */
.dock > button { border: 0; background: none; font-family: inherit; cursor: pointer; }
.dock-menu {
  position: fixed; z-index: 31; left: 50%; transform: translateX(-50%);
  bottom: calc(92px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px);
  overflow-y: auto; padding: 10px; border-radius: 26px; background: var(--glass-strong); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(14, 26, 48, .2), 0 0 0 1px rgba(14, 26, 48, .05);
  animation: menu-in .2s cubic-bezier(.2, .9, .3, 1.2) backwards;
}
.dock-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } }
.dock-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; }
.dock-menu-head .circle { box-shadow: none; background: var(--surface-2); }
.dock-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dock-menu form { margin: 0; }
.dock-menu a, .dock-menu button.danger {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 18px; border: 0;
  background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background .15s ease;
}
.dock-menu a:hover, .dock-menu button.danger:hover { background: var(--surface-2); }
.dock-menu a.on { background: var(--blue-soft-2); }
.dock-menu .q { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex-shrink: 0; }
.dock-menu a.on .q { background: var(--navy); color: #fff; }
.dock-menu b { display: block; font-size: 14px; font-weight: 600; }
.dock-menu small { display: block; font-size: 12px; color: var(--muted); }
.dock-menu button.danger .q { background: var(--bad-soft); color: var(--bad); }
.dock-menu button.danger b { color: var(--bad); }
@media (max-width: 820px) { .dock-menu { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .dock-menu { animation: none; } }

.all-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.all-actions a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2);
  color: var(--text); transition: background .15s ease, transform .2s cubic-bezier(.2, .9, .3, 1.4);
}
.all-actions a:hover { background: var(--blue-soft-2); transform: translateY(-2px); }
.all-actions .q { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); flex-shrink: 0; }
.all-actions b { display: block; font-size: 14px; font-weight: 600; }
.all-actions small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 520px) {
  .all-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .all-actions a { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .all-actions a { transition: none; } }

/* ---------------------------------------------------------------- notices, install guide (project) */
.strip.notice { align-items: center; }
.strip.notice form { margin: 0; margin-inline-start: auto; flex-shrink: 0; }
.strip.notice > span:nth-child(2) { flex: 1; min-width: 0; }
.strip.notice .s { white-space: normal; }
@media (max-width: 520px) {
  .strip.notice { flex-wrap: wrap; align-items: flex-start; }
  .strip.notice > span:nth-child(2) { flex: 1 1 calc(100% - 60px); }
  .strip.notice form { margin-inline-start: auto; }
}
.notice-card.unread { box-shadow: var(--shadow), inset 3px 0 0 var(--blue); }
.notice-card.important { box-shadow: var(--shadow), inset 3px 0 0 var(--warn); }
.notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.notice-foot form { margin: 0; }
.guide { padding: 6px 18px; }
.guide details { border-bottom: 1px solid var(--line); }
.guide details:last-child { border-bottom: 0; }
.guide summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-weight: 400; font-size: 18px; }
.guide details[open] summary::after { content: "−"; }
.guide details.mine summary { color: var(--blue); }
.guide ol { margin: 0 0 14px; padding-inline-start: 22px; line-height: 2; color: var(--text-2); }
.birthday .ic { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- record timeline, certificates (project) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 15.5px; top: 42px; bottom: -10px; width: 1px; background: var(--line);
}
.timeline .dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--blue-soft-2); color: var(--blue);
}
.timeline .ok .dot { background: var(--ok-soft); color: var(--ok); }
.timeline .bad .dot { background: var(--bad-soft); color: var(--bad); }
.timeline .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.timeline .main span { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline li.empty::after { display: none; }
.person-row { display: flex; align-items: center; gap: 10px; }
.proof-img { display: block; max-width: 100%; max-height: 420px; margin-inline: auto; border-radius: 14px; border: 1px solid var(--line); }
.signature-img { display: block; max-width: 260px; max-height: 120px; margin-inline: auto; }
.verify-result.valid { box-shadow: var(--shadow), inset 3px 0 0 var(--ok); }
.verify-result.revoked { box-shadow: var(--shadow), inset 3px 0 0 var(--bad); }
.verify-form .row-actions { flex-wrap: nowrap; }
.verify-form .input { flex: 1; min-width: 0; letter-spacing: .08em; }

/* ---------------------------------------------------------------- landing page, logo (project) */
.logo-mark { display: block; }
.landing-hero .brandmark { width: 58px; height: 58px; border-radius: 18px; }
.landing-hero h1 { font-size: 2.1rem; }
.landing-hero p { max-width: 620px; line-height: 1.9; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.features-grid > div {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.features-grid .q {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--blue-soft-2); color: var(--ink);
}
.features-grid b { font-size: 15px; font-weight: 600; }
.features-grid small { color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .landing-hero h1 { font-size: 1.6rem; }
  .landing-hero .hero-row .btn { flex: 1 1 100%; justify-content: center; }
  .features-grid { gap: 8px; }
  .features-grid > div { padding: 14px; }
}

/* ---------------------------------------------------------------- brand, blue tick, theme switch (project) */
.vbadge { display: inline-grid; place-items: center; color: var(--verified); line-height: 0; vertical-align: middle; }
.vbadge svg { display: block; filter: drop-shadow(0 1px 2px rgba(10, 26, 51, .18)); }
.av { position: relative; display: inline-flex; flex-shrink: 0; }
.av > .vbadge { position: absolute; bottom: -1px; left: -1px; border-radius: 50%; background: var(--ring); padding: 1.5px; }
.hero .av > .vbadge { background: var(--hero-2); }
h1 .vbadge { margin-inline-start: 6px; position: relative; top: -2px; }
.hero h1 .vbadge { color: #5aaeff; }

.topbar .brandline .brandlink { display: flex; align-items: center; gap: 12px; color: var(--text); }
.topbar .brandline .brandlink:hover .brandmark { transform: rotate(-6deg) scale(1.04); }
.topbar .brandmark, .install-card .brandmark {
  margin: 0; width: 46px; height: 46px; border-radius: 15px; background: var(--hero-3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 16px rgba(10, 26, 51, .18);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3);
}
.theme-toggle > span { display: grid; place-items: center; transition: transform .4s cubic-bezier(.2, .9, .3, 1.3); }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: grid; color: var(--gold); }
.theme-toggle:hover .to-dark { transform: rotate(-18deg); }
.theme-toggle:hover .to-light { transform: rotate(45deg); }
.auth-main { position: relative; }
.auth-main > .theme-toggle { position: absolute; top: 18px; left: 18px; }
@media (max-width: 900px) {
  /* Phone: the switch sits in the navy panel's corner instead of crowding the form title. */
  .auth { position: relative; }
  .auth-main { position: static; }
  .auth-main > .theme-toggle { top: 26px; left: 26px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
}

.logo-full { display: inline-flex; opacity: .85; }
.logo-full img { height: 34px; width: auto; }
.logo-full .for-dark { display: none; }
:root[data-theme="dark"] .logo-full .for-light { display: none; }
:root[data-theme="dark"] .logo-full .for-dark { display: block; }
.footer { padding-top: 30px; }

.btn-gold { background: linear-gradient(135deg, #f1c169, #d89a2b); color: #2b1a03; font-weight: 600; box-shadow: 0 6px 16px rgba(201, 138, 28, .25); }
.btn-gold:hover { background: linear-gradient(135deg, #f4c977, #dea333); color: #2b1a03; }

/* ---------------------------------------------------------------- splash and page loader (project) */
.splash { display: none; }
.splash-on .splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(110% 80% at 50% 0%, var(--hero-1), var(--hero-2) 40%, var(--hero-3) 80%); color: #fff;
  animation: splash-out .5s ease 4s forwards;  /* failsafe: never stays if the script didn't run */
}
.splash-out .splash { animation: splash-out .5s cubic-bezier(.4, 0, .2, 1) forwards; }
.splash-mark {
  position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: splash-pop .8s cubic-bezier(.2, .9, .3, 1.25) both;
}
.splash-mark .emblem { display: block; width: 100%; height: 100%; animation: breathe 2.4s ease-in-out .8s infinite; }
.splash-ring { position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid rgba(168, 193, 236, .55); animation: splash-ring 1.8s ease-out .3s infinite; }
.splash-name { text-align: center; line-height: 1.5; animation: splash-up .6s cubic-bezier(.2, .7, .2, 1) .25s backwards; }
.splash-name b { display: block; font-size: 1.15rem; }
.splash-name span { color: var(--tone); font-size: 13.5px; }
.splash-bar { width: 128px; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; animation: splash-up .6s ease .4s backwards; }
.splash-bar i { display: block; width: 45%; height: 100%; border-radius: 9px; background: linear-gradient(90deg, transparent, #a8c1ec, transparent); animation: splash-bar 1.15s ease-in-out infinite; }
@keyframes splash-pop { from { opacity: 0; transform: scale(.82) translateY(8px); } }
@keyframes splash-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes splash-ring { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes splash-bar { from { transform: translateX(130%); } to { transform: translateX(-230%); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.02); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.nav-loader {
  position: fixed; z-index: 90; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -150%);
  display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 99px; opacity: 0; pointer-events: none;
  background: var(--glass-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow-lift); color: var(--text-2); font-size: 13px;
  overflow: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s ease;
}
.nav-loader.on { transform: translate(-50%, 0); opacity: 1; }
.nav-loader .brandmark { margin: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--hero-3); }
.nav-loader.on .logo-mark { animation: breathe 1.2s ease-in-out infinite; }
.nav-loader::after {
  content: ""; position: absolute; inset-inline: 22px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) no-repeat; background-size: 50% 100%;
  animation: loader-sweep 1.1s linear infinite;
}
@keyframes loader-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------------------------------------------------------------- student dashboard (project) */
.hero-art .logo-mark, .auth-side .art .logo-mark { opacity: .08; }
.hero-hello { display: flex; align-items: center; gap: 18px; }
.hero-hello .avatar.xl { width: 84px; height: 84px; font-size: 32px; }
.hero-hello h1 { margin: 0; }
@media (max-width: 520px) {
  .hero-hello { gap: 14px; }
  .hero-hello .avatar.xl { width: 64px; height: 64px; font-size: 26px; }
}
/* Dashboard sections rise a little on hover (the same feel as a.card in motion.css). */
.card.lift { transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.install-card.lift:hover { box-shadow: var(--shadow-lift), inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { .card.lift:hover { transform: none; } }

/* «دسترسی سریع»: four shortcut tiles with a coloured icon each */
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-tiles a {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 20px; color: var(--text); background: var(--surface-2);
  transition: background .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.quick-tiles a:hover { color: var(--text); background: var(--blue-soft-2); box-shadow: inset 0 0 0 1px var(--line); transform: translateY(-2px); }
.quick-tiles .hq { position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
/* Icons in the kit's own navy: the hero gradient with the light-blue tone, brightening on hover. */
.quick-tiles .hq {
  background: radial-gradient(120% 120% at 100% 0%, var(--hero-1), var(--hero-2) 45%, var(--hero-3));
  color: var(--tone); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 18px rgba(10, 26, 51, .2);
  transition: color .2s ease, box-shadow .2s ease;
}
.quick-tiles a:hover .hq { color: #fff; box-shadow: inset 0 0 0 1px rgba(168, 193, 236, .25), 0 10px 22px rgba(10, 26, 51, .28); }
.hq .dot {
  position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font-style: normal;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--surface-2);
}
.quick-tiles .ht { flex: 1; min-width: 0; line-height: 1.5; }
.quick-tiles .ht b { display: block; font-size: 14.5px; font-weight: 600; }
.quick-tiles .ht small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-tiles a > .i:last-child { color: var(--muted); transition: transform .25s ease, color .2s ease; }
.quick-tiles a:hover > .i:last-child { color: var(--blue); transform: translateX(-3px); }
@media (min-width: 1001px) { .quick-tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .quick-tiles { gap: 8px; }
  .quick-tiles a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .quick-tiles a > .i:last-child { display: none; }
  .quick-tiles .ht small { white-space: normal; }
}

.dash { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-col { min-width: 0; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; gap: 0; } }

.course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.course-list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2);
  color: var(--text); transition: background .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.course-list a:hover { background: var(--blue-soft-2); color: var(--text); transform: translateX(-2px); }
.course-list .main { flex: 1; min-width: 0; line-height: 1.5; }
.course-list .main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-list .main small { color: var(--muted); }
.course-list li.empty { padding: 18px 10px; }

a.chat-card { display: block; color: var(--text); }
a.chat-card:hover { color: var(--text); }
.bubble-peek { padding: 10px 14px; margin-bottom: 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); }
.bubble-peek.mine { border-radius: 18px 18px 6px 18px; background: var(--blue-soft-2); }
.bubble-peek small { color: var(--muted); display: block; }
.bubble-peek p { margin: 2px 0 0; overflow-wrap: anywhere; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.mini-stats > div { padding: 10px 6px; border-radius: var(--r-md); background: var(--surface-2); text-align: center; line-height: 1.4; }
.mini-stats b { display: block; font-size: 1.45rem; font-weight: 700; }
.mini-stats small { color: var(--muted); }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; margin-top: 12px; font-size: 13.5px; }
.meter-row small { color: var(--muted); }
.meter-row .progress { grid-column: 1 / -1; height: 7px; }
.progress.gold > i { background: linear-gradient(90deg, #f1c169, var(--gold)); }
.progress.soft > i { background: linear-gradient(90deg, var(--tone), var(--blue)); }
.timeline.compact li { padding: 7px 0; }
.timeline.compact .dot { width: 28px; height: 28px; }
.timeline.compact li:not(:last-child)::after { inset-inline-start: 13.5px; top: 36px; bottom: -7px; }
.timeline.compact .main b { font-size: 13.5px; font-weight: 600; }

.install-card { display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.install-card .txt { flex: 1; min-width: 0; line-height: 1.6; }
.install-card .txt b { display: block; }
.install-card .txt small { color: var(--muted); }
.install-card .circle { box-shadow: none; background: var(--surface-2); }
@media (max-width: 560px) {
  .install-card { flex-wrap: wrap; }
  .install-card .txt { flex: 1 1 calc(100% - 120px); }
  .install-card .btn { flex: 1; }
}

/* a soft light that follows the pointer (softnavy.js sets --mx/--my) */
.glow-on-hover { position: relative; isolation: isolate; }
.glow-on-hover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
  transition: opacity .35s ease;
}
.glow-on-hover:hover::before { opacity: 1; }

/* ---------------------------------------------------------------- dark theme: component details (project) */
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .auth-side, :root[data-theme="dark"] .card-navy {
  box-shadow: inset 0 0 0 1px rgba(141, 176, 238, .1), 0 18px 50px rgba(0, 0, 0, .3);
}
:root[data-theme="dark"] .strip .go { background: var(--surface-2); color: var(--text); box-shadow: none; }
:root[data-theme="dark"] .dock { box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(141, 176, 238, .08); }
:root[data-theme="dark"] .dock-menu { box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(141, 176, 238, .08); }
:root[data-theme="dark"] .tile.alt { background: radial-gradient(130% 130% at 100% 0%, #3c5178, #243451 75%); }
:root[data-theme="dark"] .msg .bubble { box-shadow: 0 0 0 1px rgba(141, 176, 238, .06); }
:root[data-theme="dark"] .msg-actions { box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(141, 176, 238, .1); }
:root[data-theme="dark"] .proof-img, :root[data-theme="dark"] .signature-img { background: #fff; }
:root[data-theme="dark"] ::selection { background: rgba(141, 176, 238, .3); }
:root[data-theme="dark"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c88a0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
