/* LexQuora v1.4 — "Royal Indigo" look for every panel (web app, Super Admin, mobile app). From Design Edition 1.1.
   Loaded after lexquora.css (and mobile.css on the phone). The public website keeps its own look. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@400;500;600&display=swap');

:root {
  --navy: #0E1330; --navy-2: #171D45; --navy-line: rgba(255,255,255,.08);
  --accent: #3730A3; --accent-hover: #312E81; --accent-bright: #4F46E5; --accent-soft: #EEF0FF; --violet: #6D28D9;
  --saffron: #F59E0B; --saffron-soft: #FFF5E1; --saffron-fg: #92400E;
  --info: #0284C7; --info-soft: #E6F3FA; --info-fg: #0369A1;
  --fg: #0F172A;
  /* the shared tokens, re-pointed */
  --ink: #0E1330; --ink-2: #171D45; --ink-3: #222A5C; --ink-line: rgba(255,255,255,.1);
  --gold: #F59E0B; --gold-2: #FBBF24; --gold-deep: #D97706; --gold-text: #3730A3; --gold-wash: #EEF0FF;
  --ivory: #F5F6FB; --paper: #F0F2F9; --white: #FFFFFF; --line: #E3E6F0; --line-2: #ECEEF5;
  --stone: #475069; --stone-2: #6B7280; --mist: #C9CDE4;
  --teal: #059669; --teal-text: #047857; --teal-wash: #E6F6EF;
  --red: #E11D48; --red-wash: #FDECEF; --blue-wash: #E6F3FA; --blue-text: #0369A1;
  --radius: 20px; --radius-sm: 12px; --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
  --shadow-2: 0 10px 30px rgba(14,19,48,.08);
  --shadow-3: 0 24px 60px rgba(14,19,48,.22);
  --focus: 0 0 0 3px rgba(79,70,229,.3);
  --font: 'Plus Jakarta Sans', 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--font);
  --hero-bg: radial-gradient(120% 140% at 100% 0%, #6D28D9 0%, rgba(109,40,217,0) 55%), linear-gradient(135deg, #312E81, #0E1330);
}
body { color: var(--fg); background: var(--ivory); }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
h1, .serif { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
::selection { background: #DCDDFE; }

/* ---------- buttons ---------- */
.btn { border-radius: 14px; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(55,48,163,.3); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 10px 24px rgba(55,48,163,.3); }
.btn-gold { background: var(--saffron); color: #3B2205; box-shadow: 0 6px 18px rgba(245,158,11,.3); }
.btn-gold::after { display: none; }
.btn-gold:hover { background: #F7A928; color: #3B2205; box-shadow: 0 10px 24px rgba(245,158,11,.4); }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--fg); }
.btn-outline:hover { background: var(--white); border-color: #C7C4F5; color: var(--accent); }
.btn-ghost { color: var(--fg); } .btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #E6E8F5; }
.btn-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-teal { background: var(--teal); } .btn-teal:hover { background: var(--teal-text); }
.btn-danger { border-color: #F7C6D0; }
.btn-sm { border-radius: 10px; } .btn-lg { border-radius: 14px; }
.btn-soft { background: var(--accent-soft); color: var(--accent); } .btn-soft:hover { background: #E2E4FF; color: var(--accent-hover); }
.link-btn { color: var(--accent); } .link-btn:hover { color: var(--accent-hover); text-decoration: none; }
.pill { border-color: var(--line); } .pill:hover { border-color: #C7C4F5; }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { background: var(--paper); } .seg button { color: var(--stone); }
.seg button.on { color: var(--fg); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.seg.dark { background: rgba(255,255,255,.08); } .seg.dark button.on { background: #fff; color: var(--accent); }

/* ---------- forms ---------- */
.input, .field input, .field select, .field textarea { border-radius: 14px; min-height: 46px; border-color: var(--line); color: var(--fg); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-bright); box-shadow: var(--focus); }
.field { color: #39425A; font-weight: 600; } .field .hint { font-weight: 500; }
.check input { accent-color: var(--accent); }
.switch input:checked + span { background: var(--teal); }

/* ---------- surfaces ---------- */
.card { border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow-1); }
.card-head { padding: 18px 22px; border-bottom-color: var(--line-2); }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card-pad { padding: 22px; }
.card-dark { background: var(--hero-bg); border: 0; color: #fff; border-radius: 20px; }
.kpi { padding: 20px 22px; gap: 6px; }
.kpi::after { display: none; }
.kpi .label { font-size: 13px; font-weight: 600; color: var(--stone); }
.kpi .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kpi .sub { font-size: 12.5px; font-weight: 600; }
.kpi .kic { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi .kic svg { width: 20px; height: 20px; }
.kpi .kic.s { background: var(--teal-wash); color: var(--teal-text); } .kpi .kic.w { background: var(--saffron-soft); color: var(--saffron-fg); } .kpi .kic.d { background: var(--red-wash); color: var(--red); }
.kpi.hero { background: var(--hero-bg); color: #fff; border: 0; overflow: hidden; box-shadow: 0 16px 40px rgba(49,46,129,.35); }
.kpi.hero::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed rgba(245,158,11,.5); }
.kpi.hero::after { display: block; content: ''; position: absolute; right: 24px; top: 20px; left: auto; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: none; opacity: 1; }
.kpi.hero .label { color: #C9CDE4; } .kpi.hero .value { color: #fff; } .kpi.hero .sub { color: var(--saffron); }
.kpi.hero .kic { background: rgba(255,255,255,.12); color: #fff; }
.value.goldt, .sub.goldt { color: var(--saffron-fg) !important; }

/* ---------- chips ---------- */
.badge { height: 26px; font-weight: 700; background: var(--paper); color: #39425A; }
.badge.gold { background: var(--saffron-soft); color: var(--saffron-fg); }
.badge.teal { background: var(--teal-wash); color: var(--teal-text); }
.badge.red { background: var(--red-wash); color: #BE123C; }
.badge.blue { background: var(--info-soft); color: var(--info-fg); }
.badge.ink { background: var(--accent-soft); color: var(--accent); }
.badge.pri-urgent { background: var(--red-wash); color: #BE123C; } .badge.pri-high { background: #FFE9EC; color: #BE123C; }
.badge.pri-medium { background: var(--saffron-soft); color: var(--saffron-fg); } .badge.pri-low { background: var(--paper); color: #39425A; }

/* ---------- tables, lists, tabs ---------- */
.table th { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--stone-2); background: var(--paper); padding: 11px 20px; }
.table td { padding: 14px 20px; border-top-color: var(--line-2); }
.table tr.click:hover td { background: #F8F8FE; }
.list-item { padding: 14px 22px; border-top-color: var(--line-2); }
.tabs { border-bottom-color: var(--line); }
.tabs button { color: var(--stone-2); font-weight: 500; }
.tabs button.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.tabs button .n { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ---------- app shell ---------- */
.sidebar { width: 264px; background: var(--navy); color: #C9CDE4; padding: 22px 16px; gap: 20px; }
.sidebar .brand img { height: 36px; }
.sidebar .acct { margin: 0 2px; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255,255,255,.06); }
.sidebar .acct b { color: #fff; font-size: 14px; } .sidebar .acct span { color: #A9AECB; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sidebar .acct span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.nav { gap: 3px; }
.nav .group { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #7F86AE; padding: 14px 12px 6px; }
.nav a { color: #C9CDE4; border-radius: 12px; font-weight: 500; font-size: 14.5px; padding: 10px 12px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(79,70,229,.6), rgba(79,70,229,.18)); color: #fff; font-weight: 600; }
.nav a.on::before { display: none; }
.nav a .badge.gold, .nav .count { background: var(--saffron); color: #3B2205; }
.sidebar .foot { background: rgba(255,255,255,.05); border-radius: 16px; padding: 12px; }
.topbar { background: rgba(255,255,255,.88); border-bottom-color: var(--line); padding: 14px 32px; }
.topbar .search input { background: var(--paper); border-color: transparent; border-radius: 14px; }
.topbar .search input:focus { background: #fff; border-color: var(--accent-bright); }
.topbar .tb-ic { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--fg); position: relative; }
.topbar .tb-ic:hover { border-color: #C7C4F5; color: var(--accent); }
.topbar .tb-ic .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.avatar { background: linear-gradient(135deg, var(--accent-bright), var(--violet)); color: #fff; }
.avatar.ink { background: var(--accent-soft); color: var(--accent); }
.content { padding: 30px 32px 56px; gap: 24px; }
.page-head h1 { font-size: 30px; }
.page-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* hearings as cards (dashboard) */
.hear-list { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 22px; }
.hear-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hear-row:hover { border-color: #C7C4F5; box-shadow: var(--shadow-2); }
.hear-row.next { border-color: #C7C4F5; background: linear-gradient(90deg, var(--accent-soft), #fff 70%); }
.hear-row .when { width: 62px; flex: none; text-align: center; font-weight: 800; font-size: 17px; line-height: 1.1; }
.hear-row .when small { display: block; font-size: 11px; font-weight: 700; color: var(--stone-2); letter-spacing: .04em; margin-top: 4px; }
.hear-row .what { flex: 1; min-width: 0; } .hear-row .what b { display: block; font-size: 15px; }
.hear-row .what span { font-size: 13px; color: var(--stone-2); }

/* reminders popover (web) */
.rem-pop { position: absolute; right: 0; top: 52px; width: 360px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); z-index: 80; overflow: hidden; }
.rem-pop h4 { font-size: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.rem-item { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); align-items: flex-start; color: var(--fg); }
.rem-item:first-of-type { border-top: 0; } .rem-item:hover { background: #F8F8FE; color: var(--fg); }
.rem-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.rem-ic.task { background: var(--saffron-soft); color: var(--saffron-fg); } .rem-ic.deadline { background: var(--red-wash); color: var(--red); }

/* ---------- modal, toast, notices ---------- */
.modal-back { background: rgba(14,19,48,.5); }
.modal { border-radius: 24px; }
.modal-head h2 { font-weight: 700; }
.modal-foot { background: #FAFBFE; border-radius: 0 0 24px 24px; }
.toast { background: var(--navy); border-radius: 14px; }
.notice { background: var(--saffron-soft); color: var(--saffron-fg); border-radius: 14px; }
.notice.teal { background: var(--teal-wash); color: var(--teal-text); } .notice.red { background: var(--red-wash); color: #BE123C; }
.notice.ink { background: var(--hero-bg); color: #fff; }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.tl-item::before { border-color: var(--accent-bright); }
.tl-item.done::before { background: var(--teal); border-color: var(--teal); }
.skel { background: linear-gradient(90deg, #ECEEF5 25%, #F5F6FB 50%, #ECEEF5 75%); background-size: 200% 100%; }
.prog > i { background: linear-gradient(90deg, var(--accent-bright), var(--violet)); }
.prog.done > i { background: var(--teal); }
.folder:hover, .dropzone:hover, .dropzone.over { border-color: #C7C4F5; }
.folder .fi { background: var(--accent-soft); color: var(--accent); }
.folder.firm .fi { background: var(--hero-bg); color: #fff; }
.combo-opt.on { box-shadow: inset 3px 0 0 var(--accent); } .combo-opt:hover, .combo-opt.on { background: #F5F5FF; }
.lang-grid label:has(input:checked) { border-color: var(--accent-bright); background: var(--accent-soft); }
.dropzone:hover, .dropzone.over { background: #F7F7FF; }
.imp-sum b { font-family: var(--font); font-weight: 800; }
.step.done .num { background: var(--teal); border-color: var(--teal); }
.demo-chip { border-style: solid; border-color: var(--line); background: #fff; border-radius: 14px; }
.demo-chip:hover { border-color: #C7C4F5; background: #FAFAFF; }
.prose h2 { font-family: var(--font); font-weight: 800; }
.card-dark .goldt, .auth-art .goldt, .notice.ink .goldt, .sidebar .goldt { color: var(--saffron); }

/* ---------- sign-in (web + admin) ---------- */
.auth-art { background: var(--hero-bg); background-color: #0E1330; }
.auth-art::after { border: 1px dashed rgba(245,158,11,.45); border-radius: 50%; width: 360px; height: 360px; right: -100px; bottom: -120px; }
.auth-art::before { background: none; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; width: 240px; height: 240px; right: -40px; bottom: -60px; }
.auth-art h1 { font-weight: 800; letter-spacing: -.03em; font-size: 44px; line-height: 1.08; }
.auth-art .gold { color: var(--saffron); }
.auth-panel { background: var(--ivory); }
.auth-box .eyebrow { color: var(--accent); font-weight: 700; }
.otp input { width: 52px; height: 60px; border-radius: 14px; font-weight: 800; font-size: 24px; border-color: var(--line); }
.otp input:focus { border-color: var(--accent-bright); }

@media (max-width: 900px) { .topbar { padding: 12px 16px; } .content { padding: 20px 16px 40px; } }
.auth-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.auth-tag svg { width: 15px; height: 15px; }
.auth-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; max-width: 560px; }
.auth-tiles div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.auth-tiles b { display: block; font-size: 20px; font-weight: 800; color: #fff; } .auth-tiles span { font-size: 12px; color: #C9CDE4; font-weight: 600; }
.kpi.hero .sub.goldt, .kpi.hero .sub.red { color: var(--saffron) !important; }

/* =================== mobile app (body.m) =================== */
body.m { background: #0B1028; }
body.m .app { background: var(--ivory); }
body.m .m-head { background: var(--hero-bg); padding-bottom: 30px; border-radius: 0 0 28px 28px; }
body.m .m-head::after { border: 1px dashed rgba(245,158,11,.4); border-radius: 50%; width: 220px; height: 220px; right: -70px; top: -60px; }
body.m .m-head h1 { font-family: var(--font); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
body.m .m-head .sub { color: #C9CDE4; }
body.m .m-head .ic { background: #fff; color: var(--accent); border-radius: 14px; font-weight: 800; }
body.m .m-head .back { color: #fff; }
body.m .m-head .stat { background: rgba(255,255,255,.1); border: 0; border-radius: 14px; }
body.m .m-head .stat b { font-family: var(--font); font-weight: 800; color: #fff; }
body.m .m-head .stat span { color: #C9CDE4; }
body.m .m-head .stat.alert b { color: var(--saffron); }
body.m .m-body { margin-top: 0; border-radius: 0; background: transparent; padding-top: 20px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.m .m-sec > .row:first-child h2 { font-size: 17px; font-weight: 800; }
body.m .m-card { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow-1); }
body.m .m-card.dark { background: var(--hero-bg); border: 0; }
body.m .m-card.gold-edge { border-left: 4px solid var(--saffron); }
body.m .hear .item { background: var(--accent-soft); color: var(--accent); border-radius: 14px; height: 50px; }
body.m .hear .item small { color: var(--accent); opacity: .7; }
body.m .m-search input { border-radius: 14px; }
body.m .m-menu { border-radius: 18px; } body.m .m-menu .mi { background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
body.m .m-menu a, body.m .m-menu button { color: var(--fg); }
body.m .m-banner { background: var(--navy); border-radius: 14px; } body.m .m-banner.warn { background: var(--saffron-soft); color: var(--saffron-fg); }

/* bottom tab bar with the + button in the middle */
body.m .m-tabs { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); align-items: start; box-shadow: 0 -6px 24px rgba(14,19,48,.06); }
body.m .m-tabs a { color: #8A90A8; font-weight: 600; }
body.m .m-tabs a.on { color: var(--accent); } body.m .m-tabs a.on svg { filter: none; }
body.m .m-plus { justify-self: center; width: 58px; height: 58px; border-radius: 18px; border: 0; margin-top: -26px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent-bright), var(--violet)); box-shadow: 0 10px 24px rgba(79,70,229,.45); cursor: pointer; }
body.m .m-plus svg { width: 26px; height: 26px; } body.m .m-plus:active { transform: scale(.94); }
body.m .fab { display: none; }

/* quick add grid */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 14px var(--font); color: var(--fg); cursor: pointer; }
.qa button svg { width: 24px; height: 24px; color: var(--accent); }
.qa button small { font-size: 11.5px; font-weight: 500; color: var(--stone-2); }
.qa button:disabled { opacity: .5; }
.qa button:active { background: var(--accent-soft); }

/* reminders */
.rem-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.rem-ic.task { background: var(--saffron-soft); color: var(--saffron-fg); } .rem-ic.deadline { background: var(--red-wash); color: var(--red); }
.rem-hero { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--hero-bg); color: #fff; }
.rem-hero .rem-ic { background: rgba(255,255,255,.14); color: var(--saffron); width: 48px; height: 48px; }
.rem-hero b { display: block; font-size: 18px; margin: 4px 0; line-height: 1.25; }
.rem-offer { border: 1px solid #C7C4F5 !important; background: linear-gradient(90deg, var(--accent-soft), #fff 80%) !important; }

/* lock screen */
.m-lock { min-height: 100vh; max-width: 520px; margin: 0 auto; background: radial-gradient(120% 70% at 100% 0%, #6D28D9 0%, rgba(109,40,217,0) 60%), linear-gradient(180deg, #312E81, #0E1330 70%);
  color: #fff; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top) + 56px) 28px calc(env(safe-area-inset-bottom) + 34px); gap: 22px; text-align: center; position: relative; overflow: hidden; }
.m-lock::after { content: ''; position: absolute; right: -80px; bottom: 60px; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed rgba(245,158,11,.35); pointer-events: none; }
.m-lock .lk-top img { height: 40px; width: auto; margin: 0 auto 18px; }
.m-lock .lk-top p { font-size: 18px; font-weight: 600; color: #E6E8F5; } .m-lock .lk-top .tiny { color: #A9AECB; }
.m-lock .lock-btn { margin-top: 30px; width: 124px; height: 124px; background: rgba(255,255,255,.08); color: var(--saffron); box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 0 0 30px rgba(255,255,255,.02); }
.m-lock .lock-btn svg { width: 54px; height: 54px; }
.m-lock .lk-hint { color: #C9CDE4; font-size: 14px; max-width: 280px; }
.m-lock .lk-off { background: rgba(245,158,11,.15); color: #FCD34D; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.m-lock .lk-acts { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.m-lock .link-btn { color: var(--saffron); }

/* sign-in screens */
body.m .m-auth { background: var(--hero-bg); background-color: #0E1330; }
body.m .m-auth .top::after { border: 1px dashed rgba(245,158,11,.4); border-radius: 50%; width: 200px; height: 200px; }
body.m .m-auth .top h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
body.m .m-auth .top p { color: #C9CDE4; }
body.m .m-auth .panel { background: var(--ivory); border-radius: 28px 28px 0 0; }
body.m .modal { border-radius: 28px 28px 0 0; }
/* v1.6: logo on the main mobile screens */
body.m .m-logo { position: relative; z-index: 1; margin-bottom: 14px; } body.m .m-logo img { height: 24px; width: auto; display: block; }
/* v1.6: draft invoice editor */
.inv-sec { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.modal-foot .danger { color: var(--red); margin-right: auto; }
/* v1.6: WhatsApp attachments */
.wa-files { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wa-file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.wa-file .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E7F7EE; color: #146C3A; flex: none; }
.wa-file input { accent-color: #1FAF5A; width: 18px; height: 18px; }
/* v1.6: per-person permissions */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perm-group { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.perm-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.perm-row input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.perm-row.diff { background: var(--saffron-soft); }
@media (max-width: 760px) { .perm-grid { grid-template-columns: 1fr; } }
/* v1.6: activity log filters */
.act-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; align-items: end; }
.tl-item .tiny svg { width: 12px; height: 12px; vertical-align: -2px; }
/* v1.7: SEO & AI guide */
.serp { font-family: Arial, sans-serif; max-width: 600px; } .serp .u { font-size: 12px; color: #4d5156; } .serp .t { font-size: 18px; color: #1a0dab; line-height: 1.3; margin: 2px 0; }
.serp .d { font-size: 13px; color: #4d5156; line-height: 1.45; }
.seo-ring { --p: 50; width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.seo-ring b { font-size: 26px; font-weight: 800; line-height: 1; } .seo-ring span { font-size: 11px; color: var(--stone-2); }
.seo-fix { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--paper); margin-top: 6px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kw { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: 500 12.5px var(--font); color: var(--fg); cursor: pointer; }
.kw:hover { border-color: #C7C4F5; color: var(--accent); background: var(--accent-soft); }
.ai-out { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.ai-out ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- v1.8: legal footer, legal page preview (Super Admin), hidden helper ---------- */
[hidden] { display: none !important; }
.lq-legal { padding-top: 6px; }
.lq-legal a { text-decoration: none; font-weight: 600; }
.lq-legal a:hover { text-decoration: underline; }
.legal-preview { font-size: 14px; line-height: 1.6; max-height: 760px; overflow: auto; padding-right: 6px; }
.legal-preview h1 { font-size: 22px; margin: 0 0 12px; }
.legal-preview h2 { font-size: 16px; margin: 20px 0 6px; }
.legal-preview h3 { font-size: 14.5px; margin: 16px 0 4px; }
.legal-preview p { margin: 0 0 10px; }
.legal-preview ul, .legal-preview ol { margin: 0 0 12px; padding-left: 20px; }
.field > .lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.field > .lbl .sub { font-weight: 500; font-size: 12px; color: var(--muted, #6B7280); display: inline-flex; align-items: center; gap: 4px; }
.field > .lbl .sub svg { width: 13px; height: 13px; }
