/* Layout concept: one shell, three roles. A sticky bar switches the role; each role lands on its own home
   (supplier: one big action + request list, matcher: work queue, finance manager: oversight dashboard),
   and every request opens the same tracking page: a vertical stepper beside a documented conversation. */
:root {
  color-scheme: light;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5FB;
  --ink: #1D2A44;
  --ink-2: #4B566B;
  --ink-3: #6B7488;
  --line: #E3E9F3;
  --accent: #3E74E0;
  --gold: #6E9BEA; --gold-soft: #E6EEFC; --navy-deep: #FFFFFF;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EEFC;
  --icon: #7FA8F0; --icon-soft: #E9F1FE;

  --idle: #494F60;   --idle-soft: #EDF1F7;
  --warn: #8A5200;   --warn-soft: #FFEBC2;
  --work: #3E74E0;   --work-soft: #E6EEFC;
  --ok: #14724A;     --ok-soft: #DAF2E6;
  --bad: #B3261E;    --bad-soft: #FBE0DD;

  --c-idle: #A9B4C8; --c-warn: #F0B24A; --c-work: #6E9BEA; --c-ok: #1E9B62; --c-bad: #D8392F;

  --shadow: 0 1px 2px rgba(29, 42, 68, .05), 0 8px 24px rgba(62, 116, 224, .08);
  --f-display: 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Readex Pro', Tahoma, system-ui, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.65; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; line-height: 1.35; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .84rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: tabular-nums; font-size: .88rem; letter-spacing: .01em; }
.mono.big { font-size: 1.15rem; font-weight: 600; }
.ic { flex: none; }

.gutter { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
/* app shell: the navigation is a column beside the content (the right side in RTL); on narrow screens it stacks above */
.appshell { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; min-height: 100vh; }
@media (max-width: 1180px) { .appshell { grid-template-columns: 200px minmax(0, 1fr); } .appside { padding-inline: 10px; } }
.appshell > main { min-width: 0; }
.appside { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: #FFFFFF; color: var(--ink); border-inline-start: 1px solid var(--line); box-shadow: 0 2px 12px rgba(62, 116, 224, .08); }
.appside .brand { padding-inline: 6px; }
.appside .sidenav { flex-direction: column; align-items: stretch; border-radius: var(--r-md); }
.appside .sidenav button { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: start; border-radius: 10px; }
.appside .sideuser { width: 100%; justify-content: space-between; margin-top: auto; }
@media (max-width: 860px) {
  .appshell { grid-template-columns: minmax(0, 1fr); }
  .appside { position: sticky; top: 0; z-index: 5; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .appside .sidenav { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .appside .sidenav button { width: auto; flex: 1 1 auto; justify-content: center; padding: 8px 12px; }
  .appside .sideuser { width: auto; margin-top: 0; margin-inline-start: auto; }
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.05rem var(--f-display); }
.brand svg { color: var(--icon); }
.ic { color: var(--icon); }
.btn.primary .ic, .seg .ic, .alertbar .ic, .pill .ic, .step .ic { color: inherit; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 16px; min-height: 36px; border-radius: 999px; font-weight: 500; }
.seg button:hover { background: var(--icon-soft); }
.seg button[aria-pressed="true"] { background: var(--icon-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--icon); }
@media (max-width: 560px) { .seg { width: 100%; } .seg button { flex: 1; padding-inline: 8px; } }

.page { padding-block: 20px 40px; display: grid; gap: 16px; }
.who { color: var(--ink-3); font-size: .84rem; }
.stack { display: grid; gap: 16px; }
.foot { padding-block: 0 28px; color: var(--ink-3); font-size: .8rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 2px 6px rgba(27, 47, 94, .25); transition: filter .15s, transform .15s; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn.primary:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); align-self: start; max-height: calc(100vh - 84px); overflow-y: auto; display: grid; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sidehead { padding: 6px 10px 8px; color: var(--ink-3); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.navitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); }
.navitem:hover { background: var(--surface-2); }
.navitem[aria-current="page"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.navtxt { display: grid; min-width: 0; line-height: 1.4; }
.navtxt strong { color: var(--ink); font-size: .92rem; font-weight: 600; }
.navtxt small { color: var(--ink-3); font-size: .78rem; }
.navcount { min-width: 28px; padding: 1px 8px; text-align: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.navcount.attn { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.work { display: grid; gap: 14px; min-width: 0; }
.svcpanel { display: grid; gap: 14px; min-width: 0; }
.svchead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.svchead h2 { font-size: 1.25rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.tfield { display: grid; gap: 4px; min-width: 190px; }
.tfield label { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.toolbar .count { margin-inline-start: auto; align-self: center; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; gap: 4px; overflow: visible; max-height: none; padding: 4px; border-radius: var(--r-md); }
  .sidehead { display: none; }
  .navitem { flex: 1 1 0; min-width: 0; width: auto; grid-template-columns: minmax(0, 1fr) auto; justify-items: start; padding: 8px 10px; }
  .navitem > .ic { display: none; }
  .navitem[aria-current="page"] { box-shadow: none; background: var(--accent); color: var(--accent-ink); }
  .navitem[aria-current="page"] .navtxt strong { color: var(--accent-ink); }
  .navitem[aria-current="page"] .navtxt small { color: rgba(255, 255, 255, .85); }
  .navitem[aria-current="page"] .navcount { background: #fff; border-color: transparent; color: #1F55C4; font-weight: 700; }
  .navtxt strong { font-size: .86rem; }
}
@media (max-width: 480px) {
  .navtxt small { display: none; }
  .navtxt strong { font-size: .82rem; line-height: 1.3; }
  .navitem { padding: 8px; gap: 6px; }
}
.thbtn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; }
.thbtn:hover { color: var(--ink); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--ink); }
.btn.sm { min-height: 34px; padding: 4px 12px; font-size: .86rem; }
.rbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-bad); color: var(--surface); font-size: .72rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-bad); flex: none; align-self: center; }
.seg button .rbadge, .mtabs button .rbadge { margin-inline-start: 6px; }
.navend { display: inline-flex; align-items: center; gap: 6px; }
.hrow { display: flex; align-items: center; gap: 10px; }
.bubble.fresh { border-color: var(--c-bad); }
.newdiv { align-self: stretch; display: flex; align-items: center; gap: 10px; color: var(--bad); font-size: .78rem; font-weight: 600; }
.newdiv::before, .newdiv::after { content: ""; flex: 1; height: 1px; background: var(--c-bad); opacity: .5; }
tbody tr.unread { background: color-mix(in srgb, var(--c-bad) 7%, var(--surface)); }
tbody tr.unread:hover { background: color-mix(in srgb, var(--c-bad) 12%, var(--surface)); }
.msgcount .rbadge { margin-inline-start: 2px; }

.alertbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sechead h2 { font-size: 1.15rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.idle { background: var(--idle-soft); color: var(--idle); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.work { background: var(--work-soft); color: var(--work); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.chip-late { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: var(--bad); color: var(--surface); }



.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.kpi .k { color: var(--ink-2); font-size: .85rem; }
.kpi .v { font: 700 2rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi.bad .v { color: var(--bad); }
.kpi .n { color: var(--ink-3); font-size: .8rem; }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel > h3 { font-size: 1rem; margin-bottom: 12px; }
.strip { display: flex; gap: 3px; height: 38px; }
.strip > div { min-width: 8px; border-radius: 6px; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.bg-idle { background: var(--c-idle); } .bg-warn { background: var(--c-warn); } .bg-work { background: var(--c-work); } .bg-ok { background: var(--c-ok); } .bg-bad { background: var(--c-bad); }
.load { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.load li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 1.5rem; align-items: center; gap: 10px; font-size: .88rem; }
.load .track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.load .track i { display: block; height: 100%; border-radius: 4px; background: var(--c-work); }
.load b { text-align: end; font-variant-numeric: tabular-nums; }

.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; min-height: 36px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.fchip b { font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input[type] { padding-inline-start: 38px; }
select { padding-inline-end: 28px; }
input[type="text"], input[type="search"], select, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); outline: none; }

.dtbox { display: grid; gap: 10px; }
.thcell { display: grid; gap: 6px; min-width: 0; }
.thslot { min-height: 0; }
.thslot:empty { display: none; }
.thf { min-height: 34px !important; padding: 3px 8px !important; font-size: .82rem; font-weight: 400; border-radius: 8px !important; min-width: 0; width: 100%; background: var(--surface) !important; color: var(--ink); }
.thlabel { font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pgnav { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.pgbtn { min-height: 36px; min-width: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-weight: 600; font-size: .86rem; }
.pgbtn.num { padding-inline: 0; font-variant-numeric: tabular-nums; }
.pgbtn:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-soft); }
.pgbtn[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pgbtn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .pgnav { margin-inline-start: 0; width: 100%; justify-content: center; } }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; min-width: 0; table-layout: auto; border-collapse: collapse; }
th { text-align: start; vertical-align: top; font-size: .78rem; font-weight: 600; color: var(--ink-3); padding: 10px 8px; background: var(--surface-2); border-bottom: 2px solid var(--line); }
tbody tr:hover { background: var(--surface-2); }
td { padding: 10px 8px; font-size: .88rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[tabindex] { cursor: pointer; }
tbody tr[tabindex]:hover { background: var(--surface-2); }
td.empty { text-align: center; color: var(--ink-3); padding: 28px; }
.cell-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msgcount { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.thead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.ttitle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 2px; }
.tdue { text-align: end; font-weight: 600; font-size: .9rem; }
.tdue.late { color: var(--bad); }
@media (max-width: 640px) { .thead { grid-template-columns: minmax(0, 1fr); } .tdue { text-align: start; } .thead .btn { justify-self: start; } }

.mtabs { display: none; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mtabs button { flex: 1; border: 0; background: transparent; min-height: 40px; border-radius: 9px; font-weight: 600; color: var(--ink-2); }
.mtabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.grid-track { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 900px) {
  .mtabs { display: flex; }
  .grid-track { grid-template-columns: minmax(0, 1fr); }
  .grid-track > [data-on="false"] { display: none; }
}

.stepper { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; inset-inline-start: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--c-ok); }
.mark { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--ink-3); font: 600 .85rem var(--f-display); }
.step.done .mark { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.step.current .mark { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .step.current .mark { animation: none; } }
.step h4 { font-size: 1rem; padding-top: 5px; }
.step.todo h4 { color: var(--ink-3); }
.step .when { display: block; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.step .desc { color: var(--ink-2); font-size: .86rem; margin-top: 4px; }
.step .act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.to-chat { display: none; }
@media (max-width: 900px) { .to-chat { display: inline-flex; } }
.tabdot { display: inline-block; width: 8px; height: 8px; margin-inline-start: 6px; border-radius: 50%; background: var(--c-ok); }

.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 500; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.filelist li { display: flex; align-items: center; gap: 10px; font-size: .86rem; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.filelist .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist .fm { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }

.note { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: .88rem; }
.chathead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.chathead h3 { font-size: 1rem; }
.msgs { position: relative; list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; max-height: 480px; min-height: 160px; overflow-y: auto; background: var(--surface-2); border-radius: var(--r-md); }
.bubble { max-width: min(86%, 540px); align-self: flex-end; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; overflow-wrap: anywhere; }
.bubble.own { align-self: flex-start; background: var(--gold-soft); border-color: transparent; }
.bubble.obs { border-style: dashed; }
.bubble.system { align-self: center; max-width: 100%; padding: 2px 8px; background: transparent; border: 0; color: var(--ink-3); font-size: .8rem; text-align: center; }
.bhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; font-size: .78rem; color: var(--ink-3); }
.bhead strong { color: var(--ink); font-weight: 600; font-size: .85rem; }
.composer { display: grid; gap: 8px; margin-top: 12px; }
.composer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked button { border: 0; background: transparent; padding: 0; color: var(--ink-3); display: inline-flex; }

.formcard { max-width: 640px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; min-width: 0; }
.field > label, .field > .lbl { font-weight: 600; font-size: .9rem; }
.hint { color: var(--ink-3); font-size: .8rem; }
.err { color: var(--bad); font-weight: 600; font-size: .88rem; }
.dropzone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.formactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.toast { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: fit-content; max-width: min(92vw, 440px); padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: 12px; font-weight: 500; z-index: 20; box-shadow: var(--shadow); }
