/* Live-app additions on top of styles.css (shared with the marketing/demo page). */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card .logo { text-decoration: none; color: inherit; }
.auth-btn { justify-content: center; gap: 10px; width: 100%; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: lyv-spin .8s linear infinite; flex: none; }
@keyframes lyv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.menu-pop { position: fixed; top: 64px; right: max(16px, calc((100vw - 1320px) / 2 + 16px)); z-index: 30; min-width: 240px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.menu-pop .btn { justify-content: flex-start; text-decoration: none; }

.feed-meta { align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; color: var(--muted); }
.feed-meta .icon { width: 14px; height: 14px; flex: none; }

/* Agent work is Markdown: keep it readable and contained. */
.md { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; min-width: 0; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4 { letter-spacing: -0.01em; line-height: 1.3; margin: 1.2em 0 .45em; }
.md h1 { font-size: 1.35em; } .md h2 { font-size: 1.2em; } .md h3 { font-size: 1.07em; } .md h4 { font-size: 1em; }
.md p { margin: .6em 0; }
.md ul, .md ol { padding-left: 1.3em; margin: .5em 0; }
.md li { margin: .25em 0; }
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.md code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--surface-2); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: .8em 0; padding: 2px 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
/* Tables keep their natural column widths; the wrapper scrolls horizontally on small screens. */
.md-tablewrap { max-width: 100%; overflow-x: auto; margin: 10px 0; -webkit-overflow-scrolling: touch; }
.md table { border-collapse: collapse; width: auto; max-width: none; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; hyphens: none; max-width: 36ch; }
.md th { background: var(--surface-2); font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.quote.md { white-space: normal; max-height: 420px; overflow-y: auto; }
.doc-export { margin: 0 0 4px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.result-sec { padding: 20px 0; border-top: 1px solid var(--line); }
.result-sec:first-of-type { border-top: 0; }

/* Header navigation: Talent / My businesses */
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 500; font-size: 14.5px; color: var(--muted); padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--fg); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--fg); background: var(--surface-2); font-weight: 600; }
.nav-count { font-size: 12px; font-family: var(--f-mono); color: var(--muted); }
.mnav { display: none; }
@media (max-width: 600px) {
  .mnav { display: flex; gap: 4px; padding: 0 12px 8px; overflow-x: auto; }
  .mnav .nav-link { padding: 6px 10px; font-size: 14px; white-space: nowrap; flex: none; }
  .head-create { padding-inline: 10px; }
}

/* Talent marketplace */
.talent-tools { display: flex; flex-direction: column; gap: 12px; }
.talent-tools .field { max-width: 640px; }
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.talent-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.talent-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cs-card { opacity: .82; }
.cs-card:hover { border-color: var(--line); box-shadow: none; }
.cs-card .av-lg { filter: grayscale(.35); }
.talent-open { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 14px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.talent-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.talent-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.talent-foot .mono { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.example-list, .how-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.example-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.example-list li:first-child { border-top: 0; }
.how-list li { padding: 6px 0; font-size: 14.5px; line-height: 1.55; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Not sticky: the hire box now sits in the normal page flow (was sticky when it lived in a side column). */
.hire-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.hire-row:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Create: suggested team */
.rec-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rec-card .iconbtn { flex: none; }
.add-worker { align-self: flex-start; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.add-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: none; cursor: pointer; font: inherit; color: inherit; }
.add-opt:hover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.add-opt .plus { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); flex: none; }
.add-opt .plus .icon { width: 14px; height: 14px; }

/* Hire flow + connections */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.conn-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.conn-card > .btn, .conn-card > .pill, .conn-card > span:last-child { flex: none; align-self: center; }
.conn-card.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.conn-card.off { background: transparent; border-style: dashed; }
.conn-card.off .tool-ico, .conn-card.off strong { opacity: .7; }
.hire-row { text-align: left; }
.hire-row.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.hire-row .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.hire-row.sel .radio { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }

/* Create: new / existing / personal */
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mode-opt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.mode-opt:hover { border-color: var(--line-strong); }
.mode-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }

/* Chat with an agent */
.chat-wrap { display: grid; grid-template-columns: 240px 1fr; padding: 0; overflow: hidden; min-height: 520px; }
.chat-people { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.chat-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: inherit; font-size: 14px; }
.chat-person:hover { background: var(--surface-2); }
.chat-person[aria-selected="true"] { background: var(--accent-soft); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow-y: auto; max-height: 560px; min-height: 320px; }
.chat-msg { display: flex; flex: none; gap: 10px; align-items: flex-start; max-width: 92%; }
.chat-msg.mine .chat-bubble { white-space: normal; overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; max-width: 80%; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; font-size: 15px; line-height: 1.55; }
.chat-msg.mine .chat-bubble { background: var(--accent); color: #fff; }
.chat-cost { font-size: 12px; margin-top: 6px; }
.chat-tools { display: flex; gap: 12px; margin-top: 8px; opacity: 0; transition: opacity .15s; }
.chat-msg:hover .chat-tools, .chat-msg:focus-within .chat-tools { opacity: 1; }
.chat-tool { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.mine .chat-tool { color: rgba(255, 255, 255, .85); }
.chat-tool.speaking { color: var(--accent); font-weight: 600; }
@media (hover: none) { .chat-tools { opacity: 1; } }
.chat-time { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.chat-msg.mine .chat-time { text-align: right; color: rgba(255, 255, 255, .8); }
.chat-day { align-self: center; flex: none; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 14px 0 2px; }
.chat-empty { margin: auto; text-align: center; max-width: 420px; line-height: 1.6; }
.chat-compose { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-people { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; max-height: none; }
  .chat-person { flex: none; }
  .chat-thread { padding: 14px; max-height: 60vh; }
}

/* Expert Studio */
.expert-av { background: linear-gradient(135deg, var(--accent), #7C2D12); color: #fff; }
.studio-hero { padding: 32px; display: flex; flex-direction: column; gap: 28px; background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.studio-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; }
.studio-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.studio-how > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.studio-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); font-size: 14px; line-height: 1.5; }
.studio-note .icon { flex: none; margin-top: 2px; color: var(--info); }
.studio-note.warn { background: var(--warn-soft); } .studio-note.warn .icon { color: var(--warn); }
.studio-note.ok { background: var(--ok-soft); } .studio-note.ok .icon { color: var(--ok); }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.studio-new .icon { width: 14px; height: 14px; vertical-align: -2px; }
.studio-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.studio-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 8px; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.studio-tabs button b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--f-mono); }
.studio-tabs button[aria-current="step"] { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); }
.studio-tabs button[aria-current="step"] b { background: var(--accent); color: #fff; }
.chip-sm { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.ready-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.ready-row.done { color: var(--fg); }
.ready-mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ready-row.done .ready-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.ready-mark .icon { width: 11px; height: 11px; }
.src-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.src-prev { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); align-self: flex-start; }
.seg button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.exp-seg { margin: 2px 0 12px; gap: 2px; }
.exp-seg button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; font-size: 14px; }
.seg-count { font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: 999px; background: rgba(127, 127, 127, .18); color: var(--muted); }
.exp-seg button[aria-selected="true"] .seg-count { background: var(--accent); color: #fff; }
.drop { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.studio-chat { padding: 0; overflow: hidden; }
.studio-chat .chat-thread { min-height: 360px; }
.price-in { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 18px; }
.price-in .field { width: 110px; font-family: var(--f-mono); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
@media (max-width: 700px) { .studio-how { grid-template-columns: 1fr; } .studio-hero { padding: 22px; } }
.ai-pill { align-self: flex-start; font-size: 11.5px; white-space: normal; line-height: 1.4; height: auto; padding-block: 4px; max-width: 100%; }

/* Feedback on replies */
.fb-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.fb-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fb-btn .icon { width: 15px; height: 15px; }
.fb-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.fb-btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.fb-note { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chat-bubble .fb-bar .linkish { margin-left: 4px; }

/* Verified experts */
.verified-pill { font-size: 11.5px; vertical-align: 2px; gap: 3px; }
.verified-pill .icon { width: 11px; height: 11px; }
.legend-pill { font-size: 11.5px; vertical-align: 2px; gap: 3px; background: #4a2e0f; color: #f6c572; border: 1px solid #7a5218; }
.legend-pill .icon { width: 11px; height: 11px; }
.legend-card { background: linear-gradient(180deg, rgba(246,197,114,.07), transparent 120px); border-color: #7a521833; }

/* Expert dashboard */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.spark span { flex: 1; min-width: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.q-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.q-row:last-of-type { border-bottom: 0; }
.studio-tabs .tab-dash b { background: var(--accent-soft); color: var(--accent); }

/* Admin */
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.adm-chat .chat-thread { min-height: 260px; max-height: 420px; }
.bank-box { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }
.agent-chips { flex-wrap: wrap; }
.fb-card .icon { width: 16px; height: 16px; color: var(--muted); }
.mono-ish { font-family: var(--f-mono); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* Ask AI on Talent */
.search-row { display: flex; gap: 8px; max-width: 760px; }
.search-row .field { flex: 1; min-width: 0; max-width: none; }
.ask-btn { flex: none; }
.ask-panel { max-width: 760px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ask-match { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ask-actions { display: flex; gap: 6px; flex: none; align-self: center; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-align: left; }
.chip-btn:hover { color: var(--fg); border-color: var(--accent); }
@media (max-width: 600px) { .ask-match { flex-wrap: wrap; } .ask-actions { width: 100%; justify-content: flex-end; } }

/* Smart search */
.smart-box { position: relative; display: flex; align-items: center; max-width: 760px; }
.smart-box .field { padding-left: 42px; padding-right: 140px; height: 50px; font-size: 15.5px; max-width: none; width: 100%; }
.smart-ico { position: absolute; left: 14px; color: var(--accent); display: inline-flex; pointer-events: none; }
.smart-ico .icon { width: 18px; height: 18px; }
.smart-go { position: absolute; right: 6px; }
.smart-panel { max-width: 760px; }
.smart-examples { max-width: 760px; }
.talent-layer { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
@media (max-width: 600px) { .smart-box .field { padding-right: 14px; } .smart-go { position: static; margin-left: 8px; flex: none; } .smart-box { gap: 0; } }

/* Expert Studio: links per platform, topic suggestions, web search panel */
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.soc-grid .lbl { font-size: 13px; }
.sug-box { padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.sug-chip { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; }
.sug-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.sug-chip svg { width: 13px; height: 13px; }
.web-who { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.web-links summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.web-links summary::-webkit-details-marker { display: none; }
.web-links summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
.web-links[open] summary::before { transform: rotate(90deg); }

/* Where an approved action goes (recipient, channel, page…) */
.deliv { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.deliv-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; background: var(--accent-soft); }
.deliv-edit .field { padding: 8px 10px; font-size: 14px; }

/* Admin: agent knowledge */
.k-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.k-row:last-child { border-bottom: 0; }
.k-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 12px; }

/* Companies */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.co-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.co-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.co-av { background: var(--fg); color: var(--surface); border-radius: 12px; }
.av.av-xl { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; }
/* Photo/logo avatars: the uploaded image fills the (circular or rounded) avatar. */
.av.has-img { background: none !important; overflow: hidden; padding: 0; }
.av.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.photo-ctl { align-items: center; }
.photo-ctl .av-xl { flex: none; }
.photo-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border-radius: inherit; color: #fff; }
.photo-ctl > div:first-child { border-radius: 18px; }
.co-sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.co-hire { padding-top: 14px; border-top: 1px solid var(--line); }
.co-add summary { cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.co-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.co-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--surface); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.co-banner:hover { border-color: var(--accent); }

/* Companies: ratings, their own AI, getting paid */
.stars { color: #E8A317; letter-spacing: 1px; white-space: nowrap; }
.stars .stars-off { color: var(--line-strong); }
.stars-lg { font-size: 17px; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { border: 0; background: none; font-size: 30px; line-height: 1; padding: 4px 2px; color: var(--line-strong); cursor: pointer; min-width: 40px; min-height: 40px; border-radius: 8px; }
.star-pick button.on { color: #E8A317; }
.star-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-row + .review-row { padding-top: 12px; border-top: 1px solid var(--line); }
.co-ai, .co-pay { padding-top: 14px; border-top: 1px solid var(--line); }
.secret-box { padding: 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-line); }
.secret-val { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; flex: 1 1 260px; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; padding: 12px; border-radius: 10px; background: var(--surface-2); overflow-x: auto; white-space: pre; max-width: 100%; }
.studio-note.note-bad { background: var(--bad-soft); }

/* Deleting a business */
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.del-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-solid:disabled { opacity: .45; cursor: not-allowed; }

/* Accounts: welcome choice, uploads, team, verification review */
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kind-card { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kind-card:hover, .kind-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kind-card strong { font-size: 19px; }
.kind-card .muted { font-size: 14px; line-height: 1.55; }
.kind-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kind-ico svg { width: 20px; height: 20px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.up-slot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.up-slot.has { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.up-slot img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; background: var(--surface); }
.up-pdf { font-size: 13px; overflow-wrap: anywhere; }
.up-btn { align-self: flex-start; cursor: pointer; position: relative; overflow: hidden; }
/* The real file input covers the button, so a tap always lands on it (some phones and in-app browsers ignore taps on hidden inputs). */
.up-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 100px; }
.up-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.member-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-of-type { border-bottom: 0; }
.field-sm { padding: 6px 10px; font-size: 13.5px; width: auto; }
.ver-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ver-file { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: inherit; text-decoration: none; }
.ver-file img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.ver-file.pdf { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }

/* Company agents, documents */
.doc-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; min-width: 0; }
.doc-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.draft-box { background: var(--surface-2); max-height: 420px; overflow: auto; }

/* ---- Camera in chat ---- */
.chat-shots { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-msg.mine .chat-shots { justify-content: flex-end; }
.chat-shots img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.chat-shot { position: relative; }
.chat-shot-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; padding: 0; }
.cam-sheet { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; }
.cam-sheet video { flex: 1; width: 100%; height: 100%; object-fit: contain; background: #000; min-height: 0; }
.cam-sheet video.mirror { transform: scaleX(-1); }
.cam-hint { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; text-align: center; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px max(22px, env(safe-area-inset-bottom)); background: #000; }
.cam-btn { background: none; border: 0; color: #fff; font-size: 16px; font-weight: 600; padding: 12px; min-width: 72px; cursor: pointer; }
.cam-shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.cam-shutter:active { background: #fff; }
.cam-shutter:disabled { opacity: .4; cursor: default; }
.up-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* first-login tour */
.tour { position: fixed; inset: 0; z-index: 1200; }
.tour-dim { position: absolute; inset: 0; background: transparent; pointer-events: auto; }
.tour.no-target .tour-dim { background: rgba(0,0,0,.6); }
.tour-ring { position: absolute; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(0,0,0,.6); pointer-events: none; transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
.tour-pop { position: absolute; z-index: 1; padding: 16px 16px 12px; box-shadow: 0 14px 44px rgba(0,0,0,.45); }
.tour-step { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tour-title { font-size: 17px; margin: 4px 0 6px; letter-spacing: -0.01em; }
.tour-body { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.tour-nav { display: flex; align-items: center; gap: 8px; }

/* Free-credit bar — the first thing a logged-out visitor reads, so card prices stop reading as "pay now". */
.free-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.free-bar-msg { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg); min-width: 0; }
.free-bar-msg svg { color: var(--accent); flex: none; }
.free-bar-msg strong { font-weight: 650; }
.free-bar-cta { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
  .free-bar { gap: 8px; padding-top: 9px; padding-bottom: 9px; }
  .free-bar-msg { font-size: 13px; }
  .free-bar-cta { font-size: 13px; }
}

/* ===== Mobile app shell: bottom tab bar (phone width) ===== */
.tabbar { display: none; }
.only-mobile { display: none; }
.tabbar-item { appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px;
  color: var(--muted); font: inherit; font-size: 11px; font-weight: 650; min-width: 0;
  -webkit-tap-highlight-color: transparent; }
.tabbar-item.on { color: var(--accent); }
.tabbar-ico { position: relative; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.tabbar-ico svg { width: 22px; height: 22px; }
.tabbar-lbl { line-height: 1; white-space: nowrap; }
.tabbar-badge { position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--warn); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; }
.tabbar-initial { width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tabbar-item.on .tabbar-initial { background: var(--accent); color: var(--on-accent); }

/* Marketplace segmented switcher (Talent · Experts · Companies) — inside the Marketplace tab on mobile. */
.mkt-switch { gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--accent-soft); border-radius: 12px; }
.mkt-switch .mkt-seg { flex: 1 1 0; appearance: none; -webkit-appearance: none; border: 0; background: none;
  cursor: pointer; padding: 9px 6px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 650;
  color: var(--muted); min-width: 0; }
.mkt-switch .mkt-seg.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

@media (max-width: 700px) {
  .mnav-desk { display: none !important; }
  .only-mobile { display: flex; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .main { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Keep the "Ask Lyvrak" launcher above the bottom tab bar on mobile (logged-in), so it never covers the Account tab. */
@media (max-width: 700px) {
  body.has-tabbar .lg-launch { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ===== WhatsApp-style call screen (voice / video call with an agent) ===== */
.call-sheet { position: fixed; inset: 0; z-index: 200; overflow: hidden; color: #fff;
  background: #0b0b0d; -webkit-user-select: none; user-select: none; }
.call-sheet #cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-sheet #cam-video.mirror { transform: scaleX(-1); }
.call-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65)); }
.call-voice-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, #2a1a10 0%, #141013 45%, #0b0b0d 100%); }

.call-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.call-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.call-who-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.call-who-t strong { font-size: 16px; font-weight: 650; }
.call-status { font-size: 13px; opacity: .82; }
.call-timer { font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; flex: none; }

.call-stage { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; }
.call-stage .av { width: 112px; height: 112px; font-size: 42px; }
.call-name { font-size: 24px; font-weight: 650; }
.call-sub { font-size: 14px; opacity: .7; }

.call-caption { position: absolute; left: 16px; right: 16px; bottom: calc(132px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 13px 16px; font-size: 15.5px; line-height: 1.45; max-height: 34%; overflow: auto; }
.cap-who { display: block; opacity: .6; font-size: 12.5px; margin-bottom: 3px; }

.call-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center; gap: 30px;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 26px); }
.call-ctl { appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; font: inherit; font-size: 12.5px;
  -webkit-tap-highlight-color: transparent; }
.call-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .12s, transform .12s; }
.call-ctl:active .call-ico { transform: scale(.94); }
.call-ctl.on .call-ico { background: #fff; color: #141013; }
.call-ico.call-end { background: #e5362b; color: #fff; }
.call-lbl { opacity: .92; }
/* Type-to-reply box inside a call — the fallback when the mic is off, always present as a backup. */
.call-type { position: absolute; left: 0; right: 0; z-index: 4;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
  display: none; align-items: center; gap: 8px;
  padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
.call-type-in { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(20,16,19,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: inherit; font-size: 15px; padding: 0 16px; outline: none; }
.call-type-in::placeholder { color: rgba(255,255,255,.6); }
.call-type-in:focus { border-color: rgba(255,255,255,.55); }
.call-type-send { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: #b4740f; -webkit-tap-highlight-color: transparent; }
.call-type-send:active { transform: scale(.94); }
.call-diag { position: absolute; left: 0; right: 0; z-index: 5; text-align: center;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.65);
  padding: 0 16px; pointer-events: none; }
.call-sheet.call-typemode .call-type { display: flex; }
.call-sheet.call-typemode .call-type-in { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(180,116,15,.35); }

/* Agent quick-reply chips + call offer, under the latest chat reply. */
.qr-row { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 2px 46px; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-chip { border-color: var(--accent) !important; color: var(--accent) !important; }
.qr-chip:hover { background: var(--accent-soft) !important; }
.qr-call { align-self: flex-start; }
.qr-call svg { margin-right: 6px; vertical-align: -2px; }
@media (max-width: 600px) { .qr-row { padding-left: 2px; } }

/* Talent search grows vertically with the text (auto-sizing textarea) instead of scrolling off. */
.smart-grow { align-items: flex-end; }
.smart-box .smart-ta { height: auto; min-height: 50px; max-height: 168px; line-height: 1.45; padding-top: 13px; padding-bottom: 13px; resize: none; overflow-y: auto; }
.smart-grow .smart-ico { top: 15px; }
.smart-grow .smart-go { top: auto; bottom: 7px; }
