/* Live prototype — member surface layout (header status, side panel, sheets) on top of the brand tokens in styles.css */
body{padding:0 0 30px}

/* frame */
.frame{margin:18px auto 0;background:var(--panel);border:1px solid var(--line);border-radius:25px;overflow:hidden;box-shadow:var(--shadow);
  display:flex;flex-direction:column;height:min(880px,88vh);position:relative;width:100%}
.frame{max-width:1180px}

/* header */
.appbar{flex:0 0 auto}
.hdr-r{display:flex;align-items:center;gap:8px}
.status{font:inherit;font-family:var(--font-head);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--ink);background:var(--teal);border:0;padding:5px 11px;border-radius:999px;cursor:pointer;white-space:nowrap}
.status.free{background:var(--cream);color:var(--ink)}
.status.last{background:var(--gold);color:var(--ink)}
.status.expired{background:#fff;color:var(--ink)}

/* layout */
.layout{flex:1 1 auto;display:flex;min-height:0}
.layout[hidden]{display:none}
.thread-col{flex:1 1 auto;display:flex;flex-direction:column;min-width:0;min-height:0}
#thread{flex:1 1 auto;overflow-y:auto;padding:14px 14px 6px}
.lrow{display:flex;gap:8px;align-items:flex-start;margin-bottom:10px}
.lrow img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 30px;border:2px solid var(--teal);margin-top:6px}
.lrow .bubble{margin-bottom:0}
.lrow .stack{max-width:92%;min-width:0}
.lrow .stack .bubble{max-width:none;white-space:pre-line}
.lrow .stack .card{margin-top:8px}
.bubble .opts{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0 2px}
.bubble .say{white-space:pre-line}
.opts .choice{font-family:var(--font);font-size:13.5px;font-weight:600;color:var(--ink);background:#fff;border:1.5px solid var(--teal);border-radius:999px;padding:7px 13px;cursor:pointer;box-shadow:0 1px 2px rgba(20,43,51,.06)}
.opts .choice:hover{background:var(--mint)}
#choices{padding:0 14px 8px;display:flex;flex-wrap:wrap;gap:8px}
#choices .btn{width:auto;margin:0;padding:8px 12px;font-size:13.5px}
.composer{display:flex;align-items:center;gap:8px;margin:0 12px 12px;flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:6px 6px 6px 14px;background:var(--panel)}
.composer input,.composer textarea{flex:1;border:0;background:none;font:inherit;font-size:14px;color:var(--ink);outline:none;min-width:0;resize:none;line-height:1.4;max-height:120px;overflow-y:auto;padding:6px 0}
.composer{align-items:flex-end}
.bubble strong{font-weight:700}
.mic{width:34px;height:34px;border-radius:50%;border:0;background:var(--orange);color:#fff;font-weight:700;cursor:pointer}

/* side panel */
.panel{flex:0 0 420px;border-left:1px solid var(--line);background:#fbfdfc;display:flex;flex-direction:column;min-height:0}
@media (max-width:1000px){.panel{flex-basis:340px}}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 8px}
.panel-head h3{margin:0;font-size:16px;font-weight:800}
.panel-head .x{font:inherit;font-size:12.5px;background:none;border:1px solid var(--line);border-radius:999px;padding:4px 10px;cursor:pointer;color:var(--muted)}
.tabs{display:flex;gap:4px;padding:4px 12px 8px;overflow-x:auto;align-items:center;flex:0 0 auto}
.tabs button{font:inherit;font-size:12.5px;border:0;background:none;color:var(--muted);padding:6px 11px;border-radius:999px;cursor:pointer;white-space:nowrap}
.tabs button.on{background:var(--ink);color:#fff;font-weight:600}
.panel-body{flex:1 1 auto;overflow-y:auto;padding:4px 14px 20px}

/* content */
.ph{font-family:var(--font-head);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:700;margin:14px 0 6px}
.sum{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center}
.sum .fig{font-size:22px;margin:0}
.item{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:13.5px;cursor:pointer}
.item:last-child{border-bottom:0}
.item .l{min-width:0}.item .l b{display:block;font-weight:600}.item .l span{color:var(--muted);font-size:12.5px}
.item .r{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
.state{display:inline-block;font-family:var(--font-head);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:2px 7px;border-radius:999px;margin-left:6px;vertical-align:middle}
.st-saved{color:var(--s-confirmed);background:var(--s-confirmed-bg)}
.st-pending{color:#7a5a00;background:#fff4d6}
.st-needs{color:var(--s-inferred);background:var(--s-inferred-bg)}
.st-failed,.st-dup{color:var(--s-missing);background:var(--s-missing-bg)}
.st-sim{color:#6b4a8f;background:#efe8f6}
.st-sent{color:var(--s-filed);background:var(--s-filed-bg)}
.kv{display:grid;grid-template-columns:120px 1fr;gap:4px 10px;font-size:13px;margin:8px 0}
.kv .k{color:var(--muted)}
.hist{font-size:12px;color:var(--muted);border-left:3px solid var(--line);padding-left:10px;margin:8px 0}
.hist div{margin-bottom:3px}
.seg{display:flex;gap:4px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:3px;width:max-content;margin:6px 0 10px}
.seg button{font:inherit;font-size:12px;border:0;background:none;color:var(--muted);padding:5px 12px;border-radius:999px;cursor:pointer}
.seg button.on{background:var(--ink);color:#fff;font-weight:600}
.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.doc{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.doc .ic{width:34px;height:40px;border-radius:6px;background:var(--cream);border:1px solid var(--line);flex:0 0 34px;display:grid;place-items:center;font-size:10px;color:var(--muted);font-weight:700}
.doc .m{flex:1;min-width:0}.doc .m b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc .m span{color:var(--muted);font-size:12px}
.act{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.act .btn{width:auto;margin:0;padding:8px 12px;font-size:13px}
.sim{font-size:11.5px;color:#6b4a8f;background:#efe8f6;border-radius:8px;padding:6px 9px;margin:8px 0 0}
.action{border-left:3px solid var(--teal)}
.action .steps{display:flex;gap:6px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin:4px 0 6px}
.action .steps span{border:1px solid var(--line);border-radius:999px;padding:2px 8px}
.action .steps span.done{border-color:var(--green);color:var(--green)}
.action .steps span.bad{border-color:var(--s-missing);color:var(--s-missing)}
.chk{display:flex;gap:8px;align-items:flex-start;font-size:13px;margin:6px 0}
.chk input{margin-top:3px}
.warn{font-size:12.5px;color:var(--s-missing);background:var(--s-missing-bg);border-radius:10px;padding:8px 10px;margin:8px 0}
.pkg{border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:8px 0;background:var(--panel)}
.pkg h6{margin:0 0 4px;font-size:12.5px;font-family:var(--font-head)}
.pkg ul{margin:0;padding-left:16px;font-size:12.5px}
.pkg li.ex{color:var(--faint);text-decoration:line-through}

/* sheet */
.sheet-wrap{position:absolute;inset:0;background:rgba(20,43,51,.45);display:flex;align-items:flex-end;justify-content:center;z-index:9}
.sheet-wrap{align-items:center}
.sheet{background:var(--panel);border-radius:22px 22px 0 0;padding:18px 18px 22px;width:100%;max-width:460px;max-height:85%;overflow-y:auto}
.sheet{border-radius:22px}
.sheet h4{margin:0 0 6px;font-size:17px;font-weight:800}
.sheet p{font-size:13.5px;color:var(--ink-soft);margin:0 0 8px}
.sheet .fig{font-size:26px}
.foot-note{text-align:center;font-size:11.5px;color:var(--faint);margin:10px 0 0}
.bar{margin:6px 0}.barlbl{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:3px}
.track{height:8px;background:var(--line-soft);border-radius:999px;overflow:hidden}.track i{display:block;height:100%;border-radius:999px}
.t-ink{background:var(--ink)}.t-tax{background:var(--orange)}.t-tax2{background:#f39a71}.t-opp{background:var(--teal)}
.progress i{display:block;height:100%;background:var(--teal);border-radius:999px}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-family:var(--font-head);font-weight:800}
.vcard{display:flex;gap:12px;align-items:flex-start}
@media (max-width:719px){
  .composer input,.composer textarea,.sheet input{font-size:16px} /* iOS Safari zooms on inputs under 16px */
  html{-webkit-text-size-adjust:100%}
  .panel{position:absolute;inset:0;top:52px;flex-basis:auto;border-left:0;z-index:5}
  .split{grid-template-columns:1fr}
  .frame{margin-top:8px;border-radius:0;height:calc(100vh - 110px)}
}

/* test controls (not in the real app) */
.tiers{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:6px 12px;border-bottom:1px dashed var(--line);background:#fbfdfc;flex:0 0 auto}
.tiers .tlabel{font-size:11px;color:var(--faint);font-style:italic}
.tiers button{font:inherit;font-size:11.5px;border:1px solid var(--line);background:none;color:var(--muted);padding:3px 9px;border-radius:20px;cursor:pointer}
.tiers button.on{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:600}
.tiers .sp{flex:1}
.tiers[hidden]{display:none}
#typing{padding:0 14px 6px;color:var(--faint);font-size:12.5px;font-style:italic}
#auth{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:28px 16px;background:var(--cream);overflow-y:auto}
#auth[hidden]{display:none}
.authcard{width:100%;max-width:380px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;box-shadow:var(--shadow)}
.authcard h2{margin:0 0 6px;font-size:19px}
.authnote{margin:0 0 16px;font-size:13px;color:var(--muted)}
.authcard label{display:block;font-size:12px;font-weight:600;color:var(--ink-soft);margin-bottom:3px}
.authcard input{width:100%;font:inherit;font-size:16px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;margin-bottom:12px;background:var(--panel);color:var(--ink)}
.authcard .btn{margin-top:4px}
.authcard .note.good{border-left-color:var(--green);color:var(--ink-soft)}
.authswitch{display:flex;flex-wrap:wrap;gap:4px 14px;margin:14px 0 0}
.authswitch button{background:none;border:0;padding:0;font:inherit;font-size:12.5px;color:var(--muted);text-decoration:underline;cursor:pointer}
.authswitch button:hover{color:var(--ink)}
#settings{padding:12px 14px;border-bottom:1px solid var(--line-soft);background:var(--mint);font-size:13px;flex:0 0 auto}
#settings input{width:100%;font:inherit;font-size:16px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;margin:4px 0 8px;background:var(--panel);color:var(--ink)}
.foot{font-size:11px;color:var(--faint);padding:0 14px 10px;display:flex;justify-content:space-between;gap:8px;flex:0 0 auto}
.foot button{font:inherit;font-size:11px;background:none;border:0;color:var(--faint);cursor:pointer;text-decoration:underline}
.composer input:disabled{color:var(--faint)}
@media (max-width:719px){.frame{margin-top:0;height:100dvh;height:100vh}}

/* tracker forms */
.sheet .fld{display:block;margin:8px 0}.sheet .fld span{display:block;font-size:12px;color:var(--mute,#5d6b68);margin-bottom:3px}.sheet .fld input,.sheet .fld select{width:100%;font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.sheet .err{color:#a12d2d;font-size:13px;min-height:1em;margin:4px 0}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}.tbl td{padding:6px 4px;border-bottom:1px solid var(--line);vertical-align:top}.tbl tr:last-child td{border-bottom:0}.tbl td.num{text-align:right;white-space:nowrap}.tbl td.note{font-size:12px;color:var(--mute,#5d6b68)}

/* Package names stay readable on a phone without pushing the score off screen. */
@media (max-width:719px){
  body{padding-bottom:0}
  .frame{height:100vh;height:100dvh}
  .appbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
  .appbar .who img.logo{width:92px;max-width:92px;height:auto}
  .hdr-r{display:contents}
  .status{justify-self:end;white-space:normal;text-align:center}
  .appbar .glovebox{grid-column:1 / -1;justify-self:end;max-width:100%}
  .panel{top:0}
}

/* Lucy on the Go activation */
.go-heading{display:flex;align-items:center;gap:14px;margin-bottom:24px}.go-heading img{width:56px;height:56px;object-fit:cover;border-radius:50%}.go-heading p{font-size:13px;margin:4px 0}.go-contact{display:grid;justify-items:center;gap:8px;text-align:center;padding:24px;border-radius:20px;background:#f2f7f6;margin:22px 0}.go-contact img{width:76px;height:76px;object-fit:cover;border-radius:50%}.go-contact span{font-size:13px}.go-access{border-top:1px solid #e3eceb;padding-top:16px;font-size:13px;color:var(--muted)}
#go-phone{display:block;width:100%;box-sizing:border-box;padding:14px;margin:8px 0;border:1px solid #cbd9d8;border-radius:12px;background:white;color:#172e36;font:inherit}#go-preview:disabled{opacity:.45;cursor:default;box-shadow:none}
