:root {
  --bookshelf-panel: 400px;
  --accent: #a86a31;
  --accent-soft: #f7eee5;
  --border: #dde4e8;
  --text: #17232b;
  --muted: #687781;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eef2f4;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
.app-shell {
  position: fixed;
  inset: var(--shared-topbar-height, 47px) 0 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bookshelf-panel);
  min-height: 0;
  background: #e9eef1;
}
.viewer-panel, .viewer-stage, #canvasHost { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.viewer-panel { overflow: hidden; background: radial-gradient(circle at 48% 22%, #fff 0, #f0f4f6 48%, #dfe7eb 100%); }
#canvasHost canvas { width: 100%; height: 100%; display: block; }
.viewer-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(46,66,77,.05)); }
.viewer-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  max-width: min(88%, 620px);
  padding: 8px 12px;
  border: 1px solid rgba(27,55,69,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(26,48,61,.08);
  backdrop-filter: blur(10px);
  color: #586871;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  pointer-events: none;
}
.sidebar {
  position: relative;
  width: var(--bookshelf-panel);
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid #d9e0e4;
  background: rgba(255,255,255,.985);
  padding: 0 22px 24px;
  z-index: 30 !important;
  scrollbar-width: thin;
  transition: transform .22s ease;
}
.panel-section { padding: 22px 0 18px; border-bottom: 1px solid #e6eaed; }
.intro-section { padding-top: 18px; padding-bottom: 18px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 10.5px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.intro-section h1 { margin: 0; font-size: 23px; line-height: 1.2; }
.section-copy { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.48; }
.accordion-section { border-bottom: 1px solid #e7ebee; }
.accordion-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border: 0; background: none; color: #1c2b34; font-weight: 800; cursor: pointer; }
.accordion-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.accordion-section.is-open > .accordion-toggle svg { transform: rotate(180deg); }
.accordion-panel { padding: 0 0 18px; }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.family-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 116px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: #273741;
  text-align: left;
  cursor: pointer;
}
.family-card:hover { border-color: #cda97f; background: #fffaf5; }
.family-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,106,49,.11); background: #fffaf6; }
.family-card__height { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #f4f6f7; color: #596873; font-size: 10px; font-weight: 800; }
.family-card b { margin-top: 4px; font-size: 13px; }
.family-card small { color: #7b8992; font-size: 9.5px; line-height: 1.35; }
.rule-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 11px; background: #f7f9fa; color: #64737d; font-size: 10.5px; line-height: 1.4; }
.rule-note svg { width: 17px; min-width: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.empty-state { padding: 17px 13px; border: 1px dashed #d7e0e5; border-radius: 13px; background: #fafcfd; color: #74828b; text-align: center; }
.empty-state svg { width: 28px; height: 28px; fill: none; stroke: #91a0a9; stroke-width: 1.5; }
.empty-state p { margin: 8px 0 0; font-size: 11px; line-height: 1.45; }
.selected-module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; padding: 10px 11px; border: 1px solid #e0e6ea; border-radius: 11px; background: #f8fafb; }
.selected-module-header > div { display: flex; flex-direction: column; gap: 2px; }
.selected-module-header span { color: #7a8790; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.selected-module-header strong { font-size: 14px; }
.type-badge { padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: #8b5527 !important; font-size: 9.5px !important; text-transform: none !important; letter-spacing: 0 !important; }
.control-label { display: block; margin-bottom: 7px; color: #42515a; font-size: 11px; font-weight: 800; }
.top-gap { margin-top: 14px; }
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.door-card { min-width: 0; padding: 8px 6px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: #34434c; cursor: pointer; }
.door-card:hover { border-color: #c9a47c; background: #fffaf6; }
.door-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,106,49,.1); background: #fffaf6; }
.door-card svg { width: 36px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.door-card b, .door-card small { display: block; }
.door-card b { margin-top: 3px; font-size: 9.5px; }
.door-card small { margin-top: 2px; color: #869199; font-size: 7.7px; line-height: 1.25; }
.door-card:disabled { opacity: .48; cursor: not-allowed; border-color: #e0e5e8; background: #f2f4f5; color: #98a2a8; box-shadow: none; }
.door-card:disabled:hover { transform: none; border-color: #e0e5e8; background: #f2f4f5; }
.door-card:disabled small { color: #a7afb4; }
.corner-door-disclaimer { display: block; margin: 7px 2px 0; color: #c43e3e; font-size: 9px; font-weight: 750; line-height: 1.35; }
.corner-door-disclaimer[hidden] { display: none; }
.door-hardware-controls[hidden] { display: none; }
.keyplate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.keyplate-card { min-width: 0; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #47555e; cursor: pointer; }
.keyplate-card:hover { transform: translateY(-1px); border-color: #c9a47c; }
.keyplate-card.is-selected { border-color: #168de0; box-shadow: 0 0 0 2px rgba(22,141,224,.14); }
.keyplate-card__preview { display: block; width: 100%; aspect-ratio: 1.45; border-radius: 7px; background: linear-gradient(180deg, #fafcfd, #edf2f4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.keyplate-card__preview svg { display: block; width: 100%; height: 100%; }
.keyplate-card b { display: block; margin-top: 6px; font-size: 8.7px; letter-spacing: .02em; }
.keyplate-card small { display: block; margin-top: 2px; color: #869199; font-size: 7.2px; line-height: 1.25; }
.colour-palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.finish-choice { min-width: 0; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #47555e; cursor: pointer; }
.finish-choice:hover { transform: translateY(-1px); border-color: #c9a47c; }
.finish-choice.is-selected { border-color: #168de0; box-shadow: 0 0 0 2px rgba(22,141,224,.14); }
.finish-choice__chip { display: block; width: 100%; aspect-ratio: 1.45; border-radius: 7px; background: var(--finish-image, linear-gradient(var(--colour),var(--colour))) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.finish-choice b { display: block; margin-top: 6px; font-size: 9px; letter-spacing: .04em; }
.danger-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid #e4c8c8; border-radius: 10px; background: #fff9f9; color: #9e3f3f; font-size: 11px; font-weight: 800; cursor: pointer; }
.danger-button:hover:not(:disabled) { background: #fff1f1; border-color: #d89b9b; }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.danger-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.delete-hint { display: block; margin-top: 6px; color: #8c7a7a; font-size: 9px; line-height: 1.35; }
.component-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.component-summary > div { padding: 8px; border: 1px solid #e2e7ea; border-radius: 10px; background: #fafbfc; }
.component-summary span { display: block; color: #849099; font-size: 8.5px; }
.component-summary strong { display: block; margin-top: 2px; font-size: 11px; }
.components-list { display: grid; gap: 6px; }
.component-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f4f7f8; }
.component-row__name { min-width: 0; }
.component-row__name b { display: block; font-size: 10.5px; color: #33434d; }
.component-row__name small { display: block; margin-top: 2px; color: #839099; font-size: 8.5px; line-height: 1.3; }
.component-row__qty { min-width: 30px; text-align: right; color: var(--accent); font-size: 12px; font-weight: 850; }
.components-note { margin: 9px 1px 0; color: #849099; font-size: 9.5px; line-height: 1.45; }
.endpoint-plus { position: absolute; z-index: 6; transform: translate(-50%,-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #168de0; border-radius: 50%; background: #fff; color: #168de0; box-shadow: 0 10px 26px rgba(22,141,224,.18); font-size: 25px; line-height: 1; font-weight: 500; cursor: pointer; }
.endpoint-plus:hover { background: #f3faff; transform: translate(-50%,-50%) scale(1.05); }
.floating-panel { position: absolute; left: 18px; top: 82px; z-index: 8; width: 320px; padding: 14px; border: 1px solid #d5dfe5; border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 18px 42px rgba(28,50,63,.16); backdrop-filter: blur(15px); }
.floating-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-kicker { display: block; color: var(--accent); font-size: 8.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.floating-panel h2 { margin: 2px 0 0; font-size: 17px; }
.icon-close { width: 28px; height: 28px; border: 1px solid #dbe2e6; border-radius: 8px; background: #fff; color: #596974; font-size: 20px; line-height: 1; cursor: pointer; }
.module-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.module-choice { display: flex; flex-direction: column; align-items: center; min-height: 130px; padding: 11px 8px; border: 1px solid #dce4e8; border-radius: 12px; background: #fff; color: #34434c; cursor: pointer; text-align: center; }
.module-choice:hover { border-color: #cca77e; background: #fffaf6; }
.module-choice.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,106,49,.1); background: #fffaf6; }
.module-choice svg { width: 58px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.module-choice b { display: block; margin-top: 4px; font-size: 11px; }
.module-choice small { display: block; margin-top: 3px; color: #87939b; font-size: 8.5px; line-height: 1.3; }
.primary-button { width: 100%; margin-top: 11px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.primary-button:hover { background: #955c2b; }
.panel-error { margin-top: 9px; padding: 8px 9px; border-radius: 8px; background: #fff3f3; color: #a03d3d; font-size: 9.5px; line-height: 1.35; }
.dimension-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dimension-label { position: absolute; transform: translate(-50%,-50%); padding: 3px 7px; border: 1px solid rgba(168,106,49,.23); border-radius: 7px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(30,57,72,.08); color: #925c2d; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
body.bookshelf-dark-mode .viewer-panel { background: radial-gradient(circle at 48% 22%, #29343b, #151d22 64%, #0f1518); }
body.bookshelf-dark-mode .viewer-hint { background: rgba(24,31,36,.85); color: #dce5e9; border-color: #44515a; }
body.bookshelf-dark-mode .sidebar { background: rgba(26,31,35,.98); color: #eef2f4; border-color: #3a444b; }
body.bookshelf-dark-mode .accordion-section, body.bookshelf-dark-mode .panel-section { border-color: #3a444b; }
body.bookshelf-dark-mode .accordion-toggle { color: #eef2f4; }
body.bookshelf-dark-mode .family-card, body.bookshelf-dark-mode .door-card, body.bookshelf-dark-mode .empty-state, body.bookshelf-dark-mode .selected-module-header { background: #20272c; border-color: #414b52; color: #e8eef1; }
body.bookshelf-dark-mode .door-card:disabled { background: #1a2024; border-color: #343d43; color: #738089; }
body.bookshelf-dark-mode .corner-door-disclaimer { color: #ff8585; }
body.bookshelf-dark-mode .rule-note, body.bookshelf-dark-mode .component-summary > div, body.bookshelf-dark-mode .component-row { background: #20272c; border-color: #414b52; }
body.bookshelf-dark-mode .floating-panel { background: rgba(31,38,43,.98); border-color: #465159; color: #edf2f4; }
body.bookshelf-dark-mode .module-choice { background: #252d32; border-color: #465159; color: #e8eef1; }
.shared-settings-toggle { z-index: 31; }
#bookshelfSidebarToggle svg { transition: transform .22s ease; }
body.bookshelf-sidebar-collapsed #bookshelfSidebarToggle svg { transform: rotate(180deg); }
@media (max-width: 900px) { :root { --bookshelf-panel: 360px; } }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .viewer-panel { position: absolute; inset: 0; }
  .sidebar { position: absolute; right: 0; top: 0; bottom: 0; width: min(92vw, 380px); box-shadow: -12px 0 34px rgba(36,57,69,.14); transition: transform .22s ease; }
  .sidebar.is-collapsed { transform: translateX(102%); }
  .floating-panel { left: 12px; top: 78px; width: min(320px, calc(100vw - 24px)); }
  .viewer-hint { bottom: 12px; }
}
@media (max-width: 430px) {
  .sidebar { width: 100vw; padding-left: 16px; padding-right: 16px; }
  .family-grid { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: 1fr 1fr 1fr; }
  .colour-palette { grid-template-columns: repeat(3, 1fr); }
}

body.bookshelf-dark-mode .finish-choice { background: #252d32; border-color: #465159; color: #e8eef1; }
body.bookshelf-dark-mode .keyplate-card { background: #252d32; border-color: #465159; color: #e8eef1; }
body.bookshelf-dark-mode .keyplate-card__preview { background: linear-gradient(180deg, #283238, #20282d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }

.shelf-move-controls {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
}
.shelf-move-controls[hidden] { display: none; }
.shelf-move-stack { display: grid; gap: 6px; }
.shelf-move-button {
  width: 58px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #168de0;
  border-radius: 999px;
  background: #fff;
  color: #168de0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.shelf-move-button:hover:not(:disabled) { background: #eef8ff; }
.shelf-move-button:disabled {
  border-color: #c8d0d5;
  background: #eef1f3;
  color: #9aa5ab;
  cursor: not-allowed;
  box-shadow: none;
}
.shelf-delete-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d66565;
  border-radius: 50%;
  background: #fff;
  color: #b74343;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.shelf-delete-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shelf-delete-button:hover:not(:disabled) { background: #fff2f2; }
.shelf-delete-button:disabled { border-color: #c8d0d5; background: #eef1f3; color: #9aa5ab; cursor: not-allowed; }
body.bookshelf-dark-mode .shelf-move-button, body.bookshelf-dark-mode .shelf-delete-button { background: #252d32; }
body.bookshelf-dark-mode .shelf-move-button:disabled, body.bookshelf-dark-mode .shelf-delete-button:disabled {
  background: #1a2024;
  border-color: #465159;
  color: #657179;
}


/* Bookshelf-only common UI overrides. Keep these out of shared-ui so other configurators are unchanged. */
.shared-ui-host [data-action="view-ar"],
.shared-ui-host [data-action="cart"],
.shared-ui-host [data-cart-menu] {
  display: none !important;
}

.shelf-instructions {
  margin: 0 0 10px;
  color: #687781;
  font-size: 10.5px;
  line-height: 1.5;
}
.shelf-add-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #168de0;
  border-radius: 10px;
  background: #f5fbff;
  color: #137fc7;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.shelf-add-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shelf-add-button:hover:not(:disabled) { background: #eaf7ff; }
.shelf-add-button:disabled { border-color: #d5dde2; background: #f1f4f5; color: #9ba5ab; cursor: not-allowed; }
.shelf-no-slots { margin: 7px 1px 0; color: #a04b4b; font-size: 9.5px; line-height: 1.4; }
.shelf-no-slots[hidden] { display: none; }
body.bookshelf-dark-mode .shelf-instructions { color: #aeb8be; }
body.bookshelf-dark-mode .shelf-add-button { background: #252d32; border-color: #3c8dbd; color: #7bc9f5; }
body.bookshelf-dark-mode .shelf-add-button:disabled { background: #1a2024; border-color: #465159; color: #657179; }
body.bookshelf-dark-mode .shelf-no-slots { color: #ff9393; }


/* Bookshelf-only quotation form. The shared shell/cart remains unchanged for other configurators. */
.bookshelf-quotation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 29, 36, .42);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .18s ease;
}
.bookshelf-quotation-overlay.is-open { opacity: 1; }
.bookshelf-quotation-dialog {
  width: min(560px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #d9e1e5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(17, 32, 42, .24);
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}
.bookshelf-quotation-overlay.is-open .bookshelf-quotation-dialog { transform: translateY(0) scale(1); }
.bookshelf-quotation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.bookshelf-quotation-heading h2 { margin: 0; color: #17232b; font-size: 23px; line-height: 1.2; }
.bookshelf-quotation-heading p { margin: 7px 0 0; color: #687781; font-size: 12.5px; line-height: 1.5; }
.bookshelf-quotation-close { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #dbe2e6; border-radius: 10px; background: #fff; color: #4d5d67; font-size: 24px; line-height: 1; cursor: pointer; }
.bookshelf-quotation-close:hover { background: #f5f8f9; }
.bookshelf-quotation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.bookshelf-quote-field { display: grid; gap: 6px; min-width: 0; }
.bookshelf-quote-field:nth-of-type(5) { grid-column: 1 / -1; }
.bookshelf-quote-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #34434c; font-size: 11px; font-weight: 800; }
.bookshelf-quote-label small { color: #8a969d; font-size: 9px; font-weight: 650; }
.bookshelf-field-help { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #cfd9de; border-radius: 50%; color: #63747e; font-size: 10px; font-weight: 850; cursor: help; user-select: none; }
.bookshelf-field-tooltip { position: absolute; right: -4px; bottom: calc(100% + 8px); z-index: 4; width: 230px; padding: 8px 9px; border: 1px solid #d8e0e4; border-radius: 9px; background: #17232b; color: #fff; box-shadow: 0 10px 28px rgba(15, 29, 37, .2); font-size: 9px; font-weight: 600; line-height: 1.4; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease, visibility .14s ease; pointer-events: none; }
.bookshelf-field-help:hover .bookshelf-field-tooltip,
.bookshelf-field-help:focus .bookshelf-field-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.bookshelf-quote-field input,
.bookshelf-quote-field textarea { width: 100%; border: 1px solid #d9e1e5; border-radius: 10px; background: #fbfcfd; color: #1d2a32; padding: 10px 11px; outline: none; font-size: 12px; line-height: 1.35; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.bookshelf-quote-field textarea { resize: vertical; min-height: 76px; }
.bookshelf-quote-field input:focus,
.bookshelf-quote-field textarea:focus { border-color: #168de0; background: #fff; box-shadow: 0 0 0 3px rgba(22,141,224,.12); }
.bookshelf-quotation-submit { grid-column: 1 / -1; margin-top: 3px; padding: 12px 16px; border: 1px solid #168de0; border-radius: 11px; background: #168de0; color: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.bookshelf-quotation-submit:hover:not(:disabled) { background: #117cc7; border-color: #117cc7; }
.bookshelf-quotation-submit:disabled { opacity: .58; cursor: wait; }
body.bookshelf-dark-mode .bookshelf-quotation-dialog { border-color: #465159; background: #1f262b; }
body.bookshelf-dark-mode .bookshelf-quotation-heading h2 { color: #eef3f5; }
body.bookshelf-dark-mode .bookshelf-quotation-heading p { color: #aab6bd; }
body.bookshelf-dark-mode .bookshelf-quotation-close { border-color: #465159; background: #252d32; color: #e6edf0; }
body.bookshelf-dark-mode .bookshelf-quote-label { color: #e0e8ec; }
body.bookshelf-dark-mode .bookshelf-quote-field input,
body.bookshelf-dark-mode .bookshelf-quote-field textarea { border-color: #465159; background: #20272c; color: #eef3f5; }
@media (max-width: 620px) {
  .bookshelf-quotation-overlay { padding: 12px; align-items: end; }
  .bookshelf-quotation-dialog { max-height: calc(100vh - 24px); padding: 18px 16px; border-radius: 20px; }
  .bookshelf-quotation-form { grid-template-columns: 1fr; }
  .bookshelf-quote-field:nth-of-type(5), .bookshelf-quotation-submit { grid-column: 1; }
  .bookshelf-field-tooltip { right: -6px; width: min(230px, calc(100vw - 54px)); }
}

/* Bookshelf-only top-bar simplification. Keep the shared UI unchanged for all
   other configurators and hide the demo CTA only on this page. */
.shared-ui-host .book-demo-button { display: none !important; }
