@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700&display=swap');
:root{--ink:#263a38;--muted:#7b8580;--teal:#33776c;--teal-light:#eaf1ed;--gold:#bb9654;--border:#e7e5db;--paper:#faf9f4;--dark:#172d2c;--cat-line:#fff9e9;font-family:'Noto Sans TC',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,label:focus-within{outline:3px solid #bc9d62;outline-offset:4px}a{color:inherit}svg{width:24px;height:24px}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sidebar{position:fixed;inset:0 auto 0 0;width:205px;padding:40px 25px;background:var(--dark);color:#dce8dd;display:flex;flex-direction:column}.brand{display:flex;gap:14px;text-decoration:none}.brand>svg{color:#d2b880;width:31px;height:40px}.brand>span{font-family:'Noto Serif TC',serif;font-size:22px;letter-spacing:4px;line-height:1.45}.brand small{display:block;font-family:Arial,sans-serif;font-size:8px;letter-spacing:1.4px;color:#91aaa0;margin-top:13px;white-space:nowrap}.side-label{font-size:8px;letter-spacing:1.6px;color:#708e82;margin:60px 0 20px}.nav{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:12px;padding:13px 12px;border-radius:6px;margin:3px -8px;color:#9cb1a7}.nav span{font-size:20px}.nav.active{background:#2b413c;color:#e6dfc6;border:1px solid #3b5147}.side-bottom{margin-top:auto;text-align:center}.side-bottom p{font-family:'Noto Serif TC',serif;letter-spacing:3px;font-size:13px;line-height:2;color:#abbba9}.side-bottom small{font-size:8px;color:#6e887b;letter-spacing:1px}.orbit{color:#b49c65;font-size:34px;border:1px solid #3e5345;border-radius:50%;width:65px;height:65px;line-height:65px;margin:0 auto 24px;position:relative}.orbit:before{content:'';position:absolute;inset:9px;border:1px solid #3e5345;transform:rotate(45deg)}main{margin-left:205px;max-width:1660px;padding:0 42px}header{height:76px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:16px}.breadcrumb{font-size:11px;color:#808a82}.breadcrumb span{margin:0 14px;color:#c8cabc}.local-badge{font-size:10px;color:#7b8b7d;display:flex;align-items:center;gap:7px}.local-badge i,.tiny-dot{width:5px;height:5px;background:#6a947d;border-radius:50%;display:inline-block}.heading{display:flex;justify-content:space-between;align-items:center;margin:36px 0 29px;gap:15px}.eyebrow{font:9px Arial,sans-serif;letter-spacing:2.4px;color:#a68a56;margin-bottom:13px}h1{font-family:'Noto Serif TC',serif;font-size:30px;font-weight:600;letter-spacing:1px;margin:0 0 10px;display:flex;align-items:center;gap:18px}h1 svg{color:#b99a5b;width:21px}.heading p{color:#889085;font-size:12px;margin:0}.text-button{border:0;padding:8px 0;background:transparent;font-size:11px;color:#5d7e71;white-space:nowrap}.heading .text-button{align-self:flex-end}.text-button span{margin-left:10px}.workspace{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(350px,1fr);gap:22px;align-items:start}.card{border:1px solid var(--border);border-radius:12px;background:#fffefb;box-shadow:0 5px 20px #293f2e03;overflow:hidden}.card-heading{padding:23px 24px 19px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-heading>div{display:flex;align-items:center;gap:11px}h2{font-size:13px;letter-spacing:1px;font-weight:600;margin:0}.section-no{font:10px Georgia,serif;color:#b7a67f;border:1px solid #e9e2cf;border-radius:50%;width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center}.pill{font-size:9px;padding:5px 9px;border-radius:4px;background:#f0f0e9;color:#969b8d;white-space:nowrap}.pill.teal{color:#56806f;background:#ecf2ea}.pill.warning{background:#fff0d9;color:#a37321}.steps{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 20px 24px;font-size:10px;color:#a7ada3}.steps span{display:flex;align-items:center;gap:6px;white-space:nowrap}.steps b{font:10px Arial,sans-serif;display:grid;place-items:center;width:18px;height:18px;background:#f1f1eb;border-radius:50%;font-weight:400}.steps .current{color:#4f7869}.steps .current b{background:#e4eee5;color:#477863}.steps i{height:1px;background:#e4e7de;width:19px}.capture-area{margin:0 24px;position:relative;min-height:332px;background:#f6f7f1;border:1px dashed #d9dfd1;border-radius:9px;display:flex;justify-content:center;align-items:center;overflow:hidden}.empty-capture{text-align:center;padding:24px 20px 22px}.empty-capture h3{font-size:14px;font-weight:500;margin:16px 0 9px}.empty-capture p{font-size:11px;line-height:1.9;color:#9ba08f;margin:0 0 18px}.window-illustration{position:relative;width:118px;height:90px;margin:0 auto;border:1px solid #c5d1c1;border-radius:7px;background:#fffef8;transform:rotate(-5deg);box-shadow:5px 5px 0 #e8eee2}.window-dots{text-align:left;font:7px Arial,sans-serif;letter-spacing:3px;color:#b8c9b2;border-bottom:1px solid #e0e6d8;padding:6px 8px}.mini-board{width:49px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:9px auto}.mini-board i{width:10px;height:10px;border:1px solid #dde2cd;border-radius:2px}.mini-board .s{background:#c9b680;border-color:#c9b680}.illustration-star{position:absolute;color:#bda05a;font-size:33px;top:30px;right:-18px;text-shadow:2px 2px #f6f7f1}.button{border-radius:6px;border:1px solid #dbe2d4;background:#fffefb;color:#526d5b;padding:10px 15px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button.primary{background:var(--teal);border-color:var(--teal);color:#fffaf0;box-shadow:0 2px 3px #2d67581a}.button.primary:hover{background:#286358}.button.small{padding:8px 10px;font-size:10px}.compat{font-size:9px;display:block;color:#a9af9f;margin-top:14px}.capture-controls{display:flex;gap:9px;margin:15px 24px;align-items:center;flex-wrap:wrap}.upload{font-size:10px;color:#879583;cursor:pointer;margin-left:auto;border-bottom:1px solid #b9c5b3;padding:3px 0}.upload input{display:none}.notice{font-size:10px;color:#8c9484;line-height:1.9;margin:0 24px;padding-bottom:20px}.notice.warn{color:#a67c33}.calibration{margin:0 24px 20px;padding:15px;background:#f0f4ec;border-radius:7px}.calibration strong{font-size:11px;font-weight:500}.calibration p{font-size:10px;line-height:1.8;color:#81917d}.calibration-actions{display:flex;gap:7px;flex-wrap:wrap}.source-footer{border-top:1px solid var(--border);font-size:9px;color:#9aa28f;display:flex;justify-content:space-between;gap:10px;padding:16px 24px}.source-footer .tiny-dot{margin-right:5px;background:#b1b89f}.main-metric{padding:3px 24px 19px;text-align:center}.metric-caption{font-size:10px;letter-spacing:1px;color:#929a89}.probability{margin:8px 0 3px;position:relative;display:flex;align-items:baseline;justify-content:center;gap:3px;color:#337265}.probability>span:first-child{font-family:Georgia,'Times New Roman',serif;font-size:57px;letter-spacing:-2px;font-weight:400}.probability>span:nth-child(2){font:23px Georgia,serif;margin-left:4px}.probability svg{color:#c7b27d;width:18px;height:18px;align-self:center;margin-left:10px}.metric-detail{font-size:9px;letter-spacing:.2px;color:#99a08e}.board-meta{border-top:1px solid #eeeee5;padding:13px 24px 7px;display:flex;justify-content:space-between;align-items:center}.board-meta strong{font-size:10px;font-weight:500}.board-meta strong span{color:#84957a;margin-left:8px;font:10px Arial,sans-serif}.board-meta button{padding:3px 0;font-size:10px}.board-wrap{width:240px;position:relative;margin:13px auto 0;padding-left:14px}.col-labels{display:grid;grid-template-columns:repeat(4,1fr);font:9px Georgia,serif;color:#a4ac94;margin:0 0 9px}.col-labels span{text-align:center}.row-labels{position:absolute;top:21px;bottom:0;left:-3px;display:flex;flex-direction:column;justify-content:space-around;font:9px Georgia,serif;color:#a4ac94}.board{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.cell{position:relative;aspect-ratio:1;border:1px solid #e2e3d3;border-radius:7px;background:#f8f8ef;padding:6px;display:grid;place-items:center;transition:background .15s,border-color .15s}.cell:before{content:'✧';color:#d5d8c1;font-size:18px}.cell:hover{background:#eeefdf;border-color:#bfcab2}.cell.filled{background:#eee6cd;border-color:#d7c494;box-shadow:inset 0 0 0 3px #f4eedb}.cell.filled:before{display:none}.cell svg{width:100%;height:100%;color:#bd9c59;transform:rotate(-8deg)}.cell:nth-child(3n) svg{transform:rotate(8deg)}.cell.completed{border-color:#7a9f7d;box-shadow:inset 0 0 0 2px #b2c6a2}.cell.possible{border:1px dashed #87ab8b;background:#eef4e6}.cell.uncertain{outline:2px solid #d5a14b;outline-offset:1px}.board-hint{text-align:center;font-size:9px;color:#a2a68f;min-height:34px;padding:12px 16px 7px}.summary{display:grid;grid-template-columns:repeat(3,1fr);margin:4px 24px 16px;border-top:1px solid #efefe6;padding-top:15px}.summary>div{text-align:center;border-right:1px solid #e9ecdf}.summary>div:last-child{border:0}.summary span{display:block;font-size:9px;color:#9ba18c;margin-bottom:9px}.summary strong{font-family:Georgia,serif;font-size:20px;font-weight:400}.summary small{font:9px 'Noto Sans TC',sans-serif;color:#8e9a85}.verdict{display:flex;align-items:center;gap:12px;background:#f0f4eb;border-top:1px solid #e7eddc;padding:15px 24px}.verdict>span{font-size:25px;color:#a9b38a}.verdict strong{font-size:10px;font-weight:500;color:#627b55}.verdict p{margin:5px 0 0;font-size:9px;color:#94a185;line-height:1.6}.below{margin-top:22px}.distribution .card-heading{padding-bottom:15px}.muted{font-size:9px;color:#9ba28f}.distribution-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:0 24px 22px;gap:18px}.dist-top{display:flex;justify-content:space-between;font-size:10px;margin-bottom:11px;color:#949e88}.dist-top strong{font:19px Georgia,serif;font-weight:400;color:#506c58}.dist-top small{font-size:10px}.bar{height:4px;border-radius:4px;background:#f0f1e8;overflow:hidden}.bar i{height:100%;display:block;border-radius:4px;background:#b4c3a3;min-width:0}.dist-item:last-child .bar i{background:#bda16c}.dist-item:last-child .dist-top strong{color:#b39458}.routes{padding:15px 24px;border-top:1px solid #eeeee4;font-size:10px;line-height:1.8;color:#86917a}.route-button{border:1px solid #e1e7d7;background:#f7f9f0;color:#6b865c;font-size:10px;border-radius:4px;padding:4px 8px;margin:5px 6px 0 0}.route-button.active{background:#dae7d4}.methodology{margin:17px 0}.methodology summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;padding:18px 24px;font-size:11px;letter-spacing:.3px}.methodology summary::-webkit-details-marker{display:none}.methodology summary span{color:#9fa987}.method-body{padding:0 24px 21px;color:#8b9580;font-size:11px;line-height:1.9}.method-body ol{padding-left:19px}.method-body a{color:#58816b}.preview-label{position:absolute;left:10px;bottom:10px;background:#203d34dd;color:#fff5df;padding:7px 10px;border-radius:5px;font-size:10px;pointer-events:none}canvas#preview{display:block;max-width:100%;width:100%;height:auto;touch-action:none;cursor:crosshair}canvas#preview[hidden]{display:none}.capture-area.has-source{min-height:220px;background:#e7eadf}.capture-area.selecting{border-color:#76a487}.capture-area.cropped{min-height:260px;padding:16px}.capture-area.cropped canvas{max-width:300px;border-radius:6px}.toast{position:fixed;bottom:25px;left:calc(50% + 102px);transform:translateX(-50%);padding:13px 23px;font-size:12px;line-height:1.7;color:#f8f3dc;background:#2e493e;box-shadow:0 5px 30px #1a33272b;border-radius:8px;max-width:80%;z-index:20}footer{display:flex;justify-content:space-between;font:8px Arial,sans-serif;letter-spacing:1.1px;color:#a3aa94;padding:16px 0 24px;gap:12px}[hidden]{display:none!important}
@media(min-width:1450px){main{padding:0 65px}.capture-area{min-height:377px}.board-wrap{width:265px}.heading{margin-top:46px}.card-heading{padding-top:25px}.main-metric{padding-bottom:22px}}
@media(max-width:1100px){.sidebar{width:155px;padding:32px 19px}.brand>span{font-size:18px;letter-spacing:2px}.brand{gap:7px}.brand>svg{width:25px}.brand small{font-size:7px;letter-spacing:.4px}.side-label{font-size:7px;letter-spacing:.4px}main{margin-left:155px;padding:0 24px}.workspace{grid-template-columns:minmax(0,1fr) minmax(310px,1fr);gap:16px}h1{font-size:25px}.steps{gap:5px;font-size:9px}.steps i{width:10px}.capture-area{margin:0 16px}.card-heading{padding-left:17px;padding-right:17px}.capture-controls{margin-left:16px;margin-right:16px}.notice{margin:0 16px}.calibration{margin:0 16px 16px}.board-wrap{width:224px}.toast{left:calc(50% + 77px)}}
@media(max-width:820px){.sidebar{width:72px;padding:25px 10px;align-items:center}.brand>span,.side-label,.nav,.side-bottom{display:none}.brand>svg{width:32px;height:36px}main{margin-left:72px;padding:0 22px}.workspace{grid-template-columns:1fr}.heading{margin:28px 0 24px}h1{font-size:25px}.local-badge{font-size:8px}.capture-area{min-height:280px}.empty-capture{padding:24px}.result-card .board-wrap{width:270px}.probability>span:first-child{font-size:62px}.result-card .card-heading{padding:23px}.capture-card .card-heading{padding:23px}.source-footer{padding:14px 20px}.toast{left:calc(50% + 36px)}.distribution-grid{gap:16px}.dist-top{flex-direction:column;gap:7px}.steps{font-size:10px;gap:16px}.steps i{width:25px}}
@media(max-width:500px){.sidebar{display:none}main{margin-left:0;padding:0 16px}header{height:55px}.breadcrumb{font-size:9px}.breadcrumb span{margin:0 6px}.local-badge{font-size:8px;max-width:112px;line-height:1.6}.heading{display:block;margin-top:26px}h1{font-size:23px;gap:8px}.heading p{font-size:10px}.eyebrow{font-size:8px}.heading .text-button{margin-top:12px}.card-heading{padding:18px!important}.card-heading h2{font-size:12px}.steps{gap:8px}.steps i{width:12px}.capture-area{min-height:280px}.capture-controls{gap:6px}.capture-controls .button{font-size:9px}.notice{font-size:9px}.calibration-actions .button{width:100%}.board-wrap{width:255px!important}.summary{margin-left:18px;margin-right:18px}.distribution-grid{padding:0 18px 22px;gap:13px}.dist-top strong{font-size:18px}.muted{font-size:8px}.source-footer{font-size:8px;padding:14px 17px}.toast{left:50%;max-width:93%;width:max-content;font-size:11px}footer{font-size:7px;letter-spacing:.4px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Automatic capture mode */
canvas#preview{cursor:default;touch-action:auto}.cell:disabled{opacity:1;cursor:default}.cell:disabled:hover{background:#f8f8ef;border-color:#e2e3d3}.cell.filled:disabled:hover{background:#eee6cd;border-color:#d7c494}.cell.completed:disabled:hover{border-color:#7a9f7d}.capture-controls{gap:7px}.capture-controls .upload{font-size:9px}.notice{color:#77826f}.metric-detail{color:#7a876e}.board-hint{color:#838e75}.compat{color:#8f9a81}
/* Shared screen intake, automatic tool routing, and Faux Hollows */
.heading-actions{display:flex;gap:18px;align-self:flex-end}.mode-strip{display:flex;align-items:center;gap:8px;margin:-8px 0 20px;font-size:10px;flex-wrap:wrap}.auto-tag{color:#8b794b;margin-right:10px}.mode-button{border:1px solid #e0e5d8;background:#fffefb;color:#819079;border-radius:5px;padding:7px 12px;font-size:10px}.mode-button.active{border-color:#aabfa8;background:#eaf1e5;color:#4a7559}.mode-button:disabled{opacity:1;cursor:default}#kindStatus{margin-left:auto;color:#8b9880;font-size:9px}.goal-controls{margin:0 24px 12px;display:flex;align-items:center;gap:10px;font-size:10px;color:#8c967f}.goal-controls select{min-width:0;flex:1;font:10px 'Noto Sans TC',sans-serif;color:#627d58;padding:8px;border:1px solid #dee5d6;border-radius:5px;background:#f8faf4}.faux-advice{text-align:center;padding:3px 24px 14px}.faux-advice>strong{display:block;color:#3d7968;font:43px Georgia,serif;margin:7px 0}.faux-advice>p{font-size:10px;line-height:1.8;color:#89967b;margin:0;min-height:18px}.faux-grid-shell{position:relative;width:calc(100% - 60px);max-width:330px;margin:0 auto;padding-left:15px}.faux-cols{display:grid;grid-template-columns:repeat(6,1fr);margin-bottom:7px;color:#9aab8c;font:9px Georgia,serif;text-align:center}.faux-rows{position:absolute;inset:19px auto 0 0;display:flex;flex-direction:column;justify-content:space-around;color:#9aab8c;font:9px Georgia,serif}.faux-board{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.faux-cell{aspect-ratio:1;position:relative;min-width:0;border:1px solid #dedfcd;background:#f5f5e8;border-radius:5px;color:#6a805c;padding:2px;display:grid;place-items:center}.faux-cell:disabled{opacity:1;cursor:default}.faux-cell.blocked{background:#817c65;box-shadow:inset 0 0 0 3px #6c6957;border-color:#a5a187}.faux-cell.blocked:after{content:'· ·';position:absolute;top:-4px;color:#c4c3a0;letter-spacing:9px;font-size:16px}.faux-cell.empty{background:#f6efdb;color:#c8c7ae}.faux-symbol{font-size:21px;line-height:1}.faux-cell.sword{background:#e2edf0;color:#5f8991;border-color:#a4bec1}.faux-cell.box{background:#e7ecd9;color:#9b8649;border-color:#bcc7a5}.faux-cell.fox{background:#f3e8c5;color:#b5994d;border-color:#d6c692}.faux-cell.uncertain{background:#f0eee4;color:#aaa28a}.faux-cell.inferred{border-style:dashed;opacity:.72}.faux-cell.recommended{border:2px solid #c29c4c;box-shadow:0 0 0 2px #e8dbb3}.next-star{position:absolute;top:-6px;right:-5px;color:#b28b3d;font-size:12px;background:#fffefb;border-radius:50%;line-height:1}.faux-counts{display:flex;flex-wrap:wrap;justify-content:center;gap:0 3px;font:7px Arial,sans-serif;line-height:1.7;color:#8b967e}.faux-counts i{font-style:normal}.faux-counts i:nth-child(1){color:#6e9b9b}.faux-counts i:nth-child(2){color:#999256}.faux-counts i:nth-child(3){color:#b59a5d}.faux-legend{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:8px;color:#8d9a7e;padding:14px 16px}.faux-card .summary{margin-top:0}.capture-area.cropped #preview{max-width:330px}.faux-card .verdict{padding-top:14px;padding-bottom:14px}@media(max-width:500px){.heading-actions{margin-top:12px;gap:22px}#kindStatus{width:100%;margin:4px 0 0}.mode-strip{margin-top:0}.faux-grid-shell{width:calc(100% - 45px)}.goal-controls{margin-left:18px;margin-right:18px}.faux-counts{font-size:7px}.faux-advice>strong{font-size:36px}}
