@charset "UTF-8";
:root{--paper:#f4f7f8;--white:#fff;--ink:#20323e;--muted:#85919a;--line:#e9eef0;--teal:#17a9b0;--teal-dark:#147c84;--mint:#e8f7f5;--navy:#172c3d;--amber:#9c762b;--sans:"Segoe UI","Yu Gothic UI","Meiryo",sans-serif;--sidebar:184px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:13px var(--sans);-webkit-font-smoothing:antialiased}button,a,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.43}button,a,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--teal)}[hidden]{display:none!important}svg{display:block}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:32px 16px 20px;background:var(--navy);color:#a9bac5;display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:10px;margin-left:8px;color:#fff;text-decoration:none;font-size:28px;font-weight:700;letter-spacing:-1.2px}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#67d8d2;color:#173b46;box-shadow:0 2px 12px #0b1d2840}.brand-mark svg{width:23px;height:23px;fill:currentColor}.brand-studio{font-size:16px;font-weight:400;letter-spacing:-.4px;margin-left:4px;color:#a5bcc6}.nav-label{font-size:8px;font-weight:600;letter-spacing:.12em;color:#6f899b;margin:53px 10px 14px}.tool-nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:10px;border:0;color:#92a6b4;background:none;width:100%;height:46px;padding:0 12px;border-radius:9px;text-decoration:none;text-align:left;font-size:12px;white-space:nowrap}.nav-item.active{background:#294956;color:#adf4e9;box-shadow:inset 0 0 0 1px #a5e9df08}.nav-item .icon{width:17px;height:17px}.nav-active-dot{width:5px;height:5px;border-radius:100%;background:#79dcd2;margin-left:auto}.future-tool{opacity:.58!important}.soon{font-size:7px;letter-spacing:.03em;margin-left:auto;border:1px solid #71889457;color:#a6b8c3;padding:3px 4px;border-radius:4px}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:20px 13px 24px;border-bottom:1px solid #ffffff12;margin-bottom:20px}.sidebar-note>.icon{width:24px;height:24px;color:#6ac7c3;fill:#6ac7c3;stroke:none}.sidebar-note p{font-size:11px;color:#cbd9de;line-height:2.1;margin:13px 0 8px;letter-spacing:.03em}.sidebar-note>span{font-size:9px;color:#7e98aa}.local-workspace{font-size:9px;color:#9aabb6;margin:0 9px}.local-dot{width:5px;height:5px;border-radius:50%;background:#63d4bf;display:inline-block;margin-right:6px}.local-workspace small{display:block;font-size:7px;letter-spacing:.16em;color:#607e93;margin:10px 0 0 11px}
.main-shell{margin-left:var(--sidebar);padding:0 28px;background:radial-gradient(ellipse at 100% 10%,#d5f0ec77,transparent 42%),radial-gradient(ellipse at 40% 100%,#e1e7f633,transparent 70%);min-height:100dvh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;height:64px;border-bottom:1px solid #dfe7e9a3}.breadcrumb{display:flex;align-items:center;gap:13px;font-size:10px;color:#8f9ba4}.breadcrumb>.icon{width:14px;height:14px;color:#a8b2b7}.breadcrumb strong{font-weight:500;color:#4d6570}.crumb-divider{color:#c0cacf}.top-meta{display:flex;align-items:center;gap:18px}.workspace-badge{font-size:8px;color:#6e858a;letter-spacing:.12em;padding:7px 9px;border:1px solid #dbe7e8;border-radius:5px;background:#ffffff69}.connection{display:flex;align-items:center;gap:6px;color:#81969b;font-size:9px}.connection i{display:block;width:5px;height:5px;border-radius:100%;background:#a6b5bb}.connection.ready i{background:#2fb99c;box-shadow:0 0 0 3px #d9f3e9}.connection.error i{background:#bb8742}
.intro{height:110px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:8px;letter-spacing:.17em;color:#6a969d;margin:0 0 9px;font-weight:600}h1{font-size:27px;letter-spacing:.02em;line-height:1.4;font-weight:650;margin:0 0 8px}h1>span{color:var(--teal-dark)}.intro-copy{font-size:10px;line-height:1.9;color:#84959c;margin:0}.about-button{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#ffffffa6;border:1px solid #dfe9e9;border-radius:8px;color:#5b7b82;font-size:10px;white-space:nowrap;transition:background .2s}.about-button>.icon{width:14px;height:14px}.about-button>span{margin-left:8px;color:#8eb2b4}.about-button:hover{background:#fff}
.dashboard{display:grid;grid-template-columns:minmax(260px,1.08fr) minmax(272px,1fr) minmax(240px,.78fr);gap:18px;height:clamp(488px,calc(100dvh - 285px),750px)}.panel{border:1px solid #e6edef;background:#fff;border-radius:16px;box-shadow:0 5px 22px #29475904;min-width:0}.editor-panel,.results-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:71px;padding:0 20px;border-bottom:1px solid var(--line);flex-shrink:0}.panel-title{display:flex;align-items:center;gap:11px}.panel-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e6ecee;border-radius:10px;color:#768d98;background:#f8fafb}.panel-icon .icon{width:18px;height:18px}.panel-icon.result-icon{background:#f0f9f7;color:var(--teal-dark);border-color:#e0f0eb}.panel-kicker{display:block;font-size:7px;letter-spacing:.12em;font-weight:600;color:#9cabb2;margin:0 0 5px}h2{font-size:13px;font-weight:600;letter-spacing:.03em;line-height:1.5;margin:0}.text-button{border:0;background:transparent;font-size:10px;color:var(--teal-dark);padding:8px 0;white-space:nowrap}.text-button:hover:not(:disabled){color:#095b63;text-decoration:underline}.text-button.muted{color:#96a2a8}.editor-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:17px 20px 12px;color:#9aa7ae;font-size:9px;font-variant-numeric:tabular-nums;flex-shrink:0}.format-pill{font-size:7px;font-weight:600;letter-spacing:.08em;padding:4px 6px;background:#f2f5f6;color:#8c9ba4;border-radius:4px}.writing-area{position:relative;margin:0 17px;flex:1;min-height:120px;overflow:hidden;border:1px solid #eaf0f2;border-radius:10px;background:linear-gradient(140deg,#fbfcfd,#f7fafb);transition:border-color .2s}.writing-area:focus-within{border-color:#91d5d2;box-shadow:0 0 0 3px #48bdb508}textarea{position:relative;display:block;width:100%;height:100%;resize:none;border:0;background:transparent;color:#475d67;font:12px/2 var(--sans);padding:17px 17px 32px;outline:none;z-index:1}textarea::placeholder{color:#a6b3bb;line-height:2.2;font-size:11px}textarea:read-only{cursor:wait}.editor-watermark{position:absolute;right:18px;bottom:19px;text-align:right;color:#e1e9ec;font-family:Georgia,serif;font-size:59px;font-style:italic;line-height:1;pointer-events:none;transition:opacity .2s}.editor-watermark span{display:block;font:8px var(--sans);letter-spacing:.05em;color:#bbc9cf;margin-top:9px}.has-article .editor-watermark{opacity:0}.editor-footer{flex-shrink:0;padding:17px 20px 15px}.primary-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(110deg,#179b9f,#20b5b4);color:white;border:1px solid #139b9b;border-radius:9px;padding:13px 17px;font-size:12px;font-weight:600;box-shadow:0 5px 12px #1baba018;transition:transform .2s,box-shadow .2s}.primary-button>.icon{width:15px;height:15px;fill:currentColor;stroke:none}.primary-button .button-arrow{margin-left:auto;font-size:17px;line-height:1}.primary-button>.icon:first-child{margin-right:auto}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #1baba033}.primary-button:disabled{opacity:.44;box-shadow:none}.editor-footer-note{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;font-size:8px;color:#9aa9ad}.editor-footer-note>span:first-child{display:flex;align-items:center;gap:5px}.editor-footer-note .icon{width:11px;height:11px;color:#92aaa9}.shortcut{font-size:8px}.send-note{font-size:8px;color:#a0aeb3;line-height:1.8;margin:6px 0 0}
.scale-tag{font-size:13px;font-weight:300;color:#8ca1a8;letter-spacing:-.5px}.result-body{padding:12px 19px 0;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#dce9e9 transparent}.result-toolbar{display:flex;justify-content:space-between;gap:10px;font-size:8px;color:#94a4ad;margin-bottom:4px;line-height:1.8;min-height:20px}#result-time{white-space:nowrap;color:var(--teal-dark);font-variant-numeric:tabular-nums;align-self:flex-start;font-size:8px}.score-row{padding:12px 0;border-bottom:1px solid #edf1f3}.score-line{display:flex;align-items:center;justify-content:space-between;gap:9px}.axis-name{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;letter-spacing:-.02em}.axis-index{font-size:8px;color:#a6b8c1;font-variant-numeric:tabular-nums}.score-value{font-size:21px;line-height:1;font-weight:600;color:#248a91;letter-spacing:-1px;font-variant-numeric:tabular-nums}.score-value small{font-size:8px;font-weight:400;color:#a4b2ba;letter-spacing:0;margin-left:4px}.score-value.empty{font-size:16px;color:#c6d3d7;letter-spacing:0}.meter{display:flex;gap:4px;height:4px;margin:10px 0 0 18px}.meter i{flex:1;border-radius:2px;background:#edf2f4}.meter i.filled{background:#2eb5b4}.meter i.partial{background:#a3dbd6}.score-detail{margin:6px 0 0 18px}.score-detail summary{font-size:8px;color:#92a0a7;cursor:pointer;list-style:none;line-height:1.9}.score-detail summary::-webkit-details-marker{display:none}.score-detail summary:after{content:" ＋";float:right;color:#94aeb4}.score-detail[open] summary:after{content:" −"}.score-detail p{font-size:10px;line-height:1.9;color:#697f88;margin:9px 0}.confidence-flag{font-size:8px;color:#aa8348;background:#faf4e9;border-radius:3px;padding:2px 4px;margin-left:6px}.distribution{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}.distribution span{font-size:8px;border-radius:3px;background:#eff8f6;padding:3px 5px;color:#718d90}.empty-note{display:flex;align-items:center;justify-content:center;gap:8px;padding:17px 0;color:#a5b5bd;font-size:9px}.empty-note .icon{width:14px;height:14px;fill:#a0ccce;stroke:none}.result-actions{display:flex;align-items:center;gap:13px;padding:14px 0}.result-actions>.text-button:last-child{margin-left:auto}.secondary-button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8e6e6;background:#fafffe;color:#60878c;padding:9px 12px;border-radius:7px;font-size:10px;white-space:nowrap;transition:background .2s}.secondary-button:hover:not(:disabled){background:#eaf8f5}.result-footnote{font-size:8px;color:#9eabb2;line-height:1.9;border-top:1px solid var(--line);padding:12px 0;margin:0}.notice{flex-shrink:0;background:#fcf7ee;color:#997f4f;font-size:9px;line-height:1.9;border:1px solid #f1e5ce;border-radius:7px;padding:8px 10px;margin:12px 16px 0}.notice.progress{background:#effaf7;border-color:#d9efe9;color:#508c89}.notice.progress:before{content:"";display:inline-block;width:8px;height:8px;border:2px solid #b5e0d6;border-top-color:var(--teal);border-radius:100%;margin-right:6px;vertical-align:-2px;animation:spin 1s linear infinite}.stale-label{color:#ac874c!important}.busy .scores{opacity:.48;transition:opacity .2s}
.companion-panel{border-radius:17px;position:relative;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(160deg,#eaf7f6 0%,#f6faf9 44%,#e7f4ef 100%);border:1px solid #dcece9;box-shadow:0 6px 30px #25766e04;min-width:0}.companion-heading{padding:19px 17px 10px;display:flex;justify-content:space-between;align-items:center;z-index:1}.assistant-badge{display:flex;align-items:center;gap:6px;color:#5c928e;font-size:7px;font-weight:600;letter-spacing:.12em}.assistant-badge>span{width:4px;height:4px;border-radius:50%;background:#5db5a4}.companion-heading>.icon{width:13px;height:13px;color:#8cbdb5;fill:currentColor;stroke:none}.character-scene{position:relative;flex:1;min-height:225px;overflow:hidden;margin:0 9px;isolation:isolate;border-radius:14px;background:white}.character-image{position:absolute;display:block;height:108%;width:auto;max-width:none;top:-4%;right:-16px;object-fit:contain;z-index:1;mix-blend-mode:multiply;transition:opacity .2s;animation:portrait-enter .45s ease both}.character-image[data-side="left"]{left:-9px;right:auto}.character-scene:after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(0deg,#f2faf7 0%,transparent 14%),linear-gradient(90deg,#f4faf7b3,transparent 22%);box-shadow:inset 0 0 30px 12px #f3faf65e;border-radius:14px}.scene-orbit{position:absolute;width:210px;height:210px;border:1px solid #9ddbd53b;border-radius:50%;left:-68px;top:42px;z-index:0}.orbit-two{width:265px;height:265px;top:14px;left:-94px}.scene-caption{position:absolute;z-index:3;left:13px;bottom:12px;font-size:6px;letter-spacing:.14em;color:#8db2aa;writing-mode:vertical-rl;transform:rotate(180deg)}.scene-spark{position:absolute;z-index:3;color:#79c4b8}.spark-one{font-size:30px;left:12px;top:60px;transform:rotate(10deg)}.spark-two{font-size:13px;left:39px;top:110px}.companion-dialogue{position:relative;border:1px solid #dfede7;border-radius:12px;background:#ffffffdb;padding:17px 15px 15px;margin:11px 15px 0;z-index:2;min-height:152px;box-shadow:0 3px 14px #23564c04}.companion-dialogue:before{content:"";position:absolute;width:12px;height:12px;top:-7px;left:29px;background:#fff;border-left:1px solid #dfede7;border-top:1px solid #dfede7;transform:rotate(45deg)}.dialogue-eyebrow{display:block;color:#72a49b;font-size:6px;font-weight:600;letter-spacing:.1em;margin-bottom:9px;position:relative;z-index:1}.companion-dialogue h2{font-size:17px;line-height:1.65;letter-spacing:.025em;font-weight:600;position:relative;z-index:1;white-space:pre-line}.companion-dialogue p{font-size:10px;line-height:2;color:#80988e;margin:8px 0 0;position:relative;z-index:1}.dialogue-decoration{position:absolute;right:12px;top:3px;font:80px Georgia,serif;color:#e6f3ee;line-height:1;z-index:0}.assistant-bottom{display:flex;align-items:center;justify-content:center;gap:6px;font-size:7px;color:#89aaa0;padding:13px 9px}.tiny-spark{color:#76b5a5;font-size:12px}.reading-badge{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:4px;background:#fffefa;border:1px solid #cce8e3;border-radius:30px;padding:8px 12px;color:#539e97;box-shadow:0 4px 20px #163c3810;font-size:7px;letter-spacing:.1em}.reading-badge>i{width:3px;height:3px;border-radius:100%;background:#64b8b0;animation:dot-pulse 1.2s ease-in-out infinite}.reading-badge>i:nth-child(2){animation-delay:.15s}.reading-badge>i:nth-child(3){animation-delay:.3s;margin-right:4px}.companion-panel[data-mood="thinking"] .scene-spark{color:#91aaca}.companion-panel[data-mood="thinking"]{background:linear-gradient(160deg,#edf4f9,#f3f7fa 44%,#edf3f8);border-color:#e1e9f0}.companion-panel[data-mood="celebrate"] .spark-one{animation:sparkle 1.5s ease-in-out 2}.companion-panel[data-mood="trouble"]{background:linear-gradient(160deg,#faf6ee,#f8f9f4 44%,#f4f3e9);border-color:#eee8da}.companion-panel[data-mood="trouble"] .dialogue-eyebrow{color:#b49b69}
.chapter-panel{margin-top:16px;padding:0 20px}.chapter-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:66px}.chapter-heading{display:flex;align-items:center;gap:12px}.chapter-symbol{display:grid;place-items:center;width:32px;height:32px;background:#f3f6fa;border-radius:9px;color:#90a5ba}.chapter-symbol>.icon{width:17px;height:17px}.chapter-heading h2{font-size:11px;letter-spacing:.015em}.chapter-heading p{font-size:8px;color:#9ba8b1;margin:4px 0 0;line-height:1.9}.chapter-controls{display:flex;align-items:center;gap:18px}.chapter-controls>span{font-size:8px;color:#a0afb7;max-width:260px;line-height:1.8}.chapter-bottom{display:none;font-size:8px;color:#a6b3b8;padding:0 0 12px}.chapter-panel:has(#chapter-results:not([hidden])) .chapter-bottom{display:block}.chapter-table{width:100%;border-collapse:collapse;text-align:left;margin-top:3px}.chapter-table th{font-size:9px;color:#8fa3ae;font-weight:400;background:#f6f9fb;padding:9px 8px}.chapter-table td{font-size:10px;padding:11px 8px;border-bottom:1px solid var(--line);line-height:1.9;overflow-wrap:anywhere}.chapter-table th:not(:first-child),.chapter-table td:not(:first-child){text-align:right}.chapter-score{font-size:16px;color:var(--teal-dark);font-weight:500;font-variant-numeric:tabular-nums}.chapter-confidence{display:block;font-size:8px;color:#9baab2}.chapter-message{font-size:9px;color:#8c9ea9;line-height:1.9;margin:12px 0}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;font-size:7px;letter-spacing:.02em;color:#a7b3b9}.page-footer>span:first-child{font-size:6px;letter-spacing:.13em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{max-width:calc(100% - 30px);width:700px;max-height:85vh;border:1px solid var(--line);border-radius:18px;padding:30px;color:var(--ink);background:#fff;box-shadow:0 30px 100px #183c3320}dialog::backdrop{background:#132d3a55;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head h2{font-size:24px}.dialog-intro{font-size:11px;line-height:2;color:#8a9ba3;margin:20px 0}.icon-button{border:1px solid var(--line);background:#fff;border-radius:100%;width:30px;height:30px;color:#8298a1;font-size:20px}.rubric-axis{border-top:1px solid var(--line);padding:16px 0}.rubric-axis summary{font-size:13px;cursor:pointer}.rubric-axis p{font-size:11px;line-height:1.9;color:#8599a2}.rubric-axis ol{padding-left:26px}.rubric-axis li{font-size:11px;line-height:1.9;padding:4px 0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;max-width:90vw;padding:13px 20px;border-radius:10px;color:#fff;background:#204853;font-size:11px;box-shadow:0 7px 30px #163b3d26}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes dot-pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes portrait-enter{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes sparkle{50%{transform:scale(1.15) rotate(18deg);opacity:.6}}
@media(min-width:1700px){:root{--sidebar:210px}.main-shell{padding:0 38px}.dashboard{gap:24px;grid-template-columns:minmax(360px,1.07fr) minmax(360px,1fr) minmax(280px,.79fr)}.intro{height:124px}h1{font-size:32px}.intro-copy{font-size:12px}.panel-head{min-height:80px;padding:0 25px}h2{font-size:15px}.panel-kicker{font-size:8px}.editor-meta{padding:20px 25px 15px;font-size:10px}.writing-area{margin:0 23px}textarea{font-size:14px;padding:22px}textarea::placeholder{font-size:13px}.editor-footer{padding:20px 25px}.primary-button{font-size:14px;padding:15px 20px}.result-body{padding:16px 25px 0}.score-row{padding:17px 0}.axis-name{font-size:13px}.score-value{font-size:25px}.score-detail summary{font-size:10px}.result-toolbar,#result-time{font-size:9px}.result-footnote{font-size:9px}.companion-dialogue{padding:21px;margin:15px 20px 0}.companion-dialogue h2{font-size:21px}.companion-dialogue p{font-size:12px}.dialogue-eyebrow{font-size:7px}.companion-heading{padding:22px}.assistant-badge{font-size:9px}.character-scene{margin:0 14px}.assistant-bottom{font-size:8px;padding:18px 10px}.chapter-header{min-height:73px}.chapter-heading h2{font-size:13px}.chapter-heading p,.chapter-controls>span{font-size:10px}.secondary-button{font-size:11px}.dashboard{height:clamp(540px,calc(100dvh - 315px),810px)}}
@media(max-width:1250px){:root{--sidebar:155px}.sidebar{padding:29px 12px 18px}.brand{font-size:24px;margin-left:4px;gap:8px}.brand-studio{font-size:13px}.brand-mark{width:29px;height:29px;border-radius:9px}.brand-mark svg{width:19px;height:19px}.nav-item{font-size:10px;padding:0 9px;gap:7px}.nav-item .icon{width:15px;height:15px}.nav-label{font-size:6px;margin-left:7px}.soon{font-size:6px;padding:3px}.sidebar-note{padding:16px 8px 23px}.sidebar-note p{font-size:10px}.local-workspace{font-size:7px;margin:0 6px}.main-shell{padding:0 21px}.dashboard{gap:13px;grid-template-columns:minmax(235px,1.08fr) minmax(248px,1fr) minmax(213px,.8fr)}.panel-head{padding:0 16px}.panel-title{gap:8px}.panel-kicker{font-size:6px}.panel-icon{width:30px;height:30px;border-radius:9px}h2{font-size:12px}.result-body{padding-left:15px;padding-right:15px}.axis-name{font-size:10px;gap:6px}.score-value{font-size:19px}.editor-meta{padding-left:16px;padding-right:16px;font-size:8px}.editor-footer{padding-left:16px;padding-right:16px}.companion-dialogue{margin-left:10px;margin-right:10px;padding:14px 12px;min-height:166px}.companion-dialogue h2{font-size:15px}.companion-dialogue p{font-size:9px}.assistant-bottom{font-size:6px}.character-scene{min-height:206px}.scene-caption{font-size:5px;left:8px}.intro-copy{font-size:9px}.chapter-controls{gap:10px}.chapter-controls>span{max-width:190px;font-size:7px}.chapter-heading h2{font-size:10px}.chapter-heading p{font-size:7px}.chapter-panel{padding:0 16px}}
@media(max-width:1050px){:root{--sidebar:76px}.sidebar{padding:26px 12px 18px;align-items:center}.brand{margin:0}.brand>span:last-child,.nav-label,.nav-item>span,.sidebar-note,.local-workspace{display:none}.brand-mark{width:36px;height:36px}.tool-nav{margin-top:42px;width:48px;gap:13px}.nav-item{justify-content:center;padding:0}.nav-item .icon{width:20px;height:20px}.sidebar-bottom{width:100%}.main-shell{padding:0 20px}.dashboard{grid-template-columns:minmax(225px,1fr) minmax(238px,1fr) minmax(202px,.76fr);gap:12px}.intro h1{font-size:24px}.companion-dialogue h2{font-size:14px}.companion-dialogue p{font-size:9px}.companion-heading{padding:18px 13px 10px}.assistant-badge{font-size:6px}.scene-spark{opacity:.5}.scene-caption{display:none}.chapter-controls>span{display:none}.result-actions{gap:9px}.result-actions .secondary-button{padding:8px}.result-footnote{font-size:7px}.result-toolbar{flex-wrap:wrap;gap:0}.character-image{right:-28px}}
@media(max-width:840px){.main-shell{padding:0 18px}.dashboard{height:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.editor-panel,.results-panel{height:560px}.companion-panel{grid-column:1/-1;display:grid;grid-template-columns:230px 1fr;grid-template-rows:34px 166px 30px}.companion-heading{grid-column:2;grid-row:1;padding:16px 18px 0 0}.character-scene{grid-column:1;grid-row:1/4;min-height:0;margin:8px}.character-image{right:0;height:126%;top:-4%}.companion-dialogue{grid-column:2;grid-row:2;min-height:0;margin:14px 18px 0 0;padding:15px 18px;align-self:start}.companion-dialogue:before{top:29px;left:-7px;transform:rotate(-45deg)}.companion-dialogue h2{font-size:17px}.companion-dialogue p{font-size:11px;line-height:1.9}.assistant-bottom{grid-column:2;grid-row:3;font-size:7px;justify-content:flex-start;padding:0 18px 10px 0}.companion-heading>.icon{display:none}.assistant-badge{font-size:7px}.chapter-heading h2{font-size:11px}.chapter-heading p{font-size:8px}.chapter-header{min-height:75px}.intro-copy{max-width:340px}.about-button{font-size:9px;gap:6px}.about-button>span{margin-left:2px}.result-body{padding:14px 18px 0}.axis-name{font-size:11px}.score-row{padding:13px 0}.score-detail summary{font-size:9px}.result-footnote{font-size:8px}.result-toolbar{font-size:8px}.top-meta{gap:10px}.workspace-badge{display:none}.breadcrumb{gap:9px;font-size:9px}.intro{height:117px}}
@media(max-width:600px){:root{--sidebar:0px}.sidebar{position:relative;width:100%;height:63px;flex-direction:row;justify-content:space-between;padding:0 18px;background:#172c3d}.brand{gap:8px}.brand>span:last-child{display:block;font-size:22px}.brand-studio{font-size:12px}.brand-mark{width:30px;height:30px}.tool-nav{display:flex;width:auto;margin:0;gap:8px}.nav-item{width:38px;height:34px;border-radius:7px}.nav-item .icon{width:17px;height:17px}.sidebar-bottom{display:none}.main-shell{margin:0;padding:0 16px}.topbar{height:47px}.breadcrumb{font-size:8px;gap:8px}.breadcrumb>.icon{width:12px;height:12px}.connection{font-size:8px}.intro{height:auto;min-height:135px;align-items:flex-start;padding:21px 0;position:relative}.eyebrow{font-size:6px;letter-spacing:.12em}.intro h1{font-size:23px;margin-top:10px}.intro-copy{font-size:9px;line-height:1.9;max-width:285px}.about-button{font-size:8px;position:absolute;right:0;top:14px;padding:5px 7px;background:transparent;border-color:transparent}.about-button>.icon{display:none}.dashboard{display:flex;flex-direction:column;gap:14px}.editor-panel{height:450px}.results-panel{height:auto;min-height:480px;max-height:770px}.panel-head{min-height:65px;padding:0 19px}h2{font-size:13px}.panel-kicker{font-size:7px}.panel-icon{width:34px;height:34px}.panel-title{gap:11px}.editor-meta{font-size:9px;padding:16px 19px 12px}.editor-footer{padding:15px 19px}.writing-area{margin:0 17px}textarea{font-size:12px}.primary-button{font-size:12px}.editor-footer-note,.send-note{font-size:8px}.result-body{overflow-y:auto;padding:12px 20px 0}.score-row{padding:15px 0}.axis-name{font-size:12px}.score-value{font-size:23px}.score-detail summary{font-size:9px}.result-toolbar{font-size:9px}.result-footnote{font-size:8px}.result-actions{gap:18px}.companion-panel{display:grid;grid-template-columns:38% 1fr;grid-template-rows:35px minmax(160px,auto) 25px;min-height:230px}.character-scene{margin:5px 0 0 5px}.character-image{height:110%;top:0;right:-20px}.character-image[data-side="left"]{left:-15px}.companion-dialogue{padding:13px 12px;margin:10px 10px 8px 0}.companion-dialogue h2{font-size:15px}.companion-dialogue p{font-size:10px}.companion-heading{padding:14px 11px 0 0}.assistant-bottom{font-size:6px;padding-bottom:8px}.character-scene:after{background:linear-gradient(0deg,#f2faf7,transparent 15%);box-shadow:none}.scene-spark{display:none}.chapter-panel{padding:14px 16px 0}.chapter-header{flex-direction:column;align-items:flex-start;gap:12px;padding-bottom:14px}.chapter-controls{align-self:flex-end}.chapter-heading{gap:9px}.chapter-heading h2{font-size:11px}.chapter-heading p{font-size:8px}.chapter-symbol{width:29px;height:29px}.chapter-table th{font-size:8px;padding:8px 4px}.chapter-table td{font-size:9px;padding:10px 4px}.chapter-table th:first-child{width:43%}.chapter-score{font-size:14px}.page-footer{font-size:6px;padding:16px 0}.page-footer>span:first-child{font-size:5px;letter-spacing:.07em}dialog{padding:23px}.dialog-head h2{font-size:21px}.dialog-intro{font-size:10px}.reading-badge{font-size:6px;padding:7px 9px}}
.file-button{display:inline-flex;align-items:center;gap:5px;border:1px solid #d7e7e8;border-radius:5px;background:#f2faf9;color:#518c90;font-size:8px;padding:5px 8px;white-space:nowrap}.file-button:hover:not(:disabled){background:#e4f4ef;border-color:#add5ce}.source-file{margin:-4px 18px 9px;padding:0 3px;color:#7b9aa1;font-size:8px;line-height:1.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.result-actions{flex-wrap:wrap;gap:8px 12px}.result-actions>.secondary-button{font-size:9px;padding:8px 10px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Two focused screens: readable input first, spacious results after scoring. */
:root{--sidebar:200px}
body{font-size:15px}.sidebar{padding-top:30px}.nav-item{font-size:14px;gap:10px;height:51px}.nav-label{font-size:9px}.sidebar-note p{font-size:13px}.sidebar-note>span,.local-workspace{font-size:10px}.soon{font-size:8px}.topbar{height:68px}.breadcrumb{font-size:13px}.connection{font-size:12px}.workspace-badge{font-size:10px}.intro{height:auto;min-height:128px;padding:24px 0;gap:20px}.eyebrow{font-size:10px}.intro h1{font-size:31px}.intro-copy{font-size:14px;max-width:760px;line-height:1.9}.about-button{font-size:13px;padding:11px 14px}.about-button>.icon{width:17px;height:17px}.view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:45px;margin:0 0 17px}.view-steps{display:flex;align-items:center;gap:14px;font-size:13px;color:#9aaab2;line-height:1.7}.view-steps>span{display:flex;align-items:center;gap:7px}.view-steps b{font-size:11px;background:#e7edef;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-weight:500;color:#90a4ad}.view-steps .step-arrow{font-size:14px;color:#b2c5cc}body[data-view="input"] .input-step,body[data-view="results"] .results-step{color:var(--teal-dark);font-weight:600}body[data-view="input"] .input-step b,body[data-view="results"] .results-step b{background:#d9f1eb;color:#248e86}.main-shell>.notice{font-size:13px;line-height:1.9;margin:0 0 16px;padding:11px 14px}.dashboard{height:auto!important;min-height:0;align-items:stretch}body[data-view] .dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,330px);gap:24px}body[data-view="input"] .results-panel,body[data-view="input"] .chapter-panel{display:none}body[data-view="results"] .editor-panel{display:none}.panel-head{min-height:83px;padding:0 25px}.panel-kicker{font-size:10px;margin-bottom:5px}.panel-title{gap:13px}.panel-icon{width:40px;height:40px}.panel-head h2{font-size:19px}.text-button{font-size:13px}.secondary-button{font-size:13px;padding:10px 14px}.editor-panel{height:min(690px,max(540px,calc(100dvh - 320px)));min-height:540px}.editor-meta{font-size:12px;padding:18px 25px 14px}.file-button{font-size:12px;padding:8px 11px}.source-file{font-size:12px;margin:0 25px 12px}.writing-area{margin:0 24px;min-height:180px}.writing-area textarea{font-size:17px;line-height:1.95;padding:23px 24px}.writing-area textarea::placeholder{font-size:16px;line-height:2.1}.editor-footer{padding:20px 25px 19px}.primary-button{font-size:16px;padding:15px 22px}.editor-footer-note,.send-note,.shortcut{font-size:11px}.editor-footer-note{margin-top:13px}.editor-footer-note .icon{width:14px;height:14px}.primary-button>.icon{width:18px;height:18px}.results-panel{height:auto;min-height:540px;max-height:none;overflow:visible}.result-body{overflow:visible;min-height:0;padding:20px 24px 0}.result-toolbar{font-size:12px;margin-bottom:15px;line-height:1.9;gap:14px;flex-wrap:wrap}#result-time{font-size:12px}.scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.score-row{border:1px solid #e4ecee;border-radius:12px;background:linear-gradient(130deg,#fcfefe,#f8fbfc);padding:18px 17px;min-width:0}.score-line{gap:8px;align-items:center}.axis-name{font-size:15px;line-height:1.7;gap:8px;min-width:0}.axis-index{font-size:10px}.score-value{font-size:29px;letter-spacing:-.7px;white-space:nowrap}.score-value small{font-size:10px}.score-value.empty{font-size:23px}.meter{height:6px;gap:4px;margin:15px 0 0}.score-detail{margin:11px 0 0}.score-detail summary{font-size:11px;line-height:1.9}.confidence-flag{font-size:10px;margin-left:6px}.score-detail p{font-size:13px;line-height:1.95}.distribution span{font-size:11px;padding:4px 6px}.result-actions{gap:10px 14px;padding:21px 0}.result-actions>.secondary-button{font-size:13px;padding:10px 13px}.result-footnote{font-size:11px;line-height:1.9;padding:15px 0}.companion-panel{display:flex;flex-direction:column;grid-template-columns:none;grid-template-rows:none;min-height:540px;max-height:760px;align-self:start}.companion-heading{padding:20px 18px 12px}.assistant-badge{font-size:10px}.character-scene{flex:1;min-height:245px;margin:0 10px}.character-image{height:108%;top:-4%;right:-16px}.companion-dialogue{padding:18px 18px 17px;margin:12px 16px 0;min-height:185px;align-self:stretch}.companion-dialogue h2{font-size:22px;line-height:1.7}.companion-dialogue p{font-size:14px;line-height:1.95;color:#6e8d85}.dialogue-eyebrow{font-size:9px;margin-bottom:10px}.assistant-bottom{font-size:9px;padding:15px 10px;line-height:1.8}.chapter-panel{margin-top:22px;padding:0 24px}.chapter-header{min-height:88px;gap:20px}.chapter-heading h2{font-size:16px}.chapter-heading p{font-size:12px;margin-top:7px}.chapter-controls>span{font-size:11px;max-width:230px}.chapter-symbol{width:38px;height:38px}.chapter-table th{font-size:13px;padding:13px 10px}.chapter-table td{font-size:14px;padding:15px 10px}.chapter-score{font-size:23px}.chapter-confidence{font-size:11px}.chapter-message,.chapter-bottom{font-size:12px}.page-footer{font-size:10px;line-height:1.8;padding:18px 0}.page-footer>span:first-child{font-size:9px}.dialog-intro,.rubric-axis p,.rubric-axis li{font-size:14px}.rubric-axis summary{font-size:16px}.toast{font-size:14px}
@media(min-width:1700px){body[data-view] .dashboard{grid-template-columns:minmax(0,1fr) 370px}.scores{gap:18px}.score-row{padding:22px}.axis-name{font-size:17px}.score-value{font-size:34px}.score-detail summary{font-size:13px}}
@media(max-width:1300px){.main-shell{padding:0 22px}.scores{grid-template-columns:1fr}.score-row{padding:17px 19px}.axis-name{font-size:16px}.score-detail summary{font-size:12px}.companion-dialogue h2{font-size:21px}.companion-dialogue p{font-size:14px}.results-panel .panel-head h2{font-size:18px}.chapter-controls>span{display:none}}
@media(max-width:899px){:root{--sidebar:76px}.sidebar .nav-item{justify-content:center}.sidebar .brand>span:last-child{display:none}body[data-view] .dashboard{grid-template-columns:1fr;gap:22px}.intro h1{font-size:29px}.intro-copy{font-size:14px;max-width:570px}.scores{grid-template-columns:repeat(2,minmax(0,1fr))}.score-line{align-items:flex-start}.axis-name{font-size:15px}.score-value{font-size:28px}.score-detail summary{font-size:11px}.dashboard .companion-panel{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:42px minmax(200px,auto) 35px;min-height:285px;max-height:none}.companion-heading{grid-column:2;grid-row:1;padding:18px 18px 0 0}.character-scene{grid-column:1;grid-row:1/4;min-height:0;margin:8px}.companion-dialogue{grid-column:2;grid-row:2;min-height:0;margin:12px 18px 0 0;align-self:stretch}.assistant-bottom{grid-column:2;grid-row:3;justify-content:flex-start;font-size:10px;padding:9px 15px 10px 0}.companion-dialogue h2{font-size:23px}.companion-dialogue p{font-size:15px}.character-image{height:110%;top:-2%;right:-14px}.editor-panel{min-height:550px;height:600px}.results-panel{min-height:0}.chapter-heading h2{font-size:15px}.chapter-heading p{font-size:12px}.chapter-header{flex-wrap:wrap;padding:15px 0}.chapter-controls{margin-left:auto}.result-body{padding:20px 22px 0}}
@media(max-width:700px){.scores{grid-template-columns:1fr}.score-line{align-items:center}.axis-name{font-size:17px}.score-value{font-size:32px}.score-detail summary{font-size:13px}.intro{padding:24px 0 20px;min-height:148px;align-items:flex-start}.intro h1{font-size:26px;line-height:1.6}.intro-copy{font-size:13px;max-width:100%}.about-button{font-size:12px;padding:7px 9px;position:absolute;right:0;top:10px}.intro{position:relative}.intro .eyebrow{font-size:8px;padding-right:140px;min-height:15px}.about-button>.icon{display:none}.view-toolbar{align-items:flex-start;flex-wrap:wrap;gap:13px;margin-bottom:18px}.view-steps{font-size:11px;gap:9px}.view-steps b{width:24px;height:24px;font-size:10px}.view-toolbar>.secondary-button{margin-left:auto;font-size:13px}.panel-head{padding:0 20px;min-height:77px}.panel-head h2{font-size:18px}.editor-meta{padding:17px 20px 13px;font-size:11px}.file-button{font-size:12px}.writing-area{margin:0 18px}.writing-area textarea{font-size:17px;padding:19px}.writing-area textarea::placeholder{font-size:15px}.editor-footer{padding:18px 20px}.primary-button{font-size:16px}.editor-footer-note,.send-note,.shortcut{font-size:10px}.editor-panel{height:600px;min-height:550px}.result-toolbar{font-size:12px}#result-time{font-size:12px}.result-body{padding:18px 19px 0}.result-actions>.secondary-button{font-size:13px}.text-button{font-size:13px}.result-footnote{font-size:11px}.dashboard .companion-panel{grid-template-columns:35% minmax(0,1fr);grid-template-rows:40px minmax(210px,auto) 39px;min-height:290px}.companion-dialogue{padding:15px 14px;margin:9px 11px 0 0}.companion-dialogue h2{font-size:19px}.companion-dialogue p{font-size:13px;line-height:1.95}.dialogue-eyebrow{font-size:8px}.assistant-bottom{font-size:8px;padding:9px 9px 10px 0}.assistant-badge{font-size:9px}.character-image{height:108%;top:0;right:-24px}.chapter-panel{padding:0 18px}.chapter-heading{gap:9px}.chapter-heading h2{font-size:14px}.chapter-heading p{font-size:11px}.chapter-table th{font-size:11px;padding:10px 5px}.chapter-table td{font-size:12px;padding:12px 5px}.chapter-score{font-size:20px}.chapter-confidence{font-size:10px}.chapter-message,.chapter-bottom{font-size:11px}.page-footer{font-size:8px}.page-footer>span:first-child{font-size:7px}.breadcrumb{font-size:11px;gap:8px}.connection{font-size:10px}.source-file{font-size:11px;margin:0 20px 10px}.scale-tag{font-size:16px}.main-shell>.notice{font-size:13px}}
@media(max-width:600px){:root{--sidebar:0px}.sidebar .brand>span:last-child{display:block}.topbar{height:54px}.main-shell{margin-left:0;padding:0 17px}.nav-item{height:36px}.brand-studio{font-size:13px}.intro h1{font-size:25px}.companion-dialogue h2{font-size:18px}.companion-dialogue p{font-size:13px}.sidebar .nav-item>span{display:none}.workspace-badge{display:none}}
/* Compact instruments and guided motion. */
.scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.score-row{padding:14px 10px 12px;min-width:0;text-align:center;border:1px solid #e3eeee;border-radius:14px;background:linear-gradient(155deg,#fff,#f6fbfa)}
.score-gauge{width:74px;height:74px;position:relative;margin:0 auto 6px}.score-gauge svg{width:100%;height:100%;transform:rotate(-90deg)}.gauge-track{stroke:#e3eeed}.gauge-fill{stroke:#20aca9;stroke-linecap:round}.score-gauge .score-value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:23px}.score-gauge .score-value small{margin:0;font-size:9px;letter-spacing:.08em}.score-line{justify-content:center;min-height:36px}.axis-name{font-size:13.5px;line-height:1.4;justify-content:center}.axis-index{display:none}.score-detail{margin:5px 0 0;text-align:left}.score-detail summary{font-size:11px;text-align:center}.score-detail summary:after{float:none}.score-detail p{font-size:12px}.confidence-flag{display:inline-block;font-size:9.5px;margin-left:3px}.result-body{overflow:visible}.result-actions{flex-wrap:wrap}
.chapter-chart{padding:8px 0 14px}.chart-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.chart-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:13px}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:18px;height:3px;border-radius:3px;background:#1fb8b3}.chart-legend .legend-natural_voice i{background:#9291e4}.chart-interactive{font-size:12px;color:#698e98}.chart-scroll{overflow-x:auto;padding:0 4px 8px 22px;scrollbar-width:thin}.chart-plot{position:relative;height:230px;background:linear-gradient(180deg,#f0faf977,#f6f8ff33);border-radius:10px}.chart-plot>svg{width:100%;height:100%;overflow:visible}.chart-y-tick{position:absolute;left:-22px;font-size:11px;color:#8d9fa9;transform:translateY(-50%)}.chart-gridline{stroke:#dce9ec;stroke-dasharray:3 6}.chapter-curve{stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:curve-arrive 1.2s ease both}.curve-natural_voice{animation-delay:.15s}.chart-dot-halo{opacity:0}.chapter-dot.is-selected .chart-dot-halo{opacity:.6}.chart-point-target{cursor:pointer}.chart-indices{display:grid;margin-top:8px;gap:8px}.chart-chapter-button{border:1px solid transparent;border-radius:8px;background:transparent;color:#7b929c;padding:9px 2px;font-size:13px}.chart-chapter-button:hover{background:#f1f8f7}.chart-chapter-button[aria-pressed=true]{background:#e4f5f1;border-color:#b3dfd6;color:#147c79;font-weight:600}.chart-chapter-focus{display:flex;gap:24px;justify-content:space-between;align-items:center;margin:16px 0 0;padding:18px 20px;border:1px solid #dcecea;border-radius:12px;background:#f8fcfb}.chart-focus-heading{display:flex;align-items:center;gap:12px;min-width:0}.chart-focus-number{font-size:29px;font-weight:300;color:#6caaa5}.chart-focus-heading h3{font-size:16px;line-height:1.6;margin:0;overflow-wrap:anywhere}.chart-focus-values{display:flex;gap:25px;flex-shrink:0}.chart-value-line{display:flex;gap:14px;align-items:center;font-size:13px}.chart-value-line strong{font-size:25px;font-weight:600;color:#159d98;font-variant-numeric:tabular-nums}.value-natural_voice strong{color:#8381ce}.chart-value-detail{display:block;font-size:11px;color:#81949b;margin-top:4px}.chart-caption{font-size:11px;line-height:1.9;color:#8b9da5;margin:12px 0 0}.chapter-table-details{margin-bottom:15px}.chapter-table-details>summary{font-size:13px;color:#67878b;cursor:pointer;padding:12px 0}.chapter-table{margin-bottom:10px}
body[data-next-action=import] #file-button,body[data-next-action=score] #score-button,body[data-next-action=chapters] #chapter-button,body[data-next-action=review] #return-results-button,body[data-next-action=edit] #back-editor-button{animation:action-breathe 3s ease-in-out infinite}
body[data-next-action=explore] .chart-chapter-button[aria-pressed=true]{animation:action-breathe 3.5s ease-in-out infinite}
body [id$=button]:hover,body [id$=button]:focus-visible{animation-play-state:paused}
@keyframes action-breathe{0%,100%{box-shadow:0 0 0 0 #24b8a900}50%{box-shadow:0 0 0 5px #24b8a91c,0 5px 18px #24b8a91a}}
@keyframes curve-arrive{from{stroke-dashoffset:1;opacity:.25}to{stroke-dashoffset:0;opacity:1}}
@media(min-width:1700px){.score-gauge{width:104px;height:104px}.score-gauge .score-value{font-size:32px}.score-row{padding:16px 12px}.axis-name{font-size:16px}}
@media(max-width:1300px){.scores{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.score-row{padding:12px 8px}.axis-name{font-size:14px}.chart-chapter-focus{flex-wrap:wrap}.chart-focus-values{flex-wrap:wrap}}
@media(max-width:700px){.scores{grid-template-columns:repeat(2,minmax(0,1fr))}.score-gauge{width:88px;height:88px}.axis-name{font-size:14px}.score-detail summary{font-size:11px}.result-body{padding:16px 14px 0}.chart-focus-values{gap:16px}.chart-chapter-focus{padding:14px;gap:12px}.chart-focus-heading h3{font-size:15px}.chart-plot{height:210px}.chart-legend{font-size:12px;gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Bring the ponytail assistant closer, keeping the face and headset in frame. */
.character-image{height:175%;top:0;right:-34px}.character-image[data-side=left]{left:-25px;right:auto}
@media(max-width:899px){.dashboard .companion-panel{grid-template-columns:43% minmax(0,1fr);grid-template-rows:42px minmax(250px,auto) 39px;min-height:330px}.character-image{height:175%;top:0;right:-35px}.companion-dialogue h2{font-size:21px}}
@media(max-width:600px){.dashboard .companion-panel{grid-template-columns:42% minmax(0,1fr)}.character-image{right:-39px}.companion-dialogue{padding:14px 11px}.companion-dialogue h2{font-size:18px}}
@media(max-width:700px){.dashboard .companion-panel{display:flex;flex-direction:column;min-height:0}.companion-heading{padding:18px 20px 10px}.character-scene{flex:none;min-height:300px;height:300px;margin:0 12px}.character-image{height:175%;right:calc(50% - 152px);top:0}.character-image[data-side=left]{left:calc(50% - 185px);right:auto}.companion-dialogue{margin:12px 16px 0;padding:18px;min-height:0}.companion-dialogue h2{font-size:22px}.companion-dialogue p{font-size:14px}.assistant-bottom{justify-content:center;padding:15px;font-size:10px}}
/* ZZZ × Honkai 3rd: Deep carbon base, electric cyan & acid volt accents, kinetic spring motion, operator HUD stage. */
:root{--paper:#0b0f18;--white:#141d2d;--ink:#f2f7fc;--muted:#93aac0;--line:#26364f;--teal:#00f0ff;--teal-dark:#68f7ff;--volt:#d8ff1e;--violet:#b592ff;--mint:#182b3d;--navy:#070a11;--spring:cubic-bezier(.22,1.35,.36,1);color-scheme:dark}
body{background:var(--paper);color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#070a11 0%,#0c121e 100%);border-right:1px solid #1f2e46;box-shadow:6px 0 28px #00000055}
.brand-mark{background:linear-gradient(135deg,#00f0ff 0%,#d8ff1e 100%);color:#061018;transform:skewX(-6deg);box-shadow:0 0 18px #00f0ff55;transition:transform .28s var(--spring),box-shadow .28s}
.brand:hover .brand-mark{transform:skewX(-6deg) scale(1.1) rotate(-4deg);box-shadow:0 0 24px #d8ff1e88}
.brand-studio{color:#00f0ff;font-weight:600}
.nav-label{color:#65809e;letter-spacing:.16em}
.nav-item{position:relative;overflow:hidden;border:1px solid transparent;transition:transform .25s var(--spring),background .2s,color .2s,border-color .2s}
.nav-item.active{background:linear-gradient(95deg,#00f0ff22 0%,#d8ff1e12 100%);color:#f5fffe;border-color:#00f0ff55;box-shadow:inset 4px 0 0 #d8ff1e,0 6px 20px #00f0ff14}
.nav-active-dot{background:#d8ff1e;box-shadow:0 0 8px #d8ff1e}
.soon{background:#d8ff1e1a;border-color:#d8ff1e55;color:#d8ff1e;transform:skewX(-10deg);font-weight:700}
.sidebar-note{background:linear-gradient(145deg,#111a2a,#0d1421);border:1px solid #22324a;border-radius:12px;padding:16px 14px;margin-bottom:16px}
.sidebar-note>.icon{color:#d8ff1e;fill:#d8ff1e}
.local-dot{background:#00f0ff;box-shadow:0 0 8px #00f0ff}
.main-shell{background:radial-gradient(#ffffff08 1px,transparent 1px) 0 0/20px 20px,radial-gradient(ellipse at 88% 4%,#00f0ff21,transparent 45%),radial-gradient(ellipse at 12% 90%,#b592ff18,transparent 50%),linear-gradient(155deg,#0e1420 0%,#090d15 100%)}
.topbar{border-color:#223149}
.breadcrumb,.breadcrumb strong,.connection,.intro-copy,.editor-meta,.editor-footer-note,.send-note,.result-toolbar,.result-footnote,.chapter-heading p,.chapter-controls>span,.chapter-bottom,.page-footer{color:#9ab0c7}
.breadcrumb strong{color:#e6f1fa;font-weight:600}
.eyebrow,.panel-kicker,.dialogue-eyebrow{color:#d8ff1e;letter-spacing:.16em;font-weight:700;text-shadow:0 0 12px #d8ff1e26}
.workspace-badge{background:linear-gradient(135deg,#162336,#101928);border-color:#00f0ff55;color:#7cf7ff;font-weight:700;transform:skewX(-10deg);box-shadow:0 0 12px #00f0ff1a}
.connection.ready i{background:#d8ff1e;box-shadow:0 0 0 3px #d8ff1e2b,0 0 10px #d8ff1e}
.intro h1{color:#f5f9ff;text-shadow:0 4px 24px #00000066}
.intro h1>span{background:linear-gradient(95deg,#00f0ff 0%,#6effd8 52%,#d8ff1e 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.view-steps{color:#88a0b9}
.view-steps b{background:#182437;border:1px solid #2d415f;color:#9eb5cd;border-radius:6px;transform:skewX(-10deg);font-weight:800;transition:transform .3s var(--spring),background .25s,color .25s,box-shadow .25s}
body[data-view="input"] .input-step,body[data-view="results"] .results-step{color:#f4fbff;font-weight:700}
body[data-view="input"] .input-step b,body[data-view="results"] .results-step b{background:linear-gradient(135deg,#d8ff1e,#00f0ff);border-color:#d8ff1e;color:#07121a;transform:skewX(-10deg) scale(1.08);box-shadow:0 0 16px #00f0ff55}
.panel{position:relative;background:linear-gradient(160deg,#162133 0%,#101726 100%);border:1px solid #2b3e5b;box-shadow:0 18px 42px #00000066,inset 0 1px #ffffff12;animation:panel-in .38s var(--spring) both}
.panel-head{background:linear-gradient(90deg,#1a273d 0%,#141e30 100%);border-bottom:1px solid #2b3f5c;position:relative}
.panel-head::after{content:"";position:absolute;left:24px;bottom:-1px;width:56px;height:2px;background:linear-gradient(90deg,#00f0ff,#d8ff1e)}
.panel-icon,.panel-icon.result-icon,.chapter-symbol{background:linear-gradient(135deg,#1d314a,#152336);border:1px solid #00f0ff66;color:#00f0ff;box-shadow:0 0 14px #00f0ff22;transform:skewX(-6deg)}
.writing-area{background:linear-gradient(155deg,#0b101b,#111928);border:1px solid #2d4260;box-shadow:inset 0 4px 18px #00000066;transition:border-color .25s,box-shadow .25s}
.writing-area:focus-within{border-color:#00f0ff;box-shadow:0 0 0 3px #00f0ff24,0 0 24px #00f0ff1f,inset 0 4px 18px #00000066}
.writing-area textarea{color:#eef5fc}
.writing-area textarea::placeholder{color:#6f87a2}
.editor-watermark{color:#1b283d}
.editor-watermark span{color:#58728f}
.format-pill{background:#1d2c42;color:#b8d0e6}
.source-file{color:#7ef5ff}
.about-button,.secondary-button,.file-button,.gadget-key,.gadget-pill-button{position:relative;overflow:hidden;border-radius:9999px;background:linear-gradient(135deg,#1b2940,#152033);border:1px solid #354d6f;color:#e3f2fa;font-weight:700;letter-spacing:.02em;transition:transform .26s var(--spring),border-color .2s,box-shadow .2s,background .2s,color .2s}
.about-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.file-button:hover:not(:disabled){background:linear-gradient(135deg,#223552,#1a2940);border-color:#00f0ff;color:#fff;transform:translateY(-2px) scale(1.03);box-shadow:0 6px 20px #00f0ff33,0 0 14px #00f0ff22}
.about-button:active:not(:disabled),.secondary-button:active:not(:disabled),.file-button:active:not(:disabled),.gadget-key:active:not(:disabled),.gadget-pill-button:active:not(:disabled){transform:translateY(0) scale(.97)}
.gadget-key{padding:6px 15px;font-size:11px;background:#152033;border-color:#2e4466;color:#8faec9}
.gadget-key:hover:not(:disabled){background:#2b1822;border-color:#ff5566;color:#ff8595;transform:translateY(-2px) scale(1.05);box-shadow:0 0 18px #ff556644}
.gadget-pill-button{padding:6px 15px;font-size:11px;background:#162438;border-color:#31496e;color:#9bb7d4}
.gadget-pill-button:hover:not(:disabled){background:#2a1b26;border-color:#ff5577;color:#ff8ea0;transform:translateY(-2px) scale(1.04);box-shadow:0 0 16px #ff55773d}
.gadget-chip{background:linear-gradient(135deg,#162338,#111a2b);border-color:#38537a;color:#cbe0f8;padding:9px 15px}
.gadget-reload{background:linear-gradient(135deg,#172b44,#101c2d);border-color:#00f0ff77;color:#6dfff7;font-weight:800;padding:9px 17px}
.gadget-reload:hover:not(:disabled){background:#00f0ff!important;border-color:#00f0ff!important;color:#051119!important;box-shadow:0 0 24px #00f0ff77!important}
.text-button,.text-button.muted{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:9999px;background:#152236;border:1px solid #2e466b;color:#8eb3d6;font-size:11px;font-weight:700;padding:6px 13px;transition:all .2s var(--spring)}
.text-button:hover:not(:disabled){background:#1e3352;border-color:#00f0ff;color:#fff;transform:translateY(-2px) scale(1.04);box-shadow:0 0 14px #00f0ff33;text-decoration:none}
.primary-button{position:relative;overflow:hidden;border-radius:9999px;background:linear-gradient(105deg,#00f0ff 0%,#49f7c5 55%,#d8ff1e 100%);border:none;color:#06141c;font-weight:900;font-size:16px;letter-spacing:.04em;box-shadow:0 8px 28px #00f0ff44,0 0 18px #d8ff1e33;transition:transform .28s var(--spring),box-shadow .28s,filter .2s}
.primary-button::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#ffffff77 50%,transparent 75%);transform:translateX(-120%) skewX(-20deg);transition:transform .55s ease;pointer-events:none}
.primary-button:hover:not(:disabled){transform:translateY(-3px) scale(1.025);box-shadow:0 12px 34px #00f0ff66,0 0 22px #d8ff1e66;filter:brightness(1.05)}
.primary-button:hover:not(:disabled)::before{transform:translateX(120%) skewX(-20deg)}
.primary-button:active:not(:disabled){transform:translateY(0) scale(.98)}
.result-body{background:linear-gradient(160deg,#141e2e,#0c131f)}
/* ZZZソリッド立体ハードウェア装甲プレート */
.score-row{position:relative;background:linear-gradient(155deg,#162030 0%,#0d1522 100%);border:1px solid #23374e;border-radius:12px;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,0 100%);box-shadow:0 10px 26px rgba(0,0,0,0.55),inset 0 1px 0 rgba(255,255,255,0.12),inset -1px 0 0 rgba(255,255,255,0.04);padding:10px 8px 8px;min-width:0;text-align:center;transition:transform .28s var(--spring),border-color .25s,box-shadow .25s;animation:score-card-in .48s var(--spring) backwards;animation-delay:calc(var(--i,0) * 50ms)}
.score-row::before{content:"";position:absolute;top:0;left:0;height:2.5px;width:36px;background:linear-gradient(90deg,#00f0ff,transparent);transition:width .3s ease}
.score-row:hover{transform:translateY(-3px) scale(1.015);border-color:#00f0ff88;box-shadow:0 16px 36px rgba(0,0,0,0.65),0 0 18px rgba(0,240,255,0.22)}
.score-row.is-high{border-color:#d8ff1e55;box-shadow:0 10px 26px rgba(0,0,0,0.55),0 0 16px rgba(216,255,30,0.1)}
.score-row.is-high::before{width:50px;background:linear-gradient(90deg,#d8ff1e,#00f0ff)}
/* 脱・茶色化：背景はダークスレートのまま、上部ラインと右肩LEDでスマートに注意喚起 */
.score-row.needs-review{border-color:#f59e0b55}
.score-row.needs-review::before{width:36px;background:linear-gradient(90deg,#f59e0b,transparent)}
.conf-warn-badge{font-size:11px;margin-left:4px;cursor:help;vertical-align:middle;filter:drop-shadow(0 0 4px #ff9f1cbb)}
/* 確信度の縦型ミニセグメントメーター（右肩LED） */
.conf-segment-meter{position:absolute;right:9px;top:9px;z-index:3;display:flex;flex-direction:column;gap:2.5px;padding:3px 3.5px;background:#09101ab3;border:1px solid #1c2b3e;border-radius:4px;box-shadow:inset 0 1px 0 rgba(255,255,255,0.06)}
.conf-cell{display:block;width:12px;height:2.5px;border-radius:1px;background:#131f2f;border:1px solid #1a2a3e;transition:background .2s,box-shadow .2s}
.conf-cell.is-active{background:linear-gradient(90deg,#38bdf8,#a7f3d0);border-color:#38bdf8;box-shadow:0 0 5px rgba(56,189,248,0.5)}
.score-row.needs-review .conf-cell.is-active{background:linear-gradient(90deg,#fbbf24,#f59e0b);border-color:#f59e0b;box-shadow:0 0 5px rgba(245,158,11,0.5)}
.gauge-track{stroke:#1f2e44}
.gauge-fill{stroke:#00f0ff;filter:drop-shadow(0 0 5px #00f0ff66)}
.score-row.is-high .gauge-fill{stroke:#b8ff2c;filter:drop-shadow(0 0 7px #d8ff1e88)}
.score-gauge .score-value,.score-value,#result-time,.chapter-score{color:#7af8ff;text-shadow:0 0 14px #00f0ff33}
.score-row.is-high .score-gauge .score-value{color:#e2ff44;text-shadow:0 0 16px #d8ff1e44}
/* 6軸総合セグメントブロックゲージ（ZZZメカニカル大型HUD） */
.total-rank-module{display:flex;align-items:center;gap:14px;padding:8px 18px;background:linear-gradient(135deg,#0e1728,#0a111d);border:1.5px solid #283e5e;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.08)}
.total-rank-meta{display:flex;align-items:baseline;gap:8px}
.total-rank-label{font-size:11px;font-weight:900;letter-spacing:.15em;color:#00f0ff;text-shadow:0 0 10px rgba(0,240,255,0.4)}
.total-rank-val{font-size:26px;font-weight:900;color:#d8ff1e;font-variant-numeric:tabular-nums;text-shadow:0 0 16px rgba(216,255,30,0.6)}
.total-segment-gauge{display:flex;align-items:center;gap:3.5px;padding:4px 8px;background:#070d17;border:1px solid #1a2b42;border-radius:6px;transform:skewX(-10deg)}
.segment-cell{display:block;width:6px;height:18px;border-radius:1.5px;background:#131e30;border:1px solid #1c2b42;transition:background .25s var(--spring),box-shadow .25s}
.segment-cell.is-active{background:linear-gradient(180deg,#00f0ff 0%,#d8ff1e 100%);border-color:#00f0ff;box-shadow:0 0 10px #00f0ff88;animation:segment-pop .32s var(--spring) backwards;animation-delay:calc(var(--ci,0) * 20ms)}
@keyframes segment-pop{0%{opacity:.2;transform:scaleY(.4)}100%{opacity:1;transform:scaleY(1)}}
.score-value small,.score-detail summary,.score-detail p,.score-detail summary:after{color:#9fb6cd}
.score-detail summary:hover{color:#00f0ff}
.confidence-flag{background:#ff9f1c26;border:1px solid #ff9f1c77;color:#ffc971;font-weight:700}
.distribution span{background:#21324b;border:1px solid #324a6d;color:#d6e8f8}
.result-footnote{border-color:#263750}
.notice{background:#2f2618;border-color:#ff9f1c88;color:#ffd89a}
.notice.progress{background:linear-gradient(90deg,#112936,#17243a);border-color:#00f0ff88;color:#98faff;box-shadow:0 0 20px #00f0ff22}
.empty-note{color:#8fa8c2}
.chart-plot{background:linear-gradient(180deg,#162438,#0f1826);border:1px solid #283c59}
.chart-gridline{stroke:#293d5a}
.chart-y-tick,.chart-interactive,.chart-caption,.chapter-message,.chart-value-detail{color:#9ab2ca}
.curve-engagement{stroke:#00f0ff;filter:drop-shadow(0 0 6px #00f0ff66)}
.curve-natural_voice{stroke:#b592ff;filter:drop-shadow(0 0 6px #b592ff66)}
.dot-engagement circle{stroke:#00f0ff}
.dot-natural_voice circle{stroke:#b592ff}
.chart-legend i{background:#00f0ff;box-shadow:0 0 8px #00f0ff}
.chart-legend .legend-natural_voice i{background:#b592ff;box-shadow:0 0 8px #b592ff}
.chart-chapter-button{color:#b0c7de;transition:transform .24s var(--spring),background .2s,color .2s,border-color .2s}
.chart-chapter-button:hover:not(:disabled){background:#1f314b;color:#fff;transform:translateY(-2px)}
.chart-chapter-button[aria-pressed=true]{background:linear-gradient(135deg,#00f0ff2b,#d8ff1e22);color:#e6ff55;border-color:#d8ff1e88;transform:translateY(-2px) scale(1.04);box-shadow:0 4px 14px #00f0ff26}
.chart-chapter-focus{background:linear-gradient(125deg,#1a2940,#131e30);border-color:#365175;box-shadow:inset 4px 0 0 #00f0ff}
.chart-focus-number{color:#d8ff1e;font-weight:700;text-shadow:0 0 14px #d8ff1e33}
.chart-value-line strong{color:#66f7ff}
.value-natural_voice strong{color:#ccb2ff}
.chapter-table-details>summary{color:#7af8ff;font-weight:600}
.chapter-table th{background:#1a283d;color:#bad0e6}
.chapter-table td{border-color:#283b57}
.chapter-confidence{color:#97b0c8}
dialog{background:linear-gradient(160deg,#162235,#0f1726);border:1px solid #00f0ff66;color:var(--ink);box-shadow:0 30px 90px #000000aa,0 0 35px #00f0ff22}
.dialog-intro,.rubric-axis p,.rubric-axis li{color:#b6cce0}
.rubric-axis{border-color:#283b56}
.icon-button{background:#1d2c43;border-color:#375073;color:#d6e8f8;transition:transform .25s var(--spring),border-color .2s}
.icon-button:hover{border-color:#d8ff1e;color:#d8ff1e;transform:rotate(90deg) scale(1.08)}
.toast{background:linear-gradient(105deg,#00f0ff,#d8ff1e);color:#06121a;font-weight:800;box-shadow:0 10px 32px #00f0ff55}
.scale-tag{color:#9ab2ca}
/* Operator Stage: Seamless illustration frame + overlapping glassmorphic HUD comms box */
.companion-panel,.companion-panel[data-mood]{background:linear-gradient(160deg,#18263b 0%,#0d1422 75%);border:1px solid #355273;box-shadow:0 18px 48px #00000077,inset 0 1px #00f0ff33}
.companion-panel[data-mood=celebrate]{border-color:#d8ff1e88;box-shadow:0 18px 48px #00000077,0 0 28px #d8ff1e22}
.companion-panel[data-mood=trouble]{border-color:#ff9f1c88}
.assistant-badge{color:#d8ff1e;letter-spacing:.15em;font-weight:700}
.assistant-badge>span{background:#d8ff1e;box-shadow:0 0 8px #d8ff1e;width:6px;height:6px}
.companion-heading>.icon{color:#00f0ff}
.character-scene{background:radial-gradient(#0099aa18 1px,transparent 1px) 0 0/14px 14px,#fff;border:1px solid #00f0ff66;box-shadow:0 0 32px #00f0ff1f,inset 0 0 0 1px #ffffff;border-radius:14px}
.character-scene::before{content:"";position:absolute;left:0;right:0;top:-10%;height:3px;background:linear-gradient(90deg,transparent,#00f0ff,#d8ff1e,#00f0ff,transparent);box-shadow:0 0 16px 3px #00f0ffaa;z-index:4;opacity:0;pointer-events:none}
body.busy .character-scene::before{opacity:1;animation:laser-scan 2.1s ease-in-out infinite}
.character-scene:after{background:linear-gradient(0deg,#ffffff 0%,transparent 15%);box-shadow:none}
.character-image{height:108%;top:-4%;right:-16px;left:auto;clip-path:inset(1.2% 0.7% 1.2% 10%);mix-blend-mode:normal;filter:none;animation:companion-breathe 5.2s ease-in-out infinite}
.character-image.portrait-switch{animation:portrait-pop .44s var(--spring),companion-breathe 5.2s ease-in-out .44s infinite}
.character-image[data-side=left]{left:-16px;right:auto;clip-path:inset(1.2% 12% 1.2% 0.7%)}
.companion-panel[data-mood=celebrate] .scene-orbit{left:auto;right:-68px;border-color:#1599a666}
.companion-panel[data-mood=celebrate] .orbit-two{left:auto;right:-94px}
.companion-panel[data-mood=celebrate] .scene-caption{left:auto;right:13px}
.companion-panel[data-mood=celebrate] .spark-one{left:auto;right:16px;color:#00b8c8}
.companion-panel[data-mood=celebrate] .spark-two{left:auto;right:44px}
.scene-orbit{z-index:2;pointer-events:none;border-color:#199ca855;border-style:dashed;animation:orbit-drift 28s linear infinite}
.orbit-two{animation-direction:reverse;animation-duration:40s}
.scene-caption{color:#1f6f78;font-weight:700;letter-spacing:.16em}
.scene-spark{color:#1599a6;z-index:2}
.spark-one{animation:spark-drift 4s ease-in-out infinite}
.spark-two{animation:spark-drift 5s ease-in-out infinite reverse}
.reading-badge{background:linear-gradient(135deg,#0d1828f0,#162a40f0);border:1px solid #00f0ff;color:#d8ff1e;font-weight:800;box-shadow:0 6px 24px #00000066,0 0 16px #00f0ff44;bottom:52px}
.reading-badge>i{background:#00f0ff;box-shadow:0 0 6px #00f0ff}
.companion-dialogue{position:relative;z-index:5;margin:-40px 14px 0;padding:18px 18px 16px;min-height:172px;background:linear-gradient(140deg,#101929eb 0%,#162438f5 100%);backdrop-filter:blur(12px);border:1px solid #3c5d82;border-left:4px solid #00f0ff;border-radius:12px;box-shadow:0 -8px 28px #00000055,0 10px 26px #00000066}
.companion-panel[data-mood=celebrate] .companion-dialogue{border-left-color:#d8ff1e;border-color:#7ea844}
.companion-panel[data-mood=trouble] .companion-dialogue{border-left-color:#ff9f1c;border-color:#8a6230}
.companion-dialogue.dialogue-pop{animation:dialogue-spring .38s var(--spring) both}
.companion-dialogue:before{display:none}
.dialogue-eyebrow{display:inline-block;background:#00f0ff1f;border:1px solid #00f0ff55;color:#7af8ff;padding:3px 8px;border-radius:4px;transform:skewX(-10deg);margin-bottom:10px}
.companion-panel[data-mood=celebrate] .dialogue-eyebrow{background:#d8ff1e24;border-color:#d8ff1e77;color:#d8ff1e}
.companion-panel[data-mood=trouble] .dialogue-eyebrow{background:#ff9f1c24;border-color:#ff9f1c77;color:#ffc46b}
.companion-dialogue h2{color:#f5fbff;text-shadow:0 2px 12px #00000066}
.companion-dialogue p{color:#c4daec}
.dialogue-decoration{color:#00f0ff1f}
.assistant-bottom{color:#8eb0c8}
.tiny-spark{color:#d8ff1e}

@media(min-width:900px){
  .main-shell{max-width:none;width:calc(100% - var(--sidebar));margin-right:0;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(350px,.8fr);column-gap:24px;align-content:start;transition:grid-template-columns .5s var(--spring)}
  .topbar{grid-column:1/-1;grid-row:1}
  .intro{grid-column:1;grid-row:2;display:block;position:relative;height:auto;min-height:145px;padding:24px 0 18px}
  .intro h1{font-size:28px;padding-right:140px}
  .intro .about-button{position:absolute;right:0;top:26px;font-size:12px;padding:9px 10px}
  .intro-copy{max-width:100%}
  .intro .eyebrow{padding-right:140px}
  .view-toolbar{grid-column:1;grid-row:3}
  .main-shell>.notice{grid-column:1;grid-row:4;margin:0 0 16px}
  body[data-view] .dashboard{display:contents}
  .dashboard>.editor-panel,.dashboard>.results-panel{grid-column:1;grid-row:5}
  .dashboard>.editor-panel{height:600px;min-height:560px}
  .dashboard>.companion-panel{grid-column:2;grid-row:2/6;position:sticky;top:20px;align-self:start;height:clamp(720px,calc(100dvh - 110px),830px);min-height:720px;max-height:830px;margin-top:22px;transition:all .5s var(--spring)}
  .character-scene{min-height:450px;flex:1;transition:all .5s var(--spring)}
  .character-image{transition:transform .5s var(--spring),opacity .2s}
  .chart-plot{height:160px}
  .chart-chapter-focus{padding:13px 16px;gap:16px;flex-wrap:wrap}
  .chart-focus-values{gap:20px}
  .chart-focus-heading h3{font-size:14px}
  .chart-topline{margin-bottom:10px}
  .chart-caption{font-size:11px;margin-top:8px}
  .chart-legend{gap:14px}
  .chart-interactive{font-size:11px}
  .score-row{padding-top:10px;padding-bottom:10px}
  .score-gauge{height:88px;width:88px;margin-bottom:4px}
  .score-line{min-height:40px}
  .result-actions{padding:14px 0}
  .result-footnote{padding:12px 0}
  .page-footer{grid-column:1/-1;grid-row:6}

  /* 採点画面（results view）：ダッシュボード優先、右側はプロフェッショナルなアドバイスHUDに特化 */
  body[data-view="results"] .main-shell{
    grid-template-columns:minmax(0,1fr) 260px;
    grid-template-rows:auto 1fr;
    row-gap:6px;
    padding-top:4px;
    align-content:start;
  }
  body[data-view="results"] .topbar{
    grid-column:1/-1;
    grid-row:1;
  }
  body[data-view="results"] .dashboard{
    display:contents;
  }
  body[data-view="results"] .results-panel{
    grid-column:1;
    grid-row:2;
    margin-top:0;
  }
  body[data-view="results"] .companion-panel{
    grid-column:2;
    grid-row:2;
    margin-top:0;
    position:sticky;
    top:8px;
    height:auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:12px 10px;
    gap:10px;
    border-radius:14px;
    background:linear-gradient(160deg,#18263b 0%,#0d1422 75%);
    border:1px solid #355273;
    box-shadow:0 18px 48px #00000077,inset 0 1px #00f0ff33;
  }
  body[data-view="results"] .companion-dialogue{
    margin:0;
    padding:16px 14px;
    min-height:0;
    border-radius:12px;
    background:linear-gradient(140deg,#101929fa 0%,#162438fa 100%);
    border:1px solid #3c5d82;
    border-left:4px solid #00f0ff;
    box-shadow:0 8px 24px rgba(0,0,0,0.45);
  }
  body[data-view="results"] .companion-dialogue h2{
    font-size:16px;
    font-weight:800;
    color:#f5faff;
    line-height:1.4;
    margin-bottom:6px;
  }
  body[data-view="results"] .companion-dialogue p{
    font-size:12.5px;
    line-height:1.65;
    color:#c8dced;
    margin:0;
  }
  body[data-view="results"] .assistant-bottom{
    padding:2px 4px 0;
    font-size:10px;
    color:#8eb0c8;
    text-align:center;
  }

  /* 章採点展開時 */
  body.has-chapters .main-shell{
    grid-template-columns:minmax(0,1fr) 260px;
  }
  body.has-chapters .companion-panel{
    min-height:0;
    height:auto;
    position:sticky;
    top:8px;
    gap:10px;
    padding:12px 10px;
  }
  body.has-chapters .companion-dialogue{
    margin:0;
    padding:15px 14px;
    min-height:0;
    border-radius:12px;
    background:linear-gradient(140deg,#101929fa 0%,#162438fa 100%);
    border:1px solid #3c5d82;
    border-left:4px solid #00f0ff;
  }
  body.has-chapters .companion-dialogue h2{
    font-size:15.5px;
    line-height:1.45;
  }
  body.has-chapters .companion-dialogue p{
    font-size:12px;
    line-height:1.6;
    margin-top:4px;
  }
  body.has-chapters .scores{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
  body.has-chapters .score-row{padding:8px 5px}
  body.has-chapters .score-gauge{width:64px;height:64px;margin-bottom:2px}
  body.has-chapters .score-gauge .score-value{font-size:19px}
  body.has-chapters .axis-name{font-size:11px;line-height:1.3}
}

/* ユーザー指定位置のツールバー動的章採点CTA */
.view-toolbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.toolbar-chapter-cta{display:inline-flex;align-items:center;gap:12px;margin:0 auto 0 16px;padding:4px 8px;background:rgba(12,18,30,.85);border:1px dashed #00f0ff66;border-radius:9999px}
.cta-chapter-badge{font-size:11px;font-weight:700;color:#7cf7ff;background:rgba(0,240,255,.12);border:1px solid #00f0ff44;padding:6px 14px;border-radius:9999px;letter-spacing:.03em;white-space:nowrap}
.cta-chapter-button{display:inline-flex;align-items:center;gap:10px;padding:11px 24px;font-size:15px;font-weight:900;letter-spacing:.04em;background:#d8ff1e;color:#070d16;border:none;border-radius:9999px;box-shadow:0 0 24px rgba(216,255,30,.5),0 4px 16px rgba(0,0,0,.6);cursor:pointer;white-space:nowrap;transition:transform .24s var(--spring),box-shadow .24s,background .2s}
.cta-chapter-button .icon{width:17px;height:17px;stroke:#070d16;stroke-width:2}
.cta-chapter-button span{display:inline-block}
.cta-chapter-button .cta-btn-arrow{font-size:16px;font-weight:900;display:inline-block;animation:arrow-invite 1.4s ease-in-out infinite}
.cta-chapter-button:hover:not(:disabled){background:#f1ff3b;transform:translateY(-2px) scale(1.05);box-shadow:0 0 36px rgba(216,255,30,.8),0 8px 24px rgba(0,0,0,.7);color:#03080e}
.cta-chapter-button:active:not(:disabled){transform:translateY(1px) scale(.96)}
.cta-chapter-button:disabled{background:#1e2d42;color:#6b849e;box-shadow:none;cursor:not-allowed}
.cta-pop-in{animation:cta-pop-in .56s var(--spring) both}
@keyframes cta-pop-in{0%{opacity:0;transform:translateY(-20px) scale(.88)}60%{opacity:1;transform:translateY(4px) scale(1.06)}100%{opacity:1;transform:translateY(0) scale(1)}}

/* 1画面で一覧できるインライン章分析カード */
.chapter-inline-card{margin-top:14px;padding:16px 20px;border-radius:14px;background:linear-gradient(145deg,#131e30 0%,#0d1522 100%);border:1px solid #2d4669;border-left:4px solid #00f0ff;box-shadow:0 12px 32px #00000055,0 0 24px #00f0ff18}
.chapter-inline-card.chapter-inline-enter{animation:chapter-inline-pop .5s var(--spring) both}
@keyframes chapter-inline-pop{0%{opacity:0;transform:translateY(16px) scale(.96)}100%{opacity:1;transform:translateY(0) scale(1)}}
.chapter-inline-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #233752}
.chapter-mini-badge{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.12em;color:#d8ff1e;background:#d8ff1e1f;border:1px solid #d8ff1e66;padding:2px 7px;border-radius:4px;transform:skewX(-8deg);margin-bottom:4px}
.chapter-inline-title h3{margin:0;font-size:15px;color:#f5faff;font-weight:700}
#close-chapters-btn{font-size:12px;color:#8da6c0;background:#ffffff0d;border:1px solid #2f4463;padding:6px 12px;border-radius:6px;transition:color .2s,border-color .2s,background .2s}
@media(max-width:1050px){
  .toolbar-chapter-cta{margin:8px 0;width:100%;justify-content:space-between}
  .cta-chapter-button{padding:8px 16px;font-size:13px}
  .cta-chapter-badge{font-size:10px;padding:5px 8px}
}
body[data-next-action=import] #file-button,body[data-next-action=score] #score-button,body[data-next-action=chapters] #chapter-button,body[data-next-action=review] #return-results-button,body[data-next-action=edit] #back-editor-button{animation:next-step-glow 2.4s ease-in-out infinite}
body[data-next-action=score] .button-arrow{animation:arrow-invite 1.4s ease-in-out infinite}
.chapter-dot.is-selected .chart-dot-halo{animation:point-glow 2.4s ease-in-out infinite}
@keyframes next-step-glow{0%,100%{box-shadow:0 0 0 0 #00f0ff00;transform:translateY(0)}50%{box-shadow:0 0 0 4px #00f0ff33,0 6px 26px #d8ff1e44;transform:translateY(-2px)}}
@keyframes chapter-cta-slide{0%{opacity:0;transform:translateX(28px) translateY(10px) scale(.96)}100%{opacity:1;transform:translateX(0) translateY(0) scale(1)}}
@keyframes cta-sheen{0%{transform:translateX(-130%) skewX(-20deg)}100%{transform:translateX(130%) skewX(-20deg)}}
@keyframes companion-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes portrait-pop{0%{opacity:.25;transform:scale(.94) translateY(12px);filter:brightness(1.35) contrast(1.1)}65%{opacity:1;transform:scale(1.02) translateY(-2px);filter:none}100%{opacity:1;transform:scale(1) translateY(0);filter:none}}
@keyframes dialogue-spring{0%{opacity:.4;transform:translateY(8px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes zzz-card-in{0%{opacity:0;transform:translateY(28px) rotateX(14deg) scale(.92)}100%{opacity:1;transform:translateY(0) rotateX(0) scale(1)}}
@keyframes zzz-slide-down{0%{opacity:0;transform:translateY(-16px) scale(.97)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes panel-in{0%{opacity:.35;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}
@keyframes laser-scan{0%{top:2%;opacity:.2}50%{top:88%;opacity:.95}100%{top:2%;opacity:.2}}
@keyframes orbit-drift{to{transform:rotate(360deg)}}
@keyframes spark-drift{0%,100%{translate:0 0;opacity:.65}50%{translate:4px -9px;opacity:1}}
@keyframes arrow-invite{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
@keyframes point-glow{0%,100%{opacity:.3}50%{opacity:1}}

/* 大型HUD型 記事分析インサイトカード */
.insights-card{
  background:linear-gradient(145deg,rgba(16,25,38,0.96),rgba(11,18,29,0.98));
  border:1px solid #233752;
  border-radius:10px;
  padding:12px 16px;
  margin-bottom:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08),0 8px 24px rgba(0,0,0,0.4);
  animation:zzz-slide-down .35s cubic-bezier(0.16,1,0.3,1) backwards;
}
.insights-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.07);
}
.insights-tag{
  display:inline-block;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  color:#d8ff1e;
  background:rgba(216,255,30,0.15);
  border:1px solid rgba(216,255,30,0.5);
  padding:2px 8px;
  border-radius:4px;
  transform:skewX(-8deg);
}
.insights-title h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#f5faff;
  letter-spacing:.02em;
}
.insights-genre-badge{
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(0,240,255,0.1);
  border:1.5px solid rgba(0,240,255,0.5);
  padding:4px 14px;
  border-radius:9999px;
  font-size:12.5px;
  box-shadow:0 0 16px rgba(0,240,255,0.25);
}
.genre-kicker{
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  color:#7af8ff;
  padding-right:6px;
  border-right:1px solid rgba(0,240,255,0.35);
}
.genre-value{
  color:#ffffff;
  font-weight:800;
}
.insights-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.insight-item{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:8px;
  padding:10px 14px;
  transition:border-color .2s,background .2s;
}
.insight-item:hover{
  border-color:rgba(0,240,255,0.4);
  background:rgba(0,240,255,0.03);
}
.insight-item-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
.insight-label{
  font-size:12.5px;
  font-weight:800;
  color:#d0e4f7;
  display:flex;
  align-items:center;
  gap:5px;
}
.insight-icon{
  font-size:12px;
}
.insight-score{
  font-size:16px;
  font-weight:900;
  color:#d8ff1e;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  text-shadow:0 0 10px rgba(216,255,30,0.4);
}
.insight-meter-bar{
  width:100%;
  height:4.5px;
  background:#131f30;
  border-radius:3px;
  overflow:hidden;
  margin:5px 0 6px;
}
.insight-meter-fill{
  height:100%;
  border-radius:3px;
  background:linear-gradient(90deg,#00f0ff,#d8ff1e);
  box-shadow:0 0 8px rgba(0,240,255,0.6);
  transition:width .8s cubic-bezier(0.16,1,0.3,1);
}
.insight-desc{
  margin:0;
  font-size:11.5px;
  line-height:1.55;
  color:#9ebbd7;
}
@media(max-width:768px){.insights-grid{grid-template-columns:1fr}}

/* 結果ツールバーの章採点ボタン */
.result-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 8px;
  min-height:26px;
}
.result-toolbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11.5px;
  color:#8faecc;
}
.result-chapter-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 14px;
  font-size:12px;
  font-weight:800;
  color:#06131c;
  background:linear-gradient(95deg,#00f0ff,#d8ff1e);
  border:none;
  border-radius:9999px;
  cursor:pointer;
  box-shadow:0 0 16px rgba(0,240,255,0.4),0 2px 8px rgba(0,0,0,0.5);
  transition:all .22s var(--spring);
}
.result-chapter-btn:hover{
  transform:translateY(-1px) scale(1.03);
  box-shadow:0 0 24px rgba(216,255,30,0.7),0 4px 12px rgba(0,0,0,0.6);
}
.result-chapter-btn .icon{
  width:14px;
  height:14px;
  stroke:#06131c;
  stroke-width:2.2;
}

/* トップバーのフローナビゲーション */
.topbar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#090e17;border-bottom:1px solid #1a273b}
.topbar-center{display:flex;align-items:center;gap:12px}
.topbar-flow{display:flex;align-items:center;gap:7px;padding:4px 14px;background:#0c1523;border:1px solid #1f334d;border-radius:9999px;font-size:11px}
.topbar-flow-step{color:#6582a2;font-weight:700;transition:all .2s;display:flex;align-items:center}
.topbar-flow-step b{font-size:9.5px;opacity:.8;margin-right:4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.topbar-flow-step.is-active{color:#d8ff1e;font-weight:800;text-shadow:0 0 10px rgba(216,255,30,0.5)}
.topbar-flow-arrow{color:#263c56;font-size:10px}
.topbar-pill-btn{background:#152438;border:1px solid #2e476d;color:#9ec2e8;font-size:11px;font-weight:700;padding:4px 13px;border-radius:9999px;transition:all .2s;cursor:pointer}
.topbar-pill-btn:hover:not(:disabled){background:#1f3655;border-color:#00f0ff;color:#fff;box-shadow:0 0 12px rgba(0,240,255,0.3);transform:translateY(-1px)}
.topbar-link-btn{background:transparent;border:1px solid #23374f;color:#8da6c0;font-size:11px;padding:4px 12px;border-radius:9999px;display:flex;align-items:center;gap:5px;cursor:pointer;transition:all .2s}
.topbar-link-btn:hover{border-color:#00f0ff;color:#fff;background:rgba(0,240,255,0.08)}

/* 結果画面の極限コンパクト化＆100vh収まり */
body[data-view="results"] .intro{display:none!important}
body[data-view="results"] .view-toolbar{display:none!important}
body[data-view="results"] .dashboard{margin-top:0;gap:14px}
body[data-view="results"] .results-panel .panel-head{min-height:50px;padding:0 16px}
body[data-view="results"] .result-body{padding:10px 16px 14px}
body[data-view="results"] .scores{gap:10px}

/* ZZZスタイル スコアカード入場アクション */
body[data-view="results"] .score-row{
  animation:zzz-card-in .42s cubic-bezier(0.16,1,0.3,1) backwards;
  animation-delay:calc(var(--i,0) * 55ms);
}

/* ==========================================================================
   Thumbnail / Eye-catch Inspector Styling (Pilot Feature)
   ========================================================================== */
.pilot-pill {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-left: auto;
  border: 1px solid #d8ff1e88;
  background: rgba(216, 255, 30, 0.15);
  color: #d8ff1e;
  padding: 2px 5px;
  border-radius: 4px;
  transform: skewX(-8deg);
  text-shadow: 0 0 8px rgba(216, 255, 30, 0.5);
}

body:not([data-tool="thumbnail"]) .thumb-editor-panel,
body:not([data-tool="thumbnail"]) .thumb-results-panel {
  display: none !important;
}

body[data-tool="thumbnail"] .editor-panel,
body[data-tool="thumbnail"] .results-panel,
body[data-tool="thumbnail"] .chapter-inline-card,
body[data-tool="thumbnail"] .toolbar-chapter-cta {
  display: none !important;
}

body[data-tool="thumbnail"][data-view="input"] .thumb-results-panel {
  display: none !important;
}

body[data-tool="thumbnail"][data-view="results"] .thumb-editor-panel {
  display: none !important;
}

body[data-tool="thumbnail"][data-view="results"] .thumb-results-panel {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 540px;
}

body[data-tool="thumbnail"][data-view="results"] .thumb-results-panel .panel-head {
  min-height: 50px;
  padding: 0 16px;
}

body[data-tool="thumbnail"][data-view="results"] #thumb-result-body {
  padding: 10px 16px 14px;
  overflow: visible;
}

.thumb-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  height: auto;
}

.thumb-upload-area {
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumb-dropzone {
  position: relative;
  min-height: 180px;
  max-height: 250px;
  border: 2px dashed #263c56;
  border-radius: 12px;
  background: rgba(14, 22, 34, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .24s var(--spring);
  overflow: hidden;
}

.thumb-dropzone:hover,
.thumb-dropzone.drag-over {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
  transform: scale(1.005);
}

.dropzone-prompt {
  text-align: center;
  padding: 24px 16px;
  pointer-events: none;
}

.dropzone-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  margin-bottom: 10px;
}

.dropzone-icon .icon {
  width: 24px;
  height: 24px;
}

.dropzone-main {
  font-size: 14.5px;
  font-weight: 800;
  color: #e2efff;
  margin: 0 0 6px;
}

.dropzone-sub {
  font-size: 11.5px;
  color: #728ea9;
  margin: 0;
}

.thumb-preview-wrap {
  width: 100%;
  height: 100%;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #060a12;
}

.thumb-preview-img {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 6px;
}

.thumb-preview-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(9, 14, 23, 0.92);
  border: 1px solid #283e5c;
  color: #7cf7ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.thumb-preview-badge.optimal {
  border-color: #d8ff1e;
  color: #d8ff1e;
  text-shadow: 0 0 10px rgba(216, 255, 30, 0.5);
}

.simulator-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1f3047;
  border-radius: 8px;
}

.sim-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #9cb8d3;
}

.sim-toggle-btn {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid #2e476d;
  background: #142236;
  color: #7cf7ff;
  cursor: pointer;
  transition: all .2s;
}

.sim-toggle-btn:hover {
  background: #1d3352;
  border-color: #00f0ff;
  color: #fff;
}

.mobile-feed-card {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0d1522 0%, #111a2a 100%);
  border: 1px solid #243854;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: zzz-slide-down .28s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.feed-sim-image-box {
  width: 114px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #080d15;
  border: 1px solid #1c2b3f;
}

.sim-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-sim-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sim-author {
  font-size: 9px;
  color: #6a86a3;
  font-weight: 600;
}

.sim-title {
  font-size: 12px;
  font-weight: 800;
  color: #eaf4ff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-snippet {
  font-size: 10px;
  color: #7d97b2;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thumb-article-link-box {
  background: rgba(13, 20, 31, 0.8);
  border: 1px solid #1f324a;
  border-radius: 9px;
  padding: 10px 12px;
}

.thumb-link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.link-label {
  font-size: 11px;
  font-weight: 800;
  color: #7cf7ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-label .icon {
  width: 14px;
  height: 14px;
}

.link-sync-btn {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  cursor: pointer;
  transition: all .2s;
}

.link-sync-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

textarea#thumb-article-context {
  width: 100%;
  border: 1px solid #1c2b3e;
  border-radius: 6px;
  background: #080c14;
  color: #cfe1f3;
  padding: 8px 10px;
  font: 11.5px/1.65 var(--sans);
  resize: vertical;
  outline: none;
}

textarea#thumb-article-context:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.thumb-metrics-card {
  margin-bottom: 12px;
}

.thumb-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media(max-width: 800px) {
  .thumb-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.score-row.is-skipped {
  opacity: 0.65;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}

.score-detail-placeholder {
  font-size: 10px;
  color: #6b849c;
  padding: 6px 0;
  text-align: center;
}

.gadget-thumb-cta {
  border-color: rgba(0, 240, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(216, 255, 30, 0.08));
  color: #7cf7ff;
  font-weight: 700;
}

.gadget-thumb-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(216, 255, 30, 0.18));
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.dialog-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}

.dialog-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #2d4566;
  background: #131e30;
  color: #8ea7c2;
  cursor: pointer;
  transition: all .2s;
}

.dialog-tab:hover {
  border-color: #00f0ff88;
  color: #fff;
}

.dialog-tab.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.15);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
