/* Dashboard + account page */
.ad-body { margin: 0; background: #f4f1ec; color: #15120f; font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ad-body *, .ad-body *::before, .ad-body *::after { box-sizing: border-box; }
.ad-gate { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.ad-gate-card { background: #fff; border-radius: 20px; padding: 2.2rem 1.8rem; max-width: 440px; text-align: center; box-shadow: 0 24px 60px -34px rgba(0,0,0,.45); }
.ad-gate-card img { width: 56px; height: 56px; border-radius: 50%; background: #0c0806; }
.ad-gate-card h1 { font-size: 1.7rem; margin: .8rem 0 .4rem; }
.ad-gate-card p { color: #5a534c; line-height: 1.6; margin: 0 0 1.2rem; }
.ad-gate-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.ad-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.4rem; background: #0c0806; color: #fff; position: sticky; top: 0; z-index: 20; }
.ad-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; }
.ad-brand img { width: 36px; height: 36px; border-radius: 50%; }
.ad-brand em { font-style: normal; color: #ff8a3d; font-weight: 600; }
.ad-top-r { display: flex; align-items: center; gap: .8rem; }
.ad-user { font-size: .85rem; color: #cfc8c0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-demo { background: #ffd000; color: #111; font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 999px; }
.ad-main { max-width: 1240px; margin: 0 auto; padding: 1.4rem 1.2rem 4rem; }
.ad-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ad-bar-l, .ad-bar-r { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ad-sel { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #5a534c; }
.ad-sel select { font: 600 .9rem "Inter", sans-serif; padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid #d8d1c8; background: #fff; min-height: 44px; }
.ad-btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .88rem "Inter", sans-serif; padding: .6rem 1rem; min-height: 44px; border-radius: 10px; border: 1.5px solid #15120f; background: #fff; color: #15120f; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, opacity .2s; }
.ad-btn:hover:not(:disabled) { background: #15120f; color: #fff; }
.ad-btn:disabled { opacity: .4; cursor: not-allowed; }
.ad-btn.ad-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ad-btn.ad-ghost:hover { background: #fff; color: #111; }
.ad-btn.ad-sm { min-height: 38px; padding: .4rem .8rem; font-size: .82rem; }
.ad-btn.ad-danger { border-color: #c0341d; color: #c0341d; }
.ad-btn.ad-danger:hover:not(:disabled) { background: #c0341d; color: #fff; }
.ad-btn:focus-visible, .ad-icon:focus-visible, .ad-sel select:focus-visible { outline: 3px solid #ff5b00; outline-offset: 2px; }
.ad-note { min-height: 1.4em; margin: .8rem 0 .2rem; font-size: .9rem; color: #5a534c; } .ad-note.err { color: #c0341d; }
.ad-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin: .6rem 0 1.1rem; }
.ad-kpi { background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem; }
.ad-kpi p { margin: 0; font-size: .78rem; color: #6d655d; font-weight: 600; letter-spacing: .02em; }
.ad-kpi b { display: block; font-size: 2rem; letter-spacing: -.03em; margin: .25rem 0; }
.ad-kpi span { font-size: .78rem; color: #8a8178; }
.ad-card { background: #fff; border-radius: 16px; padding: 1.2rem 1.3rem; min-width: 0; }
.ad-wide { margin-bottom: 1.1rem; }
.ad-card-h { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ad-card-h h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.ad-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ad-legend { display: flex; gap: 1rem; font-size: .8rem; color: #5a534c; }
.ad-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; background: #ff5b00; }
.ad-legend .lg-v::before { background: #15120f; }
.ad-chart svg { width: 100%; height: 240px; display: block; }
.ad-chart .gl { stroke: #ece6de; stroke-width: 1; } .ad-chart .gt { fill: #8a8178; font-size: 11px; font-family: "Inter", sans-serif; }
.ad-chart .area { fill: rgba(255,91,0,.12); } .ad-chart .l-pv { fill: none; stroke: #ff5b00; stroke-width: 2.5; vector-effect: non-scaling-stroke; } .ad-chart .l-v { fill: none; stroke: #15120f; stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ad-chart .hit { fill: transparent; } .ad-chart .hit:hover { fill: rgba(255,91,0,.5); }
.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.ad-bar-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; margin-bottom: .75rem; font-size: .88rem; }
.ad-bar-row .ad-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-bar-row i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #ff5b00, #ffd000); display: block; }
.ad-empty { color: #8a8178; font-size: .9rem; margin: .4rem 0; }
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 720px; }
.ad-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #8a8178; padding: .5rem .6rem; border-bottom: 1.5px solid #ece6de; }
.ad-table td { padding: .55rem .6rem; border-bottom: 1px solid #f0ebe4; vertical-align: middle; }
.ad-table .nw { white-space: nowrap; } .ad-path { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #eee9e2; }
.ad-chip.t-cta { background: #ffe3d1; color: #a63a00; } .ad-chip.t-pv { background: #e7efe9; color: #25613b; }
.ad-icon { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: #5a534c; } .ad-icon:hover { background: #f0ebe4; color: #c0341d; }
.ad-foot { font-size: .82rem; color: #8a8178; margin: .8rem 0 0; } .ad-p { color: #5a534c; margin: 0 0 1rem; line-height: 1.6; }
.ad-history { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .85rem; color: #5a534c; }
.ad-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: #15120f; color: #fff; padding: .7rem .9rem .7rem 1.1rem; border-radius: 12px; display: flex; gap: 1rem; align-items: center; z-index: 60; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.ad-toast button { background: #ffd000; border: 0; color: #111; font-weight: 700; padding: .45rem .8rem; border-radius: 8px; cursor: pointer; min-height: 36px; }
@media (max-width: 1000px) { .ad-kpis { grid-template-columns: repeat(2, 1fr); } .ad-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ad-grid { grid-template-columns: 1fr; } .ad-top { padding: .7rem 1rem; } .ad-user { display: none; } .ad-brand span { font-size: .9rem; } .ad-kpi b { font-size: 1.6rem; } .ad-main { padding: 1rem .8rem 3rem; } .ad-bar-r { width: 100%; } }

/* account page */
.au-main { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 8rem 1.2rem 4rem; }
.au-card { background: #fff; border-radius: 22px; padding: 2.2rem 2rem; width: 100%; max-width: 460px; box-shadow: 0 30px 60px -38px rgba(0,0,0,.5); }
.au-card h1 { font: 800 clamp(1.8rem, 5vw, 2.3rem)/1.1 "Inter", sans-serif; letter-spacing: -.03em; text-transform: none; color: #111; margin: .6rem 0 .4rem; }
.au-sub { color: #5a534c; margin-bottom: 1.4rem; line-height: 1.5; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1ece6; border-radius: 12px; padding: 4px; margin-bottom: 1.3rem; }
.au-tabs button { border: 0; background: transparent; font: 600 .95rem "Inter", sans-serif; padding: .7rem; border-radius: 9px; cursor: pointer; min-height: 44px; color: #5a534c; }
.au-tabs button[aria-selected="true"] { background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.au-f { display: block; font: 600 .85rem "Inter", sans-serif; color: #3b352f; margin-bottom: 1rem; }
.au-f input { display: block; width: 100%; margin-top: .4rem; padding: .85rem .95rem; border: 1.5px solid #d8d1c8; border-radius: 12px; font: 400 1rem "Inter", sans-serif; background: #fff; min-height: 48px; }
.au-f input:focus { outline: 3px solid rgba(255,91,0,.35); border-color: #ff5b00; }
.au-msg { min-height: 1.4em; font-size: .9rem; margin: 0 0 .8rem; color: #5a534c; } .au-msg.err { color: #c0341d; } .au-msg.ok { color: #1a7f37; }
.au-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; font-size: 1rem; }
.au-submit:disabled { opacity: .5; cursor: not-allowed; }
.au-link { display: block; margin: 1rem auto 0; background: none; border: 0; color: #5a534c; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: 500 .9rem "Inter", sans-serif; min-height: 44px; }
.au-note { margin-top: 1.2rem; padding: .9rem 1rem; background: #fff6e0; border-radius: 12px; color: #5a4a1a; font-size: .9rem; line-height: 1.55; }
.au-note code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 5px; }
.au-actions { display: flex; flex-direction: column; gap: .4rem; }
[hidden] { display: none !important; }

/* ---- tabs + projects manager ---- */
.ad-tabs { display: flex; gap: .4rem; max-width: 1180px; margin: 0 auto; padding: 1rem 1rem 0; }
.ad-tabs button { font: 600 .95rem "Inter", sans-serif; min-height: 44px; padding: .6rem 1.2rem; border: 0; border-bottom: 3px solid transparent; background: none; color: inherit; cursor: pointer; opacity: .65; }
.ad-tabs button[aria-selected="true"] { opacity: 1; border-bottom-color: #ff5a1f; }
.ad-primary { background: #ff5a1f !important; color: #fff !important; border-color: #ff5a1f !important; }
.pj-list { list-style: none; margin: 1rem 0 3rem; padding: 0; display: grid; gap: .6rem; }
.pj-row { display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem; border: 1px solid rgba(128,128,128,.3); border-radius: 12px; background: rgba(128,128,128,.06); }
.pj-row.off { opacity: .55; }
.pj-th { flex: none; width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: #1d1d1d; color: #888; display: grid; place-items: center; }
.pj-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pj-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pj-tx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-tx em { font-style: normal; font-size: .8rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-act { display: flex; gap: .15rem; flex: none; }
.pj-act .ad-icon:disabled { opacity: .25; cursor: default; }
.pj-dlg { width: min(520px, calc(100vw - 2rem)); border: 0; border-radius: 16px; padding: 1.4rem; background: #fff; color: #111; }
.pj-dlg::backdrop { background: rgba(0,0,0,.6); }
.pj-dlg h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.pj-dlg label { display: block; font: 600 .85rem "Inter", sans-serif; margin-bottom: .8rem; }
.pj-dlg label[hidden] { display: none; }
.pj-dlg input:not([type=file]), .pj-dlg select { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; min-height: 44px; font: 400 1rem "Inter", sans-serif; border: 1.5px solid #ccc; border-radius: 10px; background: #fff; color: #111; box-sizing: border-box; }
.pj-dlg input[type=file] { display: block; margin-top: .3rem; font-size: .9rem; max-width: 100%; }
.pj-dlg-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .6rem; }
.pj-dlg .ad-ghost { color: #111; border-color: #ccc; }
@media (max-width: 640px) { .pj-act .ad-icon { width: 38px; } .pj-th { width: 52px; } }
.pj-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .pj-row { flex-wrap: wrap; } .pj-tx { flex: 1 1 calc(100% - 80px); } .pj-act { width: 100%; justify-content: space-between; } }

/* ---- Locations / Insights / Recordings / Controls ---- */
.ad-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; }
.ad-tabs button i { font-size: .85em; opacity: .8; }
.ad-main > .ad-kpis, .ad-main > .ad-card, .ad-main > .ad-grid { margin-top: 1.1rem; }
.ad-grid2 { grid-template-columns: 1fr 1fr; }
.ad-sub { font-size: .85rem; margin: -.4rem 0 .9rem; color: #6d655d; }
.ad-table-s { min-width: 520px; }
.ad-chip.t-ok { background: #fff1c9; color: #7a5b00; }
.ad-note.ok { color: #1a7f37; }
.ad-warn { background: #fff0ee; border: 1px solid #f1b9ae; color: #7d2415; border-radius: 12px; padding: .9rem 1rem; margin: .8rem 0; line-height: 1.55; font-size: .9rem; }
.ad-sw { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 1rem; cursor: pointer; }
.ad-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-sw-t { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #cfc8c0; position: relative; transition: background .2s; margin-top: 2px; }
.ad-sw-t::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ad-sw input:checked + .ad-sw-t { background: #ff5b00; }
.ad-sw input:checked + .ad-sw-t::after { transform: translateX(20px); }
.ad-sw input:focus-visible + .ad-sw-t { outline: 3px solid #15120f; outline-offset: 2px; }
.ad-sw-x b { display: block; font-size: .92rem; } .ad-sw-x small { display: block; color: #6d655d; font-size: .8rem; line-height: 1.45; margin-top: .15rem; }
.ad-fl { display: block; font: 600 .82rem "Inter", sans-serif; color: #3b352f; margin-bottom: .9rem; }
.ad-fl input, .ad-inline input { display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; min-height: 44px; border: 1.5px solid #d8d1c8; border-radius: 10px; font: 400 .95rem "Inter", sans-serif; background: #fff; color: #15120f; }
.ad-fl input:focus, .ad-inline input:focus { outline: 3px solid rgba(255,91,0,.35); border-color: #ff5b00; }
.ad-fn { display: grid; grid-template-columns: 170px 1fr auto; gap: .2rem .9rem; align-items: center; margin-bottom: .9rem; font-size: .9rem; }
.ad-fn-b { height: 14px; background: #f0ebe4; border-radius: 99px; overflow: hidden; } .ad-fn-b i { display: block; height: 100%; background: linear-gradient(90deg, #ff5b00, #ffd000); border-radius: 99px; }
.ad-fn small { grid-column: 2 / -1; color: #a63a00; font-size: .78rem; }
.ad-hours { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.ad-hr { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: .65rem; color: #8a8178; min-width: 0; }
.ad-hr i { width: 100%; background: linear-gradient(0deg, #ff5b00, #ffb27a); border-radius: 4px 4px 0 0; display: block; } .ad-hr span { height: 14px; margin-top: 3px; }
.ad-j { border-bottom: 1px solid #f0ebe4; } .ad-j summary { cursor: pointer; padding: .7rem .2rem; display: grid; gap: .15rem; list-style: none; min-height: 44px; }
.ad-j summary::-webkit-details-marker { display: none; }
.ad-j-w { font-weight: 700; font-size: .92rem; } .ad-j-m { font-size: .8rem; color: #6d655d; }
.ad-j-l { margin: .1rem 0 .9rem 1rem; padding: 0; list-style: none; border-left: 2px solid #ece6de; display: grid; gap: .5rem; }
.ad-j-l li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-left: .8rem; font-size: .82rem; }
.ad-j-l time { color: #8a8178; font-variant-numeric: tabular-nums; } .ad-j-p { color: #3b352f; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ad-status { display: inline-block; font-weight: 700; padding: .6rem .9rem; border-radius: 10px; margin: 0 0 1rem; } .s-on { background: #e7efe9; color: #25613b; } .s-off { background: #fff1c9; color: #7a5b00; }
.ad-steps, .ad-list { padding-left: 1.2rem; line-height: 1.65; color: #3b352f; margin: 0 0 1rem; } .ad-steps li, .ad-list li { margin-bottom: .5rem; }
.ad-inline { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; } .ad-inline input { flex: 1 1 220px; margin-top: 0; }
.ad-health { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.ad-health li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; border-bottom: 1px solid #f0ebe4; font-size: .9rem; flex-wrap: wrap; }
.ad-health b { text-align: right; } .h-ok b { color: #1a7f37; } .h-warn b { color: #9a6b00; } .h-bad b { color: #c0341d; }
.ad-test { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
@media (max-width: 1000px) { .ad-grid2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ad-grid2 { grid-template-columns: 1fr; } .ad-fn { grid-template-columns: 1fr auto; } .ad-fn-b { grid-column: 1 / -1; order: 3; } .ad-fn small { grid-column: 1 / -1; } .ad-tabs { padding: .6rem .5rem 0; } .ad-tabs button { padding: .6rem .8rem; } }

/* Leads */
.ad-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: .4rem; border-radius: 99px; background: #ff5b00; color: #fff; font-size: .72rem; font-weight: 700; }
.ld-item { border: 1.5px solid #ece6df; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .8rem; background: #fff; }
.ld-item.is-new { border-color: #ffd000; background: #fffbea; }
.ld-top { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; align-items: flex-start; }
.ld-who { display: grid; gap: .1rem; min-width: 0; }
.ld-who b { font-size: 1.05rem; }
.ld-who a { color: #ff5b00; font-weight: 600; overflow-wrap: anywhere; }
.ld-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: #6d655d; }
.ld-meta select { min-height: 38px; border: 1.5px solid #15120f; border-radius: 10px; padding: 0 .6rem; font: 600 .85rem "Inter", sans-serif; background: #fff; }
.ld-tag { background: #15120f; color: #fff; border-radius: 99px; padding: .15rem .6rem; font-weight: 600; }
.ld-dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .8rem 0 0; font-size: .88rem; }
.ld-dl dt { color: #6d655d; font-weight: 600; }
.ld-dl dd { margin: 0; overflow-wrap: anywhere; }
.ld-dl a { color: #ff5b00; }
.ld-msg { margin: .8rem 0 0; padding: .7rem .9rem; background: #f6f2ed; border-radius: 10px; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
