:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #282521;
  background: #faf8f4;
  --ink: #282521;
  --muted: #6b6259;
  --line: #e4ded5;
  --paper: #fffdfa;
  --ground: #faf8f4;
  --rail: #efebe3;
  --accent: #951f19;
  --accent-dark: #751813;
  --wash: #f6e8e2;
  --warning: #80501c;
  --warning-wash: #faf0df;
  --motion: 220ms cubic-bezier(.22,.68,.26,1);
  font-synthesis: none;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
body:has(dialog[open], .menu-open) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
button, a { touch-action: manipulation; }
a { color: var(--accent-dark); }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, .detail-head h2, .dialog-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.047em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6vw, 71px); }
h1:focus, .dialog-head h2:focus { outline: none; }
h2 { font-size: 20px; letter-spacing: -.025em; }
h3 { font-size: 15px; }
small, .small { font-size: 13px; color: var(--muted); }
.shell { display: grid; grid-template-columns: 209px minmax(0,1fr); min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 29px 15px 16px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 25px; }
.brand img, .public-header img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.035em; }
.brand span { color: var(--muted); font-size: 12px; }
.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { border-top: 1px solid #dbd3c8; margin-top: 18px; padding-top: 17px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  color: #4e4740;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
}
.nav-link svg { width: 17px; height: 17px; color: #766a60; }
.nav-link:hover { background: #e7e1d7; }
.nav-link.active { color: var(--accent-dark); border-left-color: var(--accent); background: #fffaf5; font-weight: 700; }
.nav-link.active svg { color: var(--accent); }
.workspace-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 1px 4px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid #dbd3c8;
}
.workspace-button:hover .org-label { color: var(--accent-dark); }
.org-mark { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border: 1px solid #d7cfc2; color: #65554a; font-size: 12px; font-weight: 750; }
.org-mark:has(img) { border-radius: 50%; overflow: hidden; }
.org-mark img { width: 100%; height: 100%; object-fit: cover; }
.profile-preview { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.profile-preview .org-mark { width: 56px; height: 56px; font-size: 18px; }
.org-label { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 650; font-size: 13px; }
.org-label small { display: block; font-weight: 400; font-size: 12px; }
.workspace-button > svg { width: 14px; }
.main { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 clamp(24px,5vw,78px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; font-weight: 650; min-width: 0; }
.topbar-left span { overflow-wrap: anywhere; }
.mode-label { font-size: 13px; white-space: nowrap; }
.menu-scrim, .btn.menu-button, .btn.menu-close { display: none; }
.workspace { max-width: 1520px; margin: 0 auto; padding: clamp(30px,5vw,64px) clamp(24px,5vw,78px) 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 32px; }
.page-head p { color: var(--muted); margin-top: 9px; line-height: 1.4; }
.page-actions, .button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-actions { justify-content: flex-end; padding-bottom: 2px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #d9cfc4;
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: #f3ece3; border-color: #b4a697; }
.btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.transparent { background: transparent; }
.btn.danger { color: var(--accent-dark); }
.btn.icon-only { padding: 8px; min-width: 38px; }
.inbox-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.summary-state {
  --state-ink: var(--muted);
  display: grid;
  grid-template-columns: 17px minmax(0,1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 9px clamp(8px,1.1vw,16px) 10px;
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  color: var(--state-ink);
  background: transparent;
}
.summary-state:last-child { border-right: 0; }
.summary-state svg { width: 17px; height: 17px; }
.summary-state:hover { background: var(--ground); }
.summary-state[aria-pressed=true] { background: var(--wash); box-shadow: inset 0 -2px var(--state-ink); }
.summary-state:focus-visible { outline-offset: -4px; }
.summary-all { --state-ink: var(--accent-dark); }
.summary-clarification { --state-ink: var(--warning); }
.summary-review { --state-ink: #365877; }
.summary-sent { --state-ink: #604271; }
.summary-accepted { --state-ink: #26573d; }
.summary-count { font: 400 clamp(23px,2.35vw,34px)/1 Georgia,serif; font-variant-numeric: lining-nums tabular-nums; }
.summary-label { grid-column: 1/-1; font-size: 12px; line-height: 1.2; font-weight: 650; }
.inbox-list { margin-top: 14px; }
.inbox-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: clamp(146px,21vw,220px);
  min-width: 0;
  padding: 0 8px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.search svg { width: 16px; height: 16px; }
.search input { background: transparent; border: 0; min-width: 0; width: 100%; height: 34px; padding: 0; color: var(--ink); font-size: 14px; }
.tabs { display: flex; align-items: end; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.tab { padding: 13px 9px 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-size: 14px; font-weight: 650; }
.tab:hover { color: var(--accent-dark); }
.tab.active { color: var(--accent-dark); border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
thead { color: var(--muted); background: #f3efe8; }
th { padding: 11px 15px; font-size: 13px; font-weight: 650; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-requests { background: var(--paper); }
.table-requests th:first-child, .table-requests td:first-child { width: 58%; }
.table-requests td { padding-block: 12px; }
.table-requests tbody tr { min-height: 54px; }
tr[data-open], tr[data-quote] { cursor: pointer; }
tr[data-open]:hover, tr[data-quote]:hover, tr:focus-within { background: #f5eee6; }
.table-requests tr.active { background: var(--wash); }
.row-open { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.24; overflow-wrap: anywhere; }
.row-open:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.row-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.22; }
.req-ref, .mono { color: #65584c; font: 13px Consolas,"Courier New",monospace; white-space: nowrap; }
.request-date { white-space: nowrap; color: var(--muted); }
.mobile-meta { display: none; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 6px; font-size: 13px; line-height: 1.22; font-weight: 650; white-space: nowrap; color: #514943; }
.tag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.tag.clarification, .tag.warning { color: var(--warning); }
.tag.review { color: #365877; }
.tag.sent { color: #604271; }
.tag.accepted, .tag.good { color: #26573d; }
.tag.quiet { color: var(--muted); }
.tag.quiet::before { display: none; }
.list-footer { padding: 11px 1px; color: var(--muted); font-size: 13px; }
.request-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(610px,100%);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: -14px 0 50px #3b2c2021;
}
.detail { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: var(--paper); }
.detail-head { padding: 19px 25px 0; border-bottom: 1px solid var(--line); }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-head h2 { margin-top: 14px; font-size: clamp(28px,4vw,40px); overflow-wrap: anywhere; }
.detail-head p { color: var(--muted); margin: 7px 0 8px; font-size: 15px; }
.detail-head .tabs { margin-left: -8px; }
.detail-content { overflow-y: auto; min-width: 0; padding: 21px 25px; overscroll-behavior: contain; }
.section-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.source { background: #f5f0e8; border-left: 2px solid #b7a58f; padding: 11px 13px; margin-bottom: 20px; }
.source:last-child { margin-bottom: 0; }
.source-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 7px; overflow-wrap: anywhere; }
.source-label svg { width: 15px; height: 15px; }
.source pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 Consolas,"Courier New",monospace; max-height: 155px; overflow: auto; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.items { border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.item.needs .item-meta { color: var(--warning); }
.item-qty { text-align: center; font-weight: 720; font-size: 15px; font-variant-numeric: tabular-nums; }
.item-name { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.item-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 500; }
.item .btn { min-height: 32px; padding: 3px 7px; font-size: 13px; background: transparent; }
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 9px; margin: 10px 0; background: var(--warning-wash); color: var(--warning); font-size: 13px; line-height: 1.4; }
.alert svg { width: 15px; height: 15px; }
.detail-footer { padding: 13px 25px; border-top: 1px solid var(--line); }
.detail-footer .button-row { justify-content: flex-end; }
.text-btn { border: 0; padding: 0; background: transparent; color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; border-left: 1px solid var(--line); margin-left: 5px; padding: 0 0 13px 13px; font-size: 14px; overflow-wrap: anywhere; }
.history li::before { content: ""; position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.history small { display: block; margin-top: 4px; }
.panel { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); background: var(--paper); }
.panel-body { padding: 19px; }
.panel-body h2 { margin-bottom: 9px; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 11px 14px; }
.board-toolbar h2 { font-size: 17px; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 3px; }
.totals { margin: 13px 0 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-bottom: 0; font-size: 20px; font-weight: 750; }
.offer-lines td, .offer-lines th { padding: 8px; }
.offer-lines { font-size: 13px; }
.detail-summary { margin: 9px 0; color: var(--muted); font-size: 14px; }
.version { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 6px; padding: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); text-align: left; }
.version.active { background: var(--wash); }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 15px; }
.field { display: grid; min-width: 0; gap: 5px; align-content: start; font-size: 14px; font-weight: 650; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid #d9cfc4; border-radius: 4px; background: var(--paper); color: var(--ink); padding: 7px 9px; }
.field select { appearance: none; padding-right: 28px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b6259' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 8px center no-repeat; }
.field textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; }
.check input { accent-color: var(--accent); margin-top: 3px; }
.full { grid-column: 1/-1; }
.stack { display: grid; gap: 12px; }
.compact, .spaced { margin-top: 13px; }
.note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.bordered { border-top: 1px solid var(--line); padding-top: 12px; }
.mail-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.mail-guide-steps { display: grid; gap: 12px; margin: 0; padding-left: 24px; }
.mail-guide-steps li { padding-left: 4px; }
.mail-guide-steps li::marker { color: var(--accent-dark); font-weight: 700; }
.mail-guide-steps li p { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.roles-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 8px; }
.team-role { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-width: 0; padding: 9px; border: 1px solid var(--line); }
.team-role strong { overflow-wrap: anywhere; }
.team-role small { display: block; color: var(--muted); }
fieldset.team-permissions { min-width: 0; border: 1px solid var(--line); display: grid; gap: 8px; margin: 0; padding: 10px; }
dialog { width: min(555px,calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 16px 65px #3b2c202b; }
dialog::backdrop { background: #30261b57; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 28px; }
.dialog-body { padding: 17px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 17px; border-top: 1px solid var(--line); background: #f7f2eb; }
.error { padding: 8px; background: var(--wash); color: var(--accent-dark); border-left: 2px solid var(--accent); font-size: 14px; }
.error:empty { display: none; }
#toast { position: fixed; z-index: 10; bottom: 14px; left: 14px; max-width: min(430px,calc(100% - 28px)); padding: 11px 14px; background: var(--ink); color: white; border-radius: 4px; font-size: 14px; }
#toast:empty { display: none; }
.loading { padding: 21px; }
.auth, .public-offer { width: min(760px,calc(100% - 28px)); margin: 36px auto; }
.auth { width: min(480px,calc(100% - 28px)); }
.public-header { display: flex; align-items: center; gap: 10px; padding: 15px; border-top: 2px solid var(--accent); background: var(--rail); }
.public-offer h1 { margin: 6px 0 9px; font-size: clamp(43px,7vw,62px); }
.public-offer .panel-body { padding: clamp(12px,4vw,25px); }
.offer-qr { width: min(100%,280px); margin: 0 auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.offer-qr svg { display: block; width: 100%; height: auto; }
input[name="offer-link"] { font-size: 14px; }

@media screen and (max-width: 600px) {
  :root { scrollbar-gutter: auto; }
  .btn, .nav-link, .tab, .text-btn, .app-language { min-height: 44px; }
  .item .btn { min-height: 44px; }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .page-actions, .detail-footer .button-row { width: 100%; }
  .page-actions .btn, .detail-footer .button-row .btn { flex: 1 1 130px; justify-content: center; }
  .topbar { padding-top: env(safe-area-inset-top); }
  .workspace { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .detail-footer, .dialog-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .detail-content { overflow-wrap: anywhere; }
  .board-toolbar { flex-wrap: wrap; gap: 12px; }
  .board-toolbar .search { flex: 1 1 100%; width: 100%; }
  table.mobile-cards { display: block; width: 100%; }
  .mobile-cards thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .mobile-cards tbody { display: grid; gap: 10px; padding: 10px; }
  .mobile-cards tbody tr { display: block; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); padding: 7px 11px; min-width: 0; }
  .mobile-cards tbody td { display: grid; grid-template-columns: minmax(82px,.65fr) minmax(0,1.35fr); gap: 4px 10px; padding: 7px 0; border: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; min-width: 0; }
  .mobile-cards tbody td::before { content: attr(data-label); color: var(--muted); font-size: 12px; grid-row: 1 / span 4; }
  .mobile-cards tbody td[colspan] { display: block; }
  .mobile-cards tbody td[colspan]::before { content: none; }
  .mobile-cards tbody td > * { min-width: 0; }
  .mobile-cards .row-meta { margin: 0; }
  .public-offer { margin: 14px auto; }
  .public-offer h1 { font-size: 40px; }
}

@media(max-width: 1000px) {
  .workspace, .topbar { padding-inline: 24px; }
  .tabs { min-width: 0; }
  .tab { padding-inline: 7px; }
  .table-requests th:first-child, .table-requests td:first-child { width: 50%; }
}
@media(max-width: 900px) {
  .inbox-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .summary-state:nth-child(3n) { border-right: 0; }
  .summary-state:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media(max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: min(265px,calc(100% - 36px)); transform: translateX(-102%); visibility: hidden; box-shadow: 10px 0 30px #392a191f; }
  .menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .btn.menu-button, .btn.menu-close { display: inline-flex; }
  .btn.menu-close { margin-left: auto; min-width: 34px; min-height: 34px; }
  .menu-scrim { display: block; position: fixed; z-index: 4; inset: 0; width: 100%; border: 0; padding: 0; background: #30261b57; opacity: 0; visibility: hidden; }
  .menu-open .menu-scrim { opacity: 1; visibility: visible; }
  .topbar { min-height: 53px; padding-inline: 14px; }
  .topbar-left { font-size: 13px; }
  .workspace { padding: 28px 14px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 21px; }
  .page-actions { justify-content: flex-start; }
  .inbox-toolbar .search { width: auto; flex: 1; }
  .table-requests th:first-child, .table-requests td:first-child { width: auto; }
  .table-requests th, .table-requests td { padding-inline: 9px; }
  .table-requests .request-ref, .table-requests .request-date { display: none; }
  .mobile-meta { display: inline; white-space: nowrap; }
  .settings-grid, .grid-2 { grid-template-columns: minmax(0,1fr); }
  .request-sheet { width: 100%; border-left: 0; }
  .detail-head, .detail-content, .detail-footer { padding-inline: 14px; }
}
@media(prefers-reduced-motion: no-preference) {
  .btn, .nav-link, .tab, .summary-state { transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease; }
  .btn:active:not(:disabled) { transform: translateY(1px); }
  .workspace-enter { animation: appear 190ms ease-out both; }
  #toast:not(:empty) { animation: appear 160ms ease-out both; }
  .sidebar { transition: transform var(--motion), visibility 220ms; }
  .menu-scrim { transition: opacity var(--motion), visibility 220ms; }
  dialog {
    opacity: 0;
    transform: translateY(7px) scale(.99);
    transition: opacity var(--motion), transform var(--motion), display var(--motion) allow-discrete, overlay var(--motion) allow-discrete;
  }
  dialog[open] { opacity: 1; transform: none; }
  dialog::backdrop {
    opacity: 0;
    transition: opacity var(--motion), display var(--motion) allow-discrete, overlay var(--motion) allow-discrete;
  }
  dialog[open]::backdrop { opacity: 1; }
  dialog.request-sheet { transform: translateX(100%); opacity: 1; }
  dialog.request-sheet[open] { transform: translateX(0); }
  @starting-style {
    dialog[open] { opacity: 0; transform: translateY(7px) scale(.99); }
    dialog.request-sheet[open] { opacity: 1; transform: translateX(100%); }
    dialog[open]::backdrop { opacity: 0; }
  }
  @keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.app-language { display:inline-flex; color:var(--muted); font-size:.77rem; font-weight:700; padding:7px 9px; border:1px solid var(--line); border-radius:4px; text-decoration:none; }
.access-main .app-language { position:absolute; top:var(--access-top,18px); left:15px; }
@media print {
  body, .public-header { background: white; }
  .public-offer { width: 100%; margin: 0; }
  .public-offer .button-row, .public-offer .alert, #toast, dialog { display: none; }
}
