/* ═══════════════════════════════════════════════════════════════
   Booking grid — Design System v0.1
   Tokens pulled from the Figma library (variable names preserved).
   Values marked [derived] are not yet published in the library's
   accessible pages and follow the same scale — replace when the
   Foundations pages are exposed.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Color / text ── (from Figma variables) */
  --text-brand: #3d4cca;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* ── Color / surface & border ── (from Figma variables) */
  --surface-canvas: #ffffff;
  --surface-subtle: #f9fafb;
  --border-subtle: #f3f4f6;
  --border-default: #e5e7eb;            /* [derived] gray-200, one step past border-subtle */

  /* ── Color / brand surfaces ── [derived from --text-brand] */
  --surface-brand: #3d4cca;
  --surface-brand-hover: #3542b5;
  --surface-brand-subtle: #eef0fc;
  --text-on-brand: #ffffff;

  /* ── Color / semantic ── [derived, same gray-ramp family] */
  --text-success: #047857;  --surface-success-subtle: #ecfdf5;
  --text-danger:  #b91c1c;  --surface-danger-subtle:  #fef2f2;
  --text-warning: #b45309;  --surface-warning-subtle: #fffbeb;

  /* ── Typography ── (from Figma variables) */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-xs: 12px;   --line-height-tight: 16px;   /* Caption */
  --font-size-sm: 13px;   --line-height-snug: 18px;    /* Body/sm */
  --font-size-lg: 16px;   --line-height-lg: 24px;      /* Body/lg */
  --font-size-xl: 18px;                                 /* Heading/xs */
  --font-size-6xl: 48px;  --line-height-3xl: 36px;     /* Display */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ── Radius ── (--radius-xl from Figma; others [derived]) */
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-full: 999px;

  /* ── Focus ring ── [derived from brand] */
  --focus-ring: 0 0 0 3px rgba(61, 76, 202, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: var(--font-size-sm); line-height: var(--line-height-snug); }

/* ── Auth ─────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface-canvas);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-sub { margin: -6px 0 6px; color: var(--text-secondary); font-size: var(--font-size-sm); }
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-lg);
  letter-spacing: -.01em;
  color: var(--text-primary);
}

/* ── Language switcher ─────────────────────────────── */
.lang-select {
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--surface-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 6px 26px 6px 10px; width: auto; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}

/* ── Segmented control (ticket type) ──────────────── */
.seg {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3px; gap: 3px;
}
.seg-btn {
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  background: transparent; border: none; border-radius: var(--radius-md);
  padding: 8px 18px; cursor: pointer;
  transition: background .12s, color .12s;
}
.seg-btn:hover { color: var(--text-primary); }
.seg-btn.active {
  background: var(--surface-canvas);
  color: var(--text-brand);
  border: 1px solid var(--border-default);
  padding: 7px 17px;
}

/* ── Topbar ───────────────────────────────────────── */
.topbar {
  height: 60px;
  background: var(--surface-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.who { display: flex; align-items: center; gap: 14px; font-size: var(--font-size-sm); color: var(--text-muted); }
#whoCompany { font-weight: var(--font-weight-semibold); color: var(--text-primary); }

/* ── Layout ───────────────────────────────────────── */
.layout {
  max-width: 1128px; /* cover grid width */
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.panel h1 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.panel h2 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 16px;
}
.panel > .muted { margin: 0 0 18px; }

/* ── Forms ────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 16px; }
label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}
label span em { color: var(--text-brand); font-style: normal; }

input, textarea, select {
  font: inherit;
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  background: var(--surface-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 10px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--text-brand);
  box-shadow: var(--focus-ring);
}

.btn {
  font: inherit;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--surface-brand); color: var(--text-on-brand); }
.btn.primary:hover { background: var(--surface-brand-hover); }
.btn.primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn.primary:disabled { opacity: .55; cursor: default; }
.btn.ghost {
  background: var(--surface-canvas);
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.btn.ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }
.link { background: none; border: none; color: var(--text-brand); cursor: pointer; font: inherit; padding: 0; }

.form-error { color: var(--text-danger); font-size: var(--font-size-sm); min-height: 0; }
.form-error:not(:empty) { background: var(--surface-danger-subtle); padding: 10px 12px; border-radius: var(--radius-lg); }
.form-ok { color: var(--text-success); font-size: var(--font-size-sm); }
.form-ok:not(:empty) { background: var(--surface-success-subtle); padding: 10px 12px; border-radius: var(--radius-lg); }

/* ── Rich-text editor ─────────────────────────────── */
.editor {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-canvas);
  overflow: hidden;
}
.editor:focus-within { border-color: var(--text-brand); box-shadow: var(--focus-ring); }
.editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
}
.editor-toolbar button {
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
  border: 1px solid transparent; background: transparent; color: var(--text-secondary);
  padding: 5px 9px; border-radius: var(--radius-md); cursor: pointer; line-height: 1;
}
.editor-toolbar button:hover { background: var(--border-subtle); color: var(--text-primary); }
.editor-toolbar button.active { background: var(--surface-brand-subtle); color: var(--text-brand); }
.tb-sep { width: 1px; height: 18px; background: var(--border-default); margin: 0 4px; }
.editor-area {
  min-height: 120px; max-height: 340px; overflow-y: auto;
  padding: 12px 13px;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  outline: none;
}
.editor-area:empty::before { content: attr(data-placeholder); color: var(--text-muted); }
.editor-area p { margin: 0 0 8px; }
.editor-area ul, .editor-area ol { margin: 0 0 8px; padding-left: 22px; }
.editor-area a { color: var(--text-brand); }

/* ── Prefilled brand field ────────────────────────── */
.brand-fixed {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-brand-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 13px;
  font-size: var(--font-size-sm);
}
.brand-fixed .b-ic { font-size: 15px; }
.brand-fixed .b-name { font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.brand-fixed .b-note { color: var(--text-muted); font-size: var(--font-size-xs); margin-left: auto; }

/* ── Dropzone ─────────────────────────────────────── */
.filelabel { gap: 7px; }
.dropzone {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--surface-canvas);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--text-brand);
  background: var(--surface-brand-subtle);
  outline: none;
}
.dz-empty strong { display: block; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.dz-empty small { color: var(--text-muted); font-size: var(--font-size-xs); }
.dz-file { display: flex; align-items: center; gap: 14px; text-align: left; }
#dzThumb {
  width: 54px; height: 54px; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--surface-canvas);
}
.dz-meta { display: flex; flex-direction: column; gap: 3px; }
#dzName { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); word-break: break-all; }

/* ── Request list ─────────────────────────────────── */
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-item {
  background: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
}
.req-item .req-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.req-item .req-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}
.req-item .req-date { color: var(--text-muted); font-size: var(--font-size-xs); white-space: nowrap; }
.req-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Chips — Caption size, subtle surfaces */
.chip {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-medium);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.chip.urg-high { background: var(--surface-warning-subtle); color: var(--text-warning); border-color: transparent; }
.chip.urg-crit { background: var(--surface-danger-subtle); color: var(--text-danger); border-color: transparent; }
.chip.status { background: var(--surface-success-subtle); color: var(--text-success); border-color: transparent; }
.chip.status.warn { background: var(--surface-warning-subtle); color: var(--text-warning); border-color: transparent; }
.chip.live { background: var(--surface-brand-subtle); color: var(--text-brand); border-color: transparent; }
.chip.live.done { background: var(--surface-success-subtle); color: var(--text-success); }
.chip.brand { background: var(--surface-brand-subtle); color: var(--text-brand); border-color: transparent; }

/* Type chips — uppercase kicker style from the cover */
.chip.type {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
}
.chip.type.request { background: var(--surface-brand-subtle); color: var(--text-brand); border-color: transparent; }
.chip.type.incident { background: var(--surface-danger-subtle); color: var(--text-danger); border-color: transparent; }

.req-links { margin-top: 10px; font-size: var(--font-size-sm); }
.req-links a { color: var(--text-brand); text-decoration: none; font-weight: var(--font-weight-medium); }
.req-links a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   Roadmap tab
   Built from the tokens above, following roadmap-prototype.html.
   NOTE for the design owner — "Booking grid v0.1" has no component
   for: tab navigation, the vote control, the progress bar, or the
   roadmap item card, and its Tag/Badge has no status / Strategic /
   selectable-chip variants. Those are composed from tokens here and
   should be codified in Figma.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tab navigation (Submit / Roadmap) ────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3px;
  margin: 0 auto;
}
.tab {
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  background: var(--surface-canvas);
  color: var(--text-brand);
  border-color: var(--border-default);
}
.tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 720px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tab { flex: 1; padding: 8px 10px; }
}

/* ── Roadmap layout ───────────────────────────────── */
.roadmap {
  max-width: 1128px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.rm-head {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}
@media (max-width: 860px) { .rm-head { grid-template-columns: 1fr; } }

.rm-head .kicker {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-brand);
  margin: 0 0 6px;
}
.rm-head h1 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.rm-head .sub { color: var(--text-muted); margin: 0; }

/* ── Progress summary card ────────────────────────── */
.progress-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
}
.progress-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.progress-nums b { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); }
.progress-nums span { color: var(--text-muted); font-size: var(--font-size-xs); }
.bar { height: 8px; background: var(--border-subtle); border-radius: var(--radius-full); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--surface-brand); border-radius: var(--radius-full); transition: width .3s ease; }
.src-note { margin-top: 10px; font-size: var(--font-size-xs); color: var(--text-muted); }

/* ── Filter chips (selectable Tag/Badge variant) ──── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fchip {
  font: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
}
.fchip:hover { color: var(--text-primary); }
.fchip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fchip.active { background: var(--surface-brand-subtle); color: var(--text-brand); border-color: transparent; }
.fchip small { font-weight: var(--font-weight-medium); color: var(--text-muted); margin-left: 4px; }
.fchip.active small { color: var(--text-brand); }

/* ── Roadmap item card ────────────────────────────── */
.rm-list { display: flex; flex-direction: column; gap: 12px; }
.rm-item {
  display: flex;
  gap: 16px;
  background: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
}
.rm-main { flex: 1; min-width: 0; }
.rm-title { font-size: 14px; font-weight: var(--font-weight-semibold); margin: 0 0 3px; }
.rm-desc { color: var(--text-secondary); margin: 0 0 9px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-empty { color: var(--text-muted); padding: 4px 0; }

/* ── Vote control ─────────────────────────────────── */
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; }
.vbtn {
  font: inherit;
  width: 44px;
  border: 1px solid var(--border-default);
  background: var(--surface-canvas);
  border-radius: var(--radius-lg);
  padding: 4px 0;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.3;
  transition: background .12s, border-color .12s, color .12s;
}
.vbtn:hover { border-color: var(--text-muted); }
.vbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vbtn:disabled { opacity: .55; cursor: default; }
.vbtn.up.on { background: var(--surface-brand-subtle); border-color: transparent; color: var(--text-brand); }
.vbtn.down.on { background: var(--surface-danger-subtle); border-color: transparent; color: var(--text-danger); }
.score { font-size: 15px; font-weight: var(--font-weight-bold); padding: 2px 0; }
.score.pos { color: var(--text-brand); }
.score.neg { color: var(--text-danger); }

/* ── Status / Strategic chip variants ─────────────── */
.chip.st-planned { background: var(--surface-subtle); color: var(--text-secondary); }
.chip.st-progress { background: var(--surface-brand-subtle); color: var(--text-brand); border-color: transparent; }
.chip.st-done { background: var(--surface-success-subtle); color: var(--text-success); border-color: transparent; }
.chip.strategic {
  background: var(--surface-warning-subtle);
  color: var(--text-warning);
  border-color: transparent;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .06em;
  font-weight: var(--font-weight-semibold);
}

/* ── Shipped section ──────────────────────────────── */
.shipped-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.shipped-head h2 { font-size: var(--font-size-lg); line-height: var(--line-height-lg); font-weight: var(--font-weight-semibold); margin: 0; }
.shipped-head .link { font-weight: var(--font-weight-medium); }
.rm-list.shipped .rm-item { opacity: .75; }

/* ── Conversation on a request ─────────────────────
   The thread mirrors a Worksection task's comments. No component for it in
   "Booking grid v0.1" either — composed from the tokens above. */
.req-item .cm-toggle { margin-top: 10px; font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); }
.thread {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.cm-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.cm-item {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 9px 11px;
}
.cm-item.mine { background: var(--surface-brand-subtle); border-color: transparent; }
.cm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.cm-author { font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.cm-item.mine .cm-author { color: var(--text-brand); }
.cm-date { font-size: var(--font-size-xs); color: var(--text-muted); white-space: nowrap; }
.cm-text { font-size: var(--font-size-sm); line-height: 1.5; color: var(--text-secondary); word-wrap: break-word; }
.cm-note { color: var(--text-muted); font-size: var(--font-size-sm); margin: 0; }
.cm-note.error { color: var(--text-danger); }

.cm-form { display: block; margin-top: 10px; }
.cm-input {
  font: inherit;
  font-size: var(--font-size-sm);
  width: 100%;
  resize: vertical;
  min-height: 56px;
  padding: 9px 11px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-canvas);
  color: var(--text-primary);
}
.cm-input:focus { border-color: var(--text-brand); box-shadow: var(--focus-ring); outline: none; }
.cm-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cm-send { padding: 7px 14px; }
.cm-error { color: var(--text-danger); font-size: var(--font-size-xs); }

/* Deadline chip — the Worksection task's date_end. */
.chip.due { background: var(--surface-subtle); color: var(--text-secondary); }
.chip.due.over { background: var(--surface-danger-subtle); color: var(--text-danger); border-color: transparent; font-weight: var(--font-weight-semibold); }

/* Roadmap toolbar: area filters on the left, sort on the right. */
.rm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rm-toolbar .filters { margin-bottom: 0; }
.rm-sort .seg-btn { font-size: var(--font-size-xs); padding: 6px 12px; }
.rm-sort .seg-btn.active { padding: 5px 11px; }
@media (max-width: 620px) { .rm-toolbar { flex-direction: column; align-items: stretch; } .rm-sort { align-self: flex-start; } }

/* ── Attached files (several per request) ─────────── */
.dropzone.full { border-style: solid; border-color: var(--border-default); }
.dz-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dz-list:empty { display: none; }
.dz-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 10px;
}
.dz-item img {
  width: 40px; height: 40px; object-fit: cover; flex: none;
  border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-subtle);
}
.dz-item .dz-ic {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; font-size: 18px;
  border-radius: var(--radius-md); background: var(--surface-subtle); border: 1px solid var(--border-subtle);
}
.dz-item .dz-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dz-item .dz-name {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dz-item .dz-size { font-size: var(--font-size-xs); color: var(--text-muted); }
.dz-item .dz-remove { flex: none; color: var(--text-muted); font-size: 14px; line-height: 1; padding: 4px 6px; }
.dz-item .dz-remove:hover { color: var(--text-danger); }

/* What may be attached — always visible, so limits aren't a surprise. */
.dz-req { margin: 8px 0 0; font-size: var(--font-size-xs); color: var(--text-muted); }
