:root {
  --ink: #1e1d1b;
  --muted: #6e6a63;
  --soft: #8a867e;
  --paper: #fbfaf7;
  --canvas: #f3f1ec;
  --line: #e8e5de;
  --line-strong: #ddd9d1;
  --signal: #f05a42;
  --green: #1f3b34;
  --radius: 14px;
  --shadow: 0 10px 30px -20px rgba(30, 29, 27, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.mini-label,
.kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--soft);
}
.kicker {
  color: #b84230;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
}
.brand {
  height: 55px;
  display: flex;
  align-items: flex-start;
  padding-left: 11px;
}
.brand img {
  width: 104px;
  height: auto;
}
.workspace-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 20px 12px 17px;
  margin: 4px 0 15px;
  border-bottom: 1px solid var(--line-strong);
}
.workspace-name strong {
  font-size: 14px;
  font-weight: 600;
}
.workspace-name small {
  font-size: 12px;
  color: var(--muted);
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #5a5650;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 10px;
  font-weight: 500;
  transition:
    background 0.22s,
    color 0.22s,
    transform 0.22s;
}
.nav-item:hover {
  background: #e9e6df;
  transform: translateX(2px);
}
.nav-item.active {
  background: #e5e1d9;
  color: var(--ink);
}
.nav-symbol {
  width: 19px;
  text-align: center;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-top: 1px solid var(--line-strong);
}
.sidebar-foot div {
  display: flex;
  flex-direction: column;
}
.sidebar-foot strong {
  font-size: 13px;
  font-weight: 500;
}
.sidebar-foot small {
  font-size: 11px;
  color: var(--muted);
}
.local-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: #6e9874;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #dee9dd;
}
.local-dot.error {
  background: #bd3e32;
  box-shadow: 0 0 0 4px #f1d9d5;
}
.workspace-signout {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 5px 2px;
  margin-left: auto;
}
.workspace-signout:hover {
  color: var(--ink);
}
.shell.auth-locked {
  min-height: 100vh;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
}
.auth-locked .sidebar,
.auth-locked .topbar {
  display: none;
}
.auth-locked .work-area {
  width: min(560px, 100%);
}
.auth-locked #app {
  padding: 0;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px -46px rgba(30, 29, 27, 0.35);
  padding: clamp(28px, 6vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.auth-card > img {
  width: 104px;
  margin-bottom: 14px;
}
.auth-card h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.auth-card p,
.auth-card small {
  margin: 0;
  color: var(--muted);
}
.auth-card small {
  font-size: 12px;
}
.auth-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 10px 0 2px;
}
.auth-actions .button {
  width: 100%;
}
.auth-message {
  width: 100%;
  color: #8b3329;
  background: #fbefed;
  border: 1px solid #f0d9d5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.staff-auth-form { width: 100%; margin-top: 12px; }
.staff-auth-form fieldset { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.staff-auth-form .field { font-size: 13px; }
.staff-auth-form input { height: 48px; }
.staff-auth-form .auth-submit { width: 100%; min-height: 48px; margin-top: 4px; justify-content: center; }
.auth-links { margin: 2px 0 14px; width: 100%; }
.auth-links .text-link { color: var(--muted); font-size: 13px; }
.auth-identity { padding: 10px 12px; background: #f7f5f0; border-radius: 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.auth-notice { padding: 12px 14px; border: 1px solid #e3e5db; border-radius: 8px; background: #f5f6ef; color: #58604d; font-size: 13px; }
.auth-card .auth-password-hint { font-size: 12px; line-height: 1.6; }
.auth-spinner { width: 15px; height: 15px; border: 1.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: auth-spin .65s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.work-area {
  min-width: 0;
}
.topbar {
  height: 70px;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3.5vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb span {
  margin: 0 10px;
  color: #b9b4aa;
}
.crumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px -10px var(--ink);
}
.button:active:not(:disabled) {
  transform: translateY(0);
}
.button.primary {
  background: var(--ink);
  color: white;
}
.button.primary:hover:not(:disabled) {
  background: #393631;
}
.button.secondary {
  background: white;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover:not(:disabled) {
  border-color: #aca69c;
}
.button.quiet {
  background: transparent;
  color: var(--muted);
}
.text-link,
.row-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #b9b4aa;
  text-underline-offset: 4px;
}
.text-link:hover,
.row-link:hover {
  color: #b84230;
  text-decoration-color: #b84230;
}
.page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 40px clamp(24px, 3.5vw, 52px) 90px;
}
.page-enter {
  animation: pageIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes pageIn {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: clamp(28px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin: 6px 0 8px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 192px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d0cbc2;
}
.quick-card.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.quick-card.dark:hover {
  background: #35322e;
}
.quick-card .quick-icon {
  font-size: 31px;
  line-height: 1;
  font-weight: 400;
}
.quick-card strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.quick-card small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.quick-card.dark small {
  color: #b9b4aa;
}
.quick-arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 19px;
  color: var(--soft);
}
.quick-card.dark .quick-arrow {
  color: var(--signal);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 39px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.metrics > div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.metrics > div:last-child {
  border: 0;
}
.metrics span {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  font:
    500 26px "Geist Mono",
    monospace;
  letter-spacing: -0.04em;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 15px;
}
.section-title h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-title > span {
  font-size: 12px;
  color: var(--soft);
}
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}
.table-card th {
  height: 42px;
  background: #f8f7f4;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 18px;
  white-space: nowrap;
}
.table-card td {
  padding: 16px 18px;
  border-top: 1px solid #f0eee9;
  font-size: 13px;
  vertical-align: middle;
}
.table-card tbody tr {
  transition: background 0.2s;
}
.table-card tbody tr:hover {
  background: #fbfaf7;
}
.table-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
}
.status.draft {
  color: #716341;
  background: #f2ecd9;
}
.status.issued {
  color: #225746;
  background: #e1f1e8;
}
.helper,
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.helper {
  margin-top: 23px;
  padding: 14px 16px;
  background: var(--canvas);
  border-radius: 9px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.search {
  height: 44px;
  width: min(390px, 100%);
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 9px;
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #b9a099 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 90, 66, 0.12);
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.company-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  column-gap: 14px;
  row-gap: 22px;
  align-items: center;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  min-height: 157px;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.company-card:hover {
  transform: translateY(-3px);
  border-color: #c8c2b8;
  box-shadow: var(--shadow);
}
.company-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--company, #1f3b34);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.company-avatar.big {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 17px;
}
.company-card strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.company-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.company-tag {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
}
.company-foot {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.company-foot span {
  margin: 0 7px;
  color: #b5afa5;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 132px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 17px;
}
.form-card > h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.form-card > p {
  margin: 0 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 19px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  resize: vertical;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input[type="color"] {
  padding: 4px;
  max-width: 100px;
}
.location-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.location-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-trigger svg { flex-shrink: 0; color: #77736c; transition: transform .18s; }
.location-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.location-trigger:hover { border-color: #aaa69d; }
.location-trigger:focus-visible, .location-trigger[aria-expanded="true"] { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px #211f1b0c; }
.location-trigger[aria-invalid="true"] { border-color: #cf5e48; }
.location-trigger.is-placeholder { color: #88847b; font-weight: 400; }
.location-trigger:disabled { background: #f7f6f3; color: #aaa69d; cursor: default; }
.location-menu {
  position: fixed;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid #e3e0d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 36px #211f1b1c, 0 2px 6px #211f1b08;
  animation: location-open .12s ease-out;
}
.location-menu[hidden] { display: none; }
.location-search-wrap { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e7e4dd; border-radius: 7px; background: #faf9f7; }
.location-search-wrap svg { flex-shrink: 0; color: #878278; }
.field .location-search { min-height: 38px; padding: 8px 0; border: 0; background: transparent; border-radius: 0; box-shadow: none; outline: none; font-size: 13px; }
.location-context { color: #888278; font-size: 11px; padding: 10px 8px 6px; line-height: 1.5; }
.location-context:empty { display: none; }
.location-options { overflow-y: auto; overscroll-behavior: contain; min-height: 38px; padding-top: 4px; scrollbar-width: thin; }
.location-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.location-option:hover, .location-option.is-highlighted { background: #f4f2ed; }
.location-option[aria-selected="true"] { background: #eeece6; font-weight: 600; }
.location-option small { color: #8d877d; font-size: 11px; white-space: nowrap; }
.location-custom { border-top: 1px solid #ebe8e2; border-radius: 0; margin-top: 4px; }
.location-source { font-size: 10px; color: #99938a; padding: 9px 9px 3px; border-top: 1px solid #f0ede8; }
.location-source a { color: inherit; text-underline-offset: 2px; }
.location-empty { padding: 20px 10px; text-align: center; color: #8d877d; font-size: 12px; }
.location-loading { display: grid; gap: 8px; padding: 10px; }
.location-loading i { display: block; height: 17px; border-radius: 4px; background: #f2f0eb; animation: pulse 1s infinite alternate; }
.location-loading i:nth-child(2) { width: 75%; }
.location-loading i:nth-child(3) { width: 55%; }
.delivery-recipients { margin: 18px 0; display: grid; gap: 12px; }
.delivery-recipients > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 13px; }
.delivery-recipients dt { color: var(--muted); }
.delivery-recipients dd { margin: 0; overflow-wrap: anywhere; }
.delivery-recipients small { display: inline-block; margin-left: 12px; color: #6f786a; text-transform: capitalize; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.delivery-card > small { color: var(--muted); font-size: 12px; }
@keyframes location-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .location-menu, .location-loading i { animation: none; } }
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.upload-field input {
  padding: 10px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  max-width: 100%;
  font-size: 12px;
}
.upload-field small,
.file-current {
  color: var(--muted);
  font-size: 12px;
}
.form-section {
  margin: 0;
}
.choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.choice-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.choice-pill:has(input:checked) {
  border-color: var(--ink);
  background: #f2efea;
}
.choice-pill input {
  accent-color: var(--ink);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 17px 0 5px;
}
.template-option {
  cursor: pointer;
}
.template-option input {
  position: absolute;
  opacity: 0;
}
.template-option > strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
}
.template-preview {
  display: block;
  height: 112px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  padding: 13px;
}
.template-option:has(input:checked) .template-preview {
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(30, 29, 27, 0.08);
}
.template-preview i {
  display: block;
  width: 30%;
  height: 11px;
  background: #273e3a;
  margin-bottom: 7px;
}
.template-preview b {
  position: absolute;
  right: 14px;
  top: 11px;
  font-size: 13px;
  color: #aaa;
  font-family: "Geist Mono", monospace;
}
.template-preview em {
  display: block;
  height: 4px;
  background: #e4e0d9;
  margin-top: 10px;
  width: 78%;
}
.template-preview em:nth-last-child(1) {
  width: 60%;
}
.template-preview.t-column {
  border-left: 8px solid #273e3a;
}
.template-preview.t-folio i {
  width: 65%;
  height: 8px;
  background: #9b645c;
}
.template-preview.t-folio:before {
  content: "";
  position: absolute;
  top: 37px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #9b645c;
}
.template-preview.t-frame:after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 37px;
  border: 1px solid #273e3a;
}
.template-preview.t-band:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: #273e3a;
}
.template-preview.t-band i {
  position: relative;
  background: white;
  z-index: 1;
}
.template-preview.t-monogram:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 13px;
  width: 30px;
  height: 30px;
  background: #273e3a;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sticky-actions > div {
  display: flex;
  gap: 10px;
}
.detail-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
  margin-bottom: 24px;
}
.detail-hero > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.detail-hero strong {
  font-size: 17px;
  font-weight: 500;
}
.detail-hero small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.detail-meta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.detail-meta span {
  background: var(--canvas);
  border-radius: 6px;
  padding: 6px 9px;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 24px;
}
.tab {
  background: transparent;
  border: 0;
  padding: 12px 15px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
}
.tab.active {
  color: var(--ink);
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #f0eee9;
  font-size: 13px;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  max-width: 62%;
  overflow-wrap: anywhere;
}
.identity-mini {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  min-height: 180px;
  box-shadow: var(--shadow);
}
.identity-top {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 2px solid var(--company);
  padding-bottom: 13px;
}
.identity-top strong {
  font-size: 13px;
  font-weight: 500;
}
.identity-mini p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 22px;
}
.identity-lines i {
  display: block;
  height: 5px;
  background: #e8e5de;
  margin-bottom: 8px;
}
.identity-lines i:nth-child(2) {
  width: 80%;
}
.identity-lines i:nth-child(3) {
  width: 64%;
}
.document-list {
  margin-top: 20px;
}
.document-list > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.document-list > div > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.document-list strong {
  font-size: 13px;
  font-weight: 500;
}
.document-list small {
  color: var(--muted);
  font-size: 11px;
}
.doc-icon {
  font-size: 21px;
  color: var(--muted);
}
.icon-button {
  border: 0;
  background: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 21px;
  color: var(--soft);
  line-height: 1;
}
.icon-button:hover {
  background: var(--canvas);
  color: var(--ink);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 29, 27, 0.48);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  background: var(--paper);
  border-radius: 16px;
  width: min(700px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 25px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 23px;
  font-weight: 500;
  margin: 4px 0;
}
.modal h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 25px 0 4px;
}
.modal-actions {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.prices {
  grid-template-columns: repeat(4, 1fr);
}
.steps {
  display: flex;
  gap: 9px;
  margin-bottom: 26px;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  transition:
    background 0.22s,
    transform 0.22s;
}
.step:hover {
  transform: translateY(-1px);
}
.step span {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
}
.step.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.step.complete {
  background: #e7efe9;
  border-color: #d7e9db;
  color: #225746;
}
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}
.selection-list {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}
.selection-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  text-align: left;
  min-height: 72px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.selection-card:hover,
.product-option:hover {
  border-color: #bcb6ac;
  transform: translateY(-1px);
}
.selection-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(30, 29, 27, 0.07);
}
.selection-card:not(.compact) > span:nth-child(2),
.selection-card.compact > span:first-child {
  flex: 1;
}
.selection-card strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.selection-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.selection-card.compact {
  min-height: 62px;
}
.selection-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: var(--soft);
  font-size: 16px;
}
.selection-card.selected .selection-check {
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.price-source {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.price-overrides {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.price-overrides summary { cursor: pointer; font-weight: 600; }
.price-overrides .prices { margin-top: 14px; }
.copy-list {
  max-height: 330px;
  overflow-y: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.copy-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.copy-product:last-child { border-bottom: 0; }
.copy-product strong, .copy-product small { display: block; }
.copy-product small { color: var(--muted); margin-top: 3px; }
.target-total {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper, #fbfaf7);
}
.target-total > div:first-child { flex: 1; }
.target-total strong, .target-total small { display: block; }
.target-total small { color: var(--muted); margin-top: 4px; }
.target-total .field { width: 185px; }
.target-warning { color: #a34832; }
@media (max-width: 650px) {
  .target-total { align-items: stretch; flex-direction: column; }
  .target-total .field { width: 100%; }
}
.summary-card {
  position: sticky;
  top: 93px;
  background: #f3f1ec;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
}
.summary-card dl {
  margin: 19px 0;
}
.summary-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
}
.summary-card dt {
  color: var(--muted);
}
.summary-card dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  max-width: 65%;
}
.summary-total {
  border-top: 1px solid var(--line-strong);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-total strong {
  font-family: "Geist Mono", monospace;
  font-size: 16px;
  font-weight: 500;
}
.summary-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.segment {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  margin: 5px 0 17px;
}
.segment button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}
.segment button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}
.section-divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.product-results {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  margin: 17px 0;
}
.product-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  padding: 12px 14px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.product-option strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.product-option small {
  font-size: 11px;
  color: var(--muted);
}
.product-option .mono {
  font-size: 11px;
  white-space: nowrap;
}
.product-option b {
  font-size: 16px;
  margin-left: 8px;
}
.line-section {
  margin: 28px 0 13px;
}
.item-table {
  min-width: 700px;
}
.item-table td {
  padding: 9px !important;
}
.item-table th {
  padding: 0 9px !important;
}
.item-table th:nth-child(1) {
  width: 31%;
}
.item-table th:nth-child(2) {
  width: 11%;
}
.item-table th:nth-child(3) {
  width: 12%;
}
.item-table th:nth-child(4) {
  width: 20%;
}
.item-table th:nth-child(5) {
  width: 19%;
}
.item-table input[data-key="price"] {
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.item-table input[data-key="price"]::-webkit-inner-spin-button,
.item-table input[data-key="price"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.item-table input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
}
.item-table td.mono {
  font-size: 11px;
  white-space: nowrap;
}
.invoice-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding: 20px 0 7px;
  font-size: 13px;
}
.invoice-adjustment-row {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.invoice-adjustment-row strong { color: var(--ink); }
.invoice-total-row strong {
  font-size: 18px;
  font-weight: 500;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
}
.pdf-panel {
  height: min(76vh, 800px);
  min-height: 560px;
  background: #e9e6df;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  overflow: hidden;
}
.pdf-panel iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  background: white;
  box-shadow: 0 15px 36px -18px rgba(0, 0, 0, 0.36);
}
.pdf-skeleton {
  width: min(100%, 480px);
  height: 100%;
  background: #fff;
  margin: auto;
  padding: 45px 38px;
  box-shadow: var(--shadow);
}
.skeleton {
  background: linear-gradient(90deg, #eeece7 25%, #f8f7f4 50%, #eeece7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.7s infinite;
  border-radius: 3px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.s-title {
  height: 25px;
  width: 65%;
  margin-bottom: 60px;
}
.s-row {
  height: 12px;
  width: 90%;
  margin-bottom: 15px;
}
.s-block {
  height: 150px;
  width: 100%;
  margin-top: 65px;
}
.pdf-skeleton p {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 35px;
}
.review-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  position: sticky;
  top: 92px;
}
.review-aside h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.review-aside p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.review-aside .detail-list {
  margin: 22px 0;
}
.review-actions {
  display: grid;
  gap: 9px;
}
.review-actions .button {
  width: 100%;
}
.review-aside .text-link {
  margin-top: 12px;
}
.error {
  background: #fcede9;
  color: #9e3728 !important;
  padding: 10px;
  border-radius: 7px;
}
.issued-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 19px;
}
.issued-bar > span:nth-child(2) {
  font:
    500 17px "Geist Mono",
    monospace;
}
.issued-bar > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.issued-bar + .pdf-panel {
  max-width: 780px;
  height: 850px;
}
.send-card {
  margin-top: 24px;
  max-width: 780px;
}
.send-card h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 6px;
}
.send-card p {
  color: var(--muted);
  font-size: 13px;
  max-width: 550px;
}
.send-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 23px;
  right: 23px;
  z-index: 50;
  max-width: 380px;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1140px) {
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compose-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .review-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .detail-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 9px;
  }
  .brand {
    padding: 0;
    justify-content: center;
    height: 50px;
  }
  .brand img {
    width: 45px;
    object-fit: cover;
    object-position: left;
    height: 22px;
  }
  .workspace-name,
  .nav-item {
    font-size: 0;
  }
  .workspace-name {
    display: none;
  }
  .nav-item {
    justify-content: center;
    margin-top: 5px;
    padding: 11px;
  }
  .nav-symbol {
    font-size: 22px;
  }
  .sidebar-foot div {
    display: none;
  }
  .sidebar-foot {
    justify-content: center;
  }
  .topbar {
    padding: 0 24px;
  }
  .compose-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-aside {
    position: static;
    order: -1;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
    padding-bottom: 63px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    display: block;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 4px 9px;
    z-index: 20;
  }
  .sidebar .brand,
  .sidebar .workspace-name,
  .sidebar .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    font-size: 10px;
    margin: 0;
    padding: 3px 8px;
    min-width: 64px;
  }
  .nav-symbol {
    font-size: 20px;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
  }
  .top-actions > span {
    display: none;
  }
  .top-actions .button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
  .page {
    padding: 25px 16px 70px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-card {
    min-height: 125px;
    padding: 17px;
  }
  .quick-card .quick-icon {
    font-size: 25px;
  }
  .quick-card strong {
    font-size: 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics > div:nth-child(2) {
    border-right: 0;
  }
  .metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .company-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .form-card {
    padding: 19px;
  }
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-meta {
    margin-left: 0;
    justify-content: flex-start;
    width: 100%;
  }
  .steps {
    gap: 4px;
  }
  .step {
    padding: 6px 9px;
    font-size: 11px;
    gap: 5px;
  }
  .step span {
    font-size: 10px;
  }
  .pdf-panel {
    height: 530px;
    min-height: 0;
    padding: 8px;
  }
  .review-aside {
    padding: 19px;
  }
  .prices {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal {
    padding: 18px;
  }
  .sticky-actions {
    margin-top: 20px;
    padding: 10px 0;
  }
  .sticky-actions .button {
    padding: 0 10px;
    font-size: 12px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
}
.pdf-panel {
  overflow: auto;
}
.pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pdf-pages canvas {
  display: block;
  width: 100%;
  max-width: 710px;
  height: auto;
  background: #fff;
  box-shadow: 0 15px 36px -18px rgba(0, 0, 0, 0.36);
}
.danger-link {
  color: #a04032 !important;
  margin-top: 16px;
}
.danger-link:hover {
  color: #812f24 !important;
}
.row-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.row-actions .danger-link {
  margin: 0;
  text-decoration-color: transparent;
}
.expiry {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.expiry.valid {
  background: #e1f1e8;
  color: #225746;
}
.expiry.soon {
  background: #fff0d8;
  color: #815b20;
}
.expiry.expired {
  background: #fce6e2;
  color: #a04032;
}
#document-form .upload-field {
  margin: 20px 0 14px;
}
.hs-field {
  margin-top: 5px;
  border-style: dashed !important;
  color: var(--muted);
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink);
  margin: 14px 0 18px;
}
.checkbox-line input {
  accent-color: var(--ink);
}
.warning-box {
  background: #fff3e6;
  color: #744d21;
  border: 1px solid #f1debe;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 15px 0;
}
.warning-box .text-link {
  display: block;
  margin-top: 5px;
  color: #744d21;
}
/* Company design studio and persistent, actionable validation. */
.letterhead-studio{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1fr);gap:32px;margin-top:28px;align-items:start}
.letterhead-controls{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.letterhead-controls h3{font-size:22px;font-weight:500;letter-spacing:-.03em;margin:0}
.letterhead-controls .field{width:100%}
.letterhead-controls p{margin:0;line-height:1.6}
.letterhead-buttons{display:flex;flex-wrap:wrap;gap:8px}
.letterhead-preview{padding:18px;background:#E8E4DC;border:1px solid var(--line);border-radius:12px;min-height:300px;transition:opacity .18s ease;overflow:hidden}
.letterhead-preview canvas{display:block;width:100%;height:auto;box-shadow:0 6px 22px #1e1d1b18;background:white}
.letterhead-preview.is-updating{opacity:.6}
.design-code{font-family:'Geist Mono',monospace;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.design-description{font-size:13px;color:var(--muted);min-height:40px}
.invoice-layout-options{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.invoice-layout-options summary{cursor:pointer;font-weight:500;margin-bottom:16px}
.validation-panel{border:1px solid #E6B1A7;background:#FFF5F2;border-radius:12px;padding:18px 22px;margin-bottom:22px;color:#8C2E20;scroll-margin-top:100px}
.validation-panel[hidden],.field-error[hidden]{display:none}
.validation-panel strong{font-size:15px;display:block}
.validation-panel ul{margin:10px 0 0;padding-left:20px;line-height:1.6}
.validation-panel li+li{margin-top:6px}
.validation-panel li>button:not(.text-link){padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:#8C2E2050;text-underline-offset:3px}
.field-error{display:block;color:#A23423;font-size:12px;line-height:1.5;white-space:normal;margin-top:6px}
[aria-invalid="true"]{border-color:#C15340!important;outline:2px solid #C1534024;outline-offset:2px;scroll-margin-top:120px}
.selection-list[aria-invalid="true"],[data-items-picker][aria-invalid="true"]{border:1px solid #C15340;border-radius:10px;padding:10px}
.item-table td>.field-error{max-width:230px}
.setup-checklist .text-link{display:inline;font-size:12px;padding:0;margin-left:4px}
@media(max-width:900px){.letterhead-studio{grid-template-columns:1fr}.letterhead-preview{max-width:500px;width:100%;box-sizing:border-box}.letterhead-controls{gap:14px}}
@media(prefers-reduced-motion:reduce){.letterhead-preview{transition:none}}
