:root { color-scheme: light; font-family: Arial, sans-serif; color: #28343b; background: #f4f5f6; letter-spacing: 0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.page-header { max-width: 1180px; margin: 0 auto; padding: 26px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d4dadd; }
.page-header a { font-size: 14px; color: #285a7a; }
.page-header h1 { font-family: Georgia, serif; font-size: 28px; margin: 8px 0 0; }
.page-header img { height: auto; max-width: 27%; }
.label-workspace { max-width: 1180px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 32px; align-items: start; }
.label-controls, .sheet-preview { min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 7px; }
input, select, textarea, button { font: inherit; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; max-width: 100%; min-width: 0; border: 1px solid #b5c0c7; border-radius: 4px; background: white; padding: 9px; }
input[type="file"] { font-size: 13px; }
textarea { resize: vertical; line-height: 1.5; }
.source-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b5c0c7; border-radius: 4px; overflow: hidden; }
.source-switch label { margin: 0; padding: 10px 6px; text-align: center; background: #e8edef; cursor: pointer; font-size: 13px; }
.source-switch label:has(input:checked) { background: #d9e9f5; color: #174c72; }
.source-switch input { accent-color: #245b83; margin: 0 5px 0 0; }
.inline-check { display: flex; align-items: center; gap: 6px; font-weight: 400; }
button { border: 1px solid #a8b6bf; border-radius: 4px; padding: 10px 14px; cursor: pointer; background: #e8edef; color: #243d4b; }
button:hover:not(:disabled) { background: #d8e2e8; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid #397dab; outline-offset: 3px; }
.download-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
#label-download { background: #124877; color: white; border-color: #124877; font-weight: 700; }
#label-download:hover:not(:disabled) { background: #0c385e; }
#label-count, #label-status { font-size: 13px; color: #596c77; line-height: 1.45; overflow-wrap: anywhere; }
#label-status.error { color: #ae2424; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-toolbar h2 { font-size: 14px; margin: 0; }
.preview-toolbar nav { display: flex; align-items: center; gap: 10px; }
.preview-toolbar button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 20px; }
#label-page { min-width: 54px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
#label-preview { display: block; width: 100%; height: auto; border: 1px solid #c5cdd2; background: white; }
#label-empty { min-height: 250px; display: grid; place-items: center; border-top: 1px solid #d4dadd; color: #697b86; font-size: 14px; }
@media (max-width: 760px) {
  .label-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 18px; }
  .page-header { padding: 18px; }
  .page-header h1 { font-size: 24px; }
}
