:root{font-family:Inter,Noto Sans JP,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#171717;background:#f5f5f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.center-shell{min-height:100vh;display:grid;place-items:center;padding:20px}.panel{background:#fff;border:1px solid #e6e6e2;border-radius:18px;box-shadow:0 8px 30px #00000009}.login-panel{width:min(100%,420px);padding:28px;display:grid;gap:16px}.login-panel h1{margin:0}label{display:grid;gap:7px;font-size:14px;font-weight:700}input,select{width:100%;border:1px solid #d7d7d2;border-radius:12px;padding:12px 13px;background:#fff;color:#171717}.primary{border:0;border-radius:12px;padding:13px 16px;background:#171717;color:#fff;font-weight:800}.quiet{border:1px solid #ddd;background:#fff;border-radius:10px;padding:8px 11px}.eyebrow{margin:0 0 4px;font-size:11px;letter-spacing:.12em;color:#777;font-weight:800}.muted,small{color:#777}.error{padding:10px 12px;background:#fff0f0;border-radius:10px;color:#9b1c1c}.ok{padding:10px 12px;background:#f0f8f0;border-radius:10px}.app-shell{min-height:100vh}.topbar{height:64px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e5e5e1;position:sticky;top:0;z-index:20}.account-strip{display:flex;gap:12px;align-items:center;padding:12px 18px;background:#fafaf8;border-bottom:1px solid #e8e8e4}.account-strip span{white-space:nowrap;font-size:13px;font-weight:800}.account-strip select{max-width:420px;padding:9px 11px}.workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 113px)}.nav{padding:16px 10px;border-right:1px solid #e4e4df;background:#fafaf8;display:flex;flex-direction:column;gap:4px}.nav button{border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:10px;color:#555;font-weight:700}.nav button.active{background:#171717;color:#fff}.content{width:min(100%,1100px);padding:28px}.page-title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.page-title h1{margin:0;font-size:clamp(24px,4vw,36px)}.badge{border:1px solid #ddd;background:#fff;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.summary-grid article{padding:18px;display:grid;gap:6px}.summary-grid strong{font-size:30px}.status-panel{margin-top:14px;padding:20px}.status-panel h2{margin-top:0}dl{margin:0}dl div{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:11px 0;border-bottom:1px solid #eee}dt{color:#777}dd{margin:0;font-weight:700}@media(max-width:720px){.topbar{height:58px;padding:0 12px}.account-strip{padding:10px 12px}.workspace{display:block}.nav{position:sticky;top:58px;z-index:10;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid #e4e4df;padding:8px}.nav button{flex:0 0 auto;padding:9px 11px}.content{padding:18px 12px 90px}.summary-grid{grid-template-columns:1fr}dl div{grid-template-columns:1fr;gap:4px}.page-title{align-items:flex-end}}.history-panel{margin-top:14px;padding:20px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:8px}.section-head h2{margin:0}.event-list{display:grid}.event-row{padding:14px 0;border-top:1px solid #eee}.event-row:first-child{border-top:0}.event-row p{margin:6px 0 0;line-height:1.55;overflow-wrap:anywhere}.event-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px;color:#777;font-size:12px}.event-kind{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f1f1ed;color:#444;font-weight:800}.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.candidate-note{margin:0 0 8px;line-height:1.5}.candidate-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.primary.compact{padding:9px 12px;font-size:13px}@media(max-width:520px){.candidate-foot{align-items:stretch;flex-direction:column}.primary.compact{width:100%}}.reply-editor,.schedule-editor{margin-top:12px}textarea{width:100%;resize:vertical;border:1px solid #d7d7d2;border-radius:12px;padding:12px 13px;background:#fff;color:#171717;font:inherit;line-height:1.55}.schedule-editor{max-width:340px;margin-bottom:10px}.schedule-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.error-inline{display:block;margin:8px 0;color:#9a2d2d;white-space:pre-wrap}.delivery-failed-panel{border-color:#efd6d6}.draft-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}@media(max-width:520px){.draft-head{align-items:stretch;flex-direction:column}}.context-toggle{margin-top:10px;border:0;background:transparent;padding:0;text-decoration:underline;cursor:pointer;font:inherit}.review-context{margin-top:12px;padding:14px;border:1px solid #deded8;border-radius:14px;background:#fafaf7}.context-title,.thread-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.context-title{justify-content:space-between;margin-bottom:10px}.conversation-thread{display:grid;gap:8px}.thread-row{max-width:88%;padding:9px 11px;border-radius:12px;background:#fff;border:1px solid #e6e6df}.thread-row.outgoing{margin-left:auto}.thread-row p,.draft-audit p{margin:5px 0 0;white-space:pre-wrap}.thread-meta{font-size:.78rem;color:#686862}.reply-history-tree{display:grid;gap:12px}.reply-chain{position:relative;display:grid;gap:8px;padding:12px 12px 12px 24px;border:1px solid #e6e6df;border-radius:14px;background:#fff}.reply-chain:before{content:"";position:absolute;left:12px;top:20px;bottom:20px;width:2px;background:#e1e1da}.reply-tree-node{position:relative;padding:10px 12px;border-radius:12px;border:1px solid #e7e7e1;background:#fafaf7}.reply-tree-node:before{content:"";position:absolute;left:-17px;top:20px;width:9px;height:2px;background:#e1e1da}.reply-tree-node.root-post{background:#f4f4f0}.reply-tree-node.incoming{background:#fff}.reply-tree-node.outgoing{margin-left:18px;background:#f8fbff}.reply-tree-node.pending{margin-left:18px;padding-top:8px;padding-bottom:8px;border-style:dashed}.reply-tree-node p{margin:5px 0 0;white-space:pre-wrap}.muted-chip{background:#efefea;color:#77776f}.compact-subtitle{margin-top:14px}.compact-history .thread-row{max-width:100%}.history-window-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 12px}.history-window-tabs button{min-height:42px;padding:8px 10px;border:1px solid #d9d9d2;border-radius:10px;background:#fff;color:#33332f;font:inherit;font-size:.88rem}.history-window-tabs button.active{background:#171715;color:#fff;border-color:#171715}.history-window-tabs button:disabled{opacity:.38}.history-empty{margin:4px 0 0;padding:10px 0}.history-depth-control{display:grid;gap:6px;margin:8px 0 12px}.history-depth-control label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;font-size:.86rem;color:#55554f}.history-depth-control select{min-height:42px;width:100%;padding:8px 34px 8px 10px;border:1px solid #d9d9d2;border-radius:10px;background:#fff;color:#232320;font:inherit;font-size:1rem}.history-depth-control small{color:#77776f}.context-chip{padding:2px 6px;border-radius:999px;background:#ecece5;color:#333}.draft-audit{margin-top:12px;padding-top:12px;border-top:1px dashed #d4d4cc}.context-subtitle{margin-top:16px;padding-top:14px;border-top:1px dashed #d4d4cc}.global-notice{margin:12px 18px 0;padding:10px 12px;border:1px solid #ead9a4;border-radius:10px;background:#fff9e8;color:#6b5616;font-size:14px}button:disabled{cursor:not-allowed;opacity:.55}.beta-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.overview-card{min-width:0;padding:14px 15px;border:1px solid #e6e6e2;border-radius:14px;background:#fff;display:grid;gap:3px}.overview-card span{color:#666;font-size:12px;font-weight:800}.overview-card strong{font-size:28px;line-height:1.1}.overview-card small{font-size:11px}.overview-card.urgent{border-color:#e8c9c9;background:snow}.event-kind.attention{background:#fff0f0;color:#9b1c1c}.event-kind.approved{background:#eef7ee;color:#28632c}.event-kind.scheduled{background:#eef3fb;color:#28528a}@media(max-width:720px){.beta-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card{padding:12px}.overview-card strong{font-size:24px}.history-panel{padding:16px}}@media(max-width:380px){.beta-overview{grid-template-columns:1fr 1fr;gap:8px}.overview-card small{display:none}}html{scroll-behavior:smooth}.overview-card{color:inherit;text-decoration:none}.overview-card:active{transform:scale(.985)}#today-review,#reply-candidates{scroll-margin-top:118px}@media(max-width:720px){.topbar .eyebrow{display:none}.topbar strong{font-size:15px}.topbar .quiet{padding:8px 10px}.account-strip{gap:8px}.account-strip span{font-size:11px}.account-strip select{min-width:0;width:100%;font-size:16px}.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav button{min-height:42px}.page-title{margin-bottom:12px}.page-title .eyebrow{display:none}.page-title h1{font-size:24px}.badge{font-size:11px}.event-row{padding:16px 0}.event-row button,.candidate-foot button,.row-actions button{min-height:44px}.row-actions{display:grid;grid-template-columns:1fr 1fr}.row-actions .primary{grid-column:1 / -1}.reply-editor textarea{min-height:112px;font-size:16px}.schedule-editor{max-width:none}.schedule-editor input{width:100%;min-height:44px;font-size:16px}.schedule-actions{display:grid;grid-template-columns:1fr}.schedule-actions button{width:100%;min-height:44px}}.topbar-actions{display:flex;align-items:center;gap:8px}.mobile-menu-button{display:none}@media(max-width:720px){.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px}.logout-button{display:none}.nav{display:none;position:sticky;top:58px;z-index:15;padding:8px 12px 12px;background:#fafaf8;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible}.nav.mobile-open{display:grid}.nav button{width:100%;min-height:44px;text-align:center;border:1px solid #e5e5e1;background:#fff}.nav button.active{border-color:#171717}.content{padding-top:12px}}.mobile-review-toggle{display:none}@media(max-width:720px){.mobile-review-toggle{display:inline-flex;width:100%;min-height:44px;margin-top:12px;align-items:center;justify-content:center}.review-item .review-actions-body{display:none}.review-item.review-focused .review-actions-body{display:block}.review-item.review-focused{padding-bottom:20px}}
