:root{color:#18201b;background:#f5f1e9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit;letter-spacing:0}button{align-items:center;background:#244c3a;border:0;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;gap:8px;justify-content:center;min-height:42px;padding:0 14px}button:hover{background:#183629}button:disabled{cursor:wait;opacity:.58}input,textarea{background:#fffdf8;border:1px solid #cfc7b7;border-radius:8px;color:#18201b;outline:none;padding:12px 13px;width:100%}textarea{line-height:1.45;min-height:110px;resize:vertical}input:focus,textarea:focus{border-color:#2b6a4f;box-shadow:0 0 0 3px #2b6a4f29}h1,h2,h3,h4,p{margin:0}.loading{display:grid;min-height:100vh;place-items:center}.auth-page{align-items:center;background:linear-gradient(135deg,rgba(36,76,58,.11),transparent 42%),#f5f1e9;display:flex;min-height:100vh;padding:28px}.auth-panel{background:#fffaf1;border:1px solid #d8d0bf;border-radius:8px;box-shadow:0 16px 48px #2722181f;margin:0 auto;max-width:460px;padding:26px;width:100%}.brand-lockup{align-items:center;display:flex;gap:14px}.brand-lockup h1{font-size:24px;line-height:1.15}.brand-lockup p,.view-header p,.item-meta,.empty-text{color:#746c5e}.brand-lockup.compact h1{font-size:18px}.brand-mark{align-items:center;background:#9f3f35;border-radius:8px;color:#fffaf1;display:flex;flex:0 0 44px;font-weight:800;height:44px;justify-content:center}.auth-form,.editor-panel,.stack,.reply-box{display:grid;gap:12px}.auth-form{margin-top:26px}.auth-form label{color:#3f3a31;display:grid;gap:7px;font-size:14px;font-weight:700}.notice,.notice-banner{color:#8a2f28}.notice{margin-top:14px}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.sidebar{background:#fffaf1;border-right:1px solid #d8d0bf;display:flex;flex-direction:column;gap:24px;padding:22px}.nav-list{display:grid;gap:7px}.nav-list button,.ghost-button{background:transparent;color:#2c302b;justify-content:flex-start;width:100%}.nav-list button:hover,.nav-list button.active,.ghost-button:hover{background:#eadfcb}.ghost-button{margin-top:auto}.workspace{min-width:0;padding:26px}.notice-banner{align-items:center;background:#fff3ef;border:1px solid #e6b8ae;border-radius:8px;display:flex;gap:10px;margin-bottom:18px;padding:12px 14px}.view{display:grid;gap:20px;margin:0 auto;max-width:1120px}.view-header{align-items:end;display:flex;justify-content:space-between;gap:16px}.view-header h2{font-size:30px;line-height:1.15}.split-grid,.resource-section-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.split-grid h3{margin-bottom:10px}.section-heading{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:10px}.section-heading h3{margin:0}.small-link{background:transparent;color:#244c3a;min-height:32px;padding:0 8px}.small-link:hover{background:#eadfcb}.item-card,.resource-panel,.editor-panel{background:#fffaf1;border:1px solid #d8d0bf;border-radius:8px;padding:16px}.item-card{display:grid;gap:9px}.card-topline{align-items:center;display:flex;gap:10px;justify-content:space-between}.icon-danger-button{background:transparent;border:1px solid #e6b8ae;color:#8a2f28;flex:0 0 32px;height:32px;min-height:32px;padding:0;width:32px}.icon-danger-button:hover{background:#fff3ef}.confirm-delete{background:#fff3ef;border:1px solid #e6b8ae;border-radius:8px;display:grid;gap:10px;padding:12px}.confirm-delete>div{display:flex;flex-wrap:wrap;gap:8px}.danger-button{background:#8a2f28}.danger-button:hover{background:#68231e}.secondary-button{background:transparent;border:1px solid #cfc7b7;color:#2c302b}.secondary-button:hover{background:#eadfcb}.item-card.urgent{border-left:5px solid #9f3f35}.item-card.important,.item-card.needs-review,.item-card.open{border-left:5px solid #d29433}.item-card.answered{border-left:5px solid #2b6a4f}.item-card h4{font-size:16px}.item-card p{line-height:1.48}.item-meta{font-size:13px}.prompt-row{display:grid;gap:10px;grid-template-columns:minmax(0,1fr) 52px}.prompt-row button{padding:0}.knowledge-view,.ask-view{max-width:880px}.portal-stats{display:flex;flex-wrap:wrap;gap:8px}.portal-stats span{background:#fffaf1;border:1px solid #d8d0bf;border-radius:8px;color:#3f3a31;font-size:13px;font-weight:800;padding:8px 10px}.latest-answer-panel{background:#fffaf1;border:1px solid #d8d0bf;border-radius:8px;display:grid;gap:12px;min-height:150px;padding:16px}.latest-question{display:grid;gap:5px}.latest-question span{color:#746c5e;font-size:12px;font-weight:800;text-transform:uppercase}.latest-question p{font-weight:800}.latest-answer{background:#fffdf8;border:1px solid #eadfcb;border-radius:8px;line-height:1.52;min-height:66px;padding:13px}.latest-answer.needs-review{border-color:#d29433}.loading-answer{align-items:center;color:#746c5e;display:grid;gap:12px;grid-template-columns:18px minmax(0,1fr)}.loading-dot{animation:pulse 1s ease-in-out infinite;background:#244c3a;border-radius:999px;height:12px;width:12px}.loading-bar{background:#eadfcb;border-radius:999px;height:5px;margin-top:8px;overflow:hidden;position:relative}.loading-bar:after{animation:loading-slide 1.1s ease-in-out infinite;background:#244c3a;border-radius:inherit;content:"";inset:0 auto 0 0;position:absolute;width:42%}@keyframes pulse{0%,to{opacity:.35;transform:scale(.82)}50%{opacity:1;transform:scale(1)}}@keyframes loading-slide{0%{transform:translate(-105%)}to{transform:translate(245%)}}.preline{white-space:pre-line}.resource-panel{display:grid;gap:14px}.resource-toggle{background:#fffaf1;border:1px solid #d8d0bf;color:#18201b;display:grid;grid-template-columns:22px minmax(0,1fr) auto;justify-content:stretch;min-height:54px;text-align:left;width:100%}.resource-toggle:hover{background:#eadfcb}.resource-toggle span{color:#746c5e;font-size:13px;font-weight:800}.book-scroll{background:#fffdf8;border:1px solid #d8d0bf;border-radius:8px;display:grid;gap:18px;max-height:520px;overflow:auto;padding:18px}.book-section{display:grid;gap:8px}.book-section h3{font-size:16px}.book-section p{color:#332f28;line-height:1.55}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{border-bottom:1px solid #d8d0bf;border-right:0}.nav-list{grid-template-columns:repeat(4,minmax(0,1fr))}.nav-list button{justify-content:center;min-width:0}.split-grid,.resource-section-grid{grid-template-columns:1fr}}@media(max-width:620px){.workspace,.sidebar,.auth-page{padding:16px}.nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.view-header{align-items:start;flex-direction:column}.view-header h2{font-size:24px}}
