/* =====================================================================
   Theme (loaded after app.css). One small system, used everywhere:
     card    white, one hairline, 16px corners
     table   inside a card; grey header text, hairlines between rows
     field   grey fill, no border, 10px corners, 40px tall
     button  pill: lime (main), grey (other), red (destructive)
     chip    grey pill; status chips green / amber / red
     tabs    grey track, the open one white
     dialog  narrow, labels above fields, short help text
   ===================================================================== */
/* Inter (SIL Open Font License, Inter-OFL.txt), served from here: the page's CSP allows no font hosts */
@font-face { font-family: "Inter"; src: url("/static/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/static/Inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, body.theme-wise {
  /* the website's type scale (site.css): the members' pages inside the site use it too */
  --fs-2xs: 12px; --fs-xs: 13px; --fs-sm: 14px; --fs-ui: 15px; --fs-base: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 24px;
  --fs-2xl: 30px; --fs-3xl: clamp(28px, 3.2vw, 38px); --fs-4xl: clamp(32px, 4vw, 48px);
  --bg: #fff;
  --fill: #f2f4ef;          /* fields, chips, grey buttons */
  --fill-2: #e9ece5;        /* their hover */
  --soft: #f7f8f5;          /* quiet areas */
  --line: #e8eae5;
  --text: #0e0f0c;
  --text-2: #4a4c49;
  --text-3: #73756f;
  --forest: #163300;
  --lime: #9fe870;
  --lime-2: #8ad85a;
  --lime-soft: #e2f6d5;
  --lime-line: #d3efbf;     /* a light green line: hover and chosen borders */
  --glow: 0 0 0 4px color-mix(in srgb, var(--lime-2, #8ad85a) calc(.28 * 100%), transparent);
  --ok: #2f7a1c; --ok-soft: #e4f5da;
  --warn: #8a5300; --warn-soft: #fff1d3;
  --bad: #c0362c; --bad-soft: #fde8e6;
  /* app.css names, pointed at the same few colours */
  --screen: var(--fill); --surface: #fff; --surface-2: var(--soft); --hover: var(--fill); --line-strong: #d6d9d2;
  --accent: var(--forest); --accent-2: var(--forest); --accent-soft: var(--lime-soft); --accent-ring: color-mix(in srgb, var(--lime-2, #8ad85a) calc(.28 * 100%), transparent);
  --primary: var(--lime); --primary-2: var(--lime-2); --mast: var(--forest); --side-bg: #fff; --side-line: var(--line);
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 24px 60px -18px rgba(14, 15, 12, .3);
  --r: 16px; --r-sm: 10px;
  --col: 1040px; --side: 0px; --mast-h: 0px; --cmd-h: 0px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
body.theme-wise { background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
.theme-wise button, .theme-wise input, .theme-wise select, .theme-wise textarea { font-family: var(--sans); }
.theme-wise h1, .theme-wise h2, .theme-wise h3, .theme-wise h4 { letter-spacing: -.02em; }
.theme-wise svg.ic { stroke-width: 1.8; }
.theme-wise .mono, .theme-wise code { font-family: var(--mono); }
.theme-wise ::selection { background: var(--lime); color: var(--on-lime, var(--forest)); }

/* ===================== frame ===================== */
.theme-wise .masthead, .theme-wise .cmdbar, .theme-wise .foot, .theme-wise .side, .theme-wise .scrim, .theme-wise .rail, .theme-wise .trail { display: none !important; }
.theme-wise .shell { display: block; min-height: 100vh; }
body.theme-wise .main, body.theme-wise.side-hidden .main, body.theme-wise.role-account .main { margin: 0 !important; padding: 0; min-height: 100vh; display: flex; flex-direction: column; }

/* top bar: the logo (fixed at the left, always there), back, page search, the person */
.theme-wise .topbar { position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding: 20px 40px 12px 170px; }
.topbar-gap { flex: 1; }
.theme-wise .top-brand { position: fixed; top: 23px; left: 32px; z-index: 40; display: inline-flex; align-items: center; padding: 4px 8px 6px; border-radius: 12px; font-size: 28px; font-weight: 800;
  letter-spacing: -.045em; line-height: 1; color: var(--text) !important; text-decoration: none !important; transition: background .2s; }
.theme-wise .top-brand i { font-style: normal; color: var(--lime-2); }
@media (max-width: 1330px) { body.theme-wise.scrolled .top-brand { background: rgba(255, 255, 255, .9); } }
.back-btn, .me-avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--text); }
.back-btn { cursor: pointer; }
.back-btn:hover, .me-chip:hover .me-avatar { background: var(--fill-2); }
.back-btn svg.ic { width: 20px; height: 20px; }
body.theme-wise[data-view="start"] .back-btn, body.theme-wise[data-view="home"] .back-btn { visibility: hidden; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; width: 300px; height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--text-3); font: 500 14.5px var(--sans); text-align: left; cursor: pointer; }
.search-btn:hover { background: var(--fill-2); }
.search-btn svg.ic { width: 18px; height: 18px; color: var(--text); }
.search-btn span { flex: 1; min-width: 0; }
.search-btn kbd, .pal-in kbd, .pal-foot kbd { display: inline-grid; place-items: center; min-width: 22px; height: 24px; padding: 0 7px; border: 0; border-radius: 7px;
  background: #fff; color: var(--text-2); font: 500 12px var(--sans); box-shadow: 0 1px 0 rgba(14, 15, 12, .1); }
.me-menu { position: relative; }
.me-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 0; border: 0; border-radius: 999px; background: none; color: var(--text);
  font: 500 14px var(--sans); cursor: pointer; }
.me-avatar { font-weight: 700; font-size: 14.5px; }
.me-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip svg.ic { width: 16px; height: 16px; }

/* the page: one centred column, the same width on every page */
.theme-wise .top, .theme-wise .view, .theme-wise .editor-holder { width: 100%; max-width: calc(var(--col) + 96px); margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.theme-wise .top { position: static; min-height: 0; padding-top: 12px; padding-bottom: 4px; background: none; border: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.theme-wise .title-row { gap: 0; }
.theme-wise .title-icon { display: none; }
.theme-wise .top h2 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: var(--text); white-space: normal; }
body.theme-wise[data-view="start"] .top h2, body.theme-wise[data-view="home"] .top h2 { font-size: 22px; font-weight: 600; }
.theme-wise .top-actions { gap: 8px; flex-wrap: wrap; margin-left: auto; }
.theme-wise .view { flex: 1; padding-top: 18px; padding-bottom: 64px; }
.theme-wise .view > :first-child { margin-top: 0; }
.theme-wise .editor-holder { padding-bottom: 24px; }
.theme-wise .editor-frame { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
body.theme-wise.editor-view .view { display: none; }
/* the file manager's header sits in the same column as its frame, like every other page */
body.theme-wise.editor-view .top { max-width: calc(var(--col) + 96px); padding-left: 48px; padding-right: 48px; padding-bottom: 4px; }
.theme-wise .acting-bar { width: auto; max-width: var(--col); margin: 4px auto 0; padding: 8px 10px 8px 16px; border: 0; border-radius: 14px; background: var(--warn-soft); color: var(--warn); }
.theme-wise .acting-bar span { color: var(--text); }

/* ===================== text ===================== */
.theme-wise a { color: var(--forest); }
.theme-wise a:hover { color: var(--accent-2); text-decoration: none; }
.theme-wise .view p a, .theme-wise .hint a { text-decoration: underline; text-underline-offset: 3px; }
.theme-wise .hint, .theme-wise .muted { color: var(--text-3); }
.theme-wise .hint { font-size: 13px; font-weight: 400; line-height: 1.45; }
.theme-wise .section-title, .theme-wise .view > h3 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; color: var(--text); }
.theme-wise .intro { max-width: 760px; color: var(--text-2); }
.theme-wise .warn-text { color: var(--warn); }
.theme-wise .bad-text { color: var(--bad); }

/* ===================== card ===================== */
.theme-wise .card, .theme-wise .frame-in, .theme-wise .notice, .theme-wise .stat, .theme-wise .quick a, .theme-wise .quick button {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.theme-wise .card { overflow: hidden; }
.theme-wise .panel-head, .theme-wise .group-head { padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); }
.theme-wise .panel-head h3, .theme-wise .group-head h3, .theme-wise .section h3, .theme-wise .sec-form h3 { font-size: 15.5px; font-weight: 650; color: var(--text); }
.theme-wise .frame { padding: 0; background: none; }
.theme-wise .frame-in { padding: 20px 22px 14px; }
.theme-wise .frame-in h3, .theme-wise #setForm h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; color: var(--text); }
.theme-wise .form-card { padding: 22px; gap: 16px; }
.theme-wise .form-card > h3 { font-size: 17px; font-weight: 650; }
.theme-wise .form-card > h3 .muted { font-size: 13.5px; font-weight: 500; }
.theme-wise .form-card .form-actions { display: flex; justify-content: flex-end; }
.theme-wise .skeleton { border-radius: var(--r); }
.theme-wise .empty-state .empty-icon { border-radius: 50%; background: var(--fill); color: var(--text-2); }
.theme-wise .site-avatar, .theme-wise .avatar, .theme-wise .avatar.sm { border: 0; border-radius: 50%; background: var(--fill); color: var(--text); font-weight: 700; }
.theme-wise .bar { height: 6px; border-radius: 999px; background: var(--fill); }
.theme-wise .bar > span { border-radius: 999px; background: var(--forest); }
.theme-wise .bar.warn > span { background: #e0a100; } .theme-wise .bar.bad > span { background: var(--bad); }
.theme-wise .quick { gap: 8px; padding: 12px; }
.theme-wise .quick a, .theme-wise .quick button { padding: 14px; }
.theme-wise .quick a:hover, .theme-wise .quick button:hover { background: var(--soft); }
.theme-wise .quick .q-icon, .theme-wise .icon-item .q-icon, .theme-wise .hi-icon { border-radius: 50%; background: var(--fill) !important; color: var(--text); }
.theme-wise .quick b { color: var(--text); font-weight: 600; }
.theme-wise .spark polyline { stroke: var(--forest); }
.theme-wise .spark polygon { fill: color-mix(in srgb, var(--lime-2, var(--lime-2)) calc(.3 * 100%), transparent); }

/* ===================== table ===================== */
.theme-wise .table-wrap { overflow-x: auto; }
.theme-wise th { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-3); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none; text-align: left; }
.theme-wise td { padding: 12px 14px; border-bottom: 1px solid var(--line); background: none; font-size: 14px; vertical-align: middle; }
.theme-wise tbody tr:last-child td { border-bottom: 0; }
.theme-wise tbody tr:nth-child(even) td, .theme-wise .table-wrap > table:has(td.actions) > tbody > tr:nth-child(even) { background: none; }
.theme-wise tbody tr:hover td { background: var(--soft); }
.theme-wise .table-wrap th:first-child, .theme-wise .table-wrap td:first-child { padding-left: 20px; }
.theme-wise .table-wrap th:last-child, .theme-wise .table-wrap td:last-child { padding-right: 16px; }
.theme-wise td > a { font-weight: 600; text-decoration: none; }
.theme-wise td > a:hover { text-decoration: underline; }
/* names and codes stay whole; only long paths and details may break */
.theme-wise .table-wrap td { white-space: normal; }
.theme-wise .table-wrap td small, .theme-wise .table-wrap td.mono.muted, .theme-wise .table-wrap td.muted .mono { overflow-wrap: anywhere; }
.theme-wise .table-wrap td.num, .theme-wise .table-wrap td.actions, .theme-wise .table-wrap td > a, .theme-wise .table-wrap td .file-name { white-space: nowrap; }
.theme-wise td .file-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .dbm-grid td, .theme-wise .dbm-grid th { white-space: nowrap; }
/* code cells (details, paths): may break, but never narrower than a name needs */
.theme-wise .table-wrap td.mono:not(.num) { overflow-wrap: anywhere; min-width: 12ch; }
.theme-wise .view pre, .theme-wise .view .code { white-space: pre-wrap; overflow-wrap: anywhere; }
/* facts (key / value lists) */
.theme-wise .facts th, .theme-wise .facts td { padding: 9px 20px; border-bottom: 1px solid var(--line); background: none; font-size: 13.5px; }
.theme-wise .facts th { color: var(--text-3); font-weight: 500; }
/* the package's kinds: two quiet lines */
.theme-wise td.kinds-cell { min-width: 150px; line-height: 1.4; }
.theme-wise td.kinds-cell span { display: block; }
.theme-wise td.kinds-cell small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ===================== field ===================== */
.theme-wise label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.theme-wise input[type=text], .theme-wise input[type=email], .theme-wise input[type=password], .theme-wise input[type=search], .theme-wise input[type=number],
.theme-wise input[type=url], .theme-wise select, .theme-wise textarea {
  height: 40px; padding: 0 12px; border: 0 !important; border-radius: var(--r-sm); background-color: var(--fill); color: var(--text); font-size: 14.5px;
  box-shadow: none; transition: background-color .12s, box-shadow .12s; }
.theme-wise textarea { height: auto; padding: 10px 12px; }
.theme-wise select { padding-right: 32px; cursor: pointer; }
.theme-wise input:hover, .theme-wise select:hover, .theme-wise textarea:hover { background-color: var(--fill-2); }
.theme-wise input:focus, .theme-wise select:focus, .theme-wise textarea:focus, .theme-wise select.sel-open { background-color: #fff !important; box-shadow: var(--glow), 0 1px 4px rgba(14, 15, 12, .08); outline: none; }
.theme-wise input:disabled, .theme-wise select:disabled, .theme-wise textarea:disabled { background-color: var(--soft); color: var(--text-3); }
.theme-wise input::placeholder, .theme-wise textarea::placeholder { color: #9b9d98; }
.theme-wise input[type=number] { font-variant-numeric: tabular-nums; }
.theme-wise input[type=checkbox], .theme-wise input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); cursor: pointer; }
.theme-wise input[type=file] { font-size: 13.5px; }
.theme-wise input[type=file]::file-selector-button { height: 34px; margin-right: 10px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill);
  color: var(--text); font: 600 13.5px var(--sans); cursor: pointer; }
.theme-wise .check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; }
/* page search boxes: a pill with the icon inside */
.theme-wise .tool-search input, .theme-wise .toolbar .search input, .theme-wise .search input { border-radius: 999px; padding-left: 38px; }
.theme-wise .tool-search svg.ic, .theme-wise .search svg.ic { left: 13px; top: 50%; translate: 0 -50%; }
/* a number with its unit: one grey field */
.theme-wise .suffix-input { display: flex; align-items: stretch; height: 40px; border: 0 !important; border-radius: var(--r-sm); background: var(--fill); overflow: hidden; }
.theme-wise .suffix-input:focus-within { background: #fff; box-shadow: var(--glow), 0 1px 4px rgba(14, 15, 12, .08); }
.theme-wise .suffix-input input, .theme-wise .suffix-input select { height: 100%; border: 0 !important; background-color: transparent !important; box-shadow: none !important; }
.theme-wise .suffix-input input { padding: 0 8px 0 12px; font-weight: 600; text-align: right; }
.theme-wise .suffix-input > span { display: flex; align-items: center; padding: 0 12px 0 2px; border: 0; background: none; color: var(--text-3); font: 500 12.5px var(--sans); }
.theme-wise .suffix-input select { width: auto; padding: 0 26px 0 2px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.theme-wise .suffix-input:has(input:disabled) { background: var(--soft); }
.theme-wise .suffix-input input:disabled { background: none; }
/* page forms: label left, field right, no lines */
.theme-wise .form-rows th, .theme-wise .form-rows td { padding: 8px; border: 0 !important; background: none !important; vertical-align: middle; }
.theme-wise .form-rows th { width: 200px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.theme-wise .form-rows td input[type=text], .theme-wise .form-rows td input[type=email], .theme-wise .form-rows td select { max-width: 320px; }
.theme-wise .form-rows tr:has(.limits) > th { vertical-align: top; padding-top: 14px; }
.theme-wise .whm-form { max-width: 760px; gap: 16px; }
.theme-wise #setForm label[data-key] { border: 0; padding: 8px 0; }
.theme-wise .sec-form h3:not(:first-child), .theme-wise .set-foot { border-color: var(--line); }
.theme-wise .form-card > label:not(.check) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0; border: 0; }
.theme-wise .form-card > label:not(.check) > .hint { grid-column: 1; }
.theme-wise .form-card > label > .mono { display: block; padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
/* password strength: a status chip as tall as the button beside it */
.theme-wise .strength { display: inline-flex; align-items: center; height: 34px; margin-right: 8px; padding: 0 12px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; vertical-align: middle; }
.theme-wise .strength.s1 { background: var(--bad-soft); color: var(--bad); } .theme-wise .strength.s2 { background: var(--warn-soft); color: var(--warn); }
.theme-wise .strength.s3, .theme-wise .strength.s4 { background: var(--ok-soft); color: var(--ok); }

/* ===================== button ===================== */
.theme-wise .btn { height: 38px; padding: 0 16px; gap: 7px; border: 0; border-radius: 999px; background: var(--fill); color: var(--text); font-size: 14px; font-weight: 600;
  box-shadow: none; text-decoration: none !important; }
.theme-wise .btn:hover { background: var(--fill-2); color: var(--text); }
.theme-wise .btn.primary { background: var(--lime); color: var(--on-lime, var(--forest)); }
.theme-wise .btn.primary:hover { background: var(--lime-2); color: var(--on-lime, var(--forest)); }
.theme-wise .btn.danger { background: var(--bad-soft); color: var(--bad); }
.theme-wise .btn.danger:hover { background: #fbd6d2; color: var(--bad); }
.theme-wise .btn.danger.solid { background: #d93a3a; color: #fff; }
.theme-wise .btn.danger.solid:hover { background: #c32f2f; color: #fff; }
.theme-wise .btn.ghost { background: none; }
.theme-wise .btn.ghost:hover { background: var(--fill); }
.theme-wise .btn.on { background: var(--lime-soft); color: var(--forest); }
.theme-wise .btn.small, .theme-wise .top-actions .btn, .theme-wise .form-rows td .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.theme-wise .btn.wide { height: 46px; font-size: 15px; }
.theme-wise .btn:disabled { opacity: .45; }
.theme-wise .btn svg.ic { width: 16px; height: 16px; }
.theme-wise .icon-btn { border-radius: 50%; color: var(--text-2); }
.theme-wise .icon-btn:hover { background: var(--fill); color: var(--text); }
.theme-wise .icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.theme-wise .link-btn { color: var(--forest); }

/* ===================== chip ===================== */
.theme-wise .tag, .theme-wise .kind, .theme-wise .plain-tag, .theme-wise .badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--fill); color: var(--text-2);
  font: 500 12.5px var(--sans); white-space: nowrap; }
.theme-wise .kind::before { display: none; }
.theme-wise td .tag, .theme-wise td .kind { margin: 2px 4px 2px 0; }
.theme-wise .badge { font-weight: 600; }
.theme-wise .badge.ok { background: var(--ok-soft); color: var(--ok); }
.theme-wise .badge.warn, .theme-wise .tag.warn-tag { background: var(--warn-soft); color: var(--warn); }
.theme-wise .badge.bad { background: var(--bad-soft); color: var(--bad); }
.theme-wise .tag.kind-mariadb, .theme-wise .tag.kind-postgresql { background: var(--fill); color: var(--text-2); }
.theme-wise .flag-fk, .theme-wise .th-flag.flag-fk { color: var(--text-2); }
/* connection facts (host, ports) */
.theme-wise .ns-item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border: 0; border-radius: 999px; background: var(--fill); font-size: 13.5px; }
.theme-wise .ns-item .mono { font-weight: 600; color: var(--text); }
.theme-wise .ns-item .icon-btn { width: 28px; height: 28px; background: #fff; }

/* ===================== tabs ===================== */
.theme-wise .tabs, .theme-wise .segmented, .theme-wise .seg, .sp-tabs, .sp-range {
  display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 18px; padding: 3px; border: 0; border-radius: 999px; background: var(--fill); }
.theme-wise .tabs button, .theme-wise .tabs a, .theme-wise .segmented button, .theme-wise .seg button, .sp-tabs button, .sp-range button {
  height: 32px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 13.5px var(--sans);
  text-decoration: none; cursor: pointer; }
.theme-wise .tabs button:hover, .theme-wise .tabs a:hover, .theme-wise .seg button:hover, .theme-wise .segmented button:hover, .sp-tabs button:hover, .sp-range button:hover { color: var(--text); background: none; border: 0; }
.theme-wise .tabs .on, .theme-wise .seg button.on, .theme-wise .segmented button.on, .sp-tabs button.on, .sp-range button.on {
  background: #fff !important; color: var(--text) !important; box-shadow: 0 1px 3px rgba(14, 15, 12, .12); }
.theme-wise .tabs button.on::after { display: none; }
.theme-wise .seg button:disabled, .theme-wise .segmented button:disabled { opacity: .45; cursor: default; }

/* ===================== dialog ===================== */
.theme-wise .modal { background: rgba(14, 15, 12, .35); }
.theme-wise .modal-card { max-width: 460px; border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); animation: dlg-in .18s ease-out; }
.theme-wise .modal-card.wide { max-width: 640px; }
.theme-wise .modal-card header { padding: 20px 16px 2px 22px; border: 0; align-items: center; }
.theme-wise .modal-card header h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.theme-wise .modal-card header .icon-btn { width: 32px; height: 32px; background: var(--fill); color: var(--text); }
.theme-wise .modal-body { padding: 12px 22px 4px; gap: 14px; }
.theme-wise .modal-body > p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.theme-wise .modal-body > p b { color: var(--text); }
.theme-wise .modal-body > label:not(.check) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0; border: 0; font-size: 13.5px; }
.theme-wise .modal-body > label:not(.check) > .hint { grid-column: 1; }
.theme-wise .modal-body > label input, .theme-wise .modal-body > label select, .theme-wise .modal-body > label textarea { width: 100%; }
/* long help text: two lines, the rest on hover */
.theme-wise .modal-body > .hint, .theme-wise .modal-body > p.hint, .theme-wise .modal-body label > .hint {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12.5px; color: var(--text-3); }
.theme-wise .modal-body > .hint:hover, .theme-wise .modal-body label > .hint:hover { -webkit-line-clamp: unset; }
.theme-wise .modal-card footer { padding: 16px 22px 20px; gap: 8px; border: 0; background: none; border-radius: 0 0 20px 20px; }
.theme-wise .modal-card footer .btn { height: 40px; padding: 0 18px; }
.theme-wise .modal-card:has(.btn.danger.solid) .modal-body input:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .14), 0 1px 4px rgba(14, 15, 12, .08); }
.theme-wise .modal-body .limits { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px); } }

/* limits: small grey cards, label on top, value at the bottom */
.theme-wise .limits { display: grid; width: 100%; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; border: 0; background: none; overflow: visible; }
.theme-wise .limits span { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-height: 62px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.theme-wise .limits small { font-size: 12px; line-height: 1.3; color: var(--text-3); }
.theme-wise .limits b { font-size: 15.5px; font-weight: 700; color: var(--text); }
.theme-wise .limits span.unl { background: var(--soft); }
.theme-wise .limits span.unl b { font-size: 14px; font-weight: 500; color: var(--text-3); }

/* the package editor: plain sections, label | field | "Sınırsız" rows */
.theme-wise .pkg-top { gap: 12px 16px; align-items: end; }
.theme-wise .pkg-top > label, .theme-wise .pkg-presets { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.theme-wise .pkg-presets > div { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); }
.theme-wise .pkg-presets .btn { height: 32px; background: none; color: var(--text-2); }
.theme-wise .pkg-presets .btn:hover { background: #fff; color: var(--text); }
.theme-wise .pkg-sec { padding: 14px 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.theme-wise .pkg-sec h4 { margin: 0 0 4px; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.theme-wise .pkg-off { border-radius: 999px; background: var(--fill); color: var(--text-2); padding: 1px 9px; font-size: 12px; font-weight: 600; }
.theme-wise .lim-row { grid-template-columns: minmax(0, 1fr) 150px auto; gap: 12px; padding: 7px 0; border: 0; }
.theme-wise .lim-label b { font-size: 14px; font-weight: 600; }
.theme-wise .lim-label small { font-size: 12.5px; color: var(--text-3); }
.theme-wise .lim-unl { min-width: 0; white-space: nowrap; }
.theme-wise .lim-types { display: grid; gap: 8px; padding: 8px 0 4px; border: 0; font-size: 13.5px; font-weight: 600; }
.theme-wise .kind-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; }
.theme-wise .kind-why { color: var(--text-3); font-size: 12px; font-weight: 400; }
.theme-wise .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin: 6px 0; }
.theme-wise .feat { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.theme-wise .feat input { margin-top: 2px; flex: none; }
.theme-wise .feat span { display: grid; gap: 1px; }
.theme-wise .feat b { font-size: 14px; font-weight: 600; }
.theme-wise .feat small { font-size: 12.5px; color: var(--text-3); }

/* column rows (new table, add column): fields and the remove button on one line, the options under them */
.theme-wise .modal-card:has(.col-row) { max-width: min(700px, calc(100vw - 32px)); width: 100%; }
.theme-wise .modal-body .col-head, .theme-wise .modal-body .col-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.theme-wise .modal-body .col-head > :nth-child(1), .theme-wise .modal-body .col-row > [data-f="name"] { flex: 1.4 1 120px; min-width: 0; }
.theme-wise .modal-body .col-head > :nth-child(2), .theme-wise .modal-body .col-row > [data-f="type"] { flex: 0 0 124px; }
.theme-wise .modal-body .col-head > :nth-child(3), .theme-wise .modal-body .col-row > [data-f="length"] { flex: 0 0 82px; }
.theme-wise .modal-body .col-head > :nth-child(4), .theme-wise .modal-body .col-row > [data-f="default"] { flex: 1 1 100px; min-width: 0; }
.theme-wise .modal-body .col-head::after { content: ""; flex: 0 0 30px; }
.theme-wise .modal-body .col-head { margin-bottom: -6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.theme-wise .modal-body .col-row { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.theme-wise .modal-body .col-row > .icon-btn { flex: 0 0 30px; width: 30px; height: 30px; order: 1; }
.theme-wise .modal-body .col-row::after { content: ""; flex: 0 0 100%; height: 0; order: 2; }
.theme-wise .modal-body .col-row > .check { order: 3; margin-right: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.theme-wise .modal-body .col-row > .check:has(input:checked) { color: var(--text); }
.theme-wise .modal-body .col-row .invisible { display: none; }
.theme-wise .modal-body .col-row input[type=text], .theme-wise .modal-body .col-row select { height: 38px; font-size: 13.5px; }
/* the new-row form: every label line the same height, so the fields of a row line up */
.theme-wise .row-form { gap: 12px 14px; }
.theme-wise .row-form > label { display: grid; grid-template-rows: 32px auto; gap: 4px; }
.theme-wise .col-label { align-items: center; min-width: 0; }
.theme-wise .col-label .fn-pick { height: 28px; padding: 0 24px 0 10px; font-size: 12.5px; border-radius: 999px; }
.theme-wise .modal-body .priv-grid .check { font-weight: 500; }

/* ===================== drop-down list (selectPop in app.js) ===================== */
.select-pop { position: fixed; z-index: 80; overflow-y: auto; padding: 5px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  scrollbar-width: thin; animation: sel-in .14s ease-out; }
.sp-grp { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.sp-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 9px; background: none;
  color: var(--text); font: 400 14px/1.3 var(--sans); text-align: left; cursor: pointer; }
.sp-opt span { flex: 1; min-width: 0; }
.sp-opt svg.ic { width: 16px; height: 16px; flex: none; color: var(--forest); stroke-width: 2.2; }
.sp-opt.act { background: var(--fill); }
.sp-opt.cur { font-weight: 600; }
.sp-opt:disabled { color: var(--text-3); cursor: default; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-3px); } }

/* ===================== page search (palette) ===================== */
.palette { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(14, 15, 12, .35); }
.pal-card { width: min(580px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg);
  animation: dlg-in .16s ease-out; }
.pal-in { flex: none; display: flex; align-items: center; gap: 12px; margin: 8px; padding: 0 10px 0 16px; height: 52px; border-radius: 14px; background: var(--fill); color: var(--text-2); font-weight: 400; }
.pal-in svg.ic { width: 20px; height: 20px; flex: none; }
.theme-wise .pal-in input[type=search] { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none !important; box-shadow: none !important; font-size: 16px; font-weight: 500; }
.pal-in input::-webkit-search-cancel-button { display: none; }
.pal-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; }
.pal-group { padding: 12px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.theme-wise .pal-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.theme-wise .pal-list a.sel { background: var(--fill); }
.pal-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--text); }
.pal-list a.sel .pal-ic { background: #fff; }
.pal-ic svg.ic { width: 17px; height: 17px; }
.pal-txt { flex: 1; min-width: 0; display: grid; }
.pal-txt b { font-size: 14px; font-weight: 600; }
.pal-txt small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 12px; }
.pal-go { display: none; }
.pal-empty { padding: 32px 16px; text-align: center; color: var(--text-3); }
.pal-foot { flex: none; display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.pal-foot span { display: inline-flex; align-items: center; gap: 5px; }
.pal-foot kbd { background: var(--fill); box-shadow: none; height: 22px; }

/* ===================== home ===================== */
.status-panel { padding: 22px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.sp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-head h3 { font-size: 17px; font-weight: 650; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3fbf3f; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.sp-host { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.sp-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.sp-chart { display: flex; flex-direction: column; min-width: 0; }
.sp-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-tools .sp-tabs, .sp-tools .sp-range { margin: 0; background: #fff; }
.sp-tools .sp-tabs button.on, .sp-tools .sp-range button.on { background: var(--fill) !important; box-shadow: none; }
.sp-tabs button, .sp-range button { height: 28px; padding: 0 11px; font-size: 12.5px; }
.sp-big { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.sp-big b { font-weight: 700; }
.sp-big span { font-size: 13px; color: var(--text-3); }
.sp-stats { min-height: 20px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-3); }
.sp-stats b { color: var(--text); font-weight: 600; }
.sp-plot { position: relative; flex: 1; min-height: 170px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.sp-canvas { position: relative; min-width: 0; cursor: crosshair; }
.sp-plot svg { display: block; width: 100%; height: 100%; min-height: 170px; overflow: hidden; }
.sp-plot .grid { stroke: #c9ccc5; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.sp-plot .base { stroke: #c9ccc5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sp-plot .ln { fill: none; stroke: var(--forest); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-plot .area { fill: color-mix(in srgb, var(--lime-2, var(--lime-2)) calc(.35 * 100%), transparent); stroke: none; }
.sp-dot { position: absolute; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px var(--soft); }
.sp-tip { position: absolute; top: 0; left: 0; z-index: 3; width: 124px; translate: -50% -100%; display: grid; padding: 6px 8px; border-radius: 10px; background: var(--forest);
  color: #fff; font-size: 13px; line-height: 1.3; text-align: center; white-space: nowrap; pointer-events: none; will-change: transform; }
.sp-tip b { font-variant-numeric: tabular-nums; }
.sp-tip small { font-size: 11.5px; opacity: .75; font-variant-numeric: tabular-nums; }
.sp-tip::after { content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--forest);
  border-radius: 0 0 2px 0; rotate: 45deg; }
.sp-tip.below { translate: -50% 0; }
.sp-tip.below::after { top: 0; border-radius: 2px 0 0 0; }
.sp-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 24px; text-align: center; color: var(--text-3); font-size: 13px; }
.sp-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.sp-x { display: flex; justify-content: space-between; margin: 6px 60px 0 0; font-size: 12px; color: var(--text-3); }
.sp-side { display: grid; gap: 8px; align-content: start; }
.sp-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 12px; border-radius: 14px; background: #fff; }
.sp-row.skeleton-tile { background: rgba(255, 255, 255, .6); }
.sp-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--text-2); }
.sp-ic svg.ic { width: 17px; height: 17px; }
.sp-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sp-txt small { font-size: 12px; color: var(--text-3); }
.sp-txt b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-txt b span { font-weight: 500; color: var(--text-3); }
.sp-txt .bar { height: 5px; margin-top: 4px; }
.sp-sub { flex: none; font-size: 12.5px; color: var(--text-2); }
.theme-wise .sp-more { height: 44px; margin-top: 2px; justify-content: center; }
.count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.theme-wise .count-tile { display: grid; gap: 3px; align-content: start; min-height: 108px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  color: var(--text); text-decoration: none !important; }
.theme-wise .count-tile:hover { background: var(--soft); color: var(--text); }
.count-tile.skeleton-tile { background: var(--soft); border-color: transparent; }
.ct-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ct-head svg.ic { width: 16px; height: 16px; color: var(--text-3); }
.ct-value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.ct-value small { font-size: 15px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.ct-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.count-tile .bar { height: 5px; margin: 4px 0 2px; }
.ct-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-3); }
.count-tile.is-warn .ct-sub { color: var(--warn); } .count-tile.is-warn .ct-dot { background: #e0a100; }
.count-tile.is-bad .ct-sub { color: var(--bad); } .count-tile.is-bad .ct-dot { background: var(--bad); }
.count-tile.is-ok .ct-sub { color: var(--ok); }
/* home counters (statTile): icon + status chip, number with unit, breakdown bar with legend, one detail */
.count-grid { gap: 12px; }
.theme-wise .stat-tile { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 16px 18px 16px; transition: border-color .12s, box-shadow .12s, background .12s; }
.theme-wise .stat-tile:hover { background: #fff; border-color: #d6d9d2; box-shadow: 0 6px 20px -12px rgba(14, 15, 12, .25); }
.st-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--text); }
.st-icon svg.ic { width: 17px; height: 17px; }
.st-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--fill); color: var(--text-2); }
.st-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-ok .st-chip { background: var(--ok-soft); color: var(--ok); }
.is-warn .st-chip { background: var(--warn-soft); color: var(--warn); }
.is-bad .st-chip { background: var(--bad-soft); color: var(--bad); }
.st-go { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: .15s; }
.stat-tile:hover .st-go { opacity: 1; transform: none; }
.st-value { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 12px; line-height: 1; min-width: 0; }
.st-value b { font-size: 32px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--text); }
.st-value em { font-style: normal; font-size: 18px; font-weight: 650; color: var(--text-3); letter-spacing: -.02em; }
.st-value small { font-size: 13.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bar { display: flex; flex: none; gap: 3px; height: 8px; }
.st-bar i { min-width: 6px; border-radius: 999px; background: var(--fill); }
.st-bar .ok, .st-legend i.ok { background: var(--lime-2); }
.st-bar .warn, .st-legend i.warn { background: #e0a100; }
.st-bar .bad, .st-legend i.bad { background: #e5484d; }
.st-bar .mute, .st-legend i.mute { background: #d6d9d2; }
.st-bar .c1, .st-legend i.c1 { background: var(--forest); }
.st-bar .c2, .st-legend i.c2 { background: var(--lime); }
.st-bar .rest { background: var(--fill); min-width: 0; }
.st-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 8px 0 12px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-legend i { width: 8px; height: 8px; border-radius: 50%; }
.st-legend .st-pct { margin-left: auto; font-weight: 600; color: var(--text); }
.st-note { display: block; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.st-note { font-size: 12.5px; line-height: 1.35; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-warn .st-note { color: var(--warn); } .is-bad .st-note { color: var(--bad); }
.count-grid .count-tile.skeleton-tile { min-height: 168px; }
@media (max-width: 760px) { .st-value b { font-size: 26px; } .st-value { margin: 12px 0 10px; } .count-grid .count-tile.skeleton-tile { min-height: 150px; } }
.home-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 4px 0; color: var(--text-2); font-size: 13.5px; }
.home-summary a { color: var(--text-2); }
.home-summary b { color: var(--text); font-weight: 600; }
.dot-sep { color: #c9ccc5; }
.home-group { margin-top: 30px; }
.home-group h3 { margin: 0 0 10px 2px; font-size: 16px; font-weight: 650; color: var(--text); }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.theme-wise .home-card { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--text); text-decoration: none !important; }
.theme-wise .home-card:hover { background: var(--soft); color: var(--text); }
.hc-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--text); }
.hc-icon svg.ic { width: 19px; height: 19px; }
.hc-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hc-text b { font-size: 14.5px; font-weight: 600; }
.hc-text small { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.hc-go { color: #b3b6ae; flex: none; }
.hc-go svg.ic { width: 17px; height: 17px; }

/* ===================== toast, login ===================== */
.theme-wise .toast { border: 0; border-radius: 14px; background: var(--forest); color: #fff; }
.theme-wise .login { min-height: 100vh; background: var(--soft); }
.theme-wise .login-card { max-width: 400px; padding: 32px; border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.theme-wise .login-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.theme-wise .mark { background: var(--lime); color: var(--on-lime, var(--forest)); border-radius: 50%; }
.theme-wise .mark b { color: var(--forest); }

/* ===================== narrower screens ===================== */
@media (max-width: 1180px) {
  .theme-wise .top, .theme-wise .view, .theme-wise .editor-holder { padding-left: 32px; padding-right: 32px; }
  body.theme-wise.editor-view .top { padding-left: 32px; padding-right: 32px; }
  .theme-wise th, .theme-wise td { padding-left: 8px; padding-right: 8px; }
  .theme-wise .table-wrap .badge { white-space: normal; height: auto; min-height: 24px; padding: 3px 10px; line-height: 1.3; }
  .theme-wise .table-wrap td.actions .btn .hide-sm { display: none; }
  .theme-wise .table-wrap td.actions .btn { padding: 0 10px; }
}
@media (max-width: 1100px) { .search-btn { width: 220px; } .sp-body { grid-template-columns: minmax(0, 1fr); } .count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .theme-wise .topbar { padding: 12px 16px 8px 104px; gap: 8px; }
  .theme-wise .top-brand { top: 18px; left: 10px; padding: 4px 6px 6px; font-size: 24px; }
  .back-btn, .me-avatar { width: 40px; height: 40px; }
  .me-name, .me-chip > svg.ic { display: none; }
  .search-btn { width: 40px; height: 40px; padding: 0; justify-content: center; } .search-btn span, .search-btn kbd { display: none; }
  .theme-wise .top, .theme-wise .view { padding-left: 16px; padding-right: 16px; }
  body.theme-wise.editor-view .top { padding-left: 16px; padding-right: 16px; }
  .theme-wise .editor-holder { padding: 0 0 12px; }
  .theme-wise .editor-frame { border-radius: 0; border-width: 1px 0; }
  .theme-wise .top h2 { font-size: 24px; }
  .theme-wise .view { padding-top: 12px; padding-bottom: 48px; }
  .theme-wise .acting-bar { margin: 8px 16px 0; flex-wrap: wrap; }
  .theme-wise .table-wrap th:first-child, .theme-wise .table-wrap td:first-child { padding-left: 10px; }
  .theme-wise .table-wrap th:last-child, .theme-wise .table-wrap td:last-child { padding-right: 8px; }
  /* page forms on a phone: the label above its field */
  .theme-wise .form-rows, .theme-wise .form-rows tbody, .theme-wise .form-rows tr { display: block; }
  .theme-wise .form-rows tr { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 0; }
  .theme-wise .form-rows th { display: block; flex: 0 0 100%; width: 100%; padding: 6px 0 2px; }
  .theme-wise .form-rows td { display: block; padding: 4px 0; }
  .theme-wise .form-rows td:not(.ok-cell) { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .theme-wise .form-rows td.ok-cell { flex: 0 0 auto; padding-left: 10px; }
  .theme-wise .form-rows .limits { max-width: none; }
  .theme-wise .form-rows td input[type=text], .theme-wise .form-rows td input[type=email], .theme-wise .form-rows td select { max-width: none; width: 100%; }
  .theme-wise .modal-card { border-radius: 20px 20px 0 0; }
  .palette { padding: 10px; } .pal-foot { display: none; }
  .theme-wise .lim-row { grid-template-columns: minmax(0, 1fr) auto; }
  .theme-wise .lim-row .lim-label { grid-column: 1 / -1; }
  .theme-wise .modal-body .col-head { display: none; }
  .theme-wise .modal-body .col-row > [data-f="name"] { flex: 1 1 calc(100% - 46px); order: 0; }
  .theme-wise .modal-body .col-row > .icon-btn { order: 0; }
  .theme-wise .modal-body .col-row > [data-f="type"] { flex: 1 1 0; order: 1; }
  .theme-wise .modal-body .col-row > [data-f="length"] { flex: 0 0 96px; order: 1; }
  .theme-wise .modal-body .col-row > [data-f="default"] { flex: 1 1 100%; order: 1; }
}
@media (max-width: 640px) {
  .home-cards { grid-template-columns: minmax(0, 1fr); }
  .status-panel { padding: 14px; } .sp-host { margin-left: 0; width: 100%; } .ct-value { font-size: 22px; } .count-tile { min-height: 0; }
  .theme-wise th, .theme-wise td { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .theme-wise .modal-card, .pal-card, .select-pop, .live-pill i { animation: none; } }
/* database manager: a slimmer side list, the tables list on single lines */
.theme-wise .dbm { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.theme-wise .dbm-main .table-wrap td { white-space: nowrap; min-width: 0; }
@media (max-width: 1100px) { .theme-wise .dbm { grid-template-columns: minmax(0, 1fr); } }
.theme-wise .dbm-main .table-wrap th, .theme-wise .dbm-main .table-wrap td { padding-left: 10px; padding-right: 10px; }
/* number strips (mail overview, account stats): one card */
.theme-wise .mail-stats, .theme-wise .acc-stats { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }

/* ===================== the action log (İşlem kaydı) ===================== */
.au-stats { margin: 0 0 18px; }
.theme-wise .au-stats .count-tile { min-height: 0; cursor: default; }
.theme-wise .au-stats .count-tile:hover { background: #fff; }
.au-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.au-search { flex: 1; min-width: 220px; position: relative; }
.theme-wise .au-search input { width: 100%; }
.theme-wise .au-filters select { width: 220px; }
.theme-wise .au-kinds { margin-bottom: 8px; }
.au-day { margin-top: 18px; }
.au-day h3 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: none; letter-spacing: 0; }
.au-row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.au-row:last-child { border-bottom: 0; }
.au-row:hover { background: var(--soft); }
.au-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--text-2); }
.au-ic svg.ic { width: 16px; height: 16px; }
.au-row.danger .au-ic { background: var(--bad-soft); color: var(--bad); }
.au-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.au-main b { font-size: 14px; font-weight: 600; }
.au-main small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-row:hover .au-main small { white-space: normal; overflow-wrap: anywhere; }
.au-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.au-meta small { font-size: 12.5px; color: var(--text-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-time { flex: none; width: 44px; text-align: right; font-size: 13px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.au-more { display: flex; justify-content: center; margin-top: 16px; }
.au-end, .au-empty { margin-top: 14px; text-align: center; color: var(--text-3); font-size: 13px; }
.au-empty { padding: 28px; }
@media (max-width: 760px) {
  .au-meta .tag { display: none; }
  .au-meta small { display: none; }
  .au-row { gap: 10px; padding: 10px 12px; }
  .theme-wise .au-filters select { width: 100%; }
}
.theme-wise input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
@media (max-width: 760px) {
  .theme-wise .au-kinds { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .theme-wise .au-kinds button { flex: none; }
}
/* home counters on a phone: the status chip becomes its dot, lines may wrap */
@media (max-width: 560px) {
  .theme-wise .stat-tile { padding: 14px; }
  .st-head { gap: 8px; }
  .st-icon { width: 30px; height: 30px; } .st-icon svg.ic { width: 15px; height: 15px; }
  .st-label { font-size: 13.5px; }
  .st-chip { width: 10px; height: 10px; padding: 0; font-size: 0; background: currentColor !important; }
  .st-chip::before { display: none; }
  .st-value small { font-size: 12.5px; }
  .st-legend span { white-space: normal; }
  .st-legend .st-pct { margin-left: 0; }
  .st-note { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* home counters, quieter (as before): no hover, small grey icon, smaller number, thin bar */
.theme-wise .stat-tile, .theme-wise .stat-tile:hover { padding: 14px 16px; background: #fff; border-color: var(--line); box-shadow: none; transition: none; }
.st-head { gap: 7px; }
.st-icon { width: auto; height: auto; background: none; color: var(--text-3); }
.st-icon svg.ic { width: 16px; height: 16px; }
.st-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.st-chip { height: 20px; padding: 0 8px; font-size: 11.5px; }
.st-value { margin: 8px 0 10px; gap: 5px; }
.st-value b { font-size: 26px; letter-spacing: -.03em; }
.st-value em { font-size: 15px; font-weight: 600; }
.st-value small { font-size: 12.5px; }
.st-bar { height: 5px; gap: 2px; }
.st-bar i { min-width: 4px; }
.st-legend { gap: 2px 10px; margin: 7px 0 8px; font-size: 12px; }
.st-legend i { width: 7px; height: 7px; }
.st-note { padding-top: 0; border-top: 0; font-size: 12.5px; }
.count-grid { gap: 10px; }
.count-grid .count-tile.skeleton-tile { min-height: 132px; }
@media (max-width: 560px) {
  .theme-wise .stat-tile, .theme-wise .stat-tile:hover { padding: 12px 14px; }
  .st-icon { width: auto; height: auto; }
  .st-chip { width: 8px; height: 8px; padding: 0; font-size: 0; }
  .st-value b { font-size: 22px; }
}

/* home counters inside the status panel: white boxes like its side rows, the chart's own calm greens */
.count-grid.in-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); gap: 8px; }
.theme-wise .in-panel .stat-tile, .theme-wise .in-panel .stat-tile:hover { border: 0; border-radius: 14px; background: #fff; }
.in-panel .count-tile.skeleton-tile { border: 0; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.in-panel .st-bar i, .in-panel .st-bar .rest { background: var(--fill); }
.in-panel .st-bar .ok, .in-panel .st-legend i.ok { background: var(--lime-2); }
.in-panel .st-bar .c1, .in-panel .st-legend i.c1 { background: var(--lime-2); }
.in-panel .st-bar .c2, .in-panel .st-legend i.c2 { background: var(--lime-soft); }
.in-panel .st-bar .warn, .in-panel .st-legend i.warn { background: #f1d08a; }
.in-panel .st-bar .bad, .in-panel .st-legend i.bad { background: #f1a9a5; }
.in-panel .st-bar .mute, .in-panel .st-legend i.mute { background: #e4e7e0; }
.in-panel .st-chip { height: 18px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.in-panel .is-ok .st-chip { background: var(--fill); color: var(--text-2); }
.in-panel .is-ok .st-chip::before { background: var(--lime-2); }
.in-panel .is-warn .st-note { color: var(--text-2); }
.in-panel .is-bad .st-note { color: var(--bad); }
@media (max-width: 760px) { .count-grid.in-panel { margin-top: 14px; padding-top: 14px; } }
@media (max-width: 560px) { .in-panel .st-chip { width: 8px; height: 8px; padding: 0; font-size: 0; } .in-panel .is-ok .st-chip { background: var(--lime-2) !important; } }

/* home counters: one white box split by faint hairlines (the grid's 1px gaps show its colour) */
.count-grid.in-panel { gap: 1px; padding: 0; margin-top: 18px; border: 0; border-radius: 14px; background: #f0f1ed; overflow: hidden; }
.theme-wise .in-panel .stat-tile, .theme-wise .in-panel .stat-tile:hover { border-radius: 0; padding: 16px 18px; }
/* loading: the card's own shape in shimmering grey */
.st-skel { pointer-events: none; }
.st-skel .sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #f0f1ed 0%, #f7f8f5 50%, #f0f1ed 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite; }
.st-skel .sk-title { width: 45%; height: 14px; margin: 2px 0; }
.st-skel .sk-value { width: 38%; height: 24px; margin: 10px 0 12px; border-radius: 8px; }
.st-skel .sk-bar { width: 100%; height: 5px; border-radius: 999px; }
.st-skel .sk-legend { width: 55%; height: 10px; margin: 9px 0 0; }
.st-skel .sk-note { width: 75%; height: 10px; margin-top: auto; }
.st-skel .sk-legend + .sk-note { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .st-skel .sk { animation: none; } }
/* home counters reach the panel's edges: no side or bottom margin, the panel's own bottom corners */
.count-grid.in-panel { margin: 22px -22px -22px; border-top: 1px solid var(--line); border-radius: 0 0 19px 19px; }
@media (max-width: 760px) { .count-grid.in-panel { margin: 16px -14px -14px; } }

.sp-row {
    border: 1px solid #0000000d
}

/* ===================== API designer (edit view) in the panel's own look =====================
   soft rounded boxes, no thick coloured left edges; a block's colour stays only on its round icon */
.theme-wise .fd { gap: 16px; }
.theme-wise .fd-list { padding: 6px; }
.theme-wise .fd-item { gap: 10px; padding: 9px 10px; border-radius: 12px; }
.theme-wise .fd-item.on { background: var(--fill); box-shadow: none; }
.theme-wise .fd-item .method { min-width: 48px; border-radius: 999px; }

.theme-wise .fd-head { padding: 18px; gap: 14px; }
.theme-wise .fd-name { height: 40px; padding: 0 12px; background: var(--fill) !important; border-radius: 12px !important; }
.theme-wise .fd-knob { background: #d6d9d2; }
.theme-wise .fd-switch input:checked + .fd-knob { background: var(--forest); }
.theme-wise .fd-switch-txt { min-width: 44px; }

/* address: one soft field, the method a small coloured pill inside it */
.theme-wise .fd-addr { height: 44px; align-items: center; gap: 0; padding: 0 4px 0 5px; border: 1px solid transparent; border-radius: 12px; background: var(--fill); overflow: hidden; }
.theme-wise .fd-addr:focus-within { border-color: var(--forest); background: #fff; box-shadow: var(--glow); }
.theme-wise .fd-addr .fd-method { flex: none; width: auto; min-width: 0; height: 32px; padding: 0 26px 0 12px; border: 0 !important; border-radius: 9px; font: 700 12.5px var(--mono);
  background-position: right 8px center; box-shadow: none; }
.theme-wise .fd-m-get .fd-method { background-color: #2f7a1c; } .theme-wise .fd-m-post .fd-method { background-color: #1d6fa5; }
.theme-wise .fd-m-put .fd-method, .theme-wise .fd-m-patch .fd-method { background-color: #9a6100; } .theme-wise .fd-m-delete .fd-method { background-color: #c0362c; }
.theme-wise .fd-base { height: 100%; padding: 0 0 0 10px !important; background: none !important; color: var(--text-3); font-size: 13px; }
.theme-wise .fd-addr input { height: 100%; min-width: 80px; padding: 0 8px 0 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13.5px; }
.theme-wise .fd-url { color: var(--text-3); font-size: 12.5px; }

.theme-wise .fd-inputs { padding: 16px 18px; gap: 10px; }
.theme-wise .fd-sec-head { gap: 8px; }
.theme-wise .fd-sec-head .muted { font-size: 12.5px; color: var(--text-3); }

/* flow */
.theme-wise .fd-node { height: 38px; padding: 0 16px; border-radius: 999px; }
.theme-wise .fd-node.start { background: var(--forest); }
.theme-wise .fd-node.end { border: 0; background: var(--fill); color: var(--text-2); }
.theme-wise .fd-dz:before { background: #d6d9d2; }
.theme-wise .fd-dz-empty { border: 1.5px dashed #d0d4cb; border-radius: 16px; background: #fff; color: var(--text-3); }
.theme-wise .fd-dz-empty.over { border-color: var(--forest); background: var(--lime-soft); color: var(--forest); }
.theme-wise .fd-dz-add { border: 0; background: var(--fill); color: var(--text-2); }
.theme-wise .fd-dz-add:hover { background: var(--fill-2); color: var(--text); }

/* a block: white rounded box, coloured round icon */
.theme-wise .fd-step { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: none; }
.theme-wise .fd-step-head { gap: 10px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; background: none; }
.theme-wise .fd-step-head b { font-size: 14px; font-weight: 650; }
.theme-wise .fd-step-body { padding: 14px; gap: 10px; }
.theme-wise .fd-step.ran { box-shadow: 0 0 0 2px rgba(47, 122, 28, .35); }
.theme-wise .fd-step.failed { box-shadow: 0 0 0 2px rgba(192, 54, 44, .35); }
.theme-wise .fd-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--bs); color: var(--b); }
.theme-wise .fd-ic svg.ic { width: 15px; height: 15px; }
.theme-wise .fd-branch { padding: 8px 10px 6px; border: 0; border-radius: 12px; background: var(--soft); }

/* side: blocks palette as soft rows, value chips as pills */
.theme-wise .fd-side { gap: 16px; }
.theme-wise .fd-side > .card { padding: 16px; gap: 10px; }
.theme-wise .fd-palette { gap: 4px !important; }
.theme-wise .fd-palette .fd-sec-head { margin-bottom: 6px; }
.theme-wise .fd-pal { gap: 12px; padding: 8px 10px 8px 8px; border: 0; border-radius: 12px; background: var(--soft); cursor: grab; transition: background .12s; }
.theme-wise .fd-pal:hover { background: var(--fill); }
.theme-wise .fd-pal:active { cursor: grabbing; }
.theme-wise .fd-pal b { font-size: 13.5px; font-weight: 600; }
.theme-wise .fd-pal small { font-size: 12px; color: var(--text-3); }
.theme-wise .fd-chips { gap: 6px; }
.theme-wise .fd-chip { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--fill); font: 500 12.5px var(--sans); }
.theme-wise .fd-chip:hover { background: var(--lime-soft); color: var(--forest); }
.theme-wise .fd-test .btn { justify-content: center; }
.theme-wise .fd-result pre { border: 0; border-radius: 12px; background: var(--soft); }
.theme-wise .fd-menu { border: 0; border-radius: 14px; padding: 5px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.theme-wise .fd-menu button { border-radius: 9px; }

/* address method pill: keeps its colour and white text when hovered, focused or open (the generic select rules turn fields white) */
.theme-wise .fd-addr select.fd-method, .theme-wise .fd-addr select.fd-method:hover, .theme-wise .fd-addr select.fd-method:focus, .theme-wise .fd-addr select.fd-method.sel-open {
  color: #fff; box-shadow: none; }
.theme-wise .fd-m-get select.fd-method { background-color: #2f7a1c !important; }
.theme-wise .fd-m-post select.fd-method { background-color: #1d6fa5 !important; }
.theme-wise .fd-m-put select.fd-method, .theme-wise .fd-m-patch select.fd-method { background-color: #9a6100 !important; }
.theme-wise .fd-m-delete select.fd-method { background-color: #c0362c !important; }
.theme-wise .fd-addr select.fd-method:hover { filter: brightness(1.08); }
.theme-wise .fd-addr select.fd-method:focus-visible, .theme-wise .fd-addr select.fd-method.sel-open { box-shadow: 0 0 0 3px rgba(14, 15, 12, .12); }

/* method pill: an icon for what the method does (left) and the arrow (right); a select can hold no markup, so both are backgrounds */
.theme-wise .fd-addr select.fd-method, .theme-wise .fd-addr select.fd-method:hover, .theme-wise .fd-addr select.fd-method:focus, .theme-wise .fd-addr select.fd-method.sel-open {
  padding-left: 32px !important; background-repeat: no-repeat, no-repeat; background-position: left 11px center, right 9px center; background-size: 14px, 12px; }
.theme-wise .fd-m-get select.fd-method, .theme-wise .fd-m-get select.fd-method:hover, .theme-wise .fd-m-get select.fd-method:focus, .theme-wise .fd-m-get select.fd-method.sel-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-wise .fd-m-post select.fd-method, .theme-wise .fd-m-post select.fd-method:hover, .theme-wise .fd-m-post select.fd-method:focus, .theme-wise .fd-m-post select.fd-method.sel-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-wise .fd-m-put select.fd-method, .theme-wise .fd-m-put select.fd-method:hover, .theme-wise .fd-m-put select.fd-method:focus, .theme-wise .fd-m-put select.fd-method.sel-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-wise .fd-m-patch select.fd-method, .theme-wise .fd-m-patch select.fd-method:hover, .theme-wise .fd-m-patch select.fd-method:focus, .theme-wise .fd-m-patch select.fd-method.sel-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-wise .fd-m-delete select.fd-method, .theme-wise .fd-m-delete select.fd-method:hover, .theme-wise .fd-m-delete select.fd-method:focus, .theme-wise .fd-m-delete select.fd-method.sel-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2M19 6l-1 14a2 2 0 0 1-2 1H8a2 2 0 0 1-2-1L5 6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
/* the method list: each option with the same icon in its colour */
.sp-mic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; color: #fff; }
.sp-opt .sp-mic svg.ic { width: 13px; height: 13px; color: #fff; stroke-width: 2.4; }
.sp-mic.m-get { background: #2f7a1c; } .sp-mic.m-post { background: #1d6fa5; } .sp-mic.m-put, .sp-mic.m-patch { background: #9a6100; } .sp-mic.m-delete { background: #c0362c; }

/* API designer: editor and its side panel; the saved APIs in a full-width list under them */
.theme-wise .fd { grid-template-columns: minmax(0, 1fr) 300px; }
.theme-wise .fd.fd-empty { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1300px) { .theme-wise .fd { grid-template-columns: minmax(0, 1fr) 260px; } .theme-wise .fd.fd-empty { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .theme-wise .fd { grid-template-columns: minmax(0, 1fr); } }
.fd-apis { margin-top: 16px; padding: 8px; }
.fd-apis-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.fd-apis-head b { font-size: 15px; font-weight: 650; }
.fd-count { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 600; }
.fd-apis-rows { display: grid; }
.fd-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fd-apis-rows .fd-row:first-child { border-top: 0; }
.fd-row:hover { background: var(--soft); border-radius: 12px; }
.fd-row:hover + .fd-row, .fd-row.on + .fd-row { border-top-color: transparent; }
.fd-row.on { background: var(--fill); border-radius: 12px; border-top-color: transparent; }
.fd-row-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32%; }
.fd-row-path { flex: 1; min-width: 0; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-row > svg.ic { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.fd-on { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.fd-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-2); }
.fd-mpill { flex: none; min-width: 62px; height: 24px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; font: 700 11.5px var(--mono); }
.fd-mpill.m-get { background: #2f7a1c; } .fd-mpill.m-post { background: #1d6fa5; } .fd-mpill.m-put, .fd-mpill.m-patch { background: #9a6100; } .fd-mpill.m-delete { background: #c0362c; }
@media (max-width: 640px) { .fd-row { flex-wrap: wrap; gap: 6px 10px; } .fd-row-name { max-width: none; flex: 1; } .fd-row-path { flex-basis: 100%; order: 5; } }

/* ===================== breadcrumb (above every page title) ===================== */
body.theme-wise .trail:not([hidden]) { display: flex !important; }
.theme-wise .trail { flex: none; height: auto; align-items: center; width: 100%; max-width: calc(var(--col) + 96px); margin: 0 auto; padding: 2px 48px 6px; gap: 4px; font-size: 13.5px; color: var(--text-3); }
.theme-wise .trail a, .theme-wise .trail span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--text-2); font-weight: 500; text-decoration: none !important; }
.theme-wise .trail a:first-child { margin-left: -8px; }
.theme-wise .trail a:hover { background: var(--fill); color: var(--text); }
.theme-wise .trail span { color: var(--text-3); }
.theme-wise .trail a svg.ic { width: 15px; height: 15px; }
.theme-wise .trail b { padding: 0 8px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.theme-wise .trail .sep { display: inline-grid; place-items: center; color: var(--text-3); }
.theme-wise .trail .sep svg.ic { width: 14px; height: 14px; }
.theme-wise .top + .trail { padding-top: 2px; padding-bottom: 6px; }
@media (max-width: 1180px) { .theme-wise .trail { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 860px) { .theme-wise .trail { padding-left: 16px; padding-right: 16px; font-size: 13px; } }

/* ===================== Durum block as a flowchart =====================
   the card holds only the condition; a line drops from it, forks left and right, and each branch hangs below */
.fd-if { display: grid; min-width: 0; }
.fd-fork { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 44px; min-width: 0; }
.fd-fork::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; margin-left: -1px; background: #d6d9d2; }
.fd-fork::after { content: ""; position: absolute; top: 20px; height: 24px; left: calc((100% - 16px) / 4 - 1px); right: calc((100% - 16px) / 4 - 1px);
  border: 2px solid #d6d9d2; border-bottom: 0; border-radius: 14px 14px 0 0; }
.theme-wise .fd-fork .fd-branch { position: relative; display: grid; justify-items: stretch; align-content: start; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.theme-wise .fd-fork .fd-branch-head { justify-self: center; height: 30px; padding: 0 13px 0 10px; gap: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.theme-wise .fd-fork .fd-branch.yes .fd-branch-head { background: var(--ok-soft); color: var(--ok); }
.theme-wise .fd-fork .fd-branch.no .fd-branch-head { background: var(--bad-soft); color: var(--bad); }
.theme-wise .fd-fork .fd-branch > .fd-steps { margin-top: 0; }
.theme-wise .fd-fork .fd-dz-empty { min-height: 64px; margin: 10px 0 0; }
/* the line goes on under the branches and joins again into the main flow */
.fd-if + .fd-dz::before { background: #d6d9d2; }
/* each branch runs a line down to the bottom, where both join back into the main flow */
.fd-if { position: relative; padding-bottom: 24px; }
.fd-if::after { content: ""; position: absolute; bottom: 0; height: 24px; left: calc((100% - 16px) / 4 - 1px); right: calc((100% - 16px) / 4 - 1px);
  border: 2px solid #d6d9d2; border-top: 0; border-radius: 0 0 14px 14px; }
.theme-wise .fd-fork .fd-branch { display: flex; flex-direction: column; }
.theme-wise .fd-fork .fd-branch-head { position: relative; align-self: center; margin-bottom: 12px; }
.theme-wise .fd-fork .fd-branch-head::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 12px; margin-left: -1px; background: #d6d9d2; }
.theme-wise .fd-fork .fd-branch::after { content: ""; flex: 1; align-self: center; width: 2px; min-height: 0; background: #d6d9d2; }
.theme-wise .fd-fork .fd-dz-empty { margin: 0; }
/* the branches sit side by side only when the flow has room for two real columns; otherwise one under the other,
   on one line. Measured on the flow itself (and, for a Durum inside a branch, on that branch), not on the window */
.theme-wise .fd-steps { container-type: inline-size; }
@container (max-width: 820px) {
  .fd-fork { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .fd-fork::after, .fd-if::after { display: none; }
  .fd-if { padding-bottom: 0; }
  .theme-wise .fd-fork .fd-branch::after { flex: none; height: 22px; }
}

/* ===================== flow lines: one weight and colour everywhere =====================
   every line is 1px wide and sits just left of its centre line, so stems, forks and joins meet on the same pixel */
.theme-wise .fd-flow { --fd-line: #cfd3ca; }
.theme-wise .fd-dz:before { width: 1px; left: 50%; margin-left: -1px; transform: none; background: var(--fd-line); }
.fd-fork::before { width: 1px; left: 50%; margin-left: -1px; transform: none; background: var(--fd-line); }
.fd-fork::after, .fd-if::after { border-width: 1px; border-color: var(--fd-line); left: calc((100% - 16px) / 4 - 1px); right: calc((100% - 16px) / 4); }
.theme-wise .fd-fork .fd-branch-head::after { width: 1px; left: 50%; margin-left: -1px; transform: none; background: var(--fd-line); }
.theme-wise .fd-fork .fd-branch::after { width: 1px; align-self: auto; margin-left: calc(50% - 1px); background: var(--fd-line); }
.fd-if + .fd-dz::before { background: var(--fd-line); }

/* empty places to drop a block: roomier */
.theme-wise .fd-dz-empty.root { min-height: 160px; }
.theme-wise .fd-fork .fd-dz-empty { min-height: 120px; }

/* while dragging: no dashed boxes between the blocks; only the place under the pointer shows a green bar */
.theme-wise .fd-dragging .fd-dz:after { content: none; }
.theme-wise .fd-dz.over:not(.fd-dz-empty):after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 4px; margin-top: -2px; border: 0; border-radius: 999px; background: var(--lime); }

/* the open place after the last block: a short line down to it, then the same dashed box as an empty flow */
.theme-wise .fd-dz-end { position: relative; min-height: 88px !important; margin: 26px 0 0 !important; }
.theme-wise .fd-dz-end::before { content: ""; display: block !important; position: absolute; left: 50%; top: -27px; width: 1px; height: 26px; margin-left: -1px; transform: none; background: var(--fd-line, #cfd3ca); }
.theme-wise .fd-fork .fd-dz-end { min-height: 88px !important; }
.theme-wise .fd-flow > .fd-steps > .fd-dz-end { margin-bottom: 26px !important; }
.theme-wise .fd-flow > .fd-steps > .fd-dz-end::after { content: "" !important; position: absolute; left: 50%; bottom: -27px; width: 1px; height: 26px; margin-left: -1px; border: 0; background: var(--fd-line, #cfd3ca); }

/* API list: every method pill the same fixed width, so the names start on one line whatever the method */
.fd-mpill { width: 72px; min-width: 72px; max-width: 72px; padding: 0; box-sizing: border-box; letter-spacing: .02em; }
/* not a pill: a small rectangle with softened corners, like the method label in the address field */
.fd-mpill { border-radius: 6px; height: 24px; }
/* the method's icon in front of its name, the same ones the address field and its list use */
.fd-mpill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 84px; min-width: 84px; max-width: 84px; }
.fd-mpill svg.ic { width: 13px; height: 13px; flex: none; color: #fff; stroke-width: 2.4; }
.fd-mpill { justify-content: flex-start; padding: 0 0 0 9px; }

/* one method label everywhere: the API list's label and the address field's are the same box
   (32px tall, 9px corners, 108px wide, icon at 11px, name in mono 12.5px); the address one also has its arrow */
.theme-wise .fd-addr select.fd-method { width: 108px; min-width: 108px; max-width: 108px; height: 32px; border-radius: 9px; font: 700 12.5px var(--mono); }
.fd-mpill { width: 108px; min-width: 108px; max-width: 108px; height: 32px; padding: 0 0 0 11px; gap: 7px; border-radius: 9px; font: 700 12.5px var(--mono); letter-spacing: 0; }
.fd-mpill svg.ic { width: 14px; height: 14px; stroke-width: 2.4; }
/* width follows the label's content (icon + method name), in the list and in the address field */
.theme-wise .fd-addr select.fd-method { width: auto; min-width: 0; max-width: none; }
.fd-mpill { width: auto; min-width: 0; max-width: none; padding: 0 12px 0 11px; }
/* a select is as wide as its longest option; this one follows the chosen method instead */
.theme-wise .fd-addr select.fd-method { field-sizing: content; }
.theme-wise .fd-addr select.fd-method { padding-right: 30px !important; }

/* ===================== interface language (i18n.js) ===================== */
html.i18n-wait body > * { visibility: hidden; }
.login-lang:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.login-lang-btn { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; }
.login-lang-btn:hover { background: var(--fill); color: var(--text); }
.login-lang-btn.on { background: var(--fill); color: var(--text); font-weight: 600; }

/* ===================== Languages page ===================== */
.lg-intro { max-width: 760px; margin: 0 0 16px; line-height: 1.6; }
.lg-list { padding: 4px 6px; }
/* fixed columns, so the bars and buttons of every row line up */
.lg-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 220px 236px; align-items: center; gap: 20px; padding: 14px 12px; border-top: 1px solid var(--line); }
.lg-row:first-child { border-top: 0; }
.lg-code { width: 52px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--fill); font: 700 12.5px var(--mono); text-transform: uppercase; color: var(--text-2); }
.lg-code.big { width: auto; height: 40px; min-width: 56px; padding: 0 10px; font-size: 14px; }
.lg-name { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.lg-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lg-title b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-title .tag { flex: none; font-size: 11.5px; }
.lg-name small { color: var(--text-3); font-size: 12.5px; }
.lg-stale-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 8px 2px 6px; border: 0; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font: 600 12px var(--sans); cursor: pointer; }
.lg-stale-link .ic { width: 13px; height: 13px; }
.lg-stale-link:hover { text-decoration: underline; }
.lg-prog { display: grid; gap: 6px; align-content: center; }
.lg-prog small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.lg-prog small b, .lg-src-count b { color: var(--text-2); font-weight: 600; }
.lg-src-count { font-size: 13px; color: var(--text-3); }
.lg-prog .bar, .lg-hprog .bar { height: 6px; }
.lg-acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.lg-row.lg-off .lg-code, .lg-row.lg-off .lg-title b, .lg-row.lg-off .lg-prog { opacity: .5; }
.lg-pop { position: fixed; z-index: 80; min-width: 210px; padding: 5px; border-radius: 14px; background: var(--surface, #fff); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: sel-in .14s ease-out; }
.lg-pop hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.lg-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 13.5px var(--sans); text-align: left; cursor: pointer; }
.lg-pop-item .ic { width: 17px; height: 17px; color: var(--text-3); }
.lg-pop-item:hover, .lg-pop-item:focus-visible { background: var(--hover); outline: none; }
.lg-pop-item.danger, .lg-pop-item.danger .ic { color: var(--bad); }
.lg-pop-item.danger:hover { background: var(--bad-soft); }
.lg-item.stale { box-shadow: inset 3px 0 0 var(--warn); }
.lg-old { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lg-old small { color: var(--text-2); }
.lg-old small::before { content: none; }
.lg-hname small { display: block; }
.lg-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 10px; }
.lg-hname { flex: 1 1 260px; display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lg-hprog { flex: 1 1 220px; display: grid; gap: 6px; padding-bottom: 4px; }
.lg-hprog small { color: var(--text-3); font-size: 12.5px; }
.lg-head .tag { align-self: center; }
.lg-tip { margin: 0 0 12px; }
.lg-var { padding: 0 4px; border-radius: 5px; background: var(--lime-soft); color: var(--forest); font: 600 12px var(--mono); font-style: normal; }
.lg-rows { padding: 4px; }
.lg-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); }
.lg-item:first-child { border-top: 0; }
.lg-src { display: grid; gap: 4px; padding-top: 9px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lg-src small { color: var(--text-3); font-size: 12.5px; }
.lg-src small::before { content: "EN · "; font: 600 10.5px var(--mono); letter-spacing: .06em; }
.theme-wise .lg-item textarea { min-height: 40px; height: auto; padding: 9px 12px; font-size: 14px; line-height: 1.5; resize: vertical; }
.lg-item.done textarea { background-color: var(--lime-soft); }
.theme-wise .lg-item.done textarea:focus { background-color: #fff !important; }
.lg-more { justify-self: center; margin: 10px auto 6px; display: flex; }
@media (max-width: 760px) {
  .lg-row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; } .lg-prog, .lg-acts { grid-column: 2 / -1; } .lg-acts { justify-content: flex-start; }
  .lg-item { grid-template-columns: minmax(0, 1fr); gap: 6px; } .lg-src { padding-top: 0; }
}
.lg-bar { height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.lg-bar span { display: block; height: 100%; border-radius: inherit; background: var(--lime-2); }

/* ===================== Settings: one block per section, a side menu, a save bar ===================== */
.set-page { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 80px; }
.set-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.set-nav a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.set-nav a svg.ic { width: 17px; height: 17px; color: var(--text-3); }
.set-nav a:hover { background: var(--fill); color: var(--text); }
.set-nav a.on { background: var(--fill); color: var(--text); font-weight: 600; }
.set-nav a.on svg.ic { color: var(--forest); }
.set-main, #setForm { display: grid; gap: 16px; min-width: 0; }
.set-sec { padding: 0; overflow: hidden; scroll-margin-top: 16px; }
.set-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.set-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.set-head p { margin: 2px 0 0; color: var(--text-3); font-size: 13px; }
.set-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lime-soft); color: var(--forest); }
.set-ic svg.ic { width: 19px; height: 19px; }
.set-rows { display: grid; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px 28px; align-items: start; padding: 18px 20px; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row.changed { background: linear-gradient(90deg, var(--lime-soft), transparent 70%); box-shadow: inset 3px 0 0 var(--lime-2); }
.set-label { display: grid; gap: 4px; padding-top: 9px; }
.set-label label { font-size: 14px; font-weight: 600; color: var(--text); }
.set-label small { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.set-ctl { display: grid; gap: 8px; min-width: 0; }
.set-ctl > input, .set-ctl > select { width: 100%; }
.set-unit { position: relative; display: block; }
.set-unit input { width: 100%; padding-right: 72px; }
.set-unit i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--text-3); pointer-events: none; }
.set-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); min-height: 22px; }
.set-def b { font-weight: 600; color: var(--text-2); overflow-wrap: anywhere; }
.set-meta .linkbtn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.set-meta .linkbtn svg.ic { width: 14px; height: 14px; }
.set-reset[hidden] { display: none !important; }
.set-seg { margin: 0; flex-wrap: wrap; justify-self: start; }
.set-kv { margin: 0; padding: 6px 20px 4px; }
#set-info > .hint { margin: 0; padding: 0 20px 18px; }
.set-bar:not([hidden]) { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--forest); color: #fff; box-shadow: var(--shadow-lg); animation: sel-in .16s ease-out; }
.set-bar #setState { margin-right: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.set-bar .btn { height: 36px; border-radius: 999px; }
.set-bar .btn:not(.primary) { background: rgba(255, 255, 255, .12); color: #fff; }
.set-bar .btn:not(.primary):hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 980px) {
  .set-page { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .set-nav a { flex: none; }
}
@media (max-width: 700px) {
  .set-row { grid-template-columns: minmax(0, 1fr); } .set-label { padding-top: 0; }
  .set-bar:not([hidden]) { left: 12px; right: 12px; transform: none; justify-content: flex-end; } .set-bar #setState { margin-right: auto; }
}
.set-meta .set-reset { height: auto; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: 500 12.5px var(--sans); cursor: pointer; }
.set-meta .set-reset:hover { background: var(--fill); color: var(--text); }
/* translator toolbar: search and filter the same height */
.lg-tools { align-items: center; }
.lg-tools .search { flex: 1 1 280px; max-width: 420px; }
.lg-tools .search input { width: 100%; height: 40px; }
.lg-tools .seg { margin: 0; }
.lg-tools .seg button { height: 34px; }
.lg-tools .count { margin-left: auto; }

/* ===================== account list: the admins on top ===================== */
.acc-title { margin: 6px 0 10px; }
.acc-title:first-child { margin-top: 0; }
.adm-list { padding: 6px; margin-bottom: 22px; }
.adm-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none !important; }
.adm-row + .adm-row { margin-top: 2px; }
.adm-row:hover { background: var(--soft); color: var(--text); }
.adm-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--on-lime, var(--forest)); font-size: 14px; font-weight: 700; }
.adm-who { flex: 1; display: grid; gap: 1px; min-width: 0; }
.adm-who b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; }
.adm-who small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--lime-soft); color: var(--forest); font: 650 11px var(--sans); font-style: normal; }
.adm-seen { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.adm-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf3f; }
.adm-row > svg.ic { width: 16px; height: 16px; color: var(--text-3); flex: none; }

/* ===================== an admin's page ===================== */
.mem-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px; margin-bottom: 16px; }
.mem-av { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--on-lime, var(--forest)); font-size: 26px; font-weight: 750; }
.mem-who { display: grid; gap: 4px; min-width: 0; }
.mem-who h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.mem-who .muted { font-size: 14px; overflow-wrap: anywhere; }
.mem-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mem-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mem-facts > div { padding: 10px 16px; border-left: 1px solid var(--line); }
.mem-facts > div:first-child { border-left: 0; }
.mem-facts dt { font-size: 12px; color: var(--text-3); }
.mem-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mem-card { display: grid; gap: 14px; padding: 18px 20px; align-content: start; }
.mem-card > header { display: flex; align-items: center; gap: 12px; }
.mem-card > header > div { flex: 1; min-width: 0; }
.mem-card h3 { margin: 0; font-size: 16px; font-weight: 650; }
.mem-card header p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.mem-card .hint, .mem-card > .muted { margin: 0; }
.mem-card > .btn { justify-self: start; }
.mem-wide { grid-column: 1 / -1; }
.mem-sess, .mem-acts { display: grid; margin: 0; padding: 0; list-style: none; }
.mem-sess li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mem-sess li:first-child { border-top: 0; padding-top: 0; }
.mem-sess li svg.ic { width: 17px; height: 17px; color: var(--text-3); }
.mem-sess li span { flex: 1; font-weight: 500; }
.mem-sess li small { color: var(--text-3); font-size: 12.5px; }
.mem-acts li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mem-acts li:first-child { border-top: 0; padding-top: 0; }
.mem-act-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill); color: var(--text-2); }
.mem-act-ic svg.ic { width: 16px; height: 16px; }
.mem-act { flex: 1; display: grid; gap: 1px; min-width: 0; }
.mem-act b { font-size: 14px; font-weight: 600; }
.mem-act small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-acts time { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 900px) { .mem-hero { grid-template-columns: auto minmax(0, 1fr); } .mem-facts { grid-column: 1 / -1; } .mem-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .mem-facts { grid-template-columns: minmax(0, 1fr); } .mem-facts > div { border-left: 0; border-top: 1px solid var(--line); } .mem-facts > div:first-child { border-top: 0; } .adm-seen { display: none; } }
/* member-only accounts and the account page */
.nopkg-tag { background: var(--warn-soft); color: var(--warn); }
.nopkg-note { margin: 0; }
.acc-row { cursor: pointer; }
.mem-uses { display: grid; gap: 12px; }

/* ===================== selling hosting: catalogue, shop, services, orders ===================== */
.ct-grid, .st-grid, .sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.ct-item, .sv-card { display: grid; gap: 12px; padding: 18px 20px; align-content: start; }
.ct-item.off { opacity: .7; }
.ct-item header, .sv-card header { display: flex; align-items: flex-start; gap: 12px; }
.ct-item header > div, .sv-card header > div { flex: 1; min-width: 0; }
.ct-item h3, .sv-card h3, .st-item h3 { margin: 0; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.ct-item header small, .sv-card header small { color: var(--text-3); font-size: 12.5px; }
.ct-desc, .st-desc { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.ct-limits, .st-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 0; }
.ct-limits span, .st-limits span, .ct-prices span { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.ct-limits small, .st-limits small, .ct-prices small { font-size: 11.5px; color: var(--text-3); }
.ct-limits b, .st-limits b, .ct-prices b { font-size: 13.5px; font-weight: 650; }
.ct-prices { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-prices span { background: var(--lime-soft); }
.ct-item footer, .sv-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.ct-item footer > span:last-child { display: flex; gap: 6px; align-items: center; }
.ct-price-edit { display: grid; gap: 8px; }
.ct-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sv-card.cur { box-shadow: inset 0 0 0 2px var(--lime-2); }
.sv-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lime-soft); color: var(--forest); }
.sv-ic svg.ic { width: 19px; height: 19px; }
.sv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sv-facts > div { padding: 8px 12px; border-left: 1px solid var(--line); }
.sv-facts > div:first-child { border-left: 0; }
.sv-facts dt { font-size: 11.5px; color: var(--text-3); }
.sv-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.sv-card .hint { margin: 0; }
.sv-card footer { justify-content: flex-start; }
.st-item { display: grid; gap: 14px; padding: 22px; align-content: start; }
.st-price { display: flex; align-items: baseline; gap: 6px; }
.st-price b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; color: var(--forest); }
.st-price small { color: var(--text-3); font-size: 13px; }
.st-hi { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.st-hi li { display: flex; gap: 8px; align-items: flex-start; }
.st-hi svg.ic { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.st-item .btn.wide { margin-top: auto; justify-content: center; }
.mem-av-sm { background: var(--fill); color: var(--text-2); }
.empty-state.small { padding: 18px 20px; margin-bottom: 18px; }
.empty-state.small p { margin: 0; }
.block { display: block; }
.term-notice, .orders-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.term-notice span, .orders-notice span { flex: 1; }
.orders-notice { margin-top: 16px; color: var(--text); text-decoration: none !important; }
.svc-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 260px; padding: 0 14px; border-radius: 999px; background: var(--lime-soft);
  color: var(--forest); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.svc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-chip svg.ic { width: 17px; height: 17px; flex: none; }
.svc-chip:hover { background: var(--lime); color: var(--on-lime, var(--forest)); }
@media (max-width: 760px) { .ct-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* account owners: the trail lines up with the title like everyone else's (app.css pads it for the old layout) */
body.theme-wise.role-account .trail { padding-left: 48px; }
@media (max-width: 1180px) { body.theme-wise.role-account .trail { padding-left: 32px; } }
@media (max-width: 860px) { body.theme-wise.role-account .trail { padding-left: 16px; } }
/* sign in / become a member: one card at a time */
.login-card[hidden] { display: none !important; }
.login-switch { margin: 0; text-align: center; font-size: 14px; color: var(--text-2); }
.login-switch[hidden] { display: none; }
.login-switch .linkbtn { font-weight: 600; color: var(--forest); }
.login-switch .linkbtn { height: auto; padding: 0 2px; border: 0; background: none; font: 600 14px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* a member's home page */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--lime-soft), #fff 70%); }
.home-hero h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.home-hero p { margin: 0; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.home-steps { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; justify-items: center; gap: 6px; width: 104px; padding: 12px 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: center; font-size: 12.5px; font-weight: 600; }
.home-steps b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 13px; }
.home-item { color: var(--text); text-decoration: none !important; }
.home-item:hover { box-shadow: 0 0 0 2px var(--lime-2); color: var(--text); }
.home-term { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text-2); }
.home-term svg.ic { width: 15px; height: 15px; color: var(--text-3); }
.home-svc footer .badge svg.ic { width: 12px; height: 12px; }
.home-add { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 180px; border-style: dashed; color: var(--text-2); font-weight: 600; text-decoration: none !important; background: var(--soft); }
.home-add svg.ic { width: 22px; height: 22px; }
.home-add:hover { color: var(--forest); background: var(--lime-soft); }
.home-cur { display: flex; align-items: baseline; gap: 10px; }
.home-cur small { font-size: 13px; font-weight: 500; color: var(--text-3); }
@media (max-width: 760px) { .home-hero { grid-template-columns: minmax(0, 1fr); } .home-steps li { flex: 1; width: auto; } }
/* My account: personal details as a two-column list */
.my-kv { grid-template-columns: repeat(2, auto minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 760px) { .my-kv { grid-template-columns: auto minmax(0, 1fr); } }
.mem-card .form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mem-card > label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mem-card > .btn.primary { justify-self: start; }
.my-kv dt:nth-of-type(2), .my-kv dd:nth-of-type(2) { border-top: 0; }
@media (max-width: 760px) { .my-kv dt:nth-of-type(2), .my-kv dd:nth-of-type(2) { border-top: 1px solid var(--line); } }

/* ===================== service editor (#catalog?edit=…) and types ===================== */
.ce-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; padding-bottom: 40px; }
.ce-main { display: grid; gap: 16px; min-width: 0; }
.ce-sec { padding: 0; overflow: hidden; scroll-margin-top: 16px; }
.ce-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.ce-body > label, .ce-row2 > label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ce-body .muted { font-weight: 400; }
.ce-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ce-check { align-self: start; padding-top: 33px; font-weight: 500 !important; color: var(--text) !important; }
.ce-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ce-type { display: grid; gap: 8px; justify-items: start; align-content: start; padding: 14px; border: 0; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.ce-type b { font-size: 14.5px; }
.ce-type small { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.ce-type:hover:not(:disabled) { background: #fff; }
.ce-type.on { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--lime-2); }
.ce-type:disabled { cursor: not-allowed; opacity: .55; }
.ce-type.on:disabled { opacity: 1; }
/* the icon box contrasts with the card: green on a white or grey card, white on a selected (green) one */
.ce-type .sv-ic { background: var(--lime-soft); transition: background .15s; }
.ce-type.on .sv-ic { background: #fff; }
.ce-type.on:hover:not(:disabled) .sv-ic { background: var(--lime-soft); }
.ce-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ce-limits label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ce-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ce-checks .fd-label { flex-basis: 100%; }
.ce-checks[hidden], .ce-sec[hidden], #ceLimPkg[hidden], #ceLimOwn[hidden] { display: none !important; }
#ceLimOwn { display: grid; gap: 14px; }
.ct-price-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ce-month { min-height: 16px; color: var(--text-3); font-size: 11.5px; font-weight: 500; }
.ce-side { position: sticky; top: 16px; }
.ce-sticky { display: grid; gap: 10px; }
.ce-sticky .st-item { pointer-events: none; }
.ce-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; }
.ce-nav a { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none !important; }
.ce-nav a:hover { background: var(--fill-2); color: var(--text); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-type { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 600; }
.st-type svg.ic { width: 14px; height: 14px; }
.ct-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--forest); color: #fff; font: 600 11px var(--sans); font-style: normal; vertical-align: middle; }
.ct-setup { background: var(--fill) !important; }
.buy-total { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.ord-answer { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; }
.ord-q { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.ord-q small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.ord-q p { margin: 0; white-space: pre-wrap; }
.ord-q.todo { background: var(--warn-soft); }
.home-note, .mem-note { margin: 0; color: var(--text-2); font-size: 13px; font-style: italic; }
.mem-note { margin-top: 6px; }
@media (max-width: 1100px) { .ce-page { grid-template-columns: minmax(0, 1fr); } .ce-side { position: static; } }
@media (max-width: 700px) { .ce-row2 { grid-template-columns: minmax(0, 1fr); } .ce-check { padding-top: 0; } }

/* orders: a ledger-style table: one line per order, money right-aligned in its own column so amounts
   can be compared at a glance; a short summary strip above it for the admin */
.ord-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin-bottom: 14px; overflow: hidden; }
.os-tile { display: grid; gap: 3px; padding: 16px 20px; min-width: 0; }
.os-tile + .os-tile { border-left: 1px solid var(--line); }
.os-tile small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.os-tile b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-tile span { color: var(--text-3); font-size: 12.5px; }
.os-tile.warn b { color: var(--warn); }

.ord-table-card { padding: 0; overflow: hidden; }
.theme-wise .ord-table th { background: var(--soft); padding: 10px 11px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; border-bottom: 1px solid var(--line); }
.ord-table th:first-child, .ord-table td:first-child { padding-left: 20px; }
.ord-table th:last-child, .ord-table td:last-child { padding-right: 16px; }
.theme-wise .ord-table td { padding: 12px 11px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ord-table tbody tr:last-child td { border-bottom: 0; }
.ord-table tbody tr { transition: background .1s; }
.ord-table tbody tr:hover { background: var(--soft); }
.ord-table .num { text-align: right; }
.ord-tr.pending { background: color-mix(in srgb, var(--warn-soft) 45%, transparent); }
.ord-tr.pending td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.ord-tr.cancelled td:not(.ot-acts), .ord-tr.rejected td:not(.ot-acts) { opacity: .55; }

.ot-in { display: flex; align-items: center; gap: 12px; }
.ot-item .sv-ic { width: 34px; height: 34px; border-radius: 10px; }
.ot-item .sv-ic svg.ic { width: 17px; height: 17px; }
.ord-tr.pending .sv-ic { background: var(--warn-soft); color: var(--warn); }
.ot-txt { display: grid; gap: 2px; min-width: 0; }
.ot-txt b { font-weight: 600; white-space: nowrap; }
.theme-wise .ord-table .ot-txt small { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; overflow-wrap: normal; }
.ot-txt .ord-answer { font-style: italic; color: var(--text-2); }
.ot-txt .ord-note { color: var(--text-2); }
.ord-who { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 200px; color: var(--text); text-decoration: none !important; }
.ord-who .adm-av { width: 30px; height: 30px; font-size: 11.5px; }
.ord-who > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ord-who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .ord-who small { color: var(--text-3); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ord-who:hover b { text-decoration: underline; }
.theme-wise .ord-table td.ot-date, .theme-wise .ord-table td.ot-state, .theme-wise .ord-table td.ot-amount, .theme-wise .ord-table td.ot-acts { white-space: nowrap; }
.theme-wise .ord-table td.ot-who { min-width: 150px; }
.theme-wise .ord-table .badge { white-space: nowrap; }
.theme-wise .ord-table td > a.ord-who { font-weight: 400; }
.ot-date span, .ot-date small { display: block; }
.ot-date small, .ot-amount small { color: var(--text-3); font-size: 12px; }
.ot-state small { display: block; margin-top: 4px; padding-left: 2px; color: var(--text-3); font-size: 12px; }
.ot-amount b { display: block; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ot-acts { width: 1%; white-space: nowrap; }
.ord-acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.theme-wise .ord-acts .btn { height: 30px; padding: 0 12px; font-size: 13px; }
.theme-wise .ord-acts .btn.ghost { background: transparent; color: var(--text-2); }
.theme-wise .ord-acts .btn.ghost:hover { background: var(--fill); color: var(--text); }
.ord-acts .icon-btn { width: 30px; height: 30px; color: var(--text-3); }

/* narrow screens: each row becomes a compact two-line entry, money still on the right */
@media (max-width: 860px) {
  .os-tile { padding: 12px 14px; }
  .os-tile b { font-size: 16px; }
  .os-tile small, .os-tile span { font-size: 11.5px; }
  .ord-table thead { display: none; }
  .ord-table, .ord-table tbody { display: block; }
  .ord-table tr.ord-tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item amount" "who who" "meta state" "acts acts"; gap: 8px 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ord-table tbody tr:last-child { border-bottom: 0; }
  .theme-wise .ord-table td { display: block; padding: 0 !important; border: 0; }
  .ot-item { grid-area: item; } .ot-in { min-width: 0; } .theme-wise .ord-table td.ot-who { grid-area: who; padding-left: 46px !important; min-width: 0; } .ot-amount { grid-area: amount; }
  .theme-wise .ord-table td.ot-date { grid-area: meta; padding-left: 46px !important; align-self: center; color: var(--text-3); font-size: 12.5px; } .ot-date span, .ot-date small { display: inline; } .ot-date small::before { content: " · "; }
  .ot-state { grid-area: state; justify-self: end; text-align: right; } .ot-acts { grid-area: acts; width: auto; }
  .ot-acts .ord-acts { justify-content: flex-end; } .ot-acts:has(.ord-acts:empty) { display: none !important; }
  .ord-tr.pending td:first-child { box-shadow: none; } .ord-tr.pending { box-shadow: inset 3px 0 0 var(--warn); }
  .ot-txt small { max-width: none; }
}
.ord-table-card + .hint { margin-top: 12px; }
.ord-list + .hint, .table-wrap + .hint { margin-top: 12px; }
/* a checkbox in a dialog keeps its own size (the rule above widens every field) */
.theme-wise .modal-body > label.check input, .theme-wise .modal-body label.check input[type=checkbox] { width: auto; flex: none; }
.theme-wise .modal-body > label.check { justify-self: start; }
/* a name with a fixed start (the account's prefix): the prefix, then what you type, left to right */
.theme-wise .suffix-input.prefix > span { order: 0; padding: 0 0 0 12px; max-width: 50%; color: var(--text-3); font: 500 13.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-wise .suffix-input.prefix input { order: 1; flex: 1; padding: 0 12px 0 1px; text-align: left; font: 600 13.5px var(--mono); }

/* the service a member is working in, at the top: its kind, its name, a way to switch */
.svc-chip { height: 44px; gap: 10px; padding: 0 14px 0 5px; max-width: 280px; }
.svc-chip .svc-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.svc-chip .svc-ic svg.ic { width: 16px; height: 16px; }
.svc-chip .svc-txt { display: grid; min-width: 0; line-height: 1.15; }
.svc-chip .svc-txt b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-chip .svc-txt small { font-size: 11.5px; font-weight: 500; color: var(--forest); opacity: .7; white-space: nowrap; }
.svc-chip > svg.ic { width: 16px; height: 16px; flex: none; }
.svc-chip.off { background: var(--warn-soft); color: var(--warn); }
.svc-chip.off .svc-txt small { color: var(--warn); }
@media (max-width: 760px) { .svc-chip { padding: 0 5px; } .svc-chip .svc-txt, .svc-chip > svg.ic { display: none; } }

/* ===================== checkboxes: the panel's own, everywhere ===================== */
.theme-wise input[type=checkbox] { -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex: none;
  width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 0; vertical-align: middle; border: 1.5px solid #c4c8bf !important; border-radius: 6px;
  background: #fff !important; box-shadow: none; cursor: pointer; transition: background-color .12s, border-color .12s, box-shadow .12s; }
.theme-wise input[type=checkbox]::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(.6); opacity: 0; transition: opacity .12s, transform .12s; }
.theme-wise input[type=checkbox]:hover:not(:disabled) { border-color: var(--forest) !important; }
.theme-wise input[type=checkbox]:checked, .theme-wise input[type=checkbox]:indeterminate { border-color: var(--forest) !important; background: var(--forest) !important; }
.theme-wise input[type=checkbox]:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.theme-wise input[type=checkbox]:indeterminate::after { width: 8px; height: 0; margin: 0; border-left: 0; transform: none; opacity: 1; }
.theme-wise input[type=checkbox]:focus-visible { outline: none; box-shadow: var(--glow); }
.theme-wise input[type=checkbox]:disabled { opacity: .45; cursor: default; }
/* switches keep their hidden input */
.theme-wise .switch input[type=checkbox], .theme-wise .fd-switch input[type=checkbox] { opacity: 0; }
/* a table's tick column: narrow, the box in the middle of its row */
.theme-wise td:has(> input[type=checkbox]:only-child), .theme-wise th:has(> input[type=checkbox]:only-child) { width: 44px; padding-right: 4px; text-align: center; vertical-align: middle; }
.theme-wise td > input[type=checkbox]:only-child, .theme-wise th > input[type=checkbox]:only-child { margin: 0 auto; }

/* an empty data grid says so quietly, at the left, in the page's type */
.theme-wise td.empty { font-family: var(--sans); }
.theme-wise .dbm-grid td.empty, .theme-wise .dbm-main td.empty { padding: 26px 18px; text-align: left; color: var(--text-3); font-size: 13.5px; }
.theme-wise th.pick, .theme-wise td.pick { width: 44px; min-width: 44px; padding-left: 14px; padding-right: 4px; text-align: left; vertical-align: middle; }
.theme-wise th.pick input, .theme-wise td.pick input { display: inline-grid; margin: 0; }
/* usage bars: a full limit in a soft red, not the alarm red */
.theme-wise .bar.warn > span { background: #e9bf5c; }
.theme-wise .bar.bad > span { background: #e07a72; }
.theme-wise .count-tile.is-bad .ct-sub { color: #c4554d; } .theme-wise .count-tile.is-bad .ct-dot { background: #e07a72; }
/* a checkbox line in a modal: box on the left, text right after it, never stretched */
.theme-wise .modal-body label.check { display: flex; justify-content: flex-start; align-items: center; gap: 10px; width: auto; justify-self: start; text-align: left; }
.theme-wise .modal-body label.check > input[type=checkbox] { width: 18px !important; min-width: 18px; flex: 0 0 18px !important; margin: 0; }

/* ===================== member home: the service picker ===================== */
.theme-wise .svp { padding: 0; overflow: hidden; }
.theme-wise .svp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px 14px; }
.theme-wise .svp-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.theme-wise .svp-head small { display: block; margin-top: 3px; color: var(--text-3); font-size: 13px; }
.theme-wise .svp-tabs small { margin-left: 4px; color: var(--text-3); font-size: 11.5px; }
.theme-wise .svp-list { display: grid; }
.theme-wise .svp-row { display: grid; grid-template-columns: 40px minmax(160px, 1.6fr) minmax(120px, 1fr) 130px 104px 132px; align-items: center; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line, #0000000d); position: relative; transition: background-color .12s; }
.theme-wise .svp-row[hidden] { display: none; }
.theme-wise .svp-row.pick { cursor: pointer; }
.theme-wise .svp-row.pick:hover, .theme-wise .svp-row.pick:focus-visible { background: var(--fill); outline: none; }
.theme-wise .svp-row.cur { background: color-mix(in srgb, var(--lime-soft) 55%, #fff); }
.theme-wise .svp-row.cur::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--forest); }
.theme-wise .svp-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--fill); color: var(--forest); }
.theme-wise .svp-row.cur .svp-ic { background: #fff; }
.theme-wise .svp-ic svg { width: 19px; height: 19px; }
.theme-wise .svp-main { display: grid; gap: 2px; min-width: 0; }
.theme-wise .svp-main b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .svp-main small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .svp-use { display: grid; gap: 6px; min-width: 0; }
.theme-wise .svp-use-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.theme-wise .svp-use-head small { color: var(--text-3); font-size: 12.5px; }
.theme-wise .svp-use-head b { font-weight: 600; font-variant-numeric: tabular-nums; }
.theme-wise .svp-use .bar { height: 5px; }
.theme-wise .svp-term { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.theme-wise .svp-term svg { width: 14px; height: 14px; color: var(--text-3); }
.theme-wise .svp-badge { justify-self: start; }
.theme-wise .svp-act { justify-self: end; }
.theme-wise .svp-go svg { width: 14px; height: 14px; margin: 0 -2px 0 2px; }
.theme-wise .svp-cur { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: 13px; font-weight: 600; white-space: nowrap; }
.theme-wise .svp-cur svg { width: 15px; height: 15px; }
@media (max-width: 1100px) {
  .theme-wise .svp-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic main act" "ic use badge" "ic term term"; row-gap: 8px; }
  .theme-wise .svp-row .svp-ic { grid-area: ic; align-self: start; } .theme-wise .svp-main { grid-area: main; } .theme-wise .svp-act { grid-area: act; }
  .theme-wise .svp-use { grid-area: use; } .theme-wise .svp-badge { grid-area: badge; justify-self: end; } .theme-wise .svp-term { grid-area: term; }
}

/* the service being managed: a heading with its own shortcuts */
.theme-wise .home-cur-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.theme-wise .home-cur-head h3 { margin: 0; font-size: 18px; font-weight: 650; }
.theme-wise .home-cur-head small { color: var(--text-3); font-size: 13px; }
.theme-wise .home-cur-links { display: flex; gap: 8px; margin-left: auto; }
.theme-wise .svp-tabs button { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.theme-wise .svp-tabs small { margin: 0; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--fill); font-size: 11px; font-weight: 600; }
.theme-wise .svp-tabs .on small { background: var(--lime-soft); color: var(--forest); }
.theme-wise .svp-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; }
.theme-wise .svp-sum .svp-main { flex: 1; }
.theme-wise .svp-act { display: inline-flex; align-items: center; gap: 12px; }
.theme-wise .svp-row { grid-template-columns: 40px minmax(160px, 1.6fr) minmax(120px, 1fr) 130px 104px minmax(132px, auto); }
/* search: matched part of a result, and the line while records load */
.theme-wise .pal-list mark { background: var(--lime-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.theme-wise .pal-loading { margin: 0; padding: 10px 16px; color: var(--text-3); font-size: 12.5px; }
.on-pick .svc-menu { display: none !important; }

/* ===================== header: the service switcher ===================== */
.svc-menu { position: relative; flex: none; }
.svc-menu .svc-chip { border: 0; cursor: pointer; font: inherit; color: var(--forest); text-align: left; }
.svc-menu .svc-chev { display: grid; place-items: center; margin-left: 2px; transition: transform .15s; }
.svc-menu .svc-chev svg.ic { width: 15px; height: 15px; }
.svc-menu.open .svc-chev { transform: rotate(180deg); }
.svc-menu.open .svc-chip { background: var(--lime); }
.svc-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; padding: 6px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--forest) 20%, transparent), 0 2px 6px #0000000f; animation: svcPop .14s ease-out; }
@keyframes svcPop { from { opacity: 0; transform: translateY(-4px); } }
.svc-pop-head { padding: 8px 10px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.svc-pop-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.svc-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px 7px 7px; border: 0; border-radius: 12px; background: none;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.svc-opt:hover { background: var(--fill); }
.svc-opt.on { background: color-mix(in srgb, var(--lime-soft) 55%, #fff); }
.svc-opt .svc-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill); color: var(--forest); }
.svc-opt.on .svc-ic { background: #fff; }
.svc-opt .svc-ic svg.ic { width: 16px; height: 16px; }
.svc-opt .svc-txt { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.svc-opt .svc-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-opt .svc-txt small { font-size: 12px; color: var(--text-3); }
.svc-tick { color: var(--forest); display: grid; } .svc-tick svg.ic { width: 16px; height: 16px; }
.svc-pop-foot { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.svc-pop-foot a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text-2); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.svc-pop-foot a:hover { background: var(--fill); color: var(--text); }
.svc-pop-foot svg.ic { width: 16px; height: 16px; }
/* store cards: each card as tall as its own content, no empty space inside */
.theme-wise .st-grid { align-items: start; }
.theme-wise .st-item { display: flex; flex-direction: column; gap: 14px; }
.theme-wise .st-item > * { flex: none; }
.theme-wise .st-item .btn.wide { margin-top: 0; }
.theme-wise .st-grid.masonry { grid-auto-rows: 2px; row-gap: 0; align-items: start; }
.theme-wise .st-grid.masonry > * { margin-bottom: 16px; }
.theme-wise .ct-grid.masonry { grid-auto-rows: 2px; row-gap: 0; align-items: start; }
.theme-wise .ct-grid.masonry > * { margin-bottom: 16px; }

/* ===================== admin: active services ===================== */
.theme-wise .sub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.theme-wise .sub-stat { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: border-color .12s, background-color .12s; }
.theme-wise .sub-stat small { color: var(--text-3); font-size: 12.5px; }
.theme-wise .sub-stat b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.theme-wise .sub-stat:hover { border-color: var(--lime-line); }
.theme-wise .sub-stat.on { border-color: var(--forest); background: color-mix(in srgb, var(--lime-soft) 55%, #fff); }
.theme-wise .sub-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.theme-wise .sub-bar .search { flex: 1; min-width: 220px; }
.theme-wise .sub-svc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.theme-wise .sub-svc .svp-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.theme-wise .sub-svc .svp-ic svg { width: 17px; height: 17px; }
.theme-wise .sub-svc b { display: block; font-weight: 650; }
.theme-wise .sub-svc small { display: block; color: var(--text-3); font-size: 12.5px; }
.theme-wise .sub-left { display: block; color: var(--text-3); font-size: 12px; }
.theme-wise .sub-table .acc-row { cursor: pointer; }
.theme-wise .sub-table .mini-use { min-width: 150px; }
@media (max-width: 760px) { .theme-wise .sub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================== the term modal ===================== */
.theme-wise .ex-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fill); }
.theme-wise .ex-head .svp-ic { background: #fff; width: 38px; height: 38px; }
.theme-wise .ex-head b { display: block; font-weight: 650; }
.theme-wise .ex-head small { color: var(--text-3); font-size: 12.5px; }
.theme-wise .ex-field { display: grid; gap: 8px; }
.theme-wise .ex-label { font-size: 13.5px; font-weight: 550; }
.theme-wise .ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-wise .ex-chip { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.theme-wise .ex-chip:hover { border-color: var(--forest); color: var(--forest); }
.theme-wise .ex-chip.on { border-color: var(--forest); background: var(--forest); color: #fff; }
.theme-wise .modal-body label.off input { opacity: .5; }
.theme-wise .ex-sum { margin: 0; font-size: 13.5px; color: var(--text-2); min-height: 1em; }
.theme-wise .ex-sum b { color: var(--text); } .theme-wise .ex-sum span { color: var(--text-3); }
/* date fields look like the other fields */
.theme-wise input[type=date], .theme-wise input[type=datetime-local], .theme-wise input[type=time] { height: 44px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 12px;
  background: var(--fill); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.theme-wise input[type=date]:focus, .theme-wise input[type=datetime-local]:focus, .theme-wise input[type=time]:focus { border-color: var(--lime); background: #fff; box-shadow: var(--glow); }
.theme-wise input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.theme-wise .sub-link { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; color: var(--text); text-decoration: none; }
.theme-wise .sub-link:hover { border-color: var(--lime-line); }
.theme-wise .sub-link > span:nth-child(2) { flex: 1; display: grid; } .theme-wise .sub-link b { font-weight: 650; } .theme-wise .sub-link small { color: var(--text-3); font-size: 12.5px; }
.theme-wise .sub-link > svg { width: 16px; height: 16px; color: var(--text-3); }
/* the chosen stat box: a quiet mark, not a heavy frame */
.theme-wise .sub-stat.on { border-color: var(--lime-soft); background: color-mix(in srgb, var(--lime-soft) 55%, #fff); box-shadow: none; }
.theme-wise .sub-stat.on small { color: var(--forest); font-weight: 600; }
/* loading rows of the service picker (and the panel's summary) */
.theme-wise .st-skel .sk-ic { width: 40px; height: 40px; border-radius: 12px; }
.theme-wise .st-skel .sk-lines { display: grid; gap: 8px; min-width: 0; }
.theme-wise .st-skel .sk-l1 { width: 55%; height: 13px; }
.theme-wise .st-skel .sk-l2 { width: 80%; height: 10px; }
.theme-wise .st-skel .sk-pill { width: 58px; height: 22px; border-radius: 999px; }
.theme-wise .st-skel .sk-btn { width: 86px; height: 34px; border-radius: 999px; justify-self: end; }
.theme-wise .svp-row.sk-row { cursor: default; }
.theme-wise .svp-sum.st-skel .sk-lines { flex: 1; max-width: 260px; }
.theme-wise .st-skel .sk-tabs { width: 300px; height: 38px; border-radius: 999px; }

/* ===================== member home: welcome (no service yet) ===================== */
.theme-wise .home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; margin-bottom: 22px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fff 55%); }
.theme-wise .hh-kicker { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--forest); font-size: 12px; font-weight: 650; }
.theme-wise .home-hero h2 { margin: 0 0 8px; font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.theme-wise .home-hero .hh-text > p { margin: 0; max-width: 460px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.theme-wise .hh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.theme-wise .hh-steps { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.theme-wise .hh-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.theme-wise .hh-steps li:last-child { padding-bottom: 0; }
.theme-wise .hh-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.theme-wise .hh-steps li.done:not(:last-child)::before { background: var(--lime); }
.theme-wise .hh-dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--text-3); box-shadow: 0 0 0 1px var(--line); }
.theme-wise .hh-dot svg { width: 18px; height: 18px; }
.theme-wise .hh-steps li.now .hh-dot { background: var(--forest); color: #fff; box-shadow: 0 0 0 5px var(--lime-soft); }
.theme-wise .hh-steps li.done .hh-dot { background: var(--lime); color: var(--on-lime, var(--forest)); box-shadow: none; }
.theme-wise .hh-steps small { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.theme-wise .hh-steps b { display: block; margin: 2px 0 3px; font-size: 14.5px; font-weight: 650; }
.theme-wise .hh-steps p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.theme-wise .hh-steps li:not(.now):not(.done) b { color: var(--text-2); }
@media (max-width: 860px) { .theme-wise .home-hero { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* ===================== sign in / sign up ===================== */
.theme-wise .login { display: grid; place-items: center; min-height: 100vh; padding: 32px 20px;
  background: radial-gradient(60% 50% at 15% 10%, var(--lime-soft) 0%, transparent 70%), radial-gradient(50% 50% at 90% 90%, #f1f5ec 0%, transparent 70%), var(--soft); }
.theme-wise .login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 980px; min-height: 600px;
  border-radius: 28px; background: #fff; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--forest) 25%, transparent), 0 0 0 1px #0000000a; overflow: hidden; }
.theme-wise .login-art { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px; color: var(--lime-soft); overflow: hidden;
  background: radial-gradient(90% 70% at 100% 0%, var(--forest) 0%, transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); place-items: initial; }
.theme-wise .login-art::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid color-mix(in srgb, var(--lime-2) 8%, transparent); pointer-events: none; }
.theme-wise .la-brand, .theme-wise .lc-brand { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.theme-wise .la-brand i, .theme-wise .lc-brand i { font-style: normal; color: var(--lime); }
.theme-wise .la-copy { margin-top: auto; }
.theme-wise .la-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 750; letter-spacing: -.03em; color: #fff; }
.theme-wise .la-copy p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--lime-line); }
.theme-wise .la-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.theme-wise .la-list li { display: flex; align-items: center; gap: 14px; }
.theme-wise .la-list li > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ffffff12; color: var(--lime); }
.theme-wise .la-list svg { width: 18px; height: 18px; }
.theme-wise .la-list b { display: block; font-size: 14px; font-weight: 650; color: #fff; }
.theme-wise .la-list small { font-size: 12.5px; color: var(--lime-line); }
.theme-wise .la-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 18px; border-top: 1px solid #ffffff1a; font-size: 12.5px; color: var(--lime-line); }
.theme-wise .la-foot svg { width: 14px; height: 14px; }
.theme-wise .login-main { display: grid; place-items: center; padding: 40px 48px; }
.theme-wise .login-main .login-card { width: 100%; max-width: 380px; gap: 16px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.theme-wise .lc-brand { display: none; color: var(--forest); }
.theme-wise .lc-head h1 { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.theme-wise .lc-head .muted { margin: 6px 0 4px; font-size: 14.5px; }
.theme-wise .login-card > label, .theme-wise .lc-two > label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; }
.theme-wise .lc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-wise .lc-field { position: relative; display: block; }
.theme-wise .lc-field > svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--text-3); pointer-events: none; transition: color .12s; }
.theme-wise .lc-field input { width: 100%; height: 48px; padding: 0 44px 0 44px; border-radius: 14px; font-size: 14.5px; font-weight: 500; }
.theme-wise .lc-field:focus-within > svg { color: var(--forest); }
.theme-wise .lc-eye { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--text-3); cursor: pointer; }
.theme-wise .lc-eye:hover { background: #fff; color: var(--text); }
.theme-wise .lc-eye svg { width: 17px; height: 17px; }
.theme-wise .lc-submit { height: 50px; gap: 8px; margin-top: 4px; font-size: 15px; }
.theme-wise .lc-submit svg { width: 17px; height: 17px; transition: transform .15s; }
.theme-wise .lc-submit:hover svg { transform: translateX(3px); }
.theme-wise .lc-submit.busy { pointer-events: none; }
.theme-wise .lc-submit.busy svg { display: none; }
.theme-wise .lc-submit.busy::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lcSpin .7s linear infinite; }
@keyframes lcSpin { to { transform: rotate(360deg); } }
.theme-wise .login-card .form-error:empty { display: none; }
.theme-wise .login-card .form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 13.5px; }
.theme-wise .login-main .login-lang { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .theme-wise .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 460px; min-height: 0; }
  .theme-wise .login-art { display: none; }
  .theme-wise .login-main { padding: 32px 24px; }
  .theme-wise .lc-brand { display: block; }
  .theme-wise .lc-two { grid-template-columns: 1fr; }
}
.theme-wise .login { grid-template-columns: minmax(0, 1fr); }
.theme-wise .login-art .la-list li svg.ic { color: var(--lime); }
.theme-wise .login-art p { letter-spacing: 0; }

/* ===================== two-step sign-in ===================== */
.theme-wise .lc-shield { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lime-soft); color: var(--forest); }
.theme-wise .lc-shield svg { width: 24px; height: 24px; }
.theme-wise .lc-code-label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; }
.theme-wise #codeForm input[name=code] { width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; font-size: 17px; font-weight: 600; text-align: center; letter-spacing: .08em; }
.theme-wise #codeForm input.lc-otp { font-size: 26px; letter-spacing: .45em; text-indent: .45em; font-variant-numeric: tabular-nums; font-family: var(--mono, ui-monospace, monospace); }
.theme-wise #codeForm .login-switch { color: var(--text-3); }
.theme-wise #codeForm .login-switch .linkbtn { font-size: 13.5px; }
/* the card on profile pages */
.theme-wise [data-tfa] header .badge { margin-left: auto; align-self: flex-start; }
.theme-wise .tfa-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-2); }
.theme-wise .tfa-line svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.theme-wise .tfa-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-wise .tfa-acts:empty { display: none; }
/* setup */
.theme-wise .tfa-setup { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.theme-wise .tfa-qr { padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.theme-wise .tfa-qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.theme-wise .tfa-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: tfa; }
.theme-wise .tfa-steps li { position: relative; display: grid; gap: 4px; padding-left: 36px; counter-increment: tfa; font-size: 13.5px; }
.theme-wise .tfa-steps li::before { content: counter(tfa); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; }
.theme-wise .tfa-steps b { font-weight: 650; }
.theme-wise .tfa-steps span { color: var(--text-2); }
.theme-wise .tfa-key { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--fill); }
.theme-wise .tfa-key code { font-size: 13px; letter-spacing: .04em; word-break: break-all; }
.theme-wise .tfa-link { width: fit-content; font-size: 13px; }
.theme-wise .tfa-input { width: 180px !important; height: 48px; margin-top: 4px; text-align: center; font-size: 22px !important; letter-spacing: .3em; font-family: var(--mono, ui-monospace, monospace); }
.theme-wise .tfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 14px; background: var(--fill); }
.theme-wise .tfa-codes code { padding: 6px 10px; border-radius: 8px; background: #fff; text-align: center; font-size: 14px; letter-spacing: .06em; }
.theme-wise .tfa-codes-acts { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .theme-wise .tfa-setup { grid-template-columns: minmax(0, 1fr); } .theme-wise .tfa-qr { max-width: 220px; } }
.theme-wise .tfa-input, .theme-wise #codeForm input.lc-otp { caret-color: transparent; }

/* ===================== two-step card: both states ===================== */
.theme-wise .tfa-card { display: grid; gap: 14px; align-content: start; }
.theme-wise .tfa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.theme-wise .tfa-stat { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--fill); }
.theme-wise .tfa-stat-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--forest); }
.theme-wise .tfa-stat-ic.warn { color: #b7791f; }
.theme-wise .tfa-stat-ic svg { width: 17px; height: 17px; }
.theme-wise .tfa-stat > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.theme-wise .tfa-stat small { font-size: 12px; color: var(--text-3); }
.theme-wise .tfa-stat b { font-size: 14.5px; font-weight: 650; }
.theme-wise .tfa-stat em { font-style: normal; font-size: 12.5px; color: var(--text-2); }
.theme-wise .tfa-meter { display: block; height: 5px; margin-top: 6px; border-radius: 999px; background: #fff; overflow: hidden; }
.theme-wise .tfa-meter i { display: block; height: 100%; border-radius: inherit; background: var(--forest); }
.theme-wise .tfa-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.theme-wise .tfa-warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.theme-wise .tfa-pitch { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fbfdf8 100%); box-shadow: inset 0 0 0 1px var(--lime-soft); }
.theme-wise .tfa-pitch.muted-pitch { background: var(--fill); box-shadow: none; }
.theme-wise .tfa-pitch-head { display: flex; align-items: center; gap: 12px; }
.theme-wise .tfa-pitch-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #b7791f; box-shadow: 0 0 0 1px #0000000a; }
.theme-wise .tfa-pitch-ic svg { width: 18px; height: 18px; }
.theme-wise .tfa-pitch-head b { display: block; font-size: 14.5px; font-weight: 650; }
.theme-wise .tfa-pitch-head small { font-size: 12.5px; color: var(--text-3); }
.theme-wise .tfa-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.theme-wise .tfa-points li { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #0000000a; }
.theme-wise .tfa-points li > span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--lime-soft); color: var(--forest); }
.theme-wise .tfa-points svg { width: 15px; height: 15px; }
.theme-wise .tfa-points b { display: block; font-size: 13px; font-weight: 650; }
.theme-wise .tfa-points small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.theme-wise .tfa-card.is-off .tfa-acts .btn.primary { width: 100%; justify-content: center; height: 44px; }
.theme-wise .tfa-points { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #0000000a; overflow: hidden; }
.theme-wise .tfa-points li { align-items: center; padding: 11px 12px; border-radius: 0; box-shadow: none; background: none; }
.theme-wise .tfa-points li + li { border-top: 1px solid var(--line); }
.theme-wise .tfa-points li > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
/* profile pages: cards packed without holes (masonry), wide cards still across */
.theme-wise .mem-grid.masonry { grid-auto-rows: 2px; row-gap: 0; align-items: start; }
.theme-wise .mem-grid.masonry > * { margin-bottom: 16px; }
/* packed profile pages: every card one column wide, so nothing waits for the taller column */
.theme-wise .mem-grid.masonry > .mem-wide { grid-column: auto; }
.theme-wise .mem-grid.masonry .my-kv { grid-template-columns: auto minmax(0, 1fr) !important; column-gap: 16px; }
.theme-wise .mem-grid.masonry .my-kv dt, .theme-wise .mem-grid.masonry .my-kv dd { border-top: 1px solid var(--line); }
.theme-wise .mem-grid.masonry .my-kv dt:first-of-type, .theme-wise .mem-grid.masonry .my-kv dd:first-of-type { border-top: 0; }
.theme-wise .mem-grid.masonry .my-kv { column-gap: 0; } .theme-wise .mem-grid.masonry .my-kv dd { padding-left: 16px; }
.theme-wise .tfa-points li > div { display: grid; gap: 2px; } .theme-wise .tfa-points li { align-items: center; padding: 12px 14px; }
/* two-step status tiles: one line each, the recovery codes as ten pips */
.theme-wise .tfa-stat { align-items: center; }
.theme-wise .tfa-stat-ic.ok { background: var(--lime-soft); }
.theme-wise .tfa-stat em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-wise .tfa-stat b { display: flex; align-items: baseline; gap: 2px; }
.theme-wise .tfa-of { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.theme-wise .tfa-pips { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.theme-wise .tfa-pips i { height: 5px; border-radius: 3px; background: #dfe3da; }
.theme-wise .tfa-pips i.on { background: var(--lime-2, var(--lime-2)); }
/* recent actions: the rest behind a toggle */
.theme-wise .acts-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 4px; border: 0; border-radius: 12px;
  background: var(--fill); color: var(--text-2); font: 600 13px var(--sans); cursor: pointer; }
.theme-wise .acts-more:hover { color: var(--text); background: #e9ece5; }
.theme-wise .acts-more svg { width: 15px; height: 15px; }
.theme-wise .mem-hero.st-skel { display: flex; align-items: center; gap: 20px; }
.theme-wise .st-skel .sk-av { width: 76px; height: 76px; border-radius: 50%; flex: none; }
.theme-wise .mem-hero.st-skel .sk-lines { flex: 1; max-width: 340px; }
.theme-wise .mem-card.st-skel { display: grid; gap: 14px; min-height: 150px; align-content: start; }

/* ===================== profile header ===================== */
/* the original left side (name, e-mail, tags under each other); the avatar a rounded square */
.theme-wise .mem-av { border-radius: 22px; }
/* the facts on the right as separate tiles */
.theme-wise .mem-facts { position: relative; z-index: 1; display: flex; gap: 8px; border: 0; border-radius: 0; overflow: visible; }
.theme-wise .mem-facts > div { min-width: 120px; padding: 12px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #0000000d; }
.theme-wise .mem-facts dt { font-size: 12px; color: var(--text-3); }
.theme-wise .mem-facts dd { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14.5px; font-weight: 650; }
.theme-wise .mem-online { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px #3fb95026; }
@media (max-width: 900px) { .theme-wise .mem-facts { flex-wrap: wrap; } .theme-wise .mem-facts > div { flex: 1; } }
/* profile header: the soft green light and the ring back, the facts frosted on it; the left side tighter */
.theme-wise .mem-hero { position: relative; overflow: hidden; gap: 18px; padding: 22px 24px;
  background: radial-gradient(70% 140% at 0% 0%, var(--lime-soft) 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 38%, #fff 70%); }
.theme-wise .mem-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid color-mix(in srgb, var(--lime-2) 8%, transparent); pointer-events: none; }
.theme-wise .mem-facts > div { background: #ffffffcc; box-shadow: 0 0 0 1px #0000000d; backdrop-filter: blur(4px); }
.theme-wise .mem-av { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.theme-wise .mem-who { gap: 1px; }
.theme-wise .mem-who h2 { font-size: 22px; line-height: 1.25; }
.theme-wise .mem-who .muted { font-size: 13.5px; line-height: 1.4; }
.theme-wise .mem-tags { margin-top: 7px; gap: 5px; }
.theme-wise .mem-tags .badge, .theme-wise .mem-tags .tag { height: 22px; padding: 0 9px; font-size: 11.5px; }
/* profile header: the tags beside the name; the text block and the fact tiles as tall as the avatar */
.theme-wise .mem-who { grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; column-gap: 10px; row-gap: 4px; min-height: 64px; }
.theme-wise .mem-who h2 { grid-column: 1; grid-row: 1; margin: 0; }
.theme-wise .mem-who .mem-tags { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
.theme-wise .mem-who > .muted, .theme-wise .mem-who > .mem-note { grid-column: 1 / -1; }
.theme-wise .mem-facts { align-self: center; }
.theme-wise .mem-facts > div { display: grid; align-content: center; gap: 2px; height: 64px; padding: 0 16px; box-sizing: border-box; }
.theme-wise .mem-facts dd { margin-top: 0; }

/* ===================== personal details form ===================== */
.theme-wise .pf-form { display: grid; gap: 18px; }
.theme-wise .pf-group { display: grid; gap: 10px; }
.theme-wise .pf-group + .pf-group { padding-top: 16px; border-top: 1px solid var(--line); }
.theme-wise .pf-group h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.theme-wise .pf-group h4 svg { width: 14px; height: 14px; }
.theme-wise .pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.theme-wise .pf-f { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.theme-wise .pf-f input, .theme-wise .pf-f textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text); }
.theme-wise .pf-f textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.theme-wise .pf-name, .theme-wise .pf-address, .theme-wise .pf-company { grid-column: 1 / -1; }
.theme-wise .pf-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.theme-wise .pf-form .form-error:empty { display: none; }
.theme-wise .pf-form .form-error { margin: 0; }
@media (max-width: 560px) { .theme-wise .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.theme-wise .pf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .theme-wise .pf-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.theme-wise .pf-from { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--fill); color: var(--text-3); font-size: 11px; font-weight: 600; }
.theme-wise .pf-hint { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
/* account card: the locked e-mail and its change link; the e-mail change dialog */
.theme-wise .pf-mail { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.theme-wise .pf-mail > span { display: inline-flex; align-items: center; gap: 6px; }
.theme-wise .pf-mail svg { width: 13px; height: 13px; color: var(--text-3); }
.theme-wise .pf-mail .link-btn { padding: 0; border: 0; background: none; color: var(--forest); font: 600 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.theme-wise .pf-grid-1 { grid-template-columns: minmax(0, 1fr); }
.theme-wise .pf-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--text-2); font-size: 12.5px; }
.theme-wise .pf-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--text-3); }
.theme-wise .ec-now { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fill); }
.theme-wise .ec-now > svg { width: 18px; height: 18px; color: var(--forest); }
.theme-wise .ec-now small { display: block; font-size: 12px; color: var(--text-3); }
.theme-wise .ec-now b { font-weight: 650; }

/* ===================== e-mail change dialog ===================== */
.theme-wise .modal-card.ec-modal { max-width: 440px; }
.theme-wise .ec-modal header { position: absolute; top: 0; right: 0; z-index: 2; padding: 14px; border: 0; background: none; }
.theme-wise .ec-modal header h3 { display: none; }
.theme-wise .ec-modal .modal-body { gap: 16px; padding-top: 30px; }
.theme-wise .ec-modal footer .btn { flex: 1; justify-content: center; height: 44px; }
.theme-wise .ec-hero { display: grid; justify-items: center; gap: 6px; text-align: center; }
.theme-wise .ec-badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px;
  background: linear-gradient(145deg, var(--lime-soft), var(--lime-soft)); color: var(--forest); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime-soft) 55%, #fff); }
.theme-wise .ec-badge svg { width: 24px; height: 24px; }
.theme-wise .ec-hero h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.theme-wise .ec-hero p { margin: 0; max-width: 340px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.theme-wise .ec-hero p b { color: var(--text); font-weight: 650; }
.theme-wise .ec-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-wise .ec-progress > div { display: grid; gap: 6px; }
.theme-wise .ec-progress i { display: block; height: 4px; border-radius: 4px; background: var(--fill); }
.theme-wise .ec-progress .now i, .theme-wise .ec-progress .done i { background: var(--lime); }
.theme-wise .ec-progress span { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.theme-wise .ec-progress .now span { color: var(--forest); }
.theme-wise .modal-body > label.ec-f { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.theme-wise .ec-f .lc-field input { height: 48px; border-radius: 14px; }
.theme-wise .ec-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0 -4px; font-size: 12px; font-weight: 650; color: var(--text-3); }
.theme-wise .ec-divider::before, .theme-wise .ec-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.theme-wise .ec-divider span { display: inline-flex; align-items: center; gap: 6px; }
.theme-wise .ec-divider svg { width: 14px; height: 14px; color: var(--forest); }
.theme-wise .ec-otp { display: flex; justify-content: center; gap: 8px; }
.theme-wise .ec-otp input { width: 48px !important; height: 58px; padding: 0; border: 1.5px solid transparent; border-radius: 14px; background: var(--fill);
  text-align: center; font-size: 24px; font-weight: 700; font-family: var(--mono, ui-monospace, monospace); caret-color: transparent; }
.theme-wise .ec-otp input:focus { border-color: var(--lime); background: #fff; box-shadow: var(--glow); outline: none; }
.theme-wise .ec-otp input:nth-child(3) { margin-right: 10px; }
.theme-wise .ec-small { display: block; margin: 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.theme-wise .ec-small svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.theme-wise .ec-small .link-btn { padding: 0; border: 0; background: none; color: var(--forest); font: 600 12.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.theme-wise .modal-card.ec-modal { position: relative; }
/* e-mail dialog, calmer: the step as a small kicker, one even column of clearly labelled fields */
.theme-wise .ec-modal .modal-body { gap: 22px; padding: 34px 28px 6px; }
.theme-wise .ec-modal footer { padding: 18px 28px 26px; }
.theme-wise .ec-step { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.theme-wise .ec-hero { gap: 4px; }
.theme-wise .ec-hero h3 { margin-top: 2px; }
.theme-wise .ec-form { display: grid; gap: 16px; }
.theme-wise .ec-form label.ec-f, .theme-wise .modal-body > label.ec-f { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.theme-wise .ec-modal .form-error:empty { display: none; }
.theme-wise .ec-modal .form-error { margin: -8px 0 0; }
.theme-wise .pf-empty { margin: 0; padding: 14px; border-radius: 12px; background: var(--fill); color: var(--text-3); font-size: 13.5px; }
.theme-wise .pf-empty .link-btn { padding: 0; border: 0; background: none; color: var(--forest); font: 600 13.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.theme-wise .mem-facts:empty { display: none; }

/* ===================== profile photos ===================== */
.theme-wise .mem-av { position: relative; overflow: visible; }
.theme-wise .mem-av.has-photo { background: #fff; }
.theme-wise .mem-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.theme-wise .mem-av-edit { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--forest); box-shadow: 0 0 0 1px #0000001a, 0 4px 10px -4px #00000040; cursor: pointer; transition: transform .12s; }
.theme-wise .mem-av-edit:hover { transform: scale(1.08); }
.theme-wise .mem-av-edit svg { width: 15px; height: 15px; }
.theme-wise .me-avatar.has-photo { padding: 0; overflow: hidden; background: #fff; }
.theme-wise .me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-wise .av-pick { display: flex; align-items: center; gap: 20px; }
.theme-wise .av-preview { display: grid; place-items: center; flex: none; width: 112px; height: 112px; border-radius: 28px; overflow: hidden;
  background: var(--lime); color: var(--on-lime, var(--forest)); font-size: 36px; font-weight: 750; box-shadow: 0 0 0 1px #0000000d; }
.theme-wise .av-preview img { width: 100%; height: 100%; object-fit: cover; }
.theme-wise .av-side { display: grid; gap: 4px; }
.theme-wise .av-side b { font-size: 14px; font-weight: 650; }
.theme-wise .av-side small { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.theme-wise .av-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-wise .av-file { cursor: pointer; }
/* change the photo by clicking it: a soft overlay with a camera shows on hover / focus, nothing sticks out */
.theme-wise .mem-av:has(.mem-av-edit) { cursor: pointer; overflow: hidden; }
.theme-wise .mem-av-edit { inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; border-radius: inherit; box-shadow: none;
  background: color-mix(in srgb, var(--forest) 55%, transparent); color: #fff; opacity: 0; transform: none !important; transition: opacity .15s; }
.theme-wise .mem-av-edit svg { width: 22px; height: 22px; }
.theme-wise .mem-av:hover .mem-av-edit, .theme-wise .mem-av-edit:focus-visible { opacity: 1; }
@media (hover: none) { .theme-wise .mem-av-edit { opacity: 1; inset: auto 0 0 0; top: auto; height: 34%; border-radius: 0; background: color-mix(in srgb, var(--forest) 50%, transparent); } .theme-wise .mem-av-edit svg { width: 16px; height: 16px; } }
/* profile header, compact (as set by the user): a round photo, a bit smaller; the name and tiles to match */
.theme-wise .mem-hero { gap: 14px; padding: 18px 22px; }
.theme-wise .mem-av { width: 52px; height: 52px; border-radius: 50%; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #0000000d; }
.theme-wise .mem-who { min-height: 52px; column-gap: 8px; row-gap: 2px; }
.theme-wise .mem-who h2 { font-size: 19px; letter-spacing: -.015em; }
.theme-wise .mem-who > .muted { font-size: 13px; }
.theme-wise .mem-facts > div { height: 56px; min-width: 112px; padding: 0 14px; border-radius: 12px; }
.theme-wise .mem-facts dt { font-size: 11.5px; }
.theme-wise .mem-facts dd { font-size: 14px; }
.theme-wise .mem-av-edit svg { width: 18px; height: 18px; }
/* log icons in the panel's colours: the tile's tone says what kind of action it was */
.theme-wise .mem-act-ic, .theme-wise .au-ic { transition: none; }
.theme-wise .mem-act-ic.ok, .theme-wise .au-ic.ok { background: #e7f6dc; color: #2f7a12; }
.theme-wise .mem-act-ic.bad, .theme-wise .au-ic.bad { background: #fdecea; color: #c0362c; }
.theme-wise .mem-act-ic.warn, .theme-wise .au-ic.warn { background: #fdf3dc; color: #a86b00; }
.theme-wise .mem-act-ic.lime, .theme-wise .au-ic.lime { background: var(--lime-soft); color: var(--forest); }

/* ===================== audit log rows ===================== */
.theme-wise .au-card { padding: 4px 0; }
.theme-wise .au-row { gap: 14px; padding: 12px 18px; border-bottom-color: #0000000a; }
.theme-wise .au-ic { width: 36px; height: 36px; border-radius: 11px; }
.theme-wise .au-ic svg.ic { width: 17px; height: 17px; }
.theme-wise .au-main { gap: 4px; }
.theme-wise .au-main b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.theme-wise .au-count { padding: 1px 7px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 11.5px; font-style: normal; font-weight: 650; }
.theme-wise .au-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; min-width: 0; font-size: 12.5px; color: var(--text-3); }
.theme-wise .au-sub > span + span::before { content: "·"; margin: 0 7px; color: #c4c8bf; }
.theme-wise .au-who { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.theme-wise .au-who i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--fill); color: var(--text-2); font-size: 9.5px; font-style: normal; font-weight: 700; }
.theme-wise .au-detail { min-width: 0; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.theme-wise .au-time { width: auto; white-space: nowrap; font-size: 12.5px; color: var(--text-3); }
.theme-wise .au-meta { display: none; }
@media (max-width: 760px) { .theme-wise .au-kind { display: none; } .theme-wise .au-detail { max-width: 180px; } }
/* the name chip at the top right: a pill like the search box, the photo inside it */
.theme-wise .me-chip { height: 44px; padding: 0 16px 0 4px; background: var(--fill); transition: background-color .12s; }
.theme-wise .me-chip:hover { background: var(--fill-2, #e9ece5); }
.theme-wise .me-chip .me-avatar { width: 36px; height: 36px; background: #fff; }
.theme-wise .me-chip:hover .me-avatar { background: #fff; }
.theme-wise .me-chip .me-name { font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .theme-wise .me-chip { padding: 0 4px; } }
/* photos in the account list */
.theme-wise .adm-av.has-photo { padding: 0; overflow: hidden; background: #fff; }
.theme-wise .adm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* package form: the features as even cards, the box lined up with the title, a clear on/off look */
.theme-wise .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.theme-wise .feat { align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .12s, background-color .12s; }
.theme-wise .feat:hover { border-color: var(--lime-line); }
.theme-wise .feat:has(input:checked) { border-color: var(--lime-soft); background: color-mix(in srgb, var(--lime-soft) 55%, #fff); }
.theme-wise .feat input[type=checkbox] { margin: 1px 0 0; }
.theme-wise .feat span { gap: 3px; min-width: 0; }
.theme-wise .feat b { font-size: 14px; font-weight: 650; line-height: 1.3; }
.theme-wise .feat small { font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
@media (max-width: 560px) { .theme-wise .feat-grid { grid-template-columns: minmax(0, 1fr); } }
/* sign-in page: the language inside the green brand panel, across from the logo: a glassy button with the language
   code in a lime badge; the list opens in the panel's own dark green. On a phone (no panel) it sits in the card's corner. */
.theme-wise .login-shell { position: relative; }
.theme-wise .login-shell > .login-lang:not([hidden]) { position: absolute; top: 32px; right: calc(50% + 40px); z-index: 20; display: block; margin: 0; padding: 0; border: 0; }
.theme-wise .ll-trigger { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px 0 4px; border: 0; border-radius: 999px;
  background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff1f; color: var(--lime-soft); font: 600 13px var(--sans); cursor: pointer; backdrop-filter: blur(6px);
  transition: background-color .15s, box-shadow .15s; }
.theme-wise .ll-trigger:hover, .theme-wise .login-lang.open .ll-trigger { background: #ffffff22; box-shadow: inset 0 0 0 1px #ffffff33; }
.theme-wise .ll-badge { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--on-lime, var(--forest));
  font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.theme-wise .ll-trigger svg { width: 14px; height: 14px; color: var(--lime-line); transition: transform .15s; }
.theme-wise .login-lang.open .ll-trigger svg { transform: rotate(180deg); }
.theme-wise .ll-menu { position: absolute; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; min-width: 210px; max-height: 300px; overflow: auto; padding: 6px;
  border-radius: 16px; background: var(--forest); box-shadow: 0 0 0 1px #ffffff14, 0 22px 50px -16px #000000aa; animation: svcPop .14s ease-out; scrollbar-color: #ffffff33 transparent; }
.theme-wise .ll-menu[hidden] { display: none; }
.theme-wise .ll-opt { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px 0 6px; border: 0; border-radius: 11px; background: none;
  color: var(--lime-soft); font: 500 14px var(--sans); text-align: left; cursor: pointer; }
.theme-wise .ll-opt .ll-badge { min-width: 30px; height: 26px; background: #ffffff14; color: var(--lime-line); font-size: 10.5px; }
.theme-wise .ll-opt:hover, .theme-wise .ll-opt:focus-visible { background: #ffffff12; color: #fff; outline: none; }
.theme-wise .ll-opt.on { background: #ffffff1a; color: #fff; font-weight: 650; }
.theme-wise .ll-opt.on .ll-badge { background: var(--lime); color: var(--on-lime, var(--forest)); }
.theme-wise .ll-name { flex: 1; }
.theme-wise .ll-opt svg { width: 16px; height: 16px; color: var(--lime); }
@media (max-width: 860px) {
  .theme-wise .login-shell > .login-lang:not([hidden]) { top: 26px; right: 22px; }
  .theme-wise .ll-trigger { background: var(--fill); box-shadow: none; color: var(--text); }
  .theme-wise .ll-trigger:hover, .theme-wise .login-lang.open .ll-trigger { background: #e9ece5; box-shadow: none; }
  .theme-wise .ll-trigger svg { color: var(--text-3); }
}
/* chart time axis: ticks at even times, the span under the first, "Şimdi" (live: a pulsing dot) at the end */
.theme-wise .sp-x { position: relative; display: block; height: 34px; margin: 8px 60px 0 0; border-top: 1px dashed #0000000f; }
.theme-wise .sp-tick { position: absolute; top: 8px; display: grid; justify-items: center; gap: 1px; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-wise .sp-tick::before { content: ""; position: absolute; top: -9px; left: 50%; width: 1px; height: 5px; background: #0000001f; }
.theme-wise .sp-tick:first-child { transform: none; justify-items: start; }
.theme-wise .sp-tick:first-child::before { left: 0; }
.theme-wise .sp-tick.now { transform: translateX(-100%); justify-items: end; display: flex; align-items: center; gap: 6px; color: var(--forest); }
.theme-wise .sp-tick.now::before { left: auto; right: 0; }
.theme-wise .sp-tick small { font-size: 10.5px; font-weight: 500; color: #a3a8a0; }
.theme-wise .sp-live { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 0 #3fb95066; animation: spPulse 1.8s ease-out infinite; }
@keyframes spPulse { 0% { box-shadow: 0 0 0 0 #3fb95066; } 80%, 100% { box-shadow: 0 0 0 7px #3fb95000; } }
@media (prefers-reduced-motion: reduce) { .theme-wise .sp-live { animation: none; } }
@media (max-width: 560px) { .theme-wise .sp-tick:nth-child(2), .theme-wise .sp-tick:nth-child(4) { display: none; } }
/* the right end: a tick like the others (the time, "şimdi" under it), no live dot */
.theme-wise .sp-tick.now { display: grid; justify-items: end; gap: 1px; color: var(--text-3); }
/* chart zoom: the selection while dragging, the pill that shows the window and resets it */
.theme-wise .sp-canvas.can-zoom { cursor: crosshair; touch-action: pan-y; user-select: none; }
.theme-wise .sp-sel { position: absolute; top: 0; bottom: 0; z-index: 3; border-radius: 6px; background: color-mix(in srgb, var(--lime-2, var(--lime-2)) calc(.28 * 100%), transparent);
  box-shadow: inset 0 0 0 1.5px rgba(47, 122, 18, .55); pointer-events: none; }
.theme-wise .sp-zoom { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--lime-soft);
  color: var(--forest); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.theme-wise .sp-zoom > svg { width: 14px; height: 14px; }
.theme-wise .sp-zoom button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--forest); cursor: pointer; }
.theme-wise .sp-zoom button svg { width: 13px; height: 13px; }
/* Docker: every cell of a row starts at the top line, not in the middle */
.theme-wise .dock-table td { vertical-align: top; padding-top: 16px; padding-bottom: 16px; }
.theme-wise .dock-table td .badge { margin-top: 0; }
.theme-wise .dock-table td.num, .theme-wise .dock-table td.mono { line-height: 1.5; }
.theme-wise .dock-table td.actions { padding-top: 10px; }
.theme-wise .dock-table td.actions > * { vertical-align: top; }
/* Docker rows: the first line of every column on the same line */
.theme-wise .dock-table td { line-height: 22px; }
.theme-wise .dock-table .name-cell { display: grid; gap: 0; }
.theme-wise .dock-table .name-cell b, .theme-wise .dock-table .name-cell small { line-height: 22px; }
.theme-wise .dock-table td .badge { height: 24px; margin: -1px 0 2px; }
.theme-wise .dock-table td.actions { padding-top: 11px; }

/* the home page of a member with services: the welcome with the state at a glance, then the shortcuts */
.theme-wise .hh-kicker.warn { background: #fdf0d5; color: #8a5a00; }
.theme-wise .hh-live { align-items: stretch; }
.theme-wise .hh-live .hh-text { align-self: center; }
.theme-wise .hh-facts { display: grid; gap: 10px; align-content: center; }
.theme-wise .hh-fact { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--text); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.theme-wise .hh-fact:hover { box-shadow: 0 0 0 2px var(--lime-2); color: var(--text); }
.theme-wise .hh-fact .hh-dot { background: var(--lime-soft); color: var(--forest); box-shadow: none; }
.theme-wise .hh-fact.warn .hh-dot { background: #fdf0d5; color: #8a5a00; }
.theme-wise .hh-fact > div { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; }
.theme-wise .hh-fact small { color: var(--text-3); font-size: 12.5px; }
.theme-wise .hh-fact b { grid-row: span 2; align-self: center; font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-wise .hh-fact p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .hh-fact > svg { flex: none; width: 15px; height: 15px; color: var(--text-3); }
.theme-wise .hh-live #hhMain svg { width: 16px; height: 16px; }
.theme-wise .hh-live + .svp { margin-bottom: 22px; }
.theme-wise .hh-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.theme-wise .hh-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0; color: var(--text); text-decoration: none !important; transition: box-shadow .15s; }
.theme-wise .hh-link:hover { box-shadow: 0 0 0 2px var(--lime-2); color: var(--text); }
.theme-wise .hh-link > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.theme-wise .hh-link b { font-size: 14px; font-weight: 650; }
.theme-wise .hh-link small { color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.theme-wise .hh-link > svg { flex: none; width: 15px; height: 15px; color: var(--text-3); }

/* ===================== notice and error pages ===================== */
.theme-wise .pages { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.theme-wise .page { border-radius: var(--r); }
.theme-wise .page-thumb { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.theme-wise .page-thumb iframe { width: 340%; height: 340%; transform: scale(.2941); transform-origin: 0 0; pointer-events: none; }
.theme-wise .page-info { gap: 6px; padding: 14px 10px 4px 18px; }
.theme-wise .page-title { color: var(--text); text-decoration: none; }
.theme-wise .page-title:hover b { text-decoration: underline; text-underline-offset: 3px; }
.theme-wise .page-used { padding: 6px 18px 16px; }

.pe { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.theme-wise .pe-edit { padding: 18px; display: grid; gap: 0; }
.theme-wise .pe-edit > .seg { justify-self: start; margin-bottom: 18px; }
.pe-form { display: grid; gap: 16px; }
.pe-form label:not(.check) { display: grid; gap: 6px; }
.pe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-field { display: grid; gap: 6px; justify-items: start; }
.pe-field > input { width: 100%; }
.theme-wise .pe-field .seg { margin: 0; }
.pe-label { font-size: 13.5px; font-weight: 600; }
.pe-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-icons button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fill);
  color: var(--text-2); cursor: pointer; }
.pe-icons button:hover { background: var(--fill-2); color: var(--text); }
.pe-icons button.on { background: var(--forest); color: #fff; }
.pe-icons svg { width: 20px; height: 20px; }
.pe-empty { display: grid; gap: 8px; padding: 4px 0; }
.pe-empty p { margin: 0; }
.pe-row { display: flex; gap: 8px; }
.pe-row select { flex: 1; min-width: 0; }
#peHtml { display: grid; gap: 8px; }
#peHtml[hidden] { display: none; }
#peHtml .editor { min-height: 60vh; font: 12.5px/1.55 var(--mono); white-space: pre; }
.theme-wise .pe-view { position: sticky; top: 16px; padding: 14px; background: var(--soft); }
.pe-view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.theme-wise .pe-view-head .seg { margin: 0; background: var(--fill-2); }
.pe-stage { position: relative; overflow: hidden; }
.pe-screen { position: absolute; top: 0; left: 0; transform-origin: 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pe-screen.phone { left: 50%; translate: -50% 0; transform-origin: 50% 0; border-radius: 28px; border: 8px solid var(--text); }
.pe-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .pe { grid-template-columns: 1fr; }
  .theme-wise .pe-view { position: static; }
}

/* ===================== servers (nodes) ===================== */
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.theme-wise .node-card { display: grid; gap: 16px; padding: 18px; }
.theme-wise .node-card.cur { box-shadow: inset 0 0 0 2px var(--forest); border-color: transparent; }
.node-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.node-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--fill); color: var(--text); }
.node-card.cur .node-ic { background: var(--forest); color: var(--lime); }
.node-ic svg.ic { width: 20px; height: 20px; }
.node-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.node-name b { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-name small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-stats { display: grid; gap: 10px; min-height: 96px; align-content: start; }
.node-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.node-row > span:first-child { color: var(--text-2); font-weight: 600; }
.node-row .num { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.node-os { font-size: 12.5px; }
.node-err { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--bad); font-size: 13px; }
.node-acts { display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.node-acts .muted { font-size: 12.5px; }
.node-gap { flex: 1; }
.theme-wise .tag.node-cur { background: var(--forest); color: #fff; height: 30px; padding: 0 12px; }
.tag.node-cur svg.ic { width: 14px; height: 14px; }
.theme-wise .node-empty { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 20px; }
.node-empty > div { flex: 1; }
.node-empty p { margin: 2px 0 0; }

/* the switcher: lime like the service chip; dark while another server is chosen */
.node-menu .svc-chip.node-on { background: var(--forest); color: #fff; }
.node-menu .svc-chip.node-on .svc-txt small { color: var(--lime); opacity: 1; }
.node-menu .svc-chip.node-on .svc-ic { background: #ffffff1a; color: var(--lime); }
.node-menu .svc-txt small.mono { font-family: var(--mono); }

/* under the title while another server is chosen */
/* lined up with the page column (.view: the same width and side gutters) */
.node-bar { display: flex; align-items: center; gap: 12px; width: calc(100% - 96px); max-width: var(--col); margin: 14px auto 0;
  padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--forest); color: var(--lime-soft); }
@media (max-width: 1180px) { .node-bar { width: calc(100% - 64px); } }
@media (max-width: 860px) { .node-bar { width: calc(100% - 32px); } }
.node-bar-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #ffffff14; color: var(--lime); }
.node-bar-ic svg.ic { width: 17px; height: 17px; }
.node-bar-txt { flex: 1; min-width: 0; font-size: 13.5px; }
.node-bar-txt b { color: #fff; }
.node-bar-txt small { margin-left: 8px; color: var(--lime-line); font-size: 12px; }
.theme-wise .node-bar .btn { background: #ffffff14; color: #fff; }
.theme-wise .node-bar .btn:hover { background: #ffffff24; }
.node-bar.node-bar-off { background: var(--warn-soft); color: var(--warn); }
.node-bar.node-bar-off b { color: var(--warn); }
.node-bar.node-bar-off small { color: var(--warn); opacity: .7; }
.node-bar.node-bar-off .node-bar-ic { background: #ffffff80; color: var(--warn); }
.theme-wise .node-bar.node-bar-off .btn { background: #fff; color: var(--text); }
@media (max-width: 640px) { .node-bar { flex-wrap: wrap; } .node-bar-txt small { display: block; margin: 2px 0 0; } .node-bar .btn { width: 100%; } }

/* adding a server */
.an-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.an-step[hidden] { display: none; }
.an-step p { margin: 0; }
.an-req { display: grid; gap: 8px; margin: 0; padding: 14px; list-style: none; border-radius: var(--r-sm); background: var(--soft); font-size: 13.5px; color: var(--text-2); }
.an-req li { display: flex; align-items: center; gap: 8px; }
.an-req svg.ic { width: 16px; height: 16px; color: var(--ok); flex: none; }
/* the whole command on view, wrapped (no scrollbar); a click selects all of it */
.an-cmd { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--forest); }
.theme-wise .an-cmd code { display: block; padding: 0; border: 0; background: none; color: var(--lime); font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all; user-select: all; cursor: text; }
.theme-wise .an-cmd .btn { justify-self: end; background: #ffffff1a; color: #fff; }
.theme-wise .an-cmd .btn:hover { background: #ffffff2a; }
.an-wait { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--fill); color: var(--text-2); font-size: 13.5px; }
.an-wait.done { background: var(--ok-soft); color: var(--ok); }
.an-wait.done svg.ic { width: 18px; height: 18px; }

/* servers page: the system (panel + nodes, one pool) and the separate servers */
.node-sec + .node-sec { margin-top: 36px; }
.node-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.node-sec-head h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.node-sec-head p { margin: 2px 0 0; font-size: 13.5px; }
.node-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.node-pool:empty { display: none; }
.node-pool span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--forest);
  color: var(--lime-line); font-size: 13px; }
.node-pool b { color: #fff; font-weight: 700; }
.node-add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 220px; padding: 20px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--r); background: none; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.node-add:hover { border-color: var(--forest); background: var(--soft); }
.node-add .node-ic { margin-bottom: 4px; }
.node-add b { font-size: 14.5px; }
.node-add small { font-size: 12.5px; }

/* the two ways to add a server */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--fill); cursor: pointer;
  font-weight: 400 !important; transition: background .12s, box-shadow .12s; }
.role-opt:hover { background: var(--fill-2); }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt b { font-size: 15px; font-weight: 700; color: var(--text); }
.role-opt small { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.role-ic { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 12px; background: #fff; color: var(--text); }
.role-ic svg.ic { width: 20px; height: 20px; }
.role-opt:has(input:checked) { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--forest); }
.role-opt:has(input:checked) .role-ic { background: var(--forest); color: var(--lime); }
.role-opt:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--forest), var(--glow); }
.role-opt::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); background: #fff; }
.role-opt:has(input:checked)::after { box-shadow: inset 0 0 0 5px var(--forest); }
.an-lead { font-size: 15px; font-weight: 600; }
.field-block { display: grid; gap: 8px; }
.an-chosen { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--lime-soft); }
.an-chosen .role-ic { margin: 0; background: var(--forest); color: var(--lime); }
.an-chosen div { display: grid; line-height: 1.3; }
.an-chosen small { font-size: 12.5px; }
.an-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: an; }
.an-steps li { position: relative; display: grid; gap: 8px; padding-left: 40px; min-width: 0; counter-increment: an; }
.an-steps li::before { content: counter(an); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--forest); color: var(--lime); font-size: 13px; font-weight: 700; }
.an-steps li > b { font-size: 14.5px; }
.an-steps li > small { font-size: 12.5px; }
@media (max-width: 560px) { .role-pick { grid-template-columns: 1fr; } }
.theme-wise .node-role-btn { height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; }
.node-role-btn svg.ic { width: 15px; height: 15px; }
/* a card never grows past its column: the action row wraps instead of pushing the stats and the badge out */
.theme-wise .node-card { min-width: 0; }
.node-head .badge { flex: none; }
.node-acts { flex-wrap: wrap; row-gap: 8px; }
.node-acts .node-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* the main server, beside the system's total power */
.node-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.theme-wise .node-power { display: grid; align-content: start; gap: 16px; padding: 18px; color: var(--lime-soft); border: 0;
  background: radial-gradient(90% 70% at 100% 0%, var(--forest) 0%, transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); }
.node-power-head { display: grid; gap: 2px; }
.node-power-head b { font-size: 15.5px; font-weight: 700; color: #fff; }
.theme-wise .node-power-head small.muted, .theme-wise .node-power-hint { color: var(--lime-line); font-size: 12.5px; }
.node-power-hint { margin: 0; }
.node-power-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.node-power-grid .skeleton { grid-column: 1 / -1; height: 120px; opacity: .15; }
.node-power-tile { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: #ffffff10; }
.node-power-tile b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.node-power-tile span { font-size: 12.5px; color: var(--lime-line); }
@media (max-width: 860px) { .node-main { grid-template-columns: 1fr; } }
/* the main server: always the centre (dark icon), never "chosen" */
.node-card.node-main-card .node-ic { background: var(--forest); color: var(--lime); }
.node-main-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.node-main-note svg.ic { width: 16px; height: 16px; flex: none; color: var(--forest); }

/* ===================== virtual servers ===================== */
.vps-card, .vps-host { display: grid; gap: 14px; padding: 18px; min-width: 0; }
.theme-wise .vps-card, .theme-wise .vps-host { padding: 18px; }
.node-ic.on { background: var(--forest); color: var(--lime); }
.vps-spec { display: flex; flex-wrap: wrap; gap: 6px; }
.vps-spec span { display: inline-flex; gap: 4px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: 13px; color: var(--text-2); }
.vps-spec b { color: var(--text); }
.vps-ssh { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: var(--r-sm); background: var(--forest); min-width: 0; }
.theme-wise .vps-ssh code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--lime); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-wise .vps-ssh .icon-btn { background: #ffffff1a; color: #fff; }
.vps-why { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.5; }
.vps-log { margin: 0; max-height: 160px; overflow: auto; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.vps-form { display: grid; gap: 16px; }
.vps-form label:not(.check) { display: grid; gap: 6px; }
.vps-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vps-pw { display: flex; gap: 6px; align-items: center; }
.vps-pw input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .vps-plan { grid-template-columns: 1fr; } }

/* ===================== the system on the admin home ===================== */
.sys-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-bottom: 16px; }
.sys-power { display: grid; align-content: start; gap: 18px; padding: 22px; border-radius: var(--r); color: var(--lime-soft);
  background: radial-gradient(90% 70% at 100% 0%, var(--forest) 0%, transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); }
.sys-power-head { display: flex; align-items: center; gap: 12px; }
.sys-power-head > div { flex: 1; min-width: 0; display: grid; }
.sys-power-head h3 { margin: 0; color: #fff; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.sys-power-head small { color: var(--lime-line); font-size: 13px; }
.sys-mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: #ffffff14; color: var(--lime); }
.sys-mark svg.ic { width: 22px; height: 22px; }
.theme-wise .sys-power-head .btn { background: #ffffff14; color: #fff; gap: 4px; }
.theme-wise .sys-power-head .btn:hover { background: #ffffff24; }
.sys-power-head .btn svg.ic { width: 15px; height: 15px; }
.sys-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sys-tile { display: grid; gap: 2px; min-height: 76px; padding: 14px; border-radius: 14px; background: #ffffff10; }
.sys-tile b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.sys-tile span { font-size: 12.5px; color: var(--lime-line); }
.sys-tile.sk-tile { opacity: .5; }
.sys-use { display: grid; gap: 10px; }
.sys-use-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.sys-use-row > span:first-child { color: var(--lime-line); font-weight: 600; }
.sys-use-row .num { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sys-bar { height: 8px; border-radius: 99px; background: #ffffff1a; overflow: hidden; }
.sys-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .6s ease; }
.theme-wise .sys-list { display: flex; flex-direction: column; padding: 8px; }
.sys-list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px; }
.sys-list-head b { font-size: 15px; }
.sys-list-head a { font-size: 13px; }
#sysRows { flex: 1; display: grid; align-content: start; }
.sys-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.sys-row:hover { background: var(--soft); }
.sys-row.sk-row { background: var(--fill); margin: 3px 0; opacity: .6; }
.sys-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--fill); }
.sys-ic.is-main { background: var(--forest); color: var(--lime); }
.sys-ic svg.ic { width: 18px; height: 18px; }
.sys-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.sys-name b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-name small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-meters { display: grid; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.sys-meters > span { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.sys-mini { width: 56px; height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.sys-mini i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--forest); }
.sys-mini.warn i { background: #e0a100; } .sys-mini.bad i { background: var(--bad); }
.sys-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--line-strong); }
.sys-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .sys-dot.bad { background: var(--bad); }
.sys-vps { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 10px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.sys-vps:hover { background: var(--soft); border-radius: 0 0 12px 12px; }
.sys-vps svg.ic { width: 17px; height: 17px; flex: none; }
.sys-vps span { flex: 1; }
.sys-vps b { font-weight: 500; font-size: 13px; }
@media (max-width: 1000px) { .sys-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sys-tiles { grid-template-columns: 1fr 1fr; } .sys-power { padding: 18px; } }
.sys-tile b { font-size: clamp(19px, 1.9vw, 26px); white-space: nowrap; }

/* ===================== the hub (admin home): the centre of the whole system ===================== */
body[data-view="start"] .node-menu { display: none !important; }
.hub-sk { min-height: 56px; border-radius: 12px; background: var(--fill); animation: hub-pulse 1.4s ease-in-out infinite; }
.hub-sk + .hub-sk { margin-top: 8px; }
@keyframes hub-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hub-sk { animation: none; } }

.hub-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; overflow: hidden;
  padding: 28px; border-radius: 24px; color: var(--lime-soft);
  background: radial-gradient(90% 80% at 100% 0%, var(--forest) 0%, transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); }
.hub-hero::after { content: ""; position: absolute; left: -110px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; border: 44px solid color-mix(in srgb, var(--lime-2) 6%, transparent); pointer-events: none; }
.hub-state { position: relative; z-index: 1; display: grid; gap: 8px; }
.hub-mark { font-size: 15px; font-weight: 800; letter-spacing: -.03em; color: #fff; opacity: .9; }
.hub-mark i { font-style: normal; color: var(--lime); }
.hub-state h2 { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hub-state h2::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: #ffffff40; }
.hub-state h2.ok::before { background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 20%, transparent); }
.hub-state h2.warn::before { background: #f3c14b; box-shadow: 0 0 0 5px #f3c14b33; }
.hub-state h2.bad::before { background: #ff7a6b; box-shadow: 0 0 0 5px #ff7a6b33; }
.hub-state p { margin: 0; font-size: 14px; color: var(--lime-line); }
.hub-power { position: relative; z-index: 1; display: grid; gap: 16px; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hub-tile { display: grid; gap: 2px; min-height: 78px; padding: 14px; border-radius: 14px; background: #ffffff10; }
.hub-tile.hub-sk { background: #ffffff10; min-height: 78px; margin: 0; }
.hub-tile b { font-size: clamp(19px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; white-space: nowrap; }
.hub-tile span { font-size: 12.5px; color: var(--lime-line); }
.hub-use { display: grid; gap: 9px; }
.hub-use-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.hub-use-row > span:first-child { color: var(--lime-line); font-weight: 600; }
.hub-use-row .num { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hub-bar { height: 8px; border-radius: 99px; background: #ffffff1a; overflow: hidden; }
.hub-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .6s ease; }

.hub-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 16px; }
.theme-wise .hub-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.hub-sec { margin-top: 28px; }
.hub-sec > .hub-head { margin-bottom: 14px; }
.hub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hub-head h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.hub-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.hub-more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.hub-more:hover { color: var(--text); }
.hub-more svg.ic { width: 15px; height: 15px; }
.hub-count { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.hub-count:empty { display: none; }
.hub-count.warn { background: var(--warn-soft); color: var(--warn); } .hub-count.bad { background: var(--bad-soft); color: var(--bad); }

/* the infrastructure: the main server on top, its two kinds of servers branching from it */
.hub-map { display: grid; gap: 0; }
.hub-root { position: relative; display: grid; padding-bottom: 22px; }
.hub-root::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 22px; border-left: 2px solid var(--line-strong); }
.hub-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 20px; }
.hub-branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; border-top: 2px solid var(--line-strong); }
.hub-branch { position: relative; display: grid; align-content: start; gap: 8px; }
.hub-branch::before { content: ""; position: absolute; top: -20px; left: 50%; height: 20px; border-left: 2px solid var(--line-strong); }
.hub-branch.alone::before { border-left-style: dashed; }
.hub-branches .alone .hub-srv:not(.hub-add) { border-style: dashed; }
.hub-branch-label { font-size: 12px; font-weight: 650; color: var(--text-3); text-align: center; }
.hub-branch-list { display: grid; gap: 8px; }
.hub-srv { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--text); text-decoration: none; transition: border-color .12s, background .12s; }
.hub-srv:hover { border-color: var(--line-strong); background: var(--soft); }
.hub-srv.role-main { padding: 14px 16px; border: 0; background: var(--forest); color: #fff; }
.hub-srv.role-main:hover { background: var(--forest); }
.hub-srv-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--fill); }
.hub-srv.role-main .hub-srv-ic { width: 42px; height: 42px; background: #ffffff14; color: var(--lime); }
.hub-srv-ic svg.ic { width: 18px; height: 18px; }
.hub-srv-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.hub-srv-name b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-srv.role-main .hub-srv-name b { font-size: 16px; font-weight: 750; }
.hub-srv-name small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-srv.role-main .hub-srv-name small { color: var(--lime-line); }
.hub-srv-meters { display: grid; gap: 4px; flex: none; }
.hub-mini { display: flex; align-items: center; gap: 6px; }
.hub-mini em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-3); width: 26px; text-align: right; }
.hub-srv.role-main .hub-mini em { color: var(--lime-line); }
.hub-mini > span { width: 52px; height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.hub-srv.role-main .hub-mini > span { background: #ffffff22; }
.hub-mini i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--forest); }
.hub-srv.role-main .hub-mini i { background: var(--lime); }
.hub-mini .warn i { background: #e0a100; } .hub-mini .bad i { background: var(--bad); }
.hub-srv-wait { width: 52px; height: 18px; border-radius: 6px; background: var(--fill); }
.hub-srv.hub-add { justify-content: center; gap: 6px; min-height: 48px; border: 1.5px dashed var(--line-strong); background: none; color: var(--text-2); font-size: 13px; font-weight: 600; }
.hub-srv.hub-add svg.ic { width: 16px; height: 16px; }
.sys-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--line-strong); }
.sys-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .sys-dot.bad { background: var(--bad); }
.hub-srv.role-main .sys-dot.ok { background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 20%, transparent); }

/* what needs a hand */
.hub-alerts { display: grid; gap: 6px; align-content: start; }
.hub-alert { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--soft); color: var(--text); text-decoration: none; font-size: 13.5px; }
.hub-alert:hover { background: var(--fill); }
.hub-alert i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.hub-alert.warn i { background: #e0a100; } .hub-alert.bad i { background: var(--bad); }
.hub-alert.bad { background: var(--bad-soft); }
.hub-alert span { flex: 1; min-width: 0; }
.hub-alert svg.ic { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.hub-calm { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.hub-calm svg.ic { width: 22px; height: 22px; flex: none; }
.hub-calm div { display: grid; }
.hub-calm b { font-size: 15px; }
.hub-calm small { color: var(--text-2); }

/* what the system serves */
.hub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hub-stat { position: relative; display: grid; gap: 2px; min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  color: var(--text); text-decoration: none; transition: border-color .12s; }
.hub-stat.hub-sk { border: 0; }
.hub-stat-ic { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 10px; background: var(--fill); }
.hub-stat-ic svg.ic { width: 17px; height: 17px; }
.hub-stat-n { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hub-stat-l { font-size: 13.5px; font-weight: 650; }
.hub-stat small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-stat.warn small { color: var(--warn); } .hub-stat.bad small { color: var(--bad); }
.hub-stat.warn::after, .hub-stat.bad::after { content: ""; position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.hub-stat.bad::after { background: var(--bad); }

/* the latest changes, and every page */
.hub-log { display: grid; align-content: start; }
.hub-log-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.hub-log-row:first-child { border-top: 0; padding-top: 0; }
.hub-log-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--forest); }
.hub-log-row div { display: grid; min-width: 0; }
.hub-log-row b { font: 600 13px var(--mono); }
.hub-log-row small { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-log-meta { font-size: 11.5px; color: var(--text-3); text-align: right; line-height: 1.4; }
.hub-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.hub-dir-group { display: grid; gap: 2px; align-content: start; }
.hub-dir-group > b { margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.hub-dir-group a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.hub-dir-group a:hover { background: var(--fill); }
.hub-dir-group svg.ic { width: 16px; height: 16px; flex: none; color: var(--text-2); }

@media (max-width: 1100px) { .hub-hero { grid-template-columns: 1fr; } .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hub-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hub-hero { padding: 20px; border-radius: 20px; } .hub-tiles { grid-template-columns: 1fr 1fr; }
  .hub-branches { grid-template-columns: 1fr; } .hub-branches::before, .hub-branch::before { display: none; } .hub-root::after { height: 14px; } .hub-root { padding-bottom: 14px; }
  .hub-branches { padding-top: 0; } .hub-dir { grid-template-columns: 1fr; }
}
/* the page list flows in two columns: each group right under the one before it, no row gaps */
.hub-dir { display: block; columns: 2; column-gap: 16px; }
.hub-dir-group { break-inside: avoid; margin-bottom: 18px; }
.hub-dir-group:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .hub-dir { columns: 1; } }
.theme-wise .node-upd.tag { height: 30px; gap: 6px; padding: 0 12px; background: var(--lime-soft); color: var(--forest); font-weight: 600; }
.node-upd svg.ic { width: 14px; height: 14px; }
.node-acts .node-upd { order: -1; }
.vps-host .node-head { flex-wrap: wrap; } .vps-host .node-name { min-width: 120px; }
.vps-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.vps-kind { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 12.5px; }
.vps-kind b { color: var(--text); font-weight: 700; }
.vps-kind.ok { background: var(--ok-soft); color: var(--ok); } .vps-kind.ok b { color: var(--ok); }
.vps-kind.warn { background: var(--warn-soft); color: var(--warn); }
.vps-kind.mute { opacity: .6; }
.vps-note { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); color: var(--text-2); font-size: 13px; line-height: 1.5; }

/* ---- hub hero, v2: state with its sign, quick facts, the system's use as rings, its capacity in a strip ---- */
.hub-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "state gauges" "cap cap"; gap: 26px 32px; padding: 30px 30px 0;
  background-image: radial-gradient(#ffffff0d 1px, transparent 1.4px), radial-gradient(90% 80% at 100% 0%, var(--forest) 0%, transparent 60%), radial-gradient(60% 70% at 0% 100%, var(--forest) 0%, transparent 70%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%);
  background-size: 18px 18px, auto, auto, auto; box-shadow: 0 24px 60px -30px var(--forest); }
.hub-hero::after { left: auto; right: -120px; top: -140px; bottom: auto; width: 360px; height: 360px; border-width: 54px; border-color: color-mix(in srgb, var(--lime-2) 6%, transparent); }
.hub-state { grid-area: state; align-content: center; gap: 14px; }
.hub-mark { display: inline-flex; align-items: baseline; gap: 8px; }
.hub-mark em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-line); }
.hub-status { display: flex; align-items: center; gap: 16px; }
.hub-status > div { display: grid; gap: 4px; min-width: 0; }
.hub-status h2 { margin: 0; }
.hub-status h2::before { display: none; }
.hub-status p { margin: 0; font-size: 14px; color: var(--lime-line); }
.hub-status-ic { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 18px; background: #ffffff14; color: var(--lime-soft); }
.hub-status-ic svg.ic { width: 28px; height: 28px; stroke-width: 2.2; }
.hub-status-ic.ok { background: var(--lime); color: var(--on-lime, var(--forest)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 15%, transparent); }
.hub-status-ic.warn { background: #f3c14b; color: #4a3000; box-shadow: 0 0 0 6px #f3c14b26; }
.hub-status-ic.bad { background: #ff7a6b; color: #4a0d06; box-shadow: 0 0 0 6px #ff7a6b26; }
.hub-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #ffffff12; color: var(--lime-soft);
  font-size: 12.5px; font-weight: 600; border: 1px solid #ffffff10; }
.hub-pill svg.ic { width: 14px; height: 14px; color: var(--lime); }
.hub-pill.warn svg.ic { color: #f3c14b; } .hub-pill.bad svg.ic { color: #ff7a6b; }
.hub-gauges { grid-area: gauges; position: relative; z-index: 1; display: flex; gap: 14px; align-items: stretch; }
.hub-gauge { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; width: 128px; padding: 14px 10px 12px; border-radius: 18px;
  background: #ffffff0d; border: 1px solid #ffffff10; text-align: center; }
.hub-gauge svg { width: 84px; height: 84px; }
.hub-gauge circle { fill: none; stroke-width: 8; }
.hub-gauge .trk { stroke: #ffffff17; }
.hub-gauge .val { stroke: var(--lime); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.hub-gauge.warn .val { stroke: #f3c14b; } .hub-gauge.bad .val { stroke: #ff7a6b; }
.hub-gauge > b { position: absolute; top: 40px; left: 0; right: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hub-gauge > span { margin-top: 6px; font-size: 13px; font-weight: 650; color: #fff; }
.hub-gauge > small { font-size: 11.5px; color: var(--lime-line); white-space: nowrap; }
.hub-cap { grid-area: cap; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -30px; border-top: 1px solid #ffffff14; }
.hub-cap-item { display: flex; align-items: center; gap: 12px; padding: 16px 30px; min-width: 0; }
.hub-cap-item + .hub-cap-item { border-left: 1px solid #ffffff14; }
.hub-cap-item.hub-sk { min-height: 72px; margin: 0; border-radius: 0; background: none; }
.hub-cap-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #ffffff12; color: var(--lime); }
.hub-cap-ic svg.ic { width: 18px; height: 18px; }
.hub-cap-item div { display: grid; min-width: 0; }
.hub-cap-item b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.15; white-space: nowrap; }
.hub-cap-item span { font-size: 12px; color: var(--lime-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the system's services, v2: icon beside its numbers; a state says so in words ---- */
.hub-stats { gap: 12px; }
.hub-stat { display: flex; align-items: flex-start; gap: 14px; min-height: 0; padding: 16px; border-radius: 12px; }
.hub-stat, .hub-stat:hover, .hub-stat * { color: var(--text); text-decoration: none; }
.hub-stat.hub-sk { min-height: 96px; }
.hub-stat::after { display: none; }
.hub-stat-ic { width: 42px; height: 42px; flex: none; margin: 0; border-radius: 12px; background: var(--fill); }
.hub-stat-ic svg.ic { width: 19px; height: 19px; color: var(--forest); }
.hub-stat-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-stat .hub-stat-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hub-stat .hub-stat-n { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hub-stat small, .hub-stat.warn small, .hub-stat.bad small { font-size: 12px; color: var(--text-3); }
.hub-stat-chip { flex: none; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 20px; }
.hub-stat.warn .hub-stat-chip { background: var(--warn-soft); color: var(--warn); }
.hub-stat.bad .hub-stat-chip { background: var(--bad-soft); color: var(--bad); }
.hub-stat.warn .hub-stat-ic { background: var(--warn-soft); } .hub-stat.warn .hub-stat-ic svg.ic { color: var(--warn); }
.hub-stat.bad .hub-stat-ic { background: var(--bad-soft); } .hub-stat.bad .hub-stat-ic svg.ic { color: var(--bad); }

/* catalogue editor: three fields in a row */
.ce-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* a member's virtual server */
.mv-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px; border-radius: 22px; color: var(--lime-soft);
  background: radial-gradient(90% 80% at 100% 0%, var(--forest) 0%, transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); }
.mv-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mv-id h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.mv-id p { margin: 2px 0 0; color: var(--lime-line); font-size: 13.5px; }
.mv-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: #ffffff14; color: var(--lime-soft); }
.mv-ic.on { background: var(--lime); color: var(--on-lime, var(--forest)); }
.mv-ic svg.ic { width: 24px; height: 24px; }
.mv-spec { display: flex; gap: 8px; }
.mv-spec div { display: grid; min-width: 92px; padding: 12px 14px; border-radius: 14px; background: #ffffff10; }
.mv-spec b { font-size: 20px; font-weight: 800; color: #fff; }
.mv-spec span { font-size: 12px; color: var(--lime-line); }
.mv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.theme-wise .mv-card { display: grid; gap: 12px; align-content: start; padding: 20px; }
.mv-card h3 { margin: 0; font-size: 17px; font-weight: 750; }
.mv-card p { margin: 0; }
.mv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mv-facts div { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.mv-facts dt { font-size: 12px; color: var(--text-3); } .mv-facts dd { margin: 2px 0 0; font-weight: 600; }
.mv-acts { display: grid; gap: 8px; }
.mv-act { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.mv-act:hover { border-color: var(--line-strong); background: var(--soft); }
.mv-act > span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--fill); }
.mv-act svg.ic { width: 18px; height: 18px; }
.mv-act b { font-size: 14px; } .mv-act small { font-size: 12.5px; color: var(--text-3); }

@media (max-width: 1100px) { .hub-hero { grid-template-columns: 1fr; grid-template-areas: "state" "gauges" "cap"; } .hub-cap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-cap-item:nth-child(3) { border-left: 0; } .hub-cap-item:nth-child(n+3) { border-top: 1px solid #ffffff14; } }
@media (max-width: 900px) { .mv-grid, .mv-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hub-hero { padding: 22px 20px 0; } .hub-cap { margin: 0 -20px; } .hub-cap-item { padding: 14px 18px; }
  .hub-gauges { gap: 8px; } .hub-gauge { width: auto; flex: 1; padding: 12px 6px; } .hub-gauge svg { width: 72px; height: 72px; } .hub-gauge > b { top: 36px; font-size: 16px; }
  .hub-status-ic { width: 48px; height: 48px; border-radius: 15px; } .ce-row3, .mv-facts { grid-template-columns: 1fr; } .mv-spec div { min-width: 0; flex: 1; } }
/* virtual server plans: what the nodes still have room for */
.st-item.st-full { opacity: .85; }
.st-out { font-style: normal; height: 22px; padding: 0 9px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 700; line-height: 22px; }
.st-full-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.45; }
.st-full-note svg.ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.st-few { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--warn); }
.ct-stock { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; line-height: 1.45; }
.ct-stock.none { background: var(--warn-soft); color: var(--warn); }
.ct-stock svg.ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---- hub hero, v3: calm. A title, one status line that leads to the details, one line of facts; the use as three rings ---- */
.hub-hero.hub-hero3 { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "state gauges"; gap: 28px 40px; padding: 32px 36px; align-items: center;
  background-image: radial-gradient(80% 90% at 100% 0%, var(--forest) 0%, transparent 62%), linear-gradient(160deg, var(--forest) 0%, var(--forest) 100%); background-size: auto; }
.hub-hero.hub-hero3::after { right: -150px; top: auto; bottom: -190px; width: 380px; height: 380px; border-width: 56px; border-color: color-mix(in srgb, var(--lime-2) 5%, transparent); left: auto; }
.hub-hero3 .hub-state { gap: 12px; justify-items: start; }
.hub-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hub-hero3 .hub-state h2 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.hub-hero3 .hub-state h2::before { display: none; }
.hub-status-chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; margin-top: 2px; padding: 0 10px 0 14px; border: 0; border-radius: 999px;
  background: #ffffff14; color: #fff; font: 600 14px var(--sans); cursor: pointer; transition: background .15s; }
.hub-status-chip:hover { background: #ffffff22; }
.hub-status-chip i { width: 9px; height: 9px; border-radius: 50%; background: #ffffff66; }
.hub-status-chip svg.ic { width: 16px; height: 16px; color: #ffffffaa; }
.hub-status-chip.ok i { background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 19%, transparent); }
.hub-status-chip.warn i { background: #f3c14b; box-shadow: 0 0 0 4px #f3c14b30; }
.hub-status-chip.bad { background: #ff7a6b26; } .hub-status-chip.bad:hover { background: #ff7a6b38; }
.hub-status-chip.bad i { background: #ff7a6b; box-shadow: 0 0 0 4px #ff7a6b30; }
.hub-facts { margin: 0; font-size: 13.5px; color: var(--lime-line); white-space: pre-wrap; }
.hub-hero3 .hub-gauges { gap: 28px; }
.hub-hero3 .hub-gauge { width: auto; min-width: 104px; padding: 0; border: 0; background: none; }
.hub-hero3 .hub-gauge svg { width: 96px; height: 96px; }
.hub-hero3 .hub-gauge circle { stroke-width: 7; }
.hub-hero3 .hub-gauge > b { top: 35px; font-size: 21px; }
.hub-hero3 .hub-gauge > span { margin-top: 8px; font-size: 13.5px; }
@media (max-width: 1100px) { .hub-hero.hub-hero3 { grid-template-columns: 1fr; grid-template-areas: "state" "gauges"; } .hub-hero3 .hub-gauges { justify-content: space-between; } }
@media (max-width: 560px) { .hub-hero.hub-hero3 { padding: 24px 20px; gap: 24px; } .hub-hero3 .hub-gauges { gap: 8px; } .hub-hero3 .hub-gauge { min-width: 0; flex: 1; }
  .hub-hero3 .hub-gauge svg { width: 80px; height: 80px; } .hub-hero3 .hub-gauge > b { top: 29px; font-size: 18px; } }
.hub-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; white-space: normal; }
.hub-facts span { white-space: nowrap; }
.hub-facts i { font-style: normal; opacity: .5; }

/* ---- the hub's top: one strip. The state on the left (it leads to the details), the system's use on the right ---- */
.hub-strip { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.hub-strip-st { display: flex; align-items: center; gap: 14px; min-width: 330px; max-width: 40%; padding: 18px 22px; border: 0; border-right: 1px solid var(--line);
  background: var(--soft); text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: background .15s; }
.hub-strip-st:hover { background: var(--fill); }
.hub-strip-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--fill); color: var(--text-2); }
.hub-strip-ic svg.ic { width: 22px; height: 22px; stroke-width: 2.1; }
.hub-strip-ic.ok { background: var(--ok-soft); color: var(--ok); }
.hub-strip-ic.warn { background: var(--warn-soft); color: var(--warn); }
.hub-strip-ic.bad { background: var(--bad-soft); color: var(--bad); }
.hub-strip-tx { display: grid; gap: 3px; min-width: 0; }
.hub-strip-tx b { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.hub-strip .hub-facts { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; font-size: 13px; color: var(--text-3); }
.hub-strip .hub-facts i { font-style: normal; opacity: .6; }
.hub-strip-ms { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-strip-m { display: grid; align-content: center; gap: 6px; padding: 16px 22px; min-width: 0; }
.hub-strip-m + .hub-strip-m { border-left: 1px solid var(--line); }
.hub-strip-m small { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.hub-strip-m .hub-sk { min-height: 40px; }
.hub-strip-n { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-strip-n em { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
@media (max-width: 1000px) { .hub-strip { flex-direction: column; } .hub-strip-st { max-width: none; min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .hub-strip-ms { grid-template-columns: 1fr; } .hub-strip-m + .hub-strip-m { border-left: 0; border-top: 1px solid var(--line); } }
.hub-strip-n { white-space: normal; overflow: visible; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.hub-strip-n em { white-space: nowrap; }

/* ---- the hub, v4: the member home's own pieces (home-hero, svp, count-grid, hh-links), for the whole system ---- */
body[data-view="start"] #hubNotices { display: grid; gap: 8px; margin-bottom: 16px; }
body[data-view="start"] #hubNotices:empty { display: none; }
body[data-view="start"] .svp, body[data-view="start"] .count-grid { margin-top: 16px; }
body[data-view="start"] .count-grid .hub-sk { min-height: 116px; }
.svp-row.hub-main-row .svp-ic { background: var(--forest); color: var(--lime); }
.hub-log-card .hub-log { padding: 4px 20px 16px; }
.hub-log-card .hub-log .hub-sk { margin: 8px 0; }
body[data-view="start"] .hh-links { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
body[data-view="start"] #hubNotices .term-notice { margin: 0; padding: 10px 10px 10px 16px; border: 0; font-size: 13.5px; }
body[data-view="start"] #hubNotices .warn-notice { background: var(--warn-soft); }
body[data-view="start"] #hubNotices .warn-notice > svg.ic { color: var(--warn); }
body[data-view="start"] #hubNotices .bad-notice { background: var(--bad-soft); }
body[data-view="start"] #hubNotices .bad-notice > svg.ic { color: var(--bad); }
body[data-view="start"] #hubNotices .term-notice .btn { height: 30px; }
/* the hub's warnings: one card of rows, like every other list on the page */
.hub-alerts-card[hidden] { display: none !important; }
.hub-alerts-card .svp-head h3 { display: flex; align-items: center; gap: 8px; }
.hub-alerts-card .hub-count { min-width: 24px; height: 24px; font-size: 12px; }
.hub-al-list { display: grid; }
.hub-al { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hub-al:hover { background: var(--soft); }
.hub-al-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.hub-al-ic svg.ic { width: 17px; height: 17px; }
.hub-al.bad .hub-al-ic { background: var(--bad-soft); color: var(--bad); }
.hub-al.warn .hub-al-ic { background: var(--warn-soft); color: var(--warn); }
.hub-al-tx { flex: 1; min-width: 0; font-size: 14px; }
.hub-al-tag { flex: none; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 24px; }
.hub-al.bad .hub-al-tag { background: var(--bad-soft); color: var(--bad); }
.hub-al.warn .hub-al-tag { background: var(--warn-soft); color: var(--warn); }
.hub-al > svg.ic { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.hub-al-more { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text-2); font: 600 13.5px var(--sans); cursor: pointer; }
.hub-al-more:hover { background: var(--soft); color: var(--text); }
@media (max-width: 560px) { .hub-al { padding: 12px 16px; gap: 10px; } .hub-al-tag { display: none; } }
.theme-wise .view a.hub-al, .theme-wise .view a.hub-al .hub-al-tx { color: var(--text); text-decoration: none; }
body[data-view="start"] .hub-sec { margin-top: 28px; }
body[data-view="start"] .hub-two { margin-top: 16px; }
body[data-view="start"] .hub-stats .hub-stat { background: #fff; }
.theme-wise .view .hub-dir-group a { color: var(--text); }
/* the hub's welcome facts: plain numbers, and the system's use as three small meters */
.hub-fact > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-fact b span { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.theme-wise .hh-fact.hub-use > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.theme-wise .hh-fact.hub-use p { white-space: normal; }
/* one grid for all three rows so label, bar, % and amount line up in columns */
.hub-mm { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto auto; align-items: center; gap: 7px 10px; margin: 8px 0 2px; }
.hub-mm-row { display: contents; font-size: 12.5px; }
.hub-mm-row em { font-style: normal; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.theme-wise .hh-fact .hub-mm-row b { grid-row: auto; font-size: 13px; font-weight: 700; text-align: right; letter-spacing: 0; line-height: 1.2; min-width: 32px; font-variant-numeric: tabular-nums; }
.theme-wise .hh-fact .hub-mm-row small { font-size: 12px; color: var(--text-3); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-mm-bar { height: 6px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.hub-mm-bar i { display: block; height: 100%; width: 0; min-width: 6px; border-radius: inherit; background: var(--lime-2); transition: width .5s ease; }
/* the icon sits beside the title, not in the middle of three rows */
.theme-wise .hh-fact.hub-use { align-items: flex-start; }
.theme-wise .hh-fact.hub-use > svg { align-self: center; }
.hub-mm-bar.warn i { background: #e0a100; } .hub-mm-bar.bad i { background: var(--bad); }

/* the hub's tile picker: pages to tick on the left, the chosen ones to order on the right */
.theme-wise .modal-card:has(.hub-te) { max-width: 860px; }
.modal-body:has(.hub-te) { grid-template-columns: minmax(0, 1fr); }
.hub-te-intro { margin: 0 0 6px; color: var(--text-2); font-size: 14px; }
.hub-te { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; min-height: 0; }
.hub-te-pick, .hub-te-side { max-height: min(58vh, 520px); overflow: auto; }
.hub-te-pick { display: grid; gap: 14px; padding-right: 4px; }
.hub-te-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.hub-te-h { grid-column: 1 / -1; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.hub-te-h span { margin-left: 4px; color: var(--text); }
.hub-te-opt { display: flex; align-items: center; gap: 10px; min-width: 0; height: 38px; padding: 0 8px 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 500 13.5px var(--sans); text-align: left; cursor: pointer; }
.hub-te-opt:hover { background: var(--fill); }
.hub-te-opt > svg.ic { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.hub-te-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-te-check { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.hub-te-check svg.ic { width: 12px; height: 12px; opacity: 0; stroke-width: 3; }
.hub-te-opt.on { background: var(--lime-soft); font-weight: 600; }
.hub-te-opt.on > svg.ic { color: var(--forest); }
.hub-te-opt.on .hub-te-check { background: var(--forest); box-shadow: none; color: #fff; }
.hub-te-opt.on .hub-te-check svg.ic { opacity: 1; }
.hub-te-side { padding: 14px; border-radius: 14px; background: var(--soft); align-self: start; }
.hub-te-list { display: grid; gap: 4px; position: relative; }
.hub-te-row { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); user-select: none; }
.hub-te-row.drag { position: relative; z-index: 2; box-shadow: 0 0 0 1.5px var(--lime-2), 0 10px 24px -10px #0e0f0c55; }
.hub-te-grip, .hub-te-rm { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: grab; touch-action: none; }
.hub-te-rm { cursor: pointer; }
.hub-te-grip:focus-visible, .hub-te-rm:focus-visible { outline: 2px solid var(--lime-2); }
.hub-te-rm:hover { background: var(--bad-soft); color: var(--bad); }
.hub-te-grip svg.ic, .hub-te-rm svg.ic { width: 15px; height: 15px; }
.hub-te-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--lime-soft); color: var(--forest); }
.hub-te-ic svg.ic { width: 14px; height: 14px; }
.hub-te-l { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-te-none { margin: 0; padding: 18px 8px; color: var(--text-3); font-size: 13px; text-align: center; }
.modal-card footer .hub-te-reset { margin-right: auto; }
@media (max-width: 700px) {
  .hub-te { grid-template-columns: 1fr; }
  .hub-te-side { order: -1; }
  .hub-te-pick, .hub-te-side { max-height: none; overflow: visible; }
}
@media (max-width: 480px) {
  .hub-te-g { grid-template-columns: minmax(0, 1fr); }
  .modal-card footer:has(.hub-te-reset) { flex-wrap: wrap; }
  .modal-card footer .hub-te-reset { flex-basis: 100%; margin: 0; }
  .modal-card footer:has(.hub-te-reset) .btn:not(.hub-te-reset) { flex: 1; }
}
.hub-stat.hub-empty { align-items: center; justify-content: center; min-height: 96px; border: 1px dashed var(--line-strong); background: none; color: var(--text-2); font: 600 14px var(--sans); cursor: pointer; }
/* a page without a number: a shortcut with a line about the page */
.hub-stat.hub-link { align-items: center; }
.hub-stat.hub-link .hub-stat-body { gap: 3px; }
.hub-stat.hub-link small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hub-stat.hub-link > svg.ic { width: 16px; height: 16px; flex: none; color: var(--text-3); }

/* the maintenance bot (Güvenlik › Bakım botu) */
.bot-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; }
.bot-strip > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bot-strip b { font-size: 14.5px; }
.bot-strip .muted { font-size: 13px; }
.bot-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lime-soft); color: var(--forest); }
.bot-ic svg.ic { width: 19px; height: 19px; }
.bot-strip.off .bot-ic { background: var(--fill); color: var(--text-3); }
.bot-head-act { display: flex; gap: 8px; flex: none; }
.bot-list, .bot-hist { padding: 0; overflow: hidden; }
.bot-task { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line); }
.bot-task:first-child, .bot-ev:first-child { border-top: 0; }
.bot-task.off .bot-task-main { opacity: .55; }
.bot-task-st { padding-top: 1px; }
.bot-task-main { display: grid; gap: 3px; min-width: 0; }
.bot-task-main b { font-size: 14px; font-weight: 600; }
.bot-task-main .muted { font-size: 12.5px; }
.bot-when { font-size: 12px; color: var(--text-3); }
.bot-task-act { display: flex; align-items: center; gap: 12px; }
.bot-items { margin: 4px 0 2px; padding: 0; list-style: none; display: grid; gap: 3px; }
.bot-items li { position: relative; padding-left: 14px; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.bot-items li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.bot-items li.warn::before { background: #e0a100; }
.bot-items li.bad::before { background: var(--bad); }
.bot-items li.fixed::before { background: var(--lime-2); }
.bot-h { margin: 22px 0 10px; font-size: 15px; }
.bot-ev { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--line); }
.bot-ev b { font-size: 13.5px; font-weight: 600; }
.bot-ev small { white-space: nowrap; font-size: 12px; }
@media (max-width: 640px) {
  .bot-task, .bot-ev { grid-template-columns: minmax(0, 1fr) auto; }
  .bot-task-st { grid-column: 1 / -1; }
  .bot-ev > .badge { grid-column: 1 / -1; justify-self: start; }
  .sec-head:has(.bot-head-act) { flex-wrap: wrap; }
}
.sec-head > .bot-head-act { flex: none; display: flex; flex-direction: row; gap: 8px; }
@media (max-width: 640px) {
  .sec-head > .bot-head-act { flex-basis: 100%; }
  .sec-head > .bot-head-act .btn { flex: 1; }
  .bot-task { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bot-task-act { justify-content: space-between; }
}

/* the member list: the row opens the member's page, the button beside it opens their panel */
.mem-row { display: flex; align-items: center; gap: 6px; }
.mem-row + .mem-row { margin-top: 2px; }
.mem-row > .adm-row { flex: 1; min-width: 0; }
.mem-row > .mem-login { flex: none; margin-right: 6px; }
@media (max-width: 560px) { .mem-row > .mem-login .label { display: none; } }

/* paying: the choices in an order dialog */
.pay-choices { display: grid; gap: 6px; margin-top: 4px; }
.pay-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--lime-2); background: var(--lime-soft); }
.pay-opt.off { opacity: .5; cursor: default; }
.pay-opt input { margin: 3px 0 0; accent-color: var(--forest); }
.pay-opt span { display: grid; gap: 2px; }
.pay-opt b { font-size: 14px; font-weight: 600; }
.pay-opt small { font-size: 12.5px; color: var(--text-2); }
.pay-test { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); margin-left: 4px; }
.pay-bank { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13.5px; white-space: normal; overflow-wrap: anywhere; }
.ord-err { display: flex; align-items: center; gap: 6px; color: var(--bad) !important; }
.ord-err svg.ic { width: 14px; height: 14px; flex: none; }
/* account credit */
.cr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.cr-card { display: grid; gap: 6px; padding: 20px; }
.cr-card small { color: var(--text-3); font-size: 13px; }
.cr-card b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cr-how { display: grid; gap: 6px; padding: 18px 20px; align-content: start; }
.cr-how p { margin: 0; font-size: 13.5px; }
.cr-bank { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13px; }
.cr-sum { display: flex; align-items: center; gap: 24px; padding: 18px 20px; margin-bottom: 14px; flex-wrap: wrap; }
.cr-sum > div { display: grid; gap: 4px; }
.cr-sum small { color: var(--text-3); font-size: 12.5px; }
.cr-sum b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cr-sum p { flex: 1; min-width: 240px; margin: 0; font-size: 13px; }
.cr-tx td { vertical-align: top; }
.cr-tx .num { text-align: right; font-variant-numeric: tabular-nums; }
.cr-note { display: block; color: var(--text-3); font-size: 12.5px; }
.cr-in { color: var(--ok); font-weight: 600; } .cr-out { color: var(--text); font-weight: 600; }
.cr-mini { display: flex; gap: 14px; margin-bottom: 6px; } .cr-mini b { font-size: 22px; font-weight: 800; }
.cr-dir { margin-bottom: 4px; }
.pay-set { padding: 0; }
.pay-set section { display: grid; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line); }
.pay-set section:first-child { border-top: 0; }
.pay-set h3 { font-size: 15px; margin: 0; }
.pay-set footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.pay-set code { font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--fill); overflow-wrap: anywhere; }
.warn-text { color: var(--warn); }
.pay-set .rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-set .rec-grid input { width: 100%; min-width: 0; }
.cr-dir { justify-self: start; width: auto; }

/* ---- the payment page ---- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.co-main { display: grid; gap: 14px; min-width: 0; }
.co-sec { display: grid; gap: 12px; padding: 20px; }
.co-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.co-sec h3 i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font: 700 12.5px var(--sans); }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item > div { display: grid; gap: 2px; } .co-item small { color: var(--text-2); font-size: 13px; }
.co-fixed { margin: 0; }
.co-sec .rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-corp summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.co-corp[open] { display: grid; gap: 12px; }
.co-doc { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.co-doc + .co-doc { margin-top: 8px; }
.co-doc summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.co-doc summary small { font-weight: 500; color: var(--text-3); margin-left: 6px; }
.co-doc-body { max-height: 280px; overflow: auto; padding: 0 16px 14px; border-top: 1px solid var(--line); }
.co-ok { align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.co-ok input { margin-top: 3px; flex: none; }
.co-sum { position: sticky; top: 16px; display: grid; gap: 12px; padding: 20px; }
.co-sum h3 { margin: 0; font-size: 15px; font-weight: 650; }
.co-sum dl { margin: 0; display: grid; gap: 8px; }
.co-sum dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; line-height: 1.4; }
.co-sum dt { color: var(--text-2); font-weight: 400; } .co-sum dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.co-total b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.co-safe { display: flex; gap: 8px; margin: 0; font-size: 12px; color: var(--text-3); }
.co-safe svg.ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.co-sum .form-error:empty { display: none; }
@media (max-width: 900px) { .co { grid-template-columns: minmax(0, 1fr); } .co-sum { position: static; } }
@media (max-width: 560px) { .co-sec .rec-grid { grid-template-columns: minmax(0, 1fr); } .co-sec { padding: 16px; } }
.legal-text { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.legal-text h1 { font-size: 18px; margin: 18px 0 2px; } .legal-text h2 { font-size: 14.5px; margin: 16px 0 4px; }
.legal-text p { margin: 6px 0; } .legal-text ul { margin: 6px 0; padding-left: 20px; }
.legal-text .v { color: var(--text-3); font-size: 12px; margin: 0 0 8px; }
.legal-text footer { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.co-contract { max-height: 65vh; overflow: auto; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 28px 0 8px; font-size: 12.5px; }
.legal-foot a { color: var(--text-3); text-decoration: none; } .legal-foot a:hover { color: var(--text); text-decoration: underline; }
.lc-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; max-width: 420px; margin: 18px auto 0; font-size: 12px; }
.lc-legal a { color: var(--text-3); text-decoration: none; } .lc-legal a:hover { color: var(--text); }
.lc-accept { align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.lc-accept input { margin-top: 2px; flex: none; }
.lc-accept a { color: var(--forest); font-weight: 600; }
.sv-close { margin-left: auto; color: var(--text-3); }
.sv-close:hover { color: var(--bad); background: var(--bad-soft); }
/* ---- legal texts (admin) ---- */
.lg-warn { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--soft); }
.lg-warn.bad { background: var(--warn-soft); }
.lg-warn > svg.ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--warn); }
.lg-warn div { display: grid; gap: 3px; font-size: 13.5px; } .lg-warn span { color: var(--text-2); }
.lg-seller { padding: 0; margin-bottom: 8px; }
.lg-seller header { padding: 18px 20px 4px; } .lg-seller h3 { margin: 0; font-size: 16px; } .lg-seller header p { margin: 4px 0 0; font-size: 13px; }
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 20px; }
.lg-grid .lg-wide { grid-column: 1 / -1; }
.lg-seller footer { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }
.lg-docs { padding: 4px 0; }
.lg-doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lg-doc:first-child { border-top: 0; }
.lg-doc > div { flex: 1; min-width: 0; display: grid; gap: 2px; } .lg-doc small { color: var(--text-3); font-size: 12.5px; }
.lg-ph { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; } .lg-ph .tag { cursor: pointer; border: 0; font: 500 11.5px var(--mono, monospace); }
.lg-text { width: 100%; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 640px) { .lg-grid { grid-template-columns: minmax(0, 1fr); } .lg-doc { flex-wrap: wrap; } }

.svp-cancel { width: 32px; height: 32px; display: inline-grid; place-items: center; margin-left: 6px; color: var(--text-3); }
.svp-cancel:hover { color: var(--bad); background: var(--bad-soft); }
.svp-cancel svg.ic { width: 15px; height: 15px; }
.svc-cancel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-top: 18px; box-shadow: 0 0 0 1px var(--bad-soft); }
.svc-cancel > div { flex: 1; display: grid; gap: 2px; } .svc-cancel small { color: var(--text-2); font-size: 13px; }
@media (max-width: 560px) { .svc-cancel { flex-wrap: wrap; } }

/* ---- charts shared by finance and reports ---- */
.vchart { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 170px auto; padding-top: 8px; }
.vc-grid { grid-row: 1; grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vc-grid span { position: relative; display: block; height: 0; margin-left: 44px; border-top: 1px dashed var(--line); }
.vc-grid em { position: absolute; left: -44px; top: -7px; width: 36px; text-align: right; font-style: normal; color: var(--text-3); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-grid span:last-child { border-top: 1px solid var(--line-strong, var(--line)); }
.vc-plot { position: relative; z-index: 1; grid-row: 1; grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 2px; margin-left: 44px; }
.vc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; border-radius: 6px 6px 0 0; }
.vc-col i { display: block; width: 100%; max-width: 28px; min-height: 0; border-radius: 4px 4px 0 0; background: var(--lime-2); transition: opacity .12s, background .12s; }
.vc-col i.zero { height: 2px !important; background: var(--line); opacity: 1; }
.vc-plot:hover .vc-col i { opacity: .45; }
.vc-plot:hover .vc-col.on i { opacity: 1; background: var(--forest); }
.vc-x { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 2px; margin: 8px 0 0 44px; }
.vc-x span { flex: 1; text-align: center; color: var(--text-3); font-size: 11px; white-space: nowrap; overflow: visible; }
.vc-tip { position: absolute; top: -6px; z-index: 3; display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--text); color: var(--surface, #fff);
  font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .4); }
.vc-tip small { opacity: .7; font-size: 11.5px; }
.vc-tip b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 12px; }
.hb-row { display: grid; grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; font-size: 13.5px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 3px; background: var(--lime-2); }
.hb-v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.hb-p { color: var(--text-3); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.rp-empty { margin: 8px 0; font-size: 13.5px; }

/* ---- finance: quiet and precise: underline tabs, one summary card with hairline dividers, neutral charts ---- */
.fin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fin > * { min-width: 0; }
.fin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.fin-tabs { display: flex; gap: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fin-tabs a { position: relative; padding: 10px 0 12px; color: var(--text-3); font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.fin-tabs a:hover { color: var(--text); }
.fin-tabs a.on { color: var(--text); }
.fin-tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--lime-2); }
.fin-ctl { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.theme-wise .fin-ctl .seg { padding: 3px; }
.theme-wise .fin-ctl .seg button { height: 28px; padding: 0 11px; font-size: 12.5px; }

.fin-sum { padding: 0; overflow: hidden; }
.fs-row, .fin-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fs-row { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fin-strip { padding: 0; overflow: hidden; }
.fs-cell { display: grid; gap: 4px; align-content: start; padding: 18px 20px; min-width: 0; }
.fs-cell + .fs-cell { border-left: 1px solid var(--line); }
.fs-cell small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.fs-cell b { font-size: 20px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-cell > span { color: var(--text-3); font-size: 12px; }
.fs-cell.warn b { color: var(--warn); }
.fs-main b { font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.fs-delta { font-size: 12.5px; font-weight: 600; }
.fs-delta.up { color: var(--ok); }
.fs-delta.down { color: var(--bad); }
.fs-delta em { font-style: normal; font-weight: 400; color: var(--text-3); }
.fs-chart { padding: 18px 20px 16px; }
.ps-st { display: inline-flex !important; align-items: center; gap: 8px; font-size: 15px !important; }
.ps-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: .5; flex: none; }
.ps-st.on i { background: var(--ok); opacity: 1; }
.fin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fin-card, .rp-card { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.fin-card > header, .rp-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fin-card h3, .rp-card h3 { margin: 0; font-size: 15px; font-weight: 650; }
.fin-card header small, .rp-card header small { color: var(--text-3); font-size: 12.5px; }
.fin-tb { width: 100%; border-collapse: collapse; }
.theme-wise .fin-tb th { padding: 0 0 8px; background: none; font-size: 12px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
.theme-wise .fin-tb td { padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.theme-wise .fin-tb th + th, .theme-wise .fin-tb td + td { padding-left: 12px; }
.theme-wise .fin-tb tr:last-child td { border-bottom: 0; }
.fin-tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-tb td a { font-weight: 500; }
.fin .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; }
.fin .pay-set { margin: 0; }
@media (max-width: 900px) {
  .fs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fs-main { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .fs-main + .fs-cell { border-left: 0; }
  .fin-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-strip .fs-cell:nth-child(3) { border-left: 0; }
  .fin-strip .fs-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fin-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-row .fs-cell:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .fs-cell { padding: 14px 16px; }
  .fs-cell b { font-size: 17px; }
  .fs-main b { font-size: 26px; }
  .fin-ctl { padding-bottom: 10px; }
  .vchart { grid-template-rows: 130px auto; }
}

/* ---- statistics: every figure by category ---- */
.sx-loading { display: flex; align-items: center; gap: 10px; padding: 22px; color: var(--text-2); font-size: 14px; }
.sx-warn { color: var(--warn) !important; } .sx-bad { color: var(--bad) !important; }
.sx-jump { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-jump a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.sx-jump a svg.ic { width: 14px; height: 14px; }
.sx-jump a:hover { color: var(--text); border-color: var(--line-strong, var(--line)); }
.sx-cat { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.sx-cat > header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.sx-cat > header h3 { margin: 0; font-size: 15px; font-weight: 650; flex: 1; }
.sx-cat > header small { color: var(--text-3); font-size: 12.5px; }
.sx-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--lime-soft); color: var(--forest); flex: none; }
.sx-ic svg.ic { width: 15px; height: 15px; }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 16px 20px 18px; }
.sx-cell { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 12px; background: var(--soft); min-width: 0; }
.sx-cell small { color: var(--text-3); font-size: 12.5px; }
.sx-cell b { font-size: 19px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-cell > span { font-size: 12px; color: var(--text-3); }
.sx-cell > span em { font-style: normal; }
.sx-cell.warn { background: color-mix(in srgb, var(--warn-soft) 70%, var(--soft)); } .sx-cell.warn b { color: var(--warn); }
.sx-cell.bad { background: color-mix(in srgb, var(--bad-soft) 70%, var(--soft)); } .sx-cell.bad b { color: var(--bad); }
.sx-ch { font-weight: 650; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sx-ch.up { color: var(--ok); } .sx-ch.down { color: var(--bad); }
.sx-vis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; padding: 4px 20px 22px; }
.sx-vis figure { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.sx-vis figcaption { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* small figure tables (statistics) */
.rd-tb { width: 100%; border-collapse: collapse; }
.theme-wise .rd-tb th { padding: 0 10px 8px; background: none; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.theme-wise .rd-tb td { padding: 8px 10px; font-size: 13px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.theme-wise .rd-tb th:first-child, .theme-wise .rd-tb td:first-child { padding-left: 0; }
.theme-wise .rd-tb th:last-child, .theme-wise .rd-tb td:last-child { padding-right: 0; }
.theme-wise .rd-tb tbody tr:last-child td { border-bottom: 0; }
.rd-tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-tb.small td { font-size: 12.5px; }
.theme-wise .rd-tb.small th { border-bottom-color: var(--rule); }
.sx-vis { --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--text-3); --rule: var(--line); }
.sx-vis figcaption { font-size: 13px; }


/* domain names: the registrant's form in two columns */
.dm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: end; }
.dm-h { margin: 14px 0 0; font-size: 14px; font-weight: 650; }
.dm-note { margin: 0 0 4px; font-size: 12.5px; }
.dm-cat { display: flex; gap: 6px 20px; flex-wrap: wrap; margin: 4px 0 6px; }
.dm-cat label.check { margin: 0; }
@media (max-width: 700px) { .dm-grid { grid-template-columns: minmax(0, 1fr); } }
.dm-ns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.dm-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-acts.end { justify-content: flex-end; }
.dm-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dm-opt:first-of-type { border-top: 0; padding-top: 0; }
.dm-opt > div { display: grid; gap: 2px; min-width: 0; }
.dm-opt small { color: var(--text-3); font-size: 12.5px; }
.dm-opt .vps-pw { margin-top: 6px; }
.dm-tlds input { width: 96px; text-align: right; }
@media (max-width: 700px) { .dm-ns { grid-template-columns: minmax(0, 1fr); } }
/* domain search: a compact search card, then the answers row by row */
/* the welcome of the home page (home-hero, hh-facts), smaller: a compact search on the left, three facts on the right */
.theme-wise .dm-hero { margin-bottom: 0; padding: 24px 28px; gap: 28px; }
.theme-wise .dm-hero h2 { font-size: 22px; margin-bottom: 4px; }
.theme-wise .dm-hero .hh-text > p { font-size: 13.5px; margin-bottom: 14px; }
.theme-wise .dm-hero .hh-kicker { margin-bottom: 8px; }
.dm-hero .dm-chips { margin-top: 10px; }
.theme-wise .dm-hero .hh-fact { padding: 11px 14px; gap: 12px; }
.theme-wise .dm-hero .hh-dot { width: 32px; height: 32px; }
.theme-wise .dm-hero .hh-dot svg { width: 15px; height: 15px; }
/* the facts: a small grey label over one line at reading size; no big bold figure */
.theme-wise .dm-fact > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.theme-wise .dm-fact small { font-size: 12px; color: var(--text-3); }
.theme-wise .dm-fact p { margin: 0; font-size: 13.5px; color: var(--text-2); white-space: normal; }
.theme-wise .dm-fact p b { grid-row: auto; font-size: inherit; font-weight: 650; color: var(--text); letter-spacing: 0; }
.theme-wise .dm-fact p span { color: var(--text-3); }
.dm-field { position: relative; display: block; max-width: 640px; }
.dm-field > svg.ic { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--text-3); pointer-events: none; z-index: 1; }
.theme-wise .dm-field input { width: 100%; height: 44px; padding: 0 84px 0 40px; border-radius: 999px; font-size: 15px; background-color: #fff; box-shadow: 0 0 0 1px var(--line); }
.theme-wise .dm-field input:hover { background-color: #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.dm-field .btn { position: absolute; right: 5px; top: 5px; height: 34px; padding: 0 18px; border-radius: 999px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font: inherit; font-size: 12.5px; font-weight: 650; color: var(--text); cursor: pointer; }
.dm-chip small { color: var(--text-3); font-weight: 500; font-size: 12px; }
.dm-chip:hover { background: var(--fill-2); }
.dm-chip.on { background: var(--lime-soft); color: var(--forest); } .dm-chip.on small { color: var(--forest); }
/* the answers */
.dm-res { padding: 16px 20px 6px; }
.dm-res > header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 6px; }
.dm-res > header h3 { white-space: nowrap; }
.dm-res h3 { margin: 0; font-size: 15px; font-weight: 650; }
.dm-res header small { color: var(--text-3); font-size: 12.5px; }
.dm-rows { display: grid; }
.dm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 118px; align-items: center; gap: 16px; padding: 13px 4px; border-top: 1px solid var(--line); }
.dm-row:first-child { border-top: 0; }
/* the best answer: white, a thin green line on its left, a little lift; the only green fill is its button */
.dm-row.dm-top { margin: 4px 0 10px; padding: 18px 20px; border: 0; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); }
.dm-row.dm-top + .dm-row { border-top: 0; }
.dm-main { display: grid; gap: 3px; min-width: 0; }
.dm-tag { color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.dm-n { font-size: 15px; font-weight: 500; color: var(--text); overflow-wrap: break-word; }
.dm-n b { font-weight: 700; }
.dm-row.ok .dm-n b { color: #1f7a1f; }
.dm-row.dm-top .dm-n { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.dm-row.off .dm-n, .dm-row.off .dm-n b { color: var(--text-3); }
.dm-st { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.dm-row.ok .dm-st { color: var(--text-2); }
.dm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.dm-incl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.dm-incl span { display: inline-flex; align-items: center; gap: 5px; }
.dm-incl svg.ic { width: 13px; height: 13px; color: var(--text-3); }
.dm-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.dm-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.dm-amt i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-3); margin-left: 2px; }
.dm-row.dm-top .dm-amt { font-size: 17px; }
.dm-price small { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.dm-price em { font-style: normal; color: var(--forest); font-weight: 600; }
.dm-act { display: flex; justify-content: flex-end; }
/* while it looks: a turning ring round the search icon, and the extensions lighting up one after another */
.dm-ld { display: grid; justify-items: center; gap: 6px; padding: 34px 16px 30px; text-align: center; }
.dm-ld-ic { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%; background: color-mix(in srgb, var(--lime-soft) 55%, #fff); color: var(--forest); }
.dm-ld-ic svg.ic { width: 24px; height: 24px; }
.dm-ld-ic::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--lime-2); border-right-color: var(--lime-2); animation: dmSpin 1s linear infinite; }
@keyframes dmSpin { to { transform: rotate(360deg); } }
.dm-ld b { font-size: 16px; font-weight: 600; } .dm-ld b span { font-weight: 700; }
.dm-ld small { color: var(--text-3); font-size: 13px; }
.dm-ld-tlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; margin-top: 14px; }
.dm-ld-tlds span { height: 26px; padding: 0 11px; border-radius: 999px; background: var(--soft); color: var(--text-3); font-size: 12.5px; font-weight: 650; line-height: 26px;
  animation: dmWave 1.8s ease-in-out infinite; }
@keyframes dmWave { 0%, 60%, 100% { background: var(--soft); color: var(--text-3); } 25% { background: var(--lime-soft); color: var(--forest); } }
.dm-ld-tlds span:nth-child(2) { animation-delay: .12s; } .dm-ld-tlds span:nth-child(3) { animation-delay: .24s; } .dm-ld-tlds span:nth-child(4) { animation-delay: .36s; }
.dm-ld-tlds span:nth-child(5) { animation-delay: .48s; } .dm-ld-tlds span:nth-child(6) { animation-delay: .6s; } .dm-ld-tlds span:nth-child(7) { animation-delay: .72s; }
.dm-ld-tlds span:nth-child(8) { animation-delay: .84s; } .dm-ld-tlds span:nth-child(9) { animation-delay: .96s; } .dm-ld-tlds span:nth-child(10) { animation-delay: 1.08s; }
.dm-ld-tlds span:nth-child(11) { animation-delay: 1.2s; } .dm-ld-tlds span:nth-child(12) { animation-delay: 1.32s; }
@media (prefers-reduced-motion: reduce) { .dm-ld-ic::before, .dm-ld-tlds span { animation: none; } }
@media (max-width: 700px) {
  .theme-wise .dm-hero { padding: 20px 16px; gap: 18px; }
  .dm-res { padding-left: 14px; padding-right: 14px; }
  .dm-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
  .dm-row .dm-main { grid-column: 1 / -1; }
  .dm-row .dm-price { grid-column: 1; justify-items: start; text-align: left; }
  .dm-row .dm-act { grid-column: 2; }
  .dm-price small { white-space: normal; }
  .dm-price em { display: block; }
  .dm-sep { display: none; }
  .dm-row .dm-act:empty, .dm-row > span:empty { display: none; }
  .dm-row.dm-top { padding: 16px; }
  .dm-row.dm-top .dm-n { font-size: 17px; }
}

/* the best answer: a showcase card above the rows */
.dm-best { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 4px 0 10px; padding: 20px 22px;
  border-radius: 16px; background: radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fff 55%); border: 1px solid var(--line); }
.dm-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--lime-soft); color: var(--forest); }
.dm-badge svg.ic { width: 24px; height: 24px; }
.dm-best.off { background: #fff; }
.dm-best.off .dm-badge { background: var(--soft); color: var(--text-3); }
.dm-kick { display: flex; align-items: center; gap: 10px; }
.dm-best .dm-n { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.dm-best.ok .dm-n b { color: #1f7a1f; }
.dm-best.off .dm-n, .dm-best.off .dm-n b { color: var(--text-3); }
.dm-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dm-feats span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 550; color: var(--text-2); }
.dm-feats svg.ic { width: 13px; height: 13px; color: var(--forest); }
.dm-side { display: grid; justify-items: end; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); min-width: 170px; }
.dm-side:empty { display: none; }
.dm-best .dm-amt { font-size: 22px; letter-spacing: -.01em; }
.dm-best .dm-amt i { font-size: 13px; }
.dm-best .dm-side .btn { min-width: 150px; justify-content: center; }
@media (max-width: 700px) {
  .dm-best { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .dm-badge { width: 44px; height: 44px; border-radius: 13px; align-self: start; }
  .dm-best .dm-n { font-size: 18px; }
  .dm-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); min-width: 0; }
  .dm-side .dm-price { justify-items: start; text-align: left; }
  .dm-best .dm-side .btn { min-width: 0; }
}
/* my domains: rows like the search's, with the domain's state in small tags */
.dm-row.dm-own { grid-template-columns: minmax(0, 1fr) auto auto; }
a.dm-n { text-decoration: none !important; color: var(--text); }
a.dm-n:hover { text-decoration: underline !important; }
.dm-own.ok .dm-n b { color: #1f7a1f; }
.dm-dot.warn { background: var(--warn); } .dm-dot.bad { background: var(--bad); } .dm-dot.off { background: var(--line-strong); }
.dm-soon { color: var(--warn); font-weight: 600; }
.dm-tags2 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dm-tags2 span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 550; color: var(--text-2); white-space: nowrap; }
.dm-tags2 svg.ic { width: 12px; height: 12px; color: var(--forest); }
.dm-tags2 span.dim { color: var(--text-3); } .dm-tags2 span.dim svg.ic { color: var(--text-3); }
.dm-own .dm-act { gap: 6px; }
.dm-own .dm-act .btn svg.ic { width: 14px; height: 14px; }
/* no domain yet */
.dm-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 24px 36px; text-align: center; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fff 60%); }
.dm-empty h2 { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.dm-empty p { margin: 0; max-width: 460px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.dm-empty .dm-feats { justify-content: center; margin-top: 4px; }
.dm-empty .hh-cta { justify-content: center; margin-top: 10px; }
/* transfer: the two fields, and how it goes */
.dm-trf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-items: end; max-width: 560px; }
.dm-trf label { margin: 0; display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.dm-trf > .btn { grid-column: 1 / -1; justify-self: start; }
.dm-trf .form-error { grid-column: 1 / -1; margin: 0; }
.dm-in { position: relative; display: block; }
.dm-in > svg.ic { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); pointer-events: none; z-index: 1; }
.theme-wise .dm-in input { width: 100%; height: 44px; padding-left: 38px; border-radius: 12px; background-color: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; }
.theme-wise .dm-in input:hover { background-color: #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.theme-wise .dm-in input#dmTrEpp { padding-right: 40px; }
.dm-eye { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; }
.dm-eye:hover { background: var(--soft); color: var(--text); }
.dm-eye svg.ic { width: 16px; height: 16px; }
.dm-trnote { display: block; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.dm-trnote b { color: var(--text-2); }
.dm-how { color: var(--text-3); font-size: 12.5px; font-weight: 600; padding-left: 2px; }
.theme-wise .dm-step .hh-dot { font-size: 14px; font-weight: 700; color: var(--forest); }
.theme-wise .dm-step > div { display: grid; grid-template-columns: minmax(0, 1fr); }
.theme-wise .dm-step small { color: var(--text); font-size: 13.5px; font-weight: 650; }
.theme-wise .dm-step p { white-space: normal; }
@media (max-width: 700px) {
  .dm-row.dm-own { grid-template-columns: minmax(0, 1fr) auto; }
  .dm-own .dm-tags2 { grid-column: 1 / -1; justify-content: flex-start; order: 2; }
  .dm-own .dm-main { grid-column: 1 / -1; }
  .dm-own .dm-act { grid-column: 1 / -1; order: 3; }
  .dm-trf { grid-template-columns: minmax(0, 1fr); }
  .dm-trf > .btn { width: 100%; justify-content: center; }
}
/* the cart: the top bar's button with its count, the cart's rows, the "added" note */
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--text); text-decoration: none !important; flex: none; }
.cart-btn:hover { background: var(--fill-2); }
.cart-btn svg.ic { width: 19px; height: 19px; }
.cart-n { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-row { grid-template-columns: 40px minmax(0, 1fr) auto 36px; }
.cart-row .svp-ic { width: 40px; height: 40px; }
.cart-term { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.theme-wise .cart-term select { height: 32px; font-size: 13px; padding-left: 10px; width: auto; }
.cart-term small { font-size: 12px; }
.cart-row .icon-btn { color: var(--text-3); } .cart-row .icon-btn:hover { color: var(--bad); }
.btn.disabled { opacity: .5; pointer-events: none; }
.co-sum .btn.wide + .btn.wide { margin-top: 8px; }
.co-sum dt small { display: block; margin-top: 1px; color: var(--text-3); font-size: 12px; }
.cart-added { display: flex; align-items: center; gap: 12px; }
.cart-added > svg.ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--lime-soft); color: var(--forest); flex: none; }
.cart-added div { display: grid; gap: 2px; } .cart-added span { color: var(--text-3); font-size: 13px; }
.st-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 700px) { .cart-row { grid-template-columns: 36px minmax(0, 1fr) 32px; } .cart-row .dm-price { grid-column: 2; justify-items: start; } .cart-row .icon-btn { grid-row: 1; grid-column: 3; } .cart-btn { width: 40px; height: 40px; } }
.theme-wise .st-item .st-acts { margin-top: auto; }
.co-sum > small.muted { font-size: 12px; }
.theme-wise .co-sum .btn.wide { height: 42px; font-size: 14px; }

/* the home welcome: a small domain search, quiet links under it */
.hh-dm { margin-top: 18px; max-width: 460px; }
.hh-links2 { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.hh-links2 a, .hh-links2 button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-2); text-decoration: none !important; cursor: pointer; }
.hh-links2 a:hover, .hh-links2 button:hover { color: var(--forest); }
.hh-links2 svg.ic { width: 15px; height: 15px; color: var(--forest); }
/* the cart: what could go with it, and three reasons to trust it */
.cart-sug { margin-top: 16px; }
.cart-sug-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.cart-sug-row .svp-ic { width: 40px; height: 40px; }
.cart-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cart-trust > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.cart-trust > span > svg.ic { width: 18px; height: 18px; color: var(--forest); flex: none; }
.cart-trust b { display: block; font-size: 13px; font-weight: 650; }
.cart-trust small { color: var(--text-3); font-size: 12px; }
@media (max-width: 700px) { .cart-trust { grid-template-columns: minmax(0, 1fr); } .cart-sug-row { grid-template-columns: 36px minmax(0, 1fr) auto; } .cart-sug-row .dm-price { display: none; } }

/* one type scale for the panel's cards: card heading 15, values 16-18, text 13.5-14, notes 12-12.5 */
.theme-wise .home-hero h2 { font-size: 24px; font-weight: 700; }
.theme-wise .hh-fact b { font-size: 16px; font-weight: 650; letter-spacing: 0; }
.st-price b { font-size: 24px; font-weight: 700; }
.fs-cell b { font-size: 18px; }
.sx-cell b { font-size: 17px; }
.co-total b { font-size: 18px; }
.dm-best .dm-n { font-size: 19px; font-weight: 650; }
.dm-best .dm-amt { font-size: 18px; }
.dm-best .dm-amt i { font-size: 12px; }
@media (max-width: 700px) { .theme-wise .home-hero h2 { font-size: 21px; } .dm-best .dm-n { font-size: 17px; } }
/* a service's package page */
.pk-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 22px;
  background: radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fff 55%); }
.pk-head small { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.pk-head h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.pk-head p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.pk-head p svg.ic { width: 14px; height: 14px; color: var(--text-3); margin-left: 4px; }
.pk-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pk-row:nth-child(-n+2) { border-top: 0; }
.pk-row .svp-ic { width: 36px; height: 36px; }
.pk-main { display: grid; gap: 5px; min-width: 0; }
.pk-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pk-top > b { font-weight: 600; } .pk-top span { color: var(--text-3); white-space: nowrap; } .pk-top span b { color: var(--text); font-weight: 650; }
.pk-bar { display: block; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.pk-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lime-2); }
.pk-row.warn .pk-bar i { background: var(--warn); } .pk-row.bad .pk-bar i { background: var(--bad); }
.pk-main small { color: var(--text-3); font-size: 12px; }
.pk-row.warn .pk-main small { color: var(--warn); } .pk-row.bad .pk-main small { color: var(--bad); }
.pk-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.pk-feats li { display: flex; gap: 10px; align-items: flex-start; }
.pk-feats li > svg.ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--lime-soft); color: var(--forest); flex: none; margin-top: 1px; }
.pk-feats li.off > svg.ic { background: var(--soft); color: var(--text-3); }
.pk-feats li span { display: grid; gap: 1px; } .pk-feats b { font-size: 13.5px; font-weight: 600; } .pk-feats small { color: var(--text-3); font-size: 12px; }
.pk-feats li.off b { color: var(--text-3); font-weight: 500; }
@media (max-width: 700px) { .pk-rows, .pk-feats { grid-template-columns: minmax(0, 1fr); } .pk-row:nth-child(2) { border-top: 1px solid var(--line); }
  .pk-head { grid-template-columns: 44px minmax(0, 1fr); } .pk-head .badge { grid-column: 2; justify-self: start; } }
.cl-name { display: block; margin: 2px 0 6px; font-size: 14px; }

/* ---- tax and invoices (renderTax) and the tax lines of the order summary ---- */
.co-sum dl #coTx { display: contents; }
.co-sum dl #coTx:empty { display: none; }
.co-sum dl .co-sub dt, .co-sum dl .co-sub dd { color: var(--text-2); font-weight: 400; }
.fin-ctl input[type="month"] { height: 34px; padding: 0 10px; font-size: 13px; width: auto; }
.tx-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; font-size: 13.5px; color: var(--text-2); }
.tx-note .ic { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.tx-dl { margin: 0; display: grid; gap: 0; }
.tx-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tx-dl div:first-child { border-top: 0; }
.tx-dl dt { color: var(--text-2); } .tx-dl dd { margin: 0; text-align: right; color: var(--text); }
.modal .tx-dl { margin-bottom: 14px; }
.tx-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tx-tb td small { display: block; font-size: 12px; margin-top: 1px; }
.tx-tb .btn.small { white-space: nowrap; }
.fin-card header .seg { margin-left: auto; }
.theme-wise .fin-card header .seg button { height: 28px; padding: 0 11px; font-size: 12.5px; }
.modal .rec-grid input[type="date"] { min-width: 0; width: 100%; box-sizing: border-box; }
.ot-amount small { display: block; }

/* the admin home is shown once, whole (renderStart reveal): a quiet spinner only if the wait gets noticeable */
.hub-page > :first-child { margin-top: 0; }
.hub-page.hub-wait { position: relative; }
.hub-page.hub-wait > * { visibility: hidden; }
.hub-page.hub-wait::before { content: ""; position: absolute; left: 50%; top: 140px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--text-3); opacity: 0; animation: hub-spin .8s linear infinite, hub-show 0s .35s forwards; }
.hub-page.hub-in { animation: hub-fade .22s ease-out; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
@keyframes hub-show { to { opacity: 1; } }
@keyframes hub-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hub-page.hub-in { animation: none; } }

/* the admin home: what needs a hand, as rows like the facts beside it (renderStart drawTop) */
.theme-wise .hh-kicker.bad { background: var(--bad-soft); color: var(--bad); }
.hub-is { margin-top: 18px; max-width: 460px; }
.hub-is-list { display: grid; gap: 8px; padding: 1px; }
.hub-is:not(.open) .hub-is-row:nth-child(n+3) { display: none; }
.hub-is.open .hub-is-list { max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.theme-wise .hh-fact.hub-is-row { padding: 10px 12px; gap: 12px; }
.theme-wise .hh-fact.hub-is-row .hh-dot { width: 34px; height: 34px; }
.theme-wise .hh-fact.hub-is-row .hh-dot svg { width: 16px; height: 16px; }
.theme-wise .hh-fact.hub-is-row.warn .hh-dot { background: #fdf0d5; color: #8a5a00; }
.theme-wise .hh-fact.hub-is-row.bad .hh-dot { background: var(--bad-soft); color: var(--bad); }
.theme-wise .hh-fact.hub-is-row > div { grid-template-columns: minmax(0, 1fr); }
.theme-wise .hh-fact.hub-is-row small { font-size: 12px; }
.theme-wise .hh-fact.hub-is-row p { margin-top: 1px; font-size: 13.5px; color: var(--text); }
.hub-is-more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hub-is-more:hover { color: var(--text); text-decoration: underline; }

/* ---- support: the help centre, the chat, the live support console (renderSupport, supChat, renderLiveChat) ---- */
.sup { display: grid; gap: 16px; max-width: 980px; }
.sup-two { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; max-width: none; }
@media (max-width: 960px) { .sup-two { grid-template-columns: minmax(0, 1fr); } }
.sup-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 26px;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--lime-soft) 55%, #fff) 0%, #fff 60%); }
.sup-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sup-hero p { margin: 0; color: var(--text-2); font-size: 14px; }
.sup-status { display: grid; gap: 4px; justify-items: end; font-size: 13px; color: var(--text-2); }
@media (max-width: 700px) { .sup-status { justify-items: start; } }
.sup-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--text-2); }
.sup-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.sup-live.on { color: var(--forest); } .sup-live.on i { background: #3fb950; box-shadow: 0 0 0 3px #3fb95026; }
.sup-step { padding: 18px 20px 20px; }
.sup-step > header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sup-step > header h3 { margin: 0; font-size: 15px; font-weight: 650; }
.sup-n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; }
.sup-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sup-topic, .sup-way { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 0; border-radius: 14px; background: var(--soft); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background .15s; }
.sup-topic:hover, .sup-way:hover:not(:disabled) { background: var(--fill); }
.sup-topic.on, .sup-way.on { background: #fff; box-shadow: inset 0 0 0 2px var(--forest); }
.sup-topic > span:last-child, .sup-way > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sup-topic b, .sup-way b { font-size: 14px; font-weight: 650; }
.sup-topic small, .sup-way small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.sup-way:disabled { cursor: not-allowed; opacity: .6; }
.sup-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sup-ref { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sup-ref:hover { border-color: color-mix(in srgb, var(--text) 20%, var(--line)); }
.sup-ref.on { border-color: var(--forest); background: var(--lime-soft); color: var(--forest); font-weight: 600; }
.sup-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.sup-form { display: grid; gap: 12px; }
.sup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sup-tb td small { display: block; margin-top: 1px; font-size: 12px; }
.sup-tb tr.unread b { font-weight: 750; }
.sup-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); vertical-align: middle; }
/* the chat */
.sup-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 520px; }
.sup-ticket { min-height: 0; }
.sup-ch-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sup-ch-head > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sup-ch-head b { font-size: 14.5px; font-weight: 650; } .sup-ch-head small { color: var(--text-3); font-size: 12.5px; }
.sup-queue { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--soft); flex-wrap: wrap; }
.sup-q-pos { display: grid; justify-items: center; gap: 2px; min-width: 84px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sup-q-pos small { color: var(--text-3); font-size: 11.5px; } .sup-q-pos b { font-size: 30px; font-weight: 750; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.sup-q-tx { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.sup-q-tx b { font-size: 15px; font-weight: 650; } .sup-q-tx p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.sup-q-bar { position: relative; height: 4px; margin-top: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.sup-q-bar i { position: absolute; top: 0; bottom: 0; width: 30%; border-radius: 99px; background: var(--lime-2, var(--lime)); animation: sup-q 1.6s ease-in-out infinite; }
@keyframes sup-q { 0% { left: -30%; } 100% { left: 100%; } }
.sup-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; max-height: 56vh; min-height: 220px; }
.sup-ticket .sup-thread { max-height: none; }
.sup-msg { display: grid; gap: 3px; max-width: 78%; }
.sup-msg.me { align-self: flex-end; justify-items: end; } .sup-msg.them { align-self: flex-start; }
.sup-bub { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sup-msg.me .sup-bub { background: var(--forest); color: #fff; border-bottom-right-radius: 6px; }
.sup-msg.them .sup-bub { background: var(--soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.sup-msg small { color: var(--text-3); font-size: 11.5px; }
.sup-sys { display: flex; justify-content: center; } .sup-sys span { padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--text-3); font-size: 12px; }
.sup-typing { display: flex; gap: 4px; padding: 0 18px 10px; } .sup-typing[hidden] { display: none; }
.sup-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: sup-dot 1.2s infinite; }
.sup-typing i:nth-child(2) { animation-delay: .15s; } .sup-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sup-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sup-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.sup-compose[hidden] { display: none; }
.sup-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; }
.sup-compose-big { display: grid; }
.sup-compose-big select { width: auto; margin-left: auto; }
.sup-done { display: grid; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); }
.sup-done[hidden] { display: none; }
.sup-done p { margin: 0; }
.sup-stars { display: flex; gap: 4px; }
.sup-stars button { border: 0; background: none; padding: 0 2px; font-size: 26px; line-height: 1; color: var(--fill-2, #ddd); cursor: pointer; }
.sup-stars button.on, .sup-stars button:hover { color: #e5a50a; }
/* who is asking (admin) */
.sup-cx { display: grid; gap: 8px; align-content: start; padding: 16px; }
.sup-cx > header { display: flex; align-items: center; gap: 10px; }
.sup-cx > header div { display: grid; min-width: 0; } .sup-cx > header b { font-size: 14px; } .sup-cx > header small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.sup-cx h4 { margin: 8px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.sup-cx-row { display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--soft); text-decoration: none; }
.theme-wise .sup-cx-row, .theme-wise .sup-cx-row:hover { color: var(--text); text-decoration: none; }
.sup-cx-row span { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sup-cx-row small { color: var(--text-3); font-size: 12px; }
.sup-cx p { margin: 0; font-size: 13px; }
/* the console */
.sup-console { display: grid; gap: 16px; }
.lc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .lc-grid { grid-template-columns: 280px minmax(0, 1fr); } .lc-cx { grid-column: 1 / -1; } }
@media (max-width: 760px) { .lc-grid { grid-template-columns: minmax(0, 1fr); } }
.lc-side { display: grid; gap: 6px; align-content: start; padding: 14px; max-height: 72vh; overflow-y: auto; }
.lc-side h4 { display: flex; align-items: center; gap: 8px; margin: 6px 4px 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.lc-count, .nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--fill); color: var(--text-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.nav-count { margin-left: auto; background: var(--forest); color: #fff; }
.lc-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; }
.lc-item:hover { background: var(--soft); } .lc-item.on { background: var(--lime-soft); }
.lc-item > div:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lc-item b { font-size: 13.5px; font-weight: 650; } .lc-item small { color: var(--text-3); font-size: 12px; }
.lc-item p { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-pos { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fdf0d5; color: #8a5a00; font-size: 12px; font-weight: 700; }
.lc-right { display: grid; justify-items: end; gap: 6px; flex: none; } .lc-right small { font-variant-numeric: tabular-nums; }
.lc-empty { margin: 4px 6px 8px; font-size: 13px; }
.lc-chat { min-height: 560px; }
.lc-blank { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; padding: 40px 24px; text-align: center; }
.lc-blank b { font-size: 16px; } .lc-blank p { margin: 0; max-width: 360px; }
.lc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.lc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lc-switch span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--fill-2, #ddd); transition: background .15s; }
.lc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lc-switch input:checked + span { background: #3fb950; } .lc-switch input:checked + span::after { transform: translateX(16px); }
.lc-switch input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.lc-switch b { font-size: 18px; font-weight: 700; }
/* the floating note on every page */
.sup-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100vw - 40px));
  padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -10px rgba(24, 32, 16, .3); }
.sup-float[hidden] { display: none; }
.theme-wise .sup-float, .theme-wise .sup-float:hover { color: var(--text); text-decoration: none; }
.sup-float-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; }
.sup-float > span:last-child { display: grid; gap: 1px; min-width: 0; } .sup-float b { font-size: 13.5px; font-weight: 650; } .sup-float small { color: var(--text-2); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .sup-q-bar i, .sup-typing i { animation: none; } }
/* the support home (renderSupportHome) */
.theme-wise .sh-parts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.theme-wise .sh-parts .hh-fact > div { grid-template-columns: minmax(0, 1fr); }
.sh-list { display: grid; gap: 6px; }
.sh-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: var(--soft); text-decoration: none; }
.theme-wise .sh-row, .theme-wise .sh-row:hover { color: var(--text); text-decoration: none; }
a.sh-row:hover { background: var(--fill); }
.sh-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sh-row b { font-size: 13.5px; font-weight: 650; } .sh-row small { color: var(--text-3); font-size: 12px; }
.sh-time { font-variant-numeric: tabular-nums; }
/* support: the close buttons and the archive (supTicketView, renderSupportArchive) */
.theme-wise .btn.sup-close { color: var(--text-2); }
.theme-wise .btn.sup-close:hover { color: var(--bad); background: var(--bad-soft); }
.sup-ch-head .badge + .btn { margin-left: 4px; }
.ar-title { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.theme-wise .ar-title, .theme-wise .ar-title:hover { color: var(--text); text-decoration: none; }
.ar-title > span:last-child { display: grid; min-width: 0; } .ar-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ar-kind { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--soft); color: var(--text-2); }
.ar-kind svg.ic { width: 15px; height: 15px; }
.fin .toolbar input[type="search"] { width: min(320px, 100%); height: 34px; }
/* support lists in a card of their own (the archive, open tickets): like the orders table */
.sup-card { padding: 0; overflow: hidden; }
.sup-list { width: 100%; border-collapse: collapse; }
.theme-wise .sup-list th { background: var(--soft); padding: 10px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3);
  text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.theme-wise .sup-list td { padding: 12px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); vertical-align: middle; }
.sup-list th:first-child, .sup-list td:first-child { padding-left: 20px; }
.sup-list th:last-child, .sup-list td:last-child { padding-right: 20px; }
.theme-wise .sup-list .num { text-align: right; }
.sup-list tbody tr:last-child td { border-bottom: 0; }
.sup-list tbody tr { transition: background .1s; }
.sup-list tbody tr:hover { background: var(--soft); }
.theme-wise .sup-list td a:not(.ar-title) { color: var(--text); font-weight: 500; text-decoration: none; }
.theme-wise .sup-list td a:not(.ar-title):hover { text-decoration: underline; }
.theme-wise .sup-list td:first-child { width: 42%; }
.sup-list .ar-title b { font-size: 14px; font-weight: 650; color: var(--text); max-width: 380px; }
.sup-list .ar-title small { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.sup-list tr:hover .ar-kind { background: #fff; }
@media (max-width: 760px) { .sup-list th:nth-child(3), .sup-list td:nth-child(3), .sup-list th:nth-child(4), .sup-list td:nth-child(4) { display: none; } }
@media (max-width: 560px) { .sup-list th:nth-child(2), .sup-list td:nth-child(2) { display: none; } .theme-wise .sup-list td:first-child { width: auto; } .sup-list .ar-title b { max-width: 190px; } .theme-wise .sup-list td.num { white-space: normal; font-size: 12.5px; } }
.sup-tools { display: flex; align-items: center; gap: 12px; }

/* ---- the team: roles and permissions (renderTeam) ---- */
.tm-roles { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .tm-roles { grid-template-columns: minmax(0, 1fr); } }
.tm-list { padding: 10px; display: grid; gap: 2px; }
.tm-list-head { display: grid; gap: 2px; padding: 8px 10px 10px; } .tm-list-head b { font-size: 14px; } .tm-list-head small { color: var(--text-3); font-size: 12px; }
#tmRoleList { display: grid; gap: 2px; }
.tm-role { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; user-select: none; }
.tm-role:hover { background: var(--soft); } .tm-role.on { background: var(--lime-soft); } .tm-role.drag { opacity: .5; }
.tm-role > span:nth-child(3), .tm-owner > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tm-role b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm-role small { color: var(--text-3); font-size: 12px; }
.tm-owner { cursor: default; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; padding-bottom: 10px; }
.tm-owner:hover { background: none; }
.tm-crown { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fdf0d5; color: #8a5a00; flex: none; }
.tm-crown svg.ic { width: 13px; height: 13px; }
.tm-grip { color: var(--text-3); cursor: grab; display: grid; place-items: center; width: 16px; } .tm-grip.off { cursor: default; opacity: .5; }
.tm-grip svg.ic { width: 14px; height: 14px; }
.tm-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--rc, var(--text-3)); }
.tm-dot.big { width: 18px; height: 18px; }
.tm-move { display: none; gap: 2px; } .tm-role:hover .tm-move, .tm-role:focus-within .tm-move { display: flex; }
.tm-move button { border: 0; background: none; padding: 2px; color: var(--text-3); cursor: pointer; display: grid; } .tm-move button:hover { color: var(--text); }
.tm-move svg.ic { width: 16px; height: 16px; }
.tm-edit { padding: 0; overflow: hidden; }
.tm-edit-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.tm-edit-head h3 { margin: 0; font-size: 17px; font-weight: 700; } .tm-edit-head small { color: var(--text-3); font-size: 12.5px; }
.tm-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tm-tabs button { border: 0; background: none; padding: 12px 8px 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; cursor: pointer; }
.tm-tabs button.on { color: var(--text); border-bottom-color: var(--forest); }
.tm-body { display: grid; gap: 14px; padding: 18px 20px 22px; }
.tm-field { display: grid; gap: 8px; } .tm-field > span { font-size: 13px; font-weight: 600; }
.tm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-sw { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--rc); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); position: relative; }
.tm-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rc); }
.tm-sw.custom { display: grid; place-items: center; background: conic-gradient(#e5484d, #e5a50a, #3fb950, #2f7fc1, #8c5bc0, #e5484d); overflow: hidden; }
.tm-sw.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.tm-preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.tm-preview > div { display: grid; gap: 4px; justify-items: start; } .tm-rc-text { color: var(--rc); font-size: 14px; }
.tm-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.tm-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc, var(--text-3)); }
.tm-pill.owner i { background: #e5a50a; }
.tm-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tm-danger > div { display: grid; gap: 2px; } .tm-danger b { font-size: 13.5px; } .tm-danger small { color: var(--text-3); font-size: 12.5px; }
.tm-admin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.tm-admin.on { background: color-mix(in srgb, var(--bad-soft) 60%, var(--soft)); }
.tm-admin > div { display: grid; gap: 3px; } .tm-admin b { font-size: 14px; } .tm-admin small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.tm-q { height: 36px; }
.tm-cat { display: grid; } .tm-cat > header { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.tm-cat > header b { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); } .tm-cat > header small { color: var(--text-3); font-size: 12px; }
.tm-cat > header .link-btn { margin-left: auto; font-size: 12.5px; }
.tm-cat.muted-all .tm-perm { opacity: .55; }
.tm-perm { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tm-perm > div { flex: 1; min-width: 0; display: grid; gap: 2px; } .tm-perm b { font-size: 13.5px; font-weight: 600; } .tm-perm small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.tm-lock { color: var(--text-3); display: grid; } .tm-lock svg.ic { width: 14px; height: 14px; }
.tm-sw-x b { display: none; }
.lc-switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.tm-save { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px 10px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(24, 32, 16, .35); }
.tm-save[hidden] { display: none; } .tm-save span { flex: 1; font-size: 13.5px; font-weight: 600; }
.theme-wise .tm-save .btn.ghost { color: var(--bg); }
.tm-addrow { display: flex; gap: 8px; } .tm-addrow select { flex: 1; }
.tm-people { padding: 6px 0; margin-bottom: 16px; }
.tm-ph { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px 8px; } .tm-ph b { font-size: 14.5px; } .tm-ph small { color: var(--text-3); font-size: 12.5px; }
.tm-person { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); }
.tm-body .tm-person { padding: 10px 0; }
.tm-person.off { opacity: .6; }
.tm-person > span:nth-child(2) { min-width: 180px; display: grid; gap: 1px; } .tm-person b { font-size: 13.5px; } .tm-person small { color: var(--text-3); font-size: 12.5px; }
.tm-pills { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tm-seen { min-width: 90px; text-align: right; }
.tm-empty { padding: 6px 20px 14px; }
@media (max-width: 700px) { .tm-person { flex-wrap: wrap; } .tm-seen { display: none; } }
/* one person: roles and personal allow / deny */
.tm-pm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .tm-pm { grid-template-columns: minmax(0, 1fr); } }
.tm-pm-roles { display: grid; gap: 8px; align-content: start; } .tm-pm-roles.flat { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tm-pm-roles > b, .tm-pm-perms > b { font-size: 13.5px; }
.tm-pm-acts { display: grid; gap: 6px; margin-top: 8px; }
.tm-pm-perms { display: grid; gap: 8px; min-width: 0; } .tm-pm-perms > small { font-size: 12.5px; } .tm-pm-perms em { font-style: normal; font-weight: 600; }
.tm-pm-list { max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.tm-pm-list h5 { margin: 12px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tm-ov { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tm-ov > div:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; } .tm-ov b { font-size: 13px; font-weight: 600; } .tm-ov small { color: var(--text-3); font-size: 12px; }
.tm-eff { width: 8px; height: 8px; border-radius: 50%; background: var(--fill-2, #ddd); flex: none; } .tm-eff.on { background: #3fb950; }
.tm-tri { display: inline-flex; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.tm-tri button { width: 32px; height: 28px; border: 0; background: #fff; color: var(--text-3); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tm-tri button + button { border-left: 1px solid var(--line); }
.tm-tri button.on.deny { background: var(--bad-soft); color: var(--bad); } .tm-tri button.on.inh { background: var(--soft); color: var(--text); } .tm-tri button.on.allow { background: var(--lime-soft); color: var(--forest); }
.tm-tri button:disabled { cursor: not-allowed; opacity: .6; }
.tm-pass { display: flex; gap: 8px; } .tm-pass input { flex: 1; font-family: var(--mono, monospace); }
.hub-two.solo { grid-template-columns: minmax(0, 1fr); }

/* the roles list, compact (renderTeam) */
.tm-list { padding: 8px; gap: 1px; align-content: start; }
.tm-sec { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px; }
.tm-sec:first-child { padding-top: 6px; }
.tm-sec > span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.tm-sec em { font-style: normal; font-weight: 600; margin-left: 4px; }
.tm-sec-add { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-3); cursor: pointer; }
.tm-sec-add:hover { background: var(--fill); color: var(--text); }
.tm-sec-add svg.ic { width: 15px; height: 15px; }
.tm-list .tm-role { min-height: 38px; padding: 6px 10px; gap: 10px; border-radius: 9px; }
.tm-list .tm-role > b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-list .tm-role.on > b { font-weight: 700; }
.tm-list .tm-role[draggable="true"] { cursor: grab; }
.tm-list .tm-owner { border: 0; border-radius: 9px; margin: 0; padding-bottom: 6px; cursor: default; }
.tm-list .tm-crown { width: 18px; height: 18px; } .tm-list .tm-crown svg.ic { width: 11px; height: 11px; }
.tm-n { min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: var(--fill); color: var(--text-2); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-role.on .tm-n { background: #fff; }
.tm-tag { font-size: 11px; font-weight: 600; color: var(--text-3); }
.tm-flag { display: grid; color: var(--text-3); } .tm-flag svg.ic { width: 13px; height: 13px; }
.tm-list .tm-move { order: 0; }
.tm-list-note { margin: 10px 10px 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; line-height: 1.5; }
.tm-list .tm-role > span { flex: none; min-width: 0; }
.tm-list .tm-role > .tm-n { display: grid; flex: none; }
.tm-list .tm-role > .tm-move { display: none; gap: 0; }
.tm-list .tm-role:hover > .tm-move, .tm-list .tm-role:focus-within > .tm-move { display: flex; }
.tm-list .tm-move button { padding: 1px; }
.tm-list .tm-move svg.ic { width: 15px; height: 15px; }
.tm-list .tm-role > .tm-flag { display: grid; }
.tm-list .tm-role > .tm-crown { display: grid; }
.tm-pm-gap { margin-top: 10px; }
.tm-pm-seg { justify-self: start; }
.mem-perm-sum { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.mem-perm-sum svg.ic { width: 14px; height: 14px; color: var(--forest); }
#memRolesBody .tm-pills { margin-bottom: 4px; }
#memRolesBody .btn { margin-top: 10px; }
.tm-body .tm-person > span:nth-child(2) { flex: 1; }
/* three-way permissions and one person's page (renderTeam, renderAccess) */
.tm-perm .tm-tri { margin-left: 4px; }
.tm-cat > header .tm-bulk { margin-left: auto; display: flex; gap: 12px; }
.tm-cat > header .tm-bulk .link-btn { font-size: 12.5px; }
.tm-def { color: var(--text-3); }
.tm-perm > .tm-eff { margin-right: 2px; }
.tm-acc-sum { font-size: 13px; color: var(--text-2); }
.tm-person-side { padding: 12px; }
.tm-who { display: flex; align-items: center; gap: 12px; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tm-who .avatar-box, .tm-who .mem-av, .tm-who > :first-child { flex: none; }
.tm-who > div { display: grid; gap: 3px; min-width: 0; justify-items: start; } .tm-who b { font-size: 15px; } .tm-who small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tm-rolebox { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.tm-rolebox:hover { background: var(--soft); } .tm-rolebox.on { background: var(--lime-soft); } .tm-rolebox.fixed { cursor: default; background: var(--soft); }
.tm-rolebox input { width: 16px; height: 16px; flex: none; accent-color: var(--forest); }
.tm-rolebox b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-side-note { margin: 4px 10px 8px; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.tm-who .mem-av { width: 44px; height: 44px; font-size: 15px; }
.tm-perm > .tm-tri, .tm-ov > .tm-tri { flex: none; display: inline-flex; min-width: 0; gap: 0; }
.tm-perm > .tm-eff { flex: none; }
.tm-perm > div:not(.tm-tri) { flex: 1; }

/* ===================== dashID (member pages) ===================== */
.id-copies { display: grid; gap: 8px; }
.id-copies2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.id-copy { display: grid; gap: 4px; min-width: 0; }
.id-copy small { color: var(--text-3); font-size: 12.5px; }
.id-copy span { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 12px; border-radius: var(--r-sm); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.id-copy code { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-copy .icon-btn { flex: none; }
.id-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.id-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.id-steps li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-weight: 650; font-size: 13px; }
.id-steps li.done > span { background: var(--lime-soft); color: var(--forest); }
.id-steps li > span svg.ic { width: 15px; height: 15px; }
.id-steps b { font-size: 14px; } .id-steps p { margin: 4px 0 8px; color: var(--text-3); font-size: 13px; }
.id-code { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.id-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.id-code-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.id-code-bar .seg button { white-space: nowrap; }
.id-pre { position: relative; min-width: 0; }
.id-pre pre { margin: 0; padding: 16px 48px 16px 16px; border-radius: var(--r-sm); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; max-height: 420px; }
.id-pre .icon-btn { position: absolute; top: 8px; right: 8px; background: #fff; }
.id-chart .vc-col i { background: var(--lime-2); }
.id-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.id-app { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.id-app > header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.id-app > header > div:nth-child(2) { flex: 1; min-width: 0; }
.id-app h3 { margin: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-app header small { color: var(--text-3); font-size: 12.5px; }
.id-app-acts { display: flex; gap: 6px; align-items: center; }
.id-app .tx-dl dd { min-width: 0; overflow-wrap: anywhere; } .id-app .tx-dl code { font-size: 12px; }
.id-empty { padding: 40px 20px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.id-empty > svg.ic { width: 28px; height: 28px; color: var(--text-3); }
.id-empty h3 { margin: 4px 0 0; font-size: 16px; } .id-empty p { margin: 0 0 8px; color: var(--text-3); max-width: 420px; }
.id-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.id-secret-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); }
.id-secret-row div { display: grid; gap: 2px; } .id-secret-row small { color: var(--text-3); font-size: 12.5px; }
.id-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); color: var(--forest); font-weight: 650; }
.id-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.id-who > div { display: grid; min-width: 0; } .id-who b, .id-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-who small { color: var(--text-3); font-size: 12.5px; }
.id-users tr.id-row { cursor: pointer; } .id-users tr.id-row:hover td { background: var(--soft); }
.id-users .badge + .badge { margin-left: 4px; }
.id-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 4px; }
.id-user-head { display: flex; align-items: center; gap: 16px; padding: 20px; }
.id-user-head .id-av { width: 56px; height: 56px; font-size: 22px; }
.id-user-head h2 { margin: 0; font-size: 19px; } .id-user-head p { margin: 2px 0 8px; color: var(--text-3); }
.id-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.id-bad { color: var(--bad); font-weight: 550; }
.mv-act.danger b { color: var(--bad); }
.id-set .check { align-items: flex-start; }
.id-set .check b { font-weight: 600; }
.id-provs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.id-prov { display: grid; gap: 10px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--soft); min-width: 0; }
.id-prov.on { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.id-prov-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.id-prov .rec-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.id-console { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.id-console svg.ic { width: 13px; height: 13px; }
.pay-set .rec-grid.id-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.id-brand { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.id-preview { position: sticky; top: 16px; display: grid; gap: 8px; }
.id-pv { padding: 22px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.id-pv-box { display: grid; justify-items: center; gap: 8px; padding: 22px 18px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(14, 15, 12, .07); text-align: center; }
.id-pv-box img { max-height: 32px; max-width: 140px; object-fit: contain; }
.id-pv-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #2f6fde; color: #fff; font-weight: 700; }
.id-pv-box b { font-size: 16px; } .id-pv-box small { color: var(--text-3); font-size: 12px; margin-top: -6px; }
.id-pv-in { width: 100%; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.id-pv-btn { width: 100%; padding: 7px; border-radius: 8px; background: #2f6fde; color: #fff; font-weight: 600; font-size: 13px; }
.id-pv-box em { font-style: normal; font-size: 11px; color: var(--text-3); }
.id-color { display: flex; gap: 8px; align-items: center; }
.id-color input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 10px; border: 0; background: var(--fill); cursor: pointer; flex: none; }
.id-color input[type=text] { flex: 1; min-width: 0; }
.id-logo-row { display: flex; gap: 14px; align-items: center; }
.id-logo-row > div:last-child { display: grid; gap: 4px; }
.id-logo-box { width: 64px; height: 64px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.id-logo-box img { max-width: 56px; max-height: 56px; object-fit: contain; }
.id-logo-acts { display: flex; gap: 8px; margin-top: 4px; }
.id-logo-acts label.btn { cursor: pointer; }
@media (max-width: 900px) {
  .id-steps, .id-apps, .id-provs, .id-copies2, .id-kinds { grid-template-columns: minmax(0, 1fr); }
  .id-brand { grid-template-columns: minmax(0, 1fr); } .id-preview { position: static; }
  .pay-set .rec-grid.id-grid3 { grid-template-columns: minmax(0, 1fr); }
}
.theme-wise .id-copy span code { background: none; box-shadow: none; border: 0; padding: 0; border-radius: 0; }
.pay-set .rec-grid.id-grid3 { align-items: start; }
.id-prov input { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.id-prov label { font-weight: 500; }
.id-info dd { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.id-info dd code { overflow: hidden; text-overflow: ellipsis; }
.fin-ctl #iuQ, .fin-ctl #ilQ { width: 240px; }
.fin-ctl #iuSort { width: auto; }
@media (max-width: 700px) { .fin-ctl #iuQ, .fin-ctl #ilQ { width: 100%; } }
.fin-ctl #iuQ, .fin-ctl #ilQ, .fin-ctl #iuSort { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.ce-nav a[hidden] { display: none; }

/* the store and catalogue cards: quiet limit tiles under the price, two buttons of one size */
.theme-wise .st-limits, .theme-wise .ct-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.theme-wise .st-limits span, .theme-wise .ct-limits span { min-height: 0; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.theme-wise .st-limits small, .theme-wise .ct-limits small { font-size: 11.5px; }
.theme-wise .st-limits b, .theme-wise .ct-limits b { font-size: 13.5px; font-weight: 650; }
.theme-wise .st-item h3 { font-size: 16px; font-weight: 650; }
.theme-wise .st-item .st-price b { font-size: 22px; font-weight: 700; }
.theme-wise .st-desc, .theme-wise .st-hi { font-size: 13.5px; }
.theme-wise .st-acts { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
.theme-wise .st-acts .btn, .theme-wise .st-item > .btn.wide { height: 40px; min-height: 40px; padding: 0 12px; font-size: 13.5px; font-weight: 600; justify-content: center; width: 100%; white-space: nowrap; }
.theme-wise .st-acts .btn svg.ic { width: 16px; height: 16px; }
.theme-wise .st-acts .btn:only-child { grid-column: 1 / -1; }
/* tighter rhythm: type, name and price read as one block, then the description */
.theme-wise .st-item { gap: 12px; }
.theme-wise .st-item h3 { line-height: 1.3; margin-top: 2px; }
.theme-wise .st-item .st-price { margin-top: -8px; line-height: 1.2; }
.theme-wise .st-item .st-price b { line-height: 1.2; }
.theme-wise .st-item .st-desc { margin-top: -2px; }
/* dashID sign-up form builder and roles */
.id-form-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.id-fields { display: grid; gap: 8px; }
.id-field { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.id-field-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--fill); }
.id-field-ic svg.ic { width: 17px; height: 17px; }
.id-field-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.id-field-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-field-main small { color: var(--text-3); font-size: 12.5px; } .id-field-main code { font-size: 12px; }
.id-field-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.id-field-acts { display: flex; gap: 2px; flex: none; }
.id-field-acts .icon-btn:disabled { opacity: .3; }
.id-presets { display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
.id-presets > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 9px; border: 0; border-radius: 999px; background: var(--fill);
  color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; }
.chip-btn:hover { background: var(--fill-2); color: var(--text); }
.chip-btn svg.ic { width: 14px; height: 14px; }
.id-role-pick { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.id-role-pick code { font-size: 12px; }
.id-pv-form { justify-items: stretch; text-align: left; }
.id-pv-form > b { text-align: center; margin-bottom: 4px; }
.id-pv-f { display: grid; gap: 4px; } .id-pv-f em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-2); }
.id-pv-f i { display: block; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); } .id-pv-f i.tall { height: 42px; }
.id-pv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.id-pv-chk { display: flex; gap: 6px; align-items: flex-start; } .id-pv-chk i { width: 13px; height: 13px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); margin-top: 1px; }
.id-pv-chk em { font-style: normal; font-size: 11px; color: var(--text-2); line-height: 1.35; }
.id-pv-form .id-pv-btn { margin-top: 4px; text-align: center; }
.id-unsaved { display: flex; align-items: center; gap: 6px; } .id-unsaved svg.ic { width: 14px; height: 14px; }
.id-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .id-acts { grid-template-columns: minmax(0, 1fr); } }
.theme-wise .rec-grid.id-form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.theme-wise .rec-grid.id-form2 > * { min-width: 0; }
.theme-wise .rec-grid.id-form2 .id-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .theme-wise .rec-grid.id-form2 { grid-template-columns: minmax(0, 1fr); } }
/* the hub's recent actions: the panel's activity rows (icon tile, what happened, who and when) */
.hub-acts li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hub-acts li > div { display: grid; min-width: 0; }
.hub-acts b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-acts small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-x { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
/* active services: search, type filter and the count on one even line (all 40 px high) */
.theme-wise .sub-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.theme-wise .sub-bar .search { flex: 1 1 260px; max-width: 420px; min-width: 0; }
.theme-wise .sub-bar .search input { width: 100%; height: 40px; }
.theme-wise .sub-bar .seg { height: 40px; align-items: center; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.theme-wise .sub-bar .seg button { height: 34px; padding: 0 14px; white-space: nowrap; }
.theme-wise .sub-bar .count { margin-left: auto; white-space: nowrap; }
@media (max-width: 700px) { .theme-wise .sub-bar .search { flex-basis: 100%; max-width: none; } .theme-wise .sub-bar .count { margin-left: 0; } }
.theme-wise .toolbar.sub-bar .seg { margin: 0; }
/* DNS record editor: the name on its own line with the zone after it in full; type and TTL side by side */
.theme-wise .rec-grid.rec-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.theme-wise .suffix-input.rec-name input { flex: 1; min-width: 60px; text-align: right; }
.theme-wise .suffix-input.rec-name span { flex: none; max-width: 70%; padding: 0 14px 0 2px; background: none; border: 0; color: var(--text-3); font-family: var(--mono); font-size: 13px; }
.theme-wise .suffix-input.rec-name input { padding-right: 1px; }
.theme-wise .suffix-input.rec-name span { padding-left: 0; font-family: inherit; font-size: 14.5px; font-weight: 500; }
/* credit history: the table reads quietly, like the other finance tables */
.theme-wise .cr-tx td { padding-top: 11px; padding-bottom: 11px; font-size: 13.5px; }
.theme-wise .cr-tx th { font-size: 12px; font-weight: 600; color: var(--text-3); padding-top: 10px; padding-bottom: 10px; }
.theme-wise .cr-tx td { vertical-align: middle; }
.theme-wise .cr-tx td b { font-weight: 550; font-size: 13.5px; }
.theme-wise .cr-tx td a { font-weight: 500; }
.theme-wise .cr-tx .cr-note { font-size: 12px; margin-top: 1px; }
.theme-wise .cr-tx .cr-in, .theme-wise .cr-tx .cr-out { font-weight: 550; }
/* a month picker in the panel's look: previous, the month by name, next (no browser date box) */
.mstep { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 3px; border-radius: 999px; background: var(--fill); }
.mstep span { min-width: 120px; text-align: center; font-size: 13.5px; font-weight: 600; white-space: nowrap; padding: 0 4px; }
.mstep .icon-btn { width: 30px; height: 30px; border-radius: 50%; background: none; }
.mstep .icon-btn:hover:not(:disabled) { background: #fff; }
.mstep .icon-btn:disabled { opacity: .3; cursor: default; }
.mstep .icon-btn svg.ic { width: 16px; height: 16px; }
/* your account with no services yet: one notice and the way to the catalogue */
.own-empty .btn { margin-top: 4px; }
.own-store-note { margin: 0 0 14px; font-size: 13.5px; }
.theme-wise .own-hero { margin-bottom: 16px; padding: 28px; }
.theme-wise .own-hero h2 { font-size: 22px; }
.own-hero-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.own-hero-acts .muted { font-size: 13px; }
.theme-wise .own-pick { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.theme-wise .own-pick b { font-size: 16px; }
.theme-wise .own-pick b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.theme-wise .own-hero .hh-text > p { max-width: none; }
.theme-wise .own-hero .hh-text > p { text-wrap: pretty; }
/* the welcome sentences fill their column and wrap into even lines (no short last line) */
.theme-wise .home-hero #hubLead, .theme-wise .own-hero .hh-text > p { max-width: none; text-wrap: balance; }
/* Durum (the hub's left column, above the recent actions): a word for how things stand, the issues as rows */
.hub-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hub-head .hub-pill { flex: none; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.hub-head .hub-pill.ok { background: var(--lime-soft); color: var(--forest); }
.hub-head .hub-pill.warn { background: var(--warn-soft); color: var(--warn); }
.hub-head .hub-pill.bad { background: var(--bad-soft); color: var(--bad); }
.hub-durum .hub-head p { text-wrap: pretty; }
.hub-st li { padding: 0 !important; }
.hub-st-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 10px 0; color: var(--text); text-decoration: none !important; }
.hub-st li:first-child .hub-st-row { padding-top: 0; }
.hub-st-row > div { display: grid; min-width: 0; }
.hub-st-row b { font-size: 13.5px; font-weight: 600; }
.hub-st-row small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-st-row > svg.ic { width: 15px; height: 15px; color: var(--text-3); }
a.hub-st-row:hover b { color: var(--forest); }
.hub-st-row.calm { grid-template-columns: 32px minmax(0, 1fr); }
.hub-durum .hub-is-more { justify-self: start; border: 0; background: none; padding: 6px 0 0; font: 600 13px var(--sans); color: var(--text-2); cursor: pointer; }
.hub-durum .hub-is-more:hover { color: var(--forest); }
.theme-wise .hub-st-row, .theme-wise .hub-st-row b { color: var(--text); } .theme-wise a.hub-st-row:hover b { color: var(--forest); }
/* a stat strip inside a card is part of the card: no second rounded border, just a line under it */
.theme-wise .card > div > .acc-stats, .theme-wise .card > .acc-stats { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.theme-wise .acc-stats + .list-row { border-top: 0; }

/* ===================== web sitesi (#website, #webpages, #webedit) ===================== */
.ws-tabs a { display: inline-flex; align-items: center; }
.ws-reps { display: grid; gap: 8px; }
.ws-reps:empty { display: none; }
.ws-rep { display: grid; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: var(--soft); }
.ws-rep input, .ws-rep select, .ws-rep textarea { width: 100%; min-width: 0; }
.ws-feat { grid-template-columns: 40px 140px minmax(0, 1fr) minmax(0, 1.6fr) auto; }
.ws-faq { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.ws-faq > div { display: grid; gap: 6px; }
.ws-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.ws-add { justify-self: start; }
.ws-sum { display: grid; padding: 4px 0; margin-top: 6px; }
.ws-sum a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; color: var(--text); text-decoration: none; font-size: var(--fs-xs); }
.ws-sum a + a { border-top: 1px solid var(--line); }
.ws-sum a:hover { background: var(--soft); }
.ws-sum span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ws-sum svg.ic { width: 16px; height: 16px; }
.ws-sum small { color: var(--text-3); font-weight: 500; }
.ws-slug { display: flex; align-items: center; border-radius: 10px; background: var(--fill); }
.ws-slug i { position: static; transform: none; padding-left: 14px; white-space: nowrap; }
.ws-slug input { padding-left: 2px !important; padding-right: 14px !important; background: transparent !important; }
.ws-ed { display: grid; }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ws-bar .seg { margin: 0; }
.ws-tools { display: flex; flex-wrap: wrap; gap: 2px; }
.ws-tools.off { opacity: .35; pointer-events: none; }
.ws-tb { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 600 var(--fs-xs) var(--sans); cursor: pointer; }
.ws-tb:hover { background: var(--fill); color: var(--text); }
.ws-tb svg.ic { width: 17px; height: 17px; }
.theme-wise .ws-body { display: block; width: 100%; min-height: 460px; padding: 18px 20px; border: 0; border-radius: 0; background: #fff; font-size: var(--fs-xs); line-height: 1.7; resize: vertical; box-shadow: none; }
.ws-body[hidden], .ws-prev[hidden] { display: none !important; }
.ws-prev { min-height: 460px; padding: 18px 24px; font-size: var(--fs-ui); line-height: 1.7; overflow-wrap: anywhere; }
.ws-prev h2 { font-size: 21px; margin: 28px 0 8px; } .ws-prev h3 { font-size: var(--fs-md); margin: 22px 0 6px; }
.ws-prev > :first-child { margin-top: 0; }
.ws-prev img { max-width: 100%; border-radius: 12px; }
.ws-prev blockquote { margin: 0 0 14px; padding: 10px 16px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--lime-2); }
.ws-prev pre { padding: 12px 14px; border-radius: 12px; background: var(--soft); overflow-x: auto; }
.ws-prev code { font-family: var(--mono); font-size: .9em; }
.ws-help { margin: 0; padding: 10px 20px 14px; border-top: 1px solid var(--line); }
.ws-pub { display: grid; gap: 12px; padding: 16px; }
.ws-pub .seg { margin: 0; justify-self: start; }
.ws-pub .hint { margin: -4px 0 0; }
.ws-pub > label:not(.check) { display: grid; gap: 5px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.ws-cover { display: grid; gap: 8px; }
.ws-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.ws-cover-acts { display: flex; gap: 6px; }
.login-home { position: absolute; top: 20px; left: 24px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.login-home:hover { color: var(--text); }
@media (max-width: 760px) {
  .ws-feat { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ws-feat [data-f="title"], .ws-feat [data-f="text"] { grid-column: 1 / -1; }
  .ws-nav { grid-template-columns: minmax(0, 1fr) auto; } .ws-nav [data-f="url"] { grid-column: 1; }
}
.theme-wise .login-main { position: relative; }

/* ===================== members' pages inside the website (body.site-mode) =====================
   Around them the site's own top bar with the member's menus and its footer (site-frame.css); the panel's own top bar
   is not shown. The pages take the site's look: its 1180px column, neutral greys, big bold titles. */
body.site-mode { --fill: #f4f4f2; --fill-2: #ececea; --soft: #fafaf9; --line: #ebebe8; --line-strong: #dededa; --text-3: #82847f; --r: 18px; background: #fff; }
body.site-mode .shell { min-height: 0; }
body.site-mode .main { min-height: calc(100vh - 73px) !important; }
body.site-mode .topbar, body.site-mode .top-brand { display: none !important; }
body.site-mode .top, body.site-mode .view, body.site-mode .trail, body.site-mode .editor-holder,
body.site-mode.editor-view .top { max-width: 1180px; padding-left: 28px; padding-right: 28px; }
body.site-mode .top { padding-top: 40px; padding-bottom: 6px; }
body.site-mode .top h2 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.045em; }
body.site-mode .title-icon { display: none; }
body.site-mode .view { padding-top: 22px; }
body.site-mode .acting-bar { max-width: 1124px; margin-top: 16px; }
body.site-mode .s-foot { margin-top: 24px; }
body.site-mode .s-top { z-index: 45; }
body.site-mode .card { border-radius: 18px; }
/* signing in: a card in the page, between the site's top bar and footer */
body.site-mode .login { min-height: 0; padding: 64px 16px 8px; background: #fff; }
body.site-mode .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 420px; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
body.site-mode .login-art, body.site-mode .login-home { display: none !important; }
body.site-mode .login-main { padding: 8px 0 40px; }
body.site-mode .login-shell > .login-lang { display: none !important; }   /* the footer has the language links */
body.site-mode .ll-trigger { background: var(--fill); box-shadow: none; color: var(--text); }
body.site-mode .ll-trigger:hover, body.site-mode .login-lang.open .ll-trigger { background: #e9ece5; box-shadow: none; }
body.site-mode .ll-trigger svg { color: var(--text-3); }
@media (max-width: 860px) {
  body.site-mode .top, body.site-mode .view, body.site-mode .trail { padding-left: 16px; padding-right: 16px; }
  body.site-mode .top { padding-top: 24px; }
  body.site-mode .main { min-height: calc(100vh - 65px) !important; }
  body.site-mode .login { padding-top: 32px; }
  body.site-mode .login-main { padding: 8px 0 32px; }
}
/* the member's services inside the site (siteServices) */
.ms-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.ms-sum > div { display: grid; gap: 2px; padding: 18px 22px; border-left: 1px solid var(--line); }
.ms-sum > div:first-child { border-left: 0; }
.ms-sum small { color: var(--text-3); font-size: var(--fs-xs); } .ms-sum b { font-size: var(--fs-xl); letter-spacing: -.03em; }
.ms-sum b.warn { color: var(--warn); } .ms-sum b.bad { color: var(--bad); }
.theme-wise .ms-filter { margin: 0 0 14px; }
.theme-wise .ms-filter small { margin-left: 4px; color: var(--text-3); font-weight: 600; }
.ms-list { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.ms-row { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(150px, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line); }
.ms-row:first-child { border-top: 0; }
.ms-row.off .ms-name a { color: var(--text-2) !important; }
.ms-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--lime-soft); color: var(--forest); }
.ms-ic svg.ic { width: 21px; height: 21px; }
.ms-ic.big { width: 56px; height: 56px; border-radius: 16px; } .ms-ic.big svg.ic { width: 26px; height: 26px; }
.ms-name { display: grid; gap: 2px; min-width: 0; }
.ms-name a { color: var(--text) !important; font-size: var(--fs-base); font-weight: 700; letter-spacing: -.015em; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-name a:hover { color: var(--forest) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ms-name small { color: var(--text-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-term { display: grid; gap: 1px; font-size: var(--fs-xs); }
.ms-term b { font-weight: 600; } .ms-term small { color: var(--text-3); font-size: var(--fs-2xs); }
.ms-term i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.ms-term em { display: block; height: 100%; border-radius: 4px; background: var(--lime-2); }
.ms-term.warn b { color: var(--warn); } .ms-term.warn em { background: #e6a23c; }
.ms-acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.theme-wise .ms-more { color: var(--text-3); } .theme-wise .ms-more:hover { color: var(--bad); background: var(--bad-soft); }
.ms-empty { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.ms-empty h3 { margin: 8px 0 0; font-size: var(--fs-lg); letter-spacing: -.02em; } .ms-empty p { max-width: 460px; margin: 0 0 8px; color: var(--text-2); }
@media (max-width: 900px) {
  .ms-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 14px; }
  .ms-term { grid-column: 2 / -1; } .ms-st { grid-column: 3; grid-row: 1; }
  .ms-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ms-sum { grid-template-columns: minmax(0, 1fr); } .ms-sum > div { border-left: 0; border-top: 1px solid var(--line); } .ms-sum > div:first-child { border-top: 0; }
}
.theme-wise .ms-filter { display: inline-flex; flex-wrap: nowrap; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.theme-wise .ms-filter button { flex: none; }
/* inside the site the member's main pages need no trail (the top bar shows where you are); a service's pages keep it */
body.site-mode[data-view="services"] .trail, body.site-mode[data-view="orders"] .trail, body.site-mode[data-view="credit"] .trail,
body.site-mode[data-view="support"] .trail, body.site-mode[data-view="account"] .trail, body.site-mode[data-view="domains"] .trail,
body.site-mode[data-view="cart"] .trail, body.site-mode[data-view="store"] .trail, body.site-mode[data-view="checkout"] .trail { display: none !important; }
body.site-mode .trail [data-group], body.site-mode .trail [data-group] + .sep { display: none; }
/* the member's pages inside the site take the home page's plain look: neutral cards, black prices, soft green labels */
body.site-mode .view .card { box-shadow: none; border: 1px solid var(--line); }
body.site-mode .ct-badge { background: var(--lime-soft); color: var(--forest); font-weight: 700; }
body.site-mode .st-price b { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.04em; color: var(--text); }
body.site-mode .st-type { background: transparent; padding-left: 0; color: var(--text-3); }
body.site-mode .st-item .limits span, body.site-mode .ct-limits span { background: var(--soft); }
body.site-mode .st-item { padding: 24px; }
body.site-mode .main, body.site-mode .view { min-width: 0; }
.theme-wise .ms-filter { width: fit-content; }
/* the domain search while it looks: the results' card in shimmering grey (dmSearch) */
.dm-loading .sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #f0f1ed 0%, #f7f8f5 50%, #f0f1ed 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.dm-loading header small { display: inline-flex; align-items: center; gap: 8px; }
.dm-loading header .spinner { width: 14px; height: 14px; color: var(--lime-2); }
.dm-wait { pointer-events: none; }
.dm-wait .dm-n { color: var(--text-2); }
.dm-loading .sk-pill { width: 62px; height: 22px; border-radius: 999px; }
.dm-loading .sk-feat { width: 120px; height: 28px; border-radius: 999px; }
.dm-loading .dm-feats { display: flex; gap: 6px; }
.dm-loading .sk-st { width: 72px; height: 10px; margin-top: 4px; }
.dm-loading .sk-pr { width: 96px; height: 18px; margin-left: auto; }
.dm-loading .sk-bt { width: 76px; height: 34px; border-radius: 999px; margin-left: auto; }
.dm-loading .sk-bt.wide { width: 144px; height: 40px; margin-top: 12px; }
.dm-loading .dm-side { display: grid; justify-items: end; }
@media (prefers-reduced-motion: reduce) { .dm-loading .sk { animation: none; } }
.dm-taken { display: grid; gap: 8px; padding: 16px 4px 4px; border-top: 1px solid var(--line); }
.dm-taken small { color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; }
.dm-taken div { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-taken span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--text-3); font-size: var(--fs-2xs); font-weight: 650; }
.dm-taken span i { font-style: normal; font-weight: 500; font-size: var(--fs-2xs); color: var(--warn); }
.dm-loading .dm-taken span { animation: shimmer 1.4s linear infinite; background: linear-gradient(90deg, #f0f1ed 0%, #f7f8f5 50%, #f0f1ed 100%) 0 0 / 200% 100%; }
/* the payment pages, plainly (coBillSummary, coDocLinks) */
.co-bill-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.co-bill-sum div { display: grid; gap: 2px; min-width: 0; } .co-bill-sum b { font-size: var(--fs-ui); }
.co-bill-sum small { color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }
.co-bill-form[hidden] { display: none !important; }
.co-bill-form { display: grid; gap: 12px; }
.co-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 4px; }
.co-docs .linkish { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.co-docs svg.ic { width: 16px; height: 16px; }
.co-doc-full { max-height: 60vh; overflow: auto; padding-right: 6px; }
.theme-wise .co-sec h3 { margin-bottom: 4px; }
.theme-wise .pay-choices .pay-opt { padding: 12px 14px; }
.theme-wise .co-docs .linkish { padding: 0; border: 0; background: none; box-shadow: none; color: var(--forest); font: 600 var(--fs-sm) var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime-2); }
.theme-wise .co-docs .linkish:hover { color: var(--text); }
body.site-mode .legal-foot { display: none; }
.pay-opt.off { opacity: .75; } .pay-opt.off small a { color: var(--forest); font-weight: 600; pointer-events: auto; cursor: pointer; }
/* the member's credit page (renderCredit) */
.cr-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cr-bal { display: grid; gap: 6px; }
.cr-bal > div { display: grid; } .cr-bal small { color: var(--text-3); font-size: var(--fs-xs); }
.cr-bal b { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.cr-bal p { margin: 4px 0 0; max-width: 560px; font-size: var(--fs-sm); }
.cr-top .btn.big { height: 48px; padding: 0 24px; font-size: var(--fs-ui); }
.cr-load[hidden] { display: none !important; }
.cr-load { display: grid; gap: 22px; padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 90px; }
.cr-load header { display: flex; align-items: center; justify-content: space-between; } .cr-load h3 { margin: 0; font-size: var(--fs-md); }
.cr-step { display: grid; gap: 10px; }
.cr-lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.cr-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-amounts button { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font: 650 var(--fs-ui) var(--sans); cursor: pointer; }
.cr-amounts button:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.cr-amounts button.on { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--lime-2); color: var(--forest); }
.cr-other { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.cr-other span { color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.theme-wise .cr-other input { width: 110px; height: 36px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; font: 650 var(--fs-ui) var(--sans); }
.cr-other i { font-style: normal; color: var(--text-3); }
.cr-other:focus-within { box-shadow: inset 0 0 0 2px var(--lime-2); }
.cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.cr-foot div { display: grid; } .cr-foot small { color: var(--text-3); font-size: var(--fs-xs); } .cr-foot b { font-size: var(--fs-xl); letter-spacing: -.03em; }
.cr-foot .btn { height: 46px; padding: 0 26px; }
.cr-reqs { display: grid; gap: 0; padding: 18px 22px; margin-bottom: 16px; }
.cr-reqs header, .lg-reqs header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cr-reqs h3 { margin: 0; font-size: var(--fs-base); } .cr-reqs header small { color: var(--text-3); font-size: var(--fs-xs); }
.cr-req { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cr-req:first-of-type { border-top: 0; }
.cr-req > div { display: grid; gap: 2px; } .cr-req small { color: var(--text-3); font-size: var(--fs-xs); }
.cr-req code, .cr-ref code { font-family: var(--mono); font-size: var(--fs-xs); padding: 2px 6px; border-radius: 6px; background: var(--fill); color: var(--text); }
.lg-reqs .cr-req { grid-template-columns: minmax(0, 1fr) auto auto; }
.cr-bankd { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); } .cr-bankd summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.cr-bankbox { padding: 14px 16px; margin: 8px 0; border-radius: 12px; background: var(--soft); font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.7; }
.cr-ok { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-bottom: 16px; border-color: var(--lime-2) !important; }
.cr-ok h3 { margin: 0 0 6px; font-size: var(--fs-md); } .cr-ok p { margin: 0 0 8px; }
.cr-ok-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--on-lime, var(--forest)); }
.cr-ref { display: flex; align-items: center; gap: 8px; } .cr-ref code { font-size: var(--fs-md); padding: 6px 12px; letter-spacing: .04em; }
@media (max-width: 600px) { .cr-top { padding: 20px; } .cr-top .btn.big { width: 100%; } .cr-req { grid-template-columns: minmax(0, 1fr) auto; } .cr-req > button { grid-column: 1 / -1; justify-self: start; } }
/* the payment result page (renderPayResult): one calm card in the middle */
body[data-view="payresult"] .top, body[data-view="payresult"] .trail { display: none !important; }
.pr { display: grid; justify-items: center; gap: 10px; max-width: 600px; margin: 24px auto 0; padding: 44px 40px 36px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-align: center; }
.pr-ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--fill); color: var(--text-2); }
.pr-ic svg.ic { width: 32px; height: 32px; stroke-width: 2.2; }
.pr-ok .pr-ic { background: var(--lime); color: var(--on-lime, var(--forest)); box-shadow: 0 0 0 10px var(--lime-soft); }
.pr-warn .pr-ic { background: var(--warn-soft); color: var(--warn); box-shadow: 0 0 0 10px #fffaf0; }
.pr-bad .pr-ic { background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 10px #fff6f5; }
.pr-ic .spinner { width: 30px; height: 30px; border-width: 3px; }
.pr h2 { margin: 6px 0 0; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.pr-lead { max-width: 460px; margin: 0; color: var(--text-2); font-size: var(--fs-base); line-height: 1.6; }
.pr-facts { display: grid; width: 100%; margin: 18px 0 4px; border: 1px solid var(--line); border-radius: 16px; text-align: left; overflow: hidden; }
.pr-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pr-facts > div:first-child { border-top: 0; }
.pr-facts dt { color: var(--text-3); font-size: var(--fs-sm); } .pr-facts dd { margin: 0; text-align: right; font-size: var(--fs-sm); }
.pr-facts small { color: var(--text-3); }
.pr-bank { display: grid; gap: 6px; width: 100%; padding: 16px; margin-top: 4px; border-radius: 16px; background: var(--soft); text-align: left; }
.pr-bank .cr-bankbox { background: #fff; margin: 4px 0; }
.pr-bank p { margin: 0; font-size: var(--fs-xs); } .pr-bank code { font-family: var(--mono); padding: 2px 6px; border-radius: 6px; background: #fff; }
.pr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pr-acts .btn { height: 44px; padding: 0 22px; }
@media (max-width: 600px) { .pr { padding: 32px 20px 24px; border-radius: 20px; } .pr h2 { font-size: var(--fs-xl); } .pr-acts .btn { flex: 1 1 100%; } }
/* the site's error pages (website.error_page) */
body.theme-wise[data-view="payresult"] #trail, body.theme-wise[data-view="payresult"] .top { display: none !important; }
body.site-mode[data-view="services"] #trail, body.site-mode[data-view="orders"] #trail, body.site-mode[data-view="credit"] #trail,
body.site-mode[data-view="support"] #trail, body.site-mode[data-view="account"] #trail, body.site-mode[data-view="domains"] #trail,
body.site-mode[data-view="cart"] #trail, body.site-mode[data-view="store"] #trail, body.site-mode[data-view="checkout"] #trail { display: none !important; }
.pr-ref { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 18px; margin-top: 18px; border-radius: 16px; background: var(--lime-soft); }
.pr-ref small { color: var(--forest); font-size: var(--fs-xs); font-weight: 700; }
.pr-ref span { display: flex; align-items: center; gap: 8px; }
.pr-ref code { font-family: var(--mono); font-size: var(--fs-xl); font-weight: 600; letter-spacing: .08em; padding: 6px 14px; border-radius: 10px; background: #fff; color: var(--text); }
.pr-cancel { margin-top: 6px; color: var(--text-3); }
.pr-plain .pr-ic { background: var(--fill); }
/* the result page as an open page, not a box: no frame, no filled blocks; sections set apart by hairlines */
.pr { max-width: 620px; margin: 56px auto 24px; padding: 0; border: 0; border-radius: 0; background: none; gap: 12px; }
.pr h2 { font-size: var(--fs-3xl); letter-spacing: -.045em; }
.pr-lead { font-size: var(--fs-md); max-width: 520px; }
.pr-ic { width: 64px; height: 64px; margin-bottom: 12px; }
.pr-ok .pr-ic, .pr-warn .pr-ic, .pr-bad .pr-ic { box-shadow: none; }
.pr-ref { gap: 10px; padding: 0; margin-top: 22px; background: none; border-radius: 0; }
.pr-ref small { color: var(--text-3); font-weight: 600; letter-spacing: .02em; }
.pr-ref code { padding: 0 0 6px; border-radius: 0; background: none; border-bottom: 2px solid var(--lime-2); font-size: var(--fs-2xl); letter-spacing: .1em; }
.pr-facts { margin: 30px 0 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: visible; }
.pr-facts > div { padding: 14px 2px; }
.pr-facts dt { font-size: var(--fs-sm); } .pr-facts dd { font-size: var(--fs-ui); }
.pr-bank { gap: 8px; padding: 0; margin-top: 28px; border-radius: 0; background: none; text-align: left; }
.pr-bank > b { font-size: var(--fs-ui); }
.pr-bank .cr-bankbox { margin: 2px 0; padding: 2px 0 2px 14px; border-radius: 0; background: none; border-left: 3px solid var(--lime-2); }
.pr-bank code { background: var(--fill); }
.pr-cancel { margin-top: 10px; }
.pr-acts { margin-top: 26px; }
@media (max-width: 600px) { .pr { margin-top: 32px; } .pr-ref code { font-size: var(--fs-xl); } }
.theme-wise .pr-ref code { border: 0; border-bottom: 2px solid var(--lime-2); box-shadow: none; outline: 0; }

/* inside the site the panel's text follows the site's scale: body 15, page titles like the site's section titles */
body.site-mode.theme-wise { font-size: var(--fs-ui); }
body.site-mode .top h2, .theme-wise .pr h2 { font-size: var(--fs-3xl); }
body.site-mode .view h3, body.site-mode .card header h3, body.site-mode .section-title { font-size: var(--fs-md); }
body.site-mode .view small { font-size: var(--fs-xs); }
body.site-mode .btn { font-size: var(--fs-sm); }
body.site-mode .btn.small { font-size: var(--fs-xs); }
.cr-bal b { font-size: var(--fs-2xl); } .ms-sum b { font-size: var(--fs-xl); } .theme-wise .pr-ref code { font-size: var(--fs-xl); }
.cr-foot b { font-size: var(--fs-xl); } .pr-lead { font-size: var(--fs-base); }
/* the panel's own sizes, snapped to the site's scale inside the site (the panel's rules are more specific: hence !important) */
body.site-mode .badge, body.site-mode .ct-badge, body.site-mode .st-out, body.site-mode th, body.site-mode .st-few,
body.site-mode .view small, body.site-mode .st-full-note span, body.site-mode dt { font-size: var(--fs-2xs) !important; }
body.site-mode .trail, body.site-mode .trail a, body.site-mode .trail b, body.site-mode .co-sub dd { font-size: var(--fs-xs) !important; }
body.site-mode td, body.site-mode td b, body.site-mode .kv dt, body.site-mode .kv dd, body.site-mode dd, body.site-mode .seg button, body.site-mode .st-desc,
body.site-mode .ot-date span, body.site-mode .pf-mail span, body.site-mode li span, body.site-mode .nowrap span, body.site-mode .st-acts .btn,
body.site-mode .st-item .btn.wide, body.site-mode .view label, body.site-mode .check span, body.site-mode .view span > a, body.site-mode .view span > b { font-size: var(--fs-sm) !important; }
body.site-mode .svp-main b, body.site-mode .hc-text b, body.site-mode .ot-amount b, body.site-mode .ot-txt b, body.site-mode .mem-who + div b,
body.site-mode .view div > b:only-child { font-size: var(--fs-ui) !important; }
body.site-mode .mem-who h2 { font-size: var(--fs-lg) !important; }
body.site-mode .st-price b, body.site-mode .count-tile .ct-value, body.site-mode .ms-sum b, body.site-mode .cr-foot b, body.site-mode .pr-ref code { font-size: var(--fs-xl) !important; }
body.site-mode .cr-bal b { font-size: var(--fs-2xl) !important; }
body.site-mode .top h2 { font-size: var(--fs-3xl) !important; }
/* the result page's list: labels at reading size, the reference code and the bank details as rows */
body.site-mode .pr-facts dt, .pr-facts dt { font-size: var(--fs-sm) !important; color: var(--text-3); }
body.site-mode .pr-facts dd, .pr-facts dd { font-size: var(--fs-ui) !important; }
.pr-facts > div { align-items: center; }
.pr-code { display: inline-flex; align-items: center; gap: 6px; }
.theme-wise .pr-code code { padding: 3px 10px; border-radius: 8px; background: var(--lime-soft); color: var(--forest); font: 600 var(--fs-ui) var(--mono); letter-spacing: .06em; border: 0; }
.pr-bankv { display: block; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.6; text-align: right; }
.pr-note { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin: 16px 0 0; text-align: left; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.pr-note svg.ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.pr-acts { width: 100%; margin-top: 28px; }
.theme-wise .pr-acts .pr-cancel { color: var(--bad); }
.theme-wise .pr-acts .pr-cancel:hover { background: var(--bad-soft); }
.theme-wise .pr-acts .pr-cancel { margin-top: 0; height: 44px; padding: 0 18px; }
.pr-alt { margin: 14px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.theme-wise .pr-link { padding: 0; border: 0; background: none; color: var(--text-2); font: 600 var(--fs-sm) var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.theme-wise .pr-link:hover { color: var(--bad); text-decoration-color: currentColor; }
@media (max-width: 600px) { .pr-acts .btn { flex: 1 1 100%; } }

/* the result page: a title in proportion to its narrow column (30px), the text close under it */
body.site-mode .pr h2, .theme-wise .pr h2 { font-size: var(--fs-2xl) !important; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; }
.pr { gap: 8px; margin-top: 64px; max-width: 560px; }
.pr-ic { width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; }
.pr-ic svg.ic { width: 24px; height: 24px; }
.pr-lead, body.site-mode .pr-lead { max-width: 440px; font-size: var(--fs-base) !important; line-height: 1.55; color: var(--text-2); }
.pr-facts { margin-top: 26px; }
/* the member's support page (renderSupport): an open page, the steps one under the other, the requests as rows */
.spg { display: grid; gap: 40px; }
.spg-intro { display: grid; gap: 12px; }
.spg-intro p { margin: 0; max-width: 640px; color: var(--text-2); font-size: var(--fs-base); line-height: 1.6; }
.spg-intro .sup-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--text-3); font-size: var(--fs-sm); }
.spg-sec { display: grid; gap: 14px; }
.spg-sec h3 { margin: 0; font-size: var(--fs-md) !important; font-weight: 700; letter-spacing: -.015em; }
.spg-sec h3 small { margin-left: 6px; color: var(--text-3); font-size: var(--fs-sm) !important; font-weight: 500; letter-spacing: 0; }
.spg-sec .spg-h2 { margin-top: 12px; }
.spg-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--lime-soft); color: var(--forest); }
.spg-ic svg.ic { width: 19px; height: 19px; }
.spg-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.spg-topic, .spg-way { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 0; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: box-shadow .12s, background .12s; }
.spg-topic:hover, .spg-way:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-strong); }
.spg-topic.on, .spg-way.on { background: color-mix(in srgb, var(--lime-soft) 55%, #fff); box-shadow: inset 0 0 0 2px var(--lime-2); }
.spg-topic > span:last-child, .spg-way > span:last-child { display: grid; gap: 2px; min-width: 0; }
.spg-topic b, .spg-way b { font-size: var(--fs-ui) !important; font-weight: 650; }
.spg-topic small, .spg-way small { color: var(--text-3); font-size: var(--fs-xs) !important; line-height: 1.45; }
.spg-way:disabled { opacity: .55; cursor: default; }
.spg-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; max-width: 620px; }
.spg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spg-chip { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2);
  font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.spg-chip:hover { color: var(--text); } .spg-chip.on { background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--lime-2); color: var(--forest); }
.spg-form { display: grid; gap: 12px; max-width: 620px; }
.spg-form label { display: grid; gap: 6px; font-size: var(--fs-sm) !important; font-weight: 600; color: var(--text-2); }
.spg-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .spg-go small { color: var(--text-3); font-size: var(--fs-xs) !important; }
.spg-list { border-top: 1px solid var(--line); }
.spg-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text) !important; text-decoration: none !important; transition: background .12s; }
.spg-row:hover { background: var(--soft); }
.spg-row .spg-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--fill); color: var(--text-2); }
.spg-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.spg-t b { font-size: var(--fs-ui) !important; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spg-t small { color: var(--text-3); font-size: var(--fs-xs) !important; }
.spg-r { display: flex; align-items: center; gap: 8px; color: var(--text-3); } .spg-r small { font-size: var(--fs-xs) !important; white-space: nowrap; }
.spg-row > svg.ic { width: 16px; height: 16px; color: var(--text-3); flex: none; }
@media (max-width: 600px) { .spg { gap: 32px; } .spg-topics, .spg-ways { grid-template-columns: minmax(0, 1fr); } .spg-r .badge { display: none; } }
/* member pages: titles in proportion to 15px text: page 30, card titles 16, a person's name 18 */
body.site-mode .top h2 { font-size: var(--fs-2xl) !important; font-weight: 750; letter-spacing: -.03em; }
body.site-mode .view .card h3, body.site-mode .view .card header h3, body.site-mode .view section h3:not(.spg-sec h3) { font-size: var(--fs-base) !important; font-weight: 650; letter-spacing: -.01em; }
body.site-mode .spg-sec > h3, body.site-mode .section-title { font-size: var(--fs-md) !important; }
body.site-mode .mem-who h2 { font-size: var(--fs-md) !important; }
body.site-mode .top { padding-top: 32px; }
.theme-wise .spg-row { border-radius: 0; background: none; } .theme-wise .spg-row:hover { background: var(--soft); }
/* support page, quieter: one line of welcome with a small status, the topics and the ways as a list (no boxes) */
.spg-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: -8px; }
.spg-intro p { margin: 0; color: var(--text-2); font-size: var(--fs-base); }
.spg-live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.spg-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.spg-live.on { background: var(--lime-soft); color: var(--forest); } .spg-live.on i { background: var(--lime-2); box-shadow: 0 0 0 3px rgba(138, 216, 90, .25); }
.spg-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; border-top: 1px solid var(--line); }
.spg-ways { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: none; border-top: 1px solid var(--line); }
.theme-wise .spg-topic, .theme-wise .spg-way { align-items: center; gap: 14px; padding: 14px 10px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
.theme-wise .spg-topic:hover, .theme-wise .spg-way:hover:not(:disabled) { box-shadow: none; background: var(--soft); }
.theme-wise .spg-topic.on, .theme-wise .spg-way.on { box-shadow: none; background: var(--lime-soft); border-bottom-color: transparent; border-radius: 12px; }
.spg-topic > span:nth-child(2), .spg-way > span:nth-child(2) { flex: 1; }
.spg-topic > svg.ic:last-child, .spg-way > svg.ic:last-child { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.spg-topic.on > svg.ic:last-child, .spg-way.on > svg.ic:last-child { color: var(--forest); width: 18px; height: 18px; }
.spg-topic .spg-ic, .spg-way .spg-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--fill); color: var(--text-2); }
.spg-topic.on .spg-ic, .spg-way.on .spg-ic { background: #fff; color: var(--forest); }
.spg-topic small, .spg-way small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .spg-topics { grid-template-columns: minmax(0, 1fr); } .spg-topic small, .spg-way small { white-space: normal; } }
.spg-topic > span:nth-child(2), .spg-way > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
/* the support dialog (renderSupport › ask) */
.spm { display: grid; gap: 22px; }
.spm-step { display: grid; gap: 10px; }
.spm-l { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.spm label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.spm .spg-ways { border-top: 1px solid var(--line); }
.spm .form-error:empty { display: none; }
/* support topics and ways: the home page's feature cards (site.css .feat): a hairline, 18px corners; on hover a light green line and a soft shadow */
.spg-topics { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; border-top: 0; }
.spm .spg-ways, .spg-ways { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; border-top: 0; }
.theme-wise .spg-topic, .theme-wise .spg-way { padding: 18px; border: 0; border-bottom: 0; border-radius: 18px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.theme-wise .spg-topic:hover, .theme-wise .spg-way:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1px var(--lime-line), 0 1px 2px rgba(12, 13, 11, .04), 0 8px 24px -12px rgba(12, 13, 11, .10); }
.theme-wise .spg-topic.on, .theme-wise .spg-way.on { background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--lime-2), 0 8px 24px -12px rgba(22, 51, 0, .18); }
.spg-topic .spg-ic, .spg-way .spg-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--lime-soft); color: var(--forest); }
.spg-way.on .spg-ic { background: var(--lime-soft); }
.spg-topic small, .spg-way small { white-space: normal; }
@media (max-width: 760px) { .spg-topics { grid-template-columns: minmax(0, 1fr); } }
/* inside the site: support pages use the whole column; a field in focus gets one thin green line, not a glow */
body.site-mode .sup { max-width: none; }
body.site-mode input:focus, body.site-mode select:focus, body.site-mode textarea:focus { box-shadow: inset 0 0 0 1px var(--lime-2) !important; }
body.site-mode .suffix-input:focus-within { box-shadow: inset 0 0 0 1px var(--lime-2) !important; }
/* support topics: every card one line of text, so they all stand the same height whatever the language */
.spg-topics { grid-auto-rows: 1fr; }
.spg-topic small, .spg-way small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spg-topic b, .spg-way b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.site-mode .lc-brand { display: none !important; }   /* the site's top bar already has the logo */

/* signing up: the consent is a box and one quiet line beside it, the documents linked in the sentence */
.theme-wise .login-card > label.lc-accept { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--text-2); }
.theme-wise .login-card > label.lc-accept > input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--lime-2); }
.theme-wise .login-card > label.lc-accept a { color: var(--forest); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime-line); text-underline-offset: 3px; }
.theme-wise .login-card > label.lc-accept a:hover { text-decoration-color: currentColor; }

/* an address (name @ domain) and a number with its unit are one field: one surface, one focus line around the whole */
.theme-wise .mail-addr { display: flex; align-items: stretch; height: 40px; border: 0; border-radius: var(--r-sm); background: var(--fill); overflow: hidden; box-shadow: none; }
.theme-wise .mail-addr:focus-within { background: #fff; border-color: transparent; box-shadow: var(--glow), 0 1px 4px rgba(14, 15, 12, .08); }
.theme-wise .mail-addr input, .theme-wise .mail-addr select { height: 100%; border: 0 !important; border-radius: 0; background-color: transparent !important; box-shadow: none !important; }
.theme-wise .mail-addr input { flex: 1 1 40%; padding: 0 4px 0 12px; text-align: right; font-weight: 600; }
.theme-wise .mail-addr span { flex: none; display: flex; align-items: center; padding: 0 2px; background: none; border: 0; color: var(--text-3); font: 600 14px var(--sans); }
.theme-wise .mail-addr select { flex: 1 1 60%; padding-left: 4px; font-weight: 600; color: var(--text); }
body.site-mode .mail-addr:focus-within { box-shadow: inset 0 0 0 1px var(--lime-2) !important; }
body.site-mode .mail-addr input:focus, body.site-mode .mail-addr select:focus,
body.site-mode .suffix-input input:focus, body.site-mode .suffix-input select:focus { box-shadow: none !important; }
/* the website's footer menus: a card per column, its title and its links */
.ws-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.ws-cols:empty { display: none; }
.ws-col { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.ws-col-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ws-col-head input { font-weight: 650; }
.ws-col .ws-reps:empty { display: none; }
.ws-col .ws-add { justify-self: start; }
.ws-col .ws-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.ws-col-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* website pages: a page's facts in a row, dots between them; the editor's hints as short items */
.lg-meta > span + span::before { content: "·"; margin: 0 6px; color: var(--text-3); }
.ws-help span { margin-right: 10px; white-space: nowrap; }
.ws-hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ws-hints li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* the website page's language switch (next to Save): a button and the panel's pop-up menu */
.ws-langsel { gap: 8px; padding-left: 6px !important; }
.ws-langsel .ic { width: 15px; height: 15px; color: var(--text-3); }
.ws-lang-code { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--fill); font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.ws-langsel .ws-lang-code { background: var(--lime-soft); color: var(--forest); }
.ws-lang-pop .lg-pop-item { text-decoration: none; }
.ws-lang-pop .lg-pop-item > span { flex: 1; }
.ws-lang-pop .lg-pop-item.on { font-weight: 650; }
.ws-lang-pop .lg-pop-item.on .ws-lang-code { background: var(--lime-soft); color: var(--forest); }
.ws-lang-pop .lg-pop-item > .ic:last-child { color: var(--text); }
.ws-tr-bar { align-items: center; gap: 12px; margin-bottom: 14px; padding: 11px 16px; }
.ws-tr-bar > .ws-lang-code { background: var(--lime-soft); color: var(--forest); }
.ws-tr-bar > span { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.ws-tr-bar b { font-size: 14px; font-weight: 650; color: var(--text); }
.ws-tr-bar small { font-size: 13px; color: var(--text-3); }
.ws-tr-link { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.ws-tr-link:hover { color: var(--text); }
.ws-tr-link .ic { width: 15px; height: 15px; }
.ws-tr .ce-main input:disabled, .ws-tr .ce-main textarea:disabled, .ws-tr .ce-main select:disabled { opacity: .55; }
.ws-tr .ce-main .ws-add:disabled, .ws-tr .ce-main [data-del]:disabled, .ws-tr .ce-main [data-delcol]:disabled, .ws-tr #wsColsReset:disabled { display: none; }

/* sign-up with a member address: name@domain, the domain shown inside the box */
.theme-wise .lc-addr input { padding-right: 16px; }
.theme-wise .lc-addr { display: flex; align-items: center; }
.theme-wise .lc-addr .lc-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: 14px; color: var(--text-3); pointer-events: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-addr-note { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.lc-addr-note.ok { color: var(--forest); }
.lc-addr-note.bad { color: var(--bad); }
#regMailRows { display: grid; gap: inherit; }
#regMailRows[hidden] { display: none; }

/* Mail > Üye adresleri: the pool as one bar (used, reserved but unused, free) */
.mm-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mm-stats small.muted { font-size: 11.5px; }
.mm-barcard { padding: 14px 16px; margin-bottom: 14px; }
.mm-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--fill); }
.mm-seg.used { background: var(--forest); }
.mm-seg.held { background: var(--lime); }
.mm-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.mm-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--fill); vertical-align: -1px; }
.mm-legend i.used { background: var(--forest); }
.mm-legend i.held { background: var(--lime); }
.mm-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .mm-modes { grid-template-columns: 1fr; } }
/* Hesabım: the member's own address */
.mb-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mb-addr { flex: 1; min-width: 220px; display: grid; gap: 8px; }
.mb-addr > b { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.mb-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.mb-more .kv { margin-top: 10px; }
.mb-rec { display: flex; gap: 8px; }
.mb-rec input { flex: 1; min-width: 0; }
/* Web sitesi > Genel: the site's name is the brand (Settings), shown here, changed there */
.ws-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--fill); }
.ws-brand b { font-weight: 650; }
.ws-brand a { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* two-word brand: stacked, about the size of a one-word logo */
.bmk { width: 1.38em; height: 1.38em; flex: none; vertical-align: middle; margin-right: .28em; }
.bmk + .bw { margin-left: 0; }
.bmk-bg { fill: var(--logo, #ff6a2b); }
.bw { display: inline-grid; font-size: .74em; line-height: .9; letter-spacing: -.035em; text-align: left; vertical-align: middle; }
.bw i { font-size: 1.25em; line-height: 0; }

/* Settings > Site teması: the ready colours as round swatches, the last one opens a colour picker for one's own */
.set-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.set-sw .sw { position: relative; width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .12s ease, box-shadow .12s ease; }
.set-sw .sw:hover { transform: scale(1.08); }
.set-sw .sw.on { box-shadow: 0 0 0 2px var(--bg, #fff), 0 0 0 4px var(--text, #0c0d0b); }
.set-sw .sw:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--bg, #fff), 0 0 0 4px var(--lime-2, var(--lime-2)); }
.set-sw .sw-own { background: conic-gradient(from 0deg, #ff4d4d, #ffb020, #f5e663, #5ad15a, #3fb8e6, #5b6cff, #c04dff, #ff4d4d); overflow: hidden; }
.set-sw .sw-own.on { background: var(--own, #ff6a2b); }
.set-sw .sw-own::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 17px/1 var(--sans, sans-serif); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); pointer-events: none; }
.set-sw .sw-own.on::after { content: ""; }
.set-sw .sw-own input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; border: 0; padding: 0; }
.set-sw .sw-name { margin-left: 4px; color: var(--text-2, #50524d); font-size: var(--fs-sm, 14px); font-variant-numeric: tabular-nums; }
.set-sw .sw-hex { color: var(--text-3, #82847f); font-size: var(--fs-xs, 13px); }

/* section headers (Settings and the like): the title and its line under it sit tight together */
.theme-wise .set-head > div { display: grid; gap: 1px; align-content: center; min-width: 0; }
.theme-wise .set-head h3 { margin: 0 !important; line-height: 1.25; }
.theme-wise .set-head p { margin: 0 !important; line-height: 1.35; }

/* Settings > Logo ikonu: the icons to choose from, the chosen one ringed */
.set-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.set-icons .ip { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.set-icons .ip:hover { border-color: var(--line-2, #d8dad4); }
.set-icons .ip.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.set-icons .ip:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime-2, var(--lime-2)) 45%, transparent); }
.set-icons .ip .bmk { width: 26px; height: 26px; margin: 0; }
img.bmk { object-fit: contain; display: inline-block; }

/* Settings > Logo ikonu: the current icon, then upload / remove */
.set-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-up-pv { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--fill); color: var(--text-3); overflow: hidden; }
.set-up-pv img { width: 40px; height: 40px; object-fit: contain; }
.set-up-pv svg { width: 20px; height: 20px; }
.set-row textarea#s_logo_text { width: 100%; min-height: 76px; resize: vertical; line-height: 1.45; }
.bw.corp { text-transform: none; } .bw.corp > span + span { font-weight: 500; letter-spacing: .16em; font-size: .86em; margin-top: .08em; }

/* the owners' colour (Ekip > Roller > Sahip): the crown, the picker beside it, and the "Sahip" badges */
.tm-crown[data-rc] { background: color-mix(in srgb, var(--rc, #e5a50a) 16%, #fff); color: color-mix(in srgb, var(--rc, #e5a50a) 80%, #000); }
.tm-owner-c { position: relative; width: 18px; height: 18px; flex: none; margin-left: auto; border-radius: 50%; background: var(--rc, #e5a50a); box-shadow: 0 0 0 2px var(--bg, #fff), 0 0 0 3px var(--line); cursor: pointer; }
.tm-owner-c input { position: absolute; inset: -6px; width: 30px; height: 30px; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.tm-owner .tm-owner-c + .tm-n { margin-left: 8px; }
.badge.own { background: color-mix(in srgb, var(--rc, #e5a50a) 14%, #fff); color: color-mix(in srgb, var(--rc, #e5a50a) 75%, #000); }
.badge.own::before { background: var(--rc, #e5a50a) !important; }
.tm-pill.owner i { background: var(--rc, #e5a50a); }

/* ===================== the admin panel inside the site's top bar (body.panel-frame) =====================
   One header for everything: website.py draws it for the site, the members' pages and the panel alike.
   The panel keeps only its own tools (back, page search, cart) in a slim row under it. */
body.panel-frame .top-brand, body.panel-frame .me-menu { display: none !important; }
body.panel-frame .topbar { padding: 12px 40px 4px 40px; }
body.panel-frame .s-top { position: relative; z-index: 45; }
body.panel-frame .main { min-height: calc(100vh - 73px) !important; }
@media (max-width: 760px) { body.panel-frame .topbar { padding: 10px 16px 4px; } }

/* panel-frame, one header row like the dashboard's: logo, back, gap, cart, search, the account pill; no bottom line, no site menu */
body.panel-frame .topbar { display: none !important; }
body.panel-frame .s-top { border-bottom: 0 !important; box-shadow: none !important; background: var(--bg, #fff); }
body.panel-frame .s-top-in { height: 84px; gap: 12px; }
body.panel-frame .s-top .s-nav { display: none !important; }
body.panel-frame .s-top .s-menu-in.s-desk { flex: none; }
body.panel-frame .pf-tools { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; margin-left: 20px; }
body.panel-frame .pf-tools .search-btn { min-width: 0; }
@media (max-width: 760px) {
  body.panel-frame .s-top-in { height: 68px; gap: 8px; }
  body.panel-frame .pf-tools { margin-left: 4px; gap: 8px; }
  body.panel-frame .pf-tools .search-btn span, body.panel-frame .pf-tools .search-btn kbd { display: none; }
}

/* a person without a photo: their initials on the system colour, everywhere in the panel */
.me-avatar:not(.has-photo), .mem-av:not(.has-photo), .adm-av:not(.has-photo), .mem-av-sm:not(.has-photo),
.theme-wise .me-chip .me-avatar:not(.has-photo), .theme-wise .me-chip:hover .me-avatar:not(.has-photo) { background: var(--lime); color: var(--on-lime, var(--forest)); }
.av-preview:not(:has(img)) { background: var(--lime); color: var(--on-lime, var(--forest)); }

/* ===================== profiles and posts (/p/<username>, /akis; social.js) =====================
   Only placement: everything else is the account page's own components (card, mem-hero, mem-card, btn, seg, modal). */
body.social .sp { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
body.social .sp-hero { position: relative; overflow: hidden; align-items: start; }
body.social .sp-hero.has-cover { padding-top: 150px; }
body.social .sp-cover { position: absolute; inset: 0 0 auto; width: 100%; height: 130px; object-fit: cover; border-bottom: 1px solid var(--line); }
body.social .sp-hero .mem-av { position: relative; }
body.social .sp-bio { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
body.social .sp-hero .mem-tags .badge { gap: 6px; text-decoration: none; }
body.social .sp-hero .mem-tags .badge .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
body.social .sp-hero .mem-tags .badge::before { display: none; }
body.social .sp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body.social .sp-facts { grid-template-columns: repeat(4, auto); align-self: center; }
body.social .sp-facts a { color: inherit; text-decoration: none; } body.social .sp-facts a:hover { text-decoration: underline; }
body.social .sp-tabs { justify-self: start; }
body.social .sp-compose textarea, .sp-modal .sp-compose textarea { width: 100%; min-height: 70px; resize: vertical; }
body.social .sp-compose-foot, .sp-modal .sp-compose-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
body.social .sp-count.low { color: var(--red, #c0362c); font-weight: 700; }
body.social .sp-feed { display: grid; gap: 12px; }
body.social .sp-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; cursor: pointer; }
body.social .sp-post.big, body.social .sp-post.parent { cursor: default; }
body.social .sp-post.parent { background: var(--soft); }
body.social .sp-post.big .sp-post-text { font-size: 17px; }
body.social .sp-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; }
body.social .sp-post-head a { color: var(--text); text-decoration: none; } body.social .sp-post-head a:hover b { text-decoration: underline; }
body.social .sp-post-text { margin-top: 4px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
body.social .sp-post-acts { display: flex; gap: 4px; margin: 8px 0 0 -8px; }
body.social .sp-post-acts .btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.social .sp-like.on { color: var(--forest); background: var(--lime-soft); } body.social .sp-like.on .ic { fill: currentColor; }
body.social .sp-del { margin-left: auto; }
body.social .sp-empty { text-align: center; } body.social .sp-empty p { margin: 12px 0; }
body.social .sp-more, body.social .sp-back { justify-self: center; }
body.social .sp-back { justify-self: start; } body.social .sp-back .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
body.social .sp-set-foot { display: flex; justify-content: flex-end; }
body.social .sp-top { padding-left: 0 !important; padding-right: 0 !important; }
.sp-modal .modal-body { display: grid; gap: 12px; }
.sp-modal .icon-btn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sp-modal .btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sp-modal footer { display: flex; justify-content: flex-end; gap: 8px; }
.sp-ed-pics { display: flex; align-items: center; gap: 16px; }
.sp-ed-av .mem-av { width: 72px; height: 72px; font-size: 24px; }
.sp-ed-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.sp-person:hover { background: var(--fill); } .sp-person span { display: grid; }
.sp-replying .sp-post { cursor: default; } .sp-replying .card { box-shadow: none; }
.sp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 600; font-size: 14px; transition: .2s; }
.sp-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) { body.social .sp-facts { grid-template-columns: repeat(2, auto); } body.social .sp-hero.has-cover { padding-top: 110px; } body.social .sp-cover { height: 96px; } }
