/* Caffenza Docs — black & white */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --cream: #efefef;
  --ink: #111111;
  --muted: #555555;
  --mocha: #000000;
  --bordeaux: #000000;
  --tan: #c4c4c4;
  --line: #e3e3e3;
  --brand: #000000;
  --brand-ink: #ffffff;
  --link: #000000;
  --code-bg: #f2f2f2;
  --note: #f7f7f7;
  --tip: #f7f7f7;
  --tip-line: #000000;
  --warn: #f7f7f7;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --radius: 12px;
  --topbar: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em; }
code { background: var(--code-bg); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: var(--topbar); padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 20px/1 var(--font-head); }
.brand-mark { width: 32px; height: 32px; color: var(--brand); flex: none; }
.brand em { font: 500 13px/1 var(--font-body); font-style: normal; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 99px; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input {
  width: 100%; height: 40px; padding: 0 40px 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
.search input:focus { outline: 2px solid var(--mocha); outline-offset: 0; border-color: transparent; }
.search kbd { position: absolute; right: 10px; top: 9px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; color: var(--muted); font-size: 12px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / .14); padding: 6px;
}
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--cream); }
.search-results small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.search-results span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.search-results mark { background: #000; color: #fff; border-radius: 3px; padding: 0 2px; }
.search-results .empty { padding: 12px; color: var(--muted); }
.toplinks { display: flex; gap: 18px; }
.toplinks a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.toplinks a:hover { color: var(--link); }
.menu-toggle { display: none; }

/* ---------- Layout */
.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 220px;
  gap: 48px;
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
}
.layout--wide { grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--topbar); align-self: start;
  height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 24px 8px 40px 0; border-right: 1px solid var(--line);
}
.sidebar details { margin-bottom: 4px; }
.sidebar summary {
  cursor: pointer; list-style: none; padding: 8px 10px; border-radius: 8px;
  font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center;
}
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; }
.sidebar details[open] > summary::after { transform: rotate(45deg); }
.sidebar summary:hover { background: var(--surface); }
.sidebar ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 10px; }
.sidebar li a { display: block; padding: 6px 10px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.sidebar li a:hover { color: var(--ink); border-left-color: var(--tan); }
.sidebar li a[aria-current="page"] { color: var(--mocha); border-left: 2px solid var(--mocha); font-weight: 600; background: var(--surface); border-radius: 0 6px 6px 0; }

.content { padding: 32px 0 64px; min-width: 0; max-width: 820px; }
.layout--wide .content { max-width: none; }
.toc { position: sticky; top: calc(var(--topbar) + 32px); align-self: start; font-size: 14px; max-height: calc(100vh - var(--topbar) - 48px); overflow-y: auto; padding-top: 32px; }
.toc-title { font-weight: 600; margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); }
.toc a:hover, .toc a.is-active { color: var(--mocha); border-left-color: var(--mocha); }

/* ---------- Typography */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--mocha); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 12px; }
h2 { font-size: 26px; margin: 48px 0 14px; padding-top: 8px; }
h3 { font-size: 20px; margin: 32px 0 10px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); }
.content p, .content li { max-width: 72ch; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 6px 0; }
.chip { display: inline-block; vertical-align: middle; font: 500 12px/1 var(--font-body); color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 99px; margin-left: 6px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 42px; margin: 12px 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #000; color: #fff; font-weight: 600; font-size: 14px;
  display: grid; place-items: center;
}

/* Callouts */
.callout { border-left: 3px solid var(--tan); background: var(--note); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; }
.callout > strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mocha); margin-bottom: 2px; }
.callout p { margin: 0; }
.callout--tip { border-color: var(--tip-line); background: var(--tip); }
.callout--warn { border-color: #000; border-left-width: 5px; background: var(--warn); }
.callout--warn > strong { color: var(--bordeaux); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; min-width: 160px; }
table.settings td:nth-child(2) { color: var(--muted); min-width: 140px; }
table.settings td:nth-child(3) { min-width: 220px; }
tr.group th { background: var(--cream); color: var(--mocha); font-family: var(--font-head); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Palette swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.swatches span { font-size: 14px; font-weight: 600; line-height: 1.4; }
.swatches span::before { content: ""; display: block; height: 64px; border-radius: 10px; background: var(--c); border: 1px solid var(--line); margin-bottom: 8px; }
.swatches code { font-weight: 400; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--mocha); font-weight: 600; }
.pager a:hover { border-color: var(--mocha); }
.pager small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.pager .next { text-align: right; }

/* ---------- Home */
.hero { text-align: center; padding: 56px 16px 32px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); max-width: 16ch; margin: 8px auto 16px; }
.hero .lead { max-width: 60ch; margin: 0 auto 24px; }
.eyebrow { color: var(--bordeaux); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0; }
.hero-search {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  width: min(100%, 460px); height: 52px; padding: 0 16px 0 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--muted); font: inherit; cursor: text; box-shadow: 0 10px 30px rgb(0 0 0 / .06);
}
.hero-search kbd { border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-size: 12px; }
.popular { max-width: 900px; margin: 8px auto 40px; text-align: center; }
.popular h2 { font-size: 18px; margin: 0 0 12px; color: var(--muted); font-family: var(--font-body); }
.popular ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.popular a { display: inline-block; padding: 7px 14px; border-radius: 99px; background: var(--cream); color: var(--mocha); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.popular a:hover { background: #000; color: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); scroll-margin-top: calc(var(--topbar) + 16px); }
.cat-card:target { border-color: var(--mocha); }
.cat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: var(--mocha); }
.cat-card h2 { font-size: 22px; margin: 16px 0 6px; padding: 0; }
.cat-card p { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.cat-card ul { list-style: none; padding: 0; margin: 0; }
.cat-card li { margin: 0; border-top: 1px solid var(--line); }
.cat-card li a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.cat-card li a:hover { color: var(--link); }
.cat-card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
.help-strip { margin: 40px 0 0; padding: 28px; border-radius: 16px; background: var(--cream); text-align: center; }
.help-strip h2 { margin: 0 0 6px; padding: 0; font-size: 24px; }
.help-strip p { margin: 0 auto; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

/* ---------- Responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --topbar: 60px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .toplinks { display: none; }
  .brand em { display: none; }
  .search kbd { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
  }
  .menu-toggle span::before { position: absolute; top: -6px; }
  .menu-toggle span::after { position: absolute; top: 6px; }
  .layout, .layout--wide { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .sidebar {
    position: fixed; top: var(--topbar); left: 0; bottom: 0; z-index: 25;
    width: min(86vw, 320px); height: auto; padding: 16px;
    background: var(--bg); border-right: 1px solid var(--line);
    transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .4); }
  .content { padding-top: 20px; }
  h2 { font-size: 23px; margin-top: 40px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Screenshots */
.figure { margin: 24px 0 32px; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.figure--mobile img, .figure--mobile .shot-slot { max-width: 320px; margin: 0 auto; }
.figure--editor img { max-width: 640px; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.shot-slot {
  display: grid; place-content: center; gap: 6px; text-align: center;
  min-height: 220px; padding: 24px;
  border: 2px dashed #9a9a9a; border-radius: var(--radius); background: var(--surface);
  color: var(--muted); font-size: 14px;
}
.figure--mobile .shot-slot { min-height: 420px; }
.shot-slot b { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.shot-slot code { justify-self: center; }

/* ---------- Support Page (Get in Touch Form) */
.support-wrapper {
  min-height: calc(100vh - var(--topbar));
  background: radial-gradient(120% 70% at 50% 0%, #f6f3eb 0%, #ffffff 75%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 44px 20px 32px;
}
.support-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.support-intro {
  text-align: center;
  margin-bottom: 28px;
}
.support-badge-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px -4px rgba(17, 17, 17, 0.22);
  transition: transform .2s ease;
}
.support-badge-icon:hover {
  transform: scale(1.05);
}
.support-badge-icon svg {
  width: 24px;
  height: 24px;
}
.support-intro h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.support-intro p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
  line-height: 1.5;
}

/* Card */
.support-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 36px 40px;
  box-shadow: 0 20px 50px -12px rgba(22, 19, 15, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.support-card-head {
  margin-bottom: 24px;
}
.support-card-head h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  padding: 0;
  letter-spacing: -0.01em;
}
.support-card-head p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

/* Form controls */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-field label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0 16px;
  height: 48px;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9c9a96;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.form-field textarea {
  height: auto;
  min-height: 128px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.55;
}

/* Custom Select styling */
.select-wrap {
  position: relative;
  width: 100%;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-color: #ffffff;
}
.select-wrap .select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  width: 18px;
  height: 18px;
  transition: transform .15s ease;
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.15);
}
.btn-submit:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -2px rgba(17, 17, 17, 0.25);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Success State */
.support-success-panel {
  text-align: center;
  padding: 16px 8px 8px;
  animation: fadeIn .3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.success-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #edf7ee;
  color: #1e7e34;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(30, 126, 52, 0.15);
}
.success-icon-badge svg {
  width: 28px;
  height: 28px;
}
.support-success-panel h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.support-success-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto 24px;
}
.support-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}

/* Button Spinner */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
  display: inline-block;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Support Footer */
.support-page-footer {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: 13.5px;
}
.support-page-footer p {
  margin: 4px 0;
}
.support-page-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.support-page-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .support-wrapper {
    padding: 32px 16px 28px;
  }
  .support-card {
    padding: 26px 20px 30px;
    border-radius: 16px;
  }
  .support-intro h1 {
    font-size: 30px;
  }
}


/* --- File Upload Component (§21 Compliance) --- */
.file-dropzone {
  position: relative;
  border: 1.5px dashed var(--tan, #c4c4c4);
  border-radius: 12px;
  background: var(--surface, #fafafa);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--ink, #111111);
  background: var(--cream, #efefef);
}
.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.file-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.file-upload-icon {
  width: 26px;
  height: 26px;
  color: var(--muted, #555555);
}
.file-dropzone-text {
  font-size: 13.5px;
  color: var(--ink, #111111);
  font-weight: 500;
}
.file-dropzone-cta {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file-dropzone-hint {
  font-size: 12px;
  color: var(--muted, #555555);
}
.file-preview-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg, #ffffff);
  border: 1px solid var(--line, #e3e3e3);
  border-radius: 8px;
  position: relative;
  z-index: 3;
}
.file-selected-icon {
  width: 24px;
  height: 24px;
  color: var(--ink, #111111);
  flex-shrink: 0;
}
.file-selected-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  flex: 1;
}
.file-selected-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-selected-size {
  font-size: 11.5px;
  color: var(--muted, #555555);
}
.btn-remove-file {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--muted, #555555);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.btn-remove-file:hover {
  color: #b91c1c;
  background: #fee2e2;
}
.btn-remove-file svg {
  width: 18px;
  height: 18px;
}
/* Ensure logo can never expand if CSS fails */
.brand-mark, svg.brand-mark {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  flex-shrink: 0 !important;
}
