:root{--ink:#17363c;--ink-2:#25484e;--paper:#f2f3ef;--surface:#fff;--teal:#117b75;--gold:#d7a53c;--coral:#b95f50;--blue:#315e78;--muted:#6c7978;--line:#d8ded9;--soft:#e7ece7;--shadow:0 18px 45px rgba(23,54,60,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;min-height:100vh}
button,input,select,textarea{font:inherit;letter-spacing:0}
button,a{color:inherit}
a{text-decoration:none}
button{cursor:pointer}
[hidden]{display:none!important}
.eyebrow{margin:0;color:var(--teal);font-size:10px;font-weight:850;letter-spacing:1.35px}
.access-gate{min-height:100vh;display:grid;grid-template-columns:minmax(260px,38%) 1fr;background:var(--surface)}
.gate-brand{background:var(--ink);color:white;display:flex;align-items:flex-start;gap:15px;padding:44px}
.gate-brand span,.brand>span{width:44px;height:44px;display:grid;place-items:center;background:var(--gold);color:var(--ink);font-size:12px;font-weight:900;flex:0 0 auto}
.gate-brand strong{font-family:Georgia,serif;font-size:31px;font-weight:500;margin-top:5px}
.gate-panel{width:min(520px,calc(100% - 48px));align-self:center;margin:40px auto}
.gate-panel h1{font-family:Georgia,serif;font-size:48px;line-height:1.02;font-weight:500;margin:16px 0}
.gate-panel>p:not(.eyebrow){color:var(--muted);line-height:1.7;max-width:470px}
.gate-panel form{margin:34px 0 20px}
.gate-return{width:100%;margin:0 0 18px;border-color:var(--line);color:var(--ink);background:var(--surface)}
.gate-return:hover{border-color:var(--teal);color:var(--teal);background:#f6f9f5}
.gate-panel small{color:var(--muted);font-size:10px}
.gate-panel .gate-return{width:100%}
.form-error{min-height:18px;color:var(--coral);font-size:11px!important;margin:4px 0!important}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:var(--ink);color:white;padding:25px 18px;display:flex;flex-direction:column;z-index:20}
.brand{display:flex;align-items:center;gap:12px;padding:0 7px}
.brand>span{width:38px;height:38px}
.brand strong,.brand small{display:block}
.brand strong{font-family:Georgia,serif;font-size:17px;font-weight:500}
.brand small{font-size:9px;color:#abc0bd;margin-top:3px}
.sidebar nav{margin-top:37px;display:grid;gap:2px;overflow:auto;padding-right:3px}
.sidebar nav button{border:0;background:transparent;color:#aac0bd;padding:9px 10px;text-align:left;font-size:11px;display:grid;grid-template-columns:27px 1fr;align-items:center;border-left:2px solid transparent}
.sidebar nav button span{font-size:8px;color:#71908d}
.sidebar nav button:hover,.sidebar nav button.active{color:white;background:#ffffff09;border-left-color:var(--gold)}
.sidebar-foot{margin-top:auto;padding:17px 8px 2px;border-top:1px solid #ffffff20;display:flex;gap:10px;align-items:flex-start}
.privacy-dot{width:8px;height:8px;border-radius:50%;background:#62c69b;margin-top:3px;box-shadow:0 0 0 4px #62c69b1b}
.sidebar-foot strong,.sidebar-foot small{display:block}
.sidebar-foot strong{font-size:10px}.sidebar-foot small{font-size:8px;color:#9eb5b2;line-height:1.5;margin-top:3px}
main{margin-left:246px;min-height:100vh;padding:0 4.5vw 90px;max-width:1600px}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:34px;position:sticky;top:0;background:rgba(242,243,239,.96);backdrop-filter:blur(12px);z-index:10}
.topbar>div:nth-child(2){margin-right:auto}.topbar>div:nth-child(2)>strong{font-size:12px}.topbar .eyebrow{margin-bottom:3px;font-size:8px}
.top-actions{display:flex;align-items:center;gap:12px}.sync-state{font-size:9px;color:var(--muted)}
.menu-button{display:none}
.quiet-button,.text-button{border:0;background:transparent;font-size:10px;font-weight:750;color:var(--teal);padding:8px}
.view{display:none}.view.active{display:block;animation:enter .24s ease both}@keyframes enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.welcome-band{background:var(--ink);color:white;padding:42px;display:flex;justify-content:space-between;align-items:flex-end;min-height:250px;position:relative;overflow:hidden}
.welcome-band:after{content:"";position:absolute;width:240px;height:240px;border:1px solid #ffffff13;border-radius:50%;right:-68px;top:-72px;box-shadow:0 0 0 55px #ffffff05,0 0 0 110px #ffffff04}
.welcome-band h1,.page-heading h1{font-family:Georgia,serif;font-weight:500;line-height:1.05;margin:14px 0}
.welcome-band h1{font-size:48px;max-width:650px}.welcome-band p:not(.eyebrow){color:#bdd0cd;font-size:12px;line-height:1.7;max-width:620px}
.today-mark{position:relative;z-index:1;text-align:center;border-left:1px solid #ffffff2a;padding-left:32px}.today-mark strong{font-family:Georgia,serif;font-size:62px;font-weight:400;display:block;line-height:.85}.today-mark span{font-size:9px;color:var(--gold);letter-spacing:1px}
.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-top:0}
.metric-strip>div{padding:20px 24px;border-right:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.metric-strip>div:last-child{border:0}.metric-strip span{font-size:10px;color:var(--muted)}.metric-strip strong{font-family:Georgia,serif;font-size:24px;font-weight:500}
.overview-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:15px;margin-top:28px}.surface{background:var(--surface);border:1px solid var(--line);padding:25px}.surface h2,.stack-form h2,.section-title h2,.integration-grid h2{font-family:Georgia,serif;font-size:25px;font-weight:500;margin:8px 0}.surface>p{font-size:11px;color:var(--muted);line-height:1.65}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.section-title select{width:auto;min-width:140px}
.stack-form{display:grid;gap:12px}.stack-form h2{margin:0 0 5px}.stack-form label{display:grid;gap:6px;font-size:9px;font-weight:800;color:var(--muted);text-transform:uppercase}.stack-form input,.stack-form select,.stack-form textarea,.search-input,.section-title select{width:100%;border:1px solid var(--line);background:#fbfcfa;color:var(--ink);padding:11px 12px;outline:none;border-radius:0;font-size:12px;text-transform:none}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.search-input:focus{border-color:var(--teal);box-shadow:0 0 0 2px #117b7514}.stack-form textarea{min-height:100px;resize:vertical;line-height:1.6}.stack-form .large-editor{min-height:225px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.primary-button,.outline-button,.danger-button,.file-button{border:1px solid var(--ink);padding:11px 14px;font-size:10px;font-weight:800;display:inline-flex;justify-content:center;align-items:center;width:max-content;max-width:100%;background:var(--ink);color:white}.outline-button,.file-button{background:transparent;color:var(--ink)}.danger-button{border-color:var(--coral);background:var(--coral)}.file-button input{display:none}
.compact-list,.record-list,.goal-list{display:grid}.empty-state{border-top:1px solid var(--line);padding:24px 0;color:var(--muted);font-size:11px}.compact-record,.record{border-top:1px solid var(--line);padding:13px 0;display:grid;gap:5px}.compact-record{grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.compact-record input{accent-color:var(--teal)}.compact-record strong,.record strong{font-size:12px}.compact-record span,.record-meta{font-size:9px;color:var(--muted)}
.record-head{display:flex;justify-content:space-between;align-items:start;gap:14px}.record-head>div{min-width:0}.record-head strong{display:block}.record-head span{display:block;font-size:9px;color:var(--teal);margin-top:4px}.record p{font-size:11px;color:var(--muted);line-height:1.55;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.record-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.record-actions button,.record-actions a{border:0;background:var(--soft);padding:6px 8px;color:var(--ink);font-size:8px;font-weight:800}.record-actions button.danger-link{color:var(--coral)}
.timeline-surface{margin-top:15px}.horizon-row{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line)}.horizon-row button{background:white;border:0;border-right:1px solid var(--line);padding:19px;text-align:left}.horizon-row button:last-child{border:0}.horizon-row button:hover{background:#f6f9f5}.horizon-row span,.horizon-row strong{display:block}.horizon-row span{font-size:8px;color:var(--teal)}.horizon-row strong{font-family:Georgia,serif;font-size:16px;font-weight:500;margin-top:6px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin:25px 0 32px}.page-heading h1{font-size:43px}.page-heading p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.65;max-width:700px}.page-heading>.search-input{width:260px;margin-bottom:8px}
.workspace-grid{display:grid;gap:15px}.editor-layout{grid-template-columns:minmax(280px,.72fr) minmax(420px,1.28fr);align-items:start}.editor-layout>.surface:first-child{position:sticky;top:100px}
.goal-record{border-top:1px solid var(--line);padding:16px 0}.goal-record header{display:flex;justify-content:space-between;gap:12px}.goal-record h3{font-size:12px;margin:0}.goal-record header span{font-size:9px;color:var(--teal)}.goal-record p{font-size:10px;color:var(--muted);margin:6px 0 12px}.progress-track{height:6px;background:var(--soft);position:relative}.progress-track i{position:absolute;inset:0 auto 0 0;background:var(--teal)}.goal-controls{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.goal-controls span{font-size:9px}.goal-controls div{display:flex;gap:5px}.goal-controls button{border:0;background:var(--soft);font-size:9px;padding:5px 8px}
.course-list{border:1px solid var(--line);background:white}.course-list button{width:100%;display:grid;grid-template-columns:155px minmax(200px,.8fr) minmax(300px,1.2fr);gap:22px;padding:18px 20px;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink);text-align:left;align-items:center}.course-list button:last-child{border:0}.course-list button:hover{background:#f7faf6}.course-list span{font-size:9px;color:var(--teal);font-weight:850}.course-list strong{font-size:12px}.course-list em{font-size:10px;color:var(--muted);font-style:normal;line-height:1.45}
.course-tracker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.course-card{background:white;border:1px solid var(--line);padding:24px;display:grid;gap:20px}.course-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.course-card-head span{font-size:8px;color:var(--teal);font-weight:850}.course-card-head h2{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:8px 0}.course-card-head p{font-size:9px;color:var(--muted);line-height:1.5;margin:0}.course-card-head a{font-size:9px;color:var(--teal);font-weight:800;border-bottom:1px solid var(--teal);padding-bottom:3px;white-space:nowrap}.course-controls{display:grid;grid-template-columns:.7fr 1.3fr;gap:15px}.course-controls label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:8px;font-weight:800;color:var(--muted);text-transform:uppercase}.course-controls select{border:1px solid var(--line);background:#fbfcfa;padding:8px;color:var(--ink);font-size:10px;text-transform:none}.course-controls input{accent-color:var(--teal);min-width:80px}.course-controls output{font-size:9px;color:var(--ink)}
.integration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.integration-grid article{background:white;border:1px solid var(--line);padding:24px;min-height:210px;display:flex;flex-direction:column}.integration-grid span{font-size:8px;color:var(--teal);font-weight:850}.integration-grid h2{font-size:27px}.integration-grid p{font-size:11px;color:var(--muted);line-height:1.6}.integration-grid a{margin-top:auto;font-size:10px;color:var(--teal);font-weight:800;border-bottom:1px solid var(--teal);width:max-content;padding-bottom:3px}.prompt-lab{margin-top:15px;display:grid;grid-template-columns:.75fr 1.25fr;gap:35px;align-items:start}.prompt-lab>div p:not(.eyebrow){font-size:11px;color:var(--muted);line-height:1.6}.prompt-lab small{font-size:9px;color:var(--teal)}
.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.settings-grid .surface{min-height:200px;display:flex;flex-direction:column;align-items:flex-start}.settings-grid .surface p{flex:1}.danger-zone{border-color:#e2c4bd}
.toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:white;padding:12px 16px;font-size:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:none}
.reader-open{overflow:hidden}.reader-overlay,.preview-overlay{position:fixed;inset:0;background:#f7f6ef;z-index:80;overflow:auto}.preview-overlay{z-index:85}.reader-bar{position:sticky;top:0;min-height:78px;background:rgba(247,246,239,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:16px max(24px,calc((100vw - 860px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:2}.reader-bar strong{display:block;font-family:Georgia,serif;font-size:17px;font-weight:500;margin-top:5px}.reader-bar>div:last-child{display:flex;gap:8px;align-items:center}.reader-overlay>article{max-width:760px;margin:0 auto;padding:68px 24px 120px}.reader-meta{font-size:10px;color:var(--teal);text-transform:uppercase;margin-bottom:40px}.reader-body{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.8;color:#253f44}.reader-body h1{font-size:38px;line-height:1.15;margin:1.7em 0 .7em}.reader-body h2{font-size:28px;line-height:1.2;margin:1.6em 0 .6em}.reader-body h3{font-size:22px;margin:1.4em 0 .5em}.reader-body p{margin:0 0 1.2em}.reader-body li{margin:.45em 0}.reader-body code{font-family:"SFMono-Regular",Consolas,monospace;font-size:.78em;background:#e7ece7;padding:2px 5px}.document-preview{max-width:1100px;margin:0 auto;padding:28px 24px 80px;display:grid;gap:14px}.document-preview iframe{width:100%;height:calc(100vh - 150px);border:1px solid var(--line);background:white}.document-preview img{max-width:100%;max-height:calc(100vh - 150px);margin:auto;object-fit:contain}
@media(max-width:1050px){.integration-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:.8fr 1.2fr}.course-list button{grid-template-columns:125px 1fr}.course-list em{grid-column:2}.welcome-band h1{font-size:42px}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.2s;box-shadow:var(--shadow)}.sidebar.open{transform:none}.menu-button{display:inline-flex;border:1px solid var(--line);background:transparent;padding:8px 10px;font-size:9px;margin-right:14px}main{margin:0;padding:0 22px 70px}.editor-layout,.overview-grid,.prompt-lab,.course-tracker{grid-template-columns:1fr}.editor-layout>.surface:first-child{position:static}.topbar{margin-bottom:24px}.sync-state{display:none}.welcome-band{padding:32px}.horizon-row{grid-template-columns:repeat(3,1fr)}.metric-strip{grid-template-columns:repeat(2,1fr)}.metric-strip>div:nth-child(2){border-right:0}.metric-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.course-list button{grid-template-columns:1fr;gap:5px}.course-list em{grid-column:auto}.access-gate{grid-template-columns:1fr}.gate-brand{min-height:150px}.gate-panel{padding:30px 0}.gate-panel h1{font-size:40px}}
@media(max-width:560px){main{padding:0 14px 60px}.topbar{height:66px}.top-actions{gap:2px}.welcome-band{min-height:310px;align-items:flex-start;padding:26px;flex-direction:column}.welcome-band h1,.page-heading h1{font-size:35px}.today-mark{border-left:0;border-top:1px solid #ffffff2a;padding:18px 0 0;text-align:left;width:100%}.today-mark strong{font-size:42px}.metric-strip{grid-template-columns:1fr}.metric-strip>div{border-right:0!important;border-bottom:1px solid var(--line)!important}.metric-strip>div:last-child{border-bottom:0!important}.horizon-row{grid-template-columns:repeat(2,1fr)}.horizon-row button:nth-child(even){border-right:0}.form-row,.integration-grid,.settings-grid,.course-controls{grid-template-columns:1fr}.course-card-head{display:grid}.page-heading{align-items:flex-start;flex-direction:column}.page-heading>.search-input{width:100%}.surface{padding:20px}.section-title{align-items:flex-start}.gate-brand{padding:28px}.gate-panel h1{font-size:34px}}

.library-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-directory article{min-height:225px;background:var(--surface);border:1px solid var(--line);padding:25px;display:flex;flex-direction:column}.library-directory article>span{font-size:8px;color:var(--teal);font-weight:850;text-transform:uppercase}.library-directory h2{font:500 25px/1.12 Georgia,serif;margin:14px 0 10px}.library-directory p{font-size:11px;line-height:1.65;color:var(--muted);margin:0 0 22px}.library-directory article>div{margin-top:auto;display:flex;justify-content:space-between;align-items:end;gap:18px}.library-directory small{font-size:8px;color:var(--muted)}.library-directory a{font-size:9px;font-weight:850;color:var(--teal);border-bottom:1px solid var(--teal);padding-bottom:3px;white-space:nowrap}.library-portals{margin-top:15px}.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line)}.portal-grid a{padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfcfa}.portal-grid a:nth-child(3n){border-right:0}.portal-grid strong,.portal-grid span{display:block}.portal-grid strong{font:500 16px Georgia,serif}.portal-grid span{font-size:8px;color:var(--muted);margin-top:7px}.portal-grid a:hover{background:var(--soft)}
.profile-layout{grid-template-columns:minmax(460px,1.18fr) minmax(290px,.82fr);align-items:start}.profile-preview{position:sticky;top:100px;min-height:430px;background:var(--ink);color:white;padding:35px;display:flex;flex-direction:column}.profile-preview .eyebrow{color:var(--gold)}.profile-preview h2{font:500 38px/1 Georgia,serif;margin:30px 0 12px}.profile-preview>strong{font-size:12px;color:#d5e0de;line-height:1.55}.profile-preview>p{font:400 17px/1.6 Georgia,serif;color:#b8cdca;margin:32px 0}.profile-preview>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.profile-preview a{border:1px solid #ffffff38;padding:8px 10px;font-size:8px;font-weight:800}.profile-preview>small{font-size:8px;color:#86a5a1;margin-top:20px}
@media(max-width:1050px){.portal-grid{grid-template-columns:repeat(2,1fr)}.portal-grid a:nth-child(3n){border-right:1px solid var(--line)}.portal-grid a:nth-child(2n){border-right:0}}
@media(max-width:820px){.profile-layout{grid-template-columns:1fr}.profile-preview{position:static}}
@media(max-width:560px){.library-directory,.portal-grid{grid-template-columns:1fr}.portal-grid a{border-right:0!important}.profile-preview{padding:25px}.profile-preview h2{font-size:32px}}
