/* Layout concept
   One deliberate look. Warm bulb orange is the single accent. */
:root {
  color-scheme: only light;
  --bg: #E9C9A3; --surface: rgba(255, 248, 239, .74); --surface2: rgba(255, 255, 255, .5); --ink: #2B1B10; --muted: #5D4635; --faint: #836B58; --line: rgba(255, 255, 255, .62);
  --rail: rgba(44, 26, 14, .72); --rail2: rgba(255, 255, 255, .12); --railink: #F7ECDF; --hero: rgba(44, 26, 14, .74); --heroink: #FFFFFF; --heromuted: #F0DDC8; --heroline: rgba(255, 255, 255, .24);
  --accent: #E8821E; --accentink: #2A1400; --accentsoft: rgba(232, 130, 30, .2); --accenttext: #8F4A06;
  --good: #14693A; --goodsoft: rgba(30, 150, 85, .18); --warn: #7F4B00; --warnsoft: rgba(232, 160, 40, .26); --bad: #A92A20; --badsoft: rgba(220, 70, 55, .17); --info: #1B5497; --infosoft: rgba(40, 110, 200, .15);
  --c1: #C97A10; --c2: #1F5FA8; --c3: #0E9F96; --c4: #7A5CC6; --c5: #D9534F; --grid: rgba(70, 40, 15, .12); --track: rgba(70, 40, 15, .12);
  --display: "Bricolage Grotesque", "Noto Sans Sinhala", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Noto Sans Sinhala", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 16px 40px rgba(70, 35, 8, .24), inset 0 1px 0 rgba(255, 255, 255, .75);
}
[hidden] { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { background: linear-gradient(160deg, #F6DFC2, #DDB488); background-attachment: fixed; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 650; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0; }
button, input, .cf, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accenttext); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: 13px; }
.demo .tag { background: var(--warnsoft); color: var(--warn); padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.demo .sp { flex: 1; }
.seg { display: inline-flex; background: var(--track); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-weight: 650; }
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 46px); }
.rail { background: var(--rail); color: var(--railink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; color: #fff; }
.brand b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.brand small { display: block; font-size: 11.5px; color: var(--railink); opacity: .8; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(180deg, #FFB866, #F0812A); box-shadow: 0 6px 16px rgba(240, 129, 42, .45); display: grid; place-items: center; flex: none; }
.nav { display: flex; gap: 10px; align-items: center; background: none; border: 0; color: inherit; width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; font-size: 14.5px; }
.nav:hover { background: var(--rail2); }
.nav.on { background: linear-gradient(180deg, #FFB866, #F78F32); color: #2A1400; font-weight: 700; box-shadow: 0 8px 20px rgba(247, 143, 50, .35); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .n { margin-left: auto; background: #F4B740; color: #2C1E00; border-radius: 99px; font-size: 12px; font-weight: 700; padding: 0 7px; min-width: 22px; text-align: center; }
.railfoot { margin-top: auto; padding: 12px 8px 0; display: grid; gap: 8px; font-size: 12.5px; }
.main { min-width: 0; padding-block: 22px 60px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.pagehead p { color: var(--muted); font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card > header p { color: var(--muted); font-size: 13px; }
.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.btn:hover { border-color: var(--faint); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accentink); }
.btn.pri:hover { filter: brightness(1.07); }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--accenttext); font-weight: 600; padding: 0; text-align: left; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--track); color: var(--muted); }
.pill.good { background: var(--goodsoft); color: var(--good); } .pill.warn { background: var(--warnsoft); color: var(--warn); } .pill.bad { background: var(--badsoft); color: var(--bad); } .pill.info { background: var(--infosoft); color: var(--info); } .pill.acc { background: var(--accentsoft); color: var(--accenttext); }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .b { font-weight: 650; }
.hero { background: var(--hero); color: var(--heroink); border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.hero .lab { color: var(--heromuted); font-size: 14px; font-weight: 500; }
.hero .big { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero .big .cur { font-size: .45em; font-weight: 600; opacity: .8; margin-right: 4px; }
.hero .sub { color: var(--heromuted); font-size: 13px; margin-top: 4px; }
.hero .side { border-left: 1px solid var(--heroline); padding-left: 20px; display: grid; gap: 10px; align-content: center; }
.hero .side b { font-family: var(--display); font-size: 21px; display: block; font-weight: 650; }
.tile { display: flex; flex-direction: column; gap: 2px; }
.tile .v { font-family: var(--display); font-size: 23px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tile .l { color: var(--muted); font-size: 13px; }
.chg { font-size: 12.5px; font-weight: 650; }
.chg.up { color: var(--good); } .chg.down { color: var(--bad); }
.alert { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); text-align: left; width: 100%; }
.alert:hover { border-color: var(--faint); }
.alert .d { flex: 1; min-width: 0; font-size: 14px; }
.sev { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sev.bad { background: var(--bad); } .sev.warn { background: var(--warn); } .sev.info { background: var(--info); } .sev.good { background: var(--good); }
.tw { overflow-x: auto; min-width: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface2); }
tfoot td { font-weight: 650; border-top: 1px solid var(--line); border-bottom: 0; }
.thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; background: var(--track); }
.ic { display: flex; align-items: center; gap: 9px; min-width: 0; }
.itemgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.itemcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.itemcard:hover { border-color: var(--accent); }
.itemcard img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; max-width: 100%; }
.itemcard .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.meter { height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; display: flex; gap: 2px; }
.meter i { display: block; height: 100%; }
.hb { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.hb .tr { height: 12px; background: var(--track); border-radius: 0 4px 4px 0; overflow: hidden; }
.hb .tr i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--c1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.hbs { display: grid; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.ln { height: 3px; border-radius: 2px; vertical-align: 3px; }
.dn { display: grid; grid-template-columns: minmax(100px, 140px) minmax(0, 1fr); gap: 14px; align-items: center; }
.dnl { display: grid; gap: 6px; font-size: 13.5px; }
.dnl div { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.dnl span { min-width: 0; overflow-wrap: anywhere; }
.dnl i { width: 11px; height: 11px; border-radius: 3px; }
svg text { font-family: var(--body); }
#tip { position: fixed; z-index: 80; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 6px 9px; border-radius: 7px; pointer-events: none; max-width: 240px; line-height: 1.35; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input[type=search], .toolbar .cf { flex: 1 1 200px; min-width: 0; }
input, .cf, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; max-width: 100%; }
input:focus, .cf:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); }
.list { display: flex; flex-direction: column; }
.gh { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; font-size: 13px; color: var(--muted); padding: 12px 6px 5px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.cr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--grid); background: none; text-align: left; width: 100%; align-items: center; }
.cr:hover { background: var(--surface2); }
.cr .nm { font-weight: 650; overflow-wrap: anywhere; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accentsoft); color: var(--accenttext); font-weight: 700; flex: none; font-size: 14px; object-fit: cover; }
.av.lg { width: 74px; height: 74px; font-size: 26px; }
.back { align-self: flex-start; }
.bill { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface2); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; }
.kv .l { color: var(--muted); font-size: 12.5px; } .kv .v { font-weight: 650; overflow-wrap: anywhere; }
.chk { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--grid); align-items: start; }
.chk:last-child { border-bottom: 0; }
.ok-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ok-i.y { background: var(--goodsoft); color: var(--good); } .ok-i.x { background: var(--badsoft); color: var(--bad); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: 14px; }
.banner.good { background: var(--goodsoft); color: var(--good); } .banner.bad { background: var(--badsoft); color: var(--bad); } .banner.warn { background: var(--warnsoft); color: var(--warn); } .banner.info { background: var(--infosoft); color: var(--info); }
.overlay { position: fixed; inset: 0; background: rgba(8, 20, 38, .55); z-index: 60; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: max(24px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); }
.modal { background: var(--surface); border-radius: 16px; width: min(560px, 100%); padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.x { border: 0; background: var(--track); border-radius: 8px; width: 32px; height: 32px; font-size: 16px; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.f input, .f .cf, .f select, .f textarea { font-weight: 400; font-size: 15px; width: 100%; }
.f small { font-weight: 400; color: var(--muted); }
.fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; min-height: 1em; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 62px 90px 30px; gap: 6px; align-items: center; }
.totalbar { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; font-family: var(--display); padding: 8px 0; border-top: 1px solid var(--line); }
#toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 90; font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); text-align: center; }
.stage { display: flex; justify-content: center; padding-block: 18px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 24px; flex-wrap: wrap; }
.phone { width: 400px; max-width: 100%; border: 1px solid var(--line); border-radius: 26px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; height: 800px; box-shadow: var(--shadow); }
.ph-head { background: var(--rail); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.ph-head .av { background: var(--c3); color: #fff; }
.ph-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ph-body .cr { grid-template-columns: minmax(0, 1fr) auto; }
.ph-body .cr .opt { display: none; }
.ph-body .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface); }
.ph-tabs button { border: 0; background: none; padding: 8px 2px 9px; font-size: 11.5px; color: var(--muted); display: grid; justify-items: center; gap: 2px; }
.ph-tabs button.on { color: var(--accenttext); font-weight: 700; }
.ph-tabs svg { width: 21px; height: 21px; }
.ph-tabs .plus { color: var(--accent); }
.net { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: rgba(255, 255, 255, .14); border: 0; color: #fff; padding: 4px 9px; border-radius: 99px; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: #5EE29A; }
.net.off i { background: #F4B740; }
.big-text .ph-body { font-size: 17px; }
.note { max-width: 330px; display: flex; flex-direction: column; gap: 12px; }
.note ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; }
details > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ph-body table { font-size: 13px; }
.quad text { fill: var(--muted); font-size: 11.5px; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero .side { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--heroline); padding-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { display: block; }
  .rail { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)); gap: 2px; }
  .brand, .railfoot { display: none; }
  .nav { width: auto; white-space: nowrap; padding: 8px 11px; font-size: 13.5px; flex: none; }
  .nav svg { display: none; }
  .main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px 50px; }
  .g2, .g21, .g12, .g3 { grid-template-columns: minmax(0, 1fr); }
  .cr { grid-template-columns: minmax(0, 1fr) auto; } .cr .opt { display: none; }
  .note { display: none; }
  .phone { border-radius: 0; border-width: 0; height: calc(100vh - 92px); width: 100%; box-shadow: none; }
  .stage { padding: 0; }
}
@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 14px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .v { font-size: 19px; }
  .dn { grid-template-columns: minmax(0, 1fr); justify-items: center; } .dnl { width: 100%; }
  .hb { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) auto; }
  .fg { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { .overlay { animation: fade .12s ease-out; } @keyframes fade { from { opacity: .4 } to { opacity: 1 } } }

/* Glass and depth */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#bg3d[hidden] { display: none; }
#bgStill { position: fixed; inset: 0; z-index: 0; background-repeat: no-repeat; }
#bgStill, #bg3d, #screens, #spots { bottom: auto !important; height: var(--vh, 100%) !important; }
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
#app { position: relative; z-index: 1; min-height: 100vh; }
#app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(60, 30, 8, .22)); }
.card, .hero, .rail, .demo, .itemcard, .alert, .gatecard { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { border-radius: 22px; padding: 18px; border-color: var(--line); }
.hero { border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; padding: 28px; }
.hero::after, .itemcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 75%) var(--my, 10%), rgba(255, 220, 170, .18), transparent 60%); }
.hero .big { text-shadow: 0 6px 26px rgba(0, 0, 0, .35); }
.hero .big.warm { color: #FFB862; }
.hero, .itemcard, .tile.card, .alert { transition: transform .18s ease-out, border-color .15s; transform-style: preserve-3d; will-change: auto; }
.rail { margin: 14px 0 14px 14px; height: calc(100vh - 28px); top: 14px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.main { padding-block: 16px 60px; }
.demo { background: var(--surface); border-bottom: 1px solid var(--line); }
.btn { background: rgba(255, 255, 255, .62); border-color: var(--line); border-radius: 12px; transition: transform .1s, box-shadow .15s; }
.btn:hover { border-color: rgba(120, 70, 25, .5); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.pri { background: linear-gradient(180deg, #FFB866, #F0852A); border-color: rgba(255, 225, 190, .9); color: #2A1400; box-shadow: 0 8px 22px rgba(247, 143, 50, .38), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.bad { color: var(--bad); }
.seg { background: rgba(70, 40, 15, .12); border-radius: 12px; }
.seg button { color: var(--muted); }
.seg button.on { background: #FFFFFF; color: #2B1B10; }
input, .cf, select, textarea { background: rgba(255, 255, 255, .72); border-color: var(--line); border-radius: 11px; color: var(--ink); }
input::placeholder { color: var(--faint); }
option { background: #FFF8EF; color: #2B1B10; }
.gh { background: #F7E9D8; }
.itemcard { position: relative; border-radius: 22px; background: var(--surface); border-color: var(--line); padding: 10px; gap: 8px; }
.itemcard img { border-radius: 15px; box-shadow: 0 10px 22px rgba(70, 35, 8, .3); transition: transform .25s ease-out; }
.itemcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(70, 35, 8, .3); }
.itemcard .bd { padding: 4px 6px 6px; }
.thumb { box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.av { background: var(--accentsoft); color: var(--accenttext); }
.dn svg { filter: drop-shadow(0 8px 14px rgba(70, 35, 8, .22)); }
.modal { background: rgba(255, 249, 241, .97); border-radius: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.alert { background: var(--surface2); border-radius: 14px; }
.bill { background: var(--surface2); border-radius: 16px; }
.phone { border-radius: 34px; border: 1px solid var(--line); background: rgba(255, 246, 235, .24); box-shadow: 0 30px 70px rgba(70, 35, 8, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ph-head { background: rgba(44, 26, 14, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ph-tabs { background: rgba(255, 248, 239, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ph-tabs button.on { color: var(--accenttext); }
.ph-tabs .plus { color: var(--accenttext); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; align-self: flex-start; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stage.real { padding: 0; }
.stage.real .phone { width: 100%; max-width: 620px; height: 100vh; height: 100dvh; border-radius: 0; border-width: 0; background: transparent; box-shadow: none; }
#tip { background: #2B1B10; color: #FFF6EC; }
#toast { background: #2B1B10; color: #FFF6EC; box-shadow: 0 12px 30px rgba(40, 20, 5, .4); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.gatecard { width: min(430px, 100%); }
.qr { background: #fff; border-radius: 16px; padding: 10px; width: min(240px, 100%); align-self: center; justify-self: center; }
.qr svg { display: block; width: 100%; height: auto; }
.banner { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lite { --surface: rgba(255, 248, 239, .95); --hero: rgba(44, 26, 14, .95); --rail: rgba(44, 26, 14, .95); --shadow: 0 2px 8px rgba(70, 35, 8, .22); }
.lite .card, .lite .hero, .lite .rail, .lite .demo, .lite .itemcard, .lite .alert, .lite .gatecard, .lite .note, .lite .ph-head, .lite .ph-tabs, .lite .banner { backdrop-filter: none; -webkit-backdrop-filter: none; }
.no3d #bg3d { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .enter > * { animation: rise .5s cubic-bezier(.2, .8, .25, 1) backwards; transform-origin: 50% 0; }
  .enter > *:nth-child(2) { animation-delay: .05s; } .enter > *:nth-child(3) { animation-delay: .1s; } .enter > *:nth-child(4) { animation-delay: .15s; } .enter > *:nth-child(n+5) { animation-delay: .2s; }
  @keyframes rise { from { opacity: .25; transform: perspective(1000px) translateY(20px) rotateX(5deg); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px) {
  .rail { margin: 0; border-radius: 0; height: auto; top: auto; border-width: 0 0 1px; }
  .hero { padding: 20px; border-radius: 22px; }
}

.lineitem { border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; background: var(--surface2); }
.lineitem summary { list-style: none; cursor: pointer; display: block; font-weight: 400; }
.lineitem summary::-webkit-details-marker { display: none; }
.lineitem summary > * { display: flex; }
.oldb { display: block; background: linear-gradient(135deg, #8a7a55, #5a4a2f); }
#itemsBought { gap: 10px; }
.perf .big { text-shadow: none; }
@media (max-width: 1100px) { .perf > div:first-child { grid-column: 1 / -1 !important; } }
.main { overflow-x: clip; }
.card > .pill { align-self: flex-start; }

.rail .btn { background: rgba(255, 255, 255, .14); color: #F7ECDF; border-color: rgba(255, 255, 255, .3); }
.rail select { background: rgba(255, 255, 255, .9); }
.rail .f { color: var(--railink); }
.nav:hover { background: var(--rail2); }
.note { background: var(--surface); }
.showroom { height: calc(53vh - 46px); min-height: 230px; display: flex; align-items: flex-start; pointer-events: none; }
.roomtitle { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 15px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: auto; }
.roomtitle h1 { font-size: 20px; } .roomtitle p { font-size: 12.5px; color: var(--muted); }
.athome .main { pointer-events: none; } .athome .main > * { pointer-events: auto; } .athome .showroom { pointer-events: none; } .athome .showroom .roomtitle { pointer-events: auto; }
#spots { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .15s; }
.spot { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.spot .sl { background: rgba(255, 249, 241, .84); border: 1px solid rgba(255, 255, 255, .85); color: #2B1B10; font-size: 12px; padding: 3px 9px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 16px rgba(60, 30, 8, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s; }
.spot:hover .sl { transform: translateY(-2px) scale(1.05); background: #FFF; }
.spot i { width: 9px; height: 9px; border-radius: 50%; background: #E8821E; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75); position: relative; }
.spot i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: rgba(255, 255, 255, .25); opacity: 0; transform: scale(.5); }
@media (prefers-reduced-motion: no-preference) { .spot i::after { animation: pulse 2.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: 1; transform: scale(1); } } }
.shell { position: relative; z-index: 1; }
@media (max-width: 860px) { .showroom { height: 34vh; min-height: 170px; } }
.stage.real .phone { background: transparent; }
.no3d #bgStill { display: none; }
.nav.on:hover { background: linear-gradient(180deg, #FFB866, #F78F32); }
.athome { pointer-events: none; } .athome .rail { pointer-events: auto; }
.pagehead { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lite .pagehead, .lite .roomtitle, .lite .spot .sl { backdrop-filter: none; -webkit-backdrop-filter: none; }
.back { background: var(--surface); }

/* Motion: everything uses one soft spring */
:root { --spring: cubic-bezier(.22, 1, .36, 1); --bounce: cubic-bezier(.34, 1.45, .64, 1); }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  .main.leaving > *, .ph-body.leaving > * { animation: pageout .08s ease-in forwards !important; }
  @keyframes pageout { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -22px)) scale(.985); } }
  .enter > * { animation: pagein .3s var(--spring) backwards !important; transform-origin: 50% 40%; }
  .enter > *:nth-child(1) { animation-delay: 0s !important; } .enter > *:nth-child(2) { animation-delay: .02s !important; } .enter > *:nth-child(3) { animation-delay: .04s !important; } .enter > *:nth-child(4) { animation-delay: .06s !important; } .enter > *:nth-child(n+5) { animation-delay: .08s !important; }
  @keyframes pagein { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 34px)) scale(.985); } to { opacity: 1; transform: none; } }
  .overlay { animation: overlayin .22s ease-out; }
  @keyframes overlayin { from { background: rgba(8, 20, 38, 0); } }
  .modal { animation: sheetin .42s var(--spring); }
  @keyframes sheetin { from { opacity: 0; transform: translateY(44px) scale(.97); } }
  .overlay.closing { animation: overlayout .17s ease-in forwards; pointer-events: none; }
  .overlay.closing .modal { animation: sheetout .17s ease-in forwards; }
  @keyframes overlayout { to { background: rgba(8, 20, 38, 0); } }
  @keyframes sheetout { to { opacity: 0; transform: translateY(26px) scale(.98); } }
  /* Rises under the pointer or finger, then settles back the same way */
  .btn, .nav, .seg button, .itemcard, .alert, .cr, .tile.card, button.card, tr.click, .ph-tabs button, .lineitem, .roomtitle, .brand, .bill { transition: transform .32s var(--bounce), box-shadow .3s ease, background-color .2s, border-color .2s; }
  .lift { transform: translateY(-3px) scale(1.03) !important; box-shadow: 0 14px 30px rgba(70, 35, 8, .3); position: relative; z-index: 6; }
  tr.lift { transform: scale(1.012) !important; }
  .ph-tabs .lift { box-shadow: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover, .nav:hover, .seg button:hover, button.card:hover, .cr:hover, .lineitem:hover, .bill:hover, .roomtitle:hover, .brand:hover { transform: translateY(-2px) scale(1.018); box-shadow: 0 10px 24px rgba(70, 35, 8, .24); position: relative; z-index: 5; }
  .seg button:hover { box-shadow: none; }
  tr.click:hover { transform: scale(1.008); position: relative; z-index: 5; }
  .brand:hover { box-shadow: none; }
}
.card { contain: layout style; }
/* Scroll stays light */
.card, .hero, .rail, .demo, .itemcard, .alert, .gatecard { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lite .card, .lite .hero, .lite .rail, .lite .demo, .lite .itemcard, .lite .alert, .lite .gatecard { backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { background: none; border: 0; color: #fff; text-align: left; width: 100%; border-radius: 12px; }
.haslogo { object-fit: cover; background: #fff; }
.logo.big { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.roomtitle { display: flex; align-items: center; gap: 11px; text-align: left; color: var(--ink); cursor: pointer; }
.seg.mini { padding: 2px; background: rgba(255, 255, 255, .16); border-radius: 9px; }
.seg.mini button { padding: 3px 8px; font-size: 12px; color: #F7ECDF; }
.seg.mini button.on { background: #fff; color: #2B1B10; }
.ph-head { flex-wrap: nowrap; }
.nettxt { display: none; }
.net { padding: 7px; border-radius: 50%; }
.net i { display: block; }
@media (min-width: 500px) { .stage:not(.real) .nettxt { display: inline; } .stage:not(.real) .net { border-radius: 99px; padding: 4px 9px; } }
/* Items standing on the island */
.prod { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; pointer-events: auto; cursor: pointer; width: clamp(50px, 4.8vw, 74px); transition: filter .2s; }
.prod .pi { display: block; width: 100%; aspect-ratio: 1; position: relative; transition: transform .32s var(--bounce); transform-origin: 50% 100%; }
.prod .pi img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod .pi.free { filter: drop-shadow(0 7px 5px rgba(50, 25, 5, .5)); }
.prod .pi.free::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 8%; border-radius: 50%; background: rgba(50, 25, 5, .42); filter: blur(4px); z-index: -1; }
.prod .pi.framed { border-radius: 10px; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .85); box-shadow: 0 9px 16px rgba(50, 25, 5, .45); background: rgba(255, 249, 241, .75); }
.prod .pi.framed img { object-fit: cover; }
.prod .pl { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); background: rgba(255, 249, 241, .92); color: #2B1B10; font-size: 11px; padding: 1px 6px; border-radius: 99px; white-space: nowrap; box-shadow: 0 3px 8px rgba(50, 25, 5, .3); }
.prod:hover .pi, .prod.lift .pi { transform: translateY(-6px); filter: drop-shadow(0 10px 12px rgba(60, 30, 8, .35)); }
.dropin .pi { animation: dropin .9s var(--bounce) both; }
.dropin .pl { animation: fadein .5s .4s both; }
@keyframes dropin { from { opacity: 0; transform: translateY(-120px) scale(.7); } 60% { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }
.morechip .sl { background: var(--accent); }
@media (max-width: 860px) { .prod { width: calc(36px * var(--sc, 1)); } .prod .pl { font-size: 10px; } }
.itemcard img { background: radial-gradient(circle at 50% 42%, #FFF3E2, #E9CFAF); }
.thumb { background: radial-gradient(circle at 50% 42%, #FFF3E2, #E9CFAF); object-fit: contain; }
.overlay.closing { pointer-events: none; }
.prod .pi img { pointer-events: none; }
.spot:hover .sl { transform: translateY(-2px) scale(1.06); }
.spot { transition: none; }

/* Softer spring where the browser can draw one */
@supports (animation-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1); }
}
@media (prefers-reduced-motion: no-preference) {
  .enter > * { animation-duration: .34s !important; }
  .modal { animation: sheetin .34s var(--spring); transform-origin: 50% 80%; }
  @keyframes sheetin { from { opacity: 0; transform: translateY(70px) scale(.94); } }
  .overlay { background: rgba(40, 22, 8, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: overlayin .18s ease-out; }
  @keyframes overlayin { from { background: rgba(40, 22, 8, 0); } }
  .modal > * { animation: fieldin .3s var(--spring) backwards; }
  .modal > *:nth-child(2) { animation-delay: .02s; } .modal > *:nth-child(3) { animation-delay: .035s; } .modal > *:nth-child(4) { animation-delay: .05s; } .modal > *:nth-child(n+5) { animation-delay: .065s; }
  @keyframes fieldin { from { opacity: 0; transform: translateY(14px); } }
  .overlay.closing { animation: overlayout .15s ease-in forwards; }
  .overlay.closing .modal { animation: sheetout .15s cubic-bezier(.4, 0, .9, .6) forwards; }
  @keyframes overlayout { to { background: rgba(40, 22, 8, 0); } }
  @keyframes sheetout { to { opacity: 0; transform: translateY(50px) scale(.96); } }
  .main > *, .ph-body > * { transition: opacity .28s ease-out, transform .36s var(--spring); }
  .rv { opacity: .75; transform: translateY(12px); }
}
.ph-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tw { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.grab { display: none; }
@media (max-width: 620px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; border-radius: 26px 26px 0 0; max-height: 92vh; max-height: min(92dvh, calc(var(--vvh, 100dvh) - 10px)); margin-bottom: var(--kb, 0px); transition: margin-bottom .18s ease-out; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  @keyframes sheetin { from { transform: translateY(100%); } }
  @keyframes sheetout { to { transform: translateY(100%); } }
  .grab { display: block; width: 44px; height: 5px; border-radius: 99px; background: rgba(70, 40, 15, .3); margin: -6px auto 2px; flex: none; padding: 0; position: relative; }
  .grab::before { content: ""; position: absolute; inset: -14px -40px; }
  input, .cf, select, textarea { font-size: 16px !important; }
}
/* Screens laid on the picture */
#screens { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#screens[hidden] { display: none; }
.scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased; background: #1A0F07; }
.scr.tv { border: 10px solid #0D0D0E; border-bottom-width: 14px; box-shadow: 0 26px 60px rgba(40, 20, 5, .5), 0 0 120px rgba(255, 170, 90, .18); background: linear-gradient(135deg, #24140A, #54301A 70%, #8A4E1C); }
.scr.fr { border: 0; background: linear-gradient(170deg, #24140A, #54301A); box-shadow: inset 0 0 18px rgba(0, 0, 0, .55), inset 0 3px 6px rgba(0, 0, 0, .55); }
.scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .09), transparent 30%); pointer-events: none; }
.sld { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.sld.on { opacity: 1; }
.tv .sld { padding: 26px 40px 30px; display: flex; flex-direction: column; }
.sl-top { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 32px; color: #F7E5CF; }
.sl-top img { height: 46px; width: 46px; border-radius: 10px; object-fit: cover; background: #fff; }
.sl-top.c { justify-content: center; font-size: 26px; padding-top: 14px; } .sl-top.c img { height: 34px; width: 34px; }
.sl-body { flex: 1; display: grid; grid-template-columns: 44% 1fr; gap: 26px; align-items: center; min-height: 0; }
.sl-pic { display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.sl-pic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .5)); border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .sld.on .sl-pic img { animation: kenburns 6s ease-out both; } @keyframes kenburns { from { transform: scale(.92); } to { transform: scale(1.04); } } }
.sl-name { font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.sl-price { font-family: var(--display); font-weight: 800; color: #FFB862; line-height: 1.06; margin-top: 8px; letter-spacing: -.02em; }
.sl-sub { font-size: 34px; color: #F7E5CF; margin-top: 4px; }
.sl-cash { font-size: 46px; margin-top: 8px; color: #F7E5CF; } .sl-cash b { color: #fff; }
.fr .sld { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 18px; }
.fr .sl-pic { height: 40%; flex: none; margin: 14px 0; width: 100%; }
.fr .sl-cash { font-size: 38px; }
.sl-empty { display: grid; place-items: center; height: 100%; font-family: var(--display); font-size: 54px; color: #FFB862; text-align: center; padding: 20px; }
/* Arranging items */
.roomtitle { align-self: flex-start; }
.showroom { flex-wrap: wrap; gap: 10px; }
.arrangebtn { background: var(--surface); box-shadow: var(--shadow); pointer-events: auto; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tray { pointer-events: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 9px; max-width: 560px; }
.tray-h { display: flex; flex-direction: column; gap: 1px; }
.tray-l { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
.tray-i { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); font-size: 12.5px; }
.tray-i img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #F3DFC6; }
.tray-i b { color: var(--accenttext); font-size: 15px; }
.prod { width: calc(clamp(50px, 4.8vw, 74px) * var(--sc, 1)); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.spot { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: pan-y; cursor: grab; }
.prod { cursor: grab; } .prod img { -webkit-user-drag: none; }
.dragging { cursor: grabbing; z-index: 9; }
.dragging .pi { transform: translateY(-10px) scale(1.2) !important; filter: drop-shadow(0 22px 14px rgba(50, 25, 5, .5)); }
.dragging .sl { transform: scale(1.1); }
.spx { position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: #2B1B10; color: #fff; font-size: 14px; line-height: 20px; text-align: center; z-index: 3; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
/* Phones with notches and home bars */
.ph-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.ph-tabs { padding-bottom: env(safe-area-inset-bottom, 0px); }
.stage:not(.real) .ph-head { padding-top: 12px; }
.stage:not(.real) .ph-tabs { padding-bottom: 0; }
button, a, input, .cf, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.spot, .prod { touch-action: pan-y; }

.rail { scrollbar-width: none; } .rail::-webkit-scrollbar { display: none; }
#bg3d { opacity: 0; transition: opacity .5s ease; } #bg3d.ready { opacity: 1; }
.sld.off { opacity: 0; }
.tight .pn { display: none; }
.scr img { max-width: 100%; }
.scr.lv { background: none; border: 0; overflow: visible; }
.scr.lv::after { display: none; }

/* A steady scrollbar: the page never changes width between screens */
html { overflow-y: scroll; scrollbar-width: thin; scrollbar-color: rgba(90, 50, 20, .55) transparent; }
/* Larger text and pictures on the TV and the wall frame */
.tv .sld { padding: 22px 28px 26px; }
.sl-top { font-size: 37px; }
.sl-top.c { font-size: 30px; padding-top: 12px; }
.sl-body { grid-template-columns: 46% 1fr; gap: 22px; }
.sl-sub { font-size: 39px; }
.sl-cash { font-size: 52px; }
.fr .sld { padding: 0 12px 14px; }
.fr .sl-pic { height: 43%; margin: 10px 0 8px; }
.fr .sl-cash { font-size: 43px; margin-top: 4px; }
/* Phone buttons: raised glass keys */
.ph-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 9px 9px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(70, 40, 18, .3); border-top: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stage:not(.real) .ph-tabs { padding-bottom: 10px; }
.ph-tabs button { position: relative; overflow: hidden; min-width: 0; min-height: 58px; padding: 7px 2px 6px; border-radius: 16px; align-content: center; font-size: 11px; line-height: 1.15; font-weight: 600; color: #4C3322; border: 1px solid rgba(255, 255, 255, .85); background: linear-gradient(165deg, rgba(255, 255, 255, .86), rgba(255, 240, 222, .52) 55%, rgba(236, 205, 170, .6)); box-shadow: 0 7px 14px rgba(60, 30, 8, .3), 0 2px 0 rgba(150, 95, 45, .4), inset 0 1px 0 #fff, inset 0 -3px 6px rgba(150, 90, 35, .16); transition: transform .3s var(--bounce), box-shadow .22s ease, background .22s ease; }
.ph-tabs button::before { content: ""; position: absolute; left: 7%; right: 7%; top: 3px; height: 38%; border-radius: 12px 12px 22px 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
.ph-tabs button > * { position: relative; }
.ph-tabs button span { overflow-wrap: anywhere; max-width: 100%; }
.ph-tabs svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }
.ph-tabs button.on { color: #2A1400; font-weight: 700; border-color: rgba(255, 228, 195, .95); background: linear-gradient(170deg, #FFC67F, #F78F32 72%, #E97C20); box-shadow: 0 10px 20px rgba(235, 120, 25, .48), 0 2px 0 #B85F12, inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -3px 6px rgba(140, 65, 5, .3); transform: translateY(-3px); }
.ph-tabs button.on svg { filter: none; }
.ph-tabs button.plus { color: #8F4A06; }
.ph-tabs button.plus svg { color: #E8791A; }
.ph-tabs button.lift { transform: translateY(1px) scale(.95) !important; box-shadow: 0 2px 5px rgba(60, 30, 8, .3), inset 0 2px 5px rgba(120, 65, 20, .3) !important; }
@media (hover: hover) { .ph-tabs button:hover { transform: translateY(-2px); } .ph-tabs button.on:hover { transform: translateY(-3px); } }
.lite .ph-tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(120, 80, 45, .92); }
.stage:not(.real) .phone { height: min(800px, calc(100vh - 92px)); min-height: 560px; }
.ph-head .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tabs button span { overflow-wrap: normal; font-size: 10.5px; white-space: nowrap; }
.ph-tabs button.plus { color: #5F2F00; }

/* Owner on a phone */
.ownerdock { display: none; }
.backowner { background: rgba(255, 255, 255, .9); padding: 4px 8px; font-size: 11.5px; white-space: nowrap; flex: none; }
.dockn { position: absolute !important; top: 4px; right: 8px; background: #C8321F; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 0 5px; min-width: 16px; line-height: 16px; }
.moregrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.morekey { display: grid; justify-items: center; gap: 4px; padding: 11px 4px; border-radius: 16px; font-size: 12px; font-weight: 600; color: #4C3322; border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(165deg, #fff, rgba(247, 228, 205, .8)); box-shadow: 0 6px 12px rgba(60, 30, 8, .2), inset 0 1px 0 #fff; }
.morekey svg { width: 22px; height: 22px; }
details.card > summary { cursor: pointer; }
@media (max-width: 860px) {
  .rail { display: none; }
  .ownerdock { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-left: max(9px, env(safe-area-inset-left, 0px)); padding-right: max(9px, env(safe-area-inset-right, 0px)); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .pagehead .row { width: 100%; } .pagehead .row .btn { flex: 1 1 auto; }
}
.ownerdock { pointer-events: auto; }
@media (max-width: 860px) {
  .spot .sl b { display: none; } .spot:not(.morechip) .sl { padding: 1px 6px; font-size: 11px; font-weight: 600; } .morechip .sl b { display: inline; }
  .spot i { width: 7px; height: 7px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
  .demo { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
  .demo::-webkit-scrollbar { display: none; }
  .demo .seg { flex-wrap: nowrap; flex: none; } .demo .seg button, .demo .tag, .demo .muted, .demo .btn { white-space: nowrap; flex: none; } .demo .sp { display: none; }
}
.backowner, .backowner:hover { color: #2B1B10; background: #fff; }
.ph-head .backowner { padding: 5px 7px; font-size: 11px; }
.tv.stack { border-width: 8px; border-color: #0D0D0E; box-shadow: none; }
.tv.stack .sld { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px 10px; }
.tv.stack .sl-pic { height: auto; flex: 1 1 0; margin: 4px 0; width: 100%; }
.tv.stack .sl-top { font-size: 24px; padding-top: 8px; } .tv.stack .sl-cash { font-size: 40px; margin-top: 2px; }
@media (max-width: 860px) { .prod .pl { font-size: 10px; padding: 0 5px; } }
@media (max-width: 860px) {
  .prod { width: calc(30px * var(--sc, 1)); }
  .prod .pl { font-size: 9.5px; padding: 0 4px; }
  .spot:not(.morechip) .sl { font-size: 10px; padding: 0 5px; }
  .showroom { align-content: flex-start; align-items: flex-start; gap: 6px; }
  .roomtitle { padding: 6px 10px; gap: 8px; max-width: calc(100% - 118px); }
  .roomtitle .logo { width: 28px; height: 28px; border-radius: 8px; flex: none; }
  .roomtitle h1 { font-size: 15px; overflow-wrap: anywhere; } .roomtitle p { font-size: 10.5px; }
  .arrangebtn { padding: 6px 9px; font-size: 12px; }
  .showroom .tray { width: 100%; }
}

/* ---- Items and prices, photos ---- */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.catcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); color: var(--ink); }
.catpic { position: relative; display: block; }
.catpic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; display: block; background: var(--track); }
.catpic em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(40, 22, 8, .72); color: #fff; border-radius: 999px; padding: 2px 7px; }
.catprice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.catprice span { display: flex; flex-direction: column; min-width: 0; }
.catprice small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.catprice b { font-size: 13.5px; white-space: nowrap; }
.gal { display: flex; flex-direction: column; gap: 8px; width: min(100%, 300px); }
.galmain { padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; display: block; cursor: zoom-in; }
.galmain img { width: 100%; aspect-ratio: 1; object-fit: contain; background: rgba(255, 255, 255, .5); display: block; border-radius: 18px; box-shadow: 0 12px 26px rgba(70, 35, 8, .28); }
.galrow { display: flex; flex-wrap: wrap; gap: 8px; }
.galth { position: relative; width: 58px; height: 58px; }
.galth > button:first-child { padding: 0; border: 0; background: none; width: 100%; height: 100%; }
.galth img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.galx { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; padding: 0; }
.galadd { width: 58px; height: 58px; border-radius: 11px; border: 1.5px dashed var(--muted); display: grid; place-items: center; font-size: 24px; color: var(--muted); cursor: pointer; }
#viewer { position: fixed; inset: 0; z-index: 95; background: rgba(12, 7, 3, .94); opacity: 0; transition: opacity .2s ease-out; }
#viewer.on { opacity: 1; }
.vtrack { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x pinch-zoom; }
.vtrack::-webkit-scrollbar { display: none; }
.vslide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
.vslide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; transform: scale(.94); transition: transform .3s var(--spring); }
#viewer.on .vslide img { transform: none; }
.vx { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 1; }
.vcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.vcap span { font-size: 13.5px; opacity: .9; }
.vdots { display: flex; gap: 6px; margin-top: 6px; }
.vdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.vdots i.on { background: #fff; }
.railfeel { display: flex; flex-direction: column; gap: 4px; color: var(--railink); font-size: 13px; }

/* ---- App opens softly ---- */
#app.boot { animation: bootin .5s ease-out both; }
@keyframes bootin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #app.boot { animation: none; } }

/* ---- Phones and tablets ----
   Live blur under every card is the heaviest thing a phone can draw: each frame of scrolling re-blurs the
   picture under every card. On touch screens the glass is made with colour alone, so scrolling stays at full speed. */
.touch *, .touch *::before, .touch *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.touch { --surface: rgba(255, 248, 239, .9); --hero: rgba(44, 26, 14, .93); --rail: rgba(44, 26, 14, .95); }
.touch .card, .touch .itemcard, .touch .alert, .touch .gatecard, .touch .pagehead, .touch .roomtitle { background-color: rgba(255, 248, 239, .9); }
.touch .ph-head { background: rgba(48, 29, 15, .97); }
.touch .ph-tabs { background: linear-gradient(rgba(102, 64, 34, .97), rgba(74, 44, 21, .985)); }
.touch .spot .sl { background: rgba(255, 249, 241, .95); }
.touch .banner { background-color: rgba(255, 248, 239, .95); }
.touch .demo { background: rgba(255, 248, 239, .97); }
.touch .overlay { background: rgba(30, 16, 6, .55); }
.touch .modal { background: #FFF8EF; }
html.touch { overscroll-behavior: none; }
.touch body { overscroll-behavior: none; }
/* while a popup is open the page under it stays still */
html.touch.locked, html.touch.locked body { overflow: hidden !important; }
/* popups on phones: one clean slide up, no bounce, nothing else moving at the same time */
@media (prefers-reduced-motion: no-preference) {
  .touch .overlay { animation: tfade .2s ease-out; }
  .touch .modal { animation: tup .3s cubic-bezier(.2, .8, .2, 1); will-change: transform; transform-origin: 50% 100%; }
  .touch .modal > * { animation: none !important; }
  .touch .overlay.closing { animation: tfadeout .18s ease-in forwards; }
  .touch .overlay.closing .modal { animation: tdown .18s cubic-bezier(.4, 0, 1, 1) forwards; }
  @keyframes tfade { from { opacity: 0; } }
  @keyframes tfadeout { to { opacity: 0; } }
  @keyframes tup { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes tdown { to { transform: translateY(100%); } }
  @media (min-width: 621px) { @keyframes tup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } } @keyframes tdown { to { transform: translateY(30px); opacity: 0; } } }
  /* pages: the new page simply fades in. No sideways slide, so nothing jumps under the finger */
  .touch .enter > * { animation: none !important; }
  @keyframes tpage { from { opacity: 0; } }
}
.touch .main > *, .touch .ph-body > * { transition: none; }
.touch .rv { opacity: 1; transform: none; }
/* no text selection or long-press menus on controls: it should feel like an app, not a web page */
button, .nav, .card[data-a], label.btn, .ph-tabs, .rail { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---- Customer app ---- */
.chero .l { font-size: 13px; color: var(--muted); }
.chero .v { font-family: var(--display, inherit); font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 8px; }
.crow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.crow:first-of-type { border-top: 0; }
.crow > span { min-width: 0; }
.cq { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cq:first-child { border-top: 0; }
.cline { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.cline > img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--track); }
.cline .meter { margin: 6px 0 4px; }
.cbill header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cbill details { margin-top: 6px; }
.bankbox { background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px 10px; margin: 8px 0; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.catcard .catpic { padding: 0; border: 0; background: none; }
.catcard > .btn { margin-top: 2px; }
.cphone .ph-head .logo { width: 34px; height: 34px; border-radius: 10px; }
.langseg { flex: none; }
.pblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px 10px; margin: 6px 0; }
.pblock > div { display: flex; flex-direction: column; min-width: 0; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 12px; padding: 6px 9px; }
.pblock small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.pblock b { font-size: 15px; white-space: nowrap; }
.pblock em { font-style: normal; font-size: 11px; color: var(--muted); }
.pblock.sm { grid-template-columns: 1fr 1fr; gap: 5px; }
.pblock.sm > div { padding: 4px 7px; }
.pblock.sm b { font-size: 13px; }
.pblock.dark > div { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.pblock.dark small, .pblock.dark em { color: rgba(255, 255, 255, .75); }

/* ---- App lock and confirm ---- */
/* locked: the app is simply hidden (a blur over the whole app was slow on phones) */
html.shield #app, html.shield #modalRoot { visibility: hidden; }
#lockScreen, #guard { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 38%, #5A3417, #2C1A0E 72%); }
#guard { animation: tfade .12s ease-out; }
#guard { z-index: 130; background: rgba(28, 16, 7, .55); }
#lockScreen.out { opacity: 0; transition: opacity .12s; pointer-events: none; }
.lockcard { width: min(360px, 100%); background: #FFF8EF; color: var(--ink); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lockcard .btn { width: 100%; }
.lockcard form { width: 100%; }

/* ---- The business name stays at the top while the home page scrolls ---- */
.main > .roomtitle.stick { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 26; align-self: flex-start; pointer-events: auto; margin-bottom: -4px; }
.showroom { height: calc(53vh - 112px); min-height: 170px; }
.showroom .arrangebtn { margin-left: auto; }
@media (max-width: 860px) { .showroom { height: calc(34vh - 58px); min-height: 120px; } }
/* phone apps: only the inside of the app scrolls, so the header with the name never moves */
html.phoneapp, html.phoneapp body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* a larger logo */
.logo { width: 42px; height: 42px; border-radius: 12px; }
.brand .logo { width: 52px; height: 52px; border-radius: 15px; }
.roomtitle .logo { width: 46px; height: 46px; border-radius: 13px; }
.logo.big { width: 72px; height: 72px; border-radius: 18px; }
.cphone .ph-head .logo, .ph-head .logo { width: 44px; height: 44px; border-radius: 12px; }
.haslogo { object-fit: contain; background: #fff; padding: 2px; }
@media (max-width: 620px) { .roomtitle .logo { width: 40px; height: 40px; } }

/* ---- Photo editor ---- */
#pedit { position: fixed; inset: 0; z-index: 128; display: grid; place-items: center; padding: 14px; background: rgba(20, 11, 4, .72); opacity: 0; transition: opacity .18s; }
#pedit.on { opacity: 1; } #pedit.out { opacity: 0; }
.pe-card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; background: #FFF8EF; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pe-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; touch-action: none; }
.pe-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.pe-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 33%, rgba(0, 0, 0, .12) 33.2%, transparent 33.6%, transparent 66.4%, rgba(0, 0, 0, .12) 66.6%, transparent 67%), linear-gradient(transparent 33%, rgba(0, 0, 0, .12) 33.2%, transparent 33.6%, transparent 66.4%, rgba(0, 0, 0, .12) 66.6%, transparent 67%); }
.pe-card input[type=range] { width: 100%; }
.picklist { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.picklist button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); }
/* phones: two items side by side, so the list is short and every photo sits in the same square frame */
@media (max-width: 620px) {
  .itemgrid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .itemcard { padding: 7px; border-radius: 18px; gap: 6px; }
  .itemcard img { border-radius: 12px; }
  .itemcard .bd { padding: 2px 3px 4px; gap: 4px; font-size: 13px; }
  .itemcard .pblock.sm { grid-template-columns: 1fr; }
  .itemcard .pblock em { display: none; }
}

/* ---- Round logo with a soft 3D look: a light rim, a shine on top, a shadow under ---- */
.logo { border-radius: 50% !important; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 2px rgba(255, 236, 210, .9), 0 0 0 3.5px rgba(150, 82, 30, .55), 0 8px 18px rgba(60, 28, 6, .45), inset 0 -6px 10px rgba(120, 50, 0, .35), inset 0 4px 8px rgba(255, 255, 255, .45); }
.logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 70% at 50% -5%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 52%), radial-gradient(90% 60% at 50% 115%, rgba(0, 0, 0, .22), transparent 60%); }
.logo.haslogo { background: #fff; padding: 0; }
.logo.haslogo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; position: relative; z-index: 1; }
.logo svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.line .frl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: -2px 0 4px; }
.line .frl input, .line .frl .cf { width: 70px; padding: 6px 8px; }

/* typing boxes on Android (see field.js) */
.cf { display: block; min-height: 2.45em; line-height: 1.45; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: text; -webkit-user-select: text; user-select: text; text-align: left; }
.cf::-webkit-scrollbar { display: none; }
.cf:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.cf.num { font-variant-numeric: tabular-nums; }
.cf.bad { border-color: var(--bad, #C2410C) !important; outline: 1px solid var(--bad, #C2410C); }
.cf[contenteditable=false] { opacity: .6; }
.cf-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cf-sug button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 14px; }

.savedok { background: #E7F6EC; color: #1E6B3A; border: 1px solid #BFE5CB; border-radius: 12px; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.savedok.pop { animation: okpop .32s ease-out; }
@keyframes okpop { from { transform: scale(.96); opacity: .3; } }

/* keyboard open: the bottom menu bar of the phone app steps aside so the boxes have room */
html.kbopen .ph-tabs { display: none; }

/* phone app header: warm, clear, two rows so nothing is squeezed */
.phone .ph-head, .touch .phone .ph-head { display: block; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 190, 110, .35), transparent 55%), linear-gradient(135deg, #5B2D0E 0%, #8C4517 48%, #C9661F 100%); color: #FFF7EC; padding: 12px 14px 12px; border-radius: 0 0 22px 22px; box-shadow: 0 10px 26px rgba(70, 32, 8, .28); position: relative; z-index: 2; backdrop-filter: none; -webkit-backdrop-filter: none; }
.real .phone .ph-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.hd-top { display: flex; align-items: center; gap: 11px; }
.hd-top .av { width: 44px; height: 44px; font-size: 16px; background: #FFE3BF; color: #6A3412; box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .85), 0 6px 14px rgba(0, 0, 0, .25); flex: none; }
.cphone .hd-top .logo { width: 44px; height: 44px; }
.hd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.hd-hi { font-size: 12px; opacity: .85; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-who b { font-size: 18px; font-family: 'Bricolage Grotesque', var(--font, sans-serif); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-head .net { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 7px 10px; border-radius: 99px; color: #fff; }
.ph-head .net .nettxt { display: inline; font-size: 12px; }
.hd-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hd-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: rgba(0, 0, 0, .16); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.hd-date svg, .hd-owner svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-owner { display: inline-flex; align-items: center; gap: 6px; border: 0; background: linear-gradient(180deg, #FFE2A8, #F6B85A); color: #4A2309; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); white-space: nowrap; }
.langsw { margin-left: auto; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; padding: 3px; }
.langsw-k { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: #FFF7EC; border-radius: 99px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, .7, .3, 1); }
.langsw button { position: relative; border: 0; background: none; color: #FFF1DE; font-size: 12.5px; font-weight: 650; padding: 5px 12px; border-radius: 99px; min-width: 64px; }
.langsw button.on { color: #5B2D0E; }

/* customer quick look, opened under the name */
.cr[aria-expanded=true] { background: var(--surface2, rgba(255, 240, 220, .6)); border-radius: 12px 12px 0 0; }
.peek { background: rgba(255, 250, 243, .96); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 10px 12px 12px; margin-bottom: 8px; animation: pkin .2s ease-out; transform-origin: top; }
.peek.shut { animation: pkout .15s ease-in forwards; }
@keyframes pkin { from { opacity: 0; transform: translateY(-6px); } }
@keyframes pkout { to { opacity: 0; transform: translateY(-6px); } }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.pk-kv { background: #fff; border: 1px solid var(--grid, #eee); border-radius: 10px; padding: 6px 9px; display: flex; flex-direction: column; }
.pk-kv span { font-size: 11.5px; color: var(--muted); }
.pk-kv b { font-size: 14.5px; }
.pk-kv.bad b { color: #B4380C; } .pk-kv.good b { color: #1E6B3A; }
.peek h4 { margin: 10px 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pk-bill { border-bottom: 1px dashed var(--grid, #e6dccf); padding: 5px 0; }
.pk-row { display: flex; gap: 8px; align-items: baseline; }
.pk-row > :last-child, .pk-amt { margin-left: auto; }
.pk-free { color: #1E6B3A; font-weight: 600; }
.pk-addr { margin: 6px 0 0; }
.pk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pk-acts a.btn { text-decoration: none; }

.stocktbl .thumb { width: 56px; height: 56px; border-radius: 12px; }
.stocktbl td { vertical-align: middle; }
.help summary { cursor: pointer; list-style: none; }
.help summary::-webkit-details-marker { display: none; }
.help summary::before { content: '▸ '; } .help[open] summary::before { content: '▾ '; }
.helplist { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* Phones: calm, iPhone-like touch. Nothing lifts, grows or bounces; what you press dims and sinks a little. */
.touch .btn, .touch .nav, .touch .seg button, .touch .itemcard, .touch .alert, .touch .cr, .touch .tile.card, .touch button.card, .touch tr.click, .touch .ph-tabs button, .touch .lineitem, .touch .roomtitle, .touch .brand, .touch .bill { transition: transform .18s ease-out, opacity .18s ease-out, background-color .18s ease-out !important; }
.press { transform: scale(.97) !important; opacity: .8; transition-duration: .07s !important; }
.cr.press, tr.press, .list > .press { transform: none !important; opacity: 1; background-color: rgba(140, 80, 25, .1) !important; }
.ph-tabs button.press { transform: scale(.94) !important; opacity: .9; }
.touch .btn:active { transform: none; }
/* long lists: rows off the screen are not drawn until they come near, so long lists scroll and open fast */
.list > .cr { content-visibility: auto; contain-intrinsic-size: auto 64px; }
/* the soft cross-fade between screens */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

.chgsum { background: #FFF6E8; border: 1px solid #F1D9B5; border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.chgsum .bad { color: #B4380C; font-weight: 600; }
.pendbox { display: block; }
.pendrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid rgba(0, 60, 120, .12); padding-top: 6px; margin-top: 6px; }
.pendrow > span:first-child { flex: 1; min-width: 160px; }

/* ---------- map and route ---------- */
.mapslot { position: relative; height: min(52vh, 560px); min-height: 300px; border-radius: 16px; overflow: hidden; margin: 10px 0 6px; background: #E8E2D6; border: 1px solid var(--line); }
.mapslot.big { height: min(66vh, 760px); }
.maphost { position: absolute; inset: 0; }
.maphost.picking, .maphost.picking .leaflet-interactive { cursor: crosshair; }
.leaflet-container { font: inherit; background: #E8E2D6; }
.pin { position: relative; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); border: 2px solid #fff; background: #8A8A8A; }
.pin b { transform: rotate(45deg); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1; }
.st-due { background: #D9480F; } .st-paid { background: #1E8A4C; } .st-visited { background: #E8A100; } .st-order { background: #1D6FE8; } .st-billed { background: #8E3FB8; } .st-owes { background: #9A6B44; } .st-none { background: #9E9E9E; }
.pinlbl { background: rgba(255, 255, 255, .92); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; font-weight: 600; color: #3A2412; display: none; }
.pinlbl::before { display: none; }
.maphost.zhi .pinlbl { display: block; }
.mdot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .4); }
.mdot.start { background: #111; } .mdot.shop { background: #B5561A; width: 18px; height: 18px; }
.mlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.mlegend span { display: inline-flex; align-items: center; gap: 5px; }
.pin-s { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.routebar { background: #FFF6E8; border: 1px solid #F1D9B5; border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.stop { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--grid, #eee); }
.stop.next { background: #FFF6E8; border-radius: 12px; padding: 9px 8px; }
.stop.done { opacity: .7; }
.stop-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stop-b b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-a { display: flex; gap: 6px; }
.stop-a a.btn { text-decoration: none; }
.pin-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.hpop { display: grid; gap: 4px; min-width: 220px; }
.hpop .pk-acts { margin-top: 4px; }
.hpop a.btn { text-decoration: none; color: inherit; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.chip { display: inline-block; color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.placeline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; font-size: 13.5px; }
.placeline a.btn { text-decoration: none; }
.geochk { gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.btn.wide { width: 100%; margin-top: 10px; justify-content: center; }

/* phones: the new screen fades in (opacity only, done by the graphics chip) */
.fadein { animation: fadein .14s ease-out; }
@keyframes fadein { from { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .fadein { animation: none; } }
/* cards further down the page are laid out only when they come near the screen: pages open faster on phones */
.touch .ph-body > section.card:nth-child(n+3), .touch .main > section.card:nth-child(n+3) { content-visibility: auto; contain-intrinsic-size: auto 360px; }
.touch .ph-body > section.mapcard, .touch .main > section.mapcard { content-visibility: visible; }
.maplayers { margin-top: 8px; }
.maphost.gmap .leaflet-control-attribution { font-size: 10px; }
.glogo { font-weight: 700; letter-spacing: .01em; color: #444; }
.pin.st-edit { background: #111; width: 34px; height: 34px; }
.editbar { position: sticky; top: 0; z-index: 5; }

/* Leaflet 1.9.4 */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
