/* Shared visual language with Anna Adamenko's interior studio.
   Keep the application layout and interaction layer in studio.css. */
@font-face {
  font-family: RoomSerif;
  src: url('assets/serif.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: RoomSerif;
  src: url('assets/serif-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f4f1e9;
  --surface: #fbf9f2;
  --ink: #31372b;
  --text: #31372b;
  --muted: #74796b;
  --olive: #4b5740;
  --line: #d5d7ca;
  --accent: #4b5740;
  --bg: #f4f1e9;
  --sage: #e8eade;
  --warn: #efe4d7;
  --studio-olive: #4b5740;
  --studio-sage: #d5d7ca;
  --studio-clay: #a07759;
  --serif: RoomSerif, Georgia, serif;
}
body { background: var(--paper); -webkit-font-smoothing: antialiased; }
body::before { display: none; }
::selection { background: #d5d7ca; color: var(--ink); }
a { color: var(--olive); }
p { color: #707666; }
:is(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid #8e5f3f;
  outline-offset: 4px;
}
input[type=range], input[type=checkbox] { accent-color: var(--olive); }
.layout { gap: 30px; padding: 0 24px 0 0; }
.workspace { padding-top: 24px; }
.sidebar {
  top: 0; height: 100vh; padding: 36px 18px 24px;
  background: transparent; color: var(--ink);
  border: 0; border-right: 1px solid var(--line);
  border-radius: 0; box-shadow: none;
}
.sidebar::after { display: none; }
.brand { gap: 10px; padding: 0; }
.brandicon {
  width: 36px; height: 42px; background: transparent;
  color: var(--olive); border: 1px solid #aeb69c;
  border-radius: 3px; box-shadow: none; transform: none;
}
.brandicon .icon { width: 23px; height: 23px; transform: none; }
.brand strong { font: 30px/1.05 var(--serif); letter-spacing: -.7px; color: var(--ink); }
.brand small { color: var(--muted); font-size: 7px; letter-spacing: 1.75px; margin-top: 8px; }
.nav { margin-top: 60px; gap: 8px; }
.nav button { color: #69715e; border-radius: 5px; font-size: 12px; padding: 15px 12px; font-weight: 400; }
.nav button:hover { background: #e8eade; color: var(--ink); transform: none; }
.nav button.active { background: var(--olive); color: var(--surface); box-shadow: none; }
.nav .badge { background: #d5d7ca; color: var(--olive); }
.nav button.active .badge { background: #ffffff24; color: var(--surface); }
.nav .icon { width: 18px; height: 18px; stroke-width: 1.35; }
.localbadge { color: #69715e; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 21px 0 12px; }
.localbadge .dot { background: #899676; box-shadow: none; }
.sidebar-bottom button { color: #74796b; font-size: 9px; padding: 10px 0; }
.sidebar-bottom button:hover { color: var(--ink); }
.topbar { border-color: var(--line); padding-bottom: 20px; }
.topbar .roomselect { background: transparent; color: var(--olive); border-color: var(--line); border-radius: 5px; }
.workspace-label { letter-spacing: 1.6px; font-size: 8px; color: #74796b; }
.saveindicator { color: #74796b; }
.saveindicator .icon { color: #7b8869; }
.motion-toggle { border-color: var(--line); background: transparent; border-radius: 4px; color: #74796b; }
.motion-toggle[aria-pressed=true] { color: var(--olive); }
.motion-toggle:hover { background: #e8eade; }
.pageheading { margin: 36px 0 31px; min-height: 146px; }
.eyebrow { color: var(--muted); font-size: 8px; letter-spacing: 1.8px; font-weight: 400; margin-bottom: 15px; }
.eyebrow::before { width: 20px; height: 1px; border-radius: 0; background: #a4ab95; box-shadow: none; }
h1 { font: 400 clamp(43px,3.8vw,60px)/1.02 var(--serif); letter-spacing: -1.8px; }
h1 .heading-highlight { font-style: italic; color: #7b8168; }
.pageheading p { color: #707666; font-size: 12px; line-height: 1.85; margin-top: 17px; max-width: 510px; }
.heading-side { gap: 24px; }
.sample-stack { width: 120px; height: 45px; margin-right: 4px; }
.sample-stack i { width: 44px; height: 44px; border-radius: 4px; border: 2px solid var(--paper); box-shadow: 0 4px 9px #31372b0e; }
.sample-stack i:nth-child(1) { background: #a8b093; transform: rotate(-8deg); }
.sample-stack i:nth-child(2) { left: 35px; top: -3px; background: url('assets/textures/molenaer-hd.png') center / 130px; transform: rotate(3deg); }
.sample-stack i:nth-child(3) { left: 70px; background: #e1d3bd; transform: rotate(11deg); }
.button { border-radius: 5px; border-color: var(--olive); background: var(--olive); color: var(--surface); box-shadow: none; font-weight: 400; }
.button:hover { background: #3d4933; border-color: #3d4933; box-shadow: 0 3px 10px #31372b0c; transform: translateY(-1px); }
.button.secondary { border-color: #cbd0be; background: transparent; color: var(--olive); box-shadow: none; }
.button.secondary:hover { background: #e8eade; border-color: #8e9a7c; color: var(--ink); }
.button.ghost { background: transparent; border-color: transparent; color: #74796b; }
.button.ghost:hover { background: #e8eade; color: var(--olive); border-color: transparent; }
.button.small { border-radius: 4px; }
.button.danger { background: #f2e8dd; border-color: #dac3af; color: #8a4f35; }
.iconbutton { background: var(--surface); border-color: var(--line); color: #74796b; }
.iconbutton:hover,.iconbutton.active { background: #e8eade; border-color: #b5baa7; color: var(--olive); transform: none; }
.panel { border-radius: 12px; border-color: var(--line); background: var(--surface); box-shadow: none; }
.panelhead h2,.catalog-panel .panelhead h2,.furniture-catalog .panelhead h2,.furnishing-stage .panelhead h2 { font: 400 27px/1.1 var(--serif); letter-spacing: -.5px; }
.panelhead h3 { font-weight: 500; }
.panelhead>.icon { background: #e8eade; color: #7b8869; border-radius: 5px; }
.panelhead small,.smallnote,.footnote { color: #74796b; }
.pill { background: #e9eadd; color: #69715e; border-radius: 4px; }
.pill.ok { background: #e5e9dc; color: #536144; }
.pill.dark { background: var(--olive); }
.pill.warn { background: #efe4d7; color: #805c38; }
.room-type-picker { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0 16px; box-shadow: none; margin-bottom: 26px; }
.panel.room-type-picker { border-radius: 0; }
.room-type-heading h2 { font: 400 22px/1.2 var(--serif); letter-spacing: -.3px; }
.room-type-heading p { color: var(--muted); font-size: 10px; }
.room-type-heading .button { color: var(--olive); background: transparent; border-color: var(--line); }
.room-type-card,.room-type-card[data-id] { --room-tint: #e8eade; --room-ink: #788369; border-radius: 6px; background: #edede3; color: #69715e; border-color: transparent; }
.room-type-card>.icon:first-child { background: transparent; color: #788369; padding: 5px; border-radius: 0; stroke-width: 1.25; }
.room-type-card:hover { background: #e4e7d9; border-color: #b5baa7; box-shadow: none; transform: translateY(-1px); }
.room-type-card.active { background: #e4e7d9; border-color: #899676; color: var(--ink); box-shadow: none; }
.room-type-card:not(.active) { color: #69715e; }
.room-type-card.active>.icon:first-child { color: var(--olive); }
.room-type-footer,.room-type-footer .button { color: var(--muted); }
.viewer,.furnishing-stage { background: #edeadf; border: 1px solid #dcdccf; border-radius: 12px; box-shadow: none; }
.viewer::before,.furnishing-stage::before { background: radial-gradient(ellipse at var(--glow-x) var(--glow-y),#fffdf6cf,transparent 65%),radial-gradient(ellipse at 90% 85%,#d9d4bd66,transparent 60%); filter: blur(12px); }
html[data-motion=on] .viewer::before,html[data-motion=on] .furnishing-stage::before { animation-duration: 24s; }
.viewer-tools .pill { background: #fbf9f2cf; border-color: #fdfbf4; color: #69715e; }
.segmented { border-radius: 5px; background: #fbf9f2cf; border-color: #d5d7ca; box-shadow: none; }
.segmented button { color: #74796b; border-radius: 3px; }
.segmented button.active { background: var(--olive); color: var(--surface); box-shadow: none; }
.scene .surface-active,.scene [data-surface]:hover { stroke: #899676; }
.scene .pin.active circle { fill: var(--olive); }
.scene .pin text { fill: var(--olive); }
.scene .pin:hover circle { fill: #e8eade; }
.scene .pin.active:hover circle { fill: #3d4933; }
.scene .pin.active text { fill: var(--surface); }
.scene .pin circle { filter: drop-shadow(0 3px 6px #31372b20); }
.photo-pin { background: #7b8869dc; }
.photo-pin.active { background: var(--olive); }
.wall-label,.dimension-label { fill: #74796b; }
.viewer-bottom,.camera-controls { background: #f4f1e995; border-color: #d5d7ca; color: var(--muted); }
.viewer-bottom strong { color: var(--olive); font: 400 27px/1.2 var(--serif); }
.viewer-bottom button,.camera-controls label { color: #74796b; }
.camera-controls input { accent-color: var(--olive); }
.camera-controls .button { background: #fbf9f2aa; border-color: #cbd0be; color: #69715e; }
.camera-controls .button.active { background: var(--olive); color: var(--surface); border-color: var(--olive); }
.dynamic-room.night { background: radial-gradient(ellipse at 50% 65%,#737663,#353c31); border-radius: 10px; }
.night .wall-label,.night .dimension-label { fill: #e3e5d8; }
.surface-card { border-radius: 8px; border-color: var(--line); background: var(--surface); }
.surface-card:hover { border-color: #9aa58a; box-shadow: none; transform: translateY(-1px); }
.surface-card.active { background: #e8eade; border-color: #899676; box-shadow: none; }
.surface-card strong,.surface-card.active .state { color: var(--olive); }
.surface-card .swatch { border-radius: 4px; }
.catalog-panel,.furniture-catalog { background: var(--surface); border-color: var(--line); }
.surface-tabs { background: #eeeee4; border: 0; border-radius: 5px; }
.surface-tabs button { color: #74796b; border-radius: 3px; }
.surface-tabs button.active { color: var(--olive); background: #fbf9f2; box-shadow: 0 1px 5px #31372b0b; }
.search input,.filters select { color: var(--olive); background: #f7f5ed; border-color: var(--line); border-radius: 5px; }
.search .icon { color: #8b907f; }
.product-grid,.furniture-grid { scrollbar-color: #b5baa7 transparent; }
.product { background: #fcfaf4; border-radius: 7px; border-color: var(--line); }
.product:hover { border-color: #a4af95; box-shadow: 0 5px 14px #31372b0b; transform: translateY(-1px); }
.product.selected { border-color: #899676; background: #f7f8ed; }
.product-photo { background: #e8e7dc; }
.product-title,.selection-info h3 { color: #4b5740; }
.product-brand,.product-body .pricehint,.catalog-source,.catalog-count { color: #74796b; }
.product-actions .choose { background: #eeeee4; border-color: #d5d7ca; color: #657058; border-radius: 4px; }
.product-actions .choose:hover { background: #e4e7d9; color: var(--olive); }
.product-actions .chosen,.product-actions .chosen:hover { background: var(--olive); color: var(--surface); border-color: var(--olive); }
.product-actions .comparebox { border-color: #d5d7ca; background: #fbf9f2; color: #74796b; border-radius: 4px; }
.product .favorite { color: #7c806f; background: #fbf9f2e8; }
.product .favorite.active { color: #8e5f3f; background: #f2e5d6; }
.catalog-source,.divider { border-color: var(--line); }
.selection-row img { border-radius: 7px; }
.texturelabel,.colorlabel { color: #74796b; }
.texturelabel input,.texture-controls input[type=range],.texture-editor-side input { accent-color: var(--olive); }
.texture-controls output { color: var(--olive); }
.texture-controls small,.field small { color: #74796b; }
.furniture-card { border-color: var(--line); border-radius: 8px; background: var(--surface); }
.furniture-card:hover { border-color: #a4af95; box-shadow: 0 5px 14px #31372b0b; transform: translateY(-1px); }
.furniture-card.selected { outline-color: #899676; }
.furniture-photo { background: linear-gradient(135deg,#eeece1,#e4e7d9); }
.furniture-card:nth-child(3n+2) .furniture-photo { background: linear-gradient(135deg,#e5e8da,#f1efe6); }
.furniture-card:nth-child(3n+3) .furniture-photo { background: linear-gradient(135deg,#efe4d7,#f2efe6); }
.furniture-photo:hover .item-thumb { transform: translateY(-2px); }
.item-inspector,.purchase-row,.accessory-questions,.accessory-card { border-color: var(--line); }
.item-inspector p,.accessory-questions h3,.room-metrics { color: #74796b; }
.room-metrics strong { color: var(--olive); font-family: var(--serif); font-weight: 400; }
.plan-item.selected { filter: drop-shadow(0 0 .035px #899676); }
.plan-item:focus rect { stroke: #8e5f3f; }
.purchase-row select { border-color: var(--line); border-radius: 5px; background: #f7f5ed; }
.field label { color: #69715e; }
.field input,.field select,.field textarea { color: var(--olive); border-color: #cbd0be; background: #fcfaf4; border-radius: 5px; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: #899676; box-shadow: 0 0 0 3px #89967612; }
.calc-result { background: #eeeee4; border-color: var(--line); border-radius: 7px; }
.calc-result strong { color: var(--olive); }
.warning-inline { color: #8e5f3f; }
.estimate-summary { background: #4b5740; color: #f4f1e9; border-color: #4b5740; box-shadow: none; }
.estimate-summary h2 { color: #f4f1e9; }
.estimate-summary .big-amount { color: #f4f1e9; font: 400 46px/1.1 var(--serif); letter-spacing: -1px; }
.estimate-summary p { color: #d5d7ca!important; }
.estimate-summary .summary-lines div { border-color: #6d785f; color: #d5d7ca; }
.estimate-summary .summary-lines strong,.estimate-summary .metricline strong { color: #f4f1e9; }
.estimate-summary .metricline,.estimate-summary .field label,.estimate-summary .smallnote { color: #d5d7ca; }
.estimate-summary .divider { background: #6d785f; border-color: #6d785f; }
.estimate-summary .field input { background: #ffffff0b; border-color: #8b967e; color: #f4f1e9; }
.estimate-summary .button { background: #f4f1e9; border-color: #f4f1e9; color: #4b5740; }
.estimate-summary .button:hover { background: #e1e5d5; }
.estimate-summary .button.secondary { color: #f4f1e9; border-color: #8b967e; background: transparent; }
.estimate-summary .button.ghost { color: #d5d7ca; border-color: transparent; background: transparent; }
.estimate-summary .budget-meter { background: #788369; }
.estimate-summary .budget-meter span { background: #d5d7ca; }
.estimate-summary .budget-meter.over span { background: #ddb28c; }
.estimate-summary .pill.ok { background: #69765b; color: #f4f1e9; }
.estimate-summary .pill.warn { background: #74644d; color: #ffead4; }
.estimate-summary .warning-inline { color: #ffcfad!important; }
.room-card .cover { background: linear-gradient(135deg,#eeece1,#e4e7d9); }
.room-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #31372b0b; }
.room-card .body h2,.set-card h2 { font: 400 29px/1.2 var(--serif); }
.room-card .cover .pill { background: #e4e7d9; color: var(--olive); }
.newroom { border-color: #adb69d; border-radius: 12px; background: transparent; color: #747e68; }
.newroom:hover { background: #e8eade; transform: translateY(-2px); }
.newroom .icon,.empty>.icon { background: #e8eade; color: #7b8869; border-radius: 50%; }
.set-card { border-left-color: #899676; }
.settings-help { background: #e8eade; }
dialog,dialog[data-editor] { background: var(--paper); border-color: #e0e1d5; border-radius: 12px; box-shadow: 0 25px 90px #31372b40; }
dialog::backdrop { background: #31372b65; backdrop-filter: blur(7px); }
.dialogheader,dialog[data-editor] .dialogheader { background: var(--paper); border-color: var(--line); }
.dialogheader h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -.6px; }
.dialogfooter,dialog[data-editor] .dialogfooter { background: #f4f1e9f5; border-color: var(--line); }
.editor-tabs { background: var(--paper); border-color: var(--line); gap: 12px; }
.editor-tabs button { border-radius: 3px; color: #74796b; font-size: 11px; }
.editor-tabs button>span { color: #8b907f; }
.editor-tabs button.active { color: var(--olive); background: #e4e7d9; }
.editor-tabs button.active>span { color: #747e68; }
.editor-tabs button:hover { background: #e8eade; }
.editor-section-title h3 { font: 400 24px/1.15 var(--serif); color: var(--ink); }
.editor-section-title p { color: #74796b; }
.editor-fields label,.editor-measure label { color: #74796b; font-weight: 400; }
.editor-fields input,.editor-fields select,.editor-fields textarea { background: #fbf9f2; border-color: #cbd0be; border-radius: 5px; }
.editor-measure { border-radius: 7px; background: #fbf9f2; border-color: var(--line); }
.editor-measure-input input { color: var(--olive); font: 400 32px/1.3 var(--serif); border-radius: 0; }
.editor-measure-input input:focus { outline: none; }
.editor-unit { color: #74796b; }
.editor-measure:focus-within { border-color: #899676; box-shadow: 0 0 0 3px #89967612; }
.editor-preview { background: radial-gradient(ellipse at 10% 0,#f9f7ee,transparent 70%),#e7e8dc; border-color: #d5d7ca; border-radius: 8px; }
.editor-preview-label { color: #747e68; font-weight: 400; }
.editor-preview-title { color: var(--ink); font: 400 28px/1.1 var(--serif); letter-spacing: -.5px; }
.editor-live-stats { border-color: #cbd0be; }
.editor-live-stats small,.editor-live-stats strong>span { color: #74796b; }
.editor-live-stats strong { color: var(--olive); font: 400 28px/1.2 var(--serif); }
.editor-live-stats .editor-size-text { font-family: Room,Arial,sans-serif; font-size: 12px; }
.editor-preview-help,.editor-preview .room-form-map>.smallnote { color: #74796b; }
.editor-rotations button { color: #74796b; border-color: #cbd0be; border-radius: 5px; background: #fbf9f2; }
.editor-rotations button[aria-pressed=true] { color: var(--olive); background: #e4e7d9; border-color: #899676; }
.editor-tip,.editor-color-hex { color: #74796b; }
.editor-color-control input[type=color] { border-radius: 50%; }
.editor-color-swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px #899676; }
.editor-controls .opening-row,.opening-row { border-color: var(--line); border-radius: 7px; background: #fbf9f2; }
.opening-toggle,.opening-heading { color: var(--olive); }
.opening-symbol { border-radius: 4px; background: #e8eade; color: #788369; }
.opening-chevron,.editor-controls .opening-row label { color: #74796b; }
.editor-controls .opening-row .field input,.editor-controls .opening-row .field select { border-radius: 4px; background: #f7f5ed; }
.texture-editor-main { background: #e8e7dc; }
.texture-editor-tabs { background: #dddfd1; border-radius: 5px; }
.texture-editor-tabs button { border-radius: 3px; color: #74796b; }
.texture-editor-tabs button[aria-pressed=true] { background: var(--surface); color: var(--olive); box-shadow: none; }
#texture-editor-stage { border-radius: 6px; background: #dedfd3; border-color: #f4f1e9; }
.texture-editor-side { background: var(--surface); }
.texture-editor-side h3 { font: 400 24px/1.2 var(--serif); color: var(--ink); }
.texture-resolution { background: #e8eade; color: var(--olive); border-radius: 3px; }
.texture-editor-side>label,.texture-editor-side p { color: #74796b; }
.summary-row,.metricline,.pager,.checkrow,.detailgrid .specs,.calc-result span,.boot { color: #74796b; }
.summary-row strong,.metricline strong,.empty h3 { color: var(--olive); }
.comparebar,.formula { background: #e8eade; border-color: var(--line); color: #657058; border-radius: 7px; }
.product-actions .comparebox.active { color: var(--surface); background: var(--olive); border-color: var(--olive); }
.empty { color: #74796b; }
.errors { background: #efe4d7; color: #805c38; }
.room-form-map .floor-plan,.item-thumb { color: var(--olive); }
.comparecard { background: var(--surface); border-color: var(--line); }
#toast { background: var(--olive); color: var(--surface); border-color: #7b8869; border-radius: 5px; box-shadow: 0 5px 22px #31372b20; }
@media(min-width:1600px) {
  .layout { gap: 36px; padding-right: 32px; }
  .pageheading { margin-block: 40px; }
}
@media(max-width:1240px) {
  .layout { gap: 23px; padding-right: 18px; }
  .sidebar { padding-inline: 14px; }
  .brand strong { font-size: 27px; }
  .brand small { font-size: 6px; letter-spacing: 1.5px; }
  .brandicon { width: 30px; height: 37px; }
  h1 { font-size: 45px; letter-spacing: -1.4px; }
  .pageheading p { max-width: 405px; font-size: 11px; }
  .room-type-heading h2 { font-size: 21px; }
  .panelhead h2,.catalog-panel .panelhead h2,.furniture-catalog .panelhead h2 { font-size: 25px; }
}
@media(max-width:900px) {
  .layout { padding: 0; }
  .workspace { padding-top: 22px; }
  .mobilebrand { font: 400 27px/1 var(--serif); color: var(--ink); }
  .mobilebrand>.icon { background: transparent; color: var(--olive); border: 1px solid #aeb69c; border-radius: 3px; padding: 6px; }
  .mobilebar { background: #f4f1e9f5; border-color: #c5cbb8; border-radius: 9px; box-shadow: 0 5px 22px #31372b20; }
  .mobilebar button { color: #69715e; border-radius: 5px; }
  .mobilebar button.active { background: var(--olive); color: var(--surface); }
  .mobilebar button:hover { background: #e8eade; color: var(--ink); }
  .mobilebar button.active:hover { background: var(--olive); color: var(--surface); }
}
@media(max-width:700px) {
  h1 { font-size: 43px; letter-spacing: -1.3px; line-height: 1.04; }
  .pageheading { margin: 27px 0 25px; }
  .pageheading p { font-size: 11px; line-height: 1.85; margin-top: 14px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.5px; margin-bottom: 17px; }
  .heading-side .button { border-radius: 5px; }
  .room-type-picker { border-radius: 0; padding: 18px 0 14px; }
  .room-type-heading .button { border-radius: 4px; }
  .room-type-heading h2 { font-size: 21px; }
  .room-type-card { border-radius: 5px; }
  .panel,.viewer,.furnishing-stage { border-radius: 10px; }
  .surface-card { border-radius: 6px; }
  .panelhead h2,.catalog-panel .panelhead h2,.furniture-catalog .panelhead h2,.furnishing-stage .panelhead h2 { font-size: 26px; }
  .viewer-bottom strong { font-size: 25px; }
  .estimate-summary .big-amount { font-size: 44px; }
  dialog[data-editor] { border-radius: 10px; }
  .dialogheader h2,dialog[data-editor] .dialogheader h2 { font: 400 27px/1.15 var(--serif); }
  .editor-tabs { gap: 3px; }
  .editor-tabs button { font-size: 10px; }
  .editor-section-title h3 { font-size: 23px; }
  .editor-preview-title { font-size: 27px; }
  .editor-measure { border-radius: 5px; }
  .editor-measure-input input { font-size: 29px; }
  .texture-editor-side h3 { font-size: 24px; }
}
@media(max-width:370px) {
  h1 { font-size: 39px; }
  .mobilebrand { font-size: 25px; }
}
@media print {
  body { background: white; }
  .estimate-summary { background: #f4f1e9; color: #31372b; }
  .estimate-summary :is(h2,p,strong,label,.big-amount,.metricline,.summary-lines div,.smallnote) { color: #31372b!important; }
}
