:root { --blue:#2563eb; --blue2:#3b82f6; --ink:#1f2937; --mut:#6b7280; --bg:#fbfbfb; --card:#fff; --line:#e5e7eb; }
* { box-sizing:border-box; margin:0; font-family:-apple-system,'Segoe UI',system-ui,sans-serif; }
body { background:var(--bg); color:var(--ink); }
.hidden { display:none !important; }
a.blue, .blue { color:var(--blue); cursor:pointer; text-decoration:none; }
.muted { color:var(--mut); }

/* home */
.home { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.logo { font-weight:700; font-size:44px; letter-spacing:-1px; }
.logo span:nth-child(1), .logo span:nth-child(4) { color:#2563eb; }
.logo span:nth-child(2) { color:#dc2626; } .logo .z { color:#f59e0b; }
.ai-sub { font-size:12px; color:#2563eb; font-weight:700; }
.home-center { transform:translateY(-60px); text-align:center; }
.tagline { color:#374151; margin-top:10px; font-size:18px; }
.home-bar { position:fixed; left:20px; right:20px; bottom:22px; display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--line); border-radius:999px; padding:12px 16px; box-shadow:0 4px 14px rgba(0,0,0,.05); }
.home-bar input { flex:1; border:0; outline:0; font-size:16px; }
.mag { width:20px; height:20px; stroke:#9ca3af; fill:none; stroke-width:2; }
.go { width:36px; height:36px; border-radius:50%; border:0; background:var(--blue); color:#fff; font-size:18px; cursor:pointer; }
.maze-badge { position:fixed; left:12px; bottom:70px; background:#111; color:#fff; padding:8px 12px; border-radius:8px; text-decoration:none; font-size:14px; }
.maze-badge b { color:var(--blue2); }

/* header */
.hdr { display:flex; align-items:center; gap:10px; padding:14px 16px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.logo-hdr { font-size:22px; color:#111; text-decoration:none; font-weight:700; }
.ai-blue { color:var(--blue2); }
.authlabel { color:var(--mut); margin-left:auto; }
.pill { border:1px solid var(--line); background:#fff; padding:9px 16px; border-radius:999px; font-weight:600; cursor:pointer; font-size:14px; }
.pillblue { border:0; background:var(--blue); color:#fff; padding:9px 18px; border-radius:999px; font-weight:700; cursor:pointer; font-size:14px; }
.copybtn { margin-left:auto; }

/* search + tabs */
.gsearch { display:flex; gap:10px; margin:12px 16px 0; background:#fff; border:1px solid #c7d6f5; border-radius:999px; padding:12px 16px; }
.gsearch input { flex:1; border:0; outline:0; font-size:16px; background:transparent; }
.tabs { display:flex; gap:8px; margin:12px 16px; overflow-x:auto; padding-bottom:4px; }
.tabs::-webkit-scrollbar { display:none; }
.tabs button { flex:0 0 auto; }
.tabs .pill { background:#f3f4f6; }
.tabs .pill.on { background:var(--blue); color:#fff; border-color:var(--blue); position:relative; }
.tabs .pill.on::after { content:''; position:absolute; top:2px; right:2px; width:6px; height:6px; border-radius:50%; background:#f59e0b; }

.main { max-width:760px; margin:0 auto; padding:8px 16px 90px; }
.secttitle { text-align:center; font-size:13px; letter-spacing:2px; color:#4b5563; margin:14px 0; font-weight:600; }

/* cards */
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:14px; }
.center-card { text-align:center; padding:34px 18px; }
.bigemoji { font-size:44px; }
.center-card p { color:var(--but, #374151); margin:8px 0 14px; }
.btnblue { background:var(--blue); color:#fff; border:0; border-radius:12px; padding:12px 20px; font-weight:700; cursor:pointer; font-size:15px; }
.btnblue.wide { width:100%; border-radius:999px; padding:13px; }
.fulloutline { width:calc(100% - 0px); margin:0 0 14px; border:1px solid #d8dde6; background:#fff; border-radius:999px; padding:12px; font-weight:600; cursor:pointer; }

/* feed */
.masonry { column-count:2; column-gap:12px; }
.masonry img { width:100%; border-radius:12px; margin-bottom:12px; display:block; cursor:pointer; }

/* chats/calls rows */
.rowcard { padding:4px 14px; }
.row { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.row:last-child { border-bottom:0; }
.rowmain { flex:1; min-width:0; }
.rowname { font-weight:700; font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rowsub { color:#374151; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px; margin-top:2px; }
.rowright { text-align:right; font-size:13px; color:#4b5563; }
.callbtn { background:#e7f0ea; border-radius:10px; padding:8px 10px; font-size:16px; cursor:pointer; }
.badge { font-size:11px; font-weight:600; padding:3px 8px; border-radius:6px; margin-left:6px; }
.badge.mobile { background:#e8effd; color:#2563eb; }
.badge.tollfree { background:#e7f3ea; color:#15803d; }
.dirin { color:#15803d; font-weight:700; } .dirout { color:#2563eb; font-weight:700; } .dirmissed { color:#dc2626; font-weight:700; }
.missedname { color:#111; }
.nickname { color:#dc2626; font-weight:600; margin-top:2px; }

/* avatars */
.avatar { width:46px; height:46px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:0 0 auto; font-size:15px; }
.av-gray { background:#6b7280; } .av-blue { background:var(--blue); } .av-purple { background:#7c3aed; } .av-green { background:#059669; } .av-red { background:#dc2626; }
.m-avatar { background:#0f766e; width:26px; height:26px; font-size:12px; }

/* conversation */
.convcard { padding:12px; }
.convhdr { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:10px; }
.msgs { max-height:240px; overflow-y:auto; }
.bubble { max-width:70%; padding:9px 12px; border-radius:14px; margin:6px 0; font-size:15px; background:#f3f4f6; }
.bubble.me { background:var(--blue); color:#fff; margin-left:auto; }
.bubt { font-size:10px; opacity:.7; margin-top:3px; }
.convform { display:flex; gap:8px; margin-top:10px; }
.convform input { flex:1; border:1px solid var(--line); border-radius:999px; padding:10px 14px; outline:0; }

/* calls header */
.idbubble { display:flex; align-items:center; gap:12px; background:#eaf1fe; border:1px solid #c7d6f5; border-radius:16px; padding:14px; margin-bottom:10px; }
.idico { width:40px; height:40px; border-radius:50%; background:var(--blue); display:flex; align-items:center; justify-content:center; font-size:18px; }
.smalllabel { font-size:11px; letter-spacing:1px; color:#4b5563; font-weight:700; }
.biglink { font-weight:700; font-size:15px; }
.idbubble > span { margin-left:auto; color:#6b7280; }

/* forms */
.fgroup { margin:12px 0; }
.fgroup label { display:block; font-size:12px; letter-spacing:1px; color:#4b5563; font-weight:700; margin-bottom:6px; }
.fgroup input, .fgroup select, .gsearch input, select { width:100%; background:#f5f5f6; border:1px solid var(--line); border-radius:10px; padding:12px; font-size:15px; outline:0; }

/* answer view */
.ans-view { max-width:780px; margin:0 auto; padding:8px 16px 40px; }
.ans-query { margin:8px auto 8px; padding:0 16px; max-width:780px; font-size:26px; }
.ans-card { max-width:780px; margin:0 auto 20px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; }
.ans-tabs { display:flex; gap:8px; margin-bottom:12px; }
.ans-status { display:flex; align-items:center; gap:8px; margin-bottom:14px; color:#4b5563; font-size:13px; }
.ans-card h2 { margin:4px 0 10px; font-size:24px; }
.ans-body { color:#111; font-size:18px; line-height:1.72; white-space:pre-wrap; padding-bottom:6px; }
.mdp { margin:0 0 14px; }
.mdp:last-child { margin-bottom:0; }
.badgebadge { background:#e7f3ea; color:#15803d; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:600; margin-right:6px; }
.perf { margin:14px 0 4px; }
.related h3 { font-size:11px; letter-spacing:1px; color:#6b7280; margin:14px 0 8px; }
.chip { display:inline-block; background:#f5faf7; color:#203129; border:1px solid #d5e3da; border-radius:10px; padding:10px 12px; margin:0 8px 8px 0; font-size:15px; line-height:1.45; font-weight:700; cursor:pointer; text-align:left; }
.followup-group { margin:12px 0; }
.followup-group h4 { display:none; }
.ans-imgblock { margin-bottom:12px; }
.ans-primary { display:block; width:100%; height:180px; object-fit:contain; border-radius:12px; background:#f7f9fb; }
.ans-thumbs { display:flex; gap:8px; overflow-x:auto; padding:8px 0; }
.image-credit { color:var(--mut); font-size:12px; line-height:1.4; margin:6px 0 0; }
.image-slide-button { border:1px solid var(--line); border-radius:8px; background:#fff; width:62px; height:48px; padding:2px; flex:0 0 auto; cursor:pointer; overflow:hidden; }
.image-slide-button img { width:100%; height:100%; object-fit:cover; border-radius:6px; }
.image-slide-button[aria-pressed="true"] { background:#2563eb; color:white; }
.empty-state { color:var(--mut); padding:16px 2px; line-height:1.5; }
.ans-pane .lineres { padding:10px 0; border-bottom:1px solid var(--line); }
.lineres a { font-weight:600; text-decoration:none; color:var(--ink); font-size:15px; }
.lineres small { color:var(--blue); display:block; }
.lineres p { color:#4b5563; font-size:13px; margin-top:3px; }
.ans-imgs img { width:100%; max-height:300px; object-fit:cover; border-radius:10px; display:block; }
.source-image { display:inline-block; vertical-align:top; width:min(46%,340px); margin:5px 2%; }
.source-image figcaption { font-size:13px; line-height:1.4; padding-top:6px; }
.source-image figcaption a { color:var(--blue); }
.bottomlink { background:none; border:0; font-size:15px; }
.righted { display:flex; justify-content:flex-end; }
.pillbig { border:1px solid var(--line); background:#fff; border-radius:999px; padding:10px 22px; font-weight:600; cursor:pointer; }

/* sheets */
.sheetwrap { position:fixed; inset:0; z-index:50; }
.sheetdim { position:absolute; inset:0; background:rgba(0,0,0,.35); }
.sheet { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:22px 22px 0 0; padding:22px; max-height:70vh; overflow-y:auto; }
.sheetwrap .sheetdim { cursor:pointer; }

/* toast */
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:100px; background:#111; color:#fff; padding:10px 18px; border-radius:999px; font-size:14px; z-index:99; }

.bottom { position:fixed; left:0; right:0; bottom:0; background:#f3f4f6; border-top:1px solid var(--line); text-align:center; padding:10px 16px; z-index:30; }

/* plans */
.plan { border-radius:18px; }
.plan.on { border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); }
.planrow { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.plname { font-size:22px; }
.price { color:var(--blue); font-weight:800; font-size:22px; }
.price small { font-size:12px; color:#374151; font-weight:600; }
.plan ul { margin:0 0 12px 20px; line-height:2; }
.curplan { background:#f3f4f6; border:1px solid var(--line); border-radius:12px; padding:10px 18px; color:#4b5563; font-weight:700; cursor:default; }
.tworow { display:flex; gap:10px; }
.outlineblue { border:1px solid var(--line); background:#fff; color:#374151; border-radius:999px; padding:13px; font-weight:600; cursor:pointer; }
.signincard { max-width:420px; margin:40px auto; }
@media (max-width:520px) {
  .masonry { column-count:2; }
  .home-bar { left:12px; right:12px; }
  .ans-query { margin-top:4px; font-size:22px; }
  .ans-card { padding:12px; border-radius:12px; }
  .ans-body { font-size:17px; line-height:1.68; }
  .source-image { width:100%; margin:6px 0; }
}
