@font-face { font-family: UI; src: url(fonts/gothica1-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: block; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: Serif; src: url(fonts/instrument-italic.woff2) format('woff2'); font-style: italic; font-display: block; }
@font-face { font-family: Mono; src: url(fonts/geistmono.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
:root { --bg: #ecebe7; --ink: #181613; --mute: #8a857c; --line: rgba(0,0,0,.09); --ac: #161616; --sans: Inter, UI, system-ui, sans-serif; --kr: UI, Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--kr); -webkit-font-smoothing: antialiased; }
a { color: inherit; } [hidden] { display: none !important; } button { font: inherit; color: inherit; }
.top, .intro, .app, .how, .foot { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 9px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; }
.brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 44px/1.08 var(--kr); letter-spacing: -.045em; word-spacing: .06em; } h1 em { font: italic 400 28px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; font: 800 13.5px var(--kr); box-shadow: inset 0 0 0 1.5px var(--ink); white-space: nowrap; }
.btn.dark { background: var(--ink); color: #fff; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; } .how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4d4943; word-break: keep-all; }
.foot { padding-top: 26px; padding-bottom: 90px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; font: 600 13.5px var(--kr); padding: 9px 16px; border-radius: 99px; transition: .25s; pointer-events: none; z-index: 50; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.lnk { all: unset; cursor: pointer; font: 700 13px var(--kr); color: #6b665d; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; background: #fff; border-radius: 11px; padding: 3px; gap: 2px; box-shadow: 0 0 0 1px var(--line); } .seg button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--kr); color: #6b665d; white-space: nowrap; } .seg button.on { background: var(--ink); color: #fff; } .seg button:disabled { opacity: .35; cursor: not-allowed; }
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
.cur svg { position: absolute; left: -9px; top: -4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; }
.cur i { position: absolute; left: 26px; top: 26px; white-space: nowrap; font: 700 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; } .cur i:empty { display: none; }
.cur.flip i { left: auto; right: 14px; }
.intro { padding-top: 22px; } .lede { margin: 10px 0 0; max-width: 780px; color: #4d4943; word-break: keep-all; }
.seg button:not(.on):hover { color: var(--ink); }
.seg.sm button { padding: 5px 9px; font-size: 12px; }
.mini { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; } .mini:hover { filter: brightness(.96); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.lb { font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; min-width: 58px; }
.row { display: flex; align-items: center; gap: 10px; } .row .seg { background: #f1eee8; box-shadow: none; }
.hint { margin: -4px 0 0; min-height: 18px; font: 500 12px var(--kr); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rng input { flex: 1; width: auto; accent-color: var(--ink); } .rng output { width: 40px; text-align: right; }
.mini:disabled { opacity: .35; cursor: not-allowed; }
.tog { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; }
.tog i { width: 26px; height: 16px; border-radius: 99px; background: #cfcac0; position: relative; transition: background .2s; } .tog i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog.on { background: var(--ink); color: #fff; } .tog.on i { background: #6fd6a8; } .tog.on i::after { transform: translateX(10px); }
.ph { display: flex; align-items: center; gap: 8px; } .ph b { font: 800 14px var(--kr); white-space: nowrap; } .ph .seg { background: #f1eee8; box-shadow: none; }
.xb { display: flex; gap: 6px; } .xb .btn { flex: 1; } .btn.wide { width: 100%; box-sizing: border-box; }
.card { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(40,30,10,.4); min-height: 0; }
.cur.up i { top: auto; bottom: 22px; }
:root { --lime: #c8f05a; --coral: #ff5a4e; --paper: #f6f5f1; }
:root { --bg: #efe9dd; --paper: #faf7f0; --lime: #c8f05a; --coral: #ff5a4e; }
.brand b { display: inline-flex; align-items: center; gap: 9px; }
.brand b::before { content: ''; width: 22px; height: 22px; border-radius: 6px; background: #161616 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19L9 14V5M20 19L15 14V5M9 14H15M4 19H20M9 5H15' fill='none' stroke='%23f4f2ec' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.sp { flex: 1; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden; }
.ph .no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 12px var(--sans); flex: none; } .ph b { font-size: 15px; }
.cnt { font: 600 12px var(--mono); color: var(--mute); }
:root { --bg: #ecebe6; --paper: #f7f6f2; }
.app { display: grid; grid-template-columns: 350px minmax(0, 1fr) 290px; gap: 16px; padding-top: 22px; height: 720px; }
body.film .app { height: 618px; }
.rooms { display: flex; flex-wrap: wrap; gap: 5px; } .rooms button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; } .rooms button.on { background: var(--ink); color: #fff; }
.plan { position: relative; flex: 1; min-height: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; touch-action: none; }
.plan canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: grab; }
.sel { display: flex; align-items: center; gap: 5px; min-height: 30px; font: 700 12.5px var(--kr); color: #5d584f; } .sel #selname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sel.off .mini { opacity: .35; pointer-events: none; } .sel.off #selname { font-weight: 500; color: var(--mute); }
.adds { display: flex; flex-wrap: wrap; gap: 4px; } .adds button { all: unset; cursor: pointer; padding: 4px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font: 600 12px var(--kr); color: #5d584f; } .adds button:hover { background: #f1eee8; }
.view { position: relative; flex: 1; min-height: 0; border-radius: 14px; background: #e3e1db; overflow: hidden; touch-action: none; }
.view canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 6px 22px -14px rgba(0,0,0,.5); cursor: grab; }
.vhint { position: absolute; right: 10px; bottom: 8px; font: 600 11.5px var(--kr); color: rgba(0,0,0,.45); background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 99px; pointer-events: none; }
.row.wrap { flex-wrap: wrap; gap: 8px; } .vt .lb { min-width: 0; }
.ph .mini { padding: 5px 10px; }
.dimrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .dimrow label { display: flex; flex-direction: column; gap: 3px; font: 700 11.5px var(--kr); color: #5d584f; }
.dimrow input, .ops select { font: 600 13px var(--mono); padding: 6px 8px; border: 0; border-radius: 9px; background: #f1eee8; color: var(--ink); width: 100%; box-sizing: border-box; min-width: 0; }
.ops { display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; max-height: 98px; }
.op { display: grid; grid-template-columns: 80px 84px 1fr 18px; gap: 5px; align-items: center; } .op select { padding: 5px 6px; font: 600 12px var(--kr); } .op input[type=range] { width: 100%; accent-color: var(--ink); min-width: 0; } .op button { all: unset; cursor: pointer; text-align: center; color: var(--mute); font: 700 13px var(--sans); }
.xo { gap: 5px; } hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.col3 { gap: 9px; } .col3 .lb { min-width: 46px; }
.small { margin: 0; font: 500 11.5px/1.5 var(--kr); color: var(--mute); word-break: keep-all; }
.col1 > *, .col2 > *, .col3 > * { flex: none; } .col1 > .plan, .col2 > .view { flex: 1; }
@media (max-width: 1180px) { .app { grid-template-columns: 350px minmax(0, 1fr); height: auto; } .col1, .col2 { height: 640px; } .col3 { height: auto; } .col3 { grid-column: 1 / -1; } .ops { max-height: none; } }
@media (max-width: 760px) {
  .top, .intro, .app, .how, .foot { padding-left: 16px; padding-right: 16px; } h1 .q { font-size: 30px; } h1 em { font-size: 20px; }
  .app { grid-template-columns: 1fr; } .col1 { order: 2; height: auto; } .col2 { order: 1; height: auto; } .col3 { order: 3; } .col2 > .view { flex: none; height: 300px; } .col1 > .plan { flex: none; height: 330px; } .how { grid-template-columns: 1fr 1fr; }
  .vhint { display: none; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .col2 > .view { height: 250px; } }
body.film .lede, body.film .how, body.film .foot { display: none; }
body.film .intro { padding-top: 10px; } body.film h1 .q { font-size: 36px; } body.film h1 em { font-size: 23px; }
body.tall .top, body.tall .intro, body.tall .app { padding-left: 14px; padding-right: 14px; }
body.tall h1 .q { font-size: 25px; } body.tall h1 em { display: none; } body.tall .intro { padding-top: 4px; }
body.tall .app { grid-template-columns: 1fr; height: auto; gap: 10px; padding-top: 10px; }
body.tall .card { padding: 11px; gap: 8px; }
body.tall .col2 { order: 1; height: 372px; } body.tall .view { height: auto; flex: 1; } body.tall .vt .lb, body.tall #hz, body.tall #eye { display: none; }
body.tall .col1 { order: 2; height: 318px; } body.tall .plan { height: auto; flex: 1; } body.tall .adds, body.tall .sel { display: none; }
body.tall .col3 { order: 3; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; } body.tall .col3 > :not(.tallx) { display: none; }
.tog { white-space: nowrap; }
body.tall .col2 { height: 378px; } body.tall .col1 { height: 300px; }
body.tall .col3 { flex-wrap: nowrap; padding: 9px 11px; } body.tall .col3 .row.tallx { flex: none; } body.tall .col3 .lb { display: none; } body.tall #save { width: auto; flex: 1; padding: 10px 8px; }
