@font-face{font-family:'Vazirmatn Local';src:url('assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[lang=fa]{--font:'Vazirmatn Local',Vazirmatn,Tahoma,sans-serif}
html[lang=fa] body,html[lang=fa] button,html[lang=fa] input,html[lang=fa] textarea,html[lang=fa] .brand,html[lang=fa] .story-copy h1,html[lang=fa] h2,html[lang=fa] .stage-task h3{font-family:var(--font)}
html[lang=fa] .primary,html[lang=fa] .nav-open,html[lang=fa] .publish-button{background:#214c42;color:#fff;border:1px solid #214c42;box-shadow:0 3px 0 #16382f;padding:13px 23px;font-weight:600}html[lang=fa] .primary:hover,html[lang=fa] .nav-open:hover,html[lang=fa] .publish-button:hover{background:#16382f;color:#fff;box-shadow:0 3px 0 #10291f}html[lang=fa] .primary:focus-visible,html[lang=fa] .nav-open:focus-visible{outline:3px solid #927344;outline-offset:5px}html[lang=fa] .site-nav .nav-open{font-size:12px;padding:10px 16px}html[lang=fa] .story-copy h1{line-height:1.55}.poetry-section{background:#edece3;border-block:1px solid #d3d7c9;padding:68px 0 76px;scroll-margin-top:25px}.poetry-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:30px}.poetry-heading h2{font-size:36px;margin:9px 0 0;font-weight:500}.poetry-index{font-size:12px;color:#667263;white-space:nowrap}.poetry-index span{padding-inline:13px;color:#939d8e}.poetry-layout{display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.3fr);border:1px solid #c6cebe;border-radius:16px;overflow:hidden;background:#fbf9f2;box-shadow:0 20px 60px #31453006}.verse-card{padding:34px 30px;display:flex;flex-direction:column}.verse-label{display:flex;align-items:center;gap:13px;color:#786443;font-size:12px}.verse-label>span{border:1px solid #c9bea9;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:11px}.shahnameh-verse{margin:40px -5px 20px;text-align:center;color:#294e43;font-size:clamp(19px,1.85vw,26px);font-weight:500;white-space:nowrap}.shahnameh-verse p{margin:5px 0;line-height:2.4!important}.poet{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 34px;font-size:12px;color:#786443}.poet span{color:#7e8477;font-size:10px;border-inline-start:1px solid #c9cbbb;padding-inline-start:10px}.verse-meaning{padding-top:24px;border-top:1px solid #d8dbce}.verse-meaning>span,.today-reading>span{font-size:11px;font-weight:600;color:#7b694c}.verse-meaning p,.today-reading p{font-size:13px;line-height:2.15!important;color:#576454;margin:6px 0 20px}.today-reading p{margin-bottom:24px}.poem-to-work{margin-top:auto;display:flex;justify-content:space-between;gap:12px;color:#214c42;font-size:12px;font-weight:600}.knowledge-scene{background:#e0e7dd;min-width:0;border-inline-start:1px solid #c6cebe;display:flex;flex-direction:column}.scene-topline{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#60715e;padding:22px 24px}.scene-topline>span:first-child{display:flex;align-items:center;gap:7px}.scene-topline i{width:5px;height:5px;border-radius:50%;background:#4a765b}.scene-viewport{width:100%;height:340px;position:relative;min-width:0;flex:1;min-height:310px;touch-action:pan-y;overflow:hidden}.scene-viewport canvas{display:block;width:100%;height:100%}.scene-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;text-align:center;color:#466049}.scene-fallback-symbol{font-size:48px;color:#67816c}.scene-fallback strong{font-size:17px}.scene-fallback p{font-size:13px;max-width:330px}.scene-fallback>span:last-child{font-size:11px}.scene-description{padding:8px 26px 18px;min-height:88px;text-align:center}.scene-description b{display:block;font-size:15px;font-weight:500;color:#294e43}.scene-description span{display:block;color:#60715e;font-size:11px;line-height:1.9;margin-top:6px}.scene-chapters{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 21px}.scene-chapters button{padding:11px 4px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #c1ccba;border-radius:6px;color:#52634c;background:transparent;font-size:10px}.scene-chapters button>span{font-size:9px;opacity:.7}.scene-chapters button[aria-pressed=true]{background:#2d5447;border-color:#2d5447;color:#fff}.scene-controls{display:flex;align-items:center;gap:13px;padding:16px 23px 22px}.scene-controls button{font-size:10px;background:transparent;color:#3c5f4c;text-decoration:underline;text-underline-offset:4px;padding:5px}.scene-controls>span{font-size:9px;color:#71806a;margin-inline-start:auto}.service-tags{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px}.service-tags span{font-size:10px;color:#596851;border:1px solid #bdc8b6;border-radius:4px;padding:3px 7px}.crew-card .sprite{margin:22px auto}.service-note{font-size:11px;color:#65725d;margin:24px 0 0;line-height:2}
/* Persian studio: deliberate hierarchy, comfortable density, stable composer. */
html[lang=fa] #workspace{height:100dvh;min-height:620px}html[lang=fa] #sidebar{width:248px;padding:25px 17px 18px;overflow:auto}html[lang=fa] #sidebar .brand{margin-bottom:24px}html[lang=fa] .sidebar-section{font-size:10px;margin:24px 8px 8px}html[lang=fa] .project{padding:10px;border-radius:6px;gap:10px}html[lang=fa] .project span.project-name-label{direction:rtl;unicode-bidi:normal;font-size:12px}html[lang=fa] .thread{font-size:11px;padding:10px;margin-block:3px}html[lang=fa] .thread small{font-size:9px;line-height:1.8}html[lang=fa] .sidebar-bottom small{font-size:10px}.sidebar-verse{margin:28px 6px 24px;border-block:1px solid #cbd5c4;padding:18px 0;color:#52634c}.sidebar-verse>span{font-size:9px;color:#7b694c}.sidebar-verse p{font-size:11px;line-height:2.3!important;margin:10px 0}.sidebar-verse a{display:flex;justify-content:space-between;font-size:10px;color:#486744}html[lang=fa] .workspace-header{min-height:78px;padding:15px 28px;gap:10px;background:#fafaf5}html[lang=fa] .workspace-header>div{font-size:13px}html[lang=fa] #project-title{direction:rtl;unicode-bidi:plaintext;font-weight:600}html[lang=fa] .workspace-header small{font-size:10px;margin-top:4px}html[lang=fa] .workspace-header .publish-button{font-size:11px;padding:8px 13px;box-shadow:none}html[lang=fa] .workspace-header .secondary{font-size:11px;padding:8px 12px}html[lang=fa] .workspace-header .language-switch{font-size:10px;padding:7px 9px}html[lang=fa] .workspace-header .motion-toggle{font-size:10px;padding:6px 8px}.studio-guide-button{font-size:10px;border:0;background:transparent;color:#63735c;padding:7px 0}html[lang=fa] .workspace-body{max-width:1120px;padding:24px 34px 0;min-height:0;margin:0 auto}.fa-work-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;flex-shrink:0}html[lang=fa] .fa-work-heading h2{font-size:24px;line-height:1.7;margin:7px 0 6px;font-weight:500}.fa-work-heading h2 em{font-style:normal;color:#6a7b61}.fa-work-heading p{font-size:11px;margin:0;max-width:470px}.fa-work-heading .eyebrow{font-size:10px}.dashboard-poetry-link{display:flex;align-items:center;gap:10px;font-size:10px;color:#796343;white-space:nowrap}.dashboard-poetry-link>span:first-child{font:36px Georgia,serif}.fa-agent-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:23px;flex-shrink:0}.fa-agent-bar button{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #d7dccf;background:#fafaf6;border-radius:8px;text-align:right}.fa-agent-bar button[aria-pressed=true]{background:#e8eee2;border-color:#779476;box-shadow:inset 0 0 0 1px #77947622}.fa-agent-bar .sprite{width:37px}.fa-agent-bar b{font-size:12px;font-weight:500;display:block}.fa-agent-bar small{font-size:9px;color:#788370;display:block;text-align:right;margin-top:1px}.fa-agent-bar i{font-size:8px;font-style:normal;color:#6e7d62;margin-inline-start:auto}.fa-agent-bar button[aria-pressed=true] i{color:#2e5d41}.conversation-heading{display:flex;justify-content:space-between;font-size:10px;color:#64735c;padding:0 0 12px;border-bottom:1px solid #e1e4d8;flex-shrink:0}.conversation-heading>span:last-child{color:#88917f;font-size:9px}html[lang=fa] #messages{padding:20px 0 0;min-height:100px;overscroll-behavior:contain}html[lang=fa] .message{margin-bottom:22px;gap:13px;font-size:12px}html[lang=fa] .message.user>div:last-child{background:#ebefe4;padding:12px 16px;border-radius:10px 0 10px 10px;flex:0 1 auto;max-width:85%;margin-inline-start:0}html[lang=fa] .message.user p{margin:4px 0 0}html[lang=fa] .message-avatar{width:30px;height:30px;font-size:11px}html[lang=fa] .message-meta{font-size:11px;font-weight:600}html[lang=fa] .message-meta span{font-size:9px}html[lang=fa] .message p{margin:7px 0 13px;line-height:2.1}html[lang=fa] .change-card{max-width:100%}html[lang=fa] #activity{margin:5px 0 9px;flex-shrink:0;border-color:#d0d9c6;border-radius:7px}html[lang=fa] #activity summary{font-size:10px;padding:7px 12px}html[lang=fa] #activity summary>span:last-child{font-size:9px}html[lang=fa] #activity ol{max-height:100px;overflow:auto;font-size:10px}html[lang=fa] .workmate{min-height:42px;margin-bottom:12px;background:transparent;border:0;padding:0;flex-shrink:0}html[lang=fa] .workmate .sprite{width:30px}html[lang=fa] .workmate span{font-size:10px}.composer-caption{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:11px}.composer-caption span{font-size:9px;color:#829073}html[lang=fa] .suggestions{gap:7px;margin-bottom:10px}html[lang=fa] .suggestions button{font-size:10px;border-color:#d6ddcc;background:#f7f8f1;padding:6px 10px}html[lang=fa] #composer{padding:14px 16px;border-radius:10px;border:1px solid #9eaf92;box-shadow:0 5px 25px #314a2906;background:#fffef9}html[lang=fa] #composer:focus-within{border-color:#35664a;box-shadow:0 0 0 3px #35664a0c}html[lang=fa] #prompt{font-size:12px;min-height:52px;line-height:1.9;max-height:140px}html[lang=fa] .model-chip{font-size:10px}html[lang=fa] .timeout-button{font-size:10px}html[lang=fa] .keyboard-hint{font-size:8px;line-height:1.9}kbd{font:inherit}.composer-tools{flex-wrap:wrap}html[lang=fa] .send-button{width:35px;height:35px;background:#214c42;font-size:20px}#fa-stop{color:#765444;font-size:10px;background:#f2e9e2;padding:7px;border:1px solid #d6bfb0;border-radius:5px}#fa-clear-files{font-size:10px;color:#80604c;background:none;padding:5px 0}html[lang=fa] .composer-note{font-size:9px;margin:8px 0 13px}.fa-empty{padding:25px 15px;text-align:center;color:#6c7b62}.fa-empty strong{display:block;font-size:17px;color:#39593f;font-weight:500}.fa-empty p{font-size:12px}.source-example{padding:12px 15px;margin:12px 0;background:#f0f3e9;border:1px solid #d9dfcf;border-radius:7px;font-size:11px}.source-example b{font-size:10px;display:block;color:#6c755f}.source-example ul{padding-inline-start:18px;margin:8px 0 0;line-height:2}.source-example span{display:block;font-size:9px;color:#7a856f;margin-top:5px}.fa-draft-notice{font-size:9px;color:#698060}
/* First-visit setup and a reusable short introduction. */
#studio-onboarding{width:min(610px,calc(100% - 28px));padding:30px;border-radius:14px;max-height:90dvh;overflow:auto}#studio-onboarding::backdrop{background:#1e342ac9;backdrop-filter:blur(6px)}.onboarding-top{display:flex;align-items:center;justify-content:space-between;color:#7b6b4c;font-size:11px}.onboarding-top button{font-size:22px;background:none;padding:0 5px;color:#68745c}.onboarding-progress{display:flex;gap:5px;margin:21px 0 25px}.onboarding-progress span{height:3px;flex:1;background:#e2e5d8;border-radius:3px}.onboarding-progress span.complete{background:#456d4e}.onboarding-panel h2{font-size:25px;margin:0 0 8px;font-weight:500}.onboarding-panel>p{font-size:12px;color:#75816c;margin:0 0 20px;line-height:2}.setup-services{display:grid;gap:9px;border:0;padding:0;margin:0}.setup-services legend{font-size:11px;padding-bottom:10px;color:#6b7b61}.setup-services label{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #d8dfcc;border-radius:8px;cursor:pointer}.setup-services label:has(input:checked){border-color:#588256;background:#edf2e5}.setup-services input{accent-color:#35664a}.setup-services b{display:block;font-size:12px;font-weight:500}.setup-services small{display:block;font-size:10px;color:#7c886e;margin-top:3px}.onboarding-panel label[for=setup-goal]{display:block;font-size:12px;margin:18px 0 9px}#setup-goal{font-size:12px;background:#f3f5eb;border:1px solid #cbd6bc;border-radius:8px;min-height:105px;padding:13px;resize:vertical;color:#2f4b35}.setup-example{font-size:10px;color:#738467;margin-top:8px}.setup-review{background:#eef2e6;border:1px solid #d5dec7;border-radius:9px;padding:18px}.setup-review>span{font-size:10px;color:#7b704f}.setup-review h3{font-size:16px;font-weight:500;margin:7px 0}.setup-review p{font-size:12px;color:#6a7c5d;overflow-wrap:anywhere;white-space:pre-wrap}.setup-tour{padding-inline-start:22px;font-size:12px;line-height:2.3;color:#607451}.setup-tour li::marker{color:#947a4c}.onboarding-actions{display:flex;align-items:center;gap:12px;margin-top:26px}.onboarding-actions .primary{margin-inline-start:auto;font-size:12px;padding:11px 20px}.onboarding-actions>button:not(.primary){background:none;color:#6c7f5e;font-size:11px;padding:9px}.onboarding-local-note{font-size:9px;color:#879379;margin:18px 0 0}.service-badge{font-size:9px;color:#7e886f;border:1px solid #c4d0b5;border-radius:4px;padding:3px 7px}
@media(min-width:1600px){html[lang=fa] .workspace-body{padding-top:32px}.fa-work-heading{margin-bottom:24px}html[lang=fa] .fa-work-heading h2{font-size:28px}}
@media(max-height:850px) and (min-width:761px){html[lang=fa] .fa-work-heading h2{font-size:20px}.fa-work-heading h2 br{display:none}.fa-work-heading{margin-bottom:12px}.fa-agent-bar{margin-bottom:12px}.fa-agent-bar button{padding:7px 10px}html[lang=fa] .workspace-body{padding-top:15px}html[lang=fa] .workmate{min-height:30px;margin-bottom:7px}.sidebar-verse{margin-block:17px;padding-block:12px}}
@media(max-width:1180px){html[lang=fa] #sidebar{width:215px}.fa-agent-bar i{display:none}.dashboard-poetry-link{display:none}html[lang=fa] .workspace-header{padding:12px 20px}.studio-guide-button{font-size:9px}html[lang=fa] .workspace-body{padding-inline:24px}.poetry-layout{grid-template-columns:1fr 1.15fr}.verse-card{padding:28px 24px}.shahnameh-verse{font-size:21px}.scene-chapters{padding-inline:15px;gap:5px}.scene-chapters button{font-size:9px;gap:4px}}
@media(max-width:900px){.poetry-layout{grid-template-columns:1fr}.knowledge-scene{border-inline-start:0;border-top:1px solid #c6cebe}.verse-card{padding:30px}.shahnameh-verse{font-size:25px;margin-top:25px}.scene-viewport{height:380px;flex:auto}.verse-meaning,.today-reading{max-width:560px}.poetry-heading h2{font-size:29px}.poetry-index{font-size:10px}.scene-description{min-height:80px}.scene-chapters button{font-size:11px}.scene-controls>span{font-size:10px}}
@media(max-width:760px){html[lang=fa] #workspace{min-height:0;height:100dvh}html[lang=fa] #sidebar{width:278px}.poetry-section{padding:42px 0}.poetry-heading{align-items:start;flex-direction:column;gap:7px;margin-bottom:22px}.poetry-heading h2{font-size:27px}.verse-card{padding:26px 20px}.shahnameh-verse{font-size:22px;white-space:normal}.shahnameh-verse p{line-height:2.6!important}.poet{margin-bottom:23px}.verse-meaning p,.today-reading p{font-size:12px}.scene-topline{padding:19px 18px;font-size:9px}.scene-viewport{height:310px;min-height:260px}.scene-description{padding:8px 18px 15px}.scene-description span{font-size:10px}.scene-chapters{gap:5px;padding-inline:12px}.scene-chapters button{font-size:9px;padding:10px 3px;gap:4px}.scene-controls{padding:13px 14px 18px;gap:7px}.scene-controls>span{font-size:8px}.scene-controls button{font-size:9px}html[lang=fa] .workspace-header{padding:9px 12px;gap:8px;min-height:68px;flex-wrap:nowrap}.workspace-header .language-switch,.workspace-header .motion-toggle{display:none}html[lang=fa] .workspace-header>div{font-size:12px;min-width:0}.workspace-header #thread-title{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html[lang=fa] .workspace-header .publish-button{font-size:10px;padding:7px 10px}.studio-guide-button{font-size:10px}.fa-work-heading{margin-bottom:13px}html[lang=fa] .fa-work-heading h2{font-size:18px;margin:4px 0}.fa-work-heading h2 br{display:none}.fa-work-heading h2 em{display:none}.fa-work-heading p{font-size:10px;margin:0}.fa-work-heading .eyebrow{display:none}html[lang=fa] .workspace-body{padding:14px 14px 0}.fa-agent-bar{gap:6px;margin-bottom:14px}.fa-agent-bar button{padding:8px 6px;gap:5px}.fa-agent-bar .sprite{width:27px}.fa-agent-bar b{font-size:10px}.fa-agent-bar small{font-size:8px}.conversation-heading{font-size:9px;padding-bottom:8px}html[lang=fa] .message{font-size:11px;gap:9px}html[lang=fa] .message.user>div:last-child{max-width:92%;padding:10px 12px}html[lang=fa] .message-avatar{width:25px;height:25px}html[lang=fa] .message-meta{font-size:10px}html[lang=fa] #messages{padding-top:14px;min-height:65px}html[lang=fa] .workmate{min-height:28px;margin-bottom:6px}.workmate span{font-size:9px!important}.workmate .sprite{width:25px!important}.composer-caption{margin-bottom:7px;font-size:10px}.composer-caption span{font-size:8px}html[lang=fa] .suggestions{margin-bottom:7px;gap:5px}html[lang=fa] .suggestions button{font-size:9px;padding:5px 7px}html[lang=fa] #composer{padding:10px 12px}html[lang=fa] #prompt{font-size:12px;min-height:39px}html[lang=fa] .composer-tools{gap:6px;margin-top:4px}html[lang=fa] .composer-note{font-size:8px;margin:6px 0 8px}.keyboard-hint{display:none}.scene-fallback{padding:20px}.scene-fallback strong{font-size:14px}.scene-fallback p{font-size:11px}.onboarding-panel h2{font-size:23px}#studio-onboarding{padding:22px}.onboarding-actions{gap:8px}.onboarding-actions .primary{padding:10px 15px}.setup-services label{padding:11px}.setup-services small{font-size:9px}html[lang=fa] .site-nav .nav-open{display:block;font-size:10px;padding:9px}.site-nav nav{gap:7px!important}.site-nav .brand{font-size:20px!important}}
@media(max-width:370px){.shahnameh-verse{font-size:19px}.scene-chapters button{font-size:8px}.scene-chapters button>span{display:none}.scene-controls>span{display:none}html[lang=fa] .site-nav .nav-open{padding:8px 6px;font-size:9px}.site-nav .brand-mark{display:none}}
.sidebar-tools{display:flex;gap:8px;align-items:center;margin:0 5px 19px}.sidebar-tools .language-switch,.sidebar-tools .motion-toggle{font-size:10px;padding:6px 8px}.scene-viewport[data-step="1"] + .scene-description b{color:#715b36}.scene-viewport[data-step="2"] + .scene-description b{color:#355948}
html[lang=fa] .crew-card button[data-service-start]{background:#214c42;color:#fff;border:1px solid #214c42;border-radius:6px;padding:12px 15px;font-weight:500}html[lang=fa] .crew-card button[data-service-start]:hover{background:#16382f;color:#fff}
