/* QR Studio — hand-written CSS, no build step required. */

@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/commissioner-greek-400-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/commissioner-latin-400-normal.woff2') format('woff2'); 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: 'Commissioner'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/commissioner-greek-500-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/commissioner-latin-500-normal.woff2') format('woff2'); 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: 'Commissioner'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/commissioner-greek-600-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/commissioner-latin-600-normal.woff2') format('woff2'); 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: 'Commissioner'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/commissioner-greek-700-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/commissioner-latin-700-normal.woff2') format('woff2'); 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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-greek-400-normal.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); 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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); 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; }

:root {
  --ground: #F2F3EF;
  --surface: #FFFFFF;
  --surface-2: #F7F8F5;
  --ink: #14171C;
  --ink-2: #3D4550;
  --muted: #59616B;
  --line: #DCDFD8;
  --line-soft: #ECEEE9;
  --input: #8F958E;
  --lime: #D4F25A;
  --lime-soft: #F4FBD9;
  --teal: #0D6B5E;
  --teal-dark: #08463D;
  --danger: #B42318;
  --danger-dark: #9A1D13;
  --danger-soft: #FDECEA;
  --side: #14171C;
  --side-2: #1E232A;
  --side-line: #2A3038;
  --side-text: #C9CED6;
  --side-muted: #8C949E;
  --radius: 12px;
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-variant-ligatures: no-contextual; margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .logo-opt:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App shell */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 0 248px; min-width: 0; background: var(--side); color: var(--side-text); }
.sidebar-inner { padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: #F2F3EF; font-size: 18px; font-weight: 700; }
.brand:hover { color: #FFFFFF; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--side-muted); padding: 0 12px 8px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--side-text); }
.nav a:hover { background: var(--side-2); color: #FFFFFF; }
.nav a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.nav a .count { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--side-line); color: var(--side-text); }
.nav a[aria-current="page"] .count { background: var(--ink); color: var(--lime); }
.side-sep { height: 1px; background: var(--side-line); }
.me { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--side-2); text-decoration: none; color: inherit; }
.me:hover { background: #262C34; color: inherit; }
.me-name { display: block; font-size: 14px; font-weight: 600; color: #F2F3EF; }
.me-role { display: block; font-size: 12px; color: #AEB5BE; }
.side-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--side-text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.side-btn:hover { background: var(--side-2); color: #FFFFFF; }
.side-version { padding: 0 12px; font-size: 11px; color: #8F98A3; }

.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 56px; }
.container { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 860px) {
  .sidebar-inner { position: static; padding: 14px 16px; gap: 12px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; max-width: 100%; }
  .nav a { flex: none; }
  .nav-label, .side-sep { display: none; }
  .sidebar .side-account { flex-direction: row; align-items: center; }
  .sidebar .side-account .me { flex: 1 1 auto; min-width: 0; padding: 6px 10px; }
  .sidebar .side-account .side-btn { width: auto; white-space: nowrap; }
  .side-version { display: none; }
  .main { padding: 24px 16px 48px; }
}

/* ---------- Page header */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head .sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #2A2F37; color: #FFFFFF; }
.btn-secondary { background: var(--surface); border-color: var(--input); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); font-weight: 700; }
.btn-lime:hover { background: #C6E64A; color: var(--ink); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: var(--danger-dark); color: #FFFFFF; }
.btn-danger-outline { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); color: var(--danger-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; margin: 0; }

/* ---------- Cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.card-tight { padding: 16px; gap: 14px; }
.card h2 { font-size: 17px; font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { flex: 1 1 220px; }
.input, .select, textarea.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.input-lg { min-height: 48px; padding: 0 14px; }
.input.mono { font-family: var(--mono); font-size: 14px; }
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; }
.error { font-size: 13px; font-weight: 600; color: var(--danger-dark); }
.help { font-size: 13px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline-offset: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--line-soft); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.note .icon { margin-top: 1px; }
.note-ok { background: #E3F4EC; color: #0B5A3E; }
.note-warn { background: #FFF4D6; color: #6E4700; }
.note-danger { background: var(--danger-soft); color: var(--danger-dark); }

/* segmented control */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: 10px; }
.seg label { flex: 1 1 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; padding: 0 6px; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 2px rgba(20,23,28,.18); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }
.seg input:disabled + span { color: #7A818A; }
.seg input:disabled { cursor: not-allowed; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatch { position: relative; width: 44px; height: 44px; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #C9CDC5; }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.color-input { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); cursor: pointer; }
.swatch.custom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.swatches:has([data-custom-radio]:checked) .color-input { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }

/* logo options */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.logo-opt { position: relative; }
.logo-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.logo-opt span.box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.logo-opt input:checked + span.box { border: 2px solid var(--ink); background: var(--lime-soft); padding: 11px 5px 9px; }
.logo-tile { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--line-soft); color: var(--ink); }
.logo-tile.colored { background: var(--logo-color, #0D6B5E); color: #FFFFFF; }
.logo-tile.outlined { background: var(--surface); border: 3px solid var(--logo-color, #0D6B5E); color: var(--logo-color, #0D6B5E); font-size: 13px; font-weight: 700; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.dropzone { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--input); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.dropzone.is-drag { border-color: var(--ink); background: var(--lime-soft); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.range { width: 100%; accent-color: var(--ink); height: 28px; }

/* ---------- Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .grow { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .side { flex: 1 1 380px; min-width: 0; }
.sticky { position: sticky; top: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- QR cards */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.qr-grid.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.qr-thumb { display: flex; justify-content: center; padding: 20px; background: var(--surface-2); }
.qr-thumb img { width: 150px; height: 150px; border-radius: 4px; }
.qr-grid.compact .qr-thumb { padding: 12px; margin: 14px 14px 0; border-radius: 8px; }
.qr-grid.compact .qr-thumb img { width: 120px; height: 120px; }
.qr-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); flex: 1 1 auto; min-width: 0; }
.qr-grid.compact .qr-body { border-top: 0; padding: 12px 14px 14px; }
.qr-body h2, .qr-body h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.qr-body h2 a, .qr-body h3 a { color: var(--ink); text-decoration: none; }
.qr-body h2 a:hover, .qr-body h3 a:hover { text-decoration: underline; }
.qr-meta { font-size: 12px; color: var(--muted); }
.qr-url { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.qr-actions { display: flex; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line-soft); }
.qr-actions .btn { min-height: 44px; }
.qr-actions .grow { flex: 1 1 auto; }
.qr-stage { background: var(--line-soft); border-radius: 10px; padding: 28px; display: flex; justify-content: center; }
.qr-stage svg, .qr-stage img { width: 300px; height: 300px; max-width: 100%; height: auto; border-radius: 10px; display: block; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ---------- Chips & badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip .n { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--line-soft); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip[aria-current="true"] .n { background: #3A414B; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; background: var(--line-soft); color: var(--ink-2); }
.b-create { background: #E3F4EC; color: #0B5A3E; }
.b-edit { background: #E6EEFC; color: #1D3F99; }
.b-download { background: var(--line-soft); color: var(--ink-2); }
.b-delete { background: var(--danger-soft); color: var(--danger-dark); }
.b-users { background: #F3E9FB; color: #5B2A86; }
.b-access { background: #FFF4D6; color: #6E4700; }
.b-admin { background: var(--ink); color: var(--lime); }
.b-active { background: #E3F4EC; color: #0B5A3E; }
.b-pending { background: #FFF4D6; color: #6E4700; }
.b-disabled { background: var(--line-soft); color: var(--ink-2); }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.avatar-lg { width: 38px; height: 38px; font-size: 14px; }

/* ---------- Tables */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; position: relative; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--input); border-radius: var(--radius); padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty h2 { font-size: 18px; }

/* ---------- Activity list & timeline */
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: 14px; }
.timeline .rail { flex: none; width: 14px; display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px currentColor; background: currentColor; }
.timeline .line { flex: 1 1 auto; width: 2px; background: var(--line); min-height: 16px; }
.timeline li:last-child .line { background: transparent; }
.timeline .body { display: flex; flex-direction: column; gap: 3px; padding-bottom: 18px; }

/* ---------- Definition list */
.dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); font-size: 15px; }
.dl dt { padding: 12px 0; color: var(--muted); border-top: 1px solid var(--line-soft); }
.dl dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.dot-color { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--input); display: inline-block; }

/* ---------- Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.pagination a:hover { background: var(--surface-2); }
.pagination .active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pagination .disabled { color: #9AA0A6; }

/* ---------- Dialog, toast, flash */
dialog.modal { width: min(460px, calc(100% - 32px)); border: 0; border-radius: 14px; padding: 24px; box-shadow: 0 20px 48px rgba(20,23,28,.3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20,23,28,.55); }
dialog.modal form.body { display: flex; flex-direction: column; gap: 16px; margin: 0; }
dialog.modal h2 { font-size: 19px; font-weight: 700; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 10px; background: var(--ink); color: #F2F3EF; font-size: 15px; box-shadow: 0 12px 32px rgba(20,23,28,.3); max-width: calc(100% - 32px); transition: opacity .3s, transform .3s; }
.toast.no-action { padding: 14px 18px; }
.toast .btn { min-height: 38px; }
.toast.hide { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.flash { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.flash-warn { background: #FFF4D6; color: #6E4700; }
.flash-ok { background: #E3F4EC; color: #0B5A3E; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-row .input { flex: 1 1 260px; }

/* ---------- Auth pages */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.auth-card.wide { max-width: 560px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; }
.auth-card h1 { font-size: 22px; font-weight: 700; text-align: center; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.pw-wrap { display: flex; align-items: stretch; min-height: 48px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); overflow: hidden; }
.pw-wrap input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.pw-wrap button { flex: none; border: 0; border-left: 1px solid var(--line); background: var(--surface-2); padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-width: 96px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: center; }
.ok { color: #0B5A3E; }
.bad { color: var(--danger-dark); }
