:root { --canvas:#f7f8f4; --surface:#fff; --paper:#fff; --surface-muted:#edf1eb; --ink:#283d35; --ink-soft:#63736b; --line:#dfe6dc; --terracotta:#47745e; --terracotta-soft:#e4eee6; --sage:#47745e; --radius:10px; }
.topbar { padding:20px 28px; grid-template-columns:1fr auto; background:transparent; }
.top-tabs { display:none; }
h1 {font-family:inherit;font-weight:650;font-size:23px;}
main {padding:22px 28px;}
#xiaotuOverview {margin-bottom:26px;}
.xt-intro {display:flex;justify-content:space-between;gap:24px;align-items:center;margin:4px 0 22px;}
.xt-intro h2 {font-size:22px;font-weight:600;margin:8px 0;letter-spacing:-.4px;}
.xt-intro p,.xt-agenda p,.xt-coach p {color:var(--ink-soft);font-size:13px;margin:8px 0;line-height:1.8;}
.xt-primary,#xiaotuAnalyze,.xt-migration button {border:0;border-radius:9px;background:var(--sage);color:white;padding:11px 16px;white-space:nowrap;}
.xt-metrics {display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;}
.xt-metrics>div {background:white;border:1px solid var(--line);border-radius:13px;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.xt-metrics span {font-size:13px;color:var(--ink-soft);}.xt-metrics strong{font-size:28px;font-weight:550;}
.xt-resume-shelf{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:-2px 0 16px;padding:18px 20px;border:1px solid #bfd0c1;border-radius:13px;background:#eef4eb;}
.xt-resume-shelf h3{margin:5px 0 3px;font-size:18px;}.xt-resume-shelf h3 small{font-size:13px;color:#64806d;font-weight:500;}
.xt-resume-shelf p{margin:0;color:var(--ink-soft);font-size:13px;line-height:1.5;}
.xt-resume-shelf button{flex:0 0 auto;padding:10px 15px;border:0;border-radius:8px;background:#355e51;color:#fff;font-weight:700;cursor:pointer;}
.xt-focus {display:grid;grid-template-columns:1.2fr 1fr;gap:16px;}
.xt-agenda,.xt-coach {background:white;border:1px solid var(--line);border-radius:14px;padding:20px;}
.xt-coach {background:#edf3eb;}.xt-focus h3{font-size:15px;margin:0 0 10px;}.xt-focus h3 span{color:var(--ink-faint);font-size:12px;}
.xt-due{padding:9px 0;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;}.xt-due small{color:var(--ink-soft);}.xt-due .xt-overdue{color:#a45b40;}
#xiaotuJob{max-width:100%;width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:white;margin:5px 0 10px;}
.xt-job-picker{position:relative;margin:5px 0 10px;}
#xiaotuJobSearch{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit;}
.xt-job-choices{position:absolute;z-index:12;top:100%;left:0;right:0;max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 8px 22px #263b3322;}
.xt-job-choices[hidden]{display:none;}
.xt-job-choices button{display:block;width:100%;padding:9px 12px;border:0;background:#fff;text-align:left;color:var(--ink);font:inherit;cursor:pointer;}
.xt-job-choices button:hover,.xt-job-choices button:focus-visible{background:#e7efe7;}
.xt-job-choices>span{display:block;padding:10px;color:var(--ink-soft);}
.xt-coach>small{display:block;font-size:11px;color:var(--ink-soft);margin-top:9px;}.xt-data-note{font-size:11px;color:var(--ink-soft);margin-top:14px;}
.xt-migration{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fbf1df;padding:12px 16px;margin-top:14px;border-radius:10px;font-size:13px;}
.segments{flex-wrap:wrap;}.toolbar{border-radius:12px;}.table-wrap{border-radius:12px;}
@media(max-width:700px){.topbar{padding:16px;display:flex;flex-wrap:wrap;gap:12px;}.header-meta{width:100%;justify-content:space-between;}.header-meta .source-status{display:none;}main{padding:12px;}h1{font-size:21px;}.xt-intro{display:block;}.xt-intro h2{font-size:19px;}.xt-intro button{margin-top:8px;}.xt-metrics{grid-template-columns:repeat(2,1fr);gap:8px;}.xt-metrics>div{padding:12px;}.xt-focus{grid-template-columns:1fr;}.xt-migration{align-items:flex-start;flex-direction:column;}.filter-tools{flex-wrap:wrap;}.search-field{max-width:100%;}.editor-dialog{max-width:calc(100vw - 24px);}.dialog-grid{grid-template-columns:1fr;}}
.toolbar { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.toolbar .segments { width:100%; display:flex; flex-wrap:nowrap; overflow-x:auto; gap:6px; min-height:40px; }
.toolbar .segments button { flex:0 0 auto; white-space:nowrap; }
.toolbar .filter-tools { width:100%; display:flex; flex-wrap:nowrap; align-items:center; gap:10px; }
.toolbar .search-field { flex:1; min-width:150px; max-width:none; width:auto; }
.toolbar #add { margin-left:auto; flex-shrink:0; }
.column-filter { flex:0 0 24px; width:24px; height:28px; border:0; background:transparent; border-radius:4px; }
.column-filter:hover,.column-filter.active {background:var(--sage-soft);color:var(--sage);}
.column-menu {opacity:1;}
.column-filter-dialog {width:400px;max-width:calc(100vw - 28px);}
.column-filter-dialog>input {width:100%;margin:12px 0;padding:10px;}
.column-filter-values {max-height:260px;overflow:auto;margin:12px 0;}
.column-filter-values label {display:flex;align-items:center;gap:8px;padding:7px;overflow-wrap:anywhere;}
.column-filter-values input {width:auto;}
.column-filter-dialog footer {display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
/* Keep the table calm until a column is being used. */
.data-grid th .column-drag-handle,.data-grid th .column-filter,.data-grid th .column-menu {opacity:0;pointer-events:none;transition:opacity .15s ease;}
.data-grid th:hover .column-drag-handle,.data-grid th:hover .column-filter,.data-grid th:hover .column-menu,.data-grid th:focus-within .column-drag-handle,.data-grid th:focus-within .column-filter,.data-grid th:focus-within .column-menu,.data-grid th .column-filter.active {opacity:1;pointer-events:auto;}
.data-grid th .column-label {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.column-filter-dialog {width:min(430px,calc(100vw - 28px));max-height:min(80dvh,650px);padding:0;overflow:hidden;border:1px solid #b6c2b3;background:#fffdf5;box-shadow:7px 9px 0 rgba(35,61,47,.18);}
.column-filter-dialog::backdrop {background:rgba(25,44,34,.36);}
.column-filter-heading {display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px 13px;border-bottom:1px solid #e2e4d8;}
.column-filter-heading small {display:block;color:#60806c;font:700 10px ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;}
.column-filter-heading h2 {margin:4px 0 0;font-size:19px;color:#263b33;}
.column-filter-close {border:0;background:transparent;color:#63766a;font-size:25px;line-height:1;cursor:pointer;}
.column-filter-dialog .column-filter-search {display:flex;align-items:center;gap:8px;margin:18px 22px 15px;padding:0 11px;border:1px solid #cdd8cb;border-radius:7px;background:#fff;}
.column-filter-dialog .column-filter-search:focus-within {border-color:#47745e;box-shadow:0 0 0 3px #e5eee4;}
.column-filter-dialog .column-filter-search span {color:#66806f;font-size:21px;}
.column-filter-dialog .column-filter-search input {flex:1;min-width:0;width:100%;height:42px;margin:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:#263b33;font:inherit;}
.column-filter-dialog .column-filter-search input:focus {border:0;outline:0;box-shadow:none;background:transparent;}
.column-filter-list-heading {display:flex;justify-content:space-between;align-items:center;margin:0 22px 7px;color:#63766a;font-size:12px;}
.column-filter-link {border:0;background:transparent;color:#355e51;font:inherit;font-weight:650;cursor:pointer;}
.column-filter-link:hover {text-decoration:underline;}
.column-filter-dialog .column-filter-values {max-height:min(31dvh,240px);min-height:70px;overflow:auto;margin:0 22px;padding:5px 0 9px;}
.column-filter-dialog .column-filter-values label {display:flex;align-items:center;gap:10px;margin:3px 0;padding:9px 10px;border:1px solid transparent;border-radius:6px;color:#33473b;cursor:pointer;}
.column-filter-dialog .column-filter-values label:hover {background:#f0f3e9;border-color:#e0e7d9;}
.column-filter-dialog .column-filter-values label[hidden] {display:none;}
.column-filter-dialog .column-filter-values input {width:16px;height:16px;margin:0;accent-color:#355e51;}
.column-filter-edit {display:block;margin:3px 22px 16px;padding:0;font-size:12px;}
.column-filter-dialog footer {display:flex;align-items:center;gap:8px;padding:14px 22px;border-top:1px solid #e2e4d8;background:#f8f7ee;}
.column-filter-dialog footer button {padding:9px 15px;border:1px solid #cdd8cb;border-radius:6px;background:#fffdf8;color:#355e51;cursor:pointer;}
.column-filter-dialog footer .column-filter-clear {margin-right:auto;border:0;background:transparent;}
.column-filter-dialog footer .primary {background:#355e51;color:#fff;border-color:#1e463b;}
@media(max-width:700px){.toolbar .filter-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"search search search" "count columns add";gap:8px;}.toolbar #addColumn{grid-area:columns;}.toolbar #resultCount{display:none;}.toolbar .segments{width:100%;}.toolbar .search-field{width:100%;}.toolbar #add{margin-left:0;}}

/* Use the same warm paper, restrained pixel details and orange accent as 小途. */
:root { --canvas:#f8f6ee; --surface:#fffef8; --paper:#fffef8; --surface-muted:#f2f0e6; --ink:#263b33; --ink-soft:#617167; --ink-faint:#879187; --line:#d7d8ca; --line-strong:#b4bdad; --terracotta:#d87843; --terracotta-soft:#f8e9d5; --sage:#355e51; --sage-soft:#e5eee4; --radius:7px; }
html, body { background-color:var(--canvas); }
body { background-image:linear-gradient(rgba(47,93,80,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(47,93,80,.025) 1px,transparent 1px);background-size:24px 24px; }
.topbar { background:#fffdf4; border-bottom:1px solid #c9cabc; }
.brand-lockup { gap:12px; }
.home-mark-link {width:40px;height:40px;flex-basis:40px;border:2px solid #263b33;border-radius:6px;background:#e5eee4;box-shadow:3px 3px 0 #c0c8bb;overflow:hidden;}
.home-mark-link img {width:100%;height:100%;object-fit:cover;image-rendering:pixelated;}
.breathing-home i {background:#527463;}
.topbar h1 {font-weight:760;letter-spacing:-.035em;}
.eyebrow {color:#487463;font-family:ui-monospace,Consolas,monospace;font-weight:700;letter-spacing:.08em;}
.xt-intro {padding:20px 23px;background:#fffdf4;border:1px solid #344d42;border-radius:8px;box-shadow:5px 5px 0 #d3d0bf;}
.xt-intro h2 {color:#263b33;font-size:clamp(20px,2.2vw,29px);font-weight:760;letter-spacing:-.035em;}
.xt-metrics>div,.xt-agenda,.xt-coach {border-radius:7px;background:#fffef8;box-shadow:3px 3px 0 rgba(53,66,56,.06);}
.xt-coach {background:#e9f0e7;border-color:#9fb2a3;}
.xt-primary,#xiaotuAnalyze,.xt-migration button,.add-position {background:#355e51;color:#fff;border:1px solid #1e463b;border-radius:6px;box-shadow:3px 3px 0 #b8c2ae;font-weight:650;}
.xt-primary:hover,#xiaotuAnalyze:hover,.xt-migration button:hover,.add-position:hover {background:#2d5246;transform:translate(-1px,-1px);box-shadow:4px 4px 0 #b8c2ae;}
.xt-metrics strong {color:#315b4b;}
.segments button.active {color:#285443;background:#e5eee4;border-color:#9fb2a3;}
.toolbar {background:rgba(255,253,244,.8);border:1px solid #d7d8ca; padding:12px;}
.workspace {background:#fffef8;border-color:#b4bdad;border-radius:7px;box-shadow:3px 3px 0 rgba(50,64,53,.06);}
.table-wrap {background:#fffef8;}
th,.row-actions-heading {background:#f1efe5;}
.editor-dialog {border-radius:8px;background:#fffef8;}
.editor-dialog footer .primary,.editor-dialog footer .primary:hover {background:#355e51;border-color:#1e463b;color:white;}

/* Field editor: one option per row, with a direct add action. */
#columnDialog {width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;}
#columnDialog form {max-height:none;min-height:0;padding:22px 24px;gap:15px;display:flex;flex-direction:column;}
#columnDialog form>label,#columnDialog header,#columnDialog footer,#columnDialog .dialog-hint {flex:0 0 auto;}
#columnDialog footer {display:flex;justify-content:flex-end;}
#columnDialog footer .danger-action {margin-right:auto;}
#columnDialog header {padding-bottom:15px;}
#columnDialog h2 {font-size:20px;}
#columnDialog label {font-size:13px;color:#42564a;}
#columnDialog label>input,#columnDialog label>select {background:#fff;}
#columnTypeHint {margin:0;color:#748075;font-size:11px;line-height:1.5;}
.field-options-panel {min-height:105px;overflow:visible;padding:14px;background:#f2f3ee;border:1px solid #dfe4d9;border-radius:7px;}
.field-options-heading {display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;color:#435a4e;font-size:13px;}
.field-options-heading span {font-size:11px;color:#78877c;}
.field-option-list {display:grid;gap:8px;}
.field-option-row {display:grid;grid-template-columns:22px minmax(0,1fr) 28px;align-items:center;gap:8px;}
.field-option-swatch {width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#dae9dc;cursor:pointer;overflow:hidden;}
.field-option-swatch input {width:36px;height:36px;padding:0;border:0;opacity:0;cursor:pointer;transform:translate(-7px,-7px);}
.field-option-row:nth-child(6n+2) .field-option-swatch {background:#f5e4c8;}
.field-option-row:nth-child(6n+3) .field-option-swatch {background:#d7ebf1;}
.field-option-row:nth-child(6n+4) .field-option-swatch {background:#e7def2;}
.field-option-row:nth-child(6n+5) .field-option-swatch {background:#f1dede;}
.field-option-row:nth-child(6n+6) .field-option-swatch {background:#e8e7c9;}
#columnDialog .field-option-row input {height:36px;background:#fff;}
.field-option-remove {height:28px;width:28px;border:0;background:transparent;color:#7a887e;font-size:20px;}
.field-option-remove:hover {color:#aa5c45;background:#f8e9e4;}
.field-option-add {padding:8px 2px 0;border:0;background:transparent;color:#315e51;font-size:13px;font-weight:700;}
.field-option-add:hover {text-decoration:underline;}
.multi-value {display:inline-block;margin:2px 4px 2px 0;padding:3px 7px;background:#dae9dc;border-radius:4px;font-size:12px;color:#315344;}
.multi-value.multi-color-1 {background:#f5e4c8;}.multi-value.multi-color-2{background:#d7ebf1;}.multi-value.multi-color-3{background:#e7def2;}.multi-value.multi-color-4{background:#f1dede;}.multi-value.multi-color-5{background:#e8e7c9;}
.multi-placeholder {color:#a0a99f;}
.toolbar .status-tabs {display:flex;align-items:center;gap:10px;flex-wrap:nowrap;width:100%;min-width:0;}
.toolbar .status-tabs .segments {flex:1 1 auto;width:auto;min-width:0;}
.toolbar .status-tabs #editStatuses {flex:0 0 auto;white-space:nowrap;}
.status-dialog {width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;}
.status-dialog form {display:flex;flex-direction:column;gap:15px;padding:22px 24px;}
.status-dialog footer {position:sticky;bottom:-22px;background:#fffef8;padding-top:12px;display:flex;justify-content:flex-end;gap:8px;}
.status-editor-groups {display:grid;gap:12px;}
.status-editor-group {padding:14px;border:1px solid #dfe4d9;border-left:4px solid #507765;border-radius:8px;background:#f7f8f3;}
.status-editor-group>label {display:grid;gap:6px;font-weight:700;}
.status-editor-group input {width:100%;min-width:0;}
.status-child-heading {margin:16px 0 8px 12px;color:#627b6b;font-size:12px;font-weight:700;}
.status-child-list {display:grid;gap:7px;margin:0 0 10px 12px;padding-left:12px;border-left:2px solid #c4d6c9;}
.status-child-row {display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:6px;}
.status-child-row button {border:0;background:transparent;color:#7a887e;font-size:20px;cursor:pointer;}
.status-add-child {border:0;background:transparent;color:#315e51;font-weight:700;cursor:pointer;}
.status-stage-option {font-weight:700;}
.resume-library-dialog {width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;}
.resume-library-inner {padding:22px 24px;}
.resume-library-inner>p,.resume-library-empty {color:#708176;font-size:13px;line-height:1.6;}
.resume-library-item {display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e1e6dc;}
.resume-library-item span {flex:1;min-width:0;display:grid;gap:3px;}
.resume-library-item strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.resume-library-item small {color:#78877c;}
.resume-library-item button,.resume-upload {padding:8px 12px;border:1px solid #bdccbf;border-radius:7px;background:#f7faf5;color:#315e51;cursor:pointer;}
.resume-upload {display:inline-block;margin-top:16px;font-weight:700;}
.submitted-tools button {display:inline-flex;align-items:center;gap:12px;}
.submitted-tools button span {display:inline-block;margin-left:0;font-size:0;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease;}
.submitted-tools button[aria-expanded="true"] span {transform:rotate(225deg) translateY(-2px);}
.dashboard-category-picker select {max-width:170px;min-height:34px;padding:5px 28px 5px 9px;border:1px solid #d6ded2;border-radius:7px;background:#fffef8;color:#355e51;font:inherit;}
@media(max-width:700px){.xt-resume-shelf{align-items:flex-start;flex-direction:column;}}
.multi-select-cell.editing {overflow:visible;}
.multi-cell-editor {position:absolute;z-index:8;top:4px;left:4px;width:min(230px,70vw);max-height:300px;overflow:auto;padding:10px;background:#fffef8;border:1px solid #9fb2a3;border-radius:6px;box-shadow:3px 4px 12px #263b3322;white-space:normal;}
.multi-cell-editor strong {display:block;margin-bottom:5px;}
.multi-cell-editor label {display:flex;align-items:center;gap:7px;padding:5px 1px;}
.multi-cell-editor label input {height:auto;width:auto;accent-color:#355e51;}
.multi-cell-editor>div {display:flex;justify-content:flex-end;gap:5px;margin-top:8px;}
.multi-cell-editor button {border:1px solid #c9d2c4;border-radius:4px;background:#fff;padding:4px 8px;}
.multi-cell-editor button[data-confirm] {background:#355e51;color:white;}

/* Import and backup actions have equal weight and clear descriptions. */
#webDataDialog {width:min(490px,calc(100vw - 24px));}
#webDataDialog .web-data-copy {margin:4px 0 0;line-height:1.6;color:#65776c;}
#webDataDialog .web-data-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#webDataDialog .web-data-actions button {display:flex;align-items:center;gap:10px;min-height:74px;padding:12px;text-align:left;border:1px solid #d4ddcf;border-radius:7px;background:#f9faf5;color:#263b33;box-shadow:2px 2px 0 #e3e5d9;}
#webDataDialog .web-data-actions button:hover {border-color:#7d9a82;background:#eaf1e8;transform:translateY(-1px);}
#webDataDialog .web-data-actions #chooseTableFile {background:#e8f0e7;border-color:#aec7b0;}
#webDataDialog .web-data-actions .danger-action {background:#fcf7f4;border-color:#ead8d0;}
#webDataDialog .web-data-actions .danger-action:hover {background:#f8e9e4;border-color:#dcae9a;}
#webDataDialog .web-action-icon {display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid #bbcfbd;border-radius:6px;background:#e5eee4;color:#315e51;font-size:22px;}
#webDataDialog .danger-action .web-action-icon {background:#f5e6dc;border-color:#e2c7b7;color:#a65f43;}
#webDataDialog .web-data-actions strong,#webDataDialog .web-data-actions small {display:block;}
#webDataDialog .web-data-actions strong {font-size:13px;}
#webDataDialog .web-data-actions small {margin-top:3px;color:#718178;font-size:11px;}
#webDataDialog footer {display:flex;justify-content:flex-end;}
@media(max-width:700px){.xt-intro{padding:16px;}.xt-metrics>div{box-shadow:2px 2px 0 #e2e5d9;}#webDataDialog .web-data-actions{grid-template-columns:1fr;}#webDataDialog .web-data-actions button{min-height:58px;}}

/* Match the workbench's hierarchy to the rest of Xiaotu. */
h1{font-size:clamp(24px,2.4vw,30px);line-height:1.3}
.xt-intro h2{font-size:clamp(22px,2.2vw,27px);line-height:1.35}
.xt-intro p,.xt-agenda p,.xt-coach p,.xt-resume-shelf p{font-size:14px;line-height:1.65}
.xt-focus h3{font-size:18px;line-height:1.4}
.xt-due{font-size:14px;line-height:1.5}
.xt-resume-shelf h3{font-size:19px;line-height:1.4}
.xt-coach>small,.xt-data-note{font-size:12px;line-height:1.5}
@media(max-width:700px){h1{font-size:24px}.xt-intro h2{font-size:22px}}
