:root {
    --paper: #f6f6f0;
    --surface: #ffffff;
    --ink: #20392f;
    --green: #163e32;
    --green-soft: #edf3ee;
    --muted: #566758;
    --line: #e6e9e0;
    --orange: #d17d42;
    --orange-soft: #fff1e5;
    --danger: #ad4f3e;
    --radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a { touch-action: manipulation; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #da9b65; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { min-width: 0; color: var(--ink); font-weight: 500; }
input::placeholder, textarea::placeholder { color: #657360; opacity: 1; }
input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; flex: 0 0 auto; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; padding: 32px 20px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: #fdfdf9; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 3px; }
.brand-mark { height: 40px; width: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 4px 10px #18392f15; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand strong { font-size: 18px; font-weight: 650; display: block; letter-spacing: .2px; }
.brand small { font-size: 12px; color: #68766a; letter-spacing: 1.6px; display: block; margin-top: 3px; }
.workspace-tag { font-size: 15px; display: flex; align-items: center; gap: 7px; margin: 30px 6px 26px; color: #566b5b; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #67a07d; display: inline-block; flex: 0 0 auto; }
.local-tag { font-size: 12px; letter-spacing: 1px; padding: 1px 5px; border: 1px solid #dfe7de; border-radius: 4px; margin-left: auto; }
.view-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; width: 100%; padding: 12px 13px; border: 0; background: none; gap: 11px; font-size: 16px; border-radius: 9px; text-align: left; color: #4f6657; }
.nav-item:hover { background: #f0f3ec; }
.nav-item.active { background: var(--green); color: #fff; box-shadow: 0 4px 10px #153b2910; }
.nav-arrow { margin-left: auto; width: 14px !important; }
.nav-count { margin-left: auto; color: #506b5a; background: #ebf0e8; min-width: 23px; text-align: center; border-radius: 5px; font-size: 14px; }
.nav-item.active .nav-count { background: #ffffff20; color: #fff; }
.sidebar-label { display: block; font-size: 14px; letter-spacing: 1.4px; color: #697866; font-weight: 550; margin: 30px 13px 12px; }
.steps { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }
.steps a { font-size: 15px; color: #4e6656; padding: 9px 9px; display: flex; gap: 13px; align-items: center; border-radius: 7px; }
.steps a:hover { background: #f0f3ec; color: var(--green); }
.steps a span { font-size: 13px; color: #61745e; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; }
.history-heading .sidebar-label { margin: 0 0 0 13px; }
.icon-button { border: 0; border-radius: 7px; background: none; color: #5d715d; padding: 7px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: #eaf0e6; color: var(--green); }
.icon-button .icon { width: 16px; height: 16px; }
.history-list { margin-top: 5px; }
.sidebar-empty { font-size: 15px; color: #77846f; margin: 16px 13px; }
.history-item { width: 100%; background: transparent; border: 0; text-align: left; padding: 10px 13px; border-radius: 8px; display: grid; grid-template-columns: 7px 1fr; gap: 0 10px; align-items: center; }
.history-item:hover, .history-item.selected { background: #edf2e9; }
.history-item strong { font-size: 15px; font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { grid-column: 2; color: #5c6e55; font-size: 13px; margin-top: 1px; }
.history-item .status-dot { width: 5px; height: 5px; }
.history-item[data-status="running"] .status-dot { background: var(--orange); box-shadow: 0 0 0 3px #f7e7d9; }
.history-item[data-status="failed"] .status-dot, .history-item[data-status="interrupted"] .status-dot { background: var(--danger); }
.history-item[data-status="cancelled"] .status-dot { background: #a2aa9e; }
.sidebar-bottom { margin-top: auto; padding: 27px 13px 0; }
.sync-line { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #4f6b55; }
.sidebar-bottom p { font-size: 13px; color: #607254; line-height: 1.8; margin: 8px 0 0; }
.workspace-shell { min-width: 0; flex: 1; }
.topbar { height: 74px; padding: 0 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fafaf5; gap: 20px; }
.breadcrumb { display: flex; gap: 14px; font-size: 15px; color: #63745e; align-items: center; }
.breadcrumb strong { color: #3d5443; font-weight: 550; }
.breadcrumb-separator { color: #bdc6b8; }
.runtime-pill { font-size: 14px; background: #edf2e8; border: 1px solid #e0e8da; border-radius: 20px; padding: 5px 10px; display: flex; gap: 6px; align-items: center; color: #4d6d50; }
.runtime-pill.unavailable { color: #b37740; background: #fff1e2; border-color: #f0dec7; }
.runtime-pill.unavailable .status-dot { background: var(--orange); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.topbar-actions .button { min-height: 30px; padding: 6px 10px; font-size: 13px; }
.assistant-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #52745c; white-space: nowrap; }
.assistant-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #67a07d; }
.assistant-status.offline { color: #a27443; }
.assistant-status.offline::before { background: var(--orange); }
.pairing-card { margin-top: 24px; border-color: #cbdccb; background: #fdfefb; }
.pairing-copy h2 { margin-top: 8px; font-size: 19px; }
.pairing-copy > p { margin: 10px 0 20px; color: #5d7253; font-size: 15px; max-width: 720px; }
.pairing-form { max-width: 630px; }
.pairing-input { display: flex; align-items: stretch; gap: 10px; }
.pairing-input input { min-height: 41px; flex: 1; }
#pairingMessage { margin-top: 12px; overflow-wrap: anywhere; }
.offline-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.offline-card strong { font-size: 15px; }
.image-method-hint { font-size: 14px; color: #536f43; line-height: 1.9; margin: 17px 0 0; padding: 12px 14px; background: #f7f9f2; border: 1px solid #e6ebdf; border-radius: 8px; }
.result-warnings { margin-top: 9px; padding: 8px 9px; color: #7b572a; background: #fff8ed; border-radius: 6px; }
.result-warnings p { font-size: 14px; margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.result-warnings p + p { margin-top: 4px; }
main { max-width: 1370px; padding: 0 46px 26px; margin: auto; outline: none; }
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 232px; padding: 34px 3px 35px; gap: 30px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #9b582b; font-size: 13px; letter-spacing: 1.5px; font-weight: 600; }
.eyebrow > span { width: 13px; height: 2px; background: var(--orange); display: block; }
h1 { font-size: clamp(29px, 2.6vw, 38px); letter-spacing: -1px; line-height: 1.35; margin: 10px 0 13px; font-weight: 650; }
.hero p { margin: 0; font-size: 16px; line-height: 1.9; color: #63745e; }
.hero-art { width: 220px; height: 169px; position: relative; flex: 0 0 220px; margin-right: 20px; }
.art-orbit { border: 1px solid #dde5d4; width: 164px; height: 164px; position: absolute; top: 4px; left: 25px; border-radius: 50%; background: radial-gradient(circle, #e7eddf 0%, #f6f6f000 68%); }
.art-paper { position: absolute; width: 87px; height: 116px; background: #fff; border: 1px solid #dbe2d4; border-radius: 7px; padding: 11px; box-shadow: 0 7px 20px #273c2910; }
.art-paper.back { transform: rotate(-12deg); top: 18px; left: 34px; background: #edf1e7; }
.art-paper.front { transform: rotate(8deg); top: 26px; left: 99px; }
.art-paper span { display: block; height: 4px; width: 100%; background: #d9e1d3; margin-top: 7px; border-radius: 2px; }
.art-paper span.short { width: 70%; }
.art-paper.back span:first-child { height: 59px; background: #dbe5d3; margin-top: 0; }
.art-image { height: 62px; background: #e7eddf; border-radius: 4px; display: grid; place-items: center; }
.art-image .icon { color: #597151; width: 30px; height: 30px; }
.art-check { background: var(--green); color: #fff; position: absolute; border: 4px solid var(--paper); bottom: -10px; right: -12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.art-check .icon { width: 15px; }
.art-caption { position: absolute; bottom: -8px; left: 48px; font-size: 12px; color: #667657; letter-spacing: 1px; }
.art-spark { color: #c68b54; position: absolute; left: 186px; top: 8px; width: 16px !important; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; box-shadow: 0 3px 8px #263d2203; scroll-margin-top: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.heading-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.step-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #406449; background: var(--green-soft); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 650; letter-spacing: .1px; }
.panel-heading p { color: #64755b; font-size: 14px; margin: 3px 0 0; }
.subtle-badge { background: #f4f5ef; color: #667552; border: 1px solid #eaece2; font-size: 13px; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.field-label, .config-field legend { display: block; font-size: 14px; font-weight: 600; color: #3c5636; margin-bottom: 8px; }
.field-label span { font-weight: 450; color: #6f7d61; font-size: 13px; margin-left: 6px; }
.path-control { display: flex; align-items: center; border: 1px solid #e2e7db; border-radius: 8px; background: #fdfefb; padding: 5px 5px 5px 13px; gap: 9px; }
.path-control:focus-within { border-color: #83a583; box-shadow: 0 0 0 3px #e5efdf; }
.path-control > .icon { color: #68815a; width: 17px; height: 17px; }
.path-control input { border: 0; outline: none; background: none; width: 100%; padding: 8px 0; font-size: 16px; }
.path-control input:focus-visible { outline: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; min-height: 34px; padding: 8px 13px; line-height: 1.4; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background 150ms, box-shadow 150ms; }
.button .icon { width: 15px; height: 15px; }
.button-secondary { background: #f3f6ed; color: #3c6130; border-color: #e5eada; }
.button-secondary:hover:not(:disabled) { background: #e9efdf; }
.button-outline { background: #fff; color: var(--green); border-color: #cedbc8; }
.button-outline:hover:not(:disabled) { background: #eef4e8; }
.button-primary { background: var(--green); color: #fff; border-color: var(--green); }
.button-primary:hover:not(:disabled) { background: #235545; box-shadow: 0 3px 8px #173d2c17; }
.import-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; }
.field-hint { color: #647854; font-size: 14px; margin: 0; line-height: 1.7; }
.notice { border-radius: 9px; padding: 12px 15px; font-size: 15px; margin: 15px 0 0; line-height: 1.8; overflow-wrap: anywhere; }
.notice.error { color: #974d3a; background: #fff0e9; border: 1px solid #f2d8cb; }
.notice.warning { color: #956b3e; background: #fff8ea; border: 1px solid #f0e4cb; }
.notice p { margin: 0; }
.notice p + p { margin-top: 5px; }
#connectionBanner { margin-top: 22px; }
.scan-results { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 20px; }
.list-toolbar { display: flex; align-items: center; gap: 16px; font-size: 14px; padding-bottom: 12px; color: #566e4c; }
.checkbox-label { display: flex; gap: 8px; align-items: center; }
.toolbar-note { margin-left: auto; color: #6e7e61; font-size: 13px; }
.item-list { display: flex; flex-direction: column; gap: 6px; max-height: 500px; overflow-y: auto; }
.source-item { display: grid; grid-template-columns: 16px 44px minmax(100px, 1fr) 136px 32px; align-items: center; gap: 13px; padding: 12px 10px; border-radius: 9px; border: 1px solid #e9ede3; background: #fcfdf9; transition: opacity 150ms; }
.source-item.excluded { opacity: .55; background: #f8f8f4; }
.source-thumb { width: 44px; height: 44px; border-radius: 6px; background: #edf2e7; display: grid; place-items: center; overflow: hidden; color: #94aa88; }
.source-thumb img { object-fit: cover; width: 100%; height: 100%; }
.source-copy { min-width: 0; }
.source-copy strong { display: block; color: #36592b; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.source-copy p { font-size: 13px; margin: 2px 0; color: #657751; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-copy small { font-size: 12px; color: #6e7e5b; }
.source-item select { font-size: 14px; min-height: 31px; padding: 6px 8px; }
.track-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.track-card { padding: 15px 6px 12px; background: #fff; border: 1px solid #e6eadd; border-radius: 9px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; min-width: 0; }
.track-card:hover { background: #fafbf6; border-color: #bbcdb3; }
.track-card[aria-pressed="true"] { background: #edf4e7; border: 1px solid #78986b; box-shadow: 0 0 0 1px #78986b10; }
.track-card .track-glyph { font-size: 20px; color: #5f8061; width: 31px; height: 29px; display: grid; place-items: center; font-family: Georgia, serif; }
.track-card .track-glyph .icon { width: 24px; height: 24px; stroke-width: 1.2; }
.track-card strong { font-size: 14px; font-weight: 550; color: #466538; }
.track-card[aria-pressed="true"] strong { color: #3c5e30; }
.track-card .track-check { width: 13px; height: 13px; background: #789368; color: #fff; border-radius: 50%; position: absolute; top: 6px; right: 6px; display: none; }
.track-card[aria-pressed="true"] .track-check { display: block; }
.track-check .icon { width: 10px; height: 10px; display: block; margin: 1px; stroke-width: 2; }
.track-selection-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 13px; font-size: 13px; color: #627951; }
.track-selection-status .text-button { text-decoration: underline; text-underline-offset: 3px; }
.configuration { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 21px 18px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.segmented { display: flex; background: #f5f7f0; border: 1px solid #e8ecdf; padding: 3px; border-radius: 7px; gap: 2px; min-height: 37px; }
.segmented button { display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; border-radius: 5px; padding: 5px 7px; flex: 1; font-size: 14px; white-space: nowrap; color: #627851; }
.segmented button.selected { color: #2d5725; background: #fff; box-shadow: 0 1px 4px #24411911; }
.segmented .icon { width: 13px; height: 13px; }
select, .text-input { border: 1px solid #e2e7d9; border-radius: 7px; background: #fdfefb; padding: 9px 11px; width: 100%; min-height: 42px; font-size: 16px; line-height: 1.5; }
select:disabled { color: #adb6a3; background: #f7f8f3; cursor: not-allowed; }
.skill-select-field { grid-column: span 1; }
.skill-select-field:nth-last-child(2) { grid-column: 1; }
.skill-select-field:last-child { grid-column: 2 / 4; }
.rule-note { display: flex; align-items: center; gap: 9px; background: #f6f8f1; border-radius: 7px; padding: 10px 12px; margin-top: 23px; color: #5a7548; }
.rule-note > .icon { width: 14px; height: 14px; }
.rule-note p { font-size: 14px; margin: 0; flex: 1; }
.text-button { border: 0; background: none; padding: 0; color: #41682d; display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.text-button .icon { width: 12px; height: 12px; }
.panel-decoration { width: 24px !important; height: 24px !important; color: #bcc9af; }
.output-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 18px; }
.output-hint { display: flex; gap: 7px; color: #677956; font-size: 13px; align-items: flex-start; margin-top: 13px; }
.output-hint .icon { width: 13px; height: 13px; margin-top: 1px; }
.output-hint span { overflow-wrap: anywhere; }
.launch-bar { margin: 3px 0 25px; display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 22px 27px; border: 1px solid #dde5d3; border-radius: var(--radius); background: #edf2e6; }
.launch-label { font-size: 13px; letter-spacing: 1px; color: #5a7747; margin-right: 13px; }
.launch-bar strong { font-size: 16px; font-weight: 600; color: #365629; }
.launch-bar p { font-size: 13px; color: #627b4f; margin: 5px 0 0; }
.launch-bar .button { min-height: 44px; padding: 12px 18px; gap: 11px; font-size: 15px; }
.launch-bar .button > .icon:last-child { margin-left: 9px; }
.job-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.job-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #f7f9f2; border: 1px solid #e8eedf; border-radius: 9px; margin-bottom: 21px; padding: 16px 0; }
.job-stats div { padding: 0 20px; border-right: 1px solid #e4eadb; }
.job-stats div:last-child { border-right: 0; }
.job-stats span { font-size: 13px; color: #5f764c; display: block; }
.job-stats strong { font-size: 18px; display: block; margin-top: 5px; font-weight: 600; line-height: 1.4; }
.job-stats div:first-child strong { font-size: 16px; margin-top: 9px; }
#jobFailure.has-failures { color: var(--danger); }
.progress-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #55743a; gap: 15px; }
.progress-label strong { font-size: 14px; font-weight: 550; }
.progress-label span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
progress { display: block; width: 100%; height: 6px; border: 0; background: #eaf0e2; border-radius: 9px; margin-top: 10px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: #eaf0e2; border-radius: 9px; }
progress::-webkit-progress-value { background: #739666; border-radius: 9px; transition: width .3s; }
progress::-moz-progress-bar { background: #739666; border-radius: 9px; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.result-card { border: 1px solid #e2e9d9; border-radius: 9px; overflow: hidden; background: #fff; min-width: 0; }
.result-images { display: flex; width: 100%; height: 148px; background: #f0f4e9; gap: 2px; }
.result-image-button { display: block; position: relative; border: 0; background: #eaf0e1; padding: 0; flex: 1; min-width: 0; overflow: hidden; }
.result-image-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.result-image-button:hover img { transform: scale(1.04); }
.result-image-button .expand-hint { position: absolute; background: #18392c99; color: #fff; right: 7px; bottom: 7px; width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; opacity: 0; }
.result-image-button:hover .expand-hint, .result-image-button:focus-visible .expand-hint { opacity: 1; }
.expand-hint .icon { width: 13px; height: 13px; }
.result-placeholder { height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 13px; background: #f5f7f0; color: #66854a; }
.result-placeholder .icon { width: 28px; height: 28px; }
.result-placeholder.running .icon { animation: pulse 1.7s infinite; }
.result-placeholder.failed { color: #916343; background: #fff7ed; }
.result-body { padding: 13px; }
.result-body h3 { margin: 0; color: #3c5e2d; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { display: flex; justify-content: space-between; gap: 6px; color: #637c4c; font-size: 12px; margin-top: 4px; }
.status-tag { padding: 1px 5px; border-radius: 4px; background: #edf4e5; color: #476d29; white-space: nowrap; }
.status-tag.failed, .status-tag.interrupted { background: #fff0e4; color: #8e5d34; }
.status-tag.running { background: #fff3de; color: #986b2e; }
.status-tag.cancelled { background: #f0f1eb; color: #6d7a61; }
.result-error { font-size: 13px; color: #925f3a; margin: 9px 0 0; overflow-wrap: anywhere; }
.result-actions { display: flex; gap: 7px; align-items: center; justify-content: space-between; margin-top: 14px; }
.result-actions .button { font-size: 13px; padding: 5px 7px; min-height: 29px; gap: 5px; flex: 1; }
.result-actions .icon-button { color: #5a7747; }
.job-log { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.job-log summary { font-size: 14px; color: #587242; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.job-log summary::after { content: '+'; margin-left: auto; font-size: 18px; color: #6c8554; }
.job-log[open] summary::after { content: '−'; }
.job-log summary .icon { width: 14px; height: 14px; }
#logCount { font-size: 13px; color: #6e8359; }
.job-log ol { margin: 14px 0 0; padding: 14px; max-height: 240px; overflow: auto; list-style: none; background: #f8faf4; border-radius: 7px; font-size: 13px; color: #587742; }
.job-log li { margin-bottom: 5px; display: flex; gap: 12px; overflow-wrap: anywhere; }
.job-log time { flex: 0 0 auto; color: #728561; font-variant-numeric: tabular-nums; }
.empty-inline { color: #6a7f54; font-size: 15px; padding: 19px 0; grid-column: 1 / -1; }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 0; padding-top: 17px; border-top: 1px solid var(--line); color: #5f714e; font-size: 13px; }
.skills-hero { min-height: 220px; }
.skill-hero-icon { display: grid; place-items: center; width: 106px; height: 106px; border: 1px solid #dce4d0; border-radius: 28px; background: #ecf1e5; color: #779367; transform: rotate(8deg); margin-right: 55px; }
.skill-hero-icon .icon { width: 48px; height: 48px; stroke-width: 1.1; }
.sync-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #577335; }
textarea { width: 100%; resize: vertical; border: 1px solid #dfe7d3; border-radius: 8px; background: #fdfefb; padding: 13px; font-size: 16px; line-height: 1.9; min-height: 105px; }
.roots-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.roots-actions > div { display: flex; gap: 8px; }
.skill-filter { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8d8; border-radius: 8px; background: #fdfefb; padding: 9px 12px; color: #637c4c; }
.skill-filter .icon { width: 15px; height: 15px; }
.skill-filter input { width: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.skill-filter:focus-within { border-color: #84a376; box-shadow: 0 0 0 3px #eaf1e1; }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.skill-card { border: 1px solid #e4eadb; border-radius: 9px; padding: 17px; background: #fdfefb; min-width: 0; }
.skill-card-header { display: flex; gap: 9px; align-items: center; }
.skill-card-header > .icon { color: #8aa775; width: 16px; height: 16px; }
.skill-card h3 { margin: 0; font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; flex: 1; }
.skill-card p { margin: 9px 0 13px; font-size: 13px; color: #667c4f; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.skill-card dl { margin: 0; display: grid; grid-template-columns: 43px 1fr; gap: 5px; font-size: 12px; line-height: 1.8; }
.skill-card dt { color: #5c7148; }
.skill-card dd { margin: 0; color: #5d7a42; min-width: 0; overflow-wrap: anywhere; }
.skill-card code { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #5a7744; }
.preview-dialog { width: min(900px, calc(100vw - 40px)); max-height: calc(100vh - 60px); border: 1px solid #dfe6d7; border-radius: 16px; box-shadow: 0 30px 100px #102b2440; padding: 0; color: var(--ink); }
dialog::backdrop { background: #19362d70; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; border-bottom: 1px solid #e7ecdf; }
.dialog-header h2 { font-size: 18px; margin-top: 6px; overflow-wrap: anywhere; }
.dialog-content { padding: 23px 28px; max-height: calc(100vh - 258px); overflow-y: auto; }
.preview-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 16px; line-height: 1.95; margin: 0; color: #405a36; }
.preview-text.empty { color: #69824b; font-size: 15px; }
.preview-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.preview-image { border: 1px solid #e1e8d6; background: #f4f7ed; border-radius: 7px; padding: 0; height: 200px; overflow: hidden; }
.preview-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview-source { color: #687f4e; font-size: 13px; margin: 18px 0 0; overflow-wrap: anywhere; }
.preview-notes { color: #896b3b; font-size: 14px; background: #fff7e9; border-radius: 7px; padding: 10px 13px; margin-top: 16px; white-space: pre-wrap; }
.dialog-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid #e5eadc; padding: 16px 28px; }
.image-dialog { border: 0; padding: 20px; border-radius: 12px; background: #f8faf3; max-width: calc(100vw - 30px); max-height: calc(100vh - 30px); box-shadow: 0 25px 100px #102b2440; }
.image-dialog img { display: block; max-width: calc(100vw - 90px); max-height: calc(100vh - 120px); object-fit: contain; margin: 12px auto 0; }
.image-close { position: absolute; top: 6px; right: 6px; color: var(--green); background: #f8faf3d9; }
#imageCaption { margin-top: 10px; text-align: center; font-size: 14px; color: #657f49; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 124px); transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 50px); padding: 12px 20px; border-radius: 10px; background: #204836; color: #fff; box-shadow: 0 8px 32px #12281926; font-size: 15px; animation: toastIn .2s ease-out; }
.toast.error { background: #945b44; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 7px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 1550px) { :root { font-size: 17px; } main { padding-right: 55px; padding-left: 55px; } .hero { min-height: 250px; } }
@media (max-width: 1200px) { .sidebar { width: 220px; flex-basis: 220px; padding-left: 16px; padding-right: 16px; } .brand strong { font-size: 16px; } .brand small { font-size: 11px; } main, .topbar { padding-left: 30px; padding-right: 30px; } .track-grid { grid-template-columns: repeat(4, 1fr); } .hero-art { margin-right: 0; width: 200px; flex-basis: 200px; } .configuration { grid-template-columns: 1.6fr 1fr; } .config-field:nth-child(3) { grid-column: 1; } .skill-select-field:nth-last-child(2) { grid-column: 2; } .skill-select-field:last-child { grid-column: 1 / -1; } .toast { left: calc(50% + 110px); } }
@media (max-width: 960px) { .sidebar { width: 192px; flex-basis: 192px; padding-left: 12px; padding-right: 12px; } .brand-mark { width: 34px; height: 34px; border-radius: 9px; } .brand { gap: 8px; } .brand strong { font-size: 15px; } .brand small { font-size: 10px; letter-spacing: 1px; } .local-tag { display: none; } .nav-item { font-size: 15px; padding: 11px; } main, .topbar { padding-left: 22px; padding-right: 22px; } .hero { min-height: 210px; gap: 15px; } h1 { font-size: 28px; } .hero-art { transform: scale(.78); transform-origin: right center; margin-left: -35px; margin-right: -10px; width: 170px; flex-basis: 170px; } .hero p { font-size: 14px; } .panel { padding: 22px; } .output-grid { grid-template-columns: 1fr; } .result-grid { grid-template-columns: repeat(2, 1fr); } .job-actions .button { padding: 6px 8px; } .run-panel > .panel-heading { align-items: flex-start; } .skill-list { grid-template-columns: 1fr; } .roots-actions { align-items: flex-start; flex-direction: column; gap: 10px; } .source-item { grid-template-columns: 16px 37px minmax(70px, 1fr) 106px 27px; gap: 9px; } .source-thumb { width: 37px; height: 37px; } .source-item .icon-button { padding: 4px; } .toast { left: calc(50% + 96px); } }
@media (max-width: 760px) { .app-shell { flex-direction: column; } .sidebar { position: relative; width: 100%; flex-basis: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 17px 22px 13px; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; overflow: visible; } .brand strong { font-size: 16px; } .brand small { font-size: 11px; } .brand-mark { width: 37px; height: 37px; } .workspace-tag, .sidebar-label, .steps, .history-heading, .history-list, .sidebar-bottom { display: none; } .view-nav { flex-direction: row; gap: 5px; } .nav-item { width: auto; padding: 9px 11px; font-size: 14px; gap: 6px; } .nav-item > .icon { width: 15px; height: 15px; } .nav-arrow, .nav-count { display: none !important; } .topbar { height: 57px; padding: 0 25px; } main { padding: 0 25px 24px; } .hero { padding-top: 27px; padding-bottom: 28px; min-height: 201px; } .hero-art { transform: scale(.7); width: 140px; flex-basis: 140px; margin-left: -48px; } .hero-copy { z-index: 1; } h1 { font-size: 27px; } .track-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .track-card { padding: 13px 4px 10px; } .panel { padding: 23px 21px; } .configuration { grid-template-columns: 1fr 1fr; } .config-field:first-child { grid-column: 1 / -1; } .config-field:nth-child(3) { grid-column: auto; } .skill-select-field:nth-last-child(2) { grid-column: 1; } .skill-select-field:last-child { grid-column: 2; } .rule-note { flex-wrap: wrap; } .rule-note .text-button { margin-left: 23px; } .rule-note p { min-width: calc(100% - 35px); } .launch-bar { padding: 20px; gap: 15px; } .launch-bar .button { padding: 11px 13px; font-size: 14px; gap: 7px; } .launch-bar .button > .icon:last-child { display: none; } .launch-label { display: block; margin-bottom: 4px; } .job-stats div { padding: 0 14px; } .job-actions { gap: 5px; } .job-actions .button { font-size: 12px; padding: 5px 6px; min-height: 29px; } .job-actions .icon { width: 12px; height: 12px; } .run-panel > .panel-heading { flex-direction: column; } .job-actions { justify-content: flex-start; } .skill-hero-icon { display: none; } .toast { left: 50%; } }
@media (max-width: 500px) { .sidebar { padding: 15px; gap: 10px; } .brand { gap: 7px; } .brand strong { font-size: 15px; } .brand small { font-size: 10px; } .brand-mark { width: 31px; height: 31px; } .brand-mark .icon { width: 19px; height: 19px; } .nav-item { padding: 7px 8px; font-size: 13px; } .nav-item > .icon { display: none; } .topbar { padding: 0 18px; height: 52px; } .breadcrumb { font-size: 13px; gap: 9px; } .runtime-pill { font-size: 12px; padding: 4px 7px; max-width: 170px; } .runtime-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } main { padding: 0 16px 20px; } .hero { min-height: 198px; padding: 25px 2px; } h1 { font-size: 25px; letter-spacing: -.8px; } .hero p { font-size: 14px; } .hero-art { display: none; } .eyebrow { font-size: 12px; } .panel { padding: 20px 17px; border-radius: 13px; margin-bottom: 15px; } .panel-heading { gap: 8px; margin-bottom: 20px; } .heading-title { gap: 9px; } .step-number { width: 28px; height: 28px; } h2 { font-size: 16px; } .panel-heading p { font-size: 13px; } .subtle-badge { font-size: 12px; padding: 3px 6px; } .path-control { gap: 7px; padding-left: 10px; } .path-control input { font-size: 16px; } .path-control > .icon { display: none; } .path-control .button { padding: 7px 8px; font-size: 13px; } .path-control .button .icon { display: none; } .import-bottom { align-items: flex-start; gap: 10px; } .import-bottom .button { font-size: 13px; padding: 7px 9px; min-height: 30px; } .field-hint { font-size: 12px; } .source-item { grid-template-columns: 16px 32px minmax(0, 1fr) 29px; padding: 10px 8px; gap: 8px; } .source-thumb { width: 32px; height: 32px; } .source-item select { grid-column: 3; grid-row: 2; min-height: 28px; padding: 4px 7px; font-size: 13px; } .source-item > .icon-button { grid-column: 4; grid-row: 1 / 3; } .source-item > input, .source-thumb { grid-row: 1 / 3; } .source-copy p { display: none; } .source-copy strong { font-size: 14px; } .list-toolbar { gap: 10px; font-size: 13px; } .toolbar-note { font-size: 12px; } .track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .track-card { padding: 13px 4px 10px; gap: 6px; } .track-card strong { font-size: 13px; } .track-card .track-glyph { font-size: 18px; } .configuration { gap: 17px 12px; margin-top: 20px; padding-top: 19px; } .skill-select-field:nth-last-child(2), .skill-select-field:last-child { grid-column: 1 / -1; } .field-label, .config-field legend { font-size: 13px; } .rule-note { font-size: 12px; padding: 10px; } .rule-note p { font-size: 12px; } .launch-bar { flex-direction: column; align-items: stretch; padding: 18px; gap: 16px; } .launch-label { display: inline; } .launch-bar strong { font-size: 15px; } .launch-bar .button { width: 100%; min-height: 43px; } .launch-bar .button > .icon:last-child { display: block; margin-left: auto; } .launch-bar .button > .icon:first-child { margin-right: auto; } .job-stats { padding: 12px 0; } .job-stats div { padding: 0 10px; } .job-stats span { font-size: 12px; } .job-stats strong { font-size: 18px; } .job-stats div:first-child strong { font-size: 15px; margin-top: 7px; } .result-grid { gap: 10px; } .result-images { height: 117px; } .result-body { padding: 10px; } .result-actions { flex-wrap: wrap; gap: 5px; margin-top: 10px; } .result-actions .button { width: 100%; flex-basis: 100%; font-size: 12px; } .result-actions .icon-button { margin-left: auto; padding: 4px; } .result-meta { flex-direction: column; align-items: flex-start; font-size: 12px; } .result-body h3 { font-size: 14px; } .page-footer { font-size: 12px; gap: 10px; } .page-footer span:last-child { text-align: right; } .roots-actions > div { width: 100%; } .roots-actions > div .button { flex: 1; font-size: 13px; } .preview-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); } .dialog-header { padding: 19px 19px 16px; } .dialog-header h2 { font-size: 18px; } .dialog-content { padding: 18px 19px; max-height: calc(100vh - 220px); } .dialog-footer { padding: 13px 19px; } .preview-text { font-size: 16px; } .preview-images { grid-template-columns: repeat(2, 1fr); gap: 8px; } .preview-image { height: 170px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 500px) { .track-selection-status { align-items: flex-start; flex-direction: column; gap: 7px; font-size: 12px; } }

@media (max-width: 850px) {
    .topbar { height: auto; min-height: 74px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
    .topbar-actions { gap: 8px; }
}
@media (max-width: 500px) {
    .topbar { min-height: 66px; padding-top: 10px; padding-bottom: 10px; }
    .topbar-actions { justify-content: flex-start; gap: 7px; }
    .topbar-actions .button { font-size: 12px; padding: 5px 8px; min-height: 28px; }
    .assistant-status { font-size: 13px; }
    .pairing-card { margin-top: 18px; }
    .pairing-copy h2 { font-size: 18px; }
    .pairing-copy > p { font-size: 14px; }
    .pairing-input { flex-direction: column; gap: 8px; }
    .pairing-input .button { min-height: 40px; }
    .offline-card { align-items: stretch; flex-direction: column; gap: 12px; }
    .image-method-field { grid-column: 1 / -1; }
    .image-method-hint { font-size: 13px; padding: 10px 11px; }
    .result-warnings p { font-size: 12px; }
}

/* Keep enlarged text and folder shortcuts readable at narrow widths. */
.import-bottom { flex-wrap: wrap; align-items: flex-start; }
.import-bottom > .field-hint { flex: 1 1 240px; }
.folder-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.folder-shortcuts .output-hint { margin-top: 0; flex: 1 1 260px; }
.topbar { height: auto; min-height: 74px; padding-top: 12px; padding-bottom: 12px; }
.hero-copy { min-width: 0; flex: 1; }
.track-card strong { text-align: center; }
@media (min-width: 501px) and (max-width: 960px) {
    .hero-art { width: 220px; flex-basis: 220px; margin-right: 0; }
}
@media (max-width: 760px) {
    .sidebar { flex-wrap: wrap; }
    .view-nav { flex-wrap: wrap; }
    .import-bottom > .field-hint, .folder-shortcuts .output-hint { flex-basis: 100%; }
    .field-hint, .output-hint, .rule-note p, .image-method-hint { font-size: 14px; }
}
@media (max-width: 500px) {
    .path-control .button, .import-bottom .button, .launch-bar .button, .roots-actions > div .button { font-size: 14px; }
    .job-actions .button, .result-actions .button { font-size: 13px; min-height: 34px; }
    .track-card strong { font-size: 14px; }
    .hero p { font-size: 15px; }
    .folder-actions { width: 100%; }
    .folder-actions .button { flex: 1 1 auto; }
    .list-toolbar { flex-wrap: wrap; }
    .toolbar-note { margin-left: 0; }
    .dialog-footer { flex-wrap: wrap; }
}
