/* ===== Portal redesign R1 (12 Oct 2026), option C "Indigo rail" (redesign doc). The last layer, loaded after
   style.css on every screen: Linear-style calm and density — an indigo sidebar for navigation (shell.js), a light
   canvas (dark when the device is dark), one type family (Geist) with a mono face for keys and dates, 30 px
   controls, hairline borders, one accent. Page logic is unchanged; this layer only restyles. ===== */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f6f6fa; --panel: #ffffff; --ink: #1b1c2b; --muted: #61657c; --line: #e5e6ef; --line-strong: #d4d6e3;
  --head-bg: #f8f8fc; --accent: #4f46e5; --accent-btn: #4f46e5; --accent-soft: #eeedff; --accent-ink: #3730a3;
  --hover: #f1f1f8; --sel: #ebeafe;
  --sb-bg: #2a2770; --sb-ink: #eceaff; --sb-mute: #b4b0ea; --sb-hover: #34309a; --sb-sel: #3d39a8; --sb-line: rgb(255 255 255 / .12);
  --radius: 10px; --r-sm: 7px; --ctl: 30px;
  --shadow: 0 1px 2px rgb(23 22 60 / .05), 0 4px 16px rgb(23 22 60 / .05);
  --f-ui: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1016; --panel: #161722; --ink: #e7e8f2; --muted: #9a9db5; --line: #252738; --line-strong: #32354a;
  --head-bg: #1a1b28; --accent: #8b85ff; --accent-btn: #5b4fe0; --accent-soft: #24234a; --accent-ink: #c9c6ff;
  --hover: #1d1e2c; --sel: #262552;
  --sb-bg: #1b1946; --sb-ink: #e9e7ff; --sb-mute: #a4a0dc; --sb-hover: #252263; --sb-sel: #2f2b78; --sb-line: rgb(255 255 255 / .09);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .25); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f1016; --panel: #161722; --ink: #e7e8f2; --muted: #9a9db5; --line: #252738; --line-strong: #32354a;
  --head-bg: #1a1b28; --accent: #8b85ff; --accent-btn: #5b4fe0; --accent-soft: #24234a; --accent-ink: #c9c6ff;
  --hover: #1d1e2c; --sel: #262552;
  --sb-bg: #1b1946; --sb-ink: #e9e7ff; --sb-mute: #a4a0dc; --sb-hover: #252263; --sb-sel: #2f2b78; --sb-line: rgb(255 255 255 / .09);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .25); color-scheme: dark }

body { font: 13.5px/1.45 var(--f-ui); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: var(--f-ui); }
.tkey, .key, .due, kbd, code { font-family: var(--f-mono); }
h1, h2, h3 { letter-spacing: -.01em; text-wrap: balance; }

/* ---------------- the sidebar (shell.js) ---------------- */
.sb { position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 40; background: var(--sb-bg); color: var(--sb-ink);
  display: flex; flex-direction: column; gap: 2px; padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 10px; overflow-y: auto; }
body.with-sb { padding-left: 236px; }
.sb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sb-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sb-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 4px 6px; border-radius: var(--r-sm); flex: 1; min-width: 0; }
.sb-brand:hover { background: var(--sb-hover); }
.sb-mark { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #2a2770; display: grid; place-items: center; font-weight: 700; flex: none; }
.sb-name { display: grid; font-weight: 600; font-size: 14px; line-height: 1.2; min-width: 0; }
.sb-name small, .sb-user small { font-weight: 400; font-size: 11.5px; color: var(--sb-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-close { display: none; background: none; border: 0; color: var(--sb-ink); font-size: 22px; cursor: pointer; padding: 0 6px; }
.sb-ws { display: grid; gap: 3px; margin: 2px 4px 6px; font-size: 11px; color: var(--sb-mute); text-transform: uppercase; letter-spacing: .06em; }
.sb-ws select { background: var(--sb-hover) !important; color: var(--sb-ink); border: 1px solid var(--sb-line) !important; border-radius: var(--r-sm) !important;
  height: 32px; padding: 0 8px; font: 600 13px var(--f-ui); text-transform: none; letter-spacing: 0; }
.sb-ws select option { color: #1b1c2b; background: #fff; }
.sb-search { display: flex; align-items: center; gap: 8px; margin: 2px 2px 8px; padding: 0 9px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid var(--sb-line); background: transparent; color: var(--sb-mute); cursor: pointer; text-align: left; }
.sb-search:hover { background: var(--sb-hover); color: var(--sb-ink); }
.sb-search span { flex: 1; }
.sb kbd { font: 500 10.5px var(--f-mono); border: 1px solid var(--sb-line); border-radius: 4px; padding: 0 5px; color: var(--sb-mute); }
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.sb-group { margin: 14px 10px 4px; font-size: 11px; color: var(--sb-mute); text-transform: uppercase; letter-spacing: .07em; }
.sb-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 10px; height: 32px; border-radius: var(--r-sm);
  color: var(--sb-ink); text-decoration: none; background: none; border: 0; cursor: pointer; font: 500 13.5px var(--f-ui); text-align: left; }
.sb-item svg { opacity: .78; }
.sb-item:hover { background: var(--sb-hover); }
.sb-item.on { background: var(--sb-sel); font-weight: 600; box-shadow: inset 2px 0 0 #fff; }
.sb-item.on svg { opacity: 1; }
.sb-item:focus-visible, .sb-search:focus-visible, .sb-brand:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.sb-count { margin-left: auto; font: normal 600 11px var(--f-mono); background: #fff; color: #2a2770; border-radius: 999px; padding: 0 7px; }
.sb-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sb-line); display: flex; flex-direction: column; gap: 1px; }
.sb-me { position: relative; }
.sb-user { height: 44px; }
.sb-user > span:last-child { display: grid; line-height: 1.2; min-width: 0; text-align: left; }
.sb-av { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #2a2770; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.sb-menu { position: absolute; left: 4px; right: 4px; bottom: 48px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px; display: grid; }
.sb-menu button { display: flex; gap: 8px; align-items: center; background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); font: 500 13px var(--f-ui); }
.sb-menu button:hover { background: var(--hover); }
.sb-menu svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.sb-open { display: none !important; }
.sb-open svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sb-scrim { display: none; }

/* what the sidebar now holds leaves the top bars */
body.with-sb .topbar .brand-link, body.with-sb .topbar .brand-company,
body.with-sb #wsPickBox, body.with-sb #btnDash, body.with-sb #btnTickets, body.with-sb #btnClients, body.with-sb #btnBell,
body.with-sb #btnChat, body.with-sb #btnWrap, body.with-sb .topbar .usermenu,
body.with-sb #bBell, body.with-sb #bDash, body.with-sb #bClients, body.with-sb #bTickets, body.with-sb #bTracker,
body.with-sb #back, body.with-sb #clientsBtn { display: none !important; }

@media (max-width: 900px) {
  body.with-sb { padding-left: 0; }
  .sb { transform: translateX(-102%); transition: transform .2s ease; width: min(84vw, 300px); box-shadow: 0 0 40px rgb(0 0 0 / .3); }
  body.sb-shown .sb { transform: none; }
  body.sb-shown .sb-scrim { display: block; position: fixed; inset: 0; background: rgb(10 10 30 / .4); z-index: 39; }
  .sb-close { display: block; }
  .sb-open { display: inline-flex !important; align-items: center; justify-content: center; width: var(--ctl); padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .sb { transition: none; } }

/* ---------------- top bars: one calm row, the page's title and its own actions ---------------- */
.topbar, .dash-top { background: var(--panel); border-top: 0 !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important;
  padding: 10px 20px; gap: 10px 14px; }
.brand .brand-page { font-size: 15px; font-weight: 600; color: var(--ink); }
.brand .brand-page .day, .brand-sep { color: var(--muted); font-weight: 400; }

/* ---------------- controls ---------------- */
.btn { height: var(--ctl); padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--panel);
  font: 500 13px var(--f-ui); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; box-shadow: none; }
.btn:hover { background: var(--hover); border-color: var(--line-strong); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .12); }
.btn.primary:hover { background: var(--accent-btn); filter: brightness(1.1); color: #fff; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { border: 1px solid var(--line-strong) !important; border-radius: var(--r-sm) !important; background: var(--panel); color: var(--ink); font-size: 13.5px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { min-height: var(--ctl); padding: 0 10px; }
textarea { padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
select { appearance: none; padding-right: 28px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888aa3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.viewsw { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 2px; background: var(--head-bg); gap: 2px; display: inline-flex; }
.viewsw button { height: 24px; border: 0 !important; border-radius: 5px; background: transparent; padding: 0 10px; font: 500 12.5px var(--f-ui); color: var(--muted); cursor: pointer; }
.viewsw button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.pill { border-radius: 999px; font: 500 12px var(--f-ui); padding: 2px 9px; }
.menu { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px; }
.menu button, .menu .menu-link { border-radius: 6px; padding: 7px 10px; font: 500 13px var(--f-ui); }
.menu button:hover, .menu .menu-link:hover { background: var(--hover); }

/* ---------------- lists: dense rows under quiet group headers ---------------- */
.tasks { padding: 14px 20px 48px; }
.group { border: 1px solid var(--line) !important; border-radius: var(--radius); box-shadow: none; overflow: hidden; margin-bottom: 12px; }
.group-head { background: var(--head-bg); font-size: 13px; font-weight: 600; padding: 8px 14px; border-bottom: 1px solid var(--line) !important; }
.group-head .sub { background: transparent; border: 0; color: var(--muted); padding: 0; font-weight: 400; }
.task { border-left: 3px solid var(--st-pending); border-top: 1px solid var(--line); padding: 8px 14px 8px 12px; gap: 2px 10px; }
.task:hover { background: var(--hover); }
.task .name { font-size: 13.5px; font-weight: 500; }
.task .meta { font-size: 12px; }
.task .note { font-size: 13px; color: var(--muted); }
.latest-comment { background: transparent; border-left: 2px solid var(--line-strong); font-size: 12.5px; color: var(--muted); }
.chip { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; border-radius: 999px; padding: 0 8px; font-size: 11.5px; }
.chip::before { content: none; }
.badge { font-weight: 500 !important; font-size: 11.5px !important; padding: 0 8px !important; }
.tkey { background: transparent; border: 0; padding: 0; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.prio { border-radius: 4px; font: 600 10px var(--f-mono); letter-spacing: .04em; }
.prio::before { content: none; }

/* boards */
.col { background: var(--head-bg); border: 1px solid var(--line) !important; border-radius: var(--radius); }
.col-head { background: transparent; border-bottom: 1px solid var(--line) !important; font-size: 13px; font-weight: 600; }
.card { border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; box-shadow: 0 1px 1px rgb(0 0 0 / .03); }
.card:hover { border-color: var(--line-strong); }

/* ---------------- dialogs ---------------- */
.dlg { border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 60px rgb(15 14 45 / .25); }
.dlg::backdrop { background: rgb(15 14 40 / .35); backdrop-filter: blur(2px); }
.dlg-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 16px; font-weight: 600; }
.dlg-foot { background: var(--head-bg); border-top: 1px solid var(--line); }
.form label, .form .lbl { font-weight: 500 !important; font-size: 12.5px; color: var(--muted) !important; }
.section-title { border-left: 0; padding-left: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toast { border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 500; }

/* ---------------- tickets, dashboard ---------------- */
#tkTabs { background: var(--panel); border-bottom: 1px solid var(--line); }
#tkTabs [aria-selected="true"], #tkTabs .on { box-shadow: inset 0 -2px 0 var(--accent) !important; font-weight: 600; }
.tk-list { background: var(--panel); border-right: 1px solid var(--line); }
.tk-item { border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; box-shadow: none; }
.tk-item:hover { background: var(--hover); }
.tk-head { border: 1px solid var(--line); box-shadow: none; }
.stat { border: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; box-shadow: none; border-radius: var(--radius); }

/* the pill stays where it is (bottom right); the sidebar is on the left, so nothing moves under it */
/* links in the sidebar keep the sidebar's colours (the page's link colour is for text links) */
.sb a.sb-item, .sb a.sb-item:visited, .sb .sb-brand, .sb .sb-brand:visited { color: var(--sb-ink) !important; text-decoration: none !important; }
.sb .sb-name small { color: var(--sb-mute); }

/* ---------------- R2 (12 Oct 2026): everyone's dashboard — a greeting, then what needs them, each row a link ---------------- */
.dash { padding: 18px 22px 48px; }
.dhello { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; }
.dhello h2 { margin: 0; font-size: 20px; font-weight: 600; }
.dash .stat { border-radius: var(--radius); }
.dash .stat-v { font: 600 24px var(--f-mono); font-variant-numeric: tabular-nums; }
.dcard { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important; background: var(--panel); }
.dcard h3 { font-size: 13px; font-weight: 600; }
.dlist { display: grid; }
.drow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; border-radius: 6px; }
.drow:last-child { border-bottom: 0; }
.drow:hover { background: var(--hover); }
.drow .dname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .hint { white-space: nowrap; font-size: 12px; }
.dempty { padding: 10px 4px; }
.late { color: var(--danger); font-weight: 600; }
.att { font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-strong); }
.att-overdue { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.att-unassigned { color: #b45309; border-color: color-mix(in srgb, #b45309 40%, transparent); }
.att-ticket { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 600px) { .drow { grid-template-columns: auto minmax(0, 1fr); } .drow > .hint, .drow > .badge { grid-column: 2; } }

/* ---------------- R2.1: fold the sidebar into a narrow icon strip (remembered per browser) ---------------- */
.sb-fold { background: none; border: 0; color: var(--sb-mute); cursor: pointer; width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center; flex: none; }
.sb-fold:hover { background: var(--sb-hover); color: var(--sb-ink); }
.sb-fold:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (min-width: 901px) {
  body.with-sb.sb-mini { padding-left: 64px; }
  body.sb-mini .sb { width: 64px; padding-inline: 8px; overflow-x: hidden; }
  body.sb-mini .sb-head { flex-direction: column; gap: 4px; }
  body.sb-mini .sb-brand { padding: 4px; justify-content: center; flex: none; }
  body.sb-mini .sb-name, body.sb-mini .sb-ws, body.sb-mini .sb-group, body.sb-mini .sb-item > span,
  body.sb-mini .sb-search > span, body.sb-mini .sb-search kbd, body.sb-mini .sb-user > span:last-child { display: none; }
  body.sb-mini .sb-item, body.sb-mini .sb-search { justify-content: center; padding: 0; position: relative; }
  body.sb-mini .sb-group + * { margin-top: 10px; }
  body.sb-mini .sb-nav { gap: 2px; }
  body.sb-mini .sb-count { position: absolute; top: 2px; right: 2px; padding: 0 5px; font-size: 10px; }
  body.sb-mini .sb-menu { left: 4px; right: auto; width: 220px; bottom: 48px; }
  body.sb-mini .sb-item.on { box-shadow: inset 2px 0 0 #fff; }
}
.sb, body.with-sb { transition: width .18s ease, padding-left .18s ease; }
@media (prefers-reduced-motion: reduce) { .sb, body.with-sb { transition: none; } }

/* ---------------- R2.3: Chat slides over the page from the right; the list keeps its full width ---------------- */
.layout, .layout.chat-closed { grid-template-columns: minmax(0, 1fr) !important; }
.layout .chat { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 35; border-left: 1px solid var(--line-strong);
  border-top: 0; box-shadow: -12px 0 40px rgb(15 14 45 / .16); padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-reduced-motion: no-preference) { .layout:not(.chat-closed) .chat { animation: chat-in .18s ease; } }
@keyframes chat-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* the pill keeps its place: the chat's own input sits clear of it (Advantium address) */
html[data-brand="advantium"] .layout .chat .chat-input { padding-bottom: 30px; }

/* ---------------- R2.2: Settings — one large window, pages on the left, the same look on every page ---------------- */
.dlg.dlg-settings { width: min(1180px, 96vw); max-width: 96vw; height: min(860px, 92vh); max-height: 92vh; display: flex; flex-direction: column; }
.dlg.dlg-settings #dlgBody { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dlg.dlg-settings .dlg-body.set-wrap { flex: 1; max-height: none; min-height: 0; padding: 0; display: grid;
  grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; }
.set-nav { border-right: 1px solid var(--line); background: var(--head-bg); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.set-tab { text-align: left; border: 0; background: transparent; color: var(--muted); font: 500 13.5px var(--f-ui); height: 32px; padding: 0 12px;
  border-radius: var(--r-sm); cursor: pointer; }
.set-tab:hover { background: var(--hover); color: var(--ink); }
.set-tab.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .06), inset 2px 0 0 var(--accent); }
.set-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.set-main { overflow-y: auto; padding: 20px 26px 32px; min-width: 0; }
.set-headline { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.set-headline h3 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.set-headline .hint { margin: 0; }
/* every page: sections as quiet cards, forms in two columns, tables alike */
.set-main .section-title { margin: 22px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border: 0; padding: 0; }
.set-main .section-title:first-of-type { margin-top: 4px; }
.set-main .form { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel);
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 18px; align-items: start; }
.set-main .form > label { padding-top: 6px; }
.set-main .form input:not([type=checkbox]):not([type=radio]), .set-main .form select, .set-main .form textarea { width: 100%; max-width: 520px; }
.set-main table.users-table, .set-main table.people-table, .set-main table.snap, .set-main table.nt-table {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--panel); }
.set-main table th { background: var(--head-bg); font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.set-main table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.set-main table tr:last-child td { border-bottom: 0; }
.set-main table tbody tr:hover td { background: var(--hover); }
.set-main .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.set-main .row-actions .btn { height: 26px; padding: 0 9px; font-size: 12px; }
.set-main .tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--head-bg); }
.set-main .tag.invited { color: #b45309; border-color: color-mix(in srgb, #b45309 40%, transparent); }
.set-main .tag.disabled { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.set-main .warnbox { border-radius: var(--radius); }
.set-main .linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.set-main .email-in { margin-top: 4px; width: 100%; }
@media (max-width: 760px) {
  .dlg.dlg-settings .dlg-body.set-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .set-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .set-tab { white-space: nowrap; }
  .set-main { padding: 16px; }
  .set-main .form { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .set-main .form > label { padding-top: 6px; }
}
