:root {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  font-synthesis: none;
  --brand: #2563eb;
  --line: #e2e8f0;
  --muted: #64748b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #93b4ff;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button .icon {
  width: 16px;
  height: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
h3 {
  font-size: 14px;
}
.topbar {
  height: 65px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffffff2;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #e2e8f0cc;
}
.header-inner {
  max-width: 1280px;
  height: 100%;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  min-width: 0;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-icon {
  height: 40px;
  width: 40px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 8px #2563eb25;
  flex-shrink: 0;
}
.brand-icon .icon {
  width: 22px;
  height: 22px;
}
img.brand-icon {
  object-fit: contain;
  background: none;
  box-shadow: none;
}
.brand-title {
  font-size: 18px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}
.version-pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe99;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0;
}
.brand-subtitle {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}
.desktop-tabs {
  display: flex;
  align-items: center;
  padding: 4px;
  background: #f1f5f9e6;
  border: 1px solid #e2e8f099;
  border-radius: 12px;
  flex-shrink: 0;
}
.nav-button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-button .icon {
  width: 15px;
  height: 15px;
}
.nav-button.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 3px #0f172a08;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.header-button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-button:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.qr-button {
  background: #eff6ff;
  border: 1px solid #bfdbfeaa;
  color: #1d4ed8;
}
.history-button {
  background: #f1f5f9;
  color: #475569;
}
.history-button .icon {
  color: var(--brand);
}
.login-button {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-left: 1px solid #e2e8f0;
  margin-left: 3px;
  box-shadow: 0 2px 3px #2563eb12;
}
.login-button:hover {
  background: #1d4ed8;
  color: #fff;
}
.app-shell {
  max-width: 1280px;
  padding: 32px;
  margin: auto;
  min-height: calc(100vh - 65px);
}
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: start;
}
.queue-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.panel {
  background: #fff;
  border: 1px solid #e2e8f0cc;
  border-radius: 25px;
}
.upload-panel,
.results-panel,
.settings-panel {
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.section-heading h1,
.section-heading h2,
.delivery-heading h1,
.modal-heading h2,
.drawer-heading h2,
.sheet-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-heading h1 .icon,
.section-heading h2 .icon,
.delivery-heading h1 .icon,
.modal-heading h2 .icon,
.drawer-heading h2 .icon,
.sheet-heading h2 .icon {
  color: var(--brand);
  width: 20px;
  height: 20px;
}
.section-heading p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.7;
  margin-top: 3px;
}
.button {
  border: 0;
  border-radius: 12px;
  min-height: 41px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  text-decoration: none;
}
.button:active:not(:disabled) {
  transform: scale(0.99);
}
.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 5px #2563eb20;
}
.button.primary:hover:not(:disabled) {
  background: #1d4ed8;
}
.button.primary:disabled {
  background: #cbd5e1;
  box-shadow: none;
  opacity: 1;
}
.button.secondary {
  background: #f1f5f9;
  color: #475569;
}
.button.secondary:hover:not(:disabled) {
  background: #e2e8f0;
}
.button.subtle {
  background: #eff6ff;
  color: var(--brand);
  border: 1px solid #bfdbfeaa;
}
.button.small {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 12px;
}
.button.wide {
  width: 100%;
}
.button.danger {
  color: #fff;
  background: #e11d48;
}
.text-button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 4px;
  font-size: 11px;
  line-height: 1.6;
}
.text-button:hover {
  color: var(--brand);
}
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 17px;
  background: #f8fafcba;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 31px 15px;
  min-height: 170px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: #3b82f6;
  background: #eff6ff80;
}
.drop-zone input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.drop-zone:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #e2e8f0cc;
  background: white;
  color: var(--brand);
  margin-bottom: 12px;
}
.upload-icon .icon {
  width: 25px;
  height: 25px;
}
.drop-zone strong {
  font-size: 14px;
  font-weight: 650;
}
.drop-zone > span:last-child {
  font-size: 11px;
  color: #64748b;
  line-height: 1.8;
  margin-top: 4px;
}
.mobile-copy {
  display: none;
}
.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}
.muted {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.queue-heading {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 0;
}
.queue-heading h2 {
  font-size: 15px;
}
.heading-inline {
  display: flex;
  align-items: center;
  gap: 9px;
}
.soft-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  border-radius: 12px;
  padding: 3px 8px;
  white-space: nowrap;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 226px;
  padding: 45px 16px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: #f1f5f9;
  color: #94a3b8;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.empty-icon .icon {
  width: 29px;
  height: 29px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 550;
  color: #475569;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.8;
  color: #94a3b8;
  margin: 6px 0 10px;
}
.empty-state > .text-button {
  font-size: 10px;
}
.segmented {
  display: flex;
  align-items: center;
  background: #e2e8f099;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  min-width: 0;
}
.segmented label {
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segmented label > span,
.segmented > button {
  display: block;
  text-align: center;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.segmented input:checked + span,
.segmented > button.active {
  background: #fff;
  color: var(--brand);
  font-weight: 650;
  box-shadow: 0 1px 3px #0f172a05;
}
.segmented input:focus-visible + span {
  outline: 2px solid #93b4ff;
}
.segmented > button {
  border: 0;
  flex: 1;
  background: transparent;
}
.desktop-settings {
  position: sticky;
  top: 89px;
}
.settings-heading {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 17px;
  margin: 0 0 20px;
}
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.field {
  display: block;
  min-width: 0;
}
.field > span,
legend {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}
.field select,
.field input {
  width: 100%;
  min-height: 42px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 13px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  outline-offset: 2px;
}
.field select:hover {
  background: #f1f5f9a8;
}
.field select:focus,
.field input:focus {
  border-color: #93b4ff;
  background: #fff;
}
.field input:read-only {
  color: #94a3b8;
  font-weight: 400;
}
.apply-styles {
  font-size: 10px;
  text-align: right;
  padding: 0;
  margin-top: -11px;
  color: var(--brand);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  line-height: 1.6;
}
.output-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.output-cards label {
  cursor: pointer;
  min-width: 0;
  position: relative;
}
.output-cards input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.output-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 12px;
  min-height: 69px;
  background: #fff;
}
.output-card strong {
  display: flex;
  align-items: center;
  font-size: 11px;
  gap: 5px;
  font-weight: 650;
  white-space: nowrap;
}
.output-card strong .icon {
  width: 15px;
  height: 15px;
  color: #64748b;
}
.output-card small {
  font-size: 10px;
  color: #64748b;
  display: block;
  line-height: 1.6;
  margin-top: 5px;
}
.output-card i {
  width: 14px;
  height: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.output-cards input:checked + .output-card {
  border: 2px solid var(--brand);
  background: #eff6ff4d;
  padding: 12px 11px;
}
.output-cards input:checked + .output-card i {
  border: 4px solid var(--brand);
  background: #fff;
}
.output-cards input:checked + .output-card .icon {
  color: var(--brand);
}
.output-cards input:focus-visible + .output-card {
  outline: 2px solid #93b4ff;
  outline-offset: 3px;
}
.field-help {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 7px;
}
.output-field > .field-help {
  display: none;
}
.orientation-panel {
  background: #f8fafce6;
  border: 1px solid #e2e8f0b3;
  border-radius: 13px;
  padding: 14px;
}
.orientation-options {
  gap: 3px;
}
.orientation-options label > span {
  padding: 6px 8px;
}
.fit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #e2e8f0cc;
  margin-top: 15px;
  padding-top: 12px;
  cursor: pointer;
  position: relative;
}
.fit-row strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.fit-row small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #64748b;
  margin-top: 4px;
}
.fit-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch {
  width: 44px;
  height: 24px;
  border-radius: 14px;
  background: #cbd5e1;
  padding: 2px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch:after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0f172a22;
  transition: transform 0.2s;
}
.fit-row input:checked + .switch {
  background: var(--brand);
}
.fit-row input:checked + .switch:after {
  transform: translateX(20px);
}
.fit-row input:focus-visible + .switch {
  outline: 2px solid #93b4ff;
  outline-offset: 3px;
}
.advanced-settings {
  margin-top: -7px;
}
.advanced-settings > summary {
  font-size: 10px;
  color: #64748b;
  cursor: pointer;
}
.advanced-settings .field {
  margin-top: 12px;
}
.desktop-print-action {
  padding-top: 1px;
}
.print-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 3px 12px;
  font-size: 11px;
}
.print-preview strong {
  font-size: 11px;
  order: 2;
  color: #0f172a;
  font-weight: 700;
}
.print-preview span {
  font-size: 11px;
  color: #64748b;
}
.desktop-print-action > .button {
  min-height: 48px;
  font-size: 13px;
  font-weight: 750;
}
.desktop-print-action .icon {
  fill: currentColor;
  width: 16px;
  height: 16px;
}
.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.task-meta > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 53%;
}
.summary-grid {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 10px;
  color: #94a3b8;
}
.summary-grid b {
  font-weight: 650;
  color: #64748b;
}
.selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 0 4px;
}
.selection-actions,
.save-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.selection-actions .text-button {
  font-size: 10px;
  color: var(--brand);
}
.save-actions .text-button {
  font-size: 10px;
}
.save-actions .muted {
  font-size: 9px;
}
.unsaved {
  color: #b7791f;
}
.file-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  margin-top: 14px;
  background: #fff;
  overflow: hidden;
}
.file-card > summary {
  list-style: none;
  cursor: pointer;
}
.file-card > summary::-webkit-details-marker {
  display: none;
}
.file-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}
.file-heading > input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.file-type {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  width: 36px;
  height: 38px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--brand);
  flex-shrink: 0;
}
.file-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.file-title small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-heading-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.disclosure {
  font-size: 17px;
  color: #64748b;
  transition: transform 0.15s;
}
.file-card[open] .disclosure {
  transform: rotate(180deg);
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 9px;
  color: #64748b;
  background: #f1f5f9;
  font-weight: 550;
  line-height: 1.5;
}
.badge.success {
  color: #047857;
  background: #ecfdf5;
}
.badge.warning {
  color: #b45309;
  background: #fffbeb;
}
.badge.error {
  color: #be123c;
  background: #fff1f2;
}
.badge.active {
  color: var(--brand);
  background: #eff6ff;
}
.file-body {
  padding: 0 16px 15px;
}
.file-progress {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 10px;
  line-height: 1.7;
  color: #94a3b8;
}
.file-message {
  font-size: 10px;
  color: #64748b;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.file-message.error {
  color: #be123c;
}
.inline-warning {
  font-size: 10px;
  color: #a16207;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.layout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  color: #64748b;
}
.layout-heading h3 {
  font-size: 10px;
  font-weight: 600;
}
.layout-heading > span {
  font-size: 9px;
  color: #94a3b8;
}
.frame-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frame-card {
  display: flex;
  gap: 9px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  min-width: 0;
}
.frame-card.unselected {
  border-color: #e2e8f0;
  background: #fff;
}
.frame-check {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin: 4px 0 0;
}
.frame-content {
  flex: 1;
  min-width: 0;
}
.frame-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.page-code {
  padding: 2px 5px;
  background: #e2e8f0;
  border-radius: 4px;
  font:
    9px/1.5 Consolas,
    monospace;
  color: #475569;
  flex-shrink: 0;
}
.frame-row-top strong {
  font-size: 11px;
  font-weight: 650;
}
.frame-row-top .row-status {
  margin-left: auto;
  font-size: 9px;
  color: #94a3b8;
}
.frame-row-top .row-status.printed {
  color: #059669;
}
.frame-metadata {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 4px;
  display: flex;
  gap: 5px 12px;
  flex-wrap: wrap;
}
.frame-bounds {
  display: none;
}
.frame-editors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 8px;
}
.frame-editor {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.frame-editor > span {
  color: #94a3b8;
  font-size: 9px;
  flex-shrink: 0;
}
.frame-choice {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe5f0;
  border-radius: 7px;
  background: #fff;
  padding: 5px 6px;
  min-height: 29px;
  font-size: 10px;
  color: #475569;
}
.frame-choice:disabled {
  background: #f8fafc;
  color: #94a3b8;
  opacity: 1;
}
.frame-output {
  display: flex;
  align-items: center;
  gap: 6px;
}
.frame-output .download-link {
  padding: 3px 6px;
  font-size: 9px;
}
.bounds {
  font-size: 9px;
  color: #94a3b8;
  display: block;
  line-height: 1.8;
}
.file-footer {
  margin-top: 13px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.file-footer .muted {
  font-size: 9px;
}
.file-footer .text-button {
  font-size: 9px;
  white-space: nowrap;
}
.config-history-link {
  font-size: 10px;
  color: var(--brand);
  display: inline-block;
  margin-top: 13px;
  border: 0;
  background: transparent;
  padding: 0;
}
.no-frames {
  padding: 15px 0;
  font-size: 11px;
  color: #94a3b8;
}
.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 25px;
  font-size: 10px;
  line-height: 1.8;
  color: #94a3b8;
}
.service-state {
  display: flex;
  gap: 6px;
  align-items: center;
}
.service-state i {
  width: 6px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 50%;
}
.service-state i.ready {
  background: #10b981;
}
.service-state i.error {
  background: #f59e0b;
}
.service-footer a {
  color: #94a3b8;
}
.count-badge {
  font-size: 9px;
  background: var(--brand);
  color: white;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}
.mobile-chips,
.mobile-bottom {
  display: none;
}
#notice {
  position: fixed;
  z-index: 90;
  top: 80px;
  right: 18px;
  max-width: 420px;
  background: #182235;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0f172a25;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.7;
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
#notice.info {
  background: #1e293b;
}
.delivery-heading {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.delivery-heading p {
  font-size: 11px;
  line-height: 1.8;
  color: #64748b;
  margin-top: 5px;
}
.delivery-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.delivery-actions a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}
.pending-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 13px 17px;
  font-size: 12px;
  line-height: 1.7;
  color: #92400e;
  margin-bottom: 18px;
}
.delivery-file-card {
  padding: 22px;
  margin-bottom: 20px;
}
.delivery-file-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}
.pdf-emblem {
  width: 42px;
  height: 45px;
  border-radius: 12px;
  background: #fff1f2;
  color: #e11d48;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}
.delivery-file-heading h2 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.delivery-file-heading > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.delivery-file-heading p {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}
.delivery-primary-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.result-pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}
.result-page {
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}
.result-page-preview {
  height: 117px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.document-preview {
  width: 84px;
  height: 83px;
  background: white;
  border: 1px solid #cbd5e1;
  box-shadow: 0 3px 9px #0f172a08;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.document-preview .icon {
  width: 24px;
  height: 24px;
  color: #94a3b8;
}
.document-preview > span {
  font-size: 9px;
  color: #94a3b8;
}
.result-page-body {
  padding: 11px;
}
.result-page-body > strong {
  display: block;
  font-size: 11px;
  color: #334155;
  margin-bottom: 9px;
}
.result-page-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}
.result-page-actions button {
  font-size: 10px;
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff66;
  color: var(--brand);
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.5;
}
.download-link:hover {
  text-decoration: none;
  background: #dbeafe66;
}
.download-link.zip {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.artifact-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.run-history {
  margin-top: 18px;
  border-top: 1px solid #f1f5f9;
  padding-top: 13px;
  font-size: 11px;
  color: #64748b;
}
.run-history > summary {
  cursor: pointer;
  font-weight: 600;
}
.run-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px;
  margin-top: 12px;
}
.run-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.run-heading strong {
  font-size: 11px;
  font-weight: 600;
}
.run-meta {
  display: flex;
  gap: 5px 14px;
  flex-wrap: wrap;
  font-size: 10px;
  line-height: 1.8;
  color: #94a3b8;
  margin-top: 7px;
}
.page-downloads {
  font-size: 10px;
  color: #64748b;
  margin-top: 9px;
}
.page-downloads > summary {
  cursor: pointer;
}
.history-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  border: 0;
  border-left: 1px solid #e2e8f0;
  width: 430px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  background: #f8fafc;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 19px 22px;
  border-bottom: 1px solid #e2e8f0;
}
.drawer-heading h2 {
  font-size: 15px;
}
.history-toolbar {
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.checkbox-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}
.checkbox-row input {
  accent-color: var(--brand);
}
.history-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
}
.history-toolbar > .text-button {
  align-self: flex-end;
}
.history-panel {
  padding: 0 20px 20px;
}
.history-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.history-main h2 {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.history-meta {
  display: flex;
  gap: 4px 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 7px;
}
.history-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 11px;
}
.history-actions .badge {
  margin-right: auto;
}
.history-actions .text-button {
  font-size: 10px;
}
.history-actions [data-action="open-job"] {
  color: var(--brand);
}
.history-loading {
  font-size: 11px;
  color: #94a3b8;
  padding: 25px 0;
  text-align: center;
}
dialog {
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  max-height: 90dvh;
  box-shadow: 0 20px 75px #0f172a30;
}
dialog::backdrop {
  background: #0f172a88;
  backdrop-filter: blur(2px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.icon-button {
  border: 0;
  border-radius: 10px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #f1f5f9;
  color: #475569;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.confirm-dialog {
  width: 430px;
  max-width: calc(100% - 32px);
  padding: 26px;
}
.confirm-dialog h2 {
  font-size: 17px;
}
.confirm-dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #64748b;
  margin: 16px 0 24px;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.demo-dialog {
  width: 448px;
  max-width: calc(100% - 32px);
  padding: 25px;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 17px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.auth-brand .brand-icon {
  width: 40px;
  height: 40px;
}
.auth-brand h2 {
  font-size: 17px;
}
.auth-brand p {
  font-size: 10px;
  line-height: 1.7;
  color: #94a3b8;
  margin-top: 4px;
}
.demo-note {
  font-size: 10px;
  line-height: 1.8;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
}
.auth-tabs {
  margin-bottom: 19px;
}
.auth-dialog .field {
  margin-bottom: 16px;
}
.demo-code {
  display: flex;
  gap: 8px;
}
.demo-code input {
  min-width: 0;
  flex: 1;
}
.demo-code .button {
  font-size: 11px;
  flex-shrink: 0;
  padding: 10px 12px;
}
.demo-footer {
  margin-top: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 13px;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.8;
}
.help-steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 23px;
}
.help-steps li {
  position: relative;
  padding-left: 36px;
  counter-increment: step;
}
.help-steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 11px;
}
.help-steps b {
  font-size: 12px;
  display: block;
}
.help-steps span {
  font-size: 11px;
  color: #64748b;
  display: block;
  line-height: 1.8;
  margin-top: 5px;
}
.qr-dialog {
  text-align: center;
  width: 384px;
  padding: 28px 25px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.modal-emblem {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--brand);
  border-radius: 15px;
  border: 1px solid #dbeafe;
  margin: 0 auto 13px;
}
.qr-dialog h2 {
  font-size: 16px;
}
.qr-dialog > p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.8;
  margin: 7px 0 14px;
}
.demo-qr {
  margin: 0 auto;
  width: 185px;
  height: 185px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  position: relative;
}
.demo-qr svg {
  width: 100%;
  height: 100%;
}
.demo-qr:after {
  content: "DEMO";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 7px;
  background: #fff;
  color: var(--brand);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 750;
  border-radius: 6px;
  border: 1px solid #dbeafe;
}
.public-site-url {
  display: block;
  font:
    10px/1.8 Consolas,
    monospace;
  overflow-wrap: anywhere;
  color: #94a3b8;
  margin: 10px 0 20px;
}
.qr-dialog .dialog-actions {
  justify-content: center;
}
.preview-dialog {
  padding: 0;
  width: min(1200px, 95vw);
  height: 92dvh;
  max-height: 92dvh;
  background: #1e293b;
  border-color: #334155;
  overflow: hidden;
}
.preview-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  color: #fff;
  background: #0f172a;
}
.preview-heading > div {
  flex: 1;
  min-width: 0;
}
.preview-heading h2 {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-heading span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 4px;
}
.preview-heading .icon-button {
  color: #cbd5e1;
}
.preview-heading .icon-button:hover {
  background: #334155;
}
.preview-dialog iframe {
  width: 100%;
  height: calc(100% - 70px);
  border: 0;
  background: #475569;
}
.settings-dialog {
  padding: 0;
}
.sheet-heading,
.sheet-handle,
.sheet-footer {
  display: none;
}
.settings-dialog .sheet-body {
  padding: 20px;
}
.count-badge[hidden] {
  display: none;
}
.row-status {
  font-size: 10px;
}
.delivery-count {
  background: #ecfdf5;
  color: #047857;
  border-radius: 12px;
  padding: 4px 9px;
  font-size: 10px;
  margin-left: 8px;
}
.login-button .demo-tag {
  font-size: 9px;
  background: #ffffff26;
  padding: 1px 4px;
  border-radius: 4px;
}

@media (max-width: 1200px) and (min-width: 1024px) {
  .brand-subtitle {
    display: none;
  }
  .header-inner {
    padding: 0 24px;
    gap: 10px;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .header-actions {
    gap: 3px;
  }
  .header-button {
    padding: 8px;
    font-size: 11px;
  }
  .nav-button {
    padding: 8px 9px;
    font-size: 10px;
  }
  .help-button span {
    display: none;
  }
  .app-shell {
    padding: 27px 24px;
  }
  .config-grid {
    gap: 20px;
  }
  .upload-panel,
  .results-panel,
  .settings-panel {
    padding: 21px;
  }
  .output-card {
    padding: 12px 9px;
  }
  .output-cards input:checked + .output-card {
    padding: 11px 8px;
  }
  .output-card strong {
    font-size: 10px;
  }
}
@media (max-width: 1023px) {
  body {
    background: #f4f6f9;
    padding-bottom: 133px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .topbar {
    height: 60px;
  }
  .desktop-tabs,
  .qr-button,
  .brand-subtitle,
  .version-pill {
    display: none;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-button {
    padding: 8px 10px;
  }
  .app-shell {
    padding: 18px 20px;
    max-width: 800px;
  }
  .config-grid {
    display: block;
  }
  .queue-column {
    gap: 18px;
  }
  .desktop-settings {
    display: none;
  }
  .mobile-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: auto;
    margin-bottom: 17px;
    scrollbar-width: none;
  }
  .mobile-chips::-webkit-scrollbar {
    display: none;
  }
  .mobile-chips button {
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  .mobile-chips button .icon {
    width: 13px;
    height: 13px;
    color: #6366f1;
  }
  .mobile-chips button:last-child .icon {
    color: #059669;
  }
  .blue-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
  }
  .chevron {
    font-size: 13px;
    color: #94a3b8;
  }
  .mobile-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    backdrop-filter: blur(14px);
    border-top: 1px solid #e2e8f0;
    z-index: 35;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-action-dock {
    padding: 10px 14px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-settings-button {
    height: 44px;
    width: 64px;
    border: 0;
    background: #f1f5f9;
    border-radius: 13px;
    color: var(--brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
    flex-shrink: 0;
  }
  .mobile-settings-button .icon {
    width: 16px;
    height: 16px;
  }
  .mobile-action-dock > .button {
    height: 44px;
    flex: 1;
    font-size: 12px;
  }
  .mobile-action-dock > .button .icon {
    fill: currentColor;
    width: 14px;
    height: 14px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 5px 0 3px;
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    min-height: 42px;
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-nav button.active {
    color: var(--brand);
    font-weight: 650;
  }
  .mobile-nav b {
    font-size: 8px;
    background: var(--brand);
    color: white;
    border-radius: 8px;
    padding: 1px 4px;
    margin-left: 3px;
  }
  .settings-dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    border: 0;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 87dvh;
    overflow: hidden;
    box-shadow: 0 -12px 55px #0f172a22;
  }
  .settings-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .sheet-handle {
    display: block;
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
  .sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
  }
  .sheet-heading h2 {
    font-size: 15px;
  }
  .sheet-heading .icon-button {
    background: #f1f5f9;
  }
  .sheet-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }
  .settings-dialog .sheet-body {
    padding: 20px;
  }
  .settings-dialog .settings-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .settings-dialog .settings-heading,
  .settings-dialog .desktop-print-action {
    display: none;
  }
  .settings-dialog .settings-form {
    gap: 20px;
  }
  .sheet-footer {
    display: block;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f1f5f9;
    background: #fff;
    flex-shrink: 0;
  }
  .sheet-footer > .button {
    min-height: 43px;
    font-size: 13px;
  }
  .service-footer {
    padding: 20px 0 6px;
  }
  .service-footer > span:last-child {
    font-size: 9px;
  }
  .delivery-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    gap: 15px;
    margin-bottom: 18px;
  }
  .delivery-actions {
    width: 100%;
  }
  .delivery-actions > .button {
    flex: 1;
    font-size: 11px;
    padding: 9px 12px;
  }
  .result-pages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preview-dialog {
    max-width: 100%;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .preview-heading {
    padding: 13px;
  }
  .preview-heading .button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 32px;
  }
}
@media (max-width: 639px) {
  .topbar {
    height: 56px;
  }
  .header-inner {
    padding: 0 13px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
  .brand-icon .icon {
    width: 19px;
    height: 19px;
  }
  .brand-title {
    font-size: 14px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-button {
    padding: 7px 9px;
    font-size: 11px;
    border-radius: 11px;
  }
  .header-button .icon {
    width: 15px;
    height: 15px;
  }
  .help-button span,
  .history-button span {
    display: none;
  }
  .help-button {
    padding: 7px;
  }
  .login-button {
    gap: 4px;
  }
  .app-shell {
    padding: 17px 14px;
  }
  .upload-panel,
  .results-panel {
    padding: 16px;
    border-radius: 18px;
  }
  .queue-column {
    gap: 16px;
  }
  .section-heading h1 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 10px;
    max-width: 230px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 15px;
  }
  .section-heading > .button.small {
    font-size: 10px;
    padding: 7px 10px;
  }
  .drop-zone {
    padding: 21px 10px;
    min-height: 155px;
    border-radius: 16px;
  }
  .upload-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  .drop-zone strong {
    font-size: 12px;
    line-height: 1.7;
  }
  .drop-zone > span:last-child {
    font-size: 9px;
  }
  .desktop-copy {
    display: none;
  }
  .mobile-copy {
    display: inline;
  }
  .upload-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .upload-footer > .button {
    width: 100%;
  }
  .upload-footer .muted {
    font-size: 10px;
  }
  .queue-heading h2 {
    font-size: 14px;
  }
  .queue-heading {
    padding-bottom: 13px;
  }
  .heading-inline {
    gap: 7px;
  }
  .soft-badge {
    font-size: 9px;
  }
  .empty-state {
    min-height: 200px;
    padding: 38px 12px;
  }
  .empty-icon {
    width: 49px;
    height: 49px;
    border-radius: 15px;
  }
  .empty-icon .icon {
    width: 26px;
    height: 26px;
  }
  .empty-state h3 {
    font-size: 12px;
  }
  .empty-state p {
    font-size: 10px;
    max-width: 260px;
  }
  .segmented label > span {
    font-size: 10px;
    padding: 7px;
  }
  .task-meta {
    font-size: 8px;
    gap: 7px;
  }
  .task-meta > span:first-child {
    max-width: 45%;
  }
  .summary-grid {
    gap: 5px 10px;
    font-size: 9px;
  }
  .selection-toolbar {
    gap: 5px;
  }
  .selection-actions {
    gap: 8px;
  }
  .selection-actions .text-button {
    font-size: 9px;
  }
  .save-actions {
    gap: 7px;
  }
  .save-actions .muted {
    font-size: 8px;
  }
  .file-heading {
    padding: 13px 12px;
    gap: 8px;
  }
  .file-heading > input {
    width: 13px;
    height: 13px;
  }
  .file-type {
    width: 31px;
    height: 34px;
    border-radius: 10px;
    font-size: 9px;
  }
  .file-title {
    font-size: 11px;
  }
  .file-title small {
    font-size: 9px;
  }
  .file-heading-status .badge {
    display: none;
  }
  .file-heading-status {
    gap: 3px;
  }
  .file-body {
    padding: 0 12px 13px;
  }
  .frame-card {
    padding: 9px;
    gap: 7px;
  }
  .frame-row-top {
    gap: 5px;
  }
  .frame-row-top strong {
    font-size: 10px;
  }
  .frame-row-top .row-status {
    font-size: 8px;
  }
  .frame-check {
    width: 14px;
    height: 14px;
  }
  .frame-metadata {
    font-size: 9px;
    gap: 3px 7px;
  }
  .frame-editors {
    gap: 6px;
  }
  .frame-editor {
    display: block;
  }
  .frame-editor > span {
    display: none;
  }
  .frame-choice {
    font-size: 9px;
    min-height: 28px;
    padding: 4px;
  }
  .frame-output .download-link {
    font-size: 8px;
    padding: 3px 5px;
  }
  .file-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .file-footer .muted {
    font-size: 8px;
  }
  .file-footer .text-button {
    font-size: 9px;
  }
  .service-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
  }
  .service-footer > span:last-child {
    max-width: 160px;
    text-align: right;
  }
  .delivery-heading h1 {
    font-size: 16px;
  }
  .delivery-heading p {
    font-size: 10px;
  }
  .delivery-heading {
    padding: 17px;
  }
  .delivery-actions {
    gap: 8px;
  }
  .delivery-actions > .button {
    font-size: 10px;
    min-height: 39px;
    padding: 8px 10px;
  }
  .delivery-actions > .button .icon {
    width: 14px;
    height: 14px;
  }
  .delivery-file-card {
    padding: 16px;
    border-radius: 18px;
  }
  .delivery-file-heading {
    gap: 9px;
  }
  .delivery-file-heading h2 {
    font-size: 12px;
  }
  .pdf-emblem {
    width: 35px;
    height: 40px;
    border-radius: 11px;
  }
  .result-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .result-page-preview {
    height: 107px;
  }
  .result-page-body {
    padding: 10px;
  }
  .result-page-actions {
    gap: 4px;
  }
  .result-page-actions .download-link {
    font-size: 9px;
    padding: 5px 6px;
  }
  .result-page-actions .text-button {
    font-size: 9px;
  }
  .run-card {
    padding: 11px;
  }
  .run-meta {
    font-size: 9px;
  }
  .run-heading strong {
    font-size: 10px;
  }
  .history-dialog {
    width: 100%;
  }
  .drawer-heading {
    padding: 17px 20px;
  }
  .history-toolbar {
    padding: 14px 17px;
  }
  .history-panel {
    padding: 0 16px 18px;
  }
  .demo-dialog {
    max-width: calc(100% - 26px);
    padding: 22px;
  }
  .auth-dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    border: 0;
    border-radius: 26px 26px 0 0;
    padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .auth-brand h2 {
    font-size: 16px;
  }
  .auth-brand p {
    font-size: 9px;
  }
  .demo-note {
    font-size: 10px;
  }
  .modal-heading {
    gap: 8px;
  }
  .demo-code .button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .preview-heading h2 {
    font-size: 11px;
  }
  .preview-heading span {
    font-size: 9px;
  }
  .preview-heading {
    gap: 8px;
  }
  .preview-heading .button {
    font-size: 9px;
    padding: 7px;
  }
  .preview-heading .icon-button {
    width: 28px;
  }
  .confirm-dialog {
    border-radius: 20px;
  }
  .qr-dialog {
    padding: 27px 22px;
  }
  #notice {
    top: 13px;
    left: 14px;
    right: 14px;
    max-width: none;
    width: auto;
    font-size: 11px;
    padding: 11px 14px;
    border-radius: 15px;
    z-index: 100;
  }
}
