body{margin:0;background:#f3f3f1}
a{color:var(--accent)}a:hover{color:var(--accent-hover)}
.app{--bg:#ffffff;--surface:#ffffff;--surface-2:#f7f7f7;--surface-3:#efefef;--border:#e6e6e6;--border-strong:#d2d2d2;
  --text:#222222;--text-2:#6b6b6b;--text-3:#767676;
  --accent:#c8431f;--accent-hover:#ad3817;--accent-soft:#fbe9e2;--on-accent:#ffffff;
  --ok:#1b7a47;--ok-bg:#e3f4ea;--ok-dot:#22a45d;--warn:#8a5a00;--warn-bg:#fff1c8;--err:#b3261e;--err-bg:#fbe9e7;--muted-bg:#efefef;
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;
  --r-sm:8px;--r-md:12px;--r-lg:16px;
  --font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--mono:"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  font-family:var(--font);font-size:14px;line-height:1.45;color:var(--text);background:var(--bg);
  position:relative;box-sizing:border-box;overflow:hidden;-webkit-font-smoothing:antialiased}
.app *{box-sizing:border-box}
.app.dark{--bg:#121212;--surface:#1a1a1a;--surface-2:#222222;--surface-3:#2b2b2b;--border:#2d2d2d;--border-strong:#3d3d3d;
  --text:#f2f2f2;--text-2:#a9a9a9;--text-3:#8c8c8c;
  --accent:#ff7f5c;--accent-hover:#ff9578;--accent-soft:#3a2119;--on-accent:#1a0b06;
  --ok:#6fd89f;--ok-bg:#15311f;--ok-dot:#3ec97a;--warn:#f3c65b;--warn-bg:#3a2d0c;--err:#ff8d83;--err-bg:#3f1c18;--muted-bg:#2a2a2a}
h1,h2,h3,p{margin:0}
button,input,select{font:inherit;color:inherit}
/* shell */
.shell{display:flex;height:100%;background:var(--bg)}
.sidebar{width:240px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--border);padding:20px 14px;gap:6px;background:var(--surface)}
.property{display:flex;align-items:center;gap:10px;padding:6px 8px 18px}
.property-photo{width:40px;height:40px;border-radius:10px;background:var(--surface-3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-2);flex-shrink:0}
.property-name{font-weight:600;font-size:14px;line-height:1.2}
.property-meta{font-size:12px;color:var(--text-2)}
.nav-item{display:flex;align-items:center;gap:12px;height:42px;padding:0 12px;border-radius:var(--r-sm);color:var(--text-2);text-decoration:none;font-weight:500;font-size:14px}
.nav-item:hover{background:var(--surface-2);color:var(--text)}
.nav-item.active{background:var(--surface-2);color:var(--text)}
.nav-item.active .icon{color:var(--accent)}
.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding:8px}
.account{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;padding:6px 12px 6px 10px;font-size:12px;font-weight:500;color:var(--text)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--ok-dot);flex-shrink:0}
.dot.grey{background:#a3a3a3}
.signout{font-size:13px;color:var(--text-2);text-decoration:none;padding-left:2px}
.signout:hover{color:var(--text)}
.main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg)}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:28px 32px 0}
.page-title{font-size:24px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
.page-sub{color:var(--text-2);margin-top:4px}
.content{padding:24px 32px 32px;display:flex;flex-direction:column;gap:20px}
/* mobile shell */
.m-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--surface)}
.m-top .property{padding:0}
.m-top .property-photo{width:32px;height:32px;border-radius:8px}
.m-head{padding:20px 16px 0}
.m-content{padding:16px 16px 100px;display:flex;flex-direction:column;gap:16px}
.tabbar{position:absolute;left:0;right:0;bottom:0;height:78px;display:flex;border-top:1px solid var(--border);background:var(--surface);padding:6px 4px 18px}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:500;color:var(--text-2);text-decoration:none;border-radius:var(--r-sm);min-height:44px}
.tab.active{color:var(--accent)}
/* pills */
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--muted-bg);color:var(--text-2)}
.pill-ok{background:var(--ok-bg);color:var(--ok)}
.pill-warn{background:var(--warn-bg);color:var(--warn)}
.pill-err{background:var(--err-bg);color:var(--err)}
.pill-accent{background:var(--accent-soft);color:var(--accent)}
.pill-outline{background:transparent;border:1px solid var(--border);color:var(--text)}
.pill .dot{width:6px;height:6px}
.tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:5px;font-size:11px;font-weight:600;background:var(--warn-bg);color:var(--warn);margin-left:6px;vertical-align:middle}
/* banner */
.banner{display:flex;align-items:center;gap:12px;margin:16px 32px 0;padding:12px 14px;border:1px solid #f1c3bd;background:var(--err-bg);color:var(--err);border-radius:var(--r-md);font-size:13px}
.dark .banner{border-color:#5a2a25}
.banner-text{flex:1}
.banner a{color:var(--err);font-weight:600}
.banner-close{background:none;border:0;padding:6px;border-radius:6px;color:var(--err);cursor:pointer;display:flex;min-width:32px;min-height:32px;align-items:center;justify-content:center}
.m-content .banner,.m-banner{margin:0}
/* cards */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px}
.card-title{font-size:16px;font-weight:600;letter-spacing:-.01em}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.card-sub{font-size:13px;color:var(--text-2)}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cols{display:grid;grid-template-columns:420px minmax(0,1fr);gap:20px;align-items:start}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;align-items:center;gap:10px}
.spacer{flex:1}
/* system card */
.sys-icon{width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center}
.stat{font-size:28px;font-weight:600;letter-spacing:-.02em;line-height:1.1}
.stat-label{font-size:13px;color:var(--text-2)}
/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--r-sm);border:1px solid transparent;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap;background:transparent}
.btn-primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
.btn-secondary:hover{background:var(--surface-2)}
.btn-danger{background:var(--surface);color:var(--err);border-color:var(--border-strong)}
.btn-danger:hover{background:var(--err-bg)}
.btn-ghost{color:var(--text-2);border-color:transparent}
.btn-ghost:hover{background:var(--surface-2);color:var(--text)}
.btn[disabled],.btn.is-disabled{opacity:.5;cursor:not-allowed}
.btn-sm{height:34px;padding:0 12px;font-size:13px}
.btn-lg{height:48px;padding:0 24px;font-size:15px}
.btn-block{width:100%}
.spin{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* forms */
.field{display:flex;flex-direction:column;gap:6px}
.label{font-size:13px;font-weight:500;color:var(--text)}
.hint{font-size:12px;color:var(--text-2)}
.input,.select{height:40px;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--text);width:100%;font-size:14px;outline:none}
.input:focus,.select:focus{border-color:var(--text);box-shadow:0 0 0 3px var(--surface-3)}
.input.is-error{border-color:var(--err)}
.input-mono{font-family:var(--mono);letter-spacing:.2em;font-size:18px;text-align:center}
.input-code{width:120px}
.select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.switch{position:relative;width:44px;height:26px;border-radius:999px;background:var(--border-strong);border:0;padding:0;cursor:pointer;flex-shrink:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.switch.on{background:var(--accent)}
.switch.on::after{left:21px}
.radio{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-md);cursor:pointer}
.radio.on{border-color:var(--text)}
.radio input{margin:3px 0 0;accent-color:var(--accent);width:16px;height:16px}
.radio-text{display:flex;flex-direction:column;gap:2px}
.radio-text b{font-weight:600}
.code-block{position:relative;font-family:var(--mono);font-size:12px;line-height:1.5;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-sm);padding:12px 44px 12px 12px;white-space:pre-wrap;word-break:break-all;color:var(--text)}
.code-copy{position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;background:transparent;border-radius:6px;color:var(--text-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.code-copy:hover{background:var(--surface-3);color:var(--text)}
.status-line{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-2)}
/* progress */
.progress{display:flex;flex-direction:column;gap:6px}
.progress-bar{height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.progress-fill{height:100%;border-radius:999px;background:var(--accent)}
.progress-text{font-size:12px;color:var(--text-2);display:flex;justify-content:space-between}
.result-line{font-size:13px;color:var(--text);display:flex;align-items:center;gap:8px}
/* session strip */
.session{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:var(--r-sm);font-size:13px;font-weight:500;background:var(--ok-bg);color:var(--ok);margin-top:4px}
.session.warn{background:var(--warn-bg);color:var(--warn)}
.session a{color:inherit;font-weight:600;margin-left:auto}
/* tables */
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th{text-align:left;font-weight:500;color:var(--text-2);font-size:12px;padding:8px 10px;border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap}
.table tr:last-child td{border-bottom:0}
.table .num{text-align:right;font-variant-numeric:tabular-nums}
.table .muted{color:var(--text-2)}
.table-compact th,.table-compact td{padding:8px 6px;font-size:12px}
.up{color:var(--ok);font-size:11px;margin-left:2px}
.table-wrap{border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.table-wrap .table th{background:var(--surface-2)}
/* activity */
.activity{display:flex;flex-direction:column}
.activity-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.activity-row:last-child{border-bottom:0}
.activity-time{width:96px;flex-shrink:0;font-size:12px;color:var(--text-2)}
.activity-icon{width:28px;height:28px;border-radius:8px;background:var(--surface-2);color:var(--text-2);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.activity-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--border);border-radius:999px;font-size:13px;background:var(--surface);color:var(--text)}
.door{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 8px;border:1px solid var(--border);border-radius:999px;font-size:13px;font-weight:500}
.door .icon{width:16px;height:16px}
.door.ok .icon{color:var(--ok)}
.door.fail .icon{color:var(--err)}
/* pool */
.hero{align-items:center;text-align:center;padding:32px 24px;gap:18px}
.panel-btn{width:168px;height:168px;border-radius:28px;border:2px solid var(--border-strong);background:var(--surface-2);color:var(--text-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:20px;letter-spacing:.08em}
.panel-btn.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.helper{font-size:13px;color:var(--text-2);max-width:340px}
.readings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.reading{padding:12px 14px;border:1px solid var(--border);border-radius:var(--r-md);display:flex;flex-direction:column;gap:2px}
.reading-label{font-size:12px;color:var(--text-2)}
.reading-value{font-size:18px;font-weight:600}
/* locks */
.code{font-family:var(--mono);font-size:56px;font-weight:600;letter-spacing:.18em;line-height:1}
.guest-meta{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-2)}
.guest-meta b{color:var(--text);font-weight:600;font-size:15px}
.inline-form{display:flex;align-items:flex-end;gap:10px;padding:14px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2)}
.batt-low{color:var(--err);font-weight:600}
.batt-unk{color:var(--text-3)}
/* logs */
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter{height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);font-size:13px;font-weight:500;color:var(--text);cursor:pointer}
.filter.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.run{border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);overflow:hidden}
.run-head{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:52px;cursor:pointer}
.run-head .icon.chev{color:var(--text-2)}
.run-title{font-weight:500;flex:1;min-width:0}
.run-when{font-size:12px;color:var(--text-2);width:120px;flex-shrink:0}
.run-body{border-top:1px solid var(--border);background:var(--surface-2);padding:8px 14px 12px}
.run-body .table td,.run-body .table th{background:transparent}
/* settings */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
/* sign in */
.auth{height:100%;display:flex;align-items:center;justify-content:center;background:var(--surface-2);padding:24px}
.auth-card{width:400px;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;display:flex;flex-direction:column;gap:16px}
.auth-photo{height:150px;border-radius:var(--r-md);background:var(--surface-3);border:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--text-2);font-size:12px}
.auth-title{font-size:22px;font-weight:600;text-align:center;letter-spacing:-.01em}
.form-error{display:flex;align-items:center;gap:8px;color:var(--err);font-size:13px;font-weight:500}
/* component sheet */
.sheet{padding:40px 48px;display:flex;flex-direction:column;gap:36px}
.sheet-title{font-size:28px;font-weight:600;letter-spacing:-.02em}
.sheet-sec{display:flex;flex-direction:column;gap:14px}
.sheet-sec h2{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--text-2)}
.swatches{display:flex;flex-wrap:wrap;gap:12px}
.swatch{width:112px;display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--text-2)}
.swatch-color{height:56px;border-radius:var(--r-sm);border:1px solid var(--border)}
.swatch b{color:var(--text);font-weight:600;font-family:var(--mono);font-size:11px}
.demo-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.demo-col{display:flex;flex-direction:column;gap:12px}
.demo-sidebar{width:240px;border:1px solid var(--border);border-radius:var(--r-md);padding:10px;display:flex;flex-direction:column;gap:4px;background:var(--surface)}
.demo-tabs{width:390px;height:78px;position:relative;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.demo-tabs .tabbar{position:absolute}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.grid-4 .stat{font-size:24px}
/* reviews */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border)}
.tab-link{display:flex;align-items:center;min-height:44px;padding:0 14px;font-weight:500;color:var(--text-2);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.tab-link.on{color:var(--text);border-bottom-color:var(--accent)}
.avatar{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.02em}
.avatar-lg{width:48px;height:48px;font-size:16px}
.avatar-xs{width:16px;height:16px;font-size:7px;background:rgba(0,0,0,.09);color:inherit}
.dark .avatar-xs{background:rgba(255,255,255,.14)}
.reviews-cols{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
.upnext{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.upnext.scroll{display:flex;overflow-x:auto;margin:0 -16px;padding:0 16px 4px}
.upnext.scroll .upnext-card{min-width:290px}
.upnext-text span{white-space:nowrap}
.upnext-card{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);text-decoration:none;color:var(--text);min-width:0}
.upnext-card.on{border-color:var(--text)}
.upnext-row{display:flex;align-items:center;gap:8px;min-width:0}
.upnext-row b{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.upnext-row .expires{font-size:12px;color:var(--text-2);white-space:nowrap;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.upnext-row .pill{flex-shrink:0;height:22px;font-size:11px;padding:0 8px}
.upnext-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.upnext-text b{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upnext-text span{font-size:12px;color:var(--text-2)}
.upnext-card .pill{flex-shrink:0}
.cal-head{display:flex;align-items:center;gap:8px}
.cal-month{font-size:16px;font-weight:600;flex:1}
.iconbtn{width:36px;height:36px;border:1px solid var(--border-strong);background:var(--surface);border-radius:var(--r-sm);display:inline-flex;align-items:center;justify-content:center;color:var(--text);cursor:pointer;padding:0}
.iconbtn:hover{background:var(--surface-2)}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.cal-dow{background:var(--surface-2);font-size:11px;font-weight:500;color:var(--text-2);text-align:center;padding:7px 0;text-transform:uppercase;letter-spacing:.04em}
.cal-day{background:var(--surface);min-height:92px;padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.cal-day.out{background:var(--surface-2);color:var(--text-3)}
.cal-num{font-size:12px;font-weight:500;align-self:flex-end;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.cal-day.today .cal-num{background:var(--text);color:var(--bg)}
.cal-compact .cal-day{min-height:64px;padding:4px}
.cal-compact .rchip{padding:2px 3px;font-size:10px}
.cal-compact .rchip-av{display:none}
.rchip-mini{display:flex;flex-shrink:0}
.rchip-mini .icon{width:9px;height:9px;stroke-width:3}
.rchip{display:flex;align-items:center;gap:3px;padding:3px 4px;border-radius:6px;font-size:11px;font-weight:500;line-height:1.2;background:var(--muted-bg);color:var(--text);text-decoration:none;cursor:pointer;border:1px solid transparent;min-width:0;overflow:hidden}
.rchip-av{position:relative;flex-shrink:0;display:flex;margin-right:2px}
.rchip-badge{position:absolute;right:-3px;bottom:-3px;width:10px;height:10px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 1px var(--surface);display:flex;align-items:center;justify-content:center}
.rchip-badge .icon{width:7px;height:7px;stroke-width:3.5}
.rchip-body{display:flex;flex-direction:column;min-width:0;flex:1}
.rchip-body b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rchip-body span{font-size:10px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rchip .icon{width:11px;height:11px;flex-shrink:0}
.rchip-red{background:var(--err-bg);color:var(--err)}
.rchip-amber{background:var(--warn-bg);color:var(--warn)}
.rchip-done{color:var(--text-2)}
.rchip.on{border-color:var(--text)}
.detail{display:flex;flex-direction:column;gap:16px}
.detail-head{display:flex;gap:14px;align-items:flex-start}
.detail-name{font-size:18px;font-weight:600;letter-spacing:-.01em}
.detail-meta{font-size:13px;color:var(--text-2);display:flex;flex-direction:column;gap:2px}
.mono{font-family:var(--mono);font-size:12px}
.countdown{padding:14px 16px;border-radius:var(--r-md);background:var(--warn-bg);color:var(--warn);display:flex;flex-direction:column;gap:6px}
.countdown-main{font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px}
.countdown-sub{font-size:12px;display:flex;gap:16px;flex-wrap:wrap}
.countdown.red{background:var(--err-bg);color:var(--err)}
.countdown.neutral{background:var(--surface-2);color:var(--text)}
.countdown.done{background:var(--ok-bg);color:var(--ok)}
.faces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--border-strong);border-radius:var(--r-md);overflow:hidden}
.face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 4px;min-height:68px;background:var(--surface);border:0;border-right:1px solid var(--border);font-size:11px;font-weight:500;color:var(--text-2);cursor:pointer}
.face:last-child{border-right:0}
.face .icon{width:28px;height:28px}
.face.on{background:var(--accent-soft);color:var(--accent)}
.face[disabled]{cursor:default}
.seg{display:inline-flex;border:1px solid var(--border-strong);border-radius:var(--r-sm);overflow:hidden}
.seg button{height:36px;padding:0 16px;border:0;background:var(--surface);font-weight:500;color:var(--text-2);cursor:pointer}
.seg button.on{background:var(--text);color:var(--bg)}
.star-row{display:flex;align-items:center;justify-content:space-between;min-height:36px;font-size:13px}
.stars{display:flex;gap:2px;color:var(--accent)}
.stars .icon{width:18px;height:18px}
.stars .off{color:var(--border-strong)}
.textarea{min-height:96px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--text);width:100%;font:inherit;font-size:14px;line-height:1.5;resize:vertical}
.textarea::placeholder{color:var(--text-3)}
.textarea[readonly]{background:var(--surface-2);border-color:var(--border)}
.counter{font-size:12px;color:var(--text-2);text-align:right;font-variant-numeric:tabular-nums}
.counter.over{color:var(--err)}
.guard{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2)}
.guard-row{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-2);min-height:20px}
.guard-row .icon{width:14px;height:14px;flex-shrink:0}
.guard-row.pass{color:var(--ok)}
.guard-row.fail{color:var(--err);font-weight:500}
.guard-reason{margin-left:auto;font-size:11px;font-weight:400;text-align:right}
.banner-info{border-color:var(--border);background:var(--accent-soft);color:var(--text)}
.banner-info .icon{color:var(--accent)}
.banner-info a{color:var(--accent)}
.banner-info .banner-close{color:var(--text-2)}
.collapse-head{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:24px}
.link-danger{color:var(--err);font-size:13px;font-weight:500;text-decoration:none}
.sheet-top{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--surface)}
.sheet-top .page-title{font-size:18px}
/* email */
.email{background:#f3f3f1;padding:24px 16px;font-family:var(--font);color:#222}
.email-card{max-width:520px;margin:0 auto;background:#fff;border:1px solid #e6e6e6;border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:16px}
.email-brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:#c8431f}
.email-subject{font-size:20px;font-weight:600;letter-spacing:-.01em}
.email-quote{border-left:3px solid #c8431f;padding:4px 14px;color:#444;font-size:14px;line-height:1.55;background:#faf9f7;border-radius:0 8px 8px 0}
.email-btns{display:flex;gap:10px;flex-wrap:wrap}
.email-foot{font-size:12px;color:#6b6b6b;text-align:center;max-width:520px;margin:0 auto}

/* ---------- public booking site (from Book*.dc.html) ---------- */
/* email */

/* public booking site */
.site{background:var(--bg);color:var(--text);display:flex;flex-direction:column;min-height:100%}
.site-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 48px;border-bottom:1px solid var(--border)}
.site-brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px;text-decoration:none;color:var(--text)}
.site-links{display:flex;gap:24px;font-size:14px;font-weight:500}
.site-links a{color:var(--text-2);text-decoration:none}
.site-wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 48px;display:flex;flex-direction:column;gap:32px}
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:200px 200px;gap:8px;border-radius:var(--r-lg);overflow:hidden}
.gallery .ph:first-child{grid-row:span 2}
.ph{background:var(--surface-3);display:flex;align-items:center;justify-content:center;color:var(--text-3);font-size:12px;gap:6px}
.ph.hero{height:100%}
.listing-cols{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:48px;align-items:start}
.listing-title{font-size:28px;font-weight:600;letter-spacing:-.02em}
.listing-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:var(--text-2);font-size:14px;margin-top:6px}
.listing-meta .sep{color:var(--border-strong)}
.rating{display:inline-flex;align-items:center;gap:4px;color:var(--text);font-weight:600}
.rating .icon{color:var(--accent);width:14px;height:14px}
.section{display:flex;flex-direction:column;gap:14px;padding:24px 0;border-top:1px solid var(--border)}
.section h2{font-size:20px;font-weight:600;letter-spacing:-.01em}
.amenities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-size:14px}
.amenity{display:flex;align-items:center;gap:10px;min-height:28px}
.amenity .icon{color:var(--text-2)}
.host{display:flex;align-items:center;gap:14px}
.host .avatar{width:56px;height:56px;font-size:18px}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.review{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.55}
.review-head{display:flex;align-items:center;gap:10px}
.review-head b{font-size:14px}
.review-head span{font-size:12px;color:var(--text-2)}
.map{height:280px;border-radius:var(--r-lg);background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-2);font-size:13px;gap:8px}
.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;font-size:14px}
.rules div{display:flex;flex-direction:column;gap:2px}
.rules b{font-weight:600}
.rules span{color:var(--text-2);font-size:13px}
/* booking widget */
.book{position:sticky;top:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px}
.book-price{display:flex;align-items:baseline;gap:6px}
.book-price b{font-size:22px;font-weight:600;letter-spacing:-.01em}
.book-price span{color:var(--text-2);font-size:14px}
.book-fields{border:1px solid var(--border-strong);border-radius:var(--r-md);overflow:hidden}
.book-field{display:flex;flex-direction:column;gap:2px;padding:10px 12px;min-height:56px;border-bottom:1px solid var(--border-strong)}
.book-field:last-child{border-bottom:0}
.book-field label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-2)}
.book-field .val{font-size:14px;color:var(--text)}
.book-field .val.placeholder{color:var(--text-3)}
.book-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.book-dates .book-field:first-child{border-right:1px solid var(--border-strong);border-bottom:0}
.book-dates .book-field:last-child{border-bottom:0}
.book-fields .book-dates{border-bottom:1px solid var(--border-strong)}
.book-lines{display:flex;flex-direction:column;gap:10px;font-size:14px}
.book-line{display:flex;justify-content:space-between;gap:12px}
.book-line span:first-child{color:var(--text-2);text-decoration:underline dotted;text-underline-offset:3px}
.book-line.disc span:last-child{color:var(--ok);font-weight:500}
.book-total{display:flex;justify-content:space-between;font-weight:600;font-size:15px;padding-top:12px;border-top:1px solid var(--border)}
.book-note{font-size:12px;color:var(--text-2);text-align:center}
.book-badge{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-2)}
.book-badge .icon{color:var(--ok);width:14px;height:14px}
/* availability calendar with prices */
.pcal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.pcal .cal-dow{background:transparent;padding:6px 0 8px;font-size:11px}
.pday{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:56px;border-radius:var(--r-sm);font-size:14px;font-weight:500;cursor:pointer;border:1px solid transparent;text-decoration:none;color:var(--text)}
.pday small{font-size:11px;font-weight:400;color:var(--text-2)}
.pday:hover{border-color:var(--text)}
.pday.out{visibility:hidden}
.pday.booked{color:var(--text-3);text-decoration:line-through;cursor:not-allowed}
.pday.booked small{visibility:hidden}
.pday.past{color:var(--text-3);cursor:default}
.pday.past small{visibility:hidden}
.pday.sel{background:var(--text);color:var(--bg)}
.pday.sel small{color:var(--bg);opacity:.8}
.pday.range{background:var(--surface-3)}
.pday.ci{border-radius:var(--r-sm) 0 0 var(--r-sm)}
.pday.co{border-radius:0 var(--r-sm) var(--r-sm) 0}
.pcal-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.pcal-month{font-weight:600;font-size:15px;text-align:center;margin-bottom:8px}
.legend{display:flex;gap:20px;font-size:12px;color:var(--text-2);flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:14px;height:14px;border-radius:4px;border:1px solid var(--border-strong);display:inline-block}
.legend i.b{background:var(--surface-2);position:relative}
.legend i.s{background:var(--text);border-color:var(--text)}
.legend i.w{border-color:var(--accent)}
.pday.wknd small{color:var(--accent)}
.site-foot{padding:32px 48px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:16px;font-size:13px;color:var(--text-2);margin-top:auto;flex-wrap:wrap}
/* checkout */
.checkout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:48px;align-items:start}
.summary-card{border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px;position:sticky;top:24px}
.summary-prop{display:flex;gap:12px;align-items:center}
.summary-prop .ph{width:96px;height:72px;border-radius:var(--r-sm);flex-shrink:0}
.pay-row{display:flex;align-items:center;gap:10px}
.pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.m-site .pay-grid{grid-template-columns:1fr}
.pay-opt{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:var(--r-md);cursor:pointer;min-height:60px;position:relative}
.pay-opt input{position:absolute;opacity:0;width:0;height:0}
.pay-opt.on{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.pay-opt.on > .icon{color:var(--ok);margin-left:auto;flex-shrink:0}
.pay-opt.is-disabled{opacity:.55;cursor:not-allowed}
.pay-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.pay-text b{font-weight:600;font-size:14px}
.pay-text span{font-size:12px;color:var(--text-2)}
.pay-opt .pay-logo{height:26px;min-width:46px;justify-content:center;flex-shrink:0}
.pay-logo{height:24px;padding:0 8px;border:1px solid var(--border);border-radius:5px;font-size:10px;font-weight:700;display:inline-flex;align-items:center;color:var(--text-2);letter-spacing:.04em}
.steps{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--text-2)}
.steps b{color:var(--text)}
.steps .icon{width:14px;height:14px}
/* mobile site */
.m-site .site-nav{padding:0 16px;height:56px}
.m-site .site-wrap{padding:0 16px;gap:24px}
.m-site .gallery{grid-template-columns:1fr;grid-template-rows:240px;margin:0 -16px;border-radius:0}
.m-site .gallery .ph:not(:first-child){display:none}
.m-site .listing-title{font-size:22px}
.m-site .amenities{grid-template-columns:1fr}
.m-site .rules{grid-template-columns:1fr}
.m-site .review-grid{grid-template-columns:1fr}
.m-site .pcal-two{grid-template-columns:1fr}
.m-site .pday{height:50px;font-size:13px}
.m-site .pday small{font-size:10px}
.m-book{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 24px;border-top:1px solid var(--border);background:var(--surface)}
.m-book .book-price b{font-size:18px}
.m-book .dates{font-size:12px;color:var(--text-2);text-decoration:underline;text-underline-offset:2px}
.m-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}
.email{background:#f3f3f1;padding:24px 16px;font-family:var(--font);color:#222}

/* ---------- runtime additions (not in the design export) ---------- */
html,body{height:100%}
body{background:var(--bg,#fff)}
.app{width:100%;min-height:100vh;overflow:visible}
.shell{min-height:100vh}
.main{min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh}
.m-top,.m-head,.m-content,.tabbar{display:none}
.tabbar{position:fixed}
.banner-info{border-color:#cfd9f5;background:#eef2ff;color:#2b3f9e}
.banner-info a{color:#2b3f9e}
.hidden,[hidden]{display:none!important}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:999px;font-size:13px;font-weight:500;z-index:50;box-shadow:0 6px 24px rgba(0,0,0,.18)}
.skeleton{color:var(--text-3);font-size:13px;padding:24px 0}
.auth-photo{height:120px;border-radius:var(--r-md);background:var(--surface-2);border:1px dashed var(--border-strong);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text-3);font-size:12px}
.auth-title{font-size:22px;font-weight:600;letter-spacing:-.01em;text-align:center}
.cal-day{cursor:default}
.rchip{text-decoration:none}
.run-body{display:none}
.run.open .run-body{display:block}
.face.on svg{color:var(--accent)}
.stars .icon{cursor:pointer}
.tab-link{cursor:pointer}
.tabs{margin-bottom:4px}
.session-strip{margin-top:4px}
@media (max-width:900px){
  .cols,.reviews-cols,.settings-grid,.grid-2{grid-template-columns:minmax(0,1fr)}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .readings{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .sidebar{display:none}
  .page-head{display:none}
  .content{padding:16px 16px 100px}
  .banner{margin:12px 16px 0}
  .m-top{display:flex}
  .m-head{display:block}
  .tabbar{display:flex}
  .grid-4{grid-template-columns:minmax(0,1fr)}
  .upnext{display:flex;overflow-x:auto;margin:0 -16px;padding:0 16px 4px}
  .upnext .upnext-card{min-width:250px}
  .cal-day{min-height:64px;padding:4px}
  .rchip{padding:0 4px 0 3px;height:20px;font-size:10px}
  .table-wrap,.card{overflow-x:auto}
  .code{font-size:40px}
  .field-row{grid-template-columns:minmax(0,1fr)}
  .faces .face span{font-size:10px}
}

/* ---------- public site: responsive (design's .m-site rules applied by media query) ---------- */
.site .site-links a[data-lang-switch]{font-weight:600;color:var(--accent)}
.site .site-wrap{padding-bottom:48px}
.site .section{display:flex;flex-direction:column;gap:12px;padding:24px 0;border-top:1px solid var(--border)}
.site .section h2{font-size:18px;font-weight:600;letter-spacing:-.01em}
.site .iconbtn{font-size:18px}
.site .pday[aria-disabled="true"]{cursor:default}
.site .pday small{display:block}
@media (max-width:900px){
  .site .site-nav{padding:0 16px}
  .site .site-links{display:none}
  .site .site-wrap{padding:0 16px 96px}
  .site .gallery{grid-template-columns:1fr;grid-template-rows:240px;overflow:hidden}
  .site .gallery .ph:not(:first-child){display:none}
  .site .listing-cols{grid-template-columns:minmax(0,1fr);gap:24px}
  .site .book{position:fixed;left:0;right:0;bottom:0;top:auto;border-radius:16px 16px 0 0;padding:12px 16px;gap:8px;box-shadow:0 -8px 30px rgba(0,0,0,.12);z-index:20;max-height:70vh;overflow:auto}
  .site .book .book-badge,.site .book .book-note{display:none}
  .site .pcal-two{grid-template-columns:minmax(0,1fr)}
  .site .checkout{grid-template-columns:minmax(0,1fr)}
  .site .summary-card{position:static}
  .site .amenities{grid-template-columns:minmax(0,1fr)}
  .site .review-grid{grid-template-columns:minmax(0,1fr)}
  .site .site-foot{flex-direction:column;gap:6px;padding:20px 16px;text-align:center}
  .site .pay-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---------- public site: lightbox, language menu, nav actions ---------- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:100;display:flex;align-items:center;justify-content:center}
.lb-figure{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:calc(100vw - 120px);max-height:calc(100vh - 40px)}
.lightbox img{max-width:100%;max-height:calc(100vh - 80px);width:auto;height:auto;object-fit:contain;border-radius:6px;background:transparent;padding:0;margin:0;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.host-photo{object-fit:cover;border-radius:50%}
.lb-close,.lb-nav{position:absolute;background:rgba(255,255,255,.12);border:0;color:#fff;font-size:28px;width:44px;height:44px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lb-close:hover,.lb-nav:hover{background:rgba(255,255,255,.25)}
.lb-close{top:16px;right:16px}
.lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.lb-next{right:16px;top:50%;transform:translateY(-50%)}
.lb-cap{text-align:center;color:#eee;font-size:14px;line-height:1.4;max-width:100%}
.lb-cap small{display:block;color:#aaa;font-size:12px;margin-top:2px}
.site-actions{display:flex;align-items:center;gap:10px}
.lang-menu{position:relative}
.lang-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--border-strong);border-radius:var(--r-sm);font-size:13px;font-weight:500;background:var(--surface);user-select:none}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu summary::after{content:"▾";font-size:11px;color:var(--text-2)}
.lang-list{position:absolute;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:150px;padding:6px;z-index:30;display:flex;flex-direction:column}
.lang-list a{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;font-size:13px;color:var(--text);text-decoration:none}
.lang-list a:hover{background:var(--surface-2)}
.lang-list a.on{font-weight:600}
.flag{width:20px;height:14px;border-radius:2px;flex-shrink:0;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
@media (max-width:900px){ .site .site-actions{gap:8px} .site .lang-menu summary{padding:0 8px} }

/* ---------- public site: date popover ---------- */
.book{position:sticky;top:80px}
@media (max-width:900px){ .site .book{position:fixed} }
.book .anchor{position:absolute;top:-90px}
.book-field-btn{appearance:none;background:transparent;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer;width:100%}
.book-field-btn:hover{background:var(--surface-2)}
.book-field-btn.active{box-shadow:inset 0 0 0 2px var(--text);border-radius:var(--r-sm)}
.book-fields-wrap{position:relative}
.date-pop{position:absolute;right:0;top:calc(100% + 8px);width:min(680px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:0 12px 40px rgba(0,0,0,.18);padding:20px;z-index:60;display:flex;flex-direction:column;gap:12px}
.date-pop-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.date-pop-head b{font-size:16px;font-weight:600}
.date-pop-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--border)}
.date-pop .pcal-two{gap:28px}
@media (max-width:900px){
  .date-pop{position:fixed;inset:0;width:auto;max-height:none;border-radius:0;overflow:auto;top:0}
  .date-pop .pcal-two{grid-template-columns:1fr}
  .book .anchor{top:-70px}
}
/* lightbox: fill the screen */

/* gallery tiles: the photo fills the tile edge to edge, no frame */
.gallery .ph{padding:0;overflow:hidden;background:var(--surface-3)}
.gallery .ph img{display:block;width:100%;height:100%;object-fit:cover;cursor:zoom-in}

@media (max-width:900px){ .lb-figure{max-width:calc(100vw - 16px)} }
