button,input,select{font-family:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,input,select{font-size:16.1px}.side-menu .clarify-link{font-size:14.95px;padding:3px 0 12px;color:#40331e}.count-badge{font-size:12.65px;margin-left:6px}.workspace-body{margin-top:28px}.muted{color:#303a32;font-size:14.95px;line-height:1.6}.notice{padding:13px 16px;border:1px solid #dce1d7;border-radius:4px;margin:18px 0;font-size:16.1px;line-height:1.6}.error{color:#a04732}.btn{border:1px solid var(--rule);background:transparent;color:var(--ink);border-radius:4px;padding:9px 14px;line-height:22px}.btn:hover:not(:disabled){background:#f0f2ec}.btn.primary{background:#53665a;color:#fff;border-color:#53665a}.btn.link{border:0;padding-left:0;padding-right:0;text-decoration:underline;text-underline-offset:4px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar.between{justify-content:space-between}.wizard-head{margin-bottom:24px}.steps{display:flex;gap:22px;list-style:none;padding:0;margin:0 0 22px;flex-wrap:wrap;font-size:14.95px;color:#303a32}.steps li{padding:8px 0;border-bottom:2px solid transparent}.steps li[aria-current=step]{color:#25382c;border-color:#637c68}.steps b{font-weight:500;margin-right:6px}.file-name{font-size:14.95px;overflow-wrap:anywhere}.form-grid{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-end;margin:24px 0}.form-grid label,.field-label{display:flex;flex-direction:column;gap:8px;font-size:14.95px;line-height:1.5}.control{border:1px solid var(--rule);background:transparent;color:var(--ink);border-radius:4px;padding:9px 10px;min-height:40px;max-width:100%}.row-input{width:115px}.preview-scroll{max-height:360px;overflow:auto;border:1px solid #dde1d9;border-radius:4px;position:relative;overscroll-behavior:contain}.sheet-table,.data-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13.8px}.sheet-table th,.sheet-table td,.data-table th,.data-table td{padding:9px 12px;border-bottom:1px solid #e7e9e2;border-right:1px solid #e7e9e2;white-space:nowrap;max-width:340px;overflow:hidden;text-overflow:ellipsis;text-align:left;font-weight:300}.sheet-table thead th{position:sticky;top:0;background:#eef0eb;z-index:2}.sheet-table .row-number{position:sticky;left:0;min-width:48px;background:#f4f5f0;z-index:1;text-align:right}.sheet-table thead .row-number{z-index:3}.sheet-table tr.header-row td{background:#e9eee4;font-weight:600}.sheet-table tr.before-data td{color:#465047}.sheet-table tr.data-start td{border-top:2px solid #84977c}.preview-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:13.8px}.preview-toolbar label{display:flex;align-items:center;gap:8px}.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 40px}.wizard-actions .right{display:flex;gap:12px}.mapping-list{border-top:1px solid var(--rule);margin-top:20px}.mapping-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.2fr);gap:24px;padding:20px 0;border-bottom:1px solid #e3e6de}.source-name{font-size:17.25px;overflow-wrap:anywhere}.example{font-size:13.8px;color:#303a32;margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.mapping-target select{width:100%}.new-field{display:flex;gap:8px;margin-top:9px}.new-field input{width:100%;min-width:0}.rules{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:13.8px}.rules label{display:flex;gap:6px;align-items:center;line-height:1.5}.manual-field{padding:20px 0;border-bottom:1px solid #e3e6de}.manual-field h2{font-size:17px;font-weight:400;margin:0 0 8px}.manual-field .control{width:min(440px,100%)}.summary-stats{display:flex;gap:40px;margin:28px 0;flex-wrap:wrap}.summary-stats strong{display:block;font-weight:300;font-size:30px;line-height:1.5}.summary-stats span{font-size:13.8px;color:#303a32}.reason-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:24px 0}.reason-card{text-align:left;border:1px solid #dfe2d9;background:transparent;border-radius:4px;padding:20px;color:var(--ink)}.reason-card strong{display:block;font-size:28px;font-weight:300;margin:0 0 10px}.reason-card span{font-size:14.95px;overflow-wrap:anywhere}.table-wrap{overflow:auto;margin-top:22px;border:1px solid #e0e3dc;border-radius:4px;max-height:520px}.data-table th{background:#f0f2eb;position:sticky;top:0;z-index:1;font-weight:500}.data-table td{white-space:pre-wrap;min-width:130px;max-width:320px;overflow-wrap:anywhere}.pager{display:flex;gap:16px;align-items:center;margin-top:16px;font-size:13.8px}.auth-box{max-width:420px;margin-top:24px}.auth-box label{margin:16px 0}.auth-box .control{width:100%}.auth-status{font-size:13.8px;color:#303a32;margin:20px 0}.auth-status button{margin-left:10px}.dialog{border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--ink);padding:28px;max-width:440px;width:calc(100% - 40px)}.dialog::backdrop{background:#25302750}.dialog h2{font-size:21px;font-weight:300;margin-top:0}.dialog p{font-size:16.1px;line-height:1.7}.dialog .toolbar{justify-content:flex-end;margin-top:24px}input[type=checkbox]{accent-color:#5d705f}.loading{font-size:16.1px;padding:20px 0;color:#303a32}progress{width:min(400px,100%);accent-color:#637c68}.import-button{cursor:pointer}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.steps{gap:12px}.mapping-row{grid-template-columns:1fr;gap:12px}.summary-stats{gap:22px}.form-grid{gap:14px}.preview-scroll{max-height:300px}.wizard-actions{flex-wrap:wrap}.wizard-actions .right{margin-left:auto}.cabinet{grid-template-columns:108px minmax(0,1fr)}}
.title-group{display:flex;align-items:center;gap:14px;min-width:0}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:4px;background:transparent;color:#303a32;flex:none}.icon-button svg{width:20px;height:20px}.icon-button:hover{background:#f1ece7}.danger{color:#8d4836}.btn.destructive{background:#8d4836;border-color:#8d4836;color:#fff}.btn.destructive:hover:not(:disabled){background:#783b2b}.side-menu .settings-link{margin-top:26px}.fields-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:22px}.fields-toolbar p{margin:0}.field-setting{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #e1e5db}.field-setting .control{width:100%;min-width:0}.field-setting .field-usage{font-size:13.8px;color:#303a32;margin:7px 0 0;line-height:1.6}.field-setting button{align-self:start}.field-setting .icon-button{margin-top:3px}@media(max-width:700px){.field-setting{grid-template-columns:minmax(0,1fr) auto}.field-setting .save-field{grid-column:1;grid-row:2;justify-self:start}.field-setting .delete-field{grid-column:2;grid-row:1}.title-group{gap:8px}}
.header-actions{display:flex;align-items:flex-start;gap:24px}.language-switch{display:flex;gap:12px;margin-top:20px;white-space:nowrap}.language-switch button{font-size:14px;line-height:22px;padding:0 0 2px;border:0;border-bottom:1px solid transparent;color:#303a32;background:transparent}.language-switch button[aria-pressed=true]{font-weight:600;color:#141c16;border-color:#516756}.global-loader{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#fbfbfa99;pointer-events:none}.loader-panel{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 32px;border-radius:8px;background:#fbfbfaeb;color:#202822;box-shadow:0 3px 24px #20302012;font-size:16px}.spinner{display:block;width:34px;height:34px;border:3px solid #dce2d9;border-top-color:#344c3a;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:1.8s}}@media(max-width:600px){.header-actions{flex-direction:column;align-items:flex-end;gap:2px;flex:none}.header-actions .account{margin-top:0;height:35px}.language-switch{order:2;margin-top:0;gap:8px}.language-switch button{font-size:12px;line-height:18px}.brand{min-width:0}.caption{max-width:calc(100vw - 130px);overflow:hidden;text-overflow:ellipsis}}
/* Cabinet — approved sketch 1. Header and public home retain their layout. */
.cabinet{grid-template-columns:180px minmax(0,1fr);gap:48px;margin-top:44px}
.cabinet .side-menu{gap:13px}
.cabinet .side-menu a{position:relative;border-radius:0;padding:10px 0;font-size:18px;line-height:24px}
.cabinet .side-menu a:hover{background:transparent;color:#162d23}
.cabinet .side-menu a[aria-current=page]::before{content:"";position:absolute;left:-25px;top:10px;bottom:10px;width:3px;background:#244537}
.cabinet .side-menu .clarify-link{font-size:16px;padding-left:14px;padding-bottom:14px;color:#303a32}
.cabinet .side-menu .organizations-link,.cabinet .side-menu .settings-link{margin-top:0}
.cabinet h1{font-size:29px;line-height:1.4;font-weight:300;letter-spacing:-.5px}
.cabinet .title-group{gap:16px}
.cabinet .workspace-body{margin-top:26px}
.cabinet .catalog-total{margin-top:42px;margin-bottom:25px}
.cabinet .total-number{font-size:42px;line-height:52px}
.cabinet .catalog-total p{font-size:16px;line-height:24px;margin-top:0}
.cabinet .import-button,.cabinet .btn{border:0;border-bottom:1px solid #50675b;border-radius:0;background:transparent;color:#202822;padding:8px 9px;line-height:24px;font-size:16px}
.cabinet .import-button{gap:9px;padding:8px 6px 7px}
.cabinet .import-button:hover,.cabinet .btn:hover:not(:disabled){background:#edf0ea}
.cabinet .btn.primary{color:#162e21;border-color:#244537;font-weight:600;background:#eef1eb}
.cabinet .btn.destructive{color:#8d4836;background:transparent;border-color:#8d4836}
.cabinet .table-wrap{border:0;border-radius:0;margin-top:24px;max-height:560px}
.cabinet .data-table{font-size:16px;table-layout:fixed}
.cabinet .data-table th,.cabinet .data-table td{border-right:0;border-bottom:1px solid #e0e3df;padding:17px 22px;text-overflow:ellipsis;line-height:1.55;min-width:0;max-width:none}
.cabinet .data-table th{font-weight:400;background:#f3f3ef;padding-top:16px;padding-bottom:16px;white-space:nowrap}
.cabinet .data-table td{white-space:pre-wrap;vertical-align:middle;color:#202822}
.cabinet .data-table td:first-child{font-weight:600}
.cabinet .data-table tbody tr{cursor:pointer}
.cabinet .data-table tbody tr:hover,.cabinet .data-table tbody tr:focus-visible{background:#f0f2ed;outline:0}
.cabinet .control{border:1px solid #ccd2cc;border-radius:2px;background:transparent;min-height:46px;padding:10px 14px;font-size:16px;line-height:24px;color:#202822}
.cabinet .control:focus{outline:1px solid #637e6c;outline-offset:0;border-color:#637e6c}
.cabinet .mapping-head,.cabinet .mapping-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1fr) minmax(180px,1.2fr);gap:24px;align-items:center}
.cabinet .mapping-head{margin-top:26px;padding:12px 14px 18px;border-bottom:1px solid #dde1dc;color:#303a32;font-size:15px}
.cabinet .mapping-list{margin-top:0;border-top:0}
.cabinet .mapping-row{padding:20px 14px;border-bottom:1px solid #e0e3df}
.cabinet .source-name{font-size:16px;font-weight:600;line-height:1.6}
.cabinet .example{margin:0;font-size:16px;color:#303a32;line-height:1.6}
.cabinet .muted,.cabinet .file-name,.cabinet .form-grid label,.cabinet .field-setting .field-usage{font-size:15px;color:#303a32}
.cabinet .reason-card{border:0;border-bottom:1px solid #d3d8d3;border-radius:0;background:#f4f4f0}
.cabinet .field-setting{padding:22px 0;gap:18px}
.track-dialog{width:min(1000px,calc(100% - 64px));max-width:1000px;max-height:85dvh;padding:30px 36px;border:1px solid #d3d8d3;border-radius:3px;overflow:auto}
.track-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;border-bottom:1px solid #dfe3dc;padding-bottom:20px;margin-bottom:8px;position:sticky;top:-30px;background:var(--paper);z-index:2}
.track-dialog h2{margin:0;font-size:27px;line-height:1.5;overflow-wrap:anywhere}
.track-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
.track-field{padding:21px 0;border-bottom:1px solid #e0e3df;min-width:0}
.track-label{font-size:15px;color:#303a32;line-height:1.6;margin-bottom:8px}
.track-value{font-size:18px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#202822}
.language-switch{position:relative;gap:0}
.language-switch #language-toggle{display:flex;align-items:center;gap:5px;border:0;font-weight:400;padding:0 0 2px;color:#202822}
.language-chevron{font-size:12px;margin-left:2px}
.language-menu{position:absolute;right:0;top:31px;min-width:165px;padding:5px 0;border:1px solid #d3d8d3;background:#fbfbfa;box-shadow:0 4px 14px #263b2c0c;z-index:30}
.language-menu button{display:block;width:100%;text-align:left;border:0;padding:9px 14px;font-size:14px;line-height:22px;white-space:nowrap}
.language-menu button:hover,.language-menu button:focus-visible{background:#eff1eb}
.language-menu button[aria-checked=true]{font-weight:600}
@media(max-width:1000px){.cabinet{grid-template-columns:150px minmax(0,1fr);gap:32px}.cabinet .data-table th,.cabinet .data-table td{padding:15px 13px}.cabinet .mapping-head,.cabinet .mapping-row{gap:16px;grid-template-columns:minmax(95px,1fr) minmax(90px,1fr) minmax(140px,1.2fr)}}
@media(max-width:700px){.cabinet{grid-template-columns:108px minmax(0,1fr);gap:20px}.cabinet h1{font-size:23px}.cabinet .side-menu a{font-size:15px}.cabinet .side-menu a[aria-current=page]::before{left:-12px}.cabinet .side-menu .clarify-link{font-size:14px;padding-left:8px}.cabinet .mapping-head{display:none}.cabinet .mapping-row{grid-template-columns:1fr;gap:10px;padding:20px 0}.cabinet .example{font-size:15px}.cabinet .mapping-list{border-top:1px solid #dde1dc;margin-top:24px}.cabinet .data-table{min-width:650px}.track-dialog{width:calc(100% - 28px);padding:22px;max-height:90dvh}.track-fields{grid-template-columns:1fr}.track-dialog-head{top:-22px}.cabinet .catalog-total{margin-top:25px}.cabinet .import-button{font-size:14px}}

/* Compact catalog rows, with more room for work titles. */
.cabinet .catalog-table th,.cabinet .catalog-table td{padding-top:10px;padding-bottom:10px}
.cabinet .catalog-table th:first-child:not(:last-child){width:36%}
.cabinet .catalog-table th:nth-child(2){width:27%}
.cabinet .catalog-table th:nth-child(3){width:22%}
.cabinet .catalog-table th:nth-child(4){width:15%}

/* One visible mapping control: editable draft name with a native choice arrow. */
.field-combo{position:relative;width:100%}
.cabinet .field-combo input{width:100%;padding-right:46px;min-width:0}
.field-combo-arrow{position:absolute;right:15px;top:50%;transform:translateY(-58%);pointer-events:none;font-size:18px;color:#303a32}
.mapping-target .field-combo .field-combo-select{position:absolute;right:0;top:0;width:40px;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0}
.field-combo:focus-within input{outline:1px solid #637e6c;outline-offset:0;border-color:#637e6c}
/* Shared fixed-arrow field picker. */
.mira-picker{position:relative;width:100%;min-width:0}
.mira-picker .control{width:100%;min-width:0;padding-right:44px!important}
.mira-picker input[readonly]{cursor:pointer;text-overflow:ellipsis}
.picker-arrow{position:absolute;right:1px;top:1px;bottom:1px;width:40px;display:grid;place-items:center;border:0;background:transparent;padding:0;color:#303a32}
.picker-arrow svg{width:18px;height:18px;stroke-width:1.5}
.mira-picker:focus-within .control{border-color:#637e6c;outline:1px solid #637e6c;outline-offset:0}
.picker-options{position:fixed;z-index:10020;border:1px solid #cbd2ca;border-radius:2px;background:#fbfbfa;box-shadow:0 4px 14px #25302710;overflow-y:auto;overscroll-behavior:contain;padding:4px 0}
.picker-options button{display:block;width:100%;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;background:transparent;color:#202822;font-size:16px;line-height:1.5;padding:10px 14px}
.picker-options button:hover,.picker-options button:focus{background:#edf1e9;outline:0}
.picker-options button[aria-selected=true]{font-weight:600}
.reports-toolbar{display:flex;justify-content:flex-end;margin-bottom:22px}
.report-row{display:grid;grid-template-columns:minmax(0,1fr) auto 36px 36px;gap:18px;align-items:center;padding:21px 0;border-bottom:1px solid #dfe3dc}
.report-file-info{min-width:0}.report-name{overflow-wrap:anywhere;white-space:normal;line-height:1.6;font-size:17px;color:#202822}
.report-download{border:0;padding:0;text-align:left;background:transparent;font:inherit;font-size:17px;color:#202822;line-height:1.6}.report-download:hover{text-decoration:underline;text-underline-offset:4px}
.report-added{font-size:14px;line-height:1.5;color:#303a32;margin:5px 0 0}.report-range{display:flex;flex-direction:column;gap:5px;align-items:flex-start}.report-range span{font-size:14px;color:#303a32}.report-range strong{font-size:15px;font-weight:400;white-space:nowrap}.report-link.is-linked{color:#245c38}
.report-attach{max-width:530px;padding:28px}.report-attach .field-label{margin-bottom:10px}.report-attach .control,.report-links .control{border:1px solid #ccd2cc;border-radius:2px;background:transparent;min-height:46px;padding:10px 14px;font-size:16px;line-height:24px;color:#202822}
.report-attach .toolbar,.report-links>.toolbar{justify-content:flex-end;margin-top:24px}
.report-links{width:min(1100px,calc(100% - 48px));max-width:1100px;max-height:88dvh;overflow:auto;padding:28px}.report-links h2{margin:0}.report-links .track-dialog-head{top:-28px}.report-links .mapping-head,.report-links .mapping-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1fr) minmax(180px,1.2fr);gap:24px;align-items:center;padding:18px 0;border-bottom:1px solid #dfe3dc}.report-links .mapping-head{font-size:15px;color:#303a32}.report-links .mapping-list{margin:0;border:0}.report-links .source-name{font-size:16px;font-weight:600}.report-links .example{font-size:16px;margin:0}.report-links .report-layout label{flex:1;min-width:150px}.report-links .report-layout input,.report-links .report-layout select{width:100%}
@media(max-width:750px){.report-row{grid-template-columns:minmax(0,1fr) 36px 36px;gap:10px}.report-range{grid-column:1;grid-row:2}.report-row>.report-link{grid-column:2;grid-row:1}.report-row>.danger{grid-column:3;grid-row:1}.report-links{width:calc(100% - 24px);padding:20px}.report-links .mapping-row{grid-template-columns:1fr;gap:10px}.report-links .mapping-head{display:none}.report-links .track-dialog-head{top:-20px}}

.report-attach .btn,.report-links .btn{border:0;border-bottom:1px solid #50675b;border-radius:0;background:transparent;color:#202822;padding:8px 9px;line-height:24px}
.report-attach .btn.primary,.report-links .btn.primary{background:#eef1eb;color:#162e21;font-weight:600}

/* Compact alternating report rows with one smoothly expanding area. */
#report-list{overflow-anchor:none}
.report-row{display:block;padding:0;background:transparent;overflow-anchor:none}
.report-row:nth-child(even){background:#f0f2ed}
.report-summary{display:grid;grid-template-columns:minmax(0,1fr) 40px 36px;gap:18px;align-items:center;padding:10.5px 18px}
.report-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;width:100%;min-width:0;border:0;border-radius:0;padding:0;text-align:left;background:transparent;color:var(--ink);font:inherit}
.report-toggle .report-file-info,.report-toggle .report-name,.report-toggle .report-added{display:block}
.report-toggle .report-range{display:flex}
.report-summary .report-link{width:40px;height:40px;padding:2px}
.report-summary .report-link svg{width:28.8px;height:28.8px;stroke-width:1.45}
.report-expansion{height:0;overflow:hidden;transition:height .5s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){.report-expansion{transition:none}}
@media(max-width:750px){.report-summary{grid-template-columns:minmax(0,1fr) 40px 36px;gap:8px}.report-toggle{grid-template-columns:1fr;gap:8px}.report-toggle .report-range{grid-column:1;grid-row:2}}

/* Consistent report actions and quiet touch feedback. */
.report-row,.report-toggle,.report-summary .icon-button{-webkit-tap-highlight-color:transparent}
.report-summary{grid-template-columns:minmax(0,1fr) 130px 180px 36px;gap:22px}
.report-toggle{display:block}
.report-summary .report-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:130px;height:auto;min-height:50px;padding:0}
.report-link-caption{display:block;font-size:13.5px;line-height:1.4;font-weight:300;white-space:normal;text-align:center;color:#303a32}
.report-summary>.report-range{grid-column:3;grid-row:1}
@media(max-width:750px){.report-summary{grid-template-columns:minmax(0,1fr) 110px 32px;gap:10px}.report-summary .report-link{width:110px;grid-column:2;grid-row:1}.report-summary>.report-range{grid-column:1 / span 2;grid-row:2}.report-summary>.danger{grid-column:3;grid-row:1}}

.format-row{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #e1e4de}.format-number{width:24px;color:#424c45}.format-field{flex:1;min-width:0}.format-field small{display:block;font-size:14px;color:#49554c;margin-top:5px}.format-field .control{width:100%}.format-order{display:flex;gap:4px}.format-order button:disabled{opacity:.25;cursor:default}.format-add{display:flex;align-items:end;gap:24px;margin-top:24px}.format-add label{flex:1}.format-add select{display:block;width:100%;margin-top:8px}#report-format{max-width:850px}#report-settings[hidden]{display:none}@media(max-width:600px){.format-row{gap:8px}.format-add{align-items:stretch;flex-direction:column;gap:12px}.format-order{gap:0}}

/* Report format: controls share the input centre; descriptions occupy their own row. */
#report-format .format-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;column-gap:16px;row-gap:5px;padding:14px 0;align-items:center}
#report-format .format-field{display:contents}
#report-format .format-field>.control,#report-format .format-field>.source-name{grid-column:2;grid-row:1;min-height:46px;display:flex;align-items:center}
#report-format .format-field>small{grid-column:2;grid-row:2;margin:0}
#report-format .format-number{grid-column:1;grid-row:1}
#report-format .format-order{grid-column:3;grid-row:1;align-items:center}
#report-format .format-order .icon-button{display:grid;place-items:center;width:36px;height:40px;padding:0;line-height:1}
#report-format .format-add{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px}
#report-format .format-add-mira label{display:block;margin-bottom:8px}
#report-format .picker-arrow{right:9px;top:0;bottom:0;width:40px}
#report-format .picker-arrow svg{transform-origin:50% 50%;transition:transform .16s ease}
#report-format .picker-arrow[aria-expanded=true] svg{transform:rotate(180deg)}
#report-format .mira-picker .control{padding-right:56px!important;height:46px}
#report-format #format-extra{height:46px;margin:0;align-self:end}
#report-format button:disabled,#report-format input:disabled{opacity:.4;cursor:default}
#report-format .control:focus-visible{outline:1px solid #637e6c;outline-offset:0}
@media(max-width:600px){#report-format .format-row{column-gap:8px;grid-template-columns:18px minmax(0,1fr) auto}#report-format .format-order .icon-button{width:28px}#report-format .format-add{grid-template-columns:1fr;gap:12px}#report-format #format-extra{justify-self:start}}

.full-report-content{padding:18px;box-sizing:border-box}.full-report-content p{margin:10px 0;font-size:15px}.full-report-download{text-align:left;max-width:100%;white-space:normal}.full-report-result{margin-top:12px}.full-report-content .btn:disabled{opacity:.45;cursor:default}

.full-report-content [data-generate]{display:inline-flex;align-items:center;gap:12px}.full-report-refresh{width:20px;height:20px;flex:none}.full-report-download{display:inline-flex;align-items:center;gap:16px;padding:8px 0;background:transparent;border:0;box-shadow:none;text-decoration:none;color:inherit;font:inherit;cursor:pointer}.full-report-download .report-name{text-decoration:none;overflow-wrap:anywhere}.full-report-download svg{width:22px;height:22px;flex:none}.full-report-download:hover svg{color:var(--accent,#315c49)}.full-report-download:focus-visible{outline:2px solid #567464;outline-offset:4px}

.reason-with-action{display:flex;flex-direction:column;align-items:stretch}.reason-open{display:flex;flex-direction:column;gap:8px;padding:0;background:none;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer}.reason-with-action>.btn{align-self:flex-start;margin-top:16px}

/* Shared text-action style: one bottom rule, compact text-to-rule spacing. */
.btn,.cabinet .btn,.cabinet .import-button,.report-attach .btn,.report-links .btn{border:0;border-bottom:1px solid #50675b;border-radius:0;background:transparent;color:#202822;padding:8px 9px 4px;line-height:24px;text-decoration:none;font-size:16px}
.btn.link,.cabinet .btn.link{text-decoration:none}
.btn.primary{background:#eef1eb;color:#162e21;font-weight:600}
.btn.destructive{background:transparent;color:#8d4836;border-color:#8d4836}
.cabinet .import-button{padding-bottom:3.5px}
.track-comparison{grid-column:1/-1;margin:16px 0 24px;min-width:0}.track-comparison h3{font-size:20px;font-weight:500}.comparison-scroll{overflow:auto;max-height:60vh}.comparison-table{border-collapse:separate;border-spacing:0;width:100%;font-size:15px}.comparison-table th,.comparison-table td{min-width:220px;max-width:320px;padding:10px 14px;text-align:left;border-bottom:1px solid #dde1db;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.comparison-table th:first-child{min-width:170px;position:sticky;left:0;background:var(--paper);z-index:1}.comparison-table thead th{position:sticky;top:0;background:#eef1eb;z-index:2}.comparison-table thead th:first-child{z-index:3}.comparison-table small{display:block;font-size:13px;font-weight:400;margin-top:5px}.comparison-table .has-difference td{background:#f4efdf}

.reason-heading-line{display:flex;align-items:center;gap:36px;flex-wrap:wrap;margin-top:12px}.reason-heading-line p{margin:8px 0}.track-dialog-head{align-items:center;gap:32px}.track-dialog-head h2{flex:0 1 auto;min-width:0}#track-header-actions{display:flex;flex:1;flex-wrap:wrap;gap:12px 28px;min-width:0}.track-header-reason{display:flex;align-items:center;gap:24px;font-size:15px}.track-header-reason .btn{white-space:nowrap}#close-track{margin-left:auto;align-self:flex-start}@media(max-width:700px){.track-dialog-head{flex-wrap:wrap;gap:12px}.track-dialog-head h2{flex:1}#track-header-actions{order:3;flex-basis:100%}.track-header-reason{gap:18px}.reason-heading-line{gap:24px}}
/* Keep each clarification and its action together below the title. */
.track-dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;align-items:start}
.track-dialog-head h2{grid-column:1;grid-row:1}
#close-track{grid-column:2;grid-row:1;margin:0}
#track-header-actions{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 18px;min-width:0}
#track-header-actions:empty{display:none}
.track-header-reason{display:inline-flex;flex:0 1 auto;align-items:center;flex-wrap:nowrap;gap:14px;max-width:100%;box-sizing:border-box;padding:7px 12px;background:#f0f2ec;border-radius:3px;font-size:15px;line-height:1.5}
.track-header-reason>span{min-width:0;overflow-wrap:anywhere}
.track-header-reason .btn{flex:none;white-space:nowrap;font-size:15px;padding:2px 0 3px;line-height:22px}
/* Suppress Android/Chromium tap flashes across all current and dynamic controls.
   Keyboard focus, selected values, and ordinary text selection remain intact. */
html,body,body *{-webkit-tap-highlight-color:transparent}

/* Open clarification cards at the top without scroll animation or anchoring. */
#track-dialog,#track-dialog .comparison-scroll{scroll-behavior:auto;overflow-anchor:none}

.track-title-line{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px 32px;flex-wrap:wrap;min-width:0}
#track-match-count{font-size:18px;line-height:1.5;white-space:nowrap;font-weight:400}
#track-dialog .track-comparison{margin-top:0}

.reason-whole{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font:inherit;cursor:pointer}

/* Compact mobile navigation; desktop sidebar retains its existing layout. */
@media(max-width:700px){
 .cabinet{display:flex;flex-direction:column;gap:24px;width:calc(100% - 40px);margin-top:20px;min-width:0}
 .cabinet .workspace{width:100%}
 .cabinet .side-menu{display:grid;grid-template-columns:max-content max-content max-content;grid-auto-rows:auto;justify-content:start;align-items:start;gap:0 24px;overflow-x:auto;max-width:100%;padding:0 0 4px;border-bottom:1px solid #dfe3dc;overscroll-behavior-x:contain}
 .cabinet .side-menu a{white-space:nowrap;font-size:16px;padding:10px 0 8px;margin:0;border-radius:0;line-height:24px;border-bottom:2px solid transparent}
 .cabinet .side-menu a[href="#cabinet"]{grid-column:1;grid-row:1}
 .cabinet .side-menu a[href="#reports"]{grid-column:2;grid-row:1}
 .cabinet .side-menu a[aria-current=page]::before{display:none}
 .cabinet .side-menu a[aria-current=page],.cabinet .side-menu.works-section a[href="#cabinet"]{border-bottom-color:#496154;font-weight:600}
 .cabinet .side-menu .clarify-link{display:none;grid-column:1/-1;grid-row:2;justify-self:start;font-size:15px;padding:8px 0 5px;margin-top:4px}
 .cabinet .side-menu.works-section .clarify-link{display:block;animation:mobile-submenu-in .2s ease-out}
 .cabinet .side-menu .count-badge{font-size:13px}
}
@keyframes mobile-submenu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.cabinet .side-menu.works-section .clarify-link{animation:none}}
.catalog-counts{display:flex;align-items:flex-end;gap:40px;flex-wrap:wrap}
.clarification-total{display:flex;flex-direction:column;gap:5px;color:var(--ink);text-decoration:none;padding-bottom:0;font-size:15px;line-height:20px}
.clarification-total>span:last-child{border-bottom:1px solid #637c68;padding-bottom:2px}
.search-results{margin-top:8px;border:0;background:var(--paper);max-height:48dvh;overflow:auto;border-radius:0;text-align:left}
.search-results button{display:block;width:100%;border:0;background:transparent;color:var(--ink);text-align:left;padding:12px 14px;font:inherit;font-size:16px;line-height:1.5;cursor:pointer}
.search-results button:hover,.search-results button:focus-visible{background:#f0f2ec}
.search-results .search-track{display:flex;align-items:baseline;gap:18px;border-bottom:1px solid #eceee8}
.search-track>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-track small{font-size:14px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-group{font-size:14px;font-weight:600;margin:0;padding:10px 14px;background:#f4f4f0}
@media(max-width:700px){
 .cabinet .side-menu{grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);justify-content:stretch;gap:0 12px;width:100%;overflow:visible}
 .cabinet .side-menu a[href="#cabinet"]{justify-self:start}
 .cabinet .side-menu a[href="#reports"]{justify-self:center}
 .catalog-counts{gap:28px}
}
/* Both counters share the same top edge, number height and label baseline. */
.cabinet .catalog-counts{display:grid;grid-template-columns:minmax(0,max-content) max-content;align-items:start;column-gap:40px;row-gap:0;margin:42px 0 25px}
.cabinet .catalog-counts .catalog-total,.cabinet .catalog-counts .clarification-total{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0;padding:0;min-width:0}
.cabinet .catalog-counts .total-number{display:block;font-size:42px;line-height:52px;margin:0;padding:0;font-weight:300}
.cabinet .catalog-counts .catalog-total p,.cabinet .catalog-counts .clarification-total>span:last-child{font-size:16px;line-height:24px;margin:0;padding:0 0 2px}
@media(max-width:700px){.cabinet .catalog-counts{margin-top:25px;column-gap:28px}}


#report-sheet-preview{margin:18px 0 24px}#report-sheet-preview .preview-scroll{max-height:260px}#report-sheet-preview .preview-toolbar{flex-wrap:wrap}
/* Report field choices and source cells share one table and one scroll surface. */
#report-links{width:min(1280px,calc(100% - 32px));max-width:1280px;padding:20px 24px}
#report-links>.track-dialog-head{display:flex;align-items:center;gap:16px;top:-20px;padding-bottom:12px;margin-bottom:12px;flex-wrap:nowrap}
#report-links-title{flex:none;font-size:23px;margin:0}
#links-filename{flex:1;min-width:0;font-size:15px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#links-close{flex:none;align-self:flex-start}
#report-links .report-layout{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,1fr) minmax(150px,1fr);gap:16px;margin:12px 0}
#report-links .report-layout label{min-width:0;font-size:14px;gap:4px}
#report-links .report-layout .control{width:100%;box-sizing:border-box;min-height:36px;padding:6px 10px}
#report-sheet-preview{margin:8px 0}
#report-sheet-preview .preview-scroll{max-height:54dvh}
#report-sheet-preview .sheet-table{width:max-content;table-layout:fixed}
#report-sheet-preview .sheet-table th:not(.row-number),#report-sheet-preview .sheet-table td{box-sizing:border-box;min-width:260px;width:260px;max-width:260px}
#report-sheet-preview .sheet-table thead th{vertical-align:bottom;overflow:visible;white-space:normal;padding:8px;background:#eef0eb}
#report-sheet-preview .sheet-table thead th.row-number{vertical-align:middle}
#report-sheet-preview .report-column-name{font-size:14px;line-height:20px;margin-bottom:6px;max-height:40px;overflow:hidden}
#report-sheet-preview .mira-picker{width:100%;min-width:0}
#report-sheet-preview .mira-picker input{box-sizing:border-box;width:100%;font-size:15px}
#report-links>.toolbar{margin-top:14px}
@media(max-width:700px){#report-links{padding:16px;width:calc(100% - 20px)}#report-links>.track-dialog-head{top:-16px;flex-wrap:wrap}#links-filename{flex-basis:60%}#report-links .report-layout{grid-template-columns:1fr 1fr;gap:10px}#report-links .report-layout label:first-child{grid-column:1/-1}#report-sheet-preview .preview-scroll{max-height:48dvh}}

#report-sheet-preview .report-column-binding{display:flex;align-items:center;gap:10px}
#report-sheet-preview .report-column-letter{flex:none;font-size:15px;font-weight:500}
#report-sheet-preview .report-column-binding .mira-picker{flex:1;min-width:0;width:auto}
#report-source-fields h3{font-size:17px;margin:18px 0 8px}
.report-source-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(200px,2fr);gap:20px;align-items:center;padding:10px 0;border-bottom:1px solid #e1e4df;font-size:15px}
.report-source-row>div{display:flex;gap:10px;flex-wrap:wrap}
.report-source-row .control{flex:1;min-width:180px;box-sizing:border-box}
@media(max-width:600px){.report-source-row{grid-template-columns:1fr;gap:8px}}

:root{--clarification-color:#b94b29}
.cabinet .clarification-total,.cabinet .clarification-total .total-number,.cabinet .clarification-total>span:last-child{color:var(--clarification-color);border-color:var(--clarification-color)}
.clarification-link{appearance:none;border:0;padding:0;background:none;font:inherit;color:var(--clarification-color);cursor:pointer}
.clarification-link:hover{text-decoration:underline}
.full-report-file{display:flex;align-items:center;gap:14px}
.full-report-file .full-report-download{min-width:0;text-align:left;padding-bottom:4px}
.full-report-file .icon-button{flex:none}
#full-preview{width:min(1400px,calc(100% - 32px));max-width:1400px;max-height:90dvh;padding:24px;overflow:auto}
#full-preview .track-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
#full-preview h2{font-size:21px;overflow-wrap:anywhere}
.full-preview-tabs{display:flex;gap:20px;margin:14px 0}
.full-preview-tabs [aria-pressed="true"]{font-weight:600}
.full-preview-scroll{max-height:60dvh;overflow:auto;overscroll-behavior:contain}
.full-preview-scroll table{table-layout:fixed;width:max-content;border-collapse:collapse;font-size:15px}
.full-preview-scroll th,.full-preview-scroll td{padding:9px 12px;border-bottom:1px solid #dde1da;vertical-align:top;text-align:left;overflow-wrap:anywhere;white-space:normal}
.full-preview-scroll th{position:sticky;top:0;background:#eef0eb;z-index:1}
.full-preview-scroll tbody tr:nth-child(even){background:#f5f6f2}

#report-review .track-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
#report-review h2{font-size:24px}.review-pending{color:var(--clarification-color)}
.review-group{border-bottom:1px solid #dce0d8;padding:14px 10px}.review-group:nth-child(odd){background:#f3f4ef}.review-group summary{cursor:pointer;font-size:17px}.review-pair{display:flex;flex-wrap:wrap;gap:24px;margin:16px 0}.review-sample{max-height:300px;overflow:auto;font-size:15px}.review-sample p{padding:8px 0;border-bottom:1px solid #e1e4dd}.review-sample small{font-size:14px}

/* Keep the clarification counter anchored at its existing top-right corner. */
.cabinet .catalog-counts .clarification-total{transform:scale(.7225);transform-origin:top right}

.full-report-result .report-generated{font-size:14px;line-height:20px;margin:1.5px 0 12px;color:#525b53}
.manual-field small,.report-source-row small{font-size:14px;line-height:20px;color:#525b53}
.report-source-row .mira-picker{flex:1;min-width:180px}.report-source-row small{flex-basis:100%}

.full-report-file{align-items:flex-start;padding-top:8px}
.full-report-file-info{min-width:0}
.full-report-file .full-report-download{display:block;padding:0;line-height:24px}
.full-report-file .icon-button{margin-top:-6px}
.full-report-file-info .report-generated{margin:0 0 12px;line-height:18px}
/* Temporary account entry; the public search keeps its existing layout. */
.login-page{width:min(400px,calc(100% - 40px));margin:90px auto 40px}.login-form{display:flex;flex-direction:column;gap:12px}.login-form h1{margin-bottom:20px}.login-form .control{width:100%}.login-form label{margin-top:8px}.header-actions{position:relative}.auth-menu{position:absolute;right:0;top:64px;z-index:30;width:170px;background:var(--paper);border:1px solid var(--rule);padding:16px;box-shadow:0 4px 15px #263b2c12;display:flex;flex-direction:column;gap:12px}.auth-menu strong{font-size:14px;font-weight:500}.auth-menu .btn{text-align:left}.login-form .toolbar{margin-top:12px}.login-form a{text-decoration:none}
@media(max-width:600px){.login-page{margin-top:50px}}

/* Report periods are derived from their dates, without manual folders. */
.report-period-group{margin:0 0 30px}.report-period-heading{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:12px 0 14px;border-bottom:1px solid var(--rule);color:var(--ink)}.report-period-heading::-webkit-details-marker{display:none}.report-period-heading::marker{content:''}.report-period-heading h2{margin:0;font-size:19px;line-height:26px;font-weight:500}.report-period-heading>svg{width:17px;height:17px;flex:none;transition:transform .15s}.report-period-group[open]>.report-period-heading>svg{transform:rotate(90deg)}.period-report-count{margin-left:auto;font-size:14px;color:#525b53;white-space:nowrap}.report-period-heading:focus-visible{outline:1px solid #74877b;outline-offset:4px}.report-period-content{min-width:0}@media(max-width:600px){.report-period-heading{gap:8px}.report-period-heading h2{font-size:16px}.period-report-count{font-size:12px}.report-period-group{margin-bottom:22px}}

.quarter-choice{border:0;margin:18px 0 0;padding:0;min-width:0}.quarter-choice legend{padding:0;margin-bottom:14px;font-size:16px}.quarter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quarter-option{position:relative;cursor:pointer;min-width:0}.quarter-option input{position:absolute;opacity:0;width:1px;height:1px}.quarter-option>span{display:flex;align-items:center;flex-direction:column;gap:5px;padding:14px 4px 11px;border:1px solid #d3d8d3;border-radius:3px;color:var(--ink)}.quarter-option strong{font-size:15px;font-weight:500;white-space:nowrap}.quarter-option small{font-size:14px;color:#525b53}.quarter-option input:checked+span{border-color:#53665a;background:#edf1e9;box-shadow:inset 0 -2px #53665a}.quarter-option input:focus-visible+span{outline:2px solid #74877b;outline-offset:3px}.quarter-choice:disabled .quarter-option{cursor:default;opacity:.6}@media(max-width:400px){.quarter-options{gap:8px}.quarter-option strong{font-size:13px}}

/* Both explicitly entered shares are zero; empty cells do not trigger this state. */
.cabinet .data-table tbody tr.zero-rights-row{background:#fbe5e2}.cabinet .data-table tbody tr.zero-rights-row:hover,.cabinet .data-table tbody tr.zero-rights-row:focus-visible{background:#f5d1cc}

.search-results .search-track.zero-rights-row{background:#fbe5e2}.search-results .search-track.zero-rights-row:hover,.search-results .search-track.zero-rights-row:focus-visible{background:#f5d1cc}
#track-dialog.zero-rights-card{--paper:#fbe5e2;background:#fbe5e2}#track-dialog.zero-rights-card .track-dialog-head{background:#fbe5e2}#track-dialog.zero-rights-card .comparison-table thead th{background:#f5d1cc}

.track-edit-field{display:flex;flex-direction:column;gap:8px}.track-edit-field textarea{width:100%;min-height:76px;resize:vertical;font:inherit;line-height:1.5;box-sizing:border-box;background:#ffffff90}.track-edit-field .track-label{line-height:1.5}#track-edit-error{grid-column:1/-1}.track-edit-field textarea:disabled{opacity:.7}

.side-menu .settings-menu>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:11px 0;font-size:17.25px;line-height:22px}.settings-menu>summary::-webkit-details-marker{display:none}.settings-menu>summary>svg{width:14px;height:14px;flex:none}.settings-menu[open]>summary>svg{transform:rotate(90deg)}.side-menu .settings-menu a{padding:8px 0 8px 16px;font-size:15px}.settings-menu>summary:focus-visible{outline:1px solid #74877b;outline-offset:3px}
.retail-radio-settings{max-width:760px}.retail-radio-mapping{width:100%;border-collapse:collapse;text-align:left}.retail-radio-mapping th,.retail-radio-mapping td{padding:11px 16px;border-bottom:1px solid #dfe3dc;font-size:16px;font-weight:300}.retail-radio-mapping thead th{background:#f0f2ed;font-weight:500}.retail-radio-mapping tbody th{width:30%}.retail-radio-mapping .control{width:100%}.retail-radio-info{margin:28px 0 22px}.retail-radio-info h2{font-size:19px;font-weight:400;margin:0 0 12px}.retail-radio-info p,.retail-radio-info li{font-size:15px;line-height:1.6}.retail-radio-info ul{padding-left:22px;margin:8px 0}.retail-radio-info p{margin:8px 0}
@media(max-width:700px){.cabinet .side-menu .settings-menu{grid-column:3;grid-row:1;justify-self:end;min-width:0}.side-menu .settings-menu>summary{font-size:15px;padding:8px 0}.side-menu .settings-menu a{width:max-content}.retail-radio-mapping th,.retail-radio-mapping td{padding:10px 8px;font-size:14px}.retail-radio-mapping .control{font-size:14px;min-width:0}}

/* Explain the existing missing-field action without changing its behavior. */
.ignore-action-note{display:block;font-size:12px;line-height:1.4;color:var(--muted);margin-top:6px;font-weight:400}
.reason-with-action>.btn{white-space:normal;text-align:left;line-height:1.4}
.track-header-reason{flex-wrap:wrap}
.track-header-reason .btn{white-space:normal}
.track-header-reason .ignore-action-note{flex-basis:100%;margin-top:0}
.reason-heading-line .ignore-action-note{flex-basis:100%;margin-top:-20px}

.workspace-import-actions{display:flex;align-items:center;gap:14px}
.cabinet .catalog-counts{grid-template-columns:minmax(0,max-content) max-content minmax(180px,1fr);align-items:center}
.catalog-search{display:flex;align-items:center;gap:10px;justify-self:end;width:240px;max-width:100%;border-bottom:1px solid #9ca99e;padding:6px 0}
.catalog-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--ink);padding:0}
.catalog-search:focus-within{border-color:var(--ink)}
.catalog-search svg,.import-history-table svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.import-history-table .btn{display:inline-flex;align-items:center;gap:12px;text-align:left;overflow-wrap:anywhere}
.import-history-table td:first-child{white-space:nowrap}
@media(max-width:900px){.cabinet .catalog-counts{grid-template-columns:minmax(0,1fr) max-content}.catalog-search{grid-column:1/-1;width:240px;margin-top:15px}.workspace-import-actions{gap:8px}}

/* Lucide history: fixed square, no baseline or padding offset. */
#import-history{box-sizing:border-box;display:grid;place-items:center;width:36px;height:36px;padding:0;line-height:1}
#import-history svg{display:block;width:20px;height:20px;flex:none}
