:root{--plot-bg:#eef1f4;--plot-surface:#fff;--plot-ink:#17191f;--plot-muted:#64707d;--plot-soft:#8d98a5;--plot-line:#dde3ea;--plot-lift:#f7f9fb;--plot-primary:#16836b;--plot-primary-soft:#e8f6f1;--font-sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}*{box-sizing:border-box}html{background:var(--plot-bg);min-height:100%;color:var(--plot-ink);font-family:var(--font-sans);overflow-x:hidden}body{background:var(--plot-bg);min-height:100dvh;margin:0;overflow-x:hidden}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.appShell{background:linear-gradient(#f7f9fb 0%,#eef1f4 46%,#e8edf2 100%);place-items:stretch center;min-height:100dvh;display:grid}.phoneFrame{background:var(--plot-surface);grid-template-rows:auto minmax(0,1fr) auto;width:min(100%,430px);min-height:100dvh;display:grid;position:relative;box-shadow:0 20px 70px #17191f1f}.topBar{min-height:76px;padding:calc(14px + env(safe-area-inset-top)) 14px 10px;border-bottom:1px solid var(--plot-line);background:#fffffff5;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:12px;display:grid}.topBar h1,.topBar p,.stack h2,.stack p,.agentScreen p{margin:0}.topBar h1{letter-spacing:0;font-size:24px;line-height:1.05}.eyebrow,.sectionKicker,.tag{color:var(--plot-primary);letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800;line-height:1.2}.iconButton,.authButton{border:1px solid var(--plot-line);background:var(--plot-lift);width:42px;height:42px;color:var(--plot-primary);border-radius:999px;place-items:center;display:grid}.iconButton svg,.authButton svg{stroke-width:2.2px;width:20px;height:20px}.authButton:disabled{color:var(--plot-soft);cursor:not-allowed}.screenContent{min-height:0;padding:12px 12px calc(14px + env(safe-area-inset-bottom));overflow-y:auto}.agentScreen{min-height:calc(100dvh - 76px - 74px - env(safe-area-inset-bottom));grid-template-rows:minmax(0,1fr) auto;gap:10px;display:grid}.agentThread{align-content:end;gap:14px;min-height:0;padding:8px 2px;display:grid}.message{gap:8px;max-width:100%;display:grid}.message.assistant{grid-template-columns:30px minmax(0,1fr);align-items:start}.message.user{justify-items:end}.avatar{background:var(--plot-ink);color:#fff;border-radius:999px;place-items:center;width:30px;height:30px;font-size:13px;font-weight:900;line-height:1;display:grid}.bubble{border:1px solid var(--plot-line);color:#20242b;background:#fff;border-radius:8px;gap:10px;max-width:100%;padding:12px;font-size:14px;line-height:1.58;display:grid}.message.user .bubble{border-color:var(--plot-primary);background:var(--plot-primary);color:#fff;max-width:min(86%,330px)}.inlineArtifact,.draftArtifact,.storyObject{background:var(--plot-lift);border:1px solid #d2dbe3;border-radius:8px}.inlineArtifact{gap:5px;padding:10px;display:grid}.inlineArtifact strong{color:var(--plot-ink);font-size:12px;line-height:1.2}.inlineArtifact span{color:var(--plot-muted);font-size:12px;line-height:1.45}.draftArtifact{background:#fbfcfd;gap:10px;padding:12px;font-size:14px;line-height:1.7;display:grid}.storyObjectList{gap:8px;display:grid}.storyObject{background:var(--plot-lift);border:1px solid #d2dbe3;border-radius:8px;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:10px;padding:10px;display:grid}.storyObject div,.savedObject{gap:4px;min-width:0;display:grid}.storyObject span,.savedObject span{color:var(--plot-primary);text-transform:uppercase;font-size:11px;font-weight:850;line-height:1.1}.storyObject strong,.savedObject strong{color:var(--plot-ink);font-size:13px;line-height:1.25}.storyObject p,.savedObject p,.emptyText{color:var(--plot-muted);font-size:12px;line-height:1.45}.storyObject button{background:var(--plot-ink);color:#fff;border:0;border-radius:8px;justify-content:center;align-items:center;gap:4px;min-height:34px;font-size:12px;font-weight:850;display:inline-flex}.storyObject button:disabled{background:var(--plot-primary-soft);color:var(--plot-primary);cursor:default}.storyObject button svg{width:14px;height:14px}.composer{border:1px solid var(--plot-line);background:#fff;border-radius:8px;grid-template-columns:minmax(0,1fr) 42px;align-items:end;gap:8px;padding:8px;display:grid}.composer textarea{resize:none;min-height:40px;max-height:120px;color:var(--plot-ink);border:0;outline:none;padding:10px 4px;font-size:14px;line-height:1.35}.composer button{background:var(--plot-ink);color:#fff;border:0;border-radius:8px;place-items:center;width:42px;height:42px;display:grid}.composer button:disabled{cursor:default;background:#c9d2da}.composer button svg{width:18px;height:18px}.stack{gap:12px;display:grid}.plainIntro,.resourceCard,.libraryList{border:1px solid var(--plot-line);background:#fff;border-radius:8px}.plainIntro{background:#fbfcfd;padding:14px}.plainIntro h2,.resourceCard h2{color:var(--plot-ink);letter-spacing:0;margin:4px 0 0;font-size:17px;line-height:1.25}.plainIntro p,.resourceCard p{color:var(--plot-muted);font-size:13px;line-height:1.5}.plainIntro p:last-child,.resourceCard p{margin-top:8px}.itemList{gap:10px;display:grid}.resourceCard{grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:12px;padding:13px;display:grid}.resourceCard h2{font-size:16px}.resourceCard button{background:var(--plot-primary-soft);width:84px;min-height:42px;color:var(--plot-primary);border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.resourceCard button svg{width:15px;height:15px}.libraryList{display:grid;overflow:hidden}.sectionHeader{justify-content:space-between;align-items:center;gap:10px;display:flex}.sectionHeader span{background:var(--plot-primary-soft);color:var(--plot-primary);border-radius:999px;padding:5px 8px;font-size:11px;font-weight:850}.libraryRow{border:0;border-bottom:1px solid var(--plot-line);min-height:62px;color:var(--plot-ink);text-align:left;background:#fff;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;display:grid}.libraryRow:last-child{border-bottom:0}.libraryRow svg{width:20px;height:20px;color:var(--plot-primary)}.libraryRow span{gap:3px;min-width:0;display:grid}.libraryRow strong{font-size:14px;line-height:1.2}.libraryRow small{color:var(--plot-muted);font-size:12px;line-height:1.25}.libraryFooter{color:var(--plot-muted);justify-content:center;gap:18px;padding:10px 0 20px;font-size:12px;display:flex}.savedObjectShelf{border:1px solid var(--plot-line);background:#fff;border-radius:8px;gap:10px;padding:14px;display:grid}.savedObject{border:1px solid var(--plot-line);background:var(--plot-lift);border-radius:8px;padding:10px}.bottomTabs{min-height:calc(66px + env(safe-area-inset-bottom));padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--plot-line);background:#fffffff5;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.bottomTab{min-width:0;color:var(--plot-muted);border-radius:8px;align-content:center;place-items:center;gap:4px;font-size:11px;font-weight:780;line-height:1;text-decoration:none;display:grid}.bottomTab svg{stroke-width:2.15px;width:20px;height:20px}.bottomTab[aria-current=page]{background:var(--plot-primary-soft);color:var(--plot-primary)}.legalPage{width:min(100% - 28px,680px);color:var(--plot-ink);margin:0 auto;padding:34px 0 56px}.legalBack{color:var(--plot-primary);margin-bottom:26px;font-size:13px;font-weight:850;text-decoration:none;display:inline-flex}.legalPage h1{letter-spacing:0;margin:0 0 14px;font-size:30px;line-height:1.1}.legalPage h2{margin:26px 0 8px;font-size:17px}.legalPage p{color:var(--plot-muted);font-size:14px;line-height:1.65}.legalNote{color:var(--plot-soft);margin-top:32px}@media (min-width:620px){.phoneFrame{min-height:min(900px,100dvh)}}
