/* ============================================================================
   Syrian Elite Conference - member portal
   Light/dark admin-console UI, "pastel" skin (mockup #6, dashboard-tasks-pastel):
   tinted RTL sidebar with an animated collapse, flat top bar, rounded card +
   table surfaces, one blue primary with a gradient active-nav state.
   Theme via [data-theme="dark"] on <html>. Bilingual AR (RTL) / TR.
   Frontend only; data via js/app/store.js (each fn maps 1:1 to a WP REST route).
   ========================================================================== */

:root {
  --bg:          #f4f4fb;
  --surface:     #ffffff;
  --surface-2:   #fafaff;
  --surface-3:   #f2f4fb;
  --border:      #ececf4;
  --border-2:    #e2e2ee;

  --tx:          #2c2c3a;
  --tx-2:        #6b6b80;
  --tx-3:        #9a9ab0;
  --tx-4:        #b4b4c6;

  --primary:     #4c8dff;
  --primary-2:   #7aa8ff;
  --primary-h:   #3a7cf0;
  --primary-sf:  #e7f0ff;
  --primary-bd:  #cfe0ff;
  --sidebar:     #e8e9f5;

  --green:  #00b894;  --green-sf:  #e3f8f2;
  --amber:  #f5a623;  --amber-sf:  #fdf0dc;
  --red:    #ff6b81;  --red-sf:    #ffe9ed;
  --cyan:   #00b8c4;  --cyan-sf:   #e0f7f9;
  --violet: #7a6ff0;  --violet-sf: #ecebfd;

  --chk-bd:      #cdcddd;
  --sk-shine:    rgba(255, 255, 255, .72);
  --scroll:      #d7d7e6;
  --scroll-h:    #c2c2d6;
  --msg-err-bd:  #ffd2da;
  --msg-ok-bd:   #bff0e2;
  --overlay:     rgba(20, 20, 40, .42);

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(28, 28, 60, .04), 0 4px 12px -8px rgba(28, 28, 60, .10);
  --shadow:    0 1px 2px rgba(28, 28, 60, .04), 0 8px 24px -12px rgba(28, 28, 60, .12);
  --shadow-md: 0 2px 6px rgba(28, 28, 60, .06), 0 16px 34px -14px rgba(28, 28, 60, .20);
  --shadow-lg: 0 28px 60px -18px rgba(28, 28, 60, .30), 0 10px 24px -10px rgba(28, 28, 60, .16);

  --grad-accent: linear-gradient(135deg, var(--primary), var(--primary-2));
  --ring: 0 0 0 3px var(--primary-sf);

  --sw:        256px;   /* sidebar width, expanded */
  --sw-min:    72px;    /* collapsed */
  --topbar-h:  60px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg:          #0f1420;
  --surface:     #171d2b;
  --surface-2:   #1b2332;
  --surface-3:   #232c3d;
  --border:      #242c3c;
  --border-2:    #313a4d;

  --tx:          #e8ebf2;
  --tx-2:        #a3abbd;
  --tx-3:        #6c7688;
  --tx-4:        #566072;

  --primary:     #5a8dff;
  --primary-2:   #8fb4ff;
  --primary-h:   #79a3ff;
  --primary-sf:  rgba(90, 141, 255, .16);
  --primary-bd:  rgba(90, 141, 255, .40);
  --sidebar:     #141a29;

  --green:  #2fd0a8;  --green-sf:  rgba(47, 208, 168, .16);
  --amber:  #f2b03a;  --amber-sf:  rgba(242, 176, 58, .16);
  --red:    #ff7d92;  --red-sf:    rgba(255, 125, 146, .16);
  --cyan:   #35c9d6;  --cyan-sf:   rgba(53, 201, 214, .16);
  --violet: #9a8ff5;  --violet-sf: rgba(154, 143, 245, .16);

  --chk-bd:      #3f485a;
  --sk-shine:    rgba(255, 255, 255, .06);
  --scroll:      #333b48;
  --scroll-h:    #414b5c;
  --msg-err-bd:  rgba(236, 91, 91, .4);
  --msg-ok-bd:   rgba(62, 198, 88, .4);
  --overlay:     rgba(0, 0, 0, .55);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow:    0 1px 3px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .5), 0 2px 8px -2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 22px 50px -12px rgba(0, 0, 0, .62);

  color-scheme: dark;
}

* { box-sizing: border-box; }
.app [hidden] { display: none !important; }

.app {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -.003em;
}
.main {
  background:
    radial-gradient(1200px 340px at 100% -10%, var(--primary-sf), transparent 70%),
    var(--bg);
  background-attachment: local;
}
[dir="rtl"] .main { background-position: 0% -10%, 0 0; }
.app a { color: inherit; text-decoration: none; }
.app button { font: inherit; color: inherit; cursor: pointer; }
.app button:where(:not(.btn)) { background: none; border: 0; }
.app h1, .app h2, .app h3, .app h4, .app p, .app dl, .app dd, .app figure, .app ul, .app ol { margin: 0; }
.app ul, .app ol { list-style: none; padding: 0; }
.app img { display: block; max-width: 100%; }
.app :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.app ::selection { background: var(--primary); color: #fff; }
.app ::-webkit-scrollbar { width: 10px; height: 10px; }
.app ::-webkit-scrollbar-thumb { background: var(--scroll); border: 3px solid var(--bg); border-radius: 99px; }
.app ::-webkit-scrollbar-thumb:hover { background: var(--scroll-h); }

/* ---------- shell ---------------------------------------------------- */

.shell { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); min-height: 100svh; }
.app.is-collapsed .shell { grid-template-columns: var(--sw-min) minmax(0, 1fr); }
.shell { transition: grid-template-columns .2s var(--ease); }
.sidebar { transition: width .2s var(--ease); }

/* ---------- sidebar ------------------------------------------------- */

.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100svh; width: var(--sw);
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 40;
}

.sb-brand {
  display: flex; align-items: center; gap: 11px;
  height: var(--topbar-h); padding: 0 18px; flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.sb-brand img { width: 40px; height: 40px; flex: 0 0 auto; }
.sb-brand b { font-weight: 700; font-size: 1.02rem; color: var(--tx); white-space: nowrap; }
.sb-brand .sub { display: block; font-size: .68rem; font-weight: 500; color: var(--tx-4); white-space: nowrap; }

.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px 18px; }
.sb-group { margin-top: 16px; }
.sb-group:first-child { margin-top: 2px; }
.sb-group-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--tx-4); padding: 6px 12px; white-space: nowrap;
}
.sb-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; margin: 1px 0;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--tx-2); white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.sb-link svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.8; color: var(--tx-3); transition: color .14s; }
.sb-link:hover { background: var(--surface-3); color: var(--tx); }
.sb-link:hover svg { color: var(--tx-2); }
.sb-link[aria-current="page"] { background: var(--primary-sf); color: var(--primary); font-weight: 700; }
.sb-link[aria-current="page"] svg { color: var(--primary); }
.sb-link[aria-current="page"]::before {
  content: ""; position: absolute; inset-block: 9px; inset-inline-start: 0;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
[dir="rtl"] .sb-link[aria-current="page"]::before { border-radius: 3px 0 0 3px; }
.sb-link .pill {
  margin-inline-start: auto; font-size: .66rem; font-weight: 700;
  background: var(--primary); color: #fff; border-radius: 99px; padding: 1px 7px; line-height: 1.5;
}

/* ---- collapsed: fixed-height icon rail with hover flyout labels ---- */
/* While the rail animates 256->72 it must stay clipped, otherwise the still-wide
   nowrap labels spill over the main column for ~200ms (transient scrollbar + jank).
   Delay the switch to overflow:visible until the width transition has finished;
   on expand the .is-collapsed rules drop and it reverts to hidden immediately. */
.app.is-collapsed .sidebar {
  width: var(--sw-min); overflow: visible;
  transition: width .2s var(--ease), overflow 0s .2s;
}
.app.is-collapsed .sb-nav { overflow: visible; transition: overflow 0s .2s; }
.app.is-collapsed .sb-brand { justify-content: center; padding: 0; }
.app.is-collapsed .sb-brand span,
.app.is-collapsed .sb-group-label { display: none; }
.app.is-collapsed .sb-group { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.app.is-collapsed .sb-group:first-child { border-top: 0; padding-top: 0; }
.app.is-collapsed .sb-link { justify-content: center; padding: 0; }
.app.is-collapsed .sb-link .pill { position: absolute; inset-inline-end: 6px; top: 4px; margin: 0; }
.app.is-collapsed .sb-link .lbl {
  position: absolute; inset-inline-start: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--surface); color: var(--tx); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 7px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 70;
  transition: opacity .12s var(--ease), transform .12s var(--ease);
}
[dir="rtl"] .app.is-collapsed .sb-link .lbl { transform: translateY(-50%) translateX(-6px); }
.app.is-collapsed .sb-link:hover .lbl { opacity: 1; transform: translateY(-50%); }

.sb-foot { flex: 0 0 auto; border-top: 1px solid var(--border); padding: 8px 10px; }
.app.is-collapsed .sb-foot .sb-link { margin: 0; }

/* ---------- topbar ------------------------------------------------ */

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h); padding: 0 20px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .topbar { background: var(--surface); } }
.tb-toggle, .tb-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--tx-2);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.tb-toggle:hover, .tb-icon:hover { background: var(--surface-3); color: var(--tx); }
.tb-toggle svg, .tb-icon svg { width: 19px; height: 19px; stroke-width: 1.9; }
.tb-theme .ic-sun { display: none; }
.tb-theme span { display: inline-flex; }
:root[data-theme="dark"] .tb-theme .ic-moon { display: none; }
:root[data-theme="dark"] .tb-theme .ic-sun { display: inline-flex; }
.tb-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-crumb { font-size: .78rem; color: var(--tx-3); }
.tb-crumb::before { content: "·"; margin: 0 7px; }
.tb-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }

.langset { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.langset .lang-btn { padding: 6px 11px; font-size: .74rem; font-weight: 600; color: var(--tx-3);
  transition: background .14s, color .14s; }
.langset .lang-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.langset .lang-btn:not([aria-pressed="true"]):hover { color: var(--tx); background: var(--surface-3); }

.tb-user { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: var(--radius-sm);
  transition: background .14s var(--ease); }
.tb-user:hover { background: var(--surface-3); }
.tb-avatar { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet)); }
.tb-ident { display: grid; line-height: 1.2; }
.tb-ident b { font-size: .82rem; font-weight: 600; color: var(--tx); }
.tb-ident span { font-size: .7rem; color: var(--tx-3); }
.tb-user .chev { width: 14px; height: 14px; color: var(--tx-3); }

/* ---------- page body ------------------------------------------- */

.view { padding: 28px clamp(16px, 3.6vw, 38px) 56px; max-width: 1400px; }
.view.narrow { max-width: 860px; }

.page-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.page-head .eyebrow { flex-basis: 100%; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 7px; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.022em; line-height: 1.2; }
.page-head .desc { font-size: .9rem; color: var(--tx-3); margin-top: 5px; flex-basis: 100%; max-width: 64ch; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; align-self: center; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- card ---------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.card + .card { margin-top: 16px; }
a.card, .card.link { display: block; }
a.card:hover, .card.link:hover { box-shadow: var(--shadow-md); border-color: var(--primary-bd); transform: translateY(-3px); }
a.card:active, .card.link:active { transform: translateY(-1px); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; }
.card-head .titles { display: grid; gap: 2px; min-width: 0; }
.card-head .sub { font-size: .78rem; color: var(--tx-3); font-weight: 400; }
.card-head .ha { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.card-head .card-ic { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--primary-sf); color: var(--primary); }
.card-head .card-ic svg { width: 17px; height: 17px; stroke-width: 1.9; }
.card-body { padding: 20px; }
.card-body + .card-body { border-top: 1px solid var(--border); }
.card-body.flush { padding: 0; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius); }
.card-foot .end { margin-inline-start: auto; }

/* ---------- stat tiles -------------------------------------- */

.stat { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 15px; align-items: flex-start; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); overflow: hidden; }
.stat::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: var(--primary-sf); opacity: .5; pointer-events: none; }
.stat.green::after { background: var(--green-sf); }
.stat.amber::after { background: var(--amber-sf); }
.stat.violet::after { background: var(--violet-sf); }
a.stat:hover, .stat.link:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-bd); }
.stat-ic { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; }
.stat-ic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.stat-ic.blue { background: var(--primary-sf); color: var(--primary); }
.stat-ic.green { background: var(--green-sf); color: var(--green); }
.stat-ic.amber { background: var(--amber-sf); color: var(--amber); }
.stat-ic.violet { background: var(--violet-sf); color: var(--violet); }
.stat-main { position: relative; z-index: 1; }
.stat-main .n { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat-main .l { font-size: .8rem; color: var(--tx-3); margin-top: 2px; }
.stat-main .t { font-size: .74rem; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px; }
.stat-main .t.up { color: var(--green); background: var(--green-sf); }
.stat-main .t.down { color: var(--red); background: var(--red-sf); }

/* ---------- table ----------------------------------------- */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
.tbl caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbl thead th { text-align: start; white-space: nowrap; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--tx-3); padding: 11px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); }
.tbl tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: start; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.sel { background: var(--primary-sf); }
.tbl .c-check { width: 44px; }
.tbl .c-name { font-weight: 600; color: var(--tx); white-space: normal; }
.tbl .c-name small { display: block; font-weight: 400; color: var(--tx-3); font-size: .78rem; }
.tbl .c-contact { color: var(--tx-2); }
.tbl .c-contact small { display: block; color: var(--tx-3); font-size: .78rem; }
.tbl .c-muted { color: var(--tx-3); }
/* keep this a real table-cell: display:flex on a <td> drops table-cell layout,
   so the cell no longer matches row height and its buttons ride to the top
   instead of centering with the rest of the row */
.tbl .c-act { white-space: nowrap; }
.tbl .c-act .act { display: inline-block; vertical-align: middle; }
.tbl .c-act .act + .act { margin-inline-start: 2px; }
.tbl-empty { padding: 44px 20px; text-align: center; color: var(--tx-3); font-size: .86rem; }

.chk { width: 17px; height: 17px; border: 1.5px solid var(--chk-bd); border-radius: 5px; display: inline-grid; place-items: center;
  vertical-align: middle; background: var(--surface); cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease), box-shadow .12s; }
.chk svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .12s var(--ease), transform .12s var(--ease); }
.chk[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.chk[aria-checked="true"] svg { opacity: 1; transform: scale(1); }
.chk:hover { border-color: var(--primary); }
.chk:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-sf); }

.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--tx-3); flex-wrap: wrap; }
.pager .grp { display: flex; align-items: center; gap: 4px; }
.pager .grp .lbl { margin-inline-end: 6px; }
.pager button { padding: 4px 10px; border-radius: 6px; color: var(--tx-2); border: 1px solid transparent; }
.pager button:hover { background: var(--surface-3); }
.pager button[aria-current="true"] { background: var(--primary); color: #fff; }
.pager .spacer { flex: 1; }
.pager .range { font-size: .78rem; color: var(--tx-3); margin-inline-start: 10px; white-space: nowrap; }
.pager .nav { display: flex; gap: 6px; }
.pager .nav button { border-color: var(--border-2); }
.pager button:disabled { opacity: .45; pointer-events: none; }

/* ---------- tabs / segmented ------------------------------ */

.tabs { display: flex; flex-wrap: wrap; gap: 4px 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { width: 0; height: 0; display: none; }
.tabs a, .tabs button { position: relative; padding: 10px 14px; font-size: .84rem; font-weight: 600; color: var(--tx-3); white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--tx); }
.tabs a[aria-current], .tabs button[aria-current] { color: var(--primary); }
.tabs a[aria-current]::after, .tabs button[aria-current]::after { content: ""; position: absolute; inset-inline: 8px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ---------- badges --------------------------------------- */

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.gray   { color: var(--tx-2); background: var(--surface-3); }
.badge.blue   { color: var(--primary); background: var(--primary-sf); }
.badge.green  { color: var(--green); background: var(--green-sf); }
.badge.amber  { color: var(--amber); background: var(--amber-sf); }
.badge.red    { color: var(--red); background: var(--red-sf); }
.badge.violet { color: var(--violet); background: var(--violet-sf); }
.badge.flat::before { display: none; }

.tag { font-size: .74rem; color: var(--tx-2); background: var(--surface-3); border-radius: 5px; padding: 2px 8px; display: inline-block; }

/* ---------- buttons ------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  font-size: .85rem; font-weight: 600; line-height: 1;
  background: transparent; color: var(--tx-2);
  border: 1px solid transparent; border-radius: var(--radius-sm); white-space: nowrap;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), box-shadow .14s, transform .08s;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn[data-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.btn[data-busy="true"]::after { content: ""; position: absolute; width: 15px; height: 15px; border: 2px solid currentColor;
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover:not(:disabled) { background: var(--primary-h); box-shadow: var(--shadow-md); }
.btn-primary:active:not(:disabled) { box-shadow: var(--shadow-sm); }
.btn-primary[data-busy="true"]::after { color: #fff; }
.btn-outline { border-color: var(--border-2); color: var(--tx-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--tx-4); color: var(--tx); background: var(--surface-2); }
.btn-ghost { color: var(--tx-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--tx); }
.btn-danger { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger:hover:not(:disabled) { filter: brightness(.94); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: .78rem; }
.btn-block { width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

.act { font-size: .78rem; font-weight: 600; color: var(--primary); padding: 4px 8px; border-radius: 5px; }
.act:hover { background: var(--primary-sf); }
.act.red { color: var(--red); }
.act.red:hover { background: var(--red-sf); }
.act.mute { color: var(--tx-3); }
.act.mute:hover { background: var(--surface-3); color: var(--tx); }
.act:disabled { opacity: .5; pointer-events: none; }

/* ---------- forms ------------------------------------- */

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label { font-size: .8rem; font-weight: 600; color: var(--tx); display: flex; align-items: baseline; gap: 6px; }
.field > label .req { color: var(--red); font-weight: 700; }
.field > label .opt { color: var(--tx-4); font-weight: 400; font-size: .72rem; }
.field .hint { font-size: .74rem; color: var(--tx-3); font-weight: 400; margin-top: -1px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .875rem; line-height: 1.4; color: var(--tx);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 11px 14px; min-height: 42px;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease); }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
/* Custom chevron via a pseudo-element on the .field, NOT background-image on the
   <select> itself - Chromium tiles a select's background-image across the open
   option popup (the "weird texture" bug). The ::before is placed into the same
   grid cell as the control (row 2, after the label) and ignores pointer events. */
.field select { appearance: none; padding-inline-end: 36px; cursor: pointer; }
.field:has(> select) { position: relative; }
.field:has(> select)::before {
  content: ""; grid-column: 1; grid-row: 2; align-self: center; justify-self: end;
  width: 11px; height: 11px; margin-inline-end: 14px; pointer-events: none; z-index: 1;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%238993a4' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .field:has(> select)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%237d8798' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-4); }
.field input:hover:not(:focus):not(:disabled), .field select:hover:not(:focus):not(:disabled), .field textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--tx-4); background: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-sf); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--surface-3); color: var(--tx-3); cursor: not-allowed; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--red); background: var(--red-sf); }
.field--invalid input:focus, .field--invalid select:focus, .field--invalid textarea:focus { box-shadow: 0 0 0 3px var(--red-sf); }
.field .field-error { font-size: .76rem; color: var(--red); display: flex; align-items: center; gap: 5px; }
.field .field-error:empty { display: none; }

/* account-status banner (pending / rejected) under the top bar */
.status-banner {
  padding: 10px clamp(16px, 3.6vw, 38px);
  font-size: .82rem; font-weight: 600; line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.status-banner.pending { background: var(--amber-sf); color: var(--amber); }
.status-banner.rejected { background: var(--red-sf); color: var(--red); }

/* password show/hide toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-inline-end: 42px; }
.pw-toggle {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--tx-3); background: none; border: 0; cursor: pointer;
  transition: color .12s var(--ease), background .12s var(--ease);
}
.pw-toggle:hover { color: var(--tx); background: var(--surface-3); }
.pw-toggle svg { width: 18px; height: 18px; }
.app.is-auth .pw-toggle { color: #8b9bc0; }
.app.is-auth .pw-toggle:hover { color: #f4f7ff; background: rgba(126,160,224,.14); }

/* file input - dashed drop-zone affordance */
.field input[type="file"] {
  min-height: 0; padding: 14px; font-size: .8rem; color: var(--tx-3);
  border: 1px dashed var(--border-2); background: var(--surface-2); cursor: pointer;
  transition: border-color .14s var(--ease), background .14s var(--ease), color .14s var(--ease); }
.field input[type="file"]:hover { border-color: var(--primary); background: var(--primary-sf); color: var(--tx-2); }
.field input[type="file"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-sf); }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: .8rem; font-weight: 600; margin-inline-end: 12px;
  min-height: 32px; padding: 0 13px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--tx-2); cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease); }
.field input[type="file"]::file-selector-button:hover { border-color: var(--primary); color: var(--primary); }

.field-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid { gap: 0 18px; }
@media (max-width: 560px) { .field-row, .form-grid { grid-template-columns: 1fr; } }

/* grouped section inside a long form */
.form-section { border: 0; padding: 0; margin: 0 0 8px; }
.form-section > legend { padding: 0; margin-bottom: 12px; font-size: .82rem; font-weight: 700; color: var(--tx);
  letter-spacing: .01em; width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

/* action bar at the end of a form */
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-actions .end { margin-inline-start: auto; }
.form-actions--plain { border-top: 0; padding-top: 0; margin-top: 16px; }

/* segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; flex-wrap: wrap;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 9px; }
.seg label { padding: 7px 15px; font-size: .82rem; font-weight: 500; color: var(--tx-2);
  border-radius: 6px; cursor: pointer; transition: background .14s var(--ease), color .14s var(--ease), box-shadow .14s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; }
.seg label:hover { color: var(--tx); }
.seg label:has(input:checked) { background: var(--primary); color: #fff; font-weight: 600; box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* toggle switch */
.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--border-2);
  transition: background .16s var(--ease); }
.switch .track::before { content: ""; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .16s var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + .track::before { transform: translateX(-18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--primary-sf); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .track { opacity: .5; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row .lbl b { display: block; font-size: .88rem; font-weight: 600; color: var(--tx); }
.switch-row .lbl span { font-size: .78rem; color: var(--tx-3); }

.msg { padding: 12px 14px; font-size: .82rem; line-height: 1.5; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; }
.msg--err { color: var(--red); background: var(--red-sf); border-color: var(--msg-err-bd); }
.msg--ok  { color: var(--green); background: var(--green-sf); border-color: var(--msg-ok-bd); }
.msg--info { color: var(--primary); background: var(--primary-sf); border-color: var(--primary-bd); }

/* key/value list */
.kv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.kv > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv dt { font-size: .78rem; color: var(--tx-3); }
.kv dd { font-size: .87rem; color: var(--tx); }
.kv dd.field { border: 0; margin: 0; }
.kv dd .void { color: var(--tx-4); }
@media (max-width: 860px) { .kv { grid-template-columns: 1fr; column-gap: 0; } }
@media (max-width: 520px) { .kv > div { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- content: blog / sponsors / misc -------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; }
.prose h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.prose p { color: var(--tx-2); margin-bottom: 14px; line-height: 1.75; }
.prose ul { list-style: disc; padding-inline-start: 22px; color: var(--tx-2); margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }

.post-list { display: grid; gap: 14px; }
.post { display: flex; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.post:hover { box-shadow: var(--shadow-md); border-color: var(--primary-bd); transform: translateY(-3px); }
.post .thumb { width: 132px; height: 92px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); flex: 0 0 auto; display: grid; place-items: center; color: var(--tx-4); }
.post .thumb svg { width: 28px; height: 28px; }
.post .thumb.has-img { padding: 0; overflow: hidden; }
.post .thumb.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* blog editor: cover-image picker */
.blog-img-prev { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.blog-img-prev.is-empty { display: grid; place-items: center; height: 120px; color: var(--tx-4); font-size: .82rem; border-style: dashed; }
.blog-img-prev.has-img { position: relative; }
.blog-img-prev.has-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.blog-img-x { position: absolute; top: 8px; inset-inline-end: 8px; padding: 5px 12px; font-size: .76rem; font-weight: 600; border-radius: 999px; background: rgba(4,9,28,.72); color: #fff; backdrop-filter: blur(4px); }
.blog-img-x:hover { background: var(--danger, #c0392b); }
.post-body h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 4px; }
.post-body .meta { font-size: .76rem; color: var(--tx-3); margin-bottom: 6px; }
.post-body p { font-size: .85rem; color: var(--tx-2); line-height: 1.6; }
@media (max-width: 560px) { .post { flex-direction: column; } .post .thumb { width: 100%; height: 120px; } }

/* ---------- sponsors: pure-CSS org-chart tree --------------------------------
   Classic nested-<ul> tree (adapted from the widely-used pure-CSS family/org
   chart): siblings sit side by side, connected by auto elbow lines. Themed to
   the site tokens and mirrored for RTL. */
.sponsor-tree { --line: var(--border-2); overflow-x: auto; padding: 4px 2px 22px; }
.tree { display: inline-block; min-width: 100%; text-align: center; }
.tree ul { display: flex; justify-content: center; align-items: flex-start; position: relative; padding-top: 22px; }
.tree > ul { padding-top: 0; }
.tree li { list-style: none; position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 22px 9px 0; }

/* connector lines */
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px;
  border-top: 2px solid var(--line); }
.tree li::before { right: 50%; }
.tree li::after  { left: 50%; border-left: 2px solid var(--line); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 8px 0 0; }
.tree li:first-child::after  { border-radius: 8px 0 0 0; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 22px;
  border-left: 2px solid var(--line); }

/* RTL: mirror the two end caps */
[dir="rtl"] .tree li:first-child::before { border: 0 none; border-top: 2px solid var(--line);
  border-right: 2px solid var(--line); border-radius: 0 8px 0 0; }
[dir="rtl"] .tree li:first-child::after  { border: 0 none; border-radius: 0; }
[dir="rtl"] .tree li:last-child::before  { border: 0 none; border-radius: 0; }
[dir="rtl"] .tree li:last-child::after   { border-top: 2px solid var(--line); border-left: 2px solid var(--line);
  border-radius: 8px 0 0 0; }

/* tier accent colour, inherited by the tier node + its cards */
.tree li.tier-headline { --acc: #8f97ad; }
.tree li.tier-gold    { --acc: #e2a139; }
.tree li.tier-bronze  { --acc: #c08150; }
.tree li.tier-partner { --acc: var(--primary); }

/* nodes */
.tree .tnode { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 13px 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  box-shadow: var(--shadow-sm); color: var(--tx); font-size: .84rem; text-decoration: none; min-width: 120px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease); }
.tree a.tnode:hover, .tree .tnode--card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-bd); }

.tree .tnode--root { border: 0; color: #fff; font-weight: 700; flex-direction: row; gap: 9px; padding: 11px 20px;
  background: var(--primary); background-image: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px -14px rgba(28, 28, 60, .28), var(--shadow-sm);
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--primary) 62%, transparent), var(--shadow-sm); }
.tree .tnode--root .mk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); font-size: .78rem; }

.tree .tnode--tier { --acc: var(--primary); flex-direction: row; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg); color: var(--tx-2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tree .tnode--tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(120, 120, 140, .18);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent); }

.tree .tnode--card { --acc: var(--primary); border-top: 0;
  box-shadow: inset 0 3px 0 var(--acc), var(--shadow-sm); }
.tree .tnode--card .logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  background: var(--acc); background-image: linear-gradient(140deg, var(--acc), color-mix(in srgb, var(--acc) 42%, #fff));
  box-shadow: 0 7px 16px -9px rgba(28, 28, 60, .30);
  box-shadow: 0 7px 16px -9px color-mix(in srgb, var(--acc) 70%, transparent); }
.tree .tnode--card b { font-size: .86rem; font-weight: 700; color: var(--tx); }
.tree .tnode--card .note { font-size: .73rem; color: var(--tx-3); line-height: 1.4; }
.tree .tnode--card.is-lg { min-width: 180px; padding: 20px 26px; }
.tree .tnode--card.is-lg .logo { width: 56px; height: 56px; border-radius: 14px; font-size: 1.3rem; }

.sponsor-actions { display: flex; gap: 8px; margin-top: 4px; }
.sponsor-actions .act { font-size: .72rem; padding: 3px 8px; }

@media (max-width: 640px) {
  .tree ul { flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; }
  .tree li { padding: 14px 0 0; }
  .tree li::before, .tree li::after, .tree ul ul::before { display: none; }
}

/* ---------- exhibition floor plan ---------------------- */

.floor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .floor { grid-template-columns: 1fr; } }
.floor-map { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.booth-grid { display: grid; grid-template-columns: repeat(8, minmax(44px, 64px)); gap: 8px; justify-content: center; }
.booth { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--tx-3); cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s; }
.booth:hover { transform: translateY(-2px); border-color: var(--primary); }
.booth.taken { background: var(--surface-3); color: var(--tx-4); cursor: not-allowed; }
.booth.pending { background: var(--amber-sf); border-color: var(--amber); color: var(--amber); }
.booth.aisle { background: transparent; border: 0; cursor: default; }
/* admin floor-plan editor: aisle cells become visible click targets */
.booth-grid.is-admin .booth { cursor: pointer; }
.booth-grid.is-admin .booth.aisle { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, var(--surface-3) 4px, var(--surface-3) 8px);
  border: 1px dashed var(--border-2); opacity: .7; }
.booth[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.booth-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.booth-info .spec { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.booth-info .spec:last-of-type { border-bottom: 0; }
.booth-info .spec span:first-child { color: var(--tx-3); }

/* ---------- directory cards --------------------------- */

.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.dir-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-bd); transform: translateY(-3px); }
.dir-card .top { display: flex; align-items: center; gap: 12px; }
.dir-card .av { width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .85rem; background: var(--grad-accent); box-shadow: var(--shadow-sm); }
.dir-card h3 { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.dir-card .role { font-size: .76rem; color: var(--tx-3); }
.dir-card .meta { font-size: .8rem; color: var(--tx-2); }
.dir-card .meta b { color: var(--tx); }
.dir-card p { font-size: .82rem; color: var(--tx-3); line-height: 1.5; }
.dir-card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir-card .price { font-weight: 700; }
.dir-card .price small { font-weight: 400; color: var(--tx-3); font-size: .72rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.toolbar .field { margin: 0; min-width: 160px; }
.toolbar .field.grow { flex: 1 1 220px; }
.toolbar .count { margin-inline-start: auto; align-self: center; font-size: .8rem; color: var(--tx-3); }

.repeater-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.repeater-item .rm { float: inline-end; }

.empty-state { text-align: center; padding: 54px 20px; }
.empty-state svg { width: 40px; height: 40px; color: var(--tx-4); margin-bottom: 10px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.empty-state p { font-size: .85rem; color: var(--tx-3); }

/* ---------- home: hero + section grid ---------------- */

.home-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); margin-bottom: 22px;
  padding: clamp(24px, 4vw, 40px);
  color: #fff; background: var(--grad-accent);
  box-shadow: var(--shadow-md);
}
.home-hero::before, .home-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .12);
}
.home-hero::before { width: 280px; height: 280px; inset-inline-end: -90px; top: -130px; }
.home-hero::after  { width: 180px; height: 180px; inset-inline-end: 90px; bottom: -120px; background: rgba(255, 255, 255, .08); }
.home-hero-in { position: relative; z-index: 1; max-width: 62ch; }
.home-hero .eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.home-hero h1 { margin: 10px 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.home-hero p { color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.6; }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.home-hero .btn-light { background: #fff; color: var(--primary-h); box-shadow: var(--shadow-sm); }
.home-hero .btn-light:hover { background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.home-hero .btn-hero-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.home-hero .btn-hero-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .home-grid { grid-template-columns: 1fr; } }
.home-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.home-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-bd); transform: translateY(-3px); }
.home-ic { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; }
.home-ic svg { width: 21px; height: 21px; }
.home-ic.blue   { background: var(--primary-sf); color: var(--primary); }
.home-ic.cyan   { background: var(--cyan-sf);    color: var(--cyan); }
.home-ic.amber  { background: var(--amber-sf);   color: var(--amber); }
.home-ic.green  { background: var(--green-sf);   color: var(--green); }
.home-ic.violet { background: var(--violet-sf);  color: var(--violet); }
.home-tx { display: grid; gap: 3px; min-width: 0; flex: 1; }
.home-tx b { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--tx); }
.home-tx span { font-size: .83rem; color: var(--tx-3); line-height: 1.5; }
.home-card .go { width: 17px; height: 17px; flex: 0 0 auto; color: var(--tx-4); margin-top: 3px;
  transition: color .18s var(--ease), transform .18s var(--ease); }
[dir="rtl"] .home-card .go { transform: scaleX(-1); }
.home-card:hover .go { color: var(--primary); transform: translateX(3px); }
[dir="rtl"] .home-card:hover .go { transform: scaleX(-1) translateX(3px); }

/* ---------- skeleton -------------------------------------------------------
   One shimmer primitive (.sk) + a few shaped variants. Views build their
   loading state from the SAME .card / .stat / .grid / .tbl shells as the
   loaded state, dropping .sk boxes where the real content will land, so the
   layout doesn't jump. Helpers live in js/app/forms.js (SEC_FORMS.sk).      */

:root                     { --sk-block: #d6dbec; --sk-shine: rgba(255, 255, 255, .60); }
:root[data-theme="dark"]  { --sk-block: #2b3346; --sk-shine: rgba(255, 255, 255, .05); }

.sk { display: block; background: var(--sk-block); border-radius: 7px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--sk-shine), transparent);
  animation: sk-shine 1.5s ease-in-out infinite; }
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

/* legacy aliases (still referenced in a few older views) */
.sk-line { height: 12px; margin: 9px 0; }
.sk-row  { height: 44px; margin: 1px 0; }

/* text bars */
.sk-t          { height: 11px; }
.sk-t.h1       { height: 26px; border-radius: 8px; }
.sk-t.h2       { height: 15px; border-radius: 6px; }
.sk-t.num      { height: 26px; width: 54px; border-radius: 8px; }
.sk-t.sm       { height: 9px; }
.sk-t.w40 { width: 40%; } .sk-t.w55 { width: 55%; } .sk-t.w70 { width: 70%; }
.sk-t.w85 { width: 85%; } .sk-t.w100 { width: 100%; }
.sk-stack      { display: grid; gap: 10px; }

.sk-circ       { border-radius: 50%; flex: 0 0 auto; }
.sk-chip       { display: inline-block; height: 24px; width: 60px; border-radius: 999px; }

/* stat-tile skeleton: identical box to the real .stat */
.stat.is-sk            { align-items: flex-start; }
.stat.is-sk .sk-circ   { width: 42px; height: 42px; border-radius: 12px; }

/* table-body skeleton rows aligned to a real .tbl (same padding + divider) */
.sk-tr { display: flex; align-items: center; gap: 24px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.sk-tr:last-child { border-bottom: 0; }
.sk-tr > .sk { height: 11px; flex: 1; }
.sk-tr > .sk:first-child { max-width: 42%; }
.sk-tr > .sk:last-child  { max-width: 84px; }

/* bar-chart skeleton */
.sk-bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.sk-bars > .sk { flex: 1; border-radius: 6px 6px 0 0; }

/* ---------- load error + progress ------------------- */

.load-error { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 34px 20px; color: var(--tx-2); }
.load-error svg { width: 30px; height: 30px; color: var(--amber, #d9922b); }
.load-error p { font-size: .9rem; max-width: 42ch; margin: 0; }

.prog { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.prog-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--primary);
  border-radius: 99px; transition: width .2s var(--ease); }
.prog.is-error .prog-bar { background: var(--red, #d64545); }

/* ---------- mobile ---------------------------------- */

.sb-scrim { position: fixed; inset: 0; z-index: 39; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .2s; }

@media (max-width: 1024px) {
  .shell, .app.is-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sw); transform: translateX(-100%); overflow: hidden; }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .app[data-nav="open"] .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app[data-nav="open"] .sb-scrim { opacity: 1; pointer-events: auto; }
  /* mobile drawer always shows the full sidebar regardless of collapsed state */
  .app.is-collapsed .sidebar { width: var(--sw); overflow: hidden; }
  .app.is-collapsed .sb-nav { overflow-y: auto; }
  .app.is-collapsed .sb-brand { justify-content: flex-start; padding: 0 18px; }
  .app.is-collapsed .sb-brand span,
  .app.is-collapsed .sb-group-label { display: block; }
  .app.is-collapsed .sb-group { border-top: 0; padding-top: 0; margin-top: 16px; }
  .app.is-collapsed .sb-link { justify-content: flex-start; padding: 0 12px; }
  .app.is-collapsed .sb-link .lbl { position: static; transform: none; opacity: 1; background: none; border: 0; box-shadow: none; padding: 0; font-weight: inherit; }
  .app.is-collapsed .sb-link .pill { position: static; }
  .tb-toggle .ic-collapse { display: none; }
}
@media (min-width: 1025px) { .tb-toggle .ic-menu { display: none; } }
@media (max-width: 560px) {
  .tb-ident { display: none; }
  .tb-title { font-size: .95rem; }
  .view { padding: 18px 14px 40px; }
}

/* ============================================================================
   Pastel skin (mockup #6 — dashboard-tasks-pastel)
   Tinted sidebar, gradient active-link, flat topbar, gradient avatars.
   ========================================================================== */

.sidebar { background: var(--sidebar); border-inline-end-color: var(--border-2); }
.sb-brand { border-bottom-color: var(--border-2); }
.sb-brand b { color: var(--tx); }
.sb-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.sb-link[aria-current="page"] svg { color: #fff; }
.sb-link[aria-current="page"]::before { display: none; }
.sb-link[aria-current="page"] .pill { background: rgba(255, 255, 255, .28); color: #fff; }
.app.is-collapsed .sb-group { border-top-color: var(--border-2); }

/* flat topbar — no glass blur, sits on the page background */
.topbar {
  background: var(--bg);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: var(--border);
}
.main { background: var(--bg); }
.main, [dir="rtl"] .main { background-image: none; }

.langset { border-radius: var(--radius-sm); }
.langset .lang-btn[aria-pressed="true"] { background: var(--primary); }

/* gradient avatars / directory monograms */
.tb-avatar, .dir-card .av { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

/* stat tiles: rounded-square icon chip like the mockup */
.stat-ic { border-radius: 12px; }
.stat::after { opacity: .35; }

/* ---------- auth pages (sign in / sign up) ---------------------------- */

.view.auth-view { max-width: none; padding-inline: 16px; }
.auth-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(24px, 6vh, 72px) 0 64px;
}
.auth-card {
  width: 100%; max-width: 420px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(24px, 5vw, 38px);
}
.auth-card.wide { max-width: 560px; }
.auth-brand {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; margin-bottom: 22px;
}
.auth-brand .mk {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-sm);
}
.auth-brand h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.auth-brand p { font-size: .86rem; color: var(--tx-3); max-width: 34ch; }
.auth-card .field:last-of-type { margin-bottom: 22px; }
.auth-alt {
  text-align: center; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--tx-3);
}
.auth-alt a { color: var(--primary); font-weight: 700; }
.auth-roles { display: grid; gap: 10px; margin: 4px 0 8px; }
.auth-role {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color .14s var(--ease), background .14s var(--ease), transform .08s;
}
.auth-role:hover { border-color: var(--primary); background: var(--primary-sf); }
.auth-role:active { transform: translateY(1px); }
.auth-role .ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-sf); color: var(--primary); }
.auth-role .ic svg { width: 18px; height: 18px; }
.auth-role b { display: block; font-size: .9rem; font-weight: 700; color: var(--tx); }
.auth-role span { font-size: .76rem; color: var(--tx-3); }
.auth-role .go { width: 17px; height: 17px; flex: 0 0 auto; margin-inline-start: auto; color: var(--tx-4); }
[dir="rtl"] .auth-role .go { transform: scaleX(-1); }
.auth-role:hover .go { color: var(--primary); }

/* ============================================================================
   Standalone auth screen (.app.is-auth) - matches the landing site:
   deep navy field, blue accent, no portal chrome. Applied by the router on
   #/login and #/register* .
   ========================================================================== */

.app.is-auth .sidebar,
.app.is-auth .topbar,
.app.is-auth .sb-scrim { display: none !important; }
.app.is-auth .shell,
.app.is-auth.is-collapsed .shell { grid-template-columns: minmax(0, 1fr); }

.app.is-auth .main {
  min-height: 100svh;
  background:
    radial-gradient(1100px 620px at 78% -8%, #12285f 0%, transparent 60%),
    radial-gradient(900px 520px at 12% 108%, #0b1a45 0%, transparent 55%),
    linear-gradient(180deg, #050b23 0%, #020617 100%);
  background-attachment: fixed;
  color: #f4f7ff;
}

.app.is-auth .auth-wrap { align-items: center; min-height: 100svh; padding: 48px 18px; }

.app.is-auth .auth-card {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 26, 69, .72), rgba(5, 11, 35, .82));
  border: 1px solid rgba(126, 160, 224, .22);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #f4f7ff;
}
.app.is-auth .auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(169, 196, 242, .5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.app.is-auth .auth-brand .mk {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, #5b7fc7, #a9c4f2);
  box-shadow: 0 10px 30px -10px rgba(126, 160, 224, .6);
  color: #050b23;
}
.app.is-auth .auth-brand h1 { color: #f4f7ff; font-size: 1.5rem; letter-spacing: -.01em; }
.app.is-auth .auth-brand p { color: #8b9bc0; }

.app.is-auth .field > label { color: #dde6f6; }
.app.is-auth .field .hint { color: #8b9bc0; }
.app.is-auth .field input,
.app.is-auth .field select,
.app.is-auth .field textarea {
  background: rgba(2, 6, 23, .55);
  border-color: rgba(126, 160, 224, .28);
  color: #f4f7ff;
}
.app.is-auth .field input::placeholder,
.app.is-auth .field textarea::placeholder { color: #6c7fa6; }
.app.is-auth .field input:hover:not(:focus):not(:disabled),
.app.is-auth .field select:hover:not(:focus):not(:disabled),
.app.is-auth .field textarea:hover:not(:focus):not(:disabled) {
  border-color: rgba(169, 196, 242, .5); background: rgba(2, 6, 23, .5);
}
.app.is-auth .field input:focus,
.app.is-auth .field select:focus,
.app.is-auth .field textarea:focus {
  border-color: #7ea0e0; background: rgba(2, 6, 23, .7);
  box-shadow: 0 0 0 3px rgba(126, 160, 224, .22);
}

.app.is-auth .btn-primary {
  background: linear-gradient(135deg, #5b7fc7, #7ea0e0);
  color: #050b23; font-weight: 800;
  box-shadow: 0 14px 34px -12px rgba(126, 160, 224, .55);
}
.app.is-auth .btn-primary:hover:not(:disabled) { filter: brightness(1.06); }

.app.is-auth .seg { background: rgba(2, 6, 23, .5); border-color: rgba(126, 160, 224, .24); }
.app.is-auth .seg label { color: #c2cfe6; }
.app.is-auth .seg label:has(input:checked) { background: #7ea0e0; color: #050b23; }

.app.is-auth .auth-alt { border-top-color: rgba(126, 160, 224, .2); color: #8b9bc0; }
.app.is-auth .auth-alt a { color: #a9c4f2; }

.app.is-auth .auth-role {
  background: rgba(2, 6, 23, .4); border-color: rgba(126, 160, 224, .22);
}
.app.is-auth .auth-role:hover { background: rgba(126, 160, 224, .12); border-color: #7ea0e0; }
.app.is-auth .auth-role .ic { background: rgba(126, 160, 224, .16); color: #a9c4f2; }
.app.is-auth .auth-role b { color: #f4f7ff; }
.app.is-auth .auth-role span { color: #8b9bc0; }
.app.is-auth .auth-role .go { color: #6c7fa6; }
.app.is-auth .auth-role:hover .go { color: #a9c4f2; }

.app.is-auth .msg--err { background: rgba(255, 107, 129, .12); border-color: rgba(255, 107, 129, .4); color: #ffb3bf; }
.app.is-auth .msg--info { background: rgba(126, 160, 224, .12); border-color: rgba(126, 160, 224, .4); color: #cdddf7; }
.app.is-auth .field-error { color: #ff9db0; }

/* ============================================================================
   In-app dialog + toast (js/app/dialog.js) - mobile-first: a bottom sheet on
   phones, a centred card from 600px up.
   ========================================================================== */
.dlg-host { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
body.dlg-open { overflow: hidden; }

.dlg-overlay {
  position: fixed; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  background: var(--overlay);
  opacity: 0; transition: opacity .17s var(--ease);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.dlg-overlay.is-in { opacity: 1; }

.dlg-panel {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .22s var(--ease);
}
.dlg-overlay.is-in .dlg-panel { transform: none; }

.dlg-panel::before {
  content: ""; display: block;
  width: 40px; height: 4px; margin: -8px auto 16px;
  border-radius: 999px; background: var(--border-2);
}

.dlg-title { font-size: 1.05rem; font-weight: 800; color: var(--tx); line-height: 1.4; }
.dlg-msg { margin-top: 8px; font-size: .9rem; line-height: 1.6; color: var(--tx-2); }

.dlg-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
.dlg-actions .btn { width: 100%; min-height: 44px; }

@media (min-width: 600px) {
  .dlg-overlay { align-items: center; padding: 24px; }
  .dlg-panel {
    max-width: 400px;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transform: translateY(12px) scale(.96);
    transition: transform .18s var(--ease), opacity .18s var(--ease);
    opacity: 0;
  }
  .dlg-overlay.is-in .dlg-panel { transform: none; opacity: 1; }
  .dlg-panel::before { display: none; }
  .dlg-actions { flex-direction: row; justify-content: flex-end; }
  .dlg-actions .btn { width: auto; min-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .dlg-overlay, .dlg-panel { transition-duration: .01ms; }
}

/* toasts */
.dlg-toasts {
  position: fixed; left: 0; right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px; pointer-events: none;
}
.dlg-toast {
  max-width: 440px; width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .86rem; font-weight: 600; line-height: 1.5;
  background: var(--surface); color: var(--tx);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dlg-toast.is-in { opacity: 1; transform: none; }
.dlg-toast.ok  { border-color: var(--msg-ok-bd);  background: var(--green-sf); color: #0a6b57; }
.dlg-toast.err { border-color: var(--msg-err-bd); background: var(--red-sf);   color: #a11f37; }
.dlg-toast.info{ border-color: var(--primary-bd); background: var(--primary-sf); color: var(--primary-h); }

@media (min-width: 600px) {
  .dlg-toasts { left: auto; right: 20px; align-items: flex-end; padding: 0; }
  .dlg-toast { width: auto; }
}

/* ============================================================================
   Sidebar header + docked collapse toggle (js/app/chrome.js .sb-head)
   ========================================================================== */
.sb-head {
  display: flex; align-items: center; flex: 0 0 auto;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.sb-brand { flex: 1 1 auto; min-width: 0; height: auto; border-bottom: 0; }
.sb-collapse {
  flex: 0 0 auto; width: 32px; height: 32px; margin-inline-end: 10px;
  display: none; place-items: center;
  border-radius: var(--radius-sm); color: var(--tx-3);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.sb-collapse:hover { background: var(--surface-3); color: var(--tx); }
.sb-collapse svg { width: 18px; height: 18px; stroke-width: 2; }
[dir="rtl"] .sb-collapse svg { transform: scaleX(-1); }
.app.is-collapsed .sb-head { justify-content: center; }

@media (min-width: 1025px) {
  .sb-collapse { display: grid; }
  .app.is-collapsed .sb-collapse { display: none; }
  .tb-toggle { display: none; }
  .app.is-collapsed .tb-toggle { display: grid; }
}

/* avatar image (topbar + settings) */
.tb-avatar { overflow: hidden; }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- settings: profile photo ---- */
.pfp-row { display: flex; gap: 16px; align-items: center; }
.pfp {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--primary-sf); color: var(--primary);
  font-weight: 800; font-size: 1.3rem;
}
.pfp img { width: 100%; height: 100%; object-fit: cover; }
.pfp-meta { min-width: 0; }
.pfp-meta > p { font-size: .84rem; color: var(--tx-2); margin-bottom: 10px; line-height: 1.5; }
.pfp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 460px) { .pfp-row { flex-direction: column; align-items: flex-start; } }

/* ---- settings: danger zone ---- */
.danger-zone { border-color: var(--msg-err-bd); }
.danger-zone .card-head h2 { color: var(--red); }
