/* ==========================================================================
   Kickstart members' area — design system
   ========================================================================== */

:root {
  --bg: #F4EFE6;
  --bg-2: #EDE6DA;
  --surface: #FFFFFF;
  --surface-2: #FAF7F1;
  --ink: #16282B;
  --ink-2: #33474A;
  --muted: #5A6A6D;
  --faint: #8A9597;
  --line: #E7E1D6;
  --line-2: #D6CFC2;

  --teal-950: #122326;
  --teal-900: #1C3034;
  --teal-850: #243B3F;
  --teal-800: #2F4A4F;
  --teal-700: #3B5A60;
  --teal-600: #4D6D73;
  --teal-200: #C9D8DA;
  --teal-100: #E3ECEC;
  --teal-50: #F0F5F5;

  --red: #C8392F;
  --red-600: #AE2F26;
  --red-100: #F8D9D5;
  --red-50: #FCEDEB;
  --coral: #F07A6F;

  --green: #1E7A4B;
  --green-50: #E2F3E9;
  --amber: #8A5A00;
  --amber-50: #FFF2D3;
  --blue: #2B5C9E;
  --blue-50: #E6EEF9;
  --violet: #6A4BA3;
  --violet-50: #EFEAF8;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(22, 40, 43, .05), 0 1px 1px rgba(22, 40, 43, .03);
  --sh-2: 0 10px 28px -12px rgba(22, 40, 43, .22), 0 2px 6px -2px rgba(22, 40, 43, .06);
  --sh-3: 0 28px 60px -16px rgba(22, 40, 43, .34), 0 6px 16px -6px rgba(22, 40, 43, .12);

  --font-display: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --side: 268px;
  --topbar: 60px;
  --tabbar: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: 0 0 0 3px rgba(200, 57, 47, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--red-100); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.015em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.caps { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; word-break: break-word; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.right { text-align: right; }

/* ---------- Boot screen ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--teal-900); }
.boot-logo, .logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; color: #fff; font-size: 34px; line-height: 1; }
.boot-logo span, .logo span { color: var(--coral); }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; background: var(--coral); border-radius: 3px; animation: bootbar 1.1s var(--ease) infinite; }
@keyframes bootbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---------- App shell ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: var(--teal-900); color: #DCE6E7;
  display: flex; flex-direction: column; padding: 22px 16px 16px; gap: 22px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.side .logo { font-size: 27px; padding: 4px 10px 0; display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.side .logo small { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FB6B9; }
.mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px;
  background: rgba(255,255,255,.07); border-radius: 11px;
}
.mode button {
  border: 0; background: transparent; color: #B8CACC; border-radius: 8px; padding: 7px 8px;
  font-size: 13px; font-weight: 600; transition: background .15s, color .15s;
}
.mode button[aria-pressed="true"] { background: #fff; color: var(--teal-900); box-shadow: var(--sh-1); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #86A0A4; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: #D3DFE0; text-decoration: none; font-weight: 500; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--teal-900); font-weight: 650; }
.nav a[aria-current="page"] svg { opacity: 1; color: var(--red); }
.nav .count {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 5; }
.me-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: #fff; text-decoration: none;
  border: 0; background: transparent; text-align: left; width: 100%;
}
.me-chip:hover { background: rgba(255,255,255,.06); color: #fff; }
.me-chip .nm { font-weight: 650; font-size: 14px; line-height: 1.2; }
.me-chip .co { font-size: 12.5px; color: #9FB6B9; line-height: 1.3; }

.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 44px 72px; }
.page.wide { max-width: 1440px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: 14px; border: 0; background: none; padding: 4px 0;
}
.back:hover { color: var(--ink); }

/* Mobile chrome */
.topbar, .tabbar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 40; height: calc(var(--topbar) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0 16px; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--teal-900); color: #fff;
  }
  .topbar .logo { font-size: 23px; text-decoration: none; }
  .topbar .tb-actions { display: flex; align-items: center; gap: 4px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: none; padding: 6px 0 0;
  }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar [aria-current="page"] { color: var(--red); }
  .tabbar .dot { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
  .page { padding: 22px 16px calc(var(--tabbar) + 40px + env(safe-area-inset-bottom)); }
  h1 { font-size: 25px; }
  .page-head { margin-bottom: 20px; align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .hide-m { display: none !important; }
}
@media (min-width: 961px) { .hide-d { display: none !important; } }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit;
  display: inline-grid; place-items: center; position: relative; flex: none;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(22, 40, 43, .06); }
.topbar .icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--teal-900); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-head h2 { font-size: 16.5px; }
.card-head a, .card-head .link { font-size: 14px; font-weight: 600; text-decoration: none; }
.card-body { padding: 14px 22px 20px; }
.card.flat { box-shadow: none; }
.card.hover { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
a.card { color: inherit; text-decoration: none; display: block; }
.dark-card { background: var(--teal-800); color: #fff; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.dark-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 44px solid rgba(255,255,255,.04); pointer-events: none;
}
.dark-card .muted, .dark-card .caps { color: #B3C8CA; }
.section { margin-top: 28px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { font-size: 18px; }
.section-title a { font-size: 14px; font-weight: 600; text-decoration: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

.grid { display: grid; gap: 20px; min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .grid { gap: 14px; } .card-pad { padding: 18px; } .card-head { padding: 16px 18px 0; } .card-body { padding: 12px 18px 18px; } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--bh); padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent; font-weight: 650; font-size: 14.5px; line-height: 1;
  text-decoration: none; white-space: nowrap; user-select: none; position: relative;
  transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.08); }
.btn-primary:hover:not(:disabled) { background: var(--red-600); color: #fff; }
.btn-dark { background: var(--teal-800); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--teal-900); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--teal-800); color: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-800); }
.btn-ghost:hover:not(:disabled) { background: rgba(47, 74, 79, .08); color: var(--teal-900); }
.btn-danger { background: var(--surface); color: var(--red-600); border-color: var(--red-100); }
.btn-danger:hover:not(:disabled) { background: var(--red-50); color: var(--red-600); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light:hover:not(:disabled) { background: rgba(255,255,255,.2); color: #fff; }
.btn-white { background: #fff; color: var(--teal-900); }
.btn-white:hover:not(:disabled) { background: var(--teal-50); color: var(--teal-900); }
.btn-sm { --bh: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-xs { --bh: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { --bh: 52px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--teal-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--red); }
.link-btn.danger { color: var(--red-600); }

.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pills, badges, avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--teal-100); color: var(--teal-800); }
.pill svg { width: 14px; height: 14px; }
.pill.green { background: var(--green-50); color: var(--green); }
.pill.amber { background: var(--amber-50); color: var(--amber); }
.pill.red { background: var(--red-50); color: var(--red-600); }
.pill.grey { background: #EEEBE5; color: #4C5859; }
.pill.blue { background: var(--blue-50); color: var(--blue); }
.pill.violet { background: var(--violet-50); color: var(--violet); }
.pill.dark { background: var(--teal-800); color: #fff; }
.pill.outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.lg { height: 30px; padding: 0 13px; font-size: 13.5px; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }

.av {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: calc(var(--s) * .37); letter-spacing: -.02em; color: #fff; background: var(--teal-700);
  position: relative; user-select: none;
}
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.av.xs { --s: 24px; } .av.sm { --s: 32px; } .av.md { --s: 44px; } .av.lg { --s: 64px; } .av.xl { --s: 104px; }
.av.square { border-radius: 28%; }
.av.ring { box-shadow: 0 0 0 3px var(--surface); }
.av .staff { position: absolute; right: -3px; bottom: -3px; width: max(14px, 34%); height: max(14px, 34%); border-radius: 50%; background: var(--teal-800); box-shadow: 0 0 0 2px var(--surface); display: grid; place-items: center; }
.av .staff svg { width: 64%; height: 64%; color: #fff; stroke-width: 3; }
.side .av .staff { box-shadow: 0 0 0 2px var(--teal-900); }
.faces { display: flex; }
.faces .av { box-shadow: 0 0 0 2px var(--surface); }
.faces .av + .av { margin-left: -9px; }
.faces .more { --s: 28px; background: var(--teal-100); color: var(--teal-800); font-size: 11px; }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red-600); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: #9AA3A4; }
.input:hover, .select:hover, .textarea:hover { border-color: #BDB5A6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-800); box-shadow: 0 0 0 3px rgba(47, 74, 79, .14); }
.input[aria-invalid="true"] { border-color: var(--red); }
.textarea { resize: vertical; min-height: 110px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235A6A6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .form-grid, .form-grid.g3 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; cursor: pointer; line-height: 1.45; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 12px 0; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .18s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .18s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: all .15s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--teal-800); }
.chip[aria-pressed="true"] { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.chip .n { font-size: 12px; opacity: .7; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--bg-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: all .15s; display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }

.drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); padding: 18px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.drop:hover, .drop.over { border-color: var(--teal-800); background: var(--teal-50); }
.drop svg { width: 24px; height: 24px; color: var(--teal-700); }
.drop input { display: none; }
.drop .fname { font-weight: 650; color: var(--ink); word-break: break-all; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.list > .li:first-child { border-top: 0; }
.li-link { color: inherit; text-decoration: none; border-radius: var(--r); margin: 0 -10px; padding-left: 10px; padding-right: 10px; transition: background .15s; }
.li-link:hover { background: var(--surface-2); color: inherit; }
.li .t { font-weight: 650; line-height: 1.3; }
.li .s { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.date-tile { width: 54px; height: 58px; border-radius: 13px; background: var(--teal-800); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.date-tile .m { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.date-tile .d { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-top: 4px; }
.date-tile.light { background: var(--teal-100); color: var(--teal-900); }
.ic-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-100); color: var(--teal-800); }
.ic-tile svg { width: 21px; height: 21px; }
.ic-tile.red { background: var(--red-50); color: var(--red); }
.ic-tile.amber { background: var(--amber-50); color: var(--amber); }
.ic-tile.green { background: var(--green-50); color: var(--green); }
.ic-tile.blue { background: var(--blue-50); color: var(--blue); }
.ic-tile.violet { background: var(--violet-50); color: var(--violet); }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clickable { cursor: pointer; transition: background .12s; }
table.t tr.clickable:hover td { background: var(--surface-2); }
table.t .r { text-align: right; }

/* ---------- Empty, skeleton, errors ---------- */
.empty { text-align: center; padding: 42px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .art { width: 64px; height: 64px; border-radius: 20px; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; margin-bottom: 8px; }
.empty .art svg { width: 30px; height: 30px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 0 10px; }
.empty.sm { padding: 24px 12px; }
.empty.sm .art { width: 48px; height: 48px; border-radius: 15px; }
.empty.sm .art svg { width: 23px; height: 23px; }
.skel { border-radius: 10px; background: linear-gradient(90deg, #EEE8DD 0%, #F6F2EA 45%, #EEE8DD 90%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
@keyframes skel { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
.skel-line { height: 12px; border-radius: 6px; }
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--amber-50); color: #5E3E00; font-size: 14.5px; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner.red { background: var(--red-50); color: #7E231C; }
.banner.teal { background: var(--teal-100); color: var(--teal-900); }
.banner.green { background: var(--green-50); color: #145235; }
.banner.amber { background: var(--amber-50); color: #6B4A0E; }
.banner .grow p:last-child { margin: 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
@media (max-width: 960px) { .toasts { bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--teal-900); color: #fff; box-shadow: var(--sh-3); font-size: 14.5px; font-weight: 500; width: 100%;
  animation: toastin .28s var(--ease);
}
.toast svg { width: 20px; height: 20px; flex: none; color: #7FD3A5; }
.toast.error svg { color: #FF9D94; }
.toast .grow { line-height: 1.4; }
.toast button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 9px; padding: 7px 12px; font-weight: 650; font-size: 13.5px; }
.toast button:hover { background: rgba(255,255,255,.2); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Modals & sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(18, 32, 36, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: hidden; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); animation: modalin .26s var(--ease); display: flex; flex-direction: column; }
.modal.wide { width: min(760px, 100%); }
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 4px; }
.modal-head h2 { font-size: 20px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.modal-body { padding: 16px 24px 8px; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.modal-foot { flex: none; border-top: 1px solid var(--line); background: var(--surface); display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; flex-wrap: wrap; }
@media (max-width: 680px) {
  .overlay { place-items: end stretch; padding: 0; }
  .modal, .modal.wide { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheetin .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; flex: none; }
  .modal-head { padding: 12px 20px 4px; }
  .modal-body { padding: 14px 20px 6px; }
  .modal-foot { padding: 14px 20px 18px; }
  .modal-foot .btn { flex: 1 1 auto; }
}
@keyframes sheetin { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

.menu { position: absolute; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; animation: modalin .16s var(--ease); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; border: 0; background: none; text-align: left; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu svg { width: 18px; height: 18px; color: var(--muted); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }
.menu-up { animation-name: menuup; transform-origin: bottom left; }
@keyframes menuup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hello h1 { font-size: 34px; }
@media (max-width: 960px) { .hello h1 { font-size: 27px; } }
.plan-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.plan-card .plan-name { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.plan-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.plan-facts > div { background: rgba(255,255,255,.07); border-radius: 13px; padding: 12px 14px; min-width: 0; }
.plan-facts .k { font-size: 12px; color: #B3C8CA; }
.plan-facts .v { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 1180px) { .plan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plan-card { padding: 20px; } .plan-card .plan-name { font-size: 22px; } }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14.5px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.quick a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.05; }
.stat .k { font-size: 13.5px; color: var(--muted); }
.meter { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 8px; background: var(--teal-800); }
.meter.red span { background: var(--red); }

/* ---------- Booking ---------- */
.space-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .space-pick { grid-template-columns: minmax(0, 1fr); } }
.space-opt {
  text-align: left; padding: 16px 18px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface);
  display: flex; gap: 14px; align-items: flex-start; transition: all .15s;
}
.space-opt:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.space-opt[aria-pressed="true"] { border-color: var(--red); background: #FFF8F7; box-shadow: 0 0 0 3px rgba(200,57,47,.1); }
.space-opt .t { font-weight: 700; font-family: var(--font-display); font-size: 15.5px; }
.space-opt .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.space-opt .p { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--teal-800); }
.space-opt[aria-pressed="true"] .p { color: var(--red-600); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day {
  flex: 0 0 62px; height: 78px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: start; transition: all .15s;
}
.day .w { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day .d { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.1; }
.day .m { font-size: 11.5px; color: var(--muted); }
.day:hover:not(:disabled) { border-color: var(--teal-800); }
.day[aria-pressed="true"] { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.day[aria-pressed="true"] .w, .day[aria-pressed="true"] .m { color: #C3D4D6; }
.day:disabled { opacity: .45; cursor: not-allowed; background: var(--surface-2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  height: 48px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 15px;
  font-family: var(--font-display); font-variant-numeric: tabular-nums; transition: all .12s; color: var(--ink);
}
.slot:hover:not(:disabled) { border-color: var(--teal-800); background: var(--teal-50); }
.slot:disabled { background: repeating-linear-gradient(135deg, #F1ECE3 0 6px, #F7F3EC 6px 12px); color: #A8AFAF; border-color: var(--line); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.slot.in { background: #FFE9E6; border-color: #F1B7B1; color: var(--red-600); }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; }
.summary { position: sticky; top: 24px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { color: #BCC2C2; cursor: not-allowed; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 86px; text-align: center; font-weight: 700; font-family: var(--font-display); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 650; text-align: right; }
.dark-card .kv .k { color: #B3C8CA; }
.total-line { border-top: 1px solid rgba(255,255,255,.14); margin-top: 8px; padding-top: 12px; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 6px; animation: pop .45s var(--ease); }
.success-mark svg { width: 36px; height: 36px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Community ---------- */
.person-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.person-card .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.person-card .hl { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-card .foot { margin-top: auto; display: flex; gap: 8px; }
.profile-hero { padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
@media (max-width: 680px) { .profile-hero { flex-direction: column; padding: 20px; gap: 16px; } }
.profile-hero .nm { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }

.post { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.post .title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.post .title:hover { color: var(--red); }
.post .body { color: var(--ink-2); }
.post .meta { font-size: 13px; color: var(--muted); }
.post.pinned { border-color: #EBCB8A; background: linear-gradient(180deg, #FFFBF1, #fff 60%); }
.reply { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.composer { display: flex; gap: 12px; align-items: flex-end; }
.composer .textarea { min-height: 48px; max-height: 200px; resize: none; }

/* Messages */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 68px - 34px - 72px); min-height: 520px; overflow: hidden; }
@media (max-width: 960px) { .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.inbox-list .search { padding: 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.th-item { display: flex; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); align-items: flex-start; transition: background .12s; }
.th-item:hover { background: var(--surface-2); color: inherit; }
.th-item[aria-current="page"] { background: var(--teal-50); box-shadow: inset 3px 0 0 var(--red); }
.th-item .nm { font-weight: 650; line-height: 1.3; }
.th-item .pv { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-item.unread .pv { color: var(--ink); font-weight: 600; }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 960px) {
  .chat.mobile { position: fixed; inset: 0; z-index: 50; background: var(--surface-2); }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat-log { padding: 16px 14px 8px; }
}
.bubble { max-width: min(560px, 80%); padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: var(--sh-1); }
.bubble.mine { align-self: flex-end; background: var(--teal-800); color: #fff; border-color: var(--teal-800); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble-time { font-size: 11.5px; color: var(--faint); margin: 2px 6px 8px; }
.bubble-time.mine { align-self: flex-end; }
.day-sep { align-self: center; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--bg-2); padding: 4px 11px; border-radius: 99px; margin: 12px 0; }
.chat-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.chat-empty { flex: 1; display: grid; place-items: center; }

/* Events */
.ev-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.ev-cover { height: 132px; background: var(--teal-800); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px; color: #fff; }
.ev-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,32,36,0) 30%, rgba(18,32,36,.72)); }
.ev-cover .art { position: absolute; inset: 0; }
.ev-cover > * { position: relative; z-index: 1; }
.ev-cover .when { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.ev-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-body .title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.ev-body .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cover-pattern { background-color: var(--teal-800); background-image: radial-gradient(circle at 85% 20%, rgba(240,122,111,.55) 0 18%, transparent 18.5%), radial-gradient(circle at 15% 110%, rgba(255,255,255,.08) 0 35%, transparent 35.5%); }
.cover-pattern.v2 { background-color: #3E2F4F; background-image: radial-gradient(circle at 20% 15%, rgba(240,122,111,.5) 0 16%, transparent 16.5%), radial-gradient(circle at 90% 120%, rgba(255,255,255,.08) 0 40%, transparent 40.5%); }
.cover-pattern.v3 { background-color: #7A3B2E; background-image: radial-gradient(circle at 80% 90%, rgba(255,220,180,.35) 0 22%, transparent 22.5%), radial-gradient(circle at 10% 0%, rgba(255,255,255,.1) 0 30%, transparent 30.5%); }
.cover-pattern.v4 { background-color: #22505A; background-image: radial-gradient(circle at 50% -20%, rgba(240,122,111,.45) 0 30%, transparent 30.5%), radial-gradient(circle at 100% 100%, rgba(255,255,255,.07) 0 30%, transparent 30.5%); }

/* Perks */
.perk { padding: 20px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.perk .logo-tile { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 18px; }
.perk .title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.code-box { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 8px 8px 8px 14px; background: var(--surface-2); }
.code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .06em; flex: 1; }

/* Requests */
.req-type { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .req-type { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req-type button { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-weight: 650; font-size: 14px; transition: all .15s; }
.req-type button:hover { border-color: var(--line-2); }
.req-type button[aria-pressed="true"] { border-color: var(--red); background: #FFF8F7; }
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; }
.msg .box { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.msg.staff .box { background: var(--teal-50); border-color: var(--teal-100); }
.msg .who { font-size: 13.5px; font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Profile / settings */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; font-weight: 650; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; font-size: 14.5px; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.photo-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Staff console ---------- */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.kpi .v { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.kpi .v small { font-size: 16px; color: var(--muted); font-weight: 700; }
.kpi .k { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.kpi a { text-decoration: none; color: inherit; }
.cal { overflow-x: auto; }
.cal-grid { display: grid; min-width: 720px; position: relative; }
.cal-col-head { padding: 12px 14px; font-weight: 700; font-family: var(--font-display); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.cal-col-head .muted { font-family: var(--font-body); font-weight: 500; }
.cal-hours { border-right: 0; }
.cal-hour { height: 64px; font-size: 12px; color: var(--muted); padding: 4px 10px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-cell { height: 64px; border-top: 1px solid var(--line); width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; display: block; transition: background .12s; }
.cal-cell:hover { background: var(--teal-50); }
.cal-cell.closed { background: repeating-linear-gradient(135deg, #F6F2EA 0 6px, #FBF9F5 6px 12px); cursor: default; }
.cal-ev {
  position: absolute; left: 6px; right: 6px; border-radius: 10px; padding: 7px 10px; overflow: hidden; text-align: left;
  border: 0; border-left: 4px solid var(--teal-800); background: var(--teal-100); color: var(--teal-900); font-size: 13px; line-height: 1.3;
  box-shadow: var(--sh-1); transition: transform .12s, box-shadow .12s;
}
.cal-ev:hover { transform: translateY(-1px); box-shadow: var(--sh-2); z-index: 3; }
.cal-ev .t { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.cal-ev.paid { border-left-color: var(--red); background: #FDE8E5; color: #6E1D17; }
.cal-ev.done { border-left-color: var(--green); background: var(--green-50); color: #134A2F; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 4; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.passes { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist .step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.checklist .step .b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg-2); color: var(--muted); flex: none; }
.checklist .step.done { color: var(--ink); }
.checklist .step.done .b { background: var(--green); color: #fff; }
.checklist .step.now { color: var(--ink); font-weight: 700; }
.checklist .step.now .b { background: var(--red); color: #fff; }
.checklist .step .b svg { width: 14px; height: 14px; }
.doc-thumb { height: 120px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-decoration: none; transition: all .15s; }
.doc-thumb:hover { border-color: var(--teal-800); color: var(--teal-800); background: var(--teal-50); }
.doc-thumb svg { width: 28px; height: 28px; }

/* Login */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { background: var(--teal-900); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; max-width: 520px; }
.auth-art .big span { color: var(--coral); }
.auth-art .circles { position: absolute; right: -140px; bottom: -140px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); }
.auth-art .circles::after { content: ""; position: absolute; inset: 90px; border-radius: 50%; background: rgba(240,122,111,.18); }
.auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; color: #C9D8DA; position: relative; z-index: 1; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li svg { width: 20px; height: 20px; color: var(--coral); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-box h1 { font-size: 30px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 22px 34px; min-height: 0; }
  .auth-art .big { font-size: 30px; margin-top: 26px; }
  .auth-art ul, .auth-art .circles { display: none; }
  .auth-form { padding: 28px 20px 40px; place-items: start center; }
}

/* Onboarding */
.welcome-steps { display: flex; flex-direction: column; gap: 10px; }
.welcome-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: all .15s; }
.welcome-step:hover { border-color: var(--line-2); box-shadow: var(--sh-1); color: inherit; }
.welcome-step .ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.welcome-step.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
.welcome-step .ck svg { width: 15px; height: 15px; }
.progress-ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--coral) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); display: grid; place-items: center; flex: none; }
.progress-ring span { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-800); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.card.fill { display: flex; flex-direction: column; }
.card.fill > .card-pad, .card.fill > .card-body { flex: 1; display: flex; flex-direction: column; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretch:focus-visible { box-shadow: none; }
.stretch:focus-visible::after { box-shadow: var(--focus); border-radius: var(--r-lg); }
.side .logo .wm span { color: var(--coral); }
@media (min-width: 961px) { .app { background: linear-gradient(to right, var(--teal-900) var(--side), transparent var(--side)); } }
.slot.past:disabled { background: transparent; border-style: dashed; text-decoration: none; color: #C3C8C6; }
.card.kpi { display: flex; }
.side .logo .wm { color: #fff; }
.side .logo .wm span { color: var(--coral); }
.av.team { background: var(--teal-800) !important; }
@media (max-width: 600px) { .banner.nudge { flex-wrap: wrap; } .banner.nudge .grow { flex: 1 1 calc(100% - 40px); } .banner.nudge .btn { margin-left: 32px; } }
/* My membership */
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.incl .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); flex: none; }
.incl .tick svg { stroke-width: 3; }
.address { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px 18px; font-size: 15.5px; line-height: 1.6; }
.page-peek { max-width: 1440px; margin: 0 auto; padding: 18px 44px 0; }
@media (max-width: 960px) { .page-peek { padding: 12px 16px 0; } .staff-peek span { font-size: 13px; } }
.staff-peek { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin: 0; border-radius: 12px; background: var(--teal-100); color: var(--teal-900); font-size: 14px; }
.staff-peek a { margin-left: auto; font-weight: 700; white-space: nowrap; }
.mode button { white-space: nowrap; }
/* Staff team role picker */
.role-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.role-opt:hover { border-color: var(--line-2); }
.role-opt[aria-checked="true"] { border-color: var(--teal-800); background: var(--teal-50); }
.role-opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 2px; }
.role-opt[aria-checked="true"] .dot { border: 5px solid var(--teal-800); }
.role-opt .t { display: block; font-weight: 700; }
.role-opt .s { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
/* Small inline switch (team access) */
.switch-mini { width: 36px; height: 20px; border-radius: 20px; background: var(--line-2); position: relative; display: inline-block; flex: none; transition: background .15s; }
.switch-mini span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s var(--ease); }
.switch-mini[aria-checked="true"] { background: var(--green); }
.switch-mini[aria-checked="true"] span { transform: translateX(16px); }
.switch-mini:focus-visible { outline: 3px solid rgba(240,122,111,.55); outline-offset: 2px; }
/* Company switcher (people who belong to several member companies) */
.co-switch { margin: 0 0 14px; }
.co-switch .menu-wrap, .co-switch > * { width: 100%; }
.co-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.co-chip:hover { background: rgba(255,255,255,.1); }
.co-chip .k { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9FB6B8; font-weight: 700; }
.co-chip .v { display: block; font-weight: 650; font-size: 14px; }
/* Staff-only team notes on member requests */
.msg.note .box { background: #FFF6E0; border: 1px dashed #E7C46A; }
/* Kickstart Bahrain logo image */
.logo .logo-img { display: block; height: 44px; width: auto; }
.side .logo { align-items: center; }
.topbar .logo .logo-img { height: 32px; }
.boot-logo .logo-img { height: 56px; width: auto; }
.auth-art .logo .logo-img { height: 54px; }
/* Member companies list: fits the page without sideways scrolling */
table.t td.mem-co { min-width: 220px; }
table.t td.mem-co a { overflow-wrap: anywhere; }
table.t td.mem-plan { min-width: 150px; max-width: 240px; }
/* Member companies: sortable headers, list/card switch, cards */
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.th-sort:hover { color: var(--ink); }
table.t th.r .th-sort { justify-content: flex-end; }
.view-seg button { padding: 7px 10px; display: inline-flex; align-items: center; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2, var(--ink)); border-radius: var(--r-pill); padding: 5px 11px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.chip-btn.on { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
a.card.mem-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; height: 100%; color: var(--ink); text-decoration: none; }
.mem-card .nm { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.mem-facts { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mem-facts .k { font-size: 12px; color: var(--muted); }
.mem-facts .v { font-weight: 650; font-size: 14.5px; margin: 2px 0 4px; }
.mem-facts .r { text-align: right; }
@media (max-width: 680px) {
  .email-row { flex-wrap: wrap; }
  .email-row > .ic-tile { display: none; }
  .email-row > .col { flex-direction: row !important; flex-basis: 100%; align-items: center !important; margin-top: -4px; }
}
