.sheet-reference-panel{z-index:24;border:1px solid var(--line);background:var(--sidebar);width:300px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);color:var(--ink);border-radius:6px;flex-direction:column;font-size:12px;display:flex;position:absolute;top:8px;left:8px;box-shadow:0 2px 12px #0003}.sheet-reference-heading{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;padding:4px 8px;display:flex}.sheet-reference-heading button{min-width:30px;min-height:30px}.sheet-reference-body{overscroll-behavior:contain;min-height:0;padding:6px 8px;overflow:auto}.sheet-reference-body p{margin:4px 0 7px;line-height:1.4}.sheet-reference-actions{gap:5px;margin-bottom:6px;display:flex}.sheet-reference-panel button,.sheet-reference-panel input,.sheet-reference-panel summary{font:inherit;min-height:30px}.sheet-reference-panel summary{cursor:pointer;align-items:center;font-weight:600;display:flex}.sheet-reference-option{align-items:center;gap:6px;line-height:1.3;display:flex}.sheet-reference-option input{flex:none;width:16px}.sheet-reference-list{overscroll-behavior:contain;gap:3px;max-height:190px;margin:4px 0 8px;display:grid;overflow:auto}.sheet-reference-row{border-bottom:1px solid var(--line);gap:3px;padding:3px 0;display:grid}.sheet-reference-list button{text-align:left;overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;gap:3px 8px;width:100%;padding:5px 7px;display:flex}.sheet-reference-list button[aria-current=page]{border-color:var(--accent)}.sheet-reference-list small,.sheet-reference-list span{color:var(--muted);font-size:11px}.sheet-reference-list>button span{flex-basis:100%}.sheet-reference-body>details>input{width:100%;margin:3px 0}.printed-sheet-reference{cursor:pointer;outline:none}.printed-sheet-reference:focus rect,.printed-sheet-reference:hover rect{fill-opacity:.3;stroke:#0047bf;stroke-width:3px;vector-effect:non-scaling-stroke}.sheet-reference-panel :focus-visible{outline:2px solid var(--accent);outline-offset:1px}.sheet-reference-panel button{border:1px solid var(--line);background:var(--white);color:var(--ink);cursor:pointer;border-radius:4px}.sheet-reference-panel button:hover{background:var(--selected)}.sheet-reference-panel button:disabled{opacity:.5;cursor:default}
.next-move-pill{z-index:13;color:#fff;height:24px;font:500 11.5px/1 var(--font,system-ui),sans-serif;white-space:pre;pointer-events:none;background:#111827eb;border-radius:7px;align-items:center;gap:6px;padding:0 9px 0 3px;animation:.14s ease-out next-move-in;display:flex;position:absolute;box-shadow:0 0 0 1px #fff3,0 3px 10px #0006}.next-move-pill kbd{color:#111827;font:700 10px/12px var(--font,system-ui),sans-serif;background:#fff;border-radius:4px;padding:3px 6px}@keyframes next-move-in{0%{opacity:0;transform:translateY(3px)}}.next-move-ghost .next-move-halo{filter:drop-shadow(0 0 1px #0008)}.next-move-pulse{fill:none;opacity:0;transform-box:fill-box;transform-origin:50%;animation:.8s ease-out next-move-pulse}@keyframes next-move-pulse{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(2.6)}}.next-move-accepted{stroke-width:3px;stroke-opacity:0;animation:.55s ease-out next-move-accepted}@keyframes next-move-accepted{0%{stroke-width:12px;stroke-opacity:.5}to{stroke-width:3px;stroke-opacity:0}}.toolbar-options .next-move-chip{border:1px solid var(--bar-line,var(--line));height:26px;min-height:26px;color:var(--bar-ink,var(--muted));white-space:nowrap;background:0 0;border-radius:13px;flex:none;align-items:center;gap:5px;padding:3px 9px;font-size:10px;font-weight:500;transition:background-color .15s,color .15s,border-color .15s;display:inline-flex}.toolbar-options .next-move-chip:hover:not(:disabled){background:var(--bar-hover,var(--hover))}.next-move-chip .next-move-dot{opacity:.45;background:currentColor;border-radius:50%;flex:none;width:7px;height:7px;transition:opacity .15s,box-shadow .15s,background-color .15s}.next-move-chip-keys{opacity:.75;align-items:center;gap:4px;display:inline-flex}.next-move-chip kbd{font:600 9px/12px var(--font,system-ui),sans-serif;border:1px solid;border-radius:3px;padding:0 4px}.toolbar-options .next-move-chip[data-state=ready]{border-color:color-mix(in srgb,var(--primary) 70%,transparent);background:color-mix(in srgb,var(--primary) 24%,transparent);color:#fff}.next-move-chip[data-state=ready] .next-move-dot{opacity:1;background:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 35%,transparent)}.next-move-chip[data-state=ready] .next-move-chip-keys{opacity:1}.next-move-chip[data-state=ready] kbd{color:#1f1f26;background:#fff;border-color:#fff}.next-move-chip[data-state=off]{opacity:.7}.next-move-hint{z-index:14;border:1px solid var(--line);background:var(--white);width:250px;color:var(--ink);font:12px/1.45 var(--font,system-ui),sans-serif;white-space:normal;pointer-events:none;border-radius:8px;padding:10px 12px;animation:.18s ease-out next-move-in;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 6px 20px #0003}.next-move-pill[data-hint=above] .next-move-hint{top:auto;bottom:calc(100% + 8px)}.next-move-hint strong{margin-bottom:3px;font-size:12px;display:block}.next-move-hint p{color:var(--muted);margin:0 0 8px}.next-move-hint kbd{border:1px solid var(--line);background:var(--subtle);color:var(--ink);font:600 10px/14px var(--font,system-ui),sans-serif;border-radius:3px;padding:0 4px}.next-move-hint button{pointer-events:auto;border:1px solid var(--line);background:var(--subtle);min-height:24px;color:var(--ink);cursor:pointer;border-radius:5px;padding:2px 10px;font-size:11px}@container drawing-toolbar (max-width:1180px){.next-move-chip-label{display:none}}@media (max-width:650px){.next-move-hint{width:min(250px,100vw - 24px)}}@media (prefers-reduced-motion:reduce){.next-move-pulse,.next-move-pill,.next-move-hint{animation:none}.next-move-accepted{animation-duration:10ms}}
.native-utilities>.mcp-pill{--tone:var(--muted);box-sizing:border-box;border:1px solid var(--line);background:var(--white);width:180px;max-width:180px;min-height:28px;color:var(--ink);font:500 11px var(--font);white-space:nowrap;border-radius:999px;flex:0 0 180px;align-items:center;gap:6px;padding:3px 10px 3px 9px;display:inline-flex}.native-utilities>.mcp-pill:hover{background:var(--hover);border-color:var(--muted)}.native-utilities>.mcp-pill[aria-expanded=true]{background:var(--selected);border-color:var(--selection-border)}.native-utilities>.mcp-pill:focus-visible{outline:2px solid var(--brand-orange);outline-offset:2px}.mcp-pill[data-tone=working]{--tone:var(--brand-orange);border-color:color-mix(in srgb, var(--brand-orange) 45%, var(--line))}.mcp-pill[data-tone=review]{--tone:var(--selection-ink)}.mcp-pill[data-tone=error]{--tone:var(--warning);background:var(--error-bg);border-color:var(--error-line)}.mcp-pill[data-tone=idle] .mcp-pill-text{color:var(--muted)}.mcp-pill>i{background:var(--tone);border-radius:50%;flex:none;width:7px;height:7px}.mcp-pill[data-tone=working]>i{animation:1.4s ease-in-out infinite mcp-dot}.mcp-pill strong{font-weight:650}.mcp-pill-text{color:var(--ink);text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:0;overflow:hidden}@keyframes mcp-dot{0%,to{box-shadow:0 0 0 0 color-mix(in srgb, var(--tone) 45%, transparent)}50%{box-shadow:0 0 0 4px color-mix(in srgb, var(--tone) 0%, transparent);opacity:.65}}.mcp-timeline{z-index:60;background:var(--white);width:min(360px,100vw - 24px);max-height:min(560px,100dvh - 76px);color:var(--ink);border:1px solid var(--line);border-radius:10px;flex-direction:column;font-size:12px;display:flex;position:fixed;top:56px;right:12px;box-shadow:0 12px 36px #0003}.mcp-timeline>header{border-bottom:1px solid var(--line);align-items:flex-start;gap:10px;padding:12px 12px 10px 14px;display:flex}.mcp-timeline>header>div{flex:1;min-width:0}.mcp-timeline h2{letter-spacing:-.01em;align-items:center;gap:7px;margin:0 0 3px;font-size:13px;font-weight:650;display:flex}.mcp-timeline h2>i{background:var(--muted);border-radius:50%;width:7px;height:7px}.mcp-timeline h2>i[data-working=true]{--tone:var(--brand-orange);background:var(--brand-orange);animation:1.4s ease-in-out infinite mcp-dot}.mcp-timeline header p{color:var(--muted);margin:0;font-size:11px}.mcp-timeline-close{appearance:none;border:1px solid var(--line);background:var(--white);width:28px;height:28px;color:var(--muted);border-radius:6px;flex:none;font-size:16px;line-height:1}.mcp-timeline-close:hover{background:var(--hover);color:var(--ink)}.mcp-timeline-options{border-bottom:1px solid var(--line);background:var(--subtle);color:var(--muted);align-items:center;gap:10px;padding:7px 14px;font-size:11px;display:flex}.mcp-timeline-options label{color:var(--ink);cursor:pointer;align-items:center;gap:6px;display:inline-flex}.mcp-timeline-options input{width:14px;height:14px;accent-color:var(--brand-orange);margin:0}.mcp-timeline ol{overscroll-behavior:contain;margin:0;padding:4px 0;list-style:none;overflow-y:auto}.mcp-timeline li{--tone:var(--green);border-top:1px solid color-mix(in srgb, var(--line) 60%, transparent);grid-template-columns:7px minmax(0,1fr);gap:10px;padding:8px 14px;display:grid}.mcp-timeline li:first-child{border-top:0}.mcp-timeline li>i{background:var(--tone);border-radius:50%;width:7px;height:7px;margin-top:5px}.mcp-timeline li[data-tone=working]{--tone:var(--brand-orange)}.mcp-timeline li[data-tone=working]>i{animation:1.4s ease-in-out infinite mcp-dot}.mcp-timeline li[data-tone=review]{--tone:var(--selection-ink);background:color-mix(in srgb, var(--selected) 55%, transparent)}.mcp-timeline li[data-tone=error]{--tone:var(--warning)}.mcp-timeline li[data-tone=muted]{--tone:var(--muted)}.mcp-timeline li>div{flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0;display:flex}.mcp-timeline li strong{flex:auto;min-width:0;font-weight:550}.mcp-timeline li small{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:10.5px}.mcp-count{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:450}.mcp-result{color:var(--muted);overflow-wrap:anywhere;flex-basis:100%;font-size:11px;line-height:1.45}.mcp-timeline li[data-tone=error] .mcp-result{color:var(--warning)}.mcp-timeline li[data-tone=review] .mcp-result{color:var(--selection-ink)}.mcp-review,.mcp-toast-review{appearance:none;border:1px solid var(--selection-border);background:var(--white);min-height:26px;color:var(--selection-ink);font:600 11px var(--font);border-radius:6px;margin-top:5px;padding:3px 10px}.mcp-review:hover,.mcp-toast-review:hover{background:var(--selected)}.mcp-timeline-empty{color:var(--muted);padding:16px 14px}.mcp-timeline-empty p{margin:0 0 8px;line-height:1.5}.mcp-timeline-empty button{appearance:none;color:var(--selection-ink);font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.mcp-toasts{z-index:70;pointer-events:none;flex-direction:column;gap:8px;width:min(380px,100vw - 32px);display:flex;position:fixed;bottom:64px;right:18px}.mcp-toasts[data-placement=bottom-left]{left:18px;right:auto}.mcp-toasts[data-placement=top-center]{inset:56px auto auto 50%;transform:translate(-50%)}.mcp-toasts[data-placement=bottom-center]{left:50%;right:auto;transform:translate(-50%)}.mcp-toasts[data-measuring] .mcp-toast{pointer-events:none}.mcp-toast{--tone:var(--selection-ink);border:1px solid var(--selection-border);background:var(--white);color:var(--ink);pointer-events:auto;border-radius:9px;align-items:center;gap:10px;padding:10px 10px 10px 13px;font-size:12px;animation:.18s ease-out mcp-toast-in;display:flex;box-shadow:0 10px 30px #0003}.mcp-toast>i{background:var(--tone);border-radius:50%;flex:none;width:7px;height:7px}.mcp-toast>span{flex:1;min-width:0;font-weight:550}.mcp-toast .mcp-toast-review{background:var(--selected);margin:0}.mcp-toast-dismiss{appearance:none;width:24px;height:24px;color:var(--muted);background:0 0;border:0;padding:0;font-size:15px}@keyframes mcp-toast-in{0%{opacity:0;transform:translateY(6px)}}.mcp-trace-region polygon{fill:color-mix(in srgb, var(--brand-orange) 9%, transparent);stroke:var(--brand-orange);stroke-width:2px;stroke-dasharray:6 4;animation:1s linear infinite mcp-march}.mcp-trace-candidates circle{fill:color-mix(in srgb, var(--brand-orange) 22%, transparent);stroke:var(--brand-orange);stroke-width:2px;stroke-dasharray:none}@keyframes mcp-march{to{stroke-dashoffset:-20px}}@media (max-width:900px){.native-utilities>.mcp-pill{flex-basis:140px;width:140px;max-width:140px}}@media (max-width:650px){.native-utilities>.mcp-pill{flex-basis:92px;width:92px;max-width:92px;padding-inline:7px}.mcp-pill-text{display:none}.mcp-timeline{max-height:calc(100dvh - 100px);top:80px;right:8px}.mcp-toasts{bottom:64px;right:16px}}@media (prefers-reduced-motion:reduce){.mcp-pill>i,.mcp-timeline i,.mcp-trace-region polygon,.mcp-toast{animation:none!important}}
.ai-changes{border:1px solid var(--line,#d0d0d0);background:var(--white,#fff);width:min(680px,100vw - 32px);max-height:min(80vh,720px);color:var(--ink,#1d1d1f);border-radius:10px;padding:0;font-size:13px;box-shadow:0 18px 50px #0004}.ai-changes::backdrop{background:#0002}.ai-changes-header{border-bottom:1px solid var(--line,#ddd);align-items:center;gap:12px;padding:12px 16px 9px;display:flex}.ai-changes-header h2{flex:1;margin:0;font-size:17px;font-weight:700}.ai-changes-switch,.ai-changes-review{white-space:nowrap;align-items:center;gap:6px;display:flex}.ai-changes-body{max-height:calc(min(80vh,720px) - 52px);padding:12px 16px 16px;overflow:auto}.ai-changes-status{color:var(--muted,#6e6e73);margin:0 0 6px;font-size:11px}.ai-changes-note{color:var(--muted,#6e6e73);margin:0 0 8px}.ai-changes hr{border:0;border-top:1px solid var(--line,#ddd);margin:10px 0}.ai-changes-project{align-items:center;gap:8px;margin-bottom:6px;display:flex}.ai-changes-project h3{flex:1;margin:0;font-size:14px}.ai-changes-pending{border-bottom:1px solid var(--line,#ddd);padding:6px 0}.ai-changes-row-head{align-items:center;gap:6px;display:flex}.ai-changes-row-head>span{flex:1;font-weight:600}.ai-changes-record{border-bottom:1px solid var(--line,#e5e5e5);grid-template-columns:16px 1fr auto;align-items:start;gap:8px;padding:5px 0;display:grid}.ai-changes-record summary{cursor:pointer;gap:8px;list-style-position:inside;display:flex}.ai-changes-client{white-space:nowrap;font-weight:600}.ai-changes-label{color:var(--muted,#6e6e73);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.ai-changes-record time{color:var(--muted,#6e6e73);white-space:nowrap;font-size:11px}.ai-changes-entity{margin:6px 0 0 14px}.ai-changes-entity span{color:var(--muted,#6e6e73)}.ai-changes-field{overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;margin:2px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.ai-changes-error{color:#d70015;margin:6px 0}.ai-changes-empty{color:var(--muted,#6e6e73)}.ai-changes button{font:inherit;border:1px solid var(--line,#c7c7cc);background:var(--white,#fff);min-height:24px;color:inherit;cursor:pointer;border-radius:6px;padding:2px 10px}.ai-changes button.primary{background:var(--primary);border-color:var(--primary);color:#fff}.ai-changes button:disabled{opacity:.45;cursor:default}.mcp-ai-control{align-items:center;gap:6px;margin:6px 0;display:flex}.mcp-ai-clients{color:var(--muted,#6e6e73);margin:2px 0 6px;font-size:11px}@media (max-width:520px){.ai-changes-header{flex-wrap:wrap}.ai-changes-record{grid-template-columns:16px 1fr}.ai-changes-record>button{grid-column:2;justify-self:start}}.ai-changes{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif;line-height:1.4}.ai-changes label{justify-content:flex-start;align-items:center;gap:6px;margin:0;font-weight:400;display:flex}.ai-changes input[type=checkbox]{width:14px;height:14px;min-height:0;accent-color:var(--primary);flex:none;margin:0;padding:0}.ai-changes-record>input[type=checkbox]{margin-top:2px}.ai-changes-row-note{color:var(--muted,#6e6e73);grid-column:2/-1;margin:2px 0 0;font-size:11px}.ai-changes .ai-review-setting{border:0;flex-direction:column;gap:2px;margin:4px 0;padding:0;display:flex}.ai-changes .ai-review-setting small{color:var(--muted,#6e6e73);font-size:11px}
.takeoff-sheet-tag:focus{outline:none}.takeoff-sheet-tag:focus-visible .takeoff-tag-hit{stroke:var(--accent);stroke-width:2px;vector-effect:non-scaling-stroke}.takeoff-sheet-tag[role=button]{cursor:pointer}
