:root {
  font: 15px/1.5 "Inter", system-ui, sans-serif;
  color: #172823;
  background: #f4f6f3;
  font-synthesis: none;
  --ink: #172823;
  --muted: #596963;
  --line: #dce4de;
  --green: #235a49;
  --panel: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; }
button, select, a, input[type="file"] { cursor: pointer; }
:focus-visible { outline: 2px solid #2e7960; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .48; }

.layout { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 24px; padding: 26px 14px 18px; background: #182c25; color: #f8fbf8; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 11px; line-height: 1.15; font-size: 18px; }
.brand > span { flex: none; height: 36px; width: 36px; border-radius: 12px; background: #cfe69d; color: #203b2d; display: grid; place-items: center; font-weight: 800; }
.brand > strong { min-width: 0; overflow-wrap: anywhere; }
.brand small { display: block; margin-top: 5px; font-size: 11px; color: #c0d0be; font-weight: 500; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px; color: #d2dfd7; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: #fff; background: #2c493c; }
.sidebar nav a span { display: inline-grid; place-items: center; min-width: 20px; font-size: 17px; color: #c9dea9; }

main { width: 100%; max-width: 1560px; margin-inline: auto; padding: 30px clamp(18px, 4vw, 56px) 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.page-head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 3vw, 39px); font-weight: 690; letter-spacing: -.045em; }
h2 { font-size: 17px; font-weight: 680; letter-spacing: -.018em; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; font-size: 13px; font-weight: 630; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #194637; }
.secondary { border-color: #ccd8d0; background: #fff; color: #234639; }
.secondary:hover:not(:disabled) { background: #eff4ef; }
.text-link { color: var(--green); font-size: 13px; font-weight: 660; }
.text-link:hover { text-decoration: underline; }

.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.content { display: grid; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; }
.empty-state { min-height: 304px; padding: 42px 24px; text-align: center; display: grid; justify-items: center; align-content: center; gap: 13px; }
.empty-state h2 { font-size: 23px; }
.empty-state p, .import-panel p { color: var(--muted); max-width: 46ch; }
.page-actions { display: grid; justify-items: start; gap: 12px; padding: 20px; }
.page-actions p { color: var(--muted); }
.page-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.register-panel { display: grid; gap: 14px; padding: 18px; overflow-wrap: anywhere; }
.register-panel p, .register-list small { color: var(--muted); }
.register-panel .text-link { justify-self: start; }
.inventory-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inventory-line > label { flex: 1 1 130px; min-width: 0; }
.inventory-line label, .inventory-lines td label { display: grid; gap: 4px; font-size: 13px; }
.inventory-lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.inventory-lines td input { min-width: 90px; }
.inventory-error:empty { display: none; }
.register-panel .inventory-error { color: #9a3030; }
.register-shift { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.register-label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 630; }
.register-list { display: grid; list-style: none; padding: 0; margin: 0; }
.register-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.register-list li div { min-width: 0; }
.register-list small { display: block; }
.register-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.register-totals dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.register-payment { display: grid; gap: 8px; }
.payment-fields { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 0; border: 0; }
.payment-reference { overflow-wrap: anywhere; }
.register-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.receipt-panel { width: min(100%, 480px); gap: 20px; }
.receipt-ticket { display: grid; gap: 14px; }
.receipt-ticket header { display: grid; gap: 3px; }
.receipt-ticket li > span { white-space: nowrap; }
.drawer-cash { display: grid; gap: 10px; width: min(100%, 390px); }
.drawer-cash h3 { margin: 0; font-size: 15px; }
.drawer-cash .filters { margin: 0; padding: 0; }
.register-shift .register-links { margin-top: 10px; }
.refund-form { padding: 14px 0 0; border-top: 1px solid var(--line); }
.refund-line { display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.refund-line legend { font-weight: 630; }
.restock-choice { display: flex; gap: 8px; align-items: center; }
.restock-choice input { min-height: 0; width: auto; }
.cash-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); color: inherit; margin: auto; }
.cash-dialog:not([open]) { display: none; }
.cash-dialog::backdrop { background: #171b2466; }
@media print {
  body:has(.receipt-ticket), body:has(.receipt-ticket) .layout { min-height: 0; background: white; color: black; }
  body:has(.receipt-ticket) :is(.layout, main, .content) { display: block; padding: 0; margin: 0; }
  body:has(.receipt-ticket) :is(.sidebar, .page-head, .notice, .register-links, .refund-form, .refund-history) { display: none; }
  .receipt-panel { width: 100%; max-width: 78mm; padding: 0; border: 0; box-shadow: none; }
  .receipt-ticket :is(p, small) { color: black; }
}
@media (max-width: 670px) {
  .register-grid { grid-template-columns: minmax(0, 1fr); }
  .register-shift { flex-direction: column; }
}
.empty-icon { flex: none; display: grid; place-items: center; height: 39px; width: 39px; border-radius: 11px; background: #e9f1df; color: #295740; font-size: 24px; }
.notice { border: 1px solid #c2d9ca; color: #194b37; background: #eaf5ec; border-radius: 8px; padding: 11px 14px; margin-bottom: 18px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.filters label, .file-banner label { display: grid; gap: 4px; max-width: 100%; color: var(--muted); font-size: 12px; font-weight: 630; }
input:not([type="file"]), select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #ccd8d0; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
.filters select { max-width: 190px; min-width: 120px; }
.filters input[type="date"] { min-width: 126px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { display: grid; gap: 4px; padding: 15px 17px; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: clamp(16px, 2.25vw, 27px); overflow-wrap: anywhere; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.chart { overflow-x: auto; padding: 3px 19px 15px; }
.chart-bars { display: flex; min-width: 100%; width: max-content; margin: 0; padding: 0; gap: 12px; list-style: none; }
.chart-bars li { flex: 1 0 max-content; display: grid; gap: 5px; text-align: center; color: var(--muted); font-size: 11px; }
.chart-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { display: flex; align-items: end; justify-content: center; height: 120px; border-bottom: 1px solid var(--line); }
.bar { width: min(60%, 65px); background: #71a68d; border-radius: 4px 4px 0 0; }
.bar.negative { background: #a85c4b; }
.dashboard-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 11px 16px; border-top: 1px solid var(--line); }
th { background: #f6f8f5; font-size: 12px; font-weight: 650; color: #475a50; }
th.money, th.number, td.money, td.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #f9fbf7; }
.empty-inline { padding: 17px; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; gap: 4px; }

.data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.import-panel { padding: 20px; display: grid; justify-items: start; gap: 12px; }
.upload { position: relative; display: flex; gap: 10px; align-items: center; min-height: 92px; width: 100%; border: 1px dashed #93b2a2; background: #f4f8f2; border-radius: 8px; padding: 13px; color: var(--green); }
.upload:hover, .upload:focus-within { background: #eaf2e9; }
.upload input { opacity: 0; inset: 0; width: 100%; height: 100%; position: absolute; }
.sources .count { color: var(--muted); }
.sources ul, .messages { list-style: none; margin: 0; padding: 0; }
.sources li { border-top: 1px solid var(--line); padding: 11px 16px; display: flex; gap: 7px; align-items: center; justify-content: space-between; }
.sources li div { min-width: 0; }
.sources li span, .sources li small { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.messages { color: #78332c; font-size: 13px; }
.source-note, .file-banner { color: var(--muted); font-size: 13px; }
.file-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; overflow-wrap: anywhere; }

.report-group h2 { margin-bottom: 8px; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-tile { position: relative; display: grid; align-content: center; gap: 3px; min-height: 61px; padding: 10px 25px 10px 13px; }
.report-tile:hover { background: #f5f8f2; border-color: #b4c9bd; }
.report-tile strong { font-size: 13px; }
.report-tile span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.report-tile i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--green); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 162px minmax(0, 1fr); }
  .sidebar { padding-inline: 8px; }
  .dashboard-detail { grid-template-columns: minmax(0, 1fr); }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .layout { display: block; }
  .sidebar { height: auto; z-index: 2; padding: 10px 10px 7px; gap: 7px; }
  .sidebar nav { display: flex; overflow-x: auto; }
  .sidebar nav a { flex-shrink: 0; font-size: 13px; padding: 6px 8px; }
  .sidebar nav a span, .brand small { display: none; }
  .brand { margin-inline: 5px; }
  .brand > span { height: 27px; width: 27px; border-radius: 7px; font-size: 15px; }
  main { padding: 17px 12px 36px; }
  .page-head { margin-bottom: 14px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 11px; }
  .data-grid { grid-template-columns: 1fr; }
  .panel-head { padding-inline: 11px; }
  th, td { padding: 9px 11px; }
}

@font-face {
  font-family: "Inter";
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.entry-shell {
  --entry-ink: #0c0a09;
  --entry-muted: #78716c;
  --entry-line: #dfe2e8;
  --entry-accent: #266952;
  --entry-link: #047857;
  min-height: 100vh;
  color: var(--entry-ink);
  background: #fff;
}
.entry-skip {
  position: fixed;
  z-index: 3;
  inset: 8px auto auto 8px;
  transform: translateY(calc(-100% - 12px));
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--entry-accent);
}
.entry-skip:focus { transform: none; }
.entry-header {
  justify-self: start;
}
.entry-header .brand { flex-shrink: 0; margin: 0; font-size: 16px; }
.entry-header img { display: block; flex: none; }
.entry-workspace-nav, .entry-mobile-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
  border-top: 1px solid #ffffff29;
}
.entry-mobile-nav { display: none; }
.entry-workspace-nav a, .entry-mobile-nav a, .entry-mobile-nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dce8e1;
  font-size: 13px;
}
.entry-workspace-nav a:hover, .entry-mobile-nav a:hover, .entry-mobile-nav summary:hover { color: #fff; }
.entry-summary :focus-visible { outline-color: #cfe69d; }
.entry-body {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  grid-template-areas: "previews workspace";
  min-height: 100vh;
}
.entry-summary {
  grid-area: previews;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 36px 44px;
  color: #fff;
  background: linear-gradient(145deg, #173e33, #246950 86%);
}
.entry-summary-content {
  align-self: center;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 435px;
  margin-inline: auto;
}
.entry-preview { display: grid; justify-items: start; gap: 16px; }
.entry-summary-intro { display: grid; gap: 5px; }
.entry-summary-intro h2 { font-size: 30px; font-weight: 600; line-height: 1.2; }
.entry-summary-intro p { color: #e0eee6; font-size: 15px; line-height: 1.55; }
.entry-spotlight {
  display: grid;
  gap: 18px;
  width: min(100%, 385px);
  padding: 22px 24px;
  border: 1px solid #ffffff6b;
  border-radius: 12px;
  background: #f3f6ee;
  color: #172823;
  box-shadow: 0 14px 28px #0b271e47;
}
.entry-spotlight-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.entry-spotlight-title span {
  padding-inline: 7px;
  border-radius: 6px;
  background: #eceef2;
  color: #596963;
  font-size: 12.5px;
}
.entry-spotlight .entry-example-items { gap: 12px; }
.entry-spotlight .entry-example-items li { color: #354f44; font-size: 13px; }
.entry-spotlight .entry-example-track { background: #dfe2e8; }
.entry-spotlight .entry-example-track i { background: #427964; }
.entry-preview-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #ffffff6b;
  border-radius: 7px;
  background: #ffffff29;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.entry-preview-toggle:hover { background: #ffffff38; }
.entry-preview-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.entry-preview-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.entry-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
}
.entry-feature {
  border: 1px solid #dae5de;
  border-radius: 9px;
  background: #fff;
}
.entry-feature:hover, .entry-feature:has([aria-expanded="true"]) { border-color: #99bba7; background: #f2f8f3; }
.entry-feature h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.3;
}
.entry-feature button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--entry-accent);
  text-align: start;
}
.entry-feature button:focus-visible, .entry-feature-detail a:focus-visible { outline-offset: -3px; }
.entry-summary .entry-feature :focus-visible { outline-color: var(--entry-accent); }
.entry-feature button::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-right: 1.5px solid var(--entry-accent);
  border-bottom: 1.5px solid var(--entry-accent);
  transform: translateY(-2px) rotate(45deg);
}
.entry-feature button[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.entry-feature-detail:not([hidden]) {
  display: grid;
  gap: 6px;
  padding: 3px 12px 5px;
}
.entry-feature-detail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.entry-example-items {
  display: grid;
  align-content: end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-example-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 4px;
  font-size: 11px;
  color: var(--entry-muted);
}
.entry-example-items li strong { color: var(--entry-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-example-track, .entry-example-track i {
  display: block;
  height: 4px;
  border-radius: 3px;
}
.entry-example-track { grid-column: 1 / -1; background: #e7eee8; }
.entry-example-track i { background: #5d8f78; }

.entry-main {
  grid-area: workspace;
  display: grid;
  align-content: center;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 32px;
}
.entry-content {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 380px;
  margin-inline: auto;
  font-size: 15px;
}
.entry-layout--setup .entry-main { align-content: start; }
.entry-layout--setup .entry-body { min-height: max(100vh, 1024px); }
.entry-layout--setup .entry-content { max-width: 520px; }
@media (min-width: 901px) {
  .entry-layout--setup .entry-content { gap: 12px; }
}
.entry-intro { display: grid; gap: 6px; }
.entry-main h1 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.012em; }
.entry-main h2 { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.entry-main .entry-file-review h2 { font-size: 17px; }
.entry-layout--setup h1 { font-size: 26px; }
.entry-intro p, .entry-results { color: var(--entry-muted); }
.entry-intro p { font-size: 14px; }
.entry-main .notice { margin: 0; }
.entry-main .messages { overflow-wrap: anywhere; }
.entry-main .primary {
  min-height: 40px;
  border-radius: 8px;
  background: var(--entry-accent);
  font-size: 14px;
  font-weight: 550;
}
.entry-main .primary:hover:not(:disabled) { background: #194637; }
.entry-main .text-link { color: var(--entry-link); font-size: 13.5px; font-weight: 550; }
.entry-main :focus-visible { outline-color: var(--entry-accent); }
.entry-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  align-items: center;
}
.entry-help > span { color: var(--entry-muted); font-size: 13px; }
.entry-layout--welcome .entry-content { gap: 18px; }
.entry-layout--recovery .entry-content { gap: 14px; }
.entry-layout--recovery .entry-help { flex-direction: column; align-items: flex-start; gap: 5px; }
.entry-form { display: grid; gap: 19px; }
.entry-form:not([data-entry-import]) .primary { margin-top: 4px; }
.entry-form[data-entry-import] { gap: 12px; }
.entry-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.entry-form label[for="entry-files"] { margin-bottom: -6px; }
.entry-form input:not([type="file"]), .entry-form select {
  min-width: 0;
  min-height: 36px;
  padding-inline: 12px;
  border-color: var(--entry-line);
  border-radius: 8px;
  color: var(--entry-ink);
  font-size: 13.5px;
  font-weight: 400;
}
.entry-form input::placeholder { color: var(--entry-muted); }
.entry-form input[type="file"] {
  width: 100%;
  padding: 6px;
  color: var(--entry-muted);
  font-size: 13px;
  background: #f7f8fa;
  border: 1px dashed #a8a29e;
  border-radius: 8px;
}
.entry-form input::file-selector-button {
  margin-inline-end: 8px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: #eceef2;
  color: var(--entry-accent);
  cursor: pointer;
}
.entry-file-review { display: grid; gap: 6px; padding: 12px 14px; border-radius: 8px; background: #f7f8fa; }
.entry-file-review p, .entry-file-review ul { color: var(--entry-muted); font-size: 12.5px; }
.entry-file-review ul { margin: 0; padding-inline-start: 1.4em; overflow-wrap: anywhere; }
.entry-formats { display: grid; gap: 8px; }
.entry-outlets { display: grid; justify-items: start; gap: 6px; }
.entry-outlet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #eceef2;
}
.entry-outlet-options button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 5px;
  padding: 4px 9px;
  background: transparent;
  color: var(--entry-muted);
  font-size: 13px;
  font-weight: 600;
}
.entry-outlet-options button:hover { color: var(--entry-ink); }
.entry-outlet-options button[aria-pressed="true"] { background: #fff; color: var(--entry-ink); }
#outlet-guide { color: var(--entry-muted); font-size: 12.5px; }
.entry-setup-nav ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-setup-nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  color: var(--entry-accent);
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.entry-setup-nav a span {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e7efe9;
  font-size: 12px;
}
.entry-setup-nav a:hover, .entry-setup-nav a:focus-visible {
  text-decoration: underline;
}
.entry-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-format-options button {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 68px;
  border: 1px solid var(--entry-line);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  color: var(--entry-ink);
  background: #fff;
  font-size: 13.5px;
  line-height: 1.45;
}
.entry-format-options button:hover { background: #f7f8fa; }
.entry-format-options button[aria-pressed="true"] {
  color: var(--entry-accent);
  background: #eef4ef;
  border-color: #93b2a2;
}
.entry-format-options small, #import-guide { color: var(--entry-muted); font-size: 12.5px; }
.entry-layout--setup .entry-form .primary { min-height: 36px; justify-self: start; }
.entry-layout--setup .entry-help { flex-direction: row; }
.entry-results { font-size: 13px; }
.entry-results:not(:empty) { margin-top: 12px; }
.entry-file-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.entry-file-list li { display: grid; padding: 8px 12px; border-radius: 7px; background: #eceef2; }
.entry-file-list strong { color: var(--entry-ink); }
.entry-file-list small { font-size: 12.5px; }

@media (max-width: 900px) {
  .entry-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "previews" "workspace";
  }
  .entry-layout--setup .entry-body { min-height: 100vh; }
  .entry-summary { gap: 9px; min-height: 271px; padding: 22px 24px 20px; border-radius: 0 0 16px 16px; }
  .entry-summary-content { max-width: 377px; gap: 10px; }
  .entry-preview { justify-items: center; gap: 10px; text-align: center; }
  .entry-summary-intro h2 { font-size: 22px; }
  .entry-summary-intro p { font-size: 13.5px; }
  .entry-spotlight { display: none; }
  .entry-preview-toggle { display: inline-flex; }
  .entry-workspace-nav { justify-content: end; }
  .entry-feature-grid { display: none; gap: 6px; }
  .entry-preview:has([aria-expanded="true"]) + .entry-feature-grid { display: grid; }
  .entry-main { padding: 28px 24px 32px; align-content: start; }
  .entry-content, .entry-layout--setup .entry-content { max-width: 480px; font-size: 14px; }
  .entry-layout--setup .entry-content { gap: 23px; }
  .entry-layout--setup .entry-form[data-entry-import] { gap: 16px; }
  .entry-layout--setup .entry-formats, .entry-layout--setup .entry-outlets { gap: 10px; }
  .entry-main h1 { font-size: 26px; }
  .entry-layout--welcome .entry-content, .entry-layout--recovery .entry-content { gap: 20px; }
  .entry-intro p { font-size: 15px; }
  .entry-layout--setup h1 { font-size: 24px; }
  .entry-form input:not([type="file"]), .entry-form select {
    min-height: 48px;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .entry-main .primary {
    min-height: 50px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 8px 16px #173e3329;
  }
  .entry-layout--setup .entry-form .primary {
    justify-self: stretch;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
  }
  .entry-layout--setup .entry-form input:not([type="file"]) {
    min-height: 36px;
    border-radius: 8px;
    padding-inline: 12px;
  }
  .entry-layout--welcome .entry-help { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .entry-summary { min-height: 296px; }
  .entry-header .brand { gap: 7px; font-size: 14px; }
  .entry-header img { width: 26px; height: 26px; }
  .entry-workspace-nav { display: none; }
  .entry-mobile-nav { display: flex; align-items: flex-start; gap: 0 16px; }
  .entry-mobile-nav summary { display: list-item; min-height: 0; padding-block: 12px; cursor: pointer; font-weight: 550; }
  .entry-mobile-nav details div { display: grid; padding-inline-start: 12px; }
  .entry-feature h3 { font-size: 13px; }
  .entry-feature button, .entry-feature-detail:not([hidden]) { padding-inline: 9px; }
  .entry-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .entry-feature-detail li { overflow-wrap: anywhere; }
  .entry-feature-detail li strong { white-space: normal; text-align: right; }
  .entry-help { flex-direction: column; align-items: flex-start; }
  .entry-setup-nav a { line-height: 1.2; }
  .entry-layout--setup .entry-content { gap: 17px; }
  .entry-layout--setup .entry-form input[name="company"] { min-height: 44px; }
  .entry-format-options { grid-template-columns: minmax(0, 1fr); }
}


.shared-entry { width: min(100% - 32px, 440px); margin: 8vh auto; }
.shared-form { display: grid; gap: 12px; max-width: 420px; }
.shared-form label { display: grid; gap: 5px; }
.shared-form label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.shared-form input:not([type="checkbox"]), .shared-form select {
  width: 100%; padding: 8px; border: 1px solid #b8c6be; border-radius: 6px; background: #fff;
}
.shared-assignment:not([hidden]) { display: grid; gap: 12px; }
.shared-error { color: #a02e2e; margin: 0; }
.shared-error:empty, .shared-sync:empty { display: none; }
.shared-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shared-sync { margin: 0 0 12px; }
.staff-account { border-top: 1px solid #d9e1dc; padding: 12px 0; }
.staff-account summary { cursor: pointer; }
.staff-account form + form { margin-top: 16px; }

.mira-page { display: grid; gap: 1rem; }
.mira-page > p, .mira-panel > p { margin: 0; }
.mira-page form, [data-mira-results] { display: grid; gap: 1rem; }
.mira-panel { display: grid; gap: 0.75rem; padding: 1rem; min-width: 0; }
.mira-panel h2, .mira-panel h3 { margin: 0; }
.mira-panel ul { margin-block: 0; padding-inline-start: 1.5rem; overflow-wrap: anywhere; }
.mira-panel button { justify-self: start; }
.mira-fields { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.mira-panel label { display: grid; gap: 0.25rem; min-width: 0; }
.mira-panel input:not([type="checkbox"]), .mira-panel select, .mira-panel textarea { width: 100%; min-width: 0; }
.mira-panel textarea { font: 0.82rem ui-monospace, monospace; padding: 0.5rem; resize: vertical; }
.mira-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.mira-csv { border: 1px solid #d9dfeb; border-radius: 0.5rem; padding: 0.75rem; }
.mira-csv summary { cursor: pointer; font-weight: 600; }
.mira-csv label > textarea { margin-top: 0.25rem; }
.mira-csv .mira-actions { margin-bottom: 0.75rem; }
.mira-confirm { display: grid; gap: 0.4rem; }
.mira-confirm label { display: flex; align-items: flex-start; gap: 0.5rem; }
.mira-confirm input { margin-top: 0.2rem; }
[data-mira-status]:empty { display: none; }

.reconciliation-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.reconciliation-section { grid-template-columns: minmax(0, 1fr); }
.reconciliation-section > :is(p, details), .reconciliation-note { color: var(--muted); }
.reconciliation-section > [role="status"]:empty { display: none; }
.reconciliation-section > .reconciliation-error { color: #9a3030; }
.reconciliation-section details summary { color: var(--green); cursor: pointer; font-weight: 630; }
.reconciliation-section details p { margin-top: 8px; }
.reconciliation-section pre { max-width: 100%; overflow-x: auto; padding: 10px; background: #f4f6f3; border-radius: 7px; font-size: 12px; }
.reconciliation-section input[type="file"] { max-width: 100%; width: 230px; min-height: 38px; }
.reconciliation-section .table-scroll { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; }
.reconciliation-section td { vertical-align: top; min-width: 76px; }
.reconciliation-section td small { display: block; color: var(--muted); }
.reconciliation-section td:has(small) { min-width: 116px; }
.reconciliation-ok { color: var(--green); }
.reconciliation-exception { color: #834718; }
.reconciliation-dialog { width: min(780px, calc(100% - 32px)); }
.reconciliation-confirm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.reconciliation-confirm .table-scroll { max-height: 45vh; border: 1px solid var(--line); border-radius: 8px; }
.reconciliation-confirm td { overflow-wrap: anywhere; }
.reconciliation-confirm select { max-width: 100%; }
