:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e9edf2;background:#101b27;font-synthesis:none;-webkit-font-smoothing:antialiased;color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh;min-height:100svh;background:radial-gradient(ellipse at 15% 5%,#273d4b80,transparent 55%),radial-gradient(ellipse at 95% 95%,#5b504130,transparent 50%),#101b27}body:before{content:"";position:fixed;inset:18px;border:1px solid #ffffff0a;border-radius:24px;pointer-events:none}.app-shell{min-height:100vh;min-height:100svh;display:grid;place-content:center;padding:48px 26px}.identity-panel{width:min(100%,400px);min-width:280px;text-align:center;margin:auto;padding:42px 24px}.brand-mark{width:76px;height:76px;margin:0 auto 30px;display:grid;place-items:center;color:#dfc49b;border:1px solid #dfc49b40;border-radius:22px;background:linear-gradient(145deg,#ffffff08,#ffffff02);box-shadow:0 16px 40px #00000018}.brand-mark svg{width:46px;height:46px}h1{font-size:clamp(27px,5.6vw,35px);font-weight:650;letter-spacing:-1.35px;line-height:1.2;margin:0;white-space:nowrap}h1 span{font-weight:350;color:#bdc8d2}button{font:inherit;font-weight:550;cursor:pointer;min-height:46px;padding:12px 18px;border:1px solid #d9e0e7;border-radius:12px;background:#fff;color:#233749;transition:background .18s,transform .18s,box-shadow .18s}button:hover{background:#edf2f5}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #739ebb;outline-offset:4px}.auth-actions{margin-top:38px}#login{width:100%;max-width:280px;display:inline-flex;justify-content:space-between;align-items:center;background:#dfc49b;color:#17232d;border-color:#dfc49b;min-height:54px;padding:15px 21px;border-radius:13px;box-shadow:0 8px 26px #0000001c}#login:hover{background:#edd5b1}#login span{font-size:22px;font-weight:400}#authStatus{font-size:13px;color:#a9b8c5;line-height:1.6;max-width:320px;margin:22px auto 0}#authStatus:empty{display:none}body:has(#journal:not([hidden])){background:#f3f5f7;color:#22313f;color-scheme:light}body:has(#journal:not([hidden])) .app-shell{display:block;max-width:1040px;margin:auto;padding:26px 28px 64px}body:has(#journal:not([hidden])) .identity-panel{width:100%;max-width:none;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:10px 0 24px;text-align:left;border-bottom:1px solid #dce3e9}body:has(#journal:not([hidden])) .brand{display:flex;align-items:center;gap:12px}body:has(#journal:not([hidden])) .brand-mark{width:40px;height:40px;border-radius:12px;margin:0;background:#101b27;color:#dfc49b;box-shadow:none}body:has(#journal:not([hidden])) .brand-mark svg{width:28px;height:28px}body:has(#journal:not([hidden])) h1{font-size:23px;letter-spacing:-.8px}body:has(#journal:not([hidden])) h1 span{color:#647585}body:has(#journal:not([hidden])) .auth-actions{margin:0 0 0 auto}body:has(#journal:not([hidden])) #authStatus{width:100%;max-width:none;margin:0;color:#617487;font-size:12px}nav{display:flex;gap:4px;padding:5px;background:#e5ebf0;border-radius:14px;margin:25px 0;width:fit-content}nav button{background:transparent;border-color:transparent;box-shadow:none}nav button.active{background:#fff;color:#172f44;box-shadow:0 2px 7px #1a334310}section{background:#fff;border:1px solid #e0e6ec;border-radius:20px;padding:28px;margin:0 0 22px;box-shadow:0 4px 20px #1c334304}h2{font-size:21px;font-weight:620;letter-spacing:-.5px;margin:0 0 24px}label{display:block;font-size:13px;font-weight:550;color:#45596a;margin-bottom:21px}input,textarea,select{display:block;width:100%;min-width:0;margin-top:9px;border:1px solid #d6dfe7;border-radius:10px;background:#fafbfc;color:#22313f;font:inherit;font-size:16px;font-weight:400;padding:13px;transition:border-color .15s}input:hover,textarea:hover,select:hover{border-color:#a9bdcb}input::placeholder,textarea::placeholder{color:#8a99a6}textarea{min-height:100px;resize:vertical;line-height:1.6}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}button[type=submit],#savePlan{background:#1b3448;border-color:#1b3448;color:white}button[type=submit]:hover,#savePlan:hover{background:#294c66}summary{cursor:pointer;font-size:16px;font-weight:600;margin-bottom:18px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 24px}.actions button{font-size:12px;min-height:40px;padding:9px 12px}article{white-space:pre-wrap;border-top:1px solid #e6ebef;padding:20px 0;line-height:1.75;font-size:14px}article p{margin:0 0 12px}article button{font-size:12px;min-height:36px;padding:7px 14px}#entries:empty{padding:12px}#status{font-size:14px;line-height:1.6;color:#355c70}#status:empty{display:none}.muted{font-size:13px;color:#667c8d}a{color:inherit}@media(max-width:600px){body:before{inset:12px;border-radius:19px}.app-shell{padding:30px 20px}.identity-panel{min-width:0;width:100%;padding:30px 5px}body:has(#journal:not([hidden])) .app-shell{padding:18px 16px 40px}body:has(#journal:not([hidden])) h1{font-size:20px}body:has(#journal:not([hidden])) .brand{gap:8px}#logout{font-size:12px;padding:10px 12px;min-height:40px}section{padding:22px 18px;border-radius:16px}.grid{grid-template-columns:1fr;gap:0}nav{width:100%}nav button{flex:1;padding:11px 8px;font-size:13px}h2{font-size:20px}.actions{gap:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media print{body,body:has(#journal:not([hidden])){background:#fff;color:#000}body:before,.identity-panel,nav,form,.actions,button,#status,details{display:none!important}.app-shell{display:block!important;padding:0!important}section{border:0;box-shadow:none;padding:0}article{break-inside:avoid}}

.comment-thread{margin-top:24px;padding:18px;background:#f6f8fa;border:1px solid #e2e9ef;border-radius:14px;white-space:normal}.comment-thread h3{font-size:14px;margin:0 0 16px}.comment{padding:12px 0;border-bottom:1px solid #dfe6ed}.comment p{white-space:pre-wrap;overflow-wrap:anywhere}.comment-meta{font-size:12px;color:#617487}.comment-form{margin-top:18px}.comment-form label{margin-bottom:10px}.comment-form textarea{min-height:75px;background:white}.comment-form button{font-size:13px}button:disabled{opacity:.5;cursor:wait}@media print{.comment-thread{background:white}.comment-form{display:none!important}}
