/* Luba AI web chat. The app's laws on the web: one family (Noto Sans Armenian; the wordmark is artwork), the type roles
   28/17/13/11 (commands 11/500 spaced capitals), Palette roles light and dark, Iconly glyphs, one left edge, air instead of frames. */
@font-face{font-family:"Luba Sans";src:url(fonts/NotoSansArmenian-variable.ttf) format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:"Luba Mark";src:url(fonts/CormorantGaramond-wght.ttf) format("truetype");font-weight:300 700;font-display:swap}
@font-face{font-family:"Luba By";src:url(fonts/PinyonScript-Regular.ttf) format("truetype");font-display:swap}
:root{--page:#F8F5F0;--fill:#EFEAE3;--surface:#FFFFFF;--text:#221D1B;--text2:#70665F;--text3:#B8AEA6;--line:#E6DFD7;--wine:#6B2333;
  --hero:#221D1B;--onhero:#F8F5F0;--accent:#A8875A;--ok:#3A775C;--shadow:rgba(34,29,27,.08);--scrim:rgba(0,0,0,.4)}
:root[data-theme=dark]{--page:#141110;--fill:#2A2522;--surface:#1E1A18;--text:#EDE6DE;--text2:#A89C93;--text3:#6E645D;--line:#332D29;--wine:#D9A3AE;
  --hero:#2E2826;--onhero:#EDE6DE;--accent:#D4BB8C;--ok:#7FC2A2;--shadow:rgba(0,0,0,.35);--scrim:rgba(0,0,0,.6)}
*{box-sizing:border-box;margin:0}
html,body{height:100%;background:var(--page);color:var(--text);font-family:"Luba Sans",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
svg.i{width:24px;height:24px;flex-shrink:0}
.title{font-size:28px;font-weight:200;line-height:1.18;letter-spacing:-.01em}
.main{font-size:17px;font-weight:300;line-height:1.35}
.second{font-size:13px;font-weight:300;line-height:1.45;color:var(--text2)}
.label{font-size:11px;font-weight:400;letter-spacing:.24em;text-transform:uppercase;color:var(--text2)}
.mark{font-family:"Luba Mark",serif;font-size:26px;font-weight:400;letter-spacing:.01em;white-space:nowrap}
.mark i{font-family:"Luba By",cursive;font-style:normal;color:var(--wine);font-size:30px;margin:0 2px}

/* three columns: history | conversation | her skin */
.shell{display:grid;grid-template-columns:288px minmax(0,1fr) 320px;height:100vh}
@media(max-width:1279px){.shell{grid-template-columns:272px minmax(0,1fr)}.side-right{display:none}}
@media(max-width:899px){.shell{grid-template-columns:minmax(0,1fr)}.side-left{display:none}.side-left.open{display:flex;position:fixed;inset:0 auto 0 0;width:300px;z-index:20;box-shadow:0 0 0 100vmax var(--scrim)}}

/* left: the app's menu, always open on a computer */
.side-left{display:flex;flex-direction:column;padding:24px 16px 16px;border-right:1px solid var(--line);min-height:0}
.side-left .mark{padding:0 12px 28px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav button{display:flex;align-items:center;gap:14px;min-height:44px;padding:0 12px;border-radius:12px;font-size:15px;font-weight:300;text-align:left}
.nav button:hover{background:var(--fill)}
.nav button.primary{background:var(--fill);font-weight:400}
.hist{margin-top:28px;overflow:auto;min-height:0;flex:1}
.hist .label{padding:16px 12px 6px}
.hist button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 12px;border-radius:12px;font-size:14px;font-weight:300;text-align:left;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.hist button svg{width:18px;height:18px;color:var(--text2)}
.hist button span{overflow:hidden;text-overflow:ellipsis}
.hist button:hover,.hist button.on{background:var(--fill)}
.me{display:flex;align-items:center;gap:12px;padding:12px;margin-top:8px;border-top:1px solid var(--line)}
.me .av{width:36px;height:36px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;font-size:13px}
.me .n{font-size:15px;font-weight:300}

/* centre: the conversation */
.chat{display:flex;flex-direction:column;min-width:0;min-height:0}
.top{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 24px}
.top .ib{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.top .ib:hover{background:var(--fill)}
.top .burger{display:none}
@media(max-width:899px){.top .burger{display:flex}}
.scroll{flex:1;overflow:auto;min-height:0}
.col{max-width:720px;margin:0 auto;padding:24px 28px 40px}
.hello{margin:40px 0 6px}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:32px 0 12px}
@media(max-width:599px){.cards{grid-template-columns:1fr}}
.card{display:flex;align-items:center;gap:16px;padding:20px;border-radius:24px;background:var(--surface);text-align:left;box-shadow:0 1px 2px var(--shadow)}
.card.hero{background:var(--hero);color:var(--onhero)}
.card .ic{width:56px;height:56px;border-radius:16px;background:var(--fill);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.card.hero .ic{background:rgba(248,245,240,.12)}
.card .t{font-size:17px;font-weight:400;line-height:1.3}
.card .s{font-size:13px;font-weight:300;line-height:1.4;margin-top:3px;opacity:.72}
.last{display:flex;align-items:center;gap:10px;margin:6px 4px 36px}
.last .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.last .open{margin-left:auto;font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase}
.ask{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.ask button{text-align:left;padding:16px 20px;border-radius:18px;background:var(--fill);font-size:15px;font-weight:300}
.ask button:hover{filter:brightness(.98)}
/* messages */
.msg{margin:22px 0}
.msg.me{display:flex;justify-content:flex-end}
.msg.me .b{max-width:78%;padding:12px 16px;border-radius:20px 20px 6px 20px;background:var(--fill);font-size:15px;font-weight:300;line-height:1.5}
.msg.luba .who{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.msg.luba .who b{font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase}
.msg.luba .b{font-size:15px;font-weight:300;line-height:1.65;max-width:640px}
.msg.luba .b p+p{margin-top:10px}
.photo{width:220px;border-radius:16px;display:block;margin-left:auto;margin-bottom:6px}
/* composer */
.compose{padding:0 28px 18px}
.box{max-width:720px;margin:0 auto;display:flex;align-items:flex-end;gap:8px;padding:8px;border-radius:28px;background:var(--surface);box-shadow:0 6px 28px var(--shadow)}
.box .round{width:44px;height:44px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.box textarea{flex:1;border:0;outline:none;resize:none;background:transparent;color:var(--text);font:300 16px/1.45 "Luba Sans",sans-serif;padding:11px 6px;max-height:180px;caret-color:var(--accent)}
.box textarea::placeholder{color:var(--text3)}
.box .send{background:var(--hero);color:var(--onhero)}
.note{max-width:720px;margin:10px auto 0;padding:0 8px;font-size:12px;font-weight:300;color:var(--text2)}

/* right: her skin at a glance (wide screens) */
.side-right{border-left:1px solid var(--line);padding:24px 20px;overflow:auto}
.portrait{border-radius:24px;overflow:hidden;background:var(--fill);aspect-ratio:4/5;position:relative;display:flex;align-items:flex-end;padding:16px}
.portrait .pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.92);color:#221D1B;font-size:13px;font-weight:400}
.section{margin-top:36px}
.section .head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.section .head:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
.row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .v{margin-left:auto;font-size:13px;font-weight:300;color:var(--text2)}
.wx{display:flex;align-items:baseline;gap:12px}
.wx .t{font-size:44px;font-weight:200;line-height:1}

/* phase 1: sign in, menu, photo, states */
[hidden]{display:none!important}
.card .s{display:block}
.ask-l{margin-top:28px}
.cmd{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:0 20px;border-radius:16px;background:var(--hero);color:var(--onhero);
  font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase}
.cmd.quiet{background:var(--fill);color:var(--text);margin-top:8px}
.sign{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px}
.sign-box{width:100%;max-width:380px}
.sign-box .mark{margin-bottom:56px}
.sign-box .title{margin-bottom:8px}
.gbtn{margin-top:32px;min-height:44px}
.gnote{margin-top:12px}
.or{display:flex;align-items:center;gap:12px;margin:24px 0;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--text2)}
.or:before,.or:after{content:"";flex:1;height:1px;background:var(--line)}
#login input{display:block;width:100%;height:52px;margin-bottom:10px;border:0;border-radius:6px;background:var(--fill);color:var(--text);
  font:300 16px "Luba Sans",sans-serif;padding:0 16px;outline:none;caret-color:var(--accent)}
#login input::placeholder{color:var(--text3)}
.err{font-size:13px;font-weight:300;color:var(--wine);margin:2px 0 10px}
.me{width:100%;text-align:left}
.me:hover{background:var(--fill);border-radius:12px}
.pop{position:absolute;left:16px;bottom:72px;width:256px;padding:16px;border-radius:20px;background:var(--surface);box-shadow:0 12px 40px var(--shadow);z-index:30}
.side-left{position:relative}
.pop .label{margin:4px 0 8px}
.langs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.langs button{padding:7px 12px;border-radius:999px;background:var(--fill);font-size:13px;font-weight:300}
.langs button.on{background:var(--hero);color:var(--onhero)}
.out{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 4px;font-size:15px;font-weight:300;border-top:1px solid var(--line);padding-top:8px}
.attach{max-width:720px;margin:0 auto 8px;position:relative;width:96px}
.attach img{width:96px;height:96px;object-fit:cover;border-radius:16px;display:block}
.attach .x{position:absolute;top:-6px;right:-6px;width:28px;height:28px;border-radius:50%;background:var(--surface);box-shadow:0 2px 8px var(--shadow);display:flex;align-items:center;justify-content:center}
.attach .x svg{width:16px;height:16px}
.box .send:disabled{background:var(--fill);color:var(--text3);cursor:default}
.msg.me{flex-direction:column;align-items:flex-end}
.photo{max-width:260px;border-radius:16px;margin-bottom:6px}
.pcard{display:inline-flex;align-items:center;gap:14px;padding:14px 18px;border-radius:18px;background:var(--surface);box-shadow:0 1px 2px var(--shadow)}
.pcard>span{display:flex;flex-direction:column;gap:2px}
.thinking{color:var(--text2)}
.dots{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}
.dots i{width:5px;height:5px;border-radius:50%;background:var(--text3);animation:dot 1.2s infinite}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
.msg.err{display:flex;align-items:center;gap:10px}
.link{font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--text)}
.portrait.has{background-size:cover;background-position:center 30%}
.scrim{position:fixed;inset:0;background:var(--scrim);display:flex;align-items:center;justify-content:center;padding:24px;z-index:40}
.dialog{width:100%;max-width:420px;background:var(--surface);border-radius:28px;padding:28px 24px 20px}
.dialog .main{margin:12px 0 22px}
.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);padding:12px 18px;border-radius:999px;background:var(--hero);color:var(--onhero);font-size:13px;font-weight:300;z-index:50}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* the main command as in the app (Luxe.primary): ink on the page, so it stays the strongest thing in dark mode too */
.cmd,.box .send{background:var(--text);color:var(--page)}
.langs button.on{background:var(--text);color:var(--page)}
.msg.luba .b ul{margin:8px 0 10px;padding-left:20px}
.msg.luba .b li{margin:4px 0}
.msg.luba .b p+p{margin-top:10px}
.msg.luba .b b{font-weight:500}
/* responsive rules last, so they win over the column definitions above */
@media(max-width:1279px){.shell{grid-template-columns:272px minmax(0,1fr)}.side-right{display:none}}
@media(max-width:899px){.shell{grid-template-columns:minmax(0,1fr)}.side-left{display:none}
  .side-left.open{display:flex;position:fixed;inset:0 auto 0 0;width:300px;z-index:20;background:var(--page);box-shadow:0 0 0 100vmax var(--scrim)}
  .top{padding:0 12px}.col{padding:16px 20px 32px}.compose{padding:0 12px 12px}.hello{margin-top:16px}}

/* phase 2: the logo (the app-icon lockup), the first questions, settings */
.mark.logo{display:block;height:auto}
.mark.logo svg{display:block;height:46px;width:auto}
.side-left .mark.logo svg{height:42px}
.mark.logo .lw{fill:var(--text)}
.mark.logo .lb{fill:var(--wine)}
.ob{position:fixed;inset:0;z-index:35;background:var(--page);display:flex;flex-direction:column}
.ob-top{display:flex;align-items:center;gap:12px;height:64px;padding:0 16px;max-width:760px;width:100%;margin:0 auto}
.ob-top .ib{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.ob-top .ib:hover{background:var(--fill)}
.ob-bar{flex:1;height:3px;border-radius:3px;background:var(--line);overflow:hidden}
.ob-bar i{display:block;height:100%;background:var(--accent);border-radius:3px;transition:width .3s}
.ob-body{flex:1;overflow:auto}
.ob-col{max-width:640px;margin:0 auto;padding:12px 28px 24px}
.ob-col .title{margin:10px 0 8px}
.ob-l{margin-top:28px;color:var(--accent)}
.ob-why{margin-top:8px}
.ob-band{width:100%;max-height:180px;object-fit:contain;margin:4px 0 8px;border-radius:20px;background:var(--surface)}
.ob-rows{display:flex;flex-direction:column;margin-top:18px;border-top:1px solid var(--line)}
.ob-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:10px 4px;border-bottom:1px solid var(--line);text-align:left;font-size:17px;font-weight:300}
.ob-mark{width:22px;height:22px;flex-shrink:0;border:1.5px solid var(--text3);position:relative}
.ob-mark.dot{border-radius:50%}.ob-mark.box{border-radius:6px}
.on>.ob-mark{border-color:var(--accent);background:var(--accent)}
.on>.ob-mark:after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid var(--page);border-width:0 2px 2px 0;transform:rotate(45deg)}
.ob-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{padding:10px 16px;border-radius:999px;background:var(--fill);font-size:15px;font-weight:300}
.chip.on{background:var(--text);color:var(--page)}
.ob-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:18px}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 10px 14px;border-radius:20px;background:var(--surface);font-size:14px;font-weight:300;text-align:center;box-shadow:0 1px 2px var(--shadow)}
.tile img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:14px;background:#FFFFFF}
.tile .ob-mark{position:absolute;top:10px;right:10px;background:var(--surface)}
.tile.on{box-shadow:0 0 0 2px var(--accent)}
.tile .badge{position:absolute;top:10px;left:10px;min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:var(--page);font-size:11px;font-weight:500;display:flex;align-items:center;justify-content:center}
.ob-field{display:block;width:100%;height:52px;margin-top:14px;border:0;border-radius:6px;background:var(--fill);color:var(--text);font:300 16px "Luba Sans",sans-serif;padding:0 16px;outline:none;caret-color:var(--accent)}
.ob-gap{height:34px}
.ob-stop{padding-top:40px}
.ob-stop .main{margin-top:12px}
.ob-foot{padding:12px 0 18px;border-top:1px solid var(--line)}
.ob-foot .ob-col{padding-top:0;padding-bottom:0}
.cmd:disabled{opacity:.35;cursor:default}
.ob-welcome{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden}
.ob-welcome img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.ob-welcome:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,var(--page) 78%)}
.ob-wtext{position:relative;z-index:1;width:100%;max-width:520px;padding:0 28px 40px}
.ob-wtext .second{margin:10px 0 24px}
.switch{width:44px;height:26px;border-radius:13px;background:var(--line);position:relative;flex-shrink:0}
.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);transition:transform .2s;box-shadow:0 1px 3px var(--shadow)}
.switch[aria-checked=true]{background:var(--text)}.switch[aria-checked=true]:after{transform:translateX(18px)}
.dialog.mem{max-width:520px;max-height:80vh;overflow:auto}
.mem-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cmd.danger{background:var(--wine);color:#FFFFFF}
/* the chosen mark (owner 2026-11-23: "the square is in one place and the check in another"): the box fills with the accent and the
   Iconly check sits exactly in its centre, on rows and on tiles alike */
.ob-mark{display:flex;align-items:center;justify-content:center}
.ob-mark:after{content:none}
.on>.ob-mark,.tile.on>.ob-mark{border-color:var(--accent);background:var(--accent)}
.on>.ob-mark:after,.tile.on>.ob-mark:after{content:"";position:static;width:14px;height:14px;border:0;transform:none;background:var(--page);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 7.1875L9.375 16.8125L5 12.4375' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 7.1875L9.375 16.8125L5 12.4375' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* owner 2026-11-23 ("the squares are uneven"): every row spans the full width, so every mark sits on one right edge */
.ob-row{width:100%;box-sizing:border-box}
.ob-row>span{flex:1;min-width:0}
.ob-row>.ob-mark{margin-left:auto}
.ob-mark{box-shadow:none}
.on>.ob-mark:after,.tile.on>.ob-mark:after{flex:0 0 14px;min-width:14px}
.mark.logo svg{height:64px}
.side-left .mark.logo svg{height:58px}
.sign-box .mark.logo svg{height:72px}
.portrait.empty{aspect-ratio:auto;background:none;padding:0;min-height:0}
/* owner 2026-11-23 (second report): a clearly readable check, the same on tiles and rows */
.ob-mark{width:24px;height:24px}
.on>.ob-mark:after,.tile.on>.ob-mark:after{flex:0 0 16px;width:16px;height:16px;min-width:16px}
/* owner 2026-11-23: the logo on one line, all three words side by side, exactly the app's wordmark (Luxe.wordmark) */
.mark.logo svg{display:none}
.wm{font-family:"Luba Mark",serif;font-weight:500;font-size:30px;line-height:1;color:var(--text);white-space:nowrap;letter-spacing:0}
.wm i{font-family:"Luba By",cursive;font-style:normal;font-weight:400;font-size:1.22em;color:var(--wine)}
.side-left .wm{font-size:26px}
.sign-box .wm{font-size:34px}
/* owner 2026-11-23: the app's one-line wordmark as outlines (tools/wordmark.py from Cormorant Garamond 500 and Pinyon Script), so the
   script "by" never falls back to another font in any browser */
.mark.logo svg{display:block;width:auto;height:38px}
.side-left .mark.logo svg{height:34px}
.sign-box .mark.logo svg{height:44px}
.mark.logo .lw{fill:var(--text)}
.mark.logo .lb{fill:var(--wine)}
/* go-live: sign-up */
#reg input[type=text],#reg input[type=email],#reg input[type=password]{display:block;width:100%;height:52px;margin-bottom:10px;border:0;border-radius:6px;background:var(--fill);color:var(--text);
  font:300 16px "Luba Sans",sans-serif;padding:0 16px;outline:none;caret-color:var(--accent)}
#reg input::placeholder{color:var(--text3)}
.consent{display:flex;gap:12px;align-items:flex-start;margin:6px 0 14px;font-size:13px;font-weight:300;line-height:1.45;color:var(--text2);cursor:pointer}
.consent input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent);flex-shrink:0}
.swap{display:block;margin:18px auto 0;font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--text)}
/* go-live: the welcome uses our own line art (the reference photo's rights are not cleared) */
.ob-welcome.art{justify-content:center;gap:8px}
.ob-welcome.art img{position:static;width:min(320px,70vw);height:auto;aspect-ratio:1;object-fit:contain;border-radius:28px;background:#FFFFFF;margin:0 auto}
.ob-welcome.art:after{content:none}
.ob-welcome.art .ob-wtext{padding-top:28px;text-align:left}
/* inside the Move to Beauty shop's side panel (?embed=1, about 420px): no theme switch in the bar, one close button top right */
.embed-x{position:fixed;top:10px;right:12px;z-index:40;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--page);color:var(--text)}
.embed-x:hover{background:var(--fill)}
.embed-x[hidden]{display:none}
.embed .top #theme{visibility:hidden}
.embed .top{height:64px;padding:0 12px}
