/* Material samples and the two views of the same cabinet. */
.ws-visual { display: flex; flex-direction: column; min-width: 0; isolation: isolate; background: #f9f7f0; }
.ws-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #23382e; color: #fff; }
.ws-mode-switch, .ws-face-switch { display: inline-flex; align-items: center; gap: 2px; }
.ws-mode-switch { border: 1px solid #7886798a; background: #1d3027; padding: 2px; border-radius: 9px; }
.ws-mode-switch button, .ws-face-switch button, .ws-view-angle button, .ws-design-info button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; white-space: nowrap; }
.ws-mode-switch button { min-height: 35px; padding: 5px 11px; border-radius: 6px; color: #dae3d8; font-size: 13px; }
.ws-mode-switch button[aria-pressed="true"] { background: #f5f1e4; color: #294032; font-weight: 700; }
.ws-mode-switch button svg { width: 16px; height: 16px; }
.ws-spec { display: flex; align-items: center; gap: 5px; direction: ltr; font-size: 11px; color: #d1dccc; }
.ws-spec bdi { color: #fffdf5; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.ws-stage { position: relative; flex: 1 0 auto; min-height: clamp(325px,30vw,492px); overflow: hidden; background: #e4d5bc; }
.ws-scene, .ws-room-photo, .ws-plan, .ws-render, .ws-svg-fallback, .ws-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ws-room-photo { object-fit: fill; display: block; user-select: none; pointer-events: none; }
.ws-render { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline-offset: -4px !important; }
.ws-render.is-dragging { cursor: grabbing; }
.ws-svg-fallback svg, .ws-canvas { display: block; width: 100%; height: 100%; }
.ws-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #3c3b30; font-weight: 700; font-size: 15px; }
.ws-plan { background: #243c35; }
.ws-plan>svg { display: block; width: 100%; height: 100%; }
.ws-view-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; min-height: 48px; padding: 4px 16px; border-bottom: 1px solid #d9d5c8; background: #f0efe6; }
.ws-face-switch button { min-height: 36px; padding: 4px 9px; border-radius: 5px; color: #5a6255; font-size: 12px; }
.ws-face-switch button[aria-pressed="true"] { background: #dce4d6; color: #304733; font-weight: 700; }
.ws-view-angle { display: grid; grid-template-columns: 33px minmax(44px,88px) 33px; align-items: center; gap: 3px; }
.ws-view-angle button { width: 33px; height: 36px; border-radius: 5px; padding: 5px; color: #536451; }
.ws-view-angle button:hover, .ws-design-info button:hover { background: #e3e6da; }
.ws-view-angle button svg { width: 16px; height: 16px; }
.ws-bay-size { font-size: 12px; color: #405342; font-weight: 700; }
.ws-palette-bar { padding: 11px 18px 8px; background: #fbfaf4; }
.ws-palette-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-bottom: 7px; }
.ws-palette-heading>span { font-size: 14px; font-weight: 700; color: #313c30; }
.ws-selected-color { display: flex; align-items: center; gap: 5px; color: #605a4d; }
.ws-selected-color i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0002; }
.ws-selected-color b { font-size: 12px; font-weight: 700; }
.ws-selected-color small { font-size: 10px; }
.ws-selected-color small::before { content: '· '; }
.ws-color-dots { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 5px; }
.ws-color-dots button {
  position: relative; min-width: 0; min-height: 49px; padding: 3px; background: transparent; border: 1px solid transparent;
  border-radius: 6px; color: #5d594e; font-size: 11px; font-family: inherit; line-height: 1.3; text-align: center;
}
.ws-color-dots button:hover { background: #ecebe1; }
.ws-color-dots button[aria-pressed="true"] { color: #2e4935; font-weight: 800; border-color: #72836b; background: #eff0e5; }
.ws-quick-sample { display: block; width: 100%; height: 22px; border-radius: 3px; border: 1px solid #0002; margin-bottom: 3px; box-shadow: inset 0 -2px 0 #0000000b; }
.ws-color-dots button[aria-pressed="true"]::after {
  content: '✓'; position: absolute; top: 5px; inset-inline-start: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: #263e31; color: #fff; display: grid; place-items: center; font: 10px/1 Arial,sans-serif;
}
.ws-design-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 8px; padding: 1px 16px 5px; background: #fbfaf4; }
.ws-design-info>span { font-size: 11px; color: #655f52; }
.ws-design-info>div { display: flex; gap: 3px; align-items: center; }
.ws-design-info button { min-height: 36px; border-radius: 5px; padding: 5px 7px; color: #4d5848; font-size: 12px; }
.ws-design-info button svg { width: 15px; height: 15px; }
@media(max-width:1000px) and (min-width:761px) {
  .ws-visual-top, .ws-view-tools, .ws-palette-bar, .ws-design-info { padding-inline: 10px; }
  .ws-mode-switch button { padding-inline: 7px; font-size: 12px; }
  .ws-spec bdi { font-size: 12px; }
  .ws-color-dots { gap: 2px; }
}
@media(max-width:760px) {
  .ws-visual-top { padding: 6px 9px; gap: 3px; }
  .ws-mode-switch button { min-height: 41px; padding-inline: 8px; font-size: 12px; }
  .ws-mode-switch button svg { width: 15px; height: 15px; }
  .ws-spec { gap: 3px; font-size: 10px; } .ws-spec bdi { font-size: 13px; }
  .ws-stage { min-height: 0; height: clamp(248px,72vw,395px); flex: 0 0 auto; }
  .ws-view-tools { min-height: 44px; gap: 3px 4px; padding: 1px 7px; }
  .ws-face-switch button, .ws-view-angle button, .ws-design-info button { min-height: 44px; }
  .ws-face-switch button { padding-inline: 7px; }
  .ws-view-angle { grid-template-columns: 34px minmax(36px,68px) 34px; gap: 0; }
  .ws-bay-size { font-size: 11px; }
  .ws-palette-bar { padding: 10px 10px 4px; }
  .ws-design-info { padding: 0 7px 3px; }
  .ws-color-dots { gap: 3px; } .ws-color-dots button { font-size: 10px; }
}
@media(max-width:420px) {
  .ws-color-dots { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px 5px; }
  .ws-color-dots button { display: flex; align-items: center; gap: 5px; justify-content: flex-start; padding: 4px; min-height: 44px; font-size: 11px; }
  .ws-quick-sample { width: 24px; flex: 0 0 24px; height: 27px; margin: 0; }
  .ws-color-dots button[aria-pressed="true"]::after { top: 5px; inset-inline-start: 3px; width: 12px; height: 12px; font-size: 8px; }
  .ws-design-info>span { font-size: 10px; }
  .ws-selected-color small { display: none; }
}
@media(max-width:365px) {
  .ws-mode-switch button { padding-inline: 6px; } .ws-mode-switch button svg { display: none; }
  .ws-spec bdi { font-size: 12px; } .ws-view-angle { grid-template-columns: 31px 38px 31px; }
  .ws-quick-sample { width: 20px; flex-basis: 20px; } .ws-color-dots button { gap: 3px; }
}
.ws-spec > bdi { display: inline-flex; gap: .18em; direction: ltr; align-items: center; }
.ws-mobile-preview { display: none; }
.ws-visual { scroll-margin-top: calc(var(--header-height, 85px) + 8px); }
@media(max-width:760px) {
  .ws-control-head .ws-unit { display: none; }
  .ws-mobile-preview { display: inline-flex; align-items: center; min-height: 44px; color: #365740; font-size: 13px; font-weight: 700; }
}
@media(max-width:760px) {
  .ws-visual[data-mode="plan"] .ws-stage { height: clamp(305px,86vw,410px); }
  body.ws-controls-in-corners .float-actions,
  body.ws-controls-in-corners #abdullah-assistant .abd-launcher { visibility: hidden; pointer-events: none; }
}

/* Room lighting and operable cabinet fronts. */
.ws-room-photo { object-fit: cover; object-position: 50% 85%; }
.ws-light-switch {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid #f6f1e7b5; border-radius: 20px; background: #f6f2e9ee;
  box-shadow: 0 2px 11px #33271b20;
}
.ws-light-switch button {
  display: inline-flex; justify-content: center; align-items: center; gap: 4px;
  min-height: 32px; padding: 3px 10px; border: 0; border-radius: 16px;
  background: transparent; color: #454b40; font-size: 12px; font-weight: 700;
}
.ws-light-switch button svg, .ws-motion button svg { width: 15px; height: 15px; }
.ws-light-switch button[aria-pressed="true"] { color: #fffbee; background: #3e5040; }
.ws-visual[data-light="evening"] .ws-light-switch { background: #242e32eb; border-color: #8b8c805e; }
.ws-visual[data-light="evening"] .ws-light-switch button { color: #eee8da; }
.ws-visual[data-light="evening"] .ws-light-switch button[aria-pressed="true"] { background: #eee2c6; color: #343c39; }
.ws-visual[data-light="evening"] .ws-scene { background: #4f4b46; }
.ws-visual[data-light="evening"][data-renderer="svg"] .ws-svg-fallback { filter: brightness(.81) sepia(.11); }
.ws-motion {
  display: grid; grid-template-columns: minmax(110px,auto) minmax(90px,1fr) auto;
  align-items: center; gap: 8px 20px; padding: 6px 17px;
  color: #2e4436; background: #f9f8f1; border-bottom: 1px solid #e0dcd0;
}
.ws-motion-caption { display: grid; gap: 2px; line-height: 1.25; }
.ws-motion-caption label { font-size: 13px; font-weight: 800; }
.ws-motion-caption span { font-size: 11px; color: #62675c; }
.ws-motion-range { width: 100%; max-width: 270px; display: flex; align-items: center; gap: 7px; justify-self: center; }
.ws-motion-range input { min-width: 0; flex: 1; }
.ws-motion-range output { flex: 0 0 34px; color: #4d5d49; font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ws-motion button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 35px; padding: 3px 10px; border-radius: 7px;
  background: #e6ecdf; color: #304935; border: 1px solid #afbea7; font-weight: 700; font-size: 12px; white-space: nowrap;
}
.ws-motion button:hover { background: #dbe4d3; }
.ws-motion button[data-close="true"] svg { transform: rotate(180deg); }
.ws-front-finishes { padding: 0; margin: 18px 0 0; border: none; min-width: 0; }
.ws-front-finishes legend { padding: 0; }
.ws-facade-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.ws-facade-list button {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  color: #4d5047; background: #faf8f2; border: 1px solid #d8d4c6; border-radius: 7px; font-size: 12px;
}
.ws-facade-list button[aria-pressed="true"] { background: #eef1e8; border-color: #647d65; font-weight: 800; }
.ws-facade-list i { position:relative; width: 17px; height: 29px; border-radius: 2px; background-color: var(--ws-finish,#ad845b); border: 1px solid #0003; box-shadow: inset -2px 0 3px #0002; }
.ws-facade-list [data-value="fluted"] i { background-image: repeating-linear-gradient(90deg,#0002 0 1px,#fff4 1px 2px,transparent 2px 3px); }
.ws-facade-list [data-value="framed"] i::after { content: ''; position: absolute; inset: 3px 2px; border: 1px solid #0004; box-shadow: 0 1px #fff6; }
@media (max-width: 760px) {
  .ws-light-switch { top: 7px; inset-inline-end: 7px; padding: 0 2px; }
  .ws-light-switch button { min-height: 44px; min-width: 44px; padding: 4px 6px; }
  .ws-motion { padding: 3px 8px; gap: 4px 7px; grid-template-columns: minmax(83px,auto) minmax(48px,1fr) auto; }
  .ws-motion button { min-height: 44px; padding-inline: 6px; }
  .ws-motion-range { gap: 2px; }.ws-motion-range input { min-height: 44px; }.ws-motion-range output { flex-basis: 26px; }
  .ws-motion-caption span { font-size: 10px; }.ws-motion button svg { width: 12px; height: 12px; }
}
.ws-looks { min-width: 0; margin: 0 0 15px; padding: 0; border: 0; }
.ws-looks legend { padding: 0; }
.ws-look-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.ws-look-list button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; min-height: 44px; padding: 4px 6px; border: 1px solid #dbd6c8; border-radius: 7px; color: #4a4d41; background: #f8f5ed; text-align: start; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ws-look-list i { display: block; width: 16px; height: 25px; border-radius: 8px 8px 2px 2px; background: linear-gradient(100deg,#c39a6e 56%,#b18b50 56% 65%,#d8c5a0 66%); }
.ws-look-list [data-look="diriyah"] i { background: linear-gradient(100deg,#77503a 56%,#b39253 56% 65%,#95785b 66%); }
.ws-look-list [data-look="wadi"] i { background: linear-gradient(100deg,#969c87 56%,#383d35 56% 65%,#bac0a8 66%); }
.ws-look-list button[aria-pressed="true"] { border-color: #71856a; background: #eaf0e2; color: #294331; }

.ws-shape-bar {
  grid-column: 1/-1; grid-row: 1; display: flex; align-items: center; gap: clamp(16px,3vw,44px);
  border-bottom: 1px solid #d6d2c4; padding: 13px 22px;
  background: linear-gradient(102deg,#ece7dc 0%,#f8f5ed 46%,#fbfaf5 100%);
}
.ws-shape-title h2 { margin: 0; font-size: 20px; color: #263c30; white-space: nowrap; }
.ws-edit-link { display: none; }
.ws-shapes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-width: 640px; flex: 1; }
.ws-shapes button {
  display: grid; grid-template-columns: 52px minmax(0,1fr) 16px; gap: 10px; align-items: center; text-align: start;
  min-height: 62px; padding: 7px 12px; border: 1px solid #cfcbbd; border-radius: 11px;
  color: #5d5c4f; background: #fffdf7; transition: border-color .15s,background .15s;
}
.ws-shapes button b { display: block; font-size: 16px; line-height: 1.4; }
.ws-shapes button small { display: block; color: #615f54; font-size: 12px; line-height: 1.35; }
.ws-shapes button svg { width: 51px; height: 35px; stroke: #697762; stroke-width: 1.25; }
.ws-shapes .ws-footprint { fill: #d3d1b9; }
.ws-shapes .ws-edge { stroke: #967246; stroke-width: 2.6; }
.ws-shapes button > i { box-sizing: border-box; width: 16px; height: 16px; border: 1px solid #a5a896; border-radius: 50%; }
.ws-shapes button[aria-pressed="true"] { background: #e3eadd; border-color: #516c52; color: #233c2e; box-shadow: inset 0 0 0 1px #617b60; }
.ws-shapes button[aria-pressed="true"] > i { background: #34543d; border-color: #34543d; position: relative; }
.ws-shapes button[aria-pressed="true"] > i::after { content: ''; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px; border: solid white; border-width: 0 1.9px 1.9px 0; transform: rotate(42deg); }
.ws-shapes button[aria-pressed="true"] .ws-footprint { fill: #92a287; }
.ws-workspace>.ws-controls, .ws-workspace>.ws-visual { grid-row: 2; }
.ws-controls { scroll-margin-top: calc(var(--header-height, 85px) + 10px); }
.ws-tabs { padding: 3px; gap: 2px; border: 1px solid #dedbd0; border-radius: 11px; background: #eeede4; }
.ws-tabs button { border: 0; border-radius: 8px; padding-inline: 3px; }
.ws-tabs button[aria-selected="true"] { background: #314e3d; color: #fffdf5; box-shadow: 0 1px 3px #213e2e26; }
.ws-corner-orientation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.ws-corner-orientation > span { font-weight: 700; font-size: 13px; color: #3b4c3c; }
.ws-sides { gap: 4px; }
.ws-sides button { min-width: 65px; padding: 5px 9px; }
.ws-sides svg { color: #607758; fill: #d3d9c9!important; }
.ws-corner-instruction { margin: -5px 0 13px; padding: 7px 9px; border-inline-start: 2px solid #93a186; color: #546450; background: #edf0e7; border-radius: 5px; font-size: 12px; line-height: 1.6; }
.ws-workspace[data-shape="corner"] .ws-spec { direction: rtl; }
.ws-workspace[data-shape="corner"] #ws-summary { direction: rtl; gap: .3em; align-items: baseline; }
.ws-edit-link svg { width: 14px; height: 14px; margin-inline-start: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ws-select-row + .ws-select-row { margin-top: 8px; }
.ws-dimension > div { grid-template-columns: 66px auto minmax(0,1fr); }
.ws-workspace .ws-dimension input, .ws-workspace input[type="range"], .ws-workspace select,
.ws-workspace :is(.ws-type-buttons,.ws-segments,.ws-face-switch,.ws-light-switch,.ws-mode-switch,.ws-facade-list,.ws-design-info,.ws-motion) button { min-height: 44px; }
.ws-view-angle { grid-template-columns: 44px minmax(48px,88px) 44px; gap: 2px; }
.ws-view-angle button, .ws-design-info button { min-width: 44px; min-height: 44px; }
.ws-view-angle button { width: 44px; height: 44px; border-radius: 8px; }
.ws-workspace .ws-wings { grid-column: 1/-1; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; width: 100%; border-bottom: 1px solid #d5dccf; padding-bottom: 4px; }
.ws-wings > span { margin-inline-end: 3px; font-size: 12px; color: #415440; }
.ws-motion .ws-wings button { border: 1px solid #c5cebd; color: #3b523e; background: #fbfaf4; border-radius: 7px; }
.ws-motion .ws-wings button[aria-pressed="true"] { color: #fff; background: #405d45; border-color: #405d45; }
.ws-spec > span { direction: rtl; white-space: nowrap; }
.ws-workspace :is(.ws-type-buttons,.ws-segments,.ws-look-list,.ws-facade-list,.ws-swatches) button[aria-pressed="true"] { border-color: #60795e; box-shadow: inset 0 0 0 1px #71896b; }
@media (hover:hover) {
  .ws-shapes button:hover, .ws-workspace :is(.ws-type-buttons,.ws-segments,.ws-facade-list,.ws-look-list,.ws-swatches) button:hover { border-color: #77866d; }
  .ws-tabs button:not([aria-selected="true"]):hover { background: #e0e4d8; }
}
@media (min-width:761px) {
  .ws-workspace[data-shape="corner"] .ws-visual { align-self: start; position: sticky; top: 0; }
  .ws-workspace[data-shape="corner"] .ws-stage { height: clamp(330px,37vw,500px); flex: 0 0 auto; }
  .ws-workspace[data-shape="corner"] { background: linear-gradient(to left,var(--ws-paper) 27%,#f7f6ee 27%); }
  .ws-controls { background: var(--ws-paper); }
}
@media(max-width:760px) {
  .ws-shape-bar { display: block; padding: 5px 10px 10px; }
  .ws-shape-title { display: flex; align-items: center; justify-content: space-between; }
  .ws-shape-title h2 { font-size: 17px; }
  .ws-edit-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: #3c5d45; }
  .ws-shapes { gap: 6px; max-width: none; }
  .ws-shapes button { grid-template-columns: 35px 1fr 13px; gap: 6px; padding: 5px 7px; min-height: 59px; }
  .ws-shapes button svg { width: 34px; height: 30px; }
  .ws-shapes button b { font-size: 14px; }
  .ws-shapes button small { font-size: 11px; }
  .ws-shapes button > i { width: 13px; height: 13px; }
  .ws-shapes button[aria-pressed="true"] > i::after { left: 3px; top: 1px; width: 3px; height: 6px; }
  .ws-workspace>.ws-controls { grid-row: 3; }
  .ws-view-tools { gap: 2px 4px; }
  .ws-view-angle { grid-template-columns: 44px minmax(44px,68px) 44px; gap: 0; }
}
@media(max-width:390px) {
  .ws-shapes button { grid-template-columns: 25px 1fr 12px; gap: 4px; padding-inline: 5px; }
  .ws-shapes button svg { width: 25px; }
  .ws-shapes button small { font-size: 10px; }
  .ws-view-angle { grid-template-columns: 44px 44px 44px; }
  .ws-visual-top { flex-wrap: wrap; }
}

@media (min-width:761px) and (max-width:1000px) {
  .ws-shape-bar { gap: 12px; padding-inline: 12px; }
  .ws-shape-title h2 { font-size: 16px; }
  .ws-shapes button { grid-template-columns: 30px minmax(0,1fr) 13px; gap: 5px; padding-inline: 6px; }
  .ws-shapes button svg { width: 30px; }
  .ws-corner-orientation { flex-direction: column; gap: 3px; }
  .ws-sides button { min-width: 50px; padding-inline: 4px; }
  .ws-visual-top { flex-wrap: wrap; }
}
@media (max-width:760px) {
  .ws-corner-orientation { margin-top: 6px; justify-content: space-between; }
  .ws-sides button { min-width: 72px; }
  .ws-workspace[data-shape="corner"] .ws-visual-top { flex-wrap: wrap; row-gap: 4px; }
  .ws-workspace[data-shape="corner"] .ws-spec { margin-inline: 3px; }
}
