/* Window contents use their own visual language inside Unau's quiet frame.
   Each sample is 800 × 480; only the active terminal preview animates. */
.page-sheet { --sample-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.stage .app-icon.editor { background:#dce8ec;color:#35617a;border:1px solid #cadbe3; }
.language-symbol { font:600 10px/1 var(--sample-mono,ui-monospace,monospace);letter-spacing:-.5px; }
.page-sheet q:before,.page-sheet q:after { content:none; }

/* A working TypeScript file: project tree, diff gutter, checks and status. */
.studio-page { background:#fafbf8;color:#3e4b43; }
.studio-title { height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px;background:#e7ece7;border-bottom:1px solid #d8dfd8;font-size:10px;color:#758276; }
.studio-project { font-size:12px;font-weight:600;color:#425747; }
.studio-command { width:320px;text-align:center;border:1px solid #d4dcd3;background:#f1f4ee;border-radius:4px;padding:3px;color:#82907e; }
.studio-branch { font-family:var(--sample-mono); }
.studio-workspace { height:422px;display:grid;grid-template-columns:36px 148px 1fr; }
.studio-activity { background:#e9ede7;border-right:1px solid #dee3da;display:flex;align-items:center;gap:24px;flex-direction:column;padding-top:16px; }
.studio-activity svg { width:19px;height:19px;fill:none;stroke:#899781;stroke-width:1.4; }
.studio-activity svg:first-child { stroke:#405c48; }
.studio-files { position:relative;background:#f0f3ec;border-right:1px solid #e0e6da;padding-top:14px;font-size:11px;color:#75826e; }
.studio-files>small { display:block;padding:0 13px 16px;font-size:9px;letter-spacing:.1em; }
.studio-files>p { font-size:10px;padding:0 10px 10px;color:#5a6b53; }
.studio-files>span,.studio-files>b { display:flex;align-items:center;gap:8px;min-height:26px;padding:5px 10px;white-space:nowrap; }
.studio-files>b { background:#e0e9dc;color:#3e5946;font-weight:500;border-left:2px solid #89a37c;padding-left:8px; }
.studio-files i,.studio-tabs i { font:600 9px/1 var(--sample-mono);font-style:normal;color:#568192; }
.studio-files i.json-file { color:#a8986f; }
.studio-files em { margin-left:auto;color:#899b78;font:9px var(--sample-mono); }
.studio-files .test-file { padding-left:12px;font:10px var(--sample-mono); }
.studio-context { position:absolute;bottom:17px;left:12px;right:12px;padding-top:12px;border-top:1px solid #dce3d6; }
.studio-context p { font-size:10px;line-height:1.6;color:#64735b; }
.studio-context span { font:9px var(--sample-mono);color:#9aa58f;display:block;margin-top:6px; }
.studio-code { position:relative;min-width:0;background:#fafbf8; }
.studio-tabs { height:35px;background:#f0f3ed;border-bottom:1px solid #e3e8dd;display:flex;align-items:stretch; }
.studio-tabs>b,.studio-tabs>span { display:flex;align-items:center;gap:9px;padding:0 13px;font:11px var(--sample-mono); }
.studio-tabs>b { background:#fafbf8;color:#4c6553;border-top:2px solid #739079;border-right:1px solid #e1e7d9;font-weight:400; }
.studio-tabs>b>span { color:#a4ad9c;margin-left:12px; }
.studio-tabs>span { color:#98a48f; }
.studio-breadcrumb { padding:10px 17px 11px;font:10px var(--sample-mono);color:#98a18f; }
.studio-breadcrumb strong { color:#7d8c71;font-weight:400; }
.studio-code pre { margin:0;font:13px/20px var(--sample-mono);color:#5b6655;white-space:pre; }
.studio-line { display:block;position:relative; }
.studio-line>i { display:inline-block;width:31px;margin-right:20px;text-align:right;color:#b5bcad;font-style:normal;font-size:10px; }
.studio-line em { font-style:normal;color:#8b6d53; }
.studio-line var { font-style:normal;color:#5a7f88; }
.studio-line strong { color:#597d60;font-weight:500; }
.studio-line q { color:#9b865c; }
.studio-edit { background:#eef3e8; }
.studio-edit:before { content:"";position:absolute;left:4px;top:2px;bottom:2px;width:2px;background:#93ac83; }
.studio-checks { position:absolute;left:18px;right:18px;bottom:15px;border-top:1px solid #e3e9db;padding-top:12px;display:flex;gap:9px;align-items:center;font:10px var(--sample-mono);color:#819075; }
.studio-checks [data-copy] { font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.check-mark { color:#648653; }.check-separator { color:#c6cdbd; }
.studio-status { height:24px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;background:#dfe8da;color:#6a7e60;font:9px var(--sample-mono); }
.studio-status b { font-weight:500;color:#537145; }

/* A short local coding session; fixed rows keep the terminal still as output appears. */
.agent-page { background:#252e2a;color:#d3d8cc;font-family:var(--sample-mono); }
.agent-title { height:32px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;background:#303a33;border-bottom:1px solid #414b3f;font-size:10px;color:#9faa99; }
.agent-title i { font-style:normal;color:#5d6c58;margin:0 6px; }
.agent-session { height:66px;display:flex;align-items:center;justify-content:space-between;margin:0 27px;border-bottom:1px solid #3a473a; }
.agent-session>div { display:flex;align-items:center;gap:10px; }
.agent-session b { font-size:18px;font-weight:500;letter-spacing:-.5px;color:#dce2d3; }
.agent-spark,.agent-star { font-size:22px;color:#c3ad83; }
.agent-session-meta { font-size:9px;color:#7e9077;margin-left:9px; }
.agent-mode { border:1px solid #4b5b44;border-radius:4px;font-size:9px;letter-spacing:.1em;padding:4px 7px;color:#9daf90; }
.agent-conversation { padding:18px 29px 0; }
.agent-request { display:grid;grid-template-columns:18px 1fr;gap:8px;align-items:start;min-height:43px;font-size:14px;line-height:1.7;color:#e3e5db; }
.agent-request>span { color:#94af80; }
.agent-request p { max-width:680px; }
.agent-response { display:grid;grid-template-columns:18px 1fr;gap:8px;align-items:start;min-height:39px;margin-top:8px;font-size:12px;line-height:1.8;color:#aab89f; }
.agent-star { font-size:17px; }
.agent-tools { margin:8px 0 0 8px;padding:0 0 0 17px;border-left:1px solid #4a5941; }
.agent-tools>div { display:grid;grid-template-columns:16px 122px 1fr;gap:7px;align-items:center;min-height:28px;font-size:11px; }
.agent-tool-symbol { color:#8eaa7a; }.agent-tools b { font-weight:400;color:#a1b292; }
.agent-tools div>span:last-child { color:#7f9174; }.agent-tools i { font-style:normal;color:#a9be96;margin-left:12px; }.agent-tools s { text-decoration:none;color:#ae9980;margin-left:9px; }
.agent-result { margin:18px 0 0 26px;padding-top:13px;border-top:1px solid #3e4b3b; }
.agent-result>p { font-size:12px;line-height:1.8;color:#bdcbb1; }
.agent-result>div { margin-top:10px;font-size:10px;display:flex;align-items:center;gap:7px;color:#879e7a; }
.agent-complete-dot { width:5px;height:5px;border-radius:50%;background:#96b27e; }
.agent-diff { margin-left:auto;color:#6d8262; }
.agent-input { position:absolute;bottom:31px;left:27px;right:27px;height:37px;padding:0 13px;display:flex;gap:9px;align-items:center;border:1px solid #465440;border-radius:5px;font-size:11px;color:#64795d;background:#29342b; }
.agent-input>span:first-child { color:#95ad83;font-size:15px; }
.agent-input i { width:5px;height:13px;background:#8aa479;margin-left:3px;opacity:.55; }
.agent-bottom { position:absolute;bottom:0;left:0;right:0;height:24px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;font-size:9px;color:#667a5e; }
@media(prefers-reduced-motion:no-preference) {
 .peek:not([hidden]) .agent-step { animation:agent-output-in 340ms ease-out both; }
 .peek:not([hidden]) .step-one { animation-delay:.35s; }
 .peek:not([hidden]) .step-two { animation-delay:1.1s; }
 .peek:not([hidden]) .step-three { animation-delay:2s; }
 .peek:not([hidden]) .step-four { animation-delay:3s; }
 .peek:not([hidden]) .step-five { animation-delay:3.9s; }
}
@keyframes agent-output-in { from {opacity:0;transform:translateY(3px)} to {opacity:1;transform:translateY(0)} }

/* API reference: navigation, contract and executable example have distinct columns. */
.reference-page { background:#fafbf8;color:#435449; }
.reference-bar { height:48px;padding:0 20px;border-bottom:1px solid #e1e6dd;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10px;color:#9ca595; }
.reference-bar>b { color:#3c5743;font-size:18px;letter-spacing:-.4px;white-space:nowrap; }
.reference-bar>b span { font-size:11px;letter-spacing:0;color:#96a28c;margin-left:8px;font-weight:400; }
.reference-search { display:flex;align-items:center;gap:8px;border:1px solid #e1e7da;background:#f2f5ee;border-radius:5px;width:228px;height:27px;padding:0 10px;color:#9aa58f; }
.reference-search i { margin-left:auto;border:1px solid #dce4d4;border-radius:3px;padding:1px 4px;font-style:normal;font-size:9px; }
.reference-layout { height:432px;display:grid;grid-template-columns:126px 346px 1fr; }
.reference-nav { position:relative;padding:13px 9px;border-right:1px solid #e3e9dc;background:#f4f6f0;font-size:11px; }
.reference-nav>small { display:block;font-size:8px;letter-spacing:.08em;color:#99a58d;margin:15px 8px 9px; }
.reference-nav>span,.reference-nav>b { display:block;padding:8px 9px;line-height:1.25;color:#8d9a80;font-weight:400; }
.reference-nav>b { background:#e5edde;color:#4c704c;border-radius:4px; }
.reference-nav-bottom { position:absolute;bottom:21px;left:17px;font-size:9px;color:#8c9e7e;line-height:1.8; }
.reference-nav-bottom>span { font:7px var(--sample-mono);color:#a8b39c; }
.reference-main { padding:24px 23px 15px; }
.reference-breadcrumb { font-size:8px;letter-spacing:.1em;color:#99a98f;margin-bottom:9px; }
.reference-main h1 { font-size:28px;font-weight:500;letter-spacing:-.7px;line-height:1.35;margin:0; }
.reference-lede { font-size:11px;line-height:1.8;color:#829276;margin-top:9px;min-height:39px; }
.reference-endpoint { height:34px;display:flex;align-items:center;gap:11px;border-block:1px solid #dde6d5;margin:15px 0 18px;font:11px var(--sample-mono);color:#687d5f; }
.reference-endpoint b { font-size:9px;color:#52774d;font-weight:600; }
.reference-main h2 { font-size:13px;font-weight:550;margin:14px 0 9px; }
.reference-param { border-bottom:1px solid #e6ecdf;padding:0 0 11px;margin-bottom:10px; }
.reference-param>div { display:flex;gap:9px;align-items:center;font-size:10px; }
.reference-param code { font:12px var(--sample-mono);color:#4a654f; }
.reference-param span { color:#a0ac95;font:9px var(--sample-mono); }
.reference-param i { font-size:8px;font-style:normal;color:#a89274; }
.reference-param p { font-size:10px;line-height:1.7;color:#929f87;margin-top:5px; }
.reference-response-note { font-size:10px;line-height:1.7;color:#8b9b7f; }
.reference-empty { margin-top:8px;font-size:9px;line-height:1.6;color:#a0ad95; }
.reference-examples { padding:26px 17px 0 0; }
.reference-code-block { background:#2b362e;border:1px solid #3f4d3d;border-radius:6px;overflow:hidden;margin-bottom:14px; }
.reference-code-title { display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #3a4936;font-size:10px;color:#a7b59c;background:#303d32; }
.reference-code-title>span:last-child { font:9px var(--sample-mono);color:#7d9272; }
.reference-code-title>span.response-ok { color:#adbd98; }
.reference-code-block pre { padding:13px 11px;font:10px/1.8 var(--sample-mono);color:#a5b29c;overflow:hidden;white-space:pre-wrap;word-break:break-word; }
.reference-code-block q { color:#bdc9ab; }
.reference-code-block em { font-style:normal;color:#c6b18d; }

/* Reading is a page of writing, not another photograph or product landing page. */
.essay-page { background:#fcfaf5;color:#474d43; }
.essay-masthead { height:63px;margin:0 37px;border-bottom:1px solid #e1e1d6;display:flex;align-items:center;justify-content:space-between; }
.essay-masthead>b { font:500 25px "Source Serif 4",Georgia,serif;color:#343f32;letter-spacing:-.7px; }
.essay-masthead>b>span { color:#8e9e7b; }
.essay-masthead>span { font-size:10px;color:#939b88; }
.essay-layout { display:grid;grid-template-columns:151px 1fr;gap:35px;padding:24px 42px 0; }
.essay-index { padding-top:8px;color:#a0a78f;border-right:1px solid #e9e8dc;padding-right:25px; }
.essay-index>small { font-size:9px;letter-spacing:.13em;color:#7f8d70; }
.essay-index>p { font:10px/2.1 var(--sample-mono);margin-top:20px; }
.essay-index p>span { display:block;font:11px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#88957b; }
.essay-rule { width:23px;height:1px;background:#b8c1a7;margin-top:30px; }
.essay-index p.essay-side-note { font-size:10px;line-height:1.8;max-width:110px;font-family:inherit;margin-top:13px;color:#a2aa93; }
.essay-layout article { min-width:0; }
.essay-category { display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.09em;color:#97a088; }
.essay-category>span:last-child { letter-spacing:0; }
.page-sheet.essay-page h1 { font-size:35px;font-weight:400;line-height:1.45;margin:11px 0 8px;letter-spacing:0;color:#3b4c3b; }
.essay-lede { font-size:16px;line-height:1.8;color:#6b7a60;margin-bottom:17px; }
.essay-paragraph { font-size:12px;line-height:1.95;color:#929983; }
.essay-page blockquote { margin:18px 0;padding:9px 0 9px 16px;border-left:2px solid #a6b491;font-size:21px;line-height:1.6;color:#647957; }
.essay-signature { display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:11px;border-top:1px solid #e6e6d9;font-size:9px;color:#a1aa93; }
.essay-signature>span:last-child { font:italic 17px Georgia,serif;color:#87967c; }
.essay-page:lang(en) h1 { font-size:33px;line-height:1.25; }
.essay-page:lang(en) .essay-lede { font-size:14px;line-height:1.6; }
.essay-page:lang(en) blockquote { font-size:18px;line-height:1.4; }
.essay-page:lang(ja) h1 { font-size:33px; }

/* Social and video are intentionally different subjects. */
.social-refined .social-feed-tabs { height:46px;display:flex;align-items:center;justify-content:space-around;border-bottom:1px solid #edf0ea;font-size:13px;color:#9da49a; }
.social-feed-tabs b { font-weight:500;color:#586552;position:relative;height:46px;display:flex;align-items:center; }
.social-feed-tabs b:after { content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#738e65;border-radius:2px; }
.social-refined .social-feed article { padding:12px 19px 9px; }
.social-letter-avatar { display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#d5d0ae;color:#6f704f;font:italic 19px Georgia,serif; }
.social-letter-avatar.alternate { background:#e6e6dd;color:#7b8970; }
.social-refined .social-author { gap:9px; }
.social-refined .social-author b { font-size:12px;color:#455441; }
.social-refined .social-author>div>span { font:9px var(--sample-mono);color:#9ba490;margin-top:3px; }
.social-refined .social-feed article>p { font-size:12px;line-height:1.75;margin:9px 0 10px; }
.social-refined .street-post { height:222px;width:100%;object-fit:cover;object-position:center 58%;display:block;border-radius:7px;border:1px solid #e4e5dc; }
.social-refined .social-reactions { display:flex;justify-content:space-between;font-size:10px;color:#9ca792;padding-top:10px; }
.social-refined .second-post { border-top:1px solid #ebeee6;margin-top:3px; }
.social-refined .social-topics { padding-top:12px; }
.social-refined .social-topics h3 { font-size:16px;margin-top:23px;margin-bottom:17px; }
.social-refined .social-topics small { display:block;font-size:9px;color:#a9b09f;margin-top:20px; }
.social-refined .social-topics p { margin-top:5px;color:#77856c; }
.social-topic-line { height:1px!important;padding:0!important;background:#e5e9de!important;margin-top:25px; }
.social-topic-hint { display:block;margin-top:20px;font:italic 20px Georgia,serif;color:#b5bea6; }

/* A linked reading note has a distinct cream sidebar and useful annotations. */
.reading-page { display:grid;grid-template-columns:178px 1fr;background:#fffef8;color:#6c684f; }
.reading-sidebar { background:#f1eddf;padding:24px 13px;border-right:1px solid #e5e0d0; }
.reading-sidebar>b { display:block;font-size:22px;font-weight:550;margin:0 10px 26px;color:#6f6c55; }
.reading-sidebar>small { display:block;font-size:9px;color:#b0a58b;margin:14px 10px 10px; }
.reading-sidebar>span { display:block;font-size:10px;line-height:1.6;color:#a39b82;padding:9px 10px; }
.reading-selected { background:#e4ddc7;border-radius:5px;padding:11px 10px;color:#766e50; }
.reading-selected>span { display:block;font-size:12px; }
.reading-selected>small { display:block;font-size:9px;color:#a29472;margin-top:5px; }
.reading-sidebar-rule { height:1px;background:#e1dac7;margin:27px 10px 12px; }
.reading-page>article { padding:24px 34px; }
.reading-top { display:flex;align-items:center;justify-content:space-between;color:#b4a786;font-size:10px; }
.reading-top>small { font-size:9px;letter-spacing:.07em; }
.reading-page h1 { font-size:29px;line-height:1.4;font-weight:550;color:#5b5a46;margin:13px 0 21px;letter-spacing:-.5px; }
.reading-page h2 { font-size:16px;font-weight:500;margin-bottom:10px;color:#797251; }
.reading-body { font-size:12px;line-height:1.9;color:#a0977c; }
.reading-formula { display:flex;gap:10px;align-items:center;justify-content:center;margin-top:17px;padding:14px 0;background:#f5f1e3;border:1px solid #ede5cf;border-radius:5px;font:11px var(--sample-mono);color:#9a8e68; }
.reading-formula i { font-style:normal;color:#c0b593; }.reading-formula mark { padding:4px 6px;background:#e6dfbd;color:#8b7a47;border-radius:3px; }
.reading-margin { font-size:9px;text-align:right;color:#b0a17b;margin-top:6px;font-style:italic; }
.reading-page h3 { font-size:9px;letter-spacing:.08em;color:#b2a582;font-weight:500;margin:20px 0 10px; }
.reading-page ul { list-style:none;font-size:11px;line-height:1.8;color:#8d856a; }
.reading-page li { display:flex;align-items:center;gap:9px;margin:6px 0; }
.reading-page li:before { content:"";width:11px;height:11px;border:1px solid #d6ccaa;border-radius:3px;flex:none; }
.reading-page li.done:before { content:"✓";display:grid;place-items:center;background:#e8e1c7;color:#ab9c73;font-size:8px; }
.reading-citation { border-top:1px solid #e9e2ce;margin-top:20px;padding-top:13px;display:flex;gap:17px;align-items:center; }
.reading-citation small { font-size:8px;color:#bdb18e; }
.reading-citation>span { font-size:11px;color:#95865e; }
.reading-citation i { font-style:normal;color:#bdad84;margin-left:9px; }
.reading-page:lang(en) h1,.reading-page:lang(ja) h1 { font-size:25px; }

.agent-spark svg,.agent-star svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.agent-star svg{width:13px;height:13px}
.reference-code-block pre{line-height:1.6;padding-block:11px}
.video-chapters{border-left:1px solid #e8ece2;padding-left:14px;color:#808b76}
.video-chapters h3{font-size:13px;font-weight:500;margin:8px 0 22px;color:#68765e}
.video-chapters .video-chapter{display:block;padding:14px 0;border-bottom:1px solid #e9ede4}
.video-chapter>span{display:block;font:9px var(--sample-mono);color:#9aa68c;margin-bottom:8px}
.video-chapters .video-chapter>b{font-size:11px;font-weight:400;line-height:1.7;display:block;color:#728265}
.chapter-wave{height:28px;display:flex;align-items:center;gap:4px;margin-top:25px}
.chapter-wave i{width:2px;height:8px;background:#b1bea2}
.chapter-wave i:nth-child(3n){height:21px}.chapter-wave i:nth-child(2n){height:14px}
.video-chapters>p{font-size:9px;line-height:1.8;color:#a6af9a;margin-top:10px}
