#cherrysystem{display:none;scroll-margin-top:72px}
.sidebar>nav{flex:1;min-height:0;overflow-y:auto;align-content:start}
.sidebar>:not(nav){flex-shrink:0}
body.cherry-mode main>:not(#cherrysystem){display:none!important}
body.cherry-mode #cherrysystem{display:block}
.cherry-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.cherry-title h1{font-size:24px;font-weight:650;line-height:1.3;margin:4px 0 8px}
.cherry-eyebrow{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.cherry-title p{margin:4px 0;color:var(--muted);font-size:12px}
.cherry-title-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cherry-title-actions button,.cherry-switch{min-height:44px}
.cherry-title-actions small{font-size:11px;color:var(--muted)}
.cherry-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin-bottom:16px}
.cherry-banner>div{display:grid;gap:8px}
.cherry-banner p{margin:0;color:var(--muted);font-size:12px}
.cherry-schedule{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:16px 20px;margin-bottom:16px}
.cherry-schedule strong{font-size:13px;font-weight:600}.cherry-schedule p{margin:4px 0 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cherry-schedule>small{flex-basis:100%;font-size:11px;color:var(--muted);line-height:1.7}
.cherry-intervals{display:flex;flex-wrap:wrap;gap:8px}.cherry-intervals button{min-height:44px;padding:8px 12px;font-size:12px}
.cherry-intervals button[aria-pressed="true"]{color:var(--blue);border-color:var(--blue);background:var(--bg);font-weight:650}
.cherry-intervals button:disabled{cursor:wait;opacity:.55}
@media(max-width:650px){.cherry-schedule{padding:16px;align-items:flex-start}.cherry-intervals{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.cherry-intervals button{padding:8px 4px}}
.cherry-switch{display:flex;align-items:center;gap:12px;cursor:pointer;white-space:nowrap;font-weight:600;font-size:12px}
.cherry-switch input{width:18px;height:18px;min-height:18px;accent-color:var(--blue);cursor:pointer}
.cherry-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:6px;background:var(--surface);margin:16px 0 20px;overflow:hidden}
.cherry-metrics>div{min-width:0;padding:16px 20px;display:grid;gap:8px}
.cherry-metrics>div+div{border-left:1px solid var(--border)}
.cherry-metrics span,.cherry-metrics small{font-size:11px;color:var(--muted)}
.cherry-metrics strong{font-size:27px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}
.cherry-metrics strong small{font-size:12px;font-weight:400;margin-left:4px}
.cherry-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:20px;align-items:start}
.cherry-stack{display:grid;gap:20px;min-width:0}
.cherry-panel{overflow:hidden}
.cherry-panel .panel-heading{align-items:flex-start;gap:12px}
.cherry-panel .panel-heading h2{font-size:16px}
.cherry-panel .panel-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}
.cherry-body{padding:0 20px 20px}
.cherry-body p{font-size:13px;line-height:1.8;margin:4px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.cherry-body ul{padding-left:20px;font-size:12px;line-height:1.8;margin:0}
.cherry-body li+li{margin-top:8px}
.cherry-analysis-note{padding:12px 20px;background:var(--bg);border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
.cherry-service{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid var(--border)}
.cherry-service>div{display:grid;gap:4px}.cherry-service strong{font-size:12px;font-weight:600}.cherry-service small{font-size:11px}
.cherry-table-wrap{overflow-x:auto}.cherry-table{min-width:420px;width:100%;font-size:12px}
.cherry-table th,.cherry-table td{padding:12px 16px;white-space:nowrap}.cherry-table tbody th{font-weight:600;text-align:left}
.cherry-good{color:var(--green)}.cherry-fail{color:var(--red)}
.cherry-history{list-style:none;padding:0 20px 12px;margin:0;max-height:580px;overflow-y:auto}
.cherry-event{position:relative;display:grid;gap:4px;padding:12px 0 16px 20px;border-left:1px solid var(--border);margin-left:4px}
.cherry-event::before{content:'';position:absolute;left:-4px;top:18px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.cherry-event.verified::before{background:var(--green)}.cherry-event.unverified::before{background:var(--amber)}
.cherry-event time,.cherry-event>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.cherry-event strong{font-size:12px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}
.cherry-message{margin:0 0 16px;font-size:12px;color:var(--muted);line-height:1.7;min-height:0}.cherry-message:empty{display:none}.cherry-message.error{color:var(--red)}
.cherry-ai-error{color:var(--amber);font-size:12px;padding:12px;background:var(--bg);border-radius:4px}
.cherry-empty{padding:12px 20px;font-size:12px;color:var(--muted)}
.cherry-footnote{margin:20px 0 0;color:var(--muted);font-size:11px;line-height:1.8}
#cherrysystem button:focus-visible,.cherry-switch input:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:1100px){.cherry-grid{grid-template-columns:minmax(0,1fr)}.cherry-history{max-height:400px}.cherry-metrics>div{padding:16px}}
@media(max-width:650px){.cherry-title{flex-direction:column;gap:16px}.cherry-title-actions{align-items:flex-start;width:100%}.cherry-title-actions button{width:100%}.cherry-banner{align-items:flex-start;flex-direction:column;padding:16px}.cherry-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cherry-metrics>div{padding:12px}.cherry-metrics>div:nth-child(3){border-left:0}.cherry-metrics>div:nth-child(n+3){border-top:1px solid var(--border)}.cherry-metrics strong{font-size:24px}.cherry-body{padding:0 16px 16px}.cherry-service{padding:12px 16px}.cherry-grid,.cherry-stack{gap:16px}.cherry-title h1{font-size:22px}.cherry-switch{white-space:normal}}

.cherry-ops-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:20px;margin-bottom:20px;align-items:start}
.cherry-conversation-log{height:310px;overflow-y:auto;padding:0 20px 12px;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:12px}
.cherry-chat-bubble{padding:12px 16px;border-left:2px solid var(--teal);background:var(--bg);border-radius:0 6px 6px 0;max-width:96%}
.cherry-chat-bubble.operator{border-left-color:var(--border);margin-left:24px;background:var(--surface)}
.cherry-chat-bubble p,.cherry-answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;margin:4px 0}.cherry-chat-bubble small{font-size:11px}
.cherry-chat-form{padding:16px 20px;border-top:1px solid var(--border);display:grid;gap:8px}.cherry-chat-form>label{font-size:12px;font-weight:600}
.cherry-chat-form textarea{width:100%;resize:vertical;min-height:88px;max-height:220px;font:inherit;font-size:13px;line-height:1.6;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink);padding:12px;box-sizing:border-box}
.cherry-chat-controls{display:flex;justify-content:space-between;gap:12px;align-items:end}.cherry-chat-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.cherry-chat-controls select{max-width:200px;min-height:44px}.cherry-chat-controls button{min-height:44px}
.cherry-client-target{font-size:11px;color:var(--muted);padding-top:8px}.cherry-client-target summary{cursor:pointer;min-height:28px;line-height:28px}.cherry-client-target>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0}.cherry-client-target label{display:grid;gap:4px}.cherry-client-target input{min-width:0;width:100%;box-sizing:border-box;min-height:44px}
.cherry-incident-list{padding:0 20px 16px;max-height:290px;overflow-y:auto}.cherry-incident{padding:12px 0;border-top:1px solid var(--border);font-size:12px}.cherry-incident summary{cursor:pointer;font-weight:600;line-height:1.8}.cherry-incident p{line-height:1.8}.cherry-incident small{display:block;line-height:1.8}
.cherry-trend svg{display:block;width:100%;height:64px;margin:12px 0}.cherry-trend polyline{fill:none;stroke:var(--teal);stroke-width:2;vector-effect:non-scaling-stroke}.cherry-job-panel{margin-bottom:20px}.cherry-jobs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border);border-top:1px solid var(--border)}
.cherry-job{display:grid;gap:8px;text-align:left;padding:16px;background:var(--surface);color:var(--ink);border:0;border-radius:0;min-width:0;cursor:pointer}.cherry-job:hover,.cherry-job.selected{background:var(--bg)}.cherry-job strong{font-size:12px;overflow-wrap:anywhere}.cherry-job small{font-size:10px}.cherry-job .badge{justify-self:start}
.cherry-job-detail{padding:20px;border-top:1px solid var(--border);font-size:12px;line-height:1.8}.cherry-job-detail h3{font-size:14px;margin:0 0 8px}.cherry-job-detail summary{cursor:pointer;min-height:40px;line-height:40px}.cherry-plan{display:grid;grid-template-columns:84px 1fr;gap:8px}.cherry-plan dt{color:var(--muted)}.cherry-plan dd{margin:0;overflow-wrap:anywhere}.cherry-evidence{border-top:1px solid var(--border);padding:12px 0}.cherry-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;max-height:300px;overflow:auto;background:var(--bg);padding:12px;border-radius:4px}
@media(max-width:1100px){.cherry-ops-grid{grid-template-columns:1fr}.cherry-jobs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.cherry-ops-grid{gap:16px;margin-bottom:16px}.cherry-conversation-log{padding:0 16px 12px;height:300px}.cherry-chat-form{padding:16px}.cherry-chat-controls{align-items:stretch;flex-direction:column}.cherry-chat-controls label{justify-content:space-between}.cherry-chat-controls select{flex:1;max-width:none}.cherry-jobs{grid-template-columns:repeat(2,minmax(0,1fr))}.cherry-job{padding:12px}.cherry-job-detail{padding:16px}.cherry-client-target>div{grid-template-columns:1fr}.cherry-plan{grid-template-columns:64px 1fr}}
