: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:560px; margin:0 auto; padding:20px 16px 40px; }
.ans-query { margin:22px 16px 8px; max-width:600px; font-size:26px; }
.ans-card { max-width:600px; 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:16px; line-height:1.55; white-space:pre-wrap; padding-bottom:6px; }
.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:#eef4ff; color:#2563eb; border-radius:999px; padding:8px 14px; margin:0 8px 8px 0; font-size:14px; cursor:pointer; }
.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:45%; border-radius:10px; margin:5px; }
.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; } }
/* spinner (replaces the word "complete") */
.spinner { width: 16px; height: 16px; border: 2px solid #dbeafe; border-top-color: #2563eb; border-radius: 50%; animation: mzspin 0.7s linear infinite; display: none; }
.spinner.on { display: inline-block; }
@keyframes mzspin { to { transform: rotate(360deg); } }

/* answer images */
.ans-imgblock { margin: 0 0 14px; }
.ans-primary { width: 100%; height: 60vh; object-fit: cover; border-radius: 14px; display: block; }
.ans-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ans-thumbs img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.ans-thumbs img:hover { outline: 2px solid #2563eb; }
.ans-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ans-imgs img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }

/* markdown */
.ans-body .mdh { margin: 16px 0 6px; font-size: 19px; font-weight: 800; color: #111827; }
.ans-body .mdp { margin: 10px 0; line-height: 1.65; font-size: 16px; color: #1f2937; }
.ans-body .mdul, .ans-body .mdol { margin: 10px 0 10px 22px; line-height: 1.7; color: #1f2937; font-size: 16px; }

/* modern chat */
.convwrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.convwrap .msgs { max-height: 380px; overflow-y: auto; padding: 12px; background: #f9fafb; }
.convsstatus, .convsub { font-size: 11px; color: #6b7280; }
.convback { border: 0; background: none; color: #2563eb; font-weight: 700; cursor: pointer; font-size: 15px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px 16px 16px 6px; margin: 8px 0; font-size: 15px; background: #fff; border: 1px solid #e5e7eb; }
.bubble.me { border: 0; background: #2563eb; color: #fff; margin-left: auto; border-radius: 16px 16px 6px 16px; }
.bubt { font-size: 10px; opacity: .65; margin-top: 4px; }

/* call overlay */
.callover { position: fixed; inset: 0; z-index: 80; background: rgba(10,20,40,.92); display: flex; align-items: center; justify-content: center; }
.callinner { text-align: center; color: #fff; }
.callstatus { color: #93c5fd; font-size: 15px; }
.calltimer { color: #e5e7eb; font-size: 14px; min-height: 20px; }
.callbtns { display: flex; gap: 18px; justify-content: center; margin-top: 22px; }
.callcircle { width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer; }
.callend { background: #dc2626; }
