/* Dream House Designer (shared: sim3d.css + tycoon-kit.css) */
.dh-setup { display: grid; gap: 10px; }
.dh-h { margin: 6px 0 0; font-size: 18px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.dh-h small { font-size: 13.5px; opacity: .8; font-weight: 700; }
.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.dh-card { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: inherit; font: 800 14px system-ui, sans-serif; cursor: pointer; min-height: 62px; }
.dh-card i { grid-row: span 2; font-style: normal; font-size: 28px; text-align: center; }
.dh-card small { font-weight: 600; opacity: .82; font-size: 12px; }
.dh-card.is-free { background: rgba(250, 204, 21, .07); }
.dh-card:hover:not(:disabled) { border-color: #facc15; }
.dh-card:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.dh-card.is-locked { opacity: .45; cursor: not-allowed; }

.dh-play .sim-toolbar { top: 10px; bottom: auto; }
.sim-toolbar .dh-done { background: rgba(22, 163, 74, .95); font-size: 15px; padding-inline: 12px; }
.dh-play.is-tour .dh-pal, .dh-play.is-tour .dh-brief, .dh-play.is-tour .dh-sel, .dh-play.is-tour .dh-side { display: none; }

/* client brief */
.dh-brief { position: absolute; left: 10px; top: 10px; width: min(300px, calc(100% - 20px)); background: rgba(8, 16, 28, .88); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 8px 10px; color: #fff; font: 600 12.5px/1.35 system-ui, sans-serif; max-height: calc(100% - 150px); overflow: auto; z-index: 2; }
.dh-client { display: flex; gap: 8px; align-items: center; }
.dh-client > i { font-style: normal; font-size: 28px; line-height: 1; }
.dh-client > div { flex: 1; min-width: 0; }
.dh-client b { display: block; font-size: 14px; }
.dh-client small { display: block; opacity: .85; font-size: 12px; }
.dh-min { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 15px; cursor: pointer; transition: transform .15s; }
.dh-brief.is-min .dh-body { display: none; }
.dh-brief.is-min .dh-min { transform: rotate(-90deg); }
.dh-q { margin: 6px 0; font-style: italic; opacity: .92; }
.dh-must { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 2px; }
.dh-must li.ok { color: #86efac; }
.dh-likes { margin: 6px 0; font-size: 12px; opacity: .92; }
.dh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 2px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, .5); }
.dh-bar { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; margin: 4px 0; font-weight: 800; }
.dh-bar i { display: block; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dh-bar u { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #4ade80); transition: width .3s; }
.dh-bar.is-over span { color: #fca5a5; }
.dh-bar.is-over u { background: #ef4444; }
.dh-mood u { background: linear-gradient(90deg, #f472b6, #facc15); }
.dh-notes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; font-size: 12px; }
.dh-notes .is-good { color: #86efac; } .dh-notes .is-bad { color: #fca5a5; } .dh-notes .is-want { opacity: .85; }

/* palette */
.dh-pal { position: absolute; left: 10px; right: 10px; bottom: 8px; display: grid; gap: 4px; pointer-events: none; }
.dh-tabs, .dh-items { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; pointer-events: auto; padding-bottom: 2px; }
.dh-tab { flex: 0 0 auto; display: flex; gap: 5px; align-items: center; border: 2px solid rgba(255, 255, 255, .2); background: rgba(8, 16, 28, .82); color: #fff; border-radius: 999px; padding: 4px 11px 4px 8px; font: 800 12.5px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.dh-tab i { font-style: normal; font-size: 16px; }
.dh-tab.is-on { background: #facc15; color: #111; border-color: #facc15; }
.dh-item, .dh-sw { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; width: 70px; min-height: 64px; padding: 4px 3px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(8, 16, 28, .84); color: #fff; font: 800 10.5px/1.1 system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.dh-item i { font-style: normal; font-size: 22px; line-height: 1.1; }
.dh-item small, .dh-sw small { font-size: 10px; text-align: center; }
.dh-item b, .dh-sw b { color: #86efac; font-size: 10.5px; }
.dh-item:hover, .dh-sw:hover, .dh-tab:hover { border-color: #facc15; }
.dh-item.is-on, .dh-sw.is-on { border-color: #facc15; background: rgba(250, 204, 21, .25); }
.dh-sw i { display: block; width: 34px; height: 24px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .45); }
.dh-lbl { flex: 0 0 auto; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 900 11px system-ui, sans-serif; background: rgba(8, 16, 28, .82); border-radius: 8px; padding: 6px 3px; }
.dh-tab:focus-visible, .dh-item:focus-visible, .dh-sw:focus-visible, .dh-sel button:focus-visible, .dh-side button:focus-visible, .dh-min:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }

/* selected thing / tool panel */
.dh-sel { position: absolute; right: 64px; top: 58px; width: 222px; background: rgba(8, 16, 28, .9); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 8px 10px; color: #fff; font: 700 12.5px system-ui, sans-serif; display: none; z-index: 2; }
.dh-sel.is-on { display: block; }
.dh-selh { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; }
.dh-selh span { color: #86efac; }
.dh-cols { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 4px; }
.dh-col { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.dh-col.is-on { border-color: #facc15; box-shadow: 0 0 0 2px #facc15; }
.dh-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dh-acts button { flex: 1 0 auto; border: 2px solid rgba(255, 255, 255, .22); background: rgba(30, 58, 95, .92); color: #fff; border-radius: 10px; padding: 6px 8px; font: 800 12.5px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.dh-acts button:hover { background: rgba(37, 99, 235, .95); }
.dh-tip { margin: 6px 0 0; font-size: 11.5px; opacity: .8; font-weight: 600; }
.dh-tipr { font-size: 14px; opacity: .9; }

.dh-side { position: absolute; right: 10px; top: 58px; display: grid; gap: 4px; background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 5px; }
.dh-side button { width: 40px; height: 34px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(30, 58, 95, .92); color: #fff; font: 900 17px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.dh-side button:hover { background: rgba(37, 99, 235, .95); }

@container (max-width: 900px) {
  .dh-tab span { display: none; }
  .dh-tab { padding: 3px 9px; }
  .dh-tab i { font-size: 17px; }
  .dh-item, .dh-sw { width: 62px; min-height: 54px; }
  .dh-item i { font-size: 19px; }
}
@container (max-width: 560px) {
  .dh-play .sim-toolbar { top: 8px; right: 8px; }
  .dh-brief { top: 52px; left: 8px; width: calc(100% - 64px); max-height: calc(100% - 230px); padding: 6px 8px; }
  .dh-side { top: 52px; right: 6px; padding: 4px; }
  .dh-side button { width: 38px; height: 32px; font-size: 15px; }
  .dh-sel { left: 6px; right: 6px; top: auto; bottom: 110px; width: auto; padding: 5px 6px; }
  .dh-sel.is-on { display: flex; align-items: center; gap: 6px; }
  .dh-selh { flex: 0 0 auto; max-width: 92px; flex-direction: column; gap: 0; font-size: 11.5px; line-height: 1.2; }
  .dh-cols { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin: 0; gap: 4px; padding: 2px; }
  .dh-col { flex: 0 0 24px; }
  .dh-acts { flex: 0 0 auto; margin: 0; flex-wrap: nowrap; gap: 4px; }
  .dh-acts button { padding: 6px 9px; font-size: 15px; }
  .dh-acts span, .dh-tip { display: none; }
  .dh-side button:not([data-a="rot"]) { display: none; }
  .dh-pal { left: 6px; right: 6px; bottom: 6px; }
  .dh-tab span { display: none; }
  .dh-tab { padding: 4px 9px; }
  .dh-item, .dh-sw { width: 62px; min-height: 58px; }
}
