:root{font-family:"Segoe UI",Arial,sans-serif;color:#20211d;background:#f7f7f2;color-scheme:light;font-synthesis:none;--yellow:#f2d977;--line:#e4e5dc;--muted:#696f60}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}a{color:inherit;text-underline-offset:4px}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #8b731c;outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.skip-link{position:absolute;top:-100px;left:16px;padding:12px;background:#20211d;color:white;z-index:10}.skip-link:focus{top:16px}.logo{width:138px;height:auto;border-radius:12px;display:block}.languages{display:flex;gap:4px;align-items:center}.languages a{font-size:11px;font-weight:600;text-decoration:none;padding:9px;border-radius:7px;color:#696f60}.languages a[aria-current]{background:#eee6c7;color:#20211d}.login-header{max-width:1160px;margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between}.login-layout{max-width:1104px;margin:50px auto 60px;display:grid;grid-template-columns:1fr 440px;gap:90px;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;margin:0 0 20px;color:#747965}.welcome h1{font-size:clamp(36px,4.6vw,60px);line-height:1.08;letter-spacing:-2.5px;margin:0 0 26px}.welcome>p:not(.eyebrow){font-size:17px;line-height:1.8;color:#696f60;max-width:420px}.brand-note{font-size:12px;line-height:1.7;color:#616b51;background:#eef0e7;border-radius:10px;padding:18px;margin-top:32px}.welcome .brand-note{display:flex;align-items:center;gap:18px;max-width:400px;background:#f4e7b2}.brand-note>span{font-size:32px}.login-card{padding:34px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #2c351009}.login-card h2{font-size:26px;letter-spacing:-.8px;margin:0 0 12px}.muted{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.login-card form{margin-top:24px}label{display:block;font-size:13px;font-weight:600;margin:18px 0 9px}input:not([type=hidden]){width:100%;min-height:48px;border:1px solid #cacebf;background:#fdfefb;border-radius:8px;padding:12px;color:#20211d}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px 18px;text-decoration:none;font-size:12px;font-weight:600;min-height:42px}.primary{background:#24291f;color:#fff;border-color:#24291f}.primary:hover{background:#404936}.full{width:100%;margin-top:25px;justify-content:space-between}.private-note{border-top:1px solid var(--line);padding-top:22px;margin-top:24px;color:var(--muted);font-size:12px;line-height:1.7}.help{font-size:12px;font-weight:600}.login-footer{max-width:730px;margin:0 auto 30px;padding:0 24px;text-align:center;color:#747965;font-size:11px;line-height:1.8}.message{padding:13px;border-radius:7px;font-size:13px;line-height:1.6;margin-top:20px}.error{background:#fff0e8;color:#8a3b23}.success{background:#eaf2e3;color:#3e602f}.dashboard-shell{display:grid;grid-template-columns:226px 1fr;min-height:100vh}.sidebar{padding:20px 18px;background:#fcfcf8;border-right:1px solid var(--line);display:flex;flex-direction:column}.sidebar .logo{margin-bottom:26px}.profile{padding:13px 10px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;font-size:13px;font-weight:600;overflow-wrap:anywhere}.avatar{width:30px;height:30px;flex:none;border-radius:50%;background:#eee7cb;display:grid;place-items:center;font-size:12px}.nav-label{font-size:9px;letter-spacing:1.1px;margin:27px 9px 12px}.nav-item{display:flex;gap:11px;align-items:center;padding:13px 11px;border-radius:8px;font-size:13px;text-decoration:none;margin:3px 0}.nav-item>span{width:18px;text-align:center;font-size:17px}.selected{background:#f5e7af;font-weight:650}.disabled{color:#7a806e}.sidebar-bottom{margin-top:auto;padding-top:26px}.development-label{font-size:10px;line-height:1.7;color:#747b68;padding:0 10px}.sidebar-bottom .brand-note{margin-top:12px;font-size:11px}.topbar{display:flex;align-items:center;gap:18px;padding:17px 32px;background:white;border-bottom:1px solid var(--line)}.crumb{font-size:13px;color:#7a806f;margin-right:auto}.logout{padding:9px 14px;font-size:11px}.dashboard-main{padding:38px 34px;max-width:1390px;margin:0 auto}.page-heading{display:flex;align-items:center;gap:30px;margin-bottom:30px}.page-heading h1{font-size:29px;letter-spacing:-1px;margin:0 0 12px;overflow-wrap:anywhere}.page-heading .eyebrow{margin-bottom:11px}.stage-pill{font-size:10px;white-space:nowrap;margin-left:auto;padding:8px 11px;border-radius:6px;background:#edf0e4;color:#6a7657}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fff}.stat:first-child{background:#fbf5df;border-color:#ebe0b7}.stat h2{font-size:13px;font-weight:500;color:#686e5c;margin:0}.stat strong{font-size:34px;display:block;margin:14px 0 10px;color:#838971}.stat p{font-size:11px;line-height:1.6;color:#787e6c;margin:0}.content-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{padding:21px 22px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:15px;margin:0}.empty{padding:46px 30px;text-align:center}.empty-icon{width:56px;height:56px;border-radius:14px;background:#f2f3eb;display:grid;place-items:center;margin:0 auto 20px;color:#8a9178;font-size:26px}.empty h3,.account-empty h3{font-size:15px;margin:0 0 12px}.empty p,.account-empty p{font-size:12px;line-height:1.8;color:#717965;margin:0}.empty p{max-width:290px;margin:auto}.right-stack{display:grid;gap:20px}.account-empty{display:flex;align-items:flex-start;gap:14px;padding:22px}.empty-icon.small{width:34px;height:34px;border-radius:8px;font-size:20px;flex:none;margin:0}.account-empty h3{font-size:13px}.steps{list-style:none;padding:0 22px;margin:0}.steps li{display:flex;align-items:center;gap:12px;font-size:12px;color:#757d67;padding:15px 0;border-bottom:1px solid #eef0e6}.steps li:last-child{border:0}.steps span{width:23px;height:23px;border:1px solid #d6dbcc;border-radius:50%;display:grid;place-items:center;font-size:10px;flex:none}.steps .done{color:#455d35}.steps .done span{background:#eaf1e3}.footnote{font-size:11px;color:#747c65;margin:24px 0;line-height:1.7}
@media(max-width:1100px){.login-layout{margin:35px 32px;gap:40px;grid-template-columns:1fr 410px}.dashboard-shell{grid-template-columns:198px 1fr}.dashboard-main{padding:28px 22px}.content-grid{gap:16px;grid-template-columns:1.2fr 1fr}.page-heading{flex-wrap:wrap;gap:15px}.stage-pill{margin-left:0}.stats{gap:12px}.stat{padding:17px}}
@media(max-width:760px){.login-header{padding:16px 22px}.logo{width:115px}.login-layout{display:block;margin:26px 22px 34px}.welcome{max-width:440px;margin:0 auto 26px}.welcome h1{font-size:36px;letter-spacing:-1.5px}.welcome>p:not(.eyebrow),.welcome .brand-note,.welcome .eyebrow{display:none}.login-card{max-width:440px;margin:auto;padding:26px}.dashboard-shell{display:block}.sidebar{padding:12px 20px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);gap:16px}.sidebar .logo{width:104px;margin:0}.sidebar nav,.sidebar-bottom,.nav-label{display:none}.profile{max-width:55%;padding:8px;font-size:11px}.avatar{width:25px;height:25px}.topbar{padding:12px 20px;gap:10px}.dashboard-main{padding:26px 20px}.page-heading h1{font-size:26px}.content-grid{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:13px 10px}.stat h2{font-size:11px}.stat p{font-size:10px}.stat strong{font-size:26px}.stage-pill{white-space:normal}.languages a{padding:8px}.empty{padding:30px 24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Personal workspaces: shared desktop and mobile controls. */
.workspace-switch{position:relative;min-width:0}.workspace-switch summary{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:12px 10px;cursor:pointer;list-style:none;font-size:12px;font-weight:600}.workspace-switch summary::-webkit-details-marker{display:none}.workspace-switch summary:focus-visible{outline:3px solid #8b731c;outline-offset:3px}.workspace-switch-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.workspace-menu{position:absolute;top:calc(100% + 8px);left:0;width:max(100%,245px);max-height:360px;overflow:auto;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px #2733151f;padding:10px;z-index:5}.workspace-menu p{font-size:10px;color:var(--muted);margin:5px 8px 10px}.workspace-menu button,.workspace-menu a{display:block;width:100%;padding:11px 9px;border:0;border-radius:6px;text-align:left;font-size:12px;background:none;text-decoration:none;overflow-wrap:anywhere}.workspace-menu button:hover,.workspace-menu a:hover{background:#f8f4e5}.workspace-menu button:disabled{opacity:1;color:#7e6825;background:#fcf3d2}.workspace-menu a{margin-top:6px;border-top:1px solid var(--line);font-weight:600}.workspace-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;align-items:start}.workspace-form-body{padding:5px 24px 24px}.workspace-form-body .message{margin-bottom:20px}.input-help{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 20px}.workspace-form-body .full{margin-top:5px}.workspace-privacy{font-size:11px;line-height:1.8;color:var(--muted);padding-top:20px;margin-top:25px;border-top:1px solid var(--line)}.workspace-list{list-style:none;padding:0 22px;margin:0}.workspace-list>li{padding:23px 0;border-bottom:1px solid var(--line)}.workspace-list>li:last-child{border:0}.workspace-row-title{display:flex;gap:12px;align-items:center}.workspace-row-title h3{font-size:15px;margin:0 0 6px;overflow-wrap:anywhere}.workspace-row-title>div{min-width:0;flex:1}.workspace-owner{font-size:11px;color:var(--muted)}.workspace-active{font-size:10px;background:#f7ecc1;color:#7b6b32;padding:6px 8px;border-radius:5px;flex:none}.workspace-row-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:15px}.workspace-row-actions>a:not(.button){font-size:12px;color:var(--muted)}.workspace-onboarding{display:flex;align-items:center;gap:25px;justify-content:space-between;background:#f7eab4;border:1px solid #eadead;border-radius:12px;padding:23px 24px;margin:0 0 25px}.workspace-onboarding h2{font-size:17px;margin:0 0 9px}.workspace-onboarding p{font-size:12px;line-height:1.7;color:#706645;margin:0}.workspace-onboarding .button{flex:none}.workspace-context{display:flex;gap:18px;justify-content:space-between;align-items:center;margin:0 0 23px;font-size:12px;color:#6d755f}.workspace-context strong{color:#39432d;overflow-wrap:anywhere}.workspace-context a{white-space:nowrap}.workspace-settings{max-width:640px}.workspace-back{display:inline-block;font-size:12px;color:var(--muted);margin-bottom:25px}.dashboard-body{min-width:0}
@media(max-width:1100px){.workspace-grid{grid-template-columns:1fr}.workspace-onboarding{align-items:flex-start;flex-direction:column;gap:17px}}
@media(max-width:760px){.workspace-switch{max-width:66%;flex:1}.workspace-switch summary{padding:9px}.workspace-menu{left:auto;right:0;width:min(310px,calc(100vw - 40px))}.workspace-row-title{flex-wrap:wrap}.workspace-context{align-items:flex-start;flex-wrap:wrap}.workspace-form-body{padding-inline:20px}.topbar .crumb{font-size:11px}.workspace-row-title h3{font-size:14px}.workspace-active{font-size:9px}}

/* Recovery, form feedback and narrow-screen navigation. */
.mobile-navigation{display:none}.nav-section-label{font-size:9px;letter-spacing:1.2px;color:#777e69;margin:22px 11px 7px}.form-progress{font-size:11px;line-height:1.6;color:#656f57;margin:10px 0 0}.topbar form{position:relative}.topbar .form-progress{position:absolute;right:0;top:100%;width:190px;background:white;border:1px solid var(--line);border-radius:7px;padding:10px;z-index:6}.notice{background:#fbf0ca;color:#6e5b25}.real-stat{color:#333c28!important}input[aria-invalid=true]{border-color:#ac6047}.account-error{max-width:780px;margin:65px auto;padding:0 28px}.account-error h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.4px;line-height:1.16;margin:0 0 22px}.account-error>p:not(.eyebrow){max-width:600px;font-size:16px;line-height:1.8;color:var(--muted)}.error-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
@media(max-width:760px){.mobile-navigation{display:flex;gap:8px;padding:11px 20px;border-bottom:1px solid var(--line);background:#fcfcf8;flex-wrap:wrap}.mobile-navigation a{font-size:11px;padding:10px 12px;text-decoration:none;border-radius:7px}.mobile-navigation a[aria-current]{background:#f5e7af;font-weight:600}.account-error{margin-block:35px}.error-actions{flex-direction:column;align-items:flex-start}}

.connection-link{margin-top:14px;font-size:12px}.connection-state{font-weight:600}.oauth-confirmation{padding-top:24px}.oauth-cancel{display:inline-block;margin:16px}.oauth-error{max-width:620px;margin:8vh auto;padding:28px}.oauth-error .logo{width:140px;margin-bottom:24px}.oauth-error p{line-height:1.8;color:var(--muted)}.oauth-error h1{font-size:28px}
.threads-profile, .threads-post { margin-bottom: 18px; }
.threads-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.threads-post-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #65645d; font-size: .85rem; }
.threads-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.threads-profile h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.search-form-panel { margin-bottom: 24px; }
.search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.search-form label { display: block; font-size: .85rem; margin-bottom: 8px; }
.search-query { flex: 1; min-width: min(220px, 100%); }
.search-form input, .search-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: inherit; font: inherit; }
.search-form select:focus-visible { outline: 3px solid #8b731c; outline-offset: 4px; }
.search-actions { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.search-access-note { background: #f5efda; line-height: 1.6; margin-bottom: 22px; }
.search-initial { text-align: center; padding: 32px 12px; }
.material-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.material-form { display: grid; gap: 10px; }
.material-form label { font-weight: 600; font-size: .9rem; }
.material-form input, .material-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: inherit; font: inherit; }
.material-form textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
.material-form textarea:focus-visible { outline: 3px solid #8b731c; outline-offset: 4px; }
.material-form .input-help { margin: 0 0 14px; }
.material-delete { margin-top: 30px; color: var(--muted); }
.mobile-navigation { flex-wrap: wrap; }
@media(max-width:1000px) { .material-grid { grid-template-columns: 1fr; } }
.draft-panel { margin-top: 24px; }
.draft-generate { display: grid; gap: 12px; max-width: 720px; }
.draft-generate select { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: inherit; font: inherit; }
.draft-replace { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.draft-replace input { margin-top: 6px; }
.material-form .draft-replace input[type="checkbox"] { width: 18px; height: 18px; padding: 0; flex: 0 0 18px; }
.draft-edit { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
