@charset "UTF-8";

:root {
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif;
  color: #173d32;
  background: #f3f4ef;
  font-synthesis: none;
  --forest: #032f25;
  --forest-light: #164c3c;
  --gold: #d5ae4f;
  --gold-dark: #8a6a20;
  --gold-line: #e7dfc8;
  --ink: #173d32;
  --muted: #737e72;
  --line: #e7e8df;
  --font-mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, svg { flex-shrink: 0; }
svg { display: block; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { outline: none; }
:focus-visible { outline: 3px solid #b48c2c; outline-offset: 4px; }
::selection { background: #e9d89d; color: var(--forest); }
h1, h2, p { margin: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 20px; border: 1px solid var(--gold); border-radius: 8px; background: #fff; color: var(--forest); }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  min-height: 122px;
  padding: 21px max(32px, calc((100% - 1032px) / 2));
  border-bottom: 3px solid var(--gold);
  background: linear-gradient(115deg, #032f25, #0a3c2e 65%, #032f25);
  box-shadow: 0 5px 18px #092c1d10;
  color: #eee6cb;
}
.brand-group { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex-shrink: 0; }
.brand-credit { color: #e2d8b8; font: 400 12px/1.5 Arial, sans-serif; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand-wordmark { display: flex; flex-direction: column; align-items: flex-start; }
.brand-prefix { padding-left: 3px; font: 600 10px/1.3 Arial, sans-serif; letter-spacing: 3.5px; text-transform: uppercase; color: #eedba2; }
.brand-gpax {
  display: block;
  margin-top: 2px;
  padding: 0 .12em .04em 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow", Arial, sans-serif;
  font-size: 65px;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--gold);
  background: linear-gradient(110deg, #b98b30 0%, #f5dfa0 30%, #d5ae4f 52%, #e8ca7b 72%, #ba8e33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #75581966);
}
.sidebar-label, .sidebar-guide { display: none; }
.nav-current { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 11px 16px; border: 1px solid #c5aa5b55; border-radius: 9px; background: #d5ae4f0b; color: #f0dfab; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-current svg { width: 19px; height: 19px; color: var(--gold); }
.nav-dot { width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #d5ae4f18; }
.sidebar-bottom { display: flex; align-items: center; gap: 7px; color: #b2c1ab; font-size: 10px; white-space: nowrap; }
.local-dot { width: 5px; height: 5px; border-radius: 50%; background: #c7b66d; }

.main { width: min(1080px, 100%); margin: 0 auto; padding: 32px 24px 0; }
.page-header { margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-left: 21px; color: var(--gold-dark); font: 700 10px Arial, sans-serif; letter-spacing: 2px; }
.eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: #be953b; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.title-row > div { position: relative; padding-left: 21px; }
.title-row > div::before { position: absolute; top: 5px; bottom: 3px; left: 0; width: 5px; border-radius: 4px; background: linear-gradient(#e7c972, #b88b2e); content: ""; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.6px; line-height: 1.5; color: var(--forest); }
.page-description { margin-top: 5px; color: #6f7d6f; font-size: 13px; }
.file-badge { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #ded6bd; border-radius: 7px; background: #fbfaf5; color: #806d37; font: 11px Arial, sans-serif; letter-spacing: .2px; white-space: nowrap; }
.file-badge svg { width: 16px; height: 19px; }

.card { margin-bottom: 21px; padding: 29px 31px; border: 1px solid var(--gold-line); border-radius: 22px; background: #fff; box-shadow: 0 5px 22px #29422505, 0 2px 4px #b59a3e04; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.section-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; margin-top: 2px; border: 1px solid #dcc483; border-radius: 9px; background: linear-gradient(135deg, #fff9e5, #efe0ad); color: #7a5b19; font: 700 12px Arial, sans-serif; box-shadow: inset 0 1px 0 #fff; }
h2 { color: #173d32; font-size: 18px; font-weight: 600; letter-spacing: -.2px; line-height: 1.6; }
.section-heading p { margin-top: 3px; color: #6b745f; font-size: 12px; }
.required-label { margin-left: auto; padding-top: 5px; color: #856825; font-size: 11px; white-space: nowrap; }
.dropzone { position: relative; border: 1.5px dashed #cbb878; border-radius: 14px; background: linear-gradient(120deg, #fcfbf5, #fafbf7); transition: background .18s, border-color .18s, box-shadow .18s; }
.dropzone:hover, .dropzone.is-dragover, .dropzone.dragover { border-color: #a88630; background: #f8f4e5; box-shadow: inset 0 0 0 1px #d5ae4f2b; }
.dropzone:focus-within { outline: 3px solid #b48c2c; outline-offset: 4px; }
.file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
.upload-label { display: flex; flex-direction: column; align-items: center; min-height: 204px; padding: 25px 20px 23px; cursor: pointer; text-align: center; }
.upload-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 13px; border: 1px solid #dbc17e; border-radius: 13px; background: linear-gradient(135deg, #f7e7b5, #ddbd66); color: var(--forest); box-shadow: inset 0 1px 0 #fff9dc, 0 3px 6px #a1853520; }
.upload-icon svg { width: 27px; height: 27px; stroke-width: 1.65; }
.upload-label > strong { color: #214e3b; font-size: 16px; font-weight: 600; }
.dropzone-hint { margin-top: 5px; color: #6b735e; font-size: 12px; }
.choose-file { color: #7c601f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.upload-status { margin-top: 12px; color: #6b735e; font-size: 11px; }
.file-info { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 15px 16px; border: 1px solid #d6dfc9; border-radius: 12px; background: #f7faf3; }
.selected-file-icon { color: #527441; }
.selected-file-icon svg { width: 26px; height: 30px; }
.file-meta { min-width: 0; }
.file-meta strong { display: block; color: #294e36; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.file-meta > span { color: #74836b; font-size: 11px; }
.file-ready { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #5f793e; font-size: 11px; white-space: nowrap; }
.file-ready > span { width: 5px; height: 5px; border-radius: 50%; background: #7f9651; }
.icon-button { padding: 8px; border: 0; border-radius: 6px; background: transparent; color: #7c8970; }
.icon-button:hover { background: #e9efdf; color: #314d2f; }
.icon-button svg { width: 16px; height: 16px; }
.sheet-field { max-width: 430px; margin-top: 19px; }

.settings-card { padding-bottom: 28px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 23px; }
.field { min-width: 0; }
.field label { display: flex; align-items: center; gap: 5px; min-height: 23px; margin-bottom: 8px; color: #3c5644; font-size: 13px; font-weight: 600; }
.required-star { color: #9b6d1b; font-size: 13px; }
.column-label { margin-left: auto; padding: 0 5px; border: 1px solid #e7dfc6; border-radius: 4px; background: #fcfaf3; color: #887d5e; font: 10px/19px var(--font-mono); }
.optional { color: #6b735e; font-size: 10px; font-weight: 400; }
.field input, .field select { width: 100%; height: 46px; padding: 10px 13px; border: 1px solid #d9d5c6; border-radius: 8px; background: #fff; color: var(--forest); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input:required { border-color: #c9bd99; background: #fffef9; }
.field input::placeholder { color: #737963; font-size: 13px; }
.field input:hover, .field select:hover { border-color: #b5a572; }
.field input:focus, .field select:focus { border-color: #b99337; box-shadow: 0 0 0 3px #dfc67624; }
.field input:disabled, .field select:disabled { background: #f4f5f0; color: #828b7c; }
.field input[aria-invalid=true] { border-color: #bd6f51; background: #fffbf8; }
.field-hint { margin-top: 8px; color: #6b745f; font-size: 11px; line-height: 1.8; }
.rules-card { margin-bottom: 23px; border: 1px solid #e2d9bc; border-radius: 14px; background: #fafaf5; }
.rules-card summary { display: flex; align-items: center; gap: 11px; padding: 17px 20px; cursor: pointer; list-style: none; }
.rules-card summary::-webkit-details-marker { display: none; }
.rules-icon { display: grid; place-items: center; color: #9d7b2e; }
.rules-icon svg { width: 22px; height: 22px; }
.rules-card summary strong { display: block; color: #52613e; font-size: 13px; font-weight: 500; }
.rules-card summary small { display: inline; margin-left: 10px; color: #6b735e; font-size: 11px; }
.rules-card summary > span:nth-child(2) { display: flex; align-items: center; flex-wrap: wrap; }
.summary-chevron { margin-left: auto; color: #9c8953; transition: transform .18s; }
.summary-chevron svg { width: 18px; height: 18px; }
.rules-card[open] .summary-chevron { transform: rotate(180deg); }
.rules-content { padding: 0 21px 19px; border-top: 1px solid #e6dfc9; }
.rule { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 21px; padding: 18px 0; border-bottom: 1px solid #e9e6d8; }
.rule:last-of-type { border-bottom: 0; }
.format-example { padding: 12px; border: 1px solid #ede3c3; border-radius: 8px; background: #f4eedc; color: #6c581f; font: 14px var(--font-mono); white-space: nowrap; }
.format-example > span { margin: 0 6px; color: #b49b54; }
.birth-example { font-size: 12px; }
.birth-example > span { margin: 0 3px; }
.rule strong { color: #4b603c; font-size: 13px; font-weight: 500; }
.rule p { margin-top: 5px; color: #6b745f; font-size: 11px; line-height: 1.9; }
.rule code { color: #8c722b; font-size: 11px; }
.rules-note { margin-top: 8px; color: #6b735e; font-size: 11px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 1px; }
.privacy-note { display: flex; align-items: center; gap: 10px; color: #6b745f; font-size: 11px; line-height: 1.8; }
.privacy-note svg { width: 20px; height: 23px; color: #a0883c; stroke-width: 1.5; }
.action-buttons { display: flex; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 21px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 21px; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.button svg { width: 18px; height: 18px; stroke-width: 1.6; }
.button-primary { border-color: #bda054; background: linear-gradient(135deg, #174d39, #032f25); color: #f0d892; box-shadow: 0 3px 8px #032f2517, inset 0 1px 0 #d5ae4f17; }
.button-primary:hover:not(:disabled) { border-color: #d5ae4f; background: linear-gradient(135deg, #205c43, #0a3b2b); box-shadow: 0 5px 12px #032f2524; }
.button-primary:active:not(:disabled) { transform: translateY(1px); }
.button-primary:disabled { border-color: #d8dccf; background: #e6e9df; color: #8b9481; box-shadow: none; }
.button-secondary { border-color: #ddd6bf; background: #fffef9; color: #7c784e; }
.button-secondary:hover:not(:disabled) { border-color: #c0ad70; background: #f9f5e8; color: #5e632e; }
.button-secondary:disabled { color: #a2a694; }
.button.is-loading { pointer-events: none; opacity: .78; }
.button.is-loading::before { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin .8s linear infinite; }
.status-message { margin-bottom: 18px; padding: 14px 17px; border: 1px solid #d7dfc7; border-radius: 11px; background: #f1f6e9; color: #486337; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.status-message.is-error, .status-message.error { border-color: #ebd5c2; background: #fff6ef; color: #964b30; }
.status-message.is-success, .status-message.success { border-color: #d3e0bf; background: #f1f7e9; color: #446632; }
.status-message.is-info, .status-message.info { border-color: #dedfc8; background: #f5f7ed; color: #5f6c42; }
.status-message.is-warning, .status-message.warning { border-color: #e8d7a5; background: #fff9e8; color: #886622; }

.preview-section { margin-top: 30px; padding: 0; overflow: hidden; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 27px 31px 23px; }
.preview-header .section-heading { margin-bottom: 0; }
.success-number { border-color: #ceb875; background: linear-gradient(135deg, #f7edcb, #e7d59a); color: #64713b; }
.success-number svg { width: 19px; height: 19px; }
.preview-count { padding: 6px 10px; border: 1px solid #ded3aa; border-radius: 6px; background: #faf5e5; color: #857035; font-size: 11px; white-space: nowrap; }
.table-scroll { overflow: auto; border-top: 1px solid #e6dfc8; border-bottom: 1px solid #e6dfc8; scrollbar-width: thin; scrollbar-color: #cbbb86 #f6f5ed; }
.preview-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; white-space: nowrap; }
.preview-table th { padding: 14px 17px; border-bottom: 1px solid #e5dbc0; background: #f5f3e9; color: #626b43; font-size: 12px; font-weight: 500; }
.preview-table th small { margin-left: 4px; color: #796a3e; font: 9px var(--font-mono); }
.preview-table td { padding: 14px 17px; border-bottom: 1px solid #eeeee4; color: #46603e; font: 12px var(--font-mono); }
.preview-table td:first-child { background: #fcfcf8; color: #6b745f; font-size: 11px; }
.preview-table tbody tr:last-child td { border-bottom: 0; }
.preview-table tbody tr:hover td { background: #faf8ee; }
.download-area { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 31px; background: #fdfdf9; }
.output-field { width: min(100%, 390px); }
.output-field label { margin-bottom: 7px; font-size: 12px; }
.output-field input { height: 43px; font-size: 13px; }
.download-button { height: 45px; padding-inline: 20px; font-size: 13px; }
.page-footer { display: flex; align-items: center; gap: 15px; margin-top: 33px; padding: 20px 0 24px; border-top: 1px solid #dedbc9; color: #6b735e; font-size: 10px; }
.page-footer > span:first-child { color: #8e7a3c; font: 700 10px Arial, sans-serif; letter-spacing: 1.1px; }
.page-footer p { font-size: 10px; }
.footer-version { margin-left: auto; color: #6b735e; font: 9px Arial, sans-serif; white-space: nowrap; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1440px) {
  .sidebar { min-height: 132px; padding-block: 23px; }
  .brand-gpax { font-size: 71px; }
  .main { padding-top: 37px; }
}

@media (max-width: 1100px) {
  .sidebar { gap: 22px; padding-inline: 32px; }
  .sidebar-bottom { display: none; }
}

@media (max-width: 800px) {
  .sidebar { min-height: 111px; padding: 20px 27px; }
  .brand-gpax { font-size: 59px; }
  .brand-prefix { font-size: 9px; letter-spacing: 3px; }
  .main { padding: 29px 24px 0; }
  .card { padding: 25px; }
  .fields-grid { grid-template-columns: 1fr; gap: 20px; }
  .field label { font-size: 13px; }
  .field input, .field select { max-width: 100%; }
  .column-label { margin-left: 6px; }
  .field-hint { font-size: 11px; }
  .form-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .desktop-break { display: none; }
  .action-buttons { align-self: flex-end; }
  .file-badge { display: none; }
  .rules-card summary > span:nth-child(2) { display: block; }
  .rules-card summary small { display: block; margin: 3px 0 0; }
  .rule { grid-template-columns: 1fr; gap: 10px; }
  .format-example { justify-self: start; }
  .preview-section { padding: 0; }
  .preview-header, .download-area { padding-inline: 25px; }
  .preview-header { align-items: flex-start; }
  .download-area { align-items: stretch; flex-direction: column; gap: 16px; }
  .output-field { width: 100%; }
  .download-button { align-self: flex-end; }
}

@media (max-width: 600px) {
  .sidebar { min-height: 102px; gap: 14px; padding: 18px 21px; border-bottom-width: 2px; }
  .brand-gpax { font-size: 53px; letter-spacing: -1px; }
  .brand-prefix { padding-left: 1px; font-size: 8px; letter-spacing: 2.7px; }
  .nav-current { gap: 7px; padding: 9px 10px; border-radius: 8px; font-size: 11px; }
  .nav-current svg { width: 16px; height: 16px; }
  .nav-dot { display: none; }
  .main { padding: 27px 17px 0; }
  .page-header { margin-bottom: 23px; }
  .eyebrow { padding-left: 17px; margin-bottom: 9px; font-size: 9px; letter-spacing: 1.6px; }
  .title-row > div { padding-left: 17px; }
  .title-row > div::before { width: 4px; top: 3px; bottom: 1px; }
  h1 { font-size: 27px; letter-spacing: -.5px; }
  .page-description { font-size: 12px; line-height: 1.8; margin-top: 6px; }
  .card { margin-bottom: 17px; padding: 23px 19px; border-radius: 18px; }
  .section-heading { gap: 10px; margin-bottom: 20px; }
  .section-number { width: 29px; height: 29px; margin-top: 1px; border-radius: 8px; font-size: 11px; }
  h2 { font-size: 17px; }
  .section-heading p { margin-top: 3px; font-size: 11px; line-height: 1.8; }
  .required-label { padding-top: 4px; font-size: 10px; }
  .upload-label { min-height: 205px; padding: 26px 12px 23px; }
  .upload-label > strong { font-size: 15px; }
  .dropzone-hint { font-size: 12px; }
  .upload-status { font-size: 10px; }
  .upload-icon { width: 47px; height: 47px; }
  .fields-grid { gap: 20px; }
  .field label { font-size: 13px; margin-bottom: 8px; }
  .field input, .field select { height: 47px; font-size: 14px; }
  .field input::placeholder { font-size: 13px; }
  .field-hint { font-size: 11px; }
  .optional { font-size: 10px; }
  .column-label { font-size: 10px; }
  .rules-card { margin-bottom: 21px; border-radius: 12px; }
  .rules-card summary { gap: 9px; padding: 16px 16px; }
  .rules-card summary strong { font-size: 12px; }
  .rules-card summary small { font-size: 10px; }
  .rules-icon svg { width: 20px; height: 20px; }
  .rules-content { padding-inline: 17px; }
  .rule strong { font-size: 12px; }
  .rule p, .rules-note { font-size: 11px; }
  .form-actions { gap: 18px; }
  .privacy-note { gap: 8px; font-size: 10px; }
  .privacy-note svg { width: 18px; height: 21px; }
  .action-buttons { width: 100%; gap: 9px; }
  .button { padding: 13px 16px; border-radius: 9px; font-size: 12px; }
  .button-primary { flex: 1; }
  .button-secondary { min-width: 86px; }
  .button svg { width: 17px; height: 17px; }
  .file-info { gap: 10px; padding: 13px 12px; }
  .file-meta strong { font-size: 12px; }
  .file-meta > span { font-size: 10px; }
  .file-ready { display: none; }
  .icon-button { margin-left: auto; }
  .selected-file-icon svg { width: 23px; height: 27px; }
  .preview-section { margin-top: 27px; padding: 0; }
  .preview-header { gap: 8px; padding: 22px 19px 19px; }
  .preview-header h2 { font-size: 16px; }
  .preview-count { margin-top: 3px; padding: 5px 7px; font-size: 10px; }
  .download-area { padding: 20px 19px; }
  .download-button { flex: 0 0 auto; width: 100%; font-size: 12px; }
  .page-footer { flex-wrap: wrap; gap: 8px 12px; margin-top: 29px; padding: 18px 0 23px; }
  .page-footer > span:first-child { font-size: 9px; }
  .page-footer p { font-size: 9px; }
  .footer-version { width: 100%; margin-left: 0; font-size: 8px; }
}

@media (max-width: 370px) {
  .sidebar { padding-inline: 16px; gap: 10px; }
  .brand-gpax { font-size: 47px; }
  .nav-current { padding-inline: 8px; font-size: 10px; }
  .nav-current svg { display: none; }
  .main { padding-inline: 13px; }
  h1 { font-size: 24px; }
  .action-buttons { flex-direction: column-reverse; }
  .button { width: 100%; }
  .preview-header { flex-wrap: wrap; }
  .preview-count { margin-left: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* File comparison workspace */
.cmp-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px; border: 1px solid #c5aa5b44; border-radius: 11px; background: #001f1744; }
.cmp-nav-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #c8d2b9; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cmp-nav-tab svg { width: 18px; height: 18px; color: #bca76c; }
.cmp-nav-tab:hover { background: #d5ae4f0d; color: #f2e2b7; }
.cmp-nav-tab.is-active, .cmp-nav-tab[aria-selected="true"] { border-color: #c5aa5b70; background: linear-gradient(135deg, #d5ae4f23, #d5ae4f0f); color: #f0dfab; box-shadow: 0 1px 3px #001a1422; }
.cmp-nav-tab.is-active svg, .cmp-nav-tab[aria-selected="true"] svg { color: var(--gold); }
.cmp-nav-tab:focus-visible { outline-color: #e7ca79; outline-offset: 3px; }
.cmp-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.cmp-upload-card { min-width: 0; }
.cmp-upload-card .section-heading { margin-bottom: 19px; }
.cmp-upload-card h2 { font-size: 17px; }
.cmp-upload-card .section-heading p { font-size: 11px; }
.cmp-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 193px; padding: 22px 12px; border: 1.5px dashed #cbb878; border-radius: 13px; background: linear-gradient(120deg, #fcfbf5, #fafbf7); cursor: pointer; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s; }
.cmp-dropzone:hover, .cmp-dropzone.is-dragover, .cmp-dropzone.dragover { border-color: #a88630; background: #f8f4e5; box-shadow: inset 0 0 0 1px #d5ae4f2b; }
.cmp-dropzone:focus-within { outline: 3px solid #b48c2c; outline-offset: 4px; }
.cmp-dropzone .upload-icon { width: 43px; height: 43px; margin-bottom: 12px; border-radius: 11px; }
.cmp-dropzone .upload-icon svg { width: 25px; height: 25px; }
.cmp-dropzone > strong { color: #214e3b; font-size: 15px; font-weight: 600; }
.cmp-upload-prompt { margin-top: 5px; color: #6b735e; font-size: 11px; }
.cmp-dropzone .upload-status { margin-top: 10px; font-size: 10px; }
.cmp-dropzone:has(input:disabled) { cursor: wait; opacity: .65; }
.cmp-file-info { padding: 13px 12px; gap: 10px; }
.cmp-file-info .file-meta { flex: 1; }
.cmp-file-info .file-meta strong { font-size: 12px; }
.cmp-file-info .file-meta > span { font-size: 10px; }
.cmp-file-info .selected-file-icon svg { width: 23px; height: 27px; }
.cmp-file-info .icon-button { margin-left: auto; }
.cmp-upload-card .sheet-field { max-width: none; margin-top: 17px; }
.cmp-rules { margin-top: 0; }
.cmp-rules-content { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; padding: 19px 21px 21px; border-top: 1px solid #e6dfc9; }
.cmp-rules-content > div { min-width: 0; }
.cmp-rules-content strong { color: #4b603c; font-size: 12px; font-weight: 600; }
.cmp-rules-content p { margin-top: 6px; color: #6b735e; font-size: 11px; line-height: 1.9; }
.cmp-rules-content code { color: #79632b; font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.cmp-annotation-note { padding-left: 25px; border-left: 1px solid #e4ddc5; }
.cmp-example-label { color: #87703b; font-size: 10px; }
.cmp-annotation-example { display: inline-block; margin-top: 7px; padding: 3px 11px; border: 1px solid #d40000; border-radius: 4px; background: #fe0000; color: #000; font: 12px/1.6 var(--font-mono); }
.cmp-rules-content .cmp-blank-note { margin-top: 9px; font-size: 10px; }
.cmp-results { margin-top: 30px; padding: 0; overflow: hidden; }
.cmp-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 31px 23px; }
.cmp-result-eyebrow { margin-bottom: 5px; color: #957734; font-size: 10px; letter-spacing: .4px; }
.cmp-results-heading h2 { font-size: 19px; }
.cmp-results-heading p { margin-top: 5px; color: #6b745f; font-size: 12px; overflow-wrap: anywhere; }
.cmp-total { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; padding-left: 23px; border-left: 1px solid #e8dfc5; }
.cmp-total strong { color: #9b7b29; font: 500 34px/1.1 var(--font-mono); }
.cmp-total > span { margin-top: 6px; color: #7a7958; font-size: 10px; }
.cmp-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 17px; padding: 0 31px 23px; }
.cmp-toolbar .field label { margin-bottom: 7px; font-size: 11px; font-weight: 500; }
.cmp-toolbar .field input, .cmp-toolbar .field select { height: 40px; font-size: 12px; }
.cmp-toolbar .field input::placeholder { font-size: 12px; }
.cmp-filter-field { width: min(100%, 430px); }
.cmp-page-size-field { width: 135px; flex-shrink: 0; }
.cmp-table-scroll { background: #fff; }
.cmp-diff-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; text-align: left; }
.cmp-diff-table th { padding: 13px 17px; border-bottom: 1px solid #e5dbc0; background: #f5f3e9; color: #626b43; font-size: 11px; font-weight: 500; }
.cmp-diff-table th:first-child { width: 15%; }
.cmp-diff-table th:not(:first-child) { width: 28.33%; }
.cmp-diff-table td { padding: 14px 17px; border-bottom: 1px solid #eeeee4; color: #385b3c; font-size: 12px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.cmp-diff-table td:first-child { background: #fcfcf8; color: #7e7348; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.cmp-diff-table td:last-child { background: #fff7f1; color: #573c2d; }
.cmp-diff-table tbody tr:last-child td { border-bottom: 0; }
.cmp-diff-table tbody tr:hover td { background: #faf7eb; }
.cmp-diff-table tbody tr:hover td:last-child { background: #fff0e5; }
.cmp-empty { padding: 28px 25px 31px; border-top: 1px solid #e8e4d4; background: #fbfcf6; text-align: center; }
.cmp-empty-icon { display: grid; place-items: center; margin-bottom: 11px; color: #78914c; }
.cmp-empty-icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
.cmp-empty > strong { display: block; color: #426237; font-size: 16px; font-weight: 500; }
.cmp-empty p { max-width: 460px; margin: 6px auto 0; color: #6b745f; font-size: 12px; }
.cmp-pagination { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 16px 31px; background: #fbfcf8; }
.cmp-pagination p { color: #6b745f; font-size: 11px; }
.cmp-pagination-buttons { display: flex; gap: 7px; }
.cmp-page-button { gap: 6px; padding: 7px 11px; border-radius: 7px; font-size: 11px; line-height: 20px; }
.cmp-page-button svg { width: 14px; height: 14px; }
.cmp-page-button:disabled { border-color: #e5e7dd; background: #f6f7f1; color: #9ca28e; box-shadow: none; }
.cmp-download-area { align-items: center; border-top: 1px solid #e6dfc8; }
.cmp-download-area .field-hint { font-size: 10px; }

@media (max-width: 800px) {
  .sidebar { gap: 20px; }
  .cmp-nav-tab { gap: 7px; padding-inline: 11px; font-size: 11px; }
  .cmp-nav-tab svg { width: 17px; height: 17px; }
  .cmp-upload-grid { gap: 17px; }
  .cmp-upload-card { padding: 23px 19px; }
  .cmp-upload-card .section-heading { gap: 9px; }
  .cmp-upload-card h2 { font-size: 15px; }
  .cmp-upload-card .section-heading p { font-size: 10px; }
  .cmp-upload-card .section-number { width: 28px; height: 28px; font-size: 11px; }
  .cmp-dropzone { min-height: 189px; padding-inline: 9px; }
  .cmp-dropzone > strong { font-size: 14px; }
  .cmp-upload-prompt { font-size: 10px; }
  .cmp-rules-content { gap: 20px; }
  .cmp-annotation-note { padding-left: 19px; }
  .cmp-results-heading { padding-inline: 25px; }
  .cmp-toolbar, .cmp-pagination { padding-inline: 25px; }
  .cmp-download-area { align-items: stretch; }
}

@media (max-width: 600px) {
  .sidebar { flex-wrap: wrap; gap: 13px; }
  .brand-group { width: 100%; }
  .brand-credit { font-size: 11px; }
  .cmp-nav { margin-left: 0; }
  .cmp-nav { gap: 3px; padding: 3px; border-radius: 9px; }
  .cmp-nav-tab { min-height: 36px; padding: 8px 9px; border-radius: 5px; font-size: 11px; }
  .cmp-nav-tab svg { display: none; }
  .cmp-upload-grid { grid-template-columns: 1fr; gap: 0; }
  .cmp-upload-card { padding: 23px 19px; }
  .cmp-upload-card h2 { font-size: 17px; }
  .cmp-upload-card .section-heading p { font-size: 11px; }
  .cmp-upload-card .section-number { width: 29px; height: 29px; }
  .cmp-dropzone { min-height: 185px; }
  .cmp-dropzone > strong { font-size: 15px; }
  .cmp-upload-prompt { font-size: 11px; }
  .cmp-rules-content { grid-template-columns: 1fr; gap: 17px; padding: 17px; }
  .cmp-annotation-note { padding-top: 16px; padding-left: 0; border-top: 1px solid #e4ddc5; border-left: 0; }
  .cmp-rules-content strong { font-size: 12px; }
  .cmp-rules-content p { font-size: 11px; }
  .cmp-rules-content .cmp-blank-note { font-size: 10px; }
  .cmp-results-heading { align-items: flex-start; gap: 15px; padding: 23px 19px 20px; }
  .cmp-result-eyebrow { font-size: 9px; }
  .cmp-results-heading h2 { font-size: 17px; }
  .cmp-results-heading p { font-size: 11px; }
  .cmp-total { padding-left: 13px; }
  .cmp-total strong { font-size: 28px; }
  .cmp-total > span { font-size: 9px; }
  .cmp-toolbar { align-items: flex-end; gap: 12px; padding: 0 19px 20px; }
  .cmp-filter-field { flex: 1; width: auto; }
  .cmp-page-size-field { width: 108px; }
  .cmp-toolbar .field label { font-size: 10px; }
  .cmp-toolbar .field input, .cmp-toolbar .field select { height: 41px; padding-inline: 10px; font-size: 11px; }
  .cmp-toolbar .field input::placeholder { font-size: 11px; }
  .cmp-pagination { flex-wrap: wrap; gap: 11px; padding: 15px 19px; }
  .cmp-pagination p { width: 100%; font-size: 10px; }
  .cmp-pagination-buttons { margin-left: auto; }
  .cmp-page-button { width: auto; padding: 7px 11px; font-size: 11px; }
  .cmp-download-area { padding: 20px 19px; }
  .cmp-download-area .download-button { width: 100%; }
  .cmp-empty { padding: 24px 19px; }
  .cmp-empty p { font-size: 11px; }
}

@media (max-width: 370px) {
  .sidebar { gap: 9px; }
  .cmp-nav-tab { padding-inline: 7px; font-size: 10px; }
  .cmp-results-heading { flex-wrap: wrap; }
  .cmp-total { flex-direction: row; align-items: baseline; gap: 9px; width: 100%; padding-left: 0; border-left: 0; }
  .cmp-total strong { font-size: 25px; }
  .cmp-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .cmp-page-size-field { width: 125px; align-self: flex-end; }
}
