#open-plan { width: 100%; min-height: 44px; margin-top: 9px; border: 1px solid #c3ab86; border-radius: 6px; background: #d4c0a1; color: #2f2a21; font: 600 13px var(--font); cursor: pointer; }
#open-plan:hover { background: #e3d2b8; }
#plan-dialog { --ink: #302d27; --muted: #777067; --border: #e0dacf; --paper: #f8f5ef; color-scheme: light; color: var(--ink); background: var(--paper); border: 0; padding: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; overflow: auto; overscroll-behavior: contain; font: 14px/1.5 var(--font); }
#plan-dialog::backdrop { background: #29241cbb; }
#plan-dialog :focus-visible { outline: 2px solid #a14932; outline-offset: 3px; }
#plan-dialog button, #plan-dialog select { font: inherit; color: inherit; min-height: 44px; }
#plan-dialog button { cursor: pointer; }
.plan-header { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 30px; border-bottom: 1px solid var(--border); }
.plan-eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
#plan-title { font-size: 25px; letter-spacing: 1px; font-weight: 500; margin: 2px 0 0; }
#plan-close { border: 1px solid #d4cbbc; border-radius: 7px; padding: 6px 15px; background: transparent; white-space: nowrap; }
#plan-close span { font-size: 24px; margin-left: 15px; vertical-align: -1px; color: #817767; }
#plan-content { padding: 0 30px 18px; }
#plan-loading { padding: 40px; color: var(--muted); }
#plan-retry { margin: 0 40px; }
.plan-selectors { display: grid; grid-template-columns: minmax(180px, 1fr) 44px minmax(180px, 1fr) minmax(200px, .8fr); gap: 12px; align-items: end; padding: 17px 0; }
.plan-selectors label > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.plan-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.plan-dot.before { background: #41778e; }.plan-dot.after { background: #a14932; }
.plan-selectors select { width: 100%; border-radius: 6px; border: 1px solid #d8d0c3; background: #fffcf6; padding: 6px 12px; }
#plan-swap { border: 0; background: transparent; font-size: 24px; color: #83755f; }
#plan-provenance { margin: 0 0 4px 10px; color: var(--muted); font-size: 11px; max-width: 280px; }
.plan-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.plan-segment { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: #ede8df; }
.plan-segment button { padding: 3px 15px; min-height: 34px !important; border: 0; border-radius: 5px; background: transparent; font-size: 12px !important; color: #746b5f !important; }
.plan-segment button[aria-pressed="true"] { background: #fffcf6; color: #302d27 !important; box-shadow: 0 1px 4px #55482b20; }
.plan-zoom { display: flex; gap: 2px; margin-left: auto; }
.plan-zoom button { border: 1px solid var(--border); background: #fffcf6; padding: 2px 13px; font-size: 12px !important; }
.plan-zoom button:first-child { border-radius: 6px 0 0 6px; }.plan-zoom button:last-child { border-radius: 0 6px 6px 0; }
.plan-gesture { font-size: 10px; color: var(--muted); }
.plan-body { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 22px; }
.plan-drawing { min-width: 0; }
.plan-canvases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-canvases.is-overlay { grid-template-columns: 1fr; }
.plan-pane { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow: hidden; }
.plan-pane h3 { height: 42px; display: flex; align-items: center; margin: 0; padding: 0 15px; background: #f0ece4; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--border); }
.plan-pane h3:before { content: ''; width: 5px; height: 12px; border-radius: 1px; background: #41778e; margin-right: 8px; }
#plan-after-pane h3:before, #plan-overlay-pane h3:before { background: #a14932; }
.plan-pane svg { display: block; width: 100%; height: max(380px, calc(100dvh - 360px)); min-height: 380px; background: #fff; cursor: grab; touch-action: none; }
.plan-pane svg:active { cursor: grabbing; }
.plan-label { font-size: 110px; fill: #39362f; font-weight: 600; stroke: #fffdf7; stroke-width: 30px; stroke-linejoin: round; paint-order: stroke fill; pointer-events: none; }
.plan-room-label { font-size: 145px; fill: #605849; font-weight: 400; }
.plan-full-label { font-size: 290px; fill: #78614b; font-weight: 400; stroke-width: 55px; }
.plan-text-before { fill: #246080; }.plan-text-after { fill: #a14932; }
.plan-original-wall { fill: #34322e; fill-opacity: .06; stroke: #f2dfba; stroke-width: 1.8px; vector-effect: non-scaling-stroke; stroke-dasharray: 5 3; }
.plan-cabinet-outline { fill: none; stroke: #88704e; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.plan-infill-outline { fill: #a49abd; fill-opacity: .35; stroke: #776487; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.plan-infill-label { fill: #655474; }
.swatch.infill { background: #c7bfd1; border: 1px solid #776487; }
.plan-seat-outline { fill: #f0dfb5; fill-opacity: .2; stroke: #9b702c; stroke-width: 2px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.plan-mirror-outline { fill: #477f97; stroke: #477f97; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.plan-beam-outline { fill: #9a6b9f22; stroke: #805486; stroke-width: 2px; stroke-dasharray: 7 4; vector-effect: non-scaling-stroke; }
.plan-beam-label { fill: #704879; font-size: 90px; }
.plan-layers label[hidden] { display: none; }
.plan-seat-label { fill: #896126; font-size: 95px; }.plan-mirror-label { fill: #32637a; font-size: 95px; }
.swatch.seat { border: 1px dashed #9b702c; background: #f0dfb5; }.swatch.mirror { background: #477f97; }
.plan-door-before, .plan-door-after { fill: none; stroke: #246d92; stroke-width: 3px; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.plan-door-after { stroke: #b54d32; stroke-width: 4px; stroke-dasharray: none; }
.plan-door-swing { stroke: #b54d32; fill: none; stroke-width: 1.3px; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.plan-dimension { stroke: #a14932; stroke-width: 10px; fill: none; }
.plan-leader { stroke: #8e806b; stroke-width: 8px; fill: none; }
.plan-detail-frame { fill: none; stroke: #a14932; stroke-width: 2px; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; font-size: 11px; color: #62594d; }
.plan-legend span { display: flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 19px; height: 10px; }
.swatch.wall { background: #3b3934; border: 1px dashed #ddc69c; }
.swatch.added { background: repeating-linear-gradient(130deg,#f0d3a8 0 3px,#b9792b 3px 4px); }
.swatch.removed { background: repeating-linear-gradient(50deg,#c2dece 0 3px,#568b76 3px 4px); }
.swatch.old-door { height: 0; border-top: 2px dashed #246d92; }.swatch.new-door { height: 0; border-top: 3px solid #b54d32; }
.plan-image-note { color: #857d72; font-size: 10px; margin: 10px 0 0; }
#plan-blend-control { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; color: #6a6154; font-size: 12px; }
#plan-blend { flex: 1; accent-color: #a14932; cursor: pointer; height: 26px; min-width: 50px; }#plan-blend-output { min-width: 35px; }
.plan-insights { max-height: calc(100dvh - 275px); overflow: auto; padding-right: 7px; scrollbar-width: thin; }
.plan-fact { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid var(--border); }
.plan-fact-kicker { color: #8d7e67; font-size: 10px; letter-spacing: .8px; }
.plan-fact h3 { font-size: 16px; font-weight: 500; margin: 8px 0; }
.plan-fact p { font-size: 11px; color: var(--muted); margin: 7px 0 0; line-height: 1.8; }
.plan-fact .plan-number { font-size: 32px; line-height: 1.2; color: #82532d; font-weight: 400; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.plan-number small { font-size: 13px; letter-spacing: 0; color: #8d7e67; }
.plan-area-pair { display: flex; gap: 20px; color: #8b8172; font-size: 11px; margin-top: 8px; }.plan-area-pair b { color: #484037; font-size: 14px; font-weight: 500; margin-left: 4px; }
.plan-door-note { margin-top: 12px; background: #eee8dc; border-radius: 6px; padding: 10px 12px; font-size: 11px; color: #75664f; line-height: 1.8; }.plan-door-note b { font-weight: 600; }
.plan-layers { border: 0; padding: 0; margin: 0 0 15px; }.plan-layers legend { font-size: 12px; margin-bottom: 6px; }
.plan-layers label { display: flex; gap: 8px; align-items: center; min-height: 33px; font-size: 12px; color: #736a5c; cursor: pointer; }.plan-layers input { accent-color: #85694a; width: 16px; height: 16px; margin: 0; }
.plan-method { font-size: 11px; color: #827768; }.plan-method summary { cursor: pointer; min-height: 32px; }.plan-method p { line-height: 1.8; }
.plan-same { font-size: 12px; color: #8a4d2b; padding: 10px; background: #eee0c7; border-radius: 5px; }
@media (min-width: 1700px) { #plan-content { max-width: 1780px; margin: auto; }.plan-header { padding-inline: max(30px, calc((100vw - 1720px)/2)); } }
@media (max-width: 1100px) {
  .plan-body { grid-template-columns: minmax(0, 1fr) 235px; gap: 14px; }.plan-gesture { display: none; }
  #plan-provenance { grid-column: 1/-1; max-width: none; margin: 0; }.plan-selectors { grid-template-columns: 1fr 36px 1fr; gap: 7px; padding: 12px 0; }
  #plan-content { padding-inline: 18px; }.plan-header { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .plan-label { font-size: 145px; }.plan-room-label { font-size: 175px; }.plan-full-label { font-size: 380px; }
  .plan-header { height: 76px; padding: 12px 14px; }#plan-title { font-size: 22px; }.plan-eyebrow { font-size: 9px; }
  #plan-content { padding: 0 12px 24px; }#plan-close { font-size: 12px !important; padding: 3px 9px; }#plan-close span { margin-left: 8px; }
  .plan-body { display: block; }.plan-insights { max-height: none; overflow: visible; padding: 22px 2px 0; }
  .plan-canvases { grid-template-columns: 1fr; gap: 12px; }.plan-pane svg { height: 430px; min-height: 0; }
  .plan-toolbar { gap: 6px; }.plan-segment button { padding-inline: 10px; font-size: 11px !important; min-height: 38px !important; }
  .plan-zoom { margin-left: auto; }.plan-zoom button { padding: 2px 9px; min-height: 44px !important; }
  .plan-selectors { grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr); }.plan-selectors select { font-size: 12px !important; padding-inline: 6px; }
  .plan-fact { padding: 12px 14px; background: #f0ebe1; border: 1px solid #e1d8c8; border-radius: 8px; margin-bottom: 10px; }.plan-fact p { font-size: 12px; }
  .plan-layers { margin-top: 20px; }.plan-layers label { min-height: 44px; }.plan-legend { gap: 8px 12px; }.plan-method { font-size: 12px; }
}
.plan-tv-outline { fill: none; stroke: #a88c56; stroke-width: 12; stroke-dasharray: 28 18; }
.plan-feature-outline { fill: #a77842; fill-opacity: .55; stroke: #704a28; stroke-width: 8; }

.plan-canvases.is-public .plan-label { font-size: 145px; }
.plan-canvases.is-public .plan-room-label { font-size: 175px; }
@media(max-width:720px) { .plan-canvases.is-public .plan-pane svg { height: 620px; } }
