:root{color:#17212b;background:#f5f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer}.app-shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.app-shell-reader{grid-template-columns:1fr}.app-shell-reader .sidebar{display:none}.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;background:#111827;color:#f8fafc}.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;font-weight:800;font-size:18px;cursor:pointer}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#2dd4bf;color:#06231f}.sidebar nav{display:grid;gap:8px}.sidebar button{width:100%;min-height:44px;padding:12px 14px;border-radius:8px;background:transparent;color:#cbd5e1;text-align:left}.sidebar button.active,.sidebar button:hover{background:#1f2937;color:#fff}.main{padding:28px}.login-screen{display:grid;place-items:center;min-height:100vh;padding:24px;background:#e8eff0}.login-panel{width:min(420px,100%);padding:24px;border:1px solid #d4dde2;border-radius:8px;background:#fff;box-shadow:0 18px 52px #0f172a1f}.login-brand{margin-bottom:20px;color:#17212b}.auth-tabs{margin-bottom:16px}.status-panel{display:grid;gap:16px}.status-panel h1,.status-panel p{margin:0}.status-details{display:grid;gap:8px;margin:0}.status-details div{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-radius:8px;background:#f1f5f9}.status-details dt,.status-details dd{margin:0}.status-details dt{color:#64748b;font-weight:800}.status-details dd{font-weight:900}.login-error{margin:0 0 12px;color:#b91c1c;font-weight:900}.topbar{display:flex;align-items:center;justify-content:flex-start;gap:20px;margin-bottom:24px}.topbar h1{margin:0;font-size:28px}.eyebrow{margin:0 0 4px;color:#65758b;font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}.section-stack{display:grid;gap:24px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.metric,.panel,.product-card,.script-item,.edit-card{border:1px solid #dfe5ea;border-radius:8px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.metric{padding:20px}.metric-button{color:inherit;text-align:left}.metric-button:hover{border-color:#0f766e}.metric span{display:block;color:#667085;font-weight:700}.metric strong{display:block;margin-top:8px;font-size:38px}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-head h2{margin:0;font-size:20px}.backup-actions{display:flex;flex-wrap:wrap;gap:10px}.import-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.import-button input{display:none}.segmented-control{display:flex;gap:6px;padding:6px;border:1px solid #dbe3ea;border-radius:8px;background:#eef3f6}.segmented-control button{flex:1;min-height:40px;border-radius:8px;background:transparent;color:#475569;font-weight:900}.segmented-control button.active{background:#fff;color:#0f766e;box-shadow:0 1px 4px #0f172a14}.user-tabs{flex-wrap:wrap}.user-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.user-tabs span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:13px}.primary-button,.ghost-button,.text-button,.danger-button{min-height:42px;padding:10px 14px;border-radius:8px;font-weight:800}.primary-button{background:#0f766e;color:#fff}.ghost-button{border:1px solid #cfd8df;background:#fff;color:#263442}.text-button{background:transparent;color:#0f766e}.danger-button{background:#fff1f2;color:#be123c}.table-list,.script-list{display:grid;gap:10px}.user-row{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(120px,160px) auto;align-items:center;gap:16px;padding:16px;border:1px solid #e6ebef;border-radius:8px;background:#fff}.user-row h3,.user-row p{margin:0}.user-row small{color:#64748b;font-weight:700}.user-row select{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#17212b;font-weight:800}.row-button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;min-height:68px;padding:12px;border:1px solid #e6ebef;border-radius:8px;background:#fff;color:inherit;text-align:left}.dashboard-script-row{grid-template-columns:1fr auto auto auto}.row-button small,.script-item p,.product-card p,.product-card small{color:#667085}.row-button strong,.row-button small{display:block}.status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border-radius:999px;font-size:13px;font-weight:800}.status.published{background:#dcfce7;color:#166534}.status.draft{background:#fef9c3;color:#854d0e}.status.archived{background:#e5e7eb;color:#374151}.status.member-pending{background:#fef3c7;color:#92400e}.status.member-active{background:#dcfce7;color:#166534}.status.member-rejected,.status.member-disabled{background:#fee2e2;color:#991b1b}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-card{display:grid;gap:10px;min-height:220px;padding:20px;color:inherit;text-align:left}.product-card:hover{border-color:#0f766e}.product-open{display:grid;gap:10px;width:100%;color:inherit;text-align:left}.product-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:auto;padding-top:10px}.product-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#e0f2fe;color:#075985;font-weight:900}.product-card strong{font-size:20px}.script-item{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:16px;padding:16px}.script-item h3,.script-item p{margin:0}.item-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.reader-main{padding:0;background:#d8e1e3}.reader{--reader-card-bg: #ffffff;--reader-card-bg-muted: #f8fafc;--reader-card-bg-hover: #f0fdfa;--reader-card-border: #e2e8f0;--reader-card-border-hover: #99f6e4;--reader-title-color: #17212b;--reader-body-color: #17212b;--reader-summary-color: #475569;--reader-label-color: #0f766e;max-width:1120px;margin:0 auto;padding:8px 10px 58px}.reader.theme-warm{--reader-card-bg: #fff8df;--reader-card-bg-muted: #fff3c4;--reader-card-bg-hover: #ffedaa;--reader-card-border: #ecd9a7;--reader-card-border-hover: #f4c95d}.reader.theme-dark{--reader-card-bg: #17212b;--reader-card-bg-muted: #1f2937;--reader-card-bg-hover: #263241;--reader-card-border: #334155;--reader-card-border-hover: #2dd4bf}.reader.tone-ink{--reader-title-color: #17212b;--reader-body-color: #17212b;--reader-summary-color: #475569;--reader-label-color: #0f766e}.reader.tone-green{--reader-title-color: #0f766e;--reader-body-color: #0f766e;--reader-summary-color: #0f766e;--reader-label-color: #0f766e}.reader.tone-white{--reader-title-color: #f8fafc;--reader-body-color: #f8fafc;--reader-summary-color: #e2e8f0;--reader-label-color: #99f6e4}.reader.dock-at-top{padding-top:8px;padding-bottom:14px}.reader-header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:56px 1fr 56px 56px;align-items:center;gap:8px;margin:0 -10px 6px;padding:8px 10px;border-bottom:1px solid #d7e0e2;background:#eef3f3f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.dock-at-top .reader-header{top:0}.dock-at-top .script-side-panel{top:58px}.reader-header h1,.reader-header p{margin:0;text-align:center}.reader-title{min-width:0}.reader-title h1,.reader-title p{margin:0;text-align:center}.reader-title h1{overflow:hidden;color:#17212b;font-size:17px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.reader-title p{color:#64748b;font-size:12px;font-weight:800}.reader-back,.reader-edit,.reader-logout{min-height:40px;border-radius:8px;background:#fff;color:#17212b;font-weight:800}.reader-logout{background:#f1f5f9}.reader-progress{position:sticky;top:60px;z-index:19;max-width:none;display:none;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:6px;padding:6px;border-radius:8px;background:#dbe7e7}.reader-progress button{min-height:34px;border-radius:8px;background:#fff;color:#334155;font-weight:900}.reader-progress button.current{background:#0f766e;color:#fff}.reader-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start}.script-side-panel{position:sticky;top:58px;z-index:18;display:grid;grid-template-columns:minmax(118px,170px) 1fr 1fr;gap:6px;padding:6px;border:1px solid #c8d2d7;border-radius:8px;background:#f8fafcf5;box-shadow:0 10px 24px #0f172a14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.script-side-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.script-side-head p,.script-side-head h2,.script-focus-box p,.side-section h3,.script-note p{margin:0}.script-side-head p,.script-focus-box small,.side-row small,.script-note p{color:#64748b;font-weight:800}.script-side-head h2{font-size:20px}.script-side-head span{display:grid;place-items:center;min-width:72px;height:38px;border-radius:8px;background:#e0f2fe;color:#075985;font-weight:900}.script-focus-box,.script-note,.text-size-controls,.reader-theme-controls{display:grid;gap:2px;min-height:42px;padding:5px 8px;border:1px solid #d6dee4;border-radius:8px;background:#fff}.text-size-controls{grid-template-columns:repeat(3,1fr);gap:5px}.reader-theme-controls{grid-template-columns:auto repeat(3,1fr);gap:5px}.reader-control-label{align-self:center;color:#64748b;font-size:12px;font-weight:900}.text-size-controls button{min-height:30px;border-radius:8px;background:#edf2f7;color:#334155;font-weight:900}.text-size-controls button.active{background:#0f766e;color:#fff}.theme-chip,.tone-chip{min-height:30px;border:1px solid #d1d9e0;border-radius:8px;font-weight:900}.theme-chip.light{background:#fff;color:#17212b}.theme-chip.warm{background:#fff7d6;color:#3f2f13}.theme-chip.dark{background:#17212b;color:#f8fafc}.tone-chip.ink{background:#fff;color:#17212b}.tone-chip.green{background:#ecfdf5;color:#0f766e}.tone-chip.white{background:#17212b;color:#f8fafc}.theme-chip.active,.tone-chip.active{border-color:#0f766e;box-shadow:0 0 0 2px #0f766e2e}.script-focus-box strong{font-size:15px;line-height:1.25}.side-section{min-width:0}.side-section h3{font-size:14px;font-weight:900;color:#334155}.side-button-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;height:100%}.side-row{display:grid;grid-template-columns:22px 1fr;gap:5px;align-items:center;min-height:42px;padding:5px;border:1px solid #d6dee4;border-radius:8px;background:#fff;color:#17212b;text-align:left}.side-row.active{border-color:#0f766e;background:#ecfdf5}.side-row strong,.side-row small{display:block}.script-side-panel .side-row small{display:none}.side-row em{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#dbeafe;color:#1e3a8a;font-size:14px;font-style:normal;font-weight:900}.side-row.objection em{background:#fee2e2;color:#991b1b}.side-return-box{padding-top:2px}.talk-paper{width:100%;min-height:calc(100vh - 190px);padding:10px 20px 82px;border:1px solid #d1d5db;border-radius:4px;background:#fff;box-shadow:0 24px 70px #0f172a24}.paper-meta{display:flex;justify-content:space-between;gap:16px;margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid #e5e7eb;color:#64748b;font-size:13px;font-weight:900}.talk-flow{display:grid;gap:8px}.talk-card,.objection-card{scroll-margin-top:118px;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:none}.theme-warm .talk-card,.theme-warm .objection-card{border-color:#ecd9a7;background:#fff8df}.theme-dark .talk-card,.theme-dark .objection-card{border-color:#334155;background:#17212b}.talk-card.active,.objection-card.active{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1f}.theme-dark .talk-card.active,.theme-dark .objection-card.active{border-color:#2dd4bf;box-shadow:0 0 0 3px #2dd4bf38}.talk-card:not(.active),.objection-card:not(.active){display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:7px 10px;background:#f8fafc;cursor:pointer}.theme-warm .talk-card:not(.active),.theme-warm .objection-card:not(.active){background:#fff3c4}.theme-dark .talk-card:not(.active),.theme-dark .objection-card:not(.active){background:#1f2937}.talk-card:not(.active):hover,.objection-card:not(.active):hover{border-color:#99f6e4;background:#f0fdfa}.theme-warm .talk-card:not(.active):hover,.theme-warm .objection-card:not(.active):hover{border-color:#f4c95d;background:#ffedaa}.theme-dark .talk-card:not(.active):hover,.theme-dark .objection-card:not(.active):hover{border-color:#2dd4bf;background:#263241}.talk-card:not(.active) .summary,.talk-card:not(.active) .talk-body,.talk-card:not(.active) .link-buttons,.objection-card:not(.active) .talk-body,.objection-card:not(.active) .inline-return{display:none}.step-number,.objection-card>span,.objection-title{color:#0f766e;font-size:13px;font-weight:900}.talk-card h2,.objection-card h2{margin:2px 0 6px;font-size:25px}.theme-dark .talk-card h2,.theme-dark .objection-card h2{color:#f8fafc}.theme-warm .talk-card h2,.theme-warm .objection-card h2{color:#2f2412}.summary{margin:0 0 8px;color:#475569;font-size:17px;font-weight:800}.theme-warm .summary{color:#6b4e16}.theme-dark .summary{color:#cbd5e1}.talk-body{margin:0;color:#17212b;font-size:23px;line-height:1.72;white-space:pre-wrap}.theme-warm .talk-body{color:#2f2412}.theme-dark .talk-body{color:#f8fafc}.text-small .talk-body{font-size:19px}.text-large .talk-body{font-size:27px;line-height:1.65}.talk-red{color:#dc2626!important;font-weight:900}.theme-dark .talk-red{color:#fb7185!important}.reader .talk-card,.reader .objection-card{border-color:var(--reader-card-border);background:var(--reader-card-bg)}.reader .talk-card:not(.active),.reader .objection-card:not(.active){background:var(--reader-card-bg-muted)}.reader .talk-card:not(.active):hover,.reader .objection-card:not(.active):hover{border-color:var(--reader-card-border-hover);background:var(--reader-card-bg-hover)}.reader .talk-card h2,.reader .objection-card h2{color:var(--reader-title-color)}.reader .talk-body{color:var(--reader-body-color)}.reader .talk-body span{color:inherit}.reader .summary{color:var(--reader-summary-color)}.reader .step-number,.reader .objection-card>span,.reader .objection-title{color:var(--reader-label-color)}.reader .talk-body .talk-red{color:#dc2626!important}.reader.theme-dark .talk-body .talk-red{color:#fb7185!important}.reader.theme-dark.tone-ink{--reader-title-color: #f8fafc;--reader-body-color: #f8fafc;--reader-summary-color: #e2e8f0;--reader-label-color: #99f6e4}.reader.theme-dark.tone-green{--reader-title-color: #ccfbf1;--reader-body-color: #5eead4;--reader-summary-color: #99f6e4;--reader-label-color: #5eead4}.link-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.personal-note-panel{margin-top:10px;border:1px solid #dbe3e8;border-radius:8px;background:#f8fafc}.personal-note-panel summary{min-height:38px;padding:8px 10px;color:#334155;cursor:pointer;font-weight:900}.personal-note-panel summary span{margin-left:8px;padding:3px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px}.personal-note-panel textarea{width:calc(100% - 20px);min-height:92px;margin:0 10px 8px;padding:10px;border:1px solid #cfd8df;border-radius:8px;resize:vertical}.personal-note-actions{display:flex;gap:8px;justify-content:flex-end;padding:0 10px 10px}.personal-note-actions button{min-height:36px;padding:7px 10px}.link-buttons button,.dock-objections button,.return-button{min-height:46px;padding:8px 10px;border-radius:8px;font-size:15px;font-weight:900}.objection-link{background:#fee2e2;color:#991b1b}.step-link{background:#dbeafe;color:#1e3a8a}.objection-title{margin-top:12px;padding-left:4px;font-size:16px}.objection-card{background:#fff7ed}.return-button{width:100%;background:#111827;color:#fff}.return-button:disabled{cursor:not-allowed;background:#cbd5e1;color:#64748b}.inline-return{margin-top:18px}.reader-dock{position:fixed;left:50%;right:auto;bottom:0;z-index:30;width:min(1120px,calc(100vw - 20px));transform:translate(-50%);display:grid;grid-template-columns:34px minmax(150px,220px) minmax(170px,1fr);align-items:start;gap:6px;padding:6px;border:1px solid #cdd8da;border-bottom:0;border-radius:8px 8px 0 0;background:#fffffff5;box-shadow:0 -12px 34px #0f172a1f}.dock-at-top .reader-dock{top:0;bottom:auto;z-index:40;border-top:0;border-bottom:1px solid #cdd8da;border-radius:0 0 8px 8px;box-shadow:0 12px 34px #0f172a1a}.dock-position-button{min-height:36px;border-radius:8px;background:#edf2f7;color:#334155;font-size:18px;font-weight:900}.dock-objections{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px}.dock-objection-panel{display:grid;gap:6px}.dock-toggle{display:block;width:100%;min-height:36px;padding:7px 10px;border-radius:8px;background:#fee2e2;color:#991b1b;font-weight:900}.dock-objection-panel .dock-objections{display:none}.dock-objection-panel.open .dock-objections{display:grid}.dock-toggle span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:8px;border-radius:999px;background:#fff;color:#991b1b}.dock-objections button{background:#fee2e2;color:#991b1b}.editor-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:18px;align-items:start}.editor-panel.wide{grid-column:2}.field{display:grid;gap:7px;margin-bottom:14px}.field label,.link-editor-head label{color:#475569;font-weight:900}.field input,.field textarea,.field select,.link-editor input,.link-editor select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cfd8df;border-radius:8px;background:#fff;color:#17212b}.field textarea{min-height:150px;resize:vertical;line-height:1.7}.textarea-toolbar{display:flex;justify-content:flex-end;margin-bottom:6px}.red-format-button{min-height:34px;padding:7px 10px;border-radius:8px;background:#fee2e2;color:#b91c1c;font-weight:900}.editor-actions{display:grid;gap:10px}.edit-card{display:grid;gap:8px;margin-top:12px;padding:16px}.edit-card-head,.link-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.edit-card-actions{display:flex;align-items:center;gap:6px}.link-editor{display:grid;grid-template-columns:1fr 1fr auto auto;gap:8px}.link-order-actions{display:grid;grid-template-columns:repeat(2,36px);gap:6px}.order-button{min-height:42px;border-radius:8px;background:#edf2f7;color:#334155;font-weight:900}.order-button:disabled{cursor:not-allowed;opacity:.38}.check-row{display:flex;align-items:center;gap:10px;min-height:42px;font-weight:800}@media(min-width:1180px){.reader{max-width:1360px;padding-right:18px;padding-left:18px}.reader-header{margin-right:-18px;margin-left:-18px}.reader-workspace{grid-template-columns:220px minmax(720px,880px);justify-content:center;gap:12px}.script-side-panel{top:58px;grid-template-columns:1fr;gap:8px;padding:8px}.side-button-list{grid-template-columns:1fr}.side-row{min-height:38px}.talk-paper{max-width:880px;min-height:calc(100vh - 86px);padding:18px 28px 84px}.talk-card,.objection-card{padding:14px 18px}.talk-card:not(.active),.objection-card:not(.active){padding:8px 12px}.talk-body{font-size:22px;line-height:1.78}.text-small .talk-body{font-size:19px}.text-large .talk-body{font-size:25px}.reader-dock{width:min(880px,calc(100vw - 280px))}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:12px}.brand{margin-bottom:12px}.sidebar nav{grid-template-columns:repeat(2,1fr)}.sidebar button{text-align:center}.reader-dock{left:50%;right:auto;width:min(860px,calc(100vw - 16px));transform:translate(-50%)}.reader-workspace{grid-template-columns:1fr}.script-side-panel{position:static;max-height:none;grid-template-columns:1fr}.talk-paper{min-height:auto;padding:12px 14px 84px}.product-grid,.stats-grid,.script-item,.row-button{grid-template-columns:1fr}.item-actions{width:100%}.item-actions button{flex:1}.editor-grid{grid-template-columns:1fr}.editor-panel.wide{grid-column:auto}}@media(max-width:640px){.main{padding:16px}.topbar{align-items:flex-start;flex-direction:column}.reader{padding:8px 8px 62px}.reader-header{margin:0 -8px 10px;grid-template-columns:50px 1fr 50px 50px}.reader-header h1{font-size:15px}.reader-progress{top:70px;max-width:none}.talk-card,.objection-card{padding:18px}.talk-card h2,.objection-card h2{font-size:25px}.talk-body{font-size:20px;line-height:1.75}.text-small .talk-body{font-size:18px}.text-large .talk-body{font-size:23px}.link-buttons,.dock-objections{grid-template-columns:repeat(2,minmax(0,1fr))}.link-buttons button{min-height:54px;font-size:15px}.reader-dock{grid-template-columns:30px minmax(128px,1fr) minmax(116px,1fr);align-items:start;gap:6px;padding:6px}.dock-position-button{min-height:38px;padding:0;font-size:16px}.reader-dock .return-button,.reader-dock .dock-toggle,.reader-dock .dock-objections button{min-height:36px;padding:6px 8px;font-size:13px}.dock-toggle{display:block;width:100%}.dock-objection-panel .dock-objections{display:none}.dock-objection-panel.open .dock-objections{display:grid}.link-editor{grid-template-columns:1fr}}
