.excel-tool{margin:0;background:#eef1f4;color:#1f2d48}.excel-tool *{box-sizing:border-box}.gov-tricolor-strip{height:4px;background:linear-gradient(90deg,#f97316 33%,white 33%,white 66%,#16a34a 66%)}.excel-header{display:flex;align-items:center;gap:24px;padding:18px 28px;background:white;border-bottom:1px solid #fed7aa;flex-wrap:wrap}.excel-brand{font-weight:800;color:#1f2d48;text-decoration:none}.excel-brand strong{color:#ea580c;margin-left:12px}.excel-header nav,.excel-footer nav{display:flex;gap:18px;flex-wrap:wrap}.excel-header a,.excel-footer a{color:inherit}.local-badge{margin-left:auto;color:#15803d;font-size:12px}.excel-intro{padding:24px 28px 12px}.excel-intro h1{margin:0}.excel-intro p{margin:8px 0}.excel-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;margin:0 24px}.excel-settings,.preview-panel{background:white;border:1px solid #e2e8f0;border-radius:14px;min-width:0}.excel-settings summary{padding:16px;font-weight:700;cursor:pointer}.settings-content{padding:0 16px 18px}.excel-tool label:not(.check){display:block;font-weight:600;margin-top:12px;margin-bottom:5px}.excel-tool input:not([type=checkbox]),.excel-tool select{width:100%;border:1px solid #cbd5e1;border-radius:7px;padding:9px;background:white;color:#1f2d48;min-height:40px}.excel-tool button,.excel-button{border:1px solid #cbd5e1;background:white;color:#1f2d48;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:600;min-height:40px;text-align:center}.excel-tool button:disabled{opacity:.45;cursor:default}.excel-tool .excel-button{background:#ea580c;color:white;border-color:#ea580c}.excel-tool :focus-visible{outline:3px solid #2563eb;outline-offset:2px}.dropzone{border:2px dashed #fdba74;border-radius:10px;background:#fff7ed;padding:18px 10px;text-align:center}.dropzone span{display:block;font-size:12px;margin-top:6px}.dropzone.dragging{background:#ffedd5}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{display:flex;align-items:center;gap:8px;margin:12px 0}.excel-tool small{color:#64748b;font-size:12px}#fileInfo{overflow-wrap:anywhere;font-size:12px}#reset{margin-top:14px;width:100%}.excel-toolbar{padding:12px;border-bottom:1px solid #e2e8f0;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.toolbar-group,.export-actions{display:flex;align-items:center;gap:6px}.export-actions{margin-left:auto}#pageNumber{width:65px}.preview-panel #status,.excel-warnings{margin:12px 16px;font-size:13px}.excel-warnings{padding:10px;background:#fff7ed;border-left:3px solid #f97316;white-space:pre-line}.preview-scroll{height:75vh;min-height:450px;overflow:auto;background:#e7ebef;padding:20px;overscroll-behavior:contain}.paper-wrap{margin:0 auto 24px;position:relative}.paper{display:block;background:white;box-shadow:0 3px 12px #1f2d4825}.page-caption{text-align:center;font-size:12px;padding:7px}.empty-preview{text-align:center;padding:120px 10px;color:#64748b}.excel-help{max-width:960px;margin:36px auto;padding:24px;background:white;border-radius:12px}.excel-help h2{margin-top:24px}.excel-help details{padding:12px 0;border-top:1px solid #e2e8f0}.excel-footer{padding:24px;display:flex;flex-wrap:wrap;gap:24px;background:white}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}#printRoot{display:none}
@media(max-width:800px){.excel-workspace{grid-template-columns:1fr;margin:0 10px}.excel-settings{grid-row:2}.excel-intro{padding:20px 14px}.excel-header{padding:14px;gap:14px}.local-badge{margin-left:0}.excel-header nav{font-size:13px}.preview-scroll{height:60vh;min-height:360px;padding:12px}.export-actions{position:fixed;bottom:0;left:0;right:0;padding:10px;background:white;border-top:1px solid #fed7aa;z-index:20;justify-content:center}.export-actions button{flex:1;max-width:240px}.excel-tool{padding-bottom:72px}.excel-help{margin:24px 10px;padding:16px}}
@media print{html,body.excel-tool{margin:0!important;padding:0!important;background:white!important}body.excel-tool>*:not(#printRoot):not(#printPageStyle){display:none!important}#printRoot{display:block!important}.print-sheet{break-after:page;page-break-after:always;overflow:hidden}.print-sheet:last-child{break-after:auto;page-break-after:auto}.print-sheet svg{display:block;width:100%;height:100%;box-shadow:none}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Match the rounded A4 document studios. */
@media screen {
.excel-tool { background:#fff7ed; }
.excel-header { padding:12px 16px; min-height:56px; }
.excel-intro { padding:12px 16px 8px; }
.excel-intro h1 { font-size:20px !important; }
.excel-intro p { font-size:12px; margin:5px 0; }
.excel-workspace { grid-template-columns:330px minmax(0,1fr); gap:12px; margin:0 12px; align-items:start; }
.excel-settings { border-color:#ffbd8a; max-height:calc(100dvh - 150px); overflow:auto; }
.preview-panel { border:0; background:transparent; }
.excel-toolbar { border:1px solid #ffbd8a; border-radius:14px; padding:4px 10px; gap:6px; background:#fff; }
.excel-toolbar button { min-height:28px; padding:3px 6px; font-size:11px !important; line-height:1.25; border-radius:4px; }
.excel-toolbar .toolbar-group { gap:3px; }
.excel-toolbar #zoomLabel { font-size:11px; font-weight:800; min-width:36px; text-align:center; }
.excel-toolbar #pageNumber { width:52px; min-height:28px; padding:3px 5px; font-size:11px !important; }
.preview-panel #status { font-size:12px; margin:6px 10px; }
.preview-scroll { border:1px solid #ffbd8a; border-radius:14px; background:#eef2f6; padding:6px 10px 20px; height:calc(100dvh - 220px); min-height:420px; cursor:grab; touch-action:none; }
.preview-scroll.is-panning { cursor:grabbing; user-select:none; }
.preview-scroll .paper { border-radius:2px; }
.excel-settings :is(input,select,button) { border-color:#ffbd8a; }
}
@media screen and (max-width:800px) {
.excel-workspace { grid-template-columns:1fr; }
.excel-settings { max-height:none; }
.excel-toolbar button { min-height:44px; min-width:44px; font-size:12px !important; padding:6px 8px; }
.preview-scroll { height:65dvh; min-height:380px; }
}

/* Three-column structure matching pdf-auto-crop.html. */
@media screen {
.excel-header { justify-content:center; }
.excel-header .excel-main-actions { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.excel-main-actions>a { font-size:12px; font-weight:700; text-decoration:none; padding:8px; }
.excel-main-actions button { min-height:36px; font-size:12px !important; padding:7px 12px; }
.excel-main-actions .export-actions { position:static; margin:0; padding:0; border:0; display:flex; gap:8px; background:transparent; }
.excel-main-actions #print { background:#ea580c; color:#fff; border-color:#ea580c; }
.excel-main-actions #download { background:#10b981; color:#fff; border-color:#10b981; }
.excel-intro { display:none; }
.excel-tool main>#status { margin:0; padding:10px 16px; font-size:13px; background:#fff7ed; }
.excel-workspace { grid-template-columns:330px minmax(0,1fr) 340px; align-items:stretch; padding:12px; margin:0; height:calc(100dvh - 104px); min-height:620px; }
.excel-settings,.excel-layout-panel { background:#fff; border:1px solid #ffbd8a; border-radius:14px; overflow:auto; min-width:0; max-height:none; }
.excel-settings>summary,.excel-layout-panel>h2 { padding:14px 16px; margin:0; border-bottom:1px solid #ffbd8a; font-size:14px !important; font-weight:800; }
.excel-layout-content { padding:4px 16px 18px; }
.excel-layout-content :is(input,select,button) { border-color:#ffbd8a; }
.preview-panel { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.excel-toolbar { justify-content:center; flex-shrink:0; }
.preview-scroll { flex:1; min-height:0; height:auto; padding:6px 10px 20px; }
.excel-empty-paper { width:595px; height:842px; margin:0 auto; max-width:100%; background:white; box-shadow:0 10px 35px #0f172a26; display:flex; align-items:center; justify-content:center; }
.excel-empty-paper .empty-preview { padding:24px; }
.excel-empty-paper h2 { font-size:16px !important; color:#0f172a; }
.excel-empty-paper p { font-size:12px; }
.excel-empty-icon { margin:auto; width:64px; height:64px; display:grid; place-items:center; background:#fff7ed; color:#ea580c; border-radius:50%; font-size:28px; }
}
@media screen and (max-width:1100px) {
.excel-workspace { grid-template-columns:280px minmax(0,1fr); height:auto; }
.excel-layout-panel { grid-column:1/-1; }
.preview-scroll { height:70dvh; min-height:480px; }
}
@media screen and (max-width:700px) {
.excel-workspace { grid-template-columns:1fr; }
.excel-settings,.excel-layout-panel { grid-column:1; }
.excel-main-actions button { min-height:44px; }
.preview-scroll { min-height:400px; }
.excel-tool { padding-bottom:0; }
}

.excel-preview-notes { margin-top:16px; border-top:1px solid #ffbd8a; }
.excel-settings .excel-preview-notes>summary { padding:10px 0; border:0; font-size:12px !important; color:#c2410c; }
.excel-preview-notes #warnings { margin:0; padding:10px; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }

.settings-content #status:empty { display:none; }
.settings-content #status { margin:8px 0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
@media screen and (min-width:1101px) { .excel-workspace { height:calc(100dvh - 68px); } }

@media screen { .excel-workspace { padding-top:0; } }
