@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
    --ink:#19344b;
    --muted:#6e7f8d;
    --teal:#147b7b;
    --navy:#142e45;
    --line:#e4eaed;
    --bg:#f5f7f9;
    --radius:16px;
    --shadow:0 4px 22px #17334b05
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:'DM Sans',system-ui,sans-serif;
    font-size:14px;
    line-height:1.6
}
h1,h2,h3,h4,.brand {
    font-family:Manrope,system-ui,sans-serif;
    letter-spacing:-.035em
}
h1 {
    font-size:32px;
    line-height:1.2;
    font-weight:800;
    margin:10px 0 12px
}
h2 {
    font-size:19px;
    line-height:1.35;
    font-weight:800;
    margin:0 0 7px
}
h3 {
    font-size:16px;
    font-weight:800;
    margin:0 0 18px
}
p {
    margin:0 0 14px
}
a {
    color:var(--teal);
    text-decoration:none
}
a:hover {
    text-decoration:underline
}
button,input,select,textarea {
    font:inherit
}
button,.button {
    border:1px solid var(--teal);
    border-radius:9px;
    background:var(--teal);
    color:#fff;
    padding:11px 17px;
    min-height:43px;
    font-weight:700;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration:none;
    line-height:1.4;
    transition:background .15s
}
button:hover,.button:hover {
    background:#106363;
    color:white;
    text-decoration:none
}
button:disabled {
    opacity:.5;
    cursor:not-allowed
}
.secondary {
    background:white;
    color:var(--ink);
    border-color:#d7e1e7
}
.secondary:hover {
    background:#edf5f5;
    color:var(--teal);
    border-color:#a7cbcb
}
.ghost {
    background:transparent;
    border-color:transparent;
    color:var(--muted)
}
.ghost:hover {
    background:#f6ece7;
    color:#a15435
}
.small-button {
    min-height:34px;
    padding:7px 11px;
    font-size:12px
}
.icon-button {
    background:transparent;
    color:var(--ink);
    border:1px solid var(--line);
    width:36px;
    height:36px;
    min-height:36px;
    padding:0;
    font-size:20px
}
.wide {
    width:100%;
    justify-content:space-between
}
input,select,textarea {
    width:100%;
    border:1px solid #dce4e9;
    border-radius:8px;
    padding:10px 12px;
    background:#fff;
    color:var(--ink);
    min-height:43px;
    max-width:100%
}
textarea {
    resize:vertical;
    line-height:1.7
}
input::placeholder,textarea::placeholder {
    color:#9aa7b1
}
input[type=checkbox] {
    width:17px;
    min-height:17px;
    accent-color:var(--teal);
    margin:0
}
label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:12px;
    font-weight:700
}
label small {
    font-weight:400;
    color:var(--muted);
    line-height:1.5;
    font-size:11px
}
.check {
    flex-direction:row;
    align-items:center;
    gap:10px;
    font-size:13px;
    font-weight:500
}
:focus-visible {
    outline:3px solid #39a99f;
    outline-offset:3px
}
summary {
    cursor:pointer;
    font-weight:700;
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:28px
}
summary::-webkit-details-marker {
    display:none
}
summary:after {
    content:'＋';
    font-weight:400;
    color:var(--muted);
    flex-shrink:0
}
details[open]>summary:after {
    content:'−'
}
details>summary+.form-grid {
    margin-top:23px
}
[hidden] {
    display:none!important
}
.skip {
    position:absolute;
    top:-60px;
    left:12px;
    background:var(--navy);
    color:white;
    padding:8px;
    z-index:100
}
.skip:focus {
    top:8px
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
.muted {
    color:var(--muted)
}
.small {
    font-size:12px
}
.eyebrow {
    font:700 10px Manrope,system-ui;
    letter-spacing:.16em;
    display:block
}
.teal {
    color:var(--teal)
}
.row {
    display:flex;
    align-items:center;
    gap:10px
}
.between {
    justify-content:space-between
}
.topbar {
    height:82px;
    padding:0 max(30px,calc((100vw - 1320px)/2));
    display:flex;
    align-items:center;
    background:#fff;
    border-bottom:1px solid var(--line);
    gap:46px
}
.brand {
    display:flex;
    gap:12px;
    align-items:center;
    color:var(--ink);
    white-space:nowrap;
    font-size:16px;
    font-weight:500
}
.brand:hover {
    text-decoration:none
}
.brand-mark {
    width:43px;
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    background:var(--teal);
    color:white;
    font-size:23px;
    font-weight:800;
    letter-spacing:-2px
}
.brand-mark span {
    font-size:10px;
    letter-spacing:-.5px;
    margin:9px 1px 0 1px
}
.topnav {
    display:flex;
    gap:30px;
    align-self:stretch
}
.topnav a {
    display:flex;
    align-items:center;
    font-weight:600;
    font-size:13px;
    color:var(--muted);
    border-bottom:2px solid transparent;
    padding:0 2px
}
.topnav a.current {
    color:var(--teal);
    border-bottom-color:var(--teal)
}
.account {
    margin-left:auto;
    display:flex;
    gap:11px;
    align-items:center
}
.avatar {
    height:35px;
    width:35px;
    display:grid;
    place-items:center;
    background:#eaf3f2;
    color:var(--teal);
    font-weight:800;
    border-radius:50%
}
.account-name {
    font-size:12px;
    font-weight:700;
    line-height:1.4
}
.account-name small {
    display:block;
    font-size:10px;
    font-weight:400;
    color:var(--muted)
}
.shell {
    max-width:1320px;
    margin:0 auto;
    padding:30px 30px 50px;
    min-height:calc(100vh - 180px)
}
.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px 0 22px
}
.pill {
    display:inline-flex;
    align-items:center;
    border:1px solid var(--line);
    padding:5px 10px;
    border-radius:7px;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
    background:#fff
}
.green {
    background:#edf7f1;
    color:#267958;
    border-color:#d9ede0
}
.amber {
    background:#fff5e2;
    color:#95611b;
    border-color:#f5e5c5
}
.website-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    margin:5px 0 25px
}
.website-card {
    background:white;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    color:var(--ink);
    box-shadow:var(--shadow);
    min-width:0;
    transition:transform .15s,border-color .15s
}
.website-card:hover {
    transform:translateY(-3px);
    border-color:#a5cecc;
    text-decoration:none
}
.website-symbol {
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    background:#eef5f7;
    border-radius:13px;
    color:#42677b;
    font-size:20px;
    font-weight:700
}
.website-card h2 {
    margin-top:22px
}
.website-card>p {
    font-size:12px;
    overflow-wrap:anywhere
}
.card-bottom {
    border-top:1px solid #edf1f4;
    padding-top:18px;
    margin-top:20px;
    font-size:10px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    color:var(--muted)
}
.card-bottom b {
    color:var(--teal)
}
.card {
    background:white;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    margin-bottom:22px;
    box-shadow:var(--shadow)
}
.card>summary {
    font-size:16px
}
.card[open]>summary {
    margin-bottom:18px
}
.card .card {
    box-shadow:none
}
.empty {
    padding:44px 24px;
    text-align:center;
    color:var(--muted)
}
.empty h2 {
    color:var(--ink);
    margin:12px 0
}
.empty p {
    max-width:450px;
    margin:0 auto
}
.empty-icon {
    font-size:35px;
    color:var(--teal)
}
.website-grid>.empty {
    grid-column:1/-1
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    align-items:start
}
.span-2 {
    grid-column:span 2
}
.span-3 {
    grid-column:span 3
}
.align-end {
    align-self:end
}
.stack {
    display:flex;
    flex-direction:column;
    gap:15px
}
.workspace-bar {
    display:flex;
    gap:18px;
    align-items:center;
    margin:-4px 0 23px
}
.back-link {
    font-size:12px;
    color:var(--muted)
}
.workspace-select {
    max-width:380px;
    margin-right:auto;
    min-width:0
}
.workspace-select select {
    font-size:12px;
    background:transparent;
    border-color:transparent;
    min-height:35px;
    padding:5px 20px 5px 7px;
    font-weight:700
}
.hero {
    position:relative;
    overflow:hidden;
    border-radius:20px;
    background:linear-gradient(115deg,#142f47 0%,#205671 62%,#299d94 115%);
    min-height:174px;
    padding:31px 34px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    color:white;
    box-shadow:0 9px 25px #193b4b0d
}
.hero:after {
    content:'';
    pointer-events:none;
    position:absolute;
    width:280px;
    height:280px;
    border:1px solid #ffffff13;
    border-radius:50%;
    right:100px;
    top:-160px;
    box-shadow:0 0 0 60px #ffffff04,0 0 0 120px #ffffff03
}
.hero h1 {
    font-size:29px;
    margin:8px 0 9px
}
.hero p {
    font-size:12px;
    color:#d6e7ed;
    margin:0
}
.hero .eyebrow {
    font-size:9px;
    color:#a6d1d4
}
.hero-button {
    background:#ffffff13;
    border-color:#ffffff40;
    color:white;
    min-height:38px;
    font-size:11px;
    z-index:1;
    flex-shrink:0
}
.tabs {
    display:flex;
    gap:5px;
    overflow-x:auto;
    margin:22px 0;
    padding:0 0 13px;
    border-bottom:1px solid var(--line);
    scrollbar-width:thin
}
.tabs a {
    padding:10px 15px;
    color:var(--muted);
    font-size:12px;
    font-weight:700;
    border-radius:8px;
    white-space:nowrap
}
.tabs a.active {
    background:#e5f0ef;
    color:#0e6a6b
}
.tabs a:hover {
    text-decoration:none;
    background:#ecf1f4
}
.date-card {
    padding:18px 22px
}
.date-form {
    display:flex;
    gap:13px;
    align-items:end
}
.date-form label {
    font-size:10px;
    gap:5px;
    width:160px
}
.date-form input {
    font-size:12px;
    min-height:38px;
    padding:8px 10px
}
.date-form button {
    min-height:38px;
    padding:9px 17px;
    font-size:11px
}
.date-arrow {
    align-self:end;
    line-height:38px;
    color:#9aa8b3
}
.timezone {
    margin-left:auto;
    font-size:10px;
    align-self:center;
    color:var(--muted)
}
.quick-dates {
    display:flex;
    gap:7px;
    margin-top:14px;
    flex-wrap:wrap
}
.chip {
    background:#f5f7f9;
    color:#768896;
    padding:5px 10px;
    font-size:10px;
    border:1px solid transparent;
    border-radius:5px
}
.chip.selected {
    background:#eef7f5;
    color:#14776c;
    border-color:#cce4e0
}
.kpi-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:13px;
    margin-bottom:23px
}
.kpi {
    background:white;
    border:1px solid var(--line);
    padding:18px;
    border-radius:12px;
    min-width:0;
    box-shadow:var(--shadow)
}
.kpi-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    color:#697f8d
}
.kpi .small {
    font-size:10px;
    font-weight:500
}
.metric-index {
    font-size:9px;
    color:#adbac2
}
.kpi strong {
    font-family:Manrope,sans-serif;
    display:block;
    font-size:31px;
    font-weight:800;
    letter-spacing:-.04em;
    margin:6px 0
}
.kpi p {
    font-size:9px;
    line-height:1.5;
    color:#8b9aa6;
    margin:0
}
.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:21px
}
.section-heading p {
    margin:2px 0 0
}
.filters {
    display:flex;
    gap:8px;
    flex-wrap:wrap
}
.filters select,.filters input {
    font-size:11px;
    min-height:37px;
    padding:8px 10px;
    max-width:205px
}
.filters select {
    width:140px
}
.report-section {
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    margin:15px 0 0
}
.report-section>summary {
    padding:14px 17px;
    background:#f8fafb;
    font-size:12px
}
.report-section>summary>span:first-child {
    display:flex;
    align-items:center;
    gap:10px
}
.report-section>summary>span:nth-child(2) {
    margin-left:auto;
    font-size:10px;
    font-weight:400
}
.live-dot {
    height:6px;
    width:6px;
    display:inline-block;
    background:#159c76;
    border-radius:50%;
    box-shadow:0 0 0 4px #159c7610
}
.table-scroll {
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    width:100%;
    scrollbar-width:thin
}
table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    font-size:12px;
    white-space:nowrap
}
th {
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.045em;
    background:#f8fafb;
    color:#7d8d99;
    font-weight:600;
    padding:14px 13px;
    border-bottom:1px solid var(--line)
}
td {
    border-bottom:1px solid #edf1f4;
    padding:15px 13px;
    vertical-align:middle
}
tr:last-child td {
    border-bottom:0
}
tbody tr:hover {
    background:#fbfcfd
}
td strong {
    font-size:11px;
    font-weight:700
}
td input,td select {
    font-size:12px;
    padding:8px;
    min-height:36px;
    min-width:120px
}
.cell-sub {
    margin-top:6px;
    display:flex;
    gap:7px;
    align-items:center
}
.code {
    display:inline-block;
    background:#ebf5f3;
    color:#147b70;
    font:600 10px 'DM Sans',sans-serif;
    border-radius:4px;
    padding:3px 7px
}
.source {
    font-size:9px;
    background:#eef2f7;
    color:#60758c;
    border-radius:5px;
    display:inline-block;
    padding:4px 8px
}
.source.meta {
    background:#edf3ff;
    color:#527bc1
}
.source.google {
    background:#fcefe9;
    color:#b5654d
}
.source.telegram {
    background:#e8f4fb;
    color:#4089ac
}
.source.app {
    background:#f0eafa;
    color:#8164a1
}
.source.unassigned {
    background:#fff1d9;
    color:#986a21
}
.number-link {
    font-size:11px
}
.text-link {
    font-size:10px
}
.report-empty {
    padding:22px;
    text-align:center;
    margin:0
}
.explanation {
    font-size:11px;
    color:var(--muted);
    margin-top:20px
}
.explanation summary {
    justify-content:start;
    gap:15px;
    font-size:11px;
    font-weight:500
}
.explanation p {
    line-height:1.9;
    margin:12px 0
}
.explanation li {
    margin-bottom:8px;
    white-space:normal
}
.inline-details {
    min-width:110px
}
.inline-details[open] {
    min-width:260px
}
.inline-details summary {
    font-size:12px;
    color:var(--teal)
}
.inline-details form {
    margin-top:16px
}
.notice {
    background:#edf4f6;
    border:1px solid #d7e6ed;
    padding:15px 19px;
    border-radius:10px;
    font-size:12px;
    margin-bottom:20px
}
.notice.success {
    background:#edf7f1;
    border-color:#cce5d5;
    color:#317154
}
.notice.error {
    background:#fff1ec;
    border-color:#efd9d0;
    color:#a35036
}
.notice ul {
    padding-left:18px;
    margin:7px 0 0
}
.section-editor {
    padding:18px 0;
    border-top:1px solid var(--line)
}
.section-editor summary {
    font-size:12px
}
.section-editor summary span {
    margin-left:auto;
    font-size:10px
}
.section-editor .form-grid {
    margin:20px 0 5px
}
.save-bar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:10px 0 25px
}
.save-bar .row {
    flex-shrink:0
}
.token-row {
    display:flex;
    gap:8px;
    align-items:center
}
.token-row input {
    font:12px ui-monospace,monospace
}
.token-row button {
    flex-shrink:0;
    font-size:11px
}
pre {
    background:#f3f6f8;
    border:1px solid #e6ecef;
    border-radius:9px;
    padding:20px;
    overflow:auto;
    font:11px/1.9 ui-monospace,SFMono-Regular,monospace;
    color:#365c70;
    max-width:100%
}
code {
    font:11px/1.6 ui-monospace,monospace;
    overflow-wrap:anywhere
}
p code,li code {
    background:#f0f4f6;
    padding:2px 5px;
    border-radius:4px
}
.method {
    display:inline-flex;
    padding:3px 7px;
    border-radius:5px;
    background:#e5f4ef;
    color:#24876c;
    font-size:10px;
    font-weight:700;
    margin-right:8px
}
.notes-text {
    white-space:pre-wrap
}
.pagination {
    display:flex;
    gap:20px;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid var(--line);
    padding-top:20px;
    margin-top:15px;
    font-size:11px
}
.pagination>span {
    color:var(--muted)
}
.app-footer {
    max-width:1320px;
    margin:auto;
    padding:20px 30px 30px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:10px;
    color:#92a0aa;
    border-top:1px solid var(--line)
}
.app-footer details {
    max-width:360px
}
.app-footer details[open] {
    color:var(--ink);
    padding:10px;
    max-width:650px;
    background:white
}
.app-footer summary {
    font-size:10px;
    font-weight:400
}
.app-footer .form-grid {
    grid-template-columns:1fr
}
.toast {
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    padding:13px 20px;
    background:var(--navy);
    color:white;
    border-radius:10px;
    box-shadow:0 8px 40px #142e4530;
    z-index:30;
    font-size:12px
}
.login-page {
    background:white
}
.login-layout {
    display:grid;
    grid-template-columns:1fr 1fr;
    min-height:100vh;
    padding:20px
}
.login-story {
    border-radius:23px;
    background:linear-gradient(140deg,#122b40,#16465d 70%,#267c7b);
    color:white;
    padding:40px 55px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    position:relative;
    overflow:hidden
}
.login-story:after {
    content:'';
    position:absolute;
    width:500px;
    height:500px;
    border:1px solid #ffffff12;
    border-radius:50%;
    right:-270px;
    bottom:-180px;
    box-shadow:0 0 0 70px #ffffff03,0 0 0 140px #ffffff02
}
.login-story .brand {
    color:white
}
.login-story h1 {
    font-size:clamp(40px,4.4vw,65px);
    letter-spacing:-.055em;
    line-height:1.16;
    margin:22px 0
}
.login-story em {
    color:#7ed5c6;
    font-style:normal
}
.login-story p {
    color:#b8d0dc;
    font-size:13px;
    line-height:1.9
}
.login-story .eyebrow {
    color:#82bcbf
}
.login-bottom {
    font-size:10px;
    color:#89aab8
}
.login-form-wrap {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:45px
}
.login-form {
    width:100%;
    max-width:340px
}
.login-form h2 {
    font-size:32px;
    margin:10px 0
}
.login-form>p {
    font-size:12px
}
.login-form form {
    margin:30px 0 20px;
    display:flex;
    flex-direction:column;
    gap:20px
}
.login-form input {
    padding:13px 14px
}
.login-form .check {
    margin:0 0 5px
}
.login-form button {
    padding:14px
}
.login-form>.small {
    font-size:10px
}
@media(min-width:1600px) {
    .shell {
        padding-top:38px
    }
}
@media(max-width:1100px) {
    .topbar {
        gap:25px;
        padding:0 25px
    }
    .website-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .kpi-grid {
        gap:9px
    }
    .kpi {
        padding:14px
    }
    .kpi-top .small {
        font-size:9px
    }
    .metric-index {
        display:none
    }
    .section-heading {
        align-items:flex-start;
        flex-wrap:wrap
    }
    .form-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .span-3 {
        grid-column:span 2
    }
    .save-bar {
        align-items:flex-start;
        flex-direction:column
    }
    .login-story {
        padding:35px
    }
    .login-form-wrap {
        padding:30px
    }
}
@media(max-width:760px) {
    .shell {
        padding:22px 17px 35px
    }
    .topbar {
        height:68px;
        padding:0 17px;
        gap:20px
    }
    .brand {
        font-size:13px;
        gap:8px
    }
    .brand-mark {
        width:34px;
        height:34px;
        font-size:21px;
        border-radius:10px
    }
    .brand-mark span {
        font-size:8px
    }
    .topnav {
        gap:15px
    }
    .topnav a {
        font-size:11px
    }
    .account-name,.avatar {
        display:none
    }
    .account {
        gap:0
    }
    .page-heading {
        padding:10px 0 18px
    }
    .page-heading h1 {
        font-size:25px
    }
    .page-heading p {
        font-size:12px
    }
    .website-grid {
        grid-template-columns:1fr;
        gap:15px
    }
    .website-card {
        padding:21px
    }
    .workspace-bar {
        gap:8px;
        margin-bottom:16px
    }
    .workspace-bar .pill {
        font-size:8px;
        padding:4px 7px
    }
    .workspace-select {
        max-width:210px
    }
    .workspace-select select {
        font-size:10px
    }
    .back-link {
        font-size:10px
    }
    .hero {
        padding:25px 23px;
        min-height:162px;
        align-items:flex-start;
        flex-direction:column;
        gap:17px;
        border-radius:16px
    }
    .hero h1 {
        font-size:25px
    }
    .hero-button {
        font-size:10px;
        min-height:33px;
        padding:7px 12px
    }
    .hero p {
        font-size:11px
    }
    .tabs {
        margin:17px 0;
        gap:2px;
        padding-bottom:10px
    }
    .tabs a {
        font-size:10px;
        padding:9px 11px
    }
    .card {
        padding:19px 16px;
        margin-bottom:17px;
        border-radius:13px
    }
    .card>summary {
        font-size:14px
    }
    .date-form {
        gap:8px;
        flex-wrap:wrap
    }
    .date-form label {
        width:calc(50% - 14px)
    }
    .date-arrow {
        font-size:12px
    }
    .date-form button {
        min-height:35px;
        font-size:10px;
        margin-top:5px
    }
    .timezone {
        font-size:9px
    }
    .quick-dates {
        gap:5px
    }
    .chip {
        font-size:9px;
        padding:5px 8px
    }
    .kpi-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
        margin-bottom:17px
    }
    .kpi {
        padding:15px
    }
    .kpi:last-child {
        grid-column:span 2;
        display:grid;
        grid-template-columns:1fr auto;
        column-gap:20px
    }
    .kpi:last-child strong {
        grid-row:span 2;
        grid-column:2;
        margin:0;
        align-self:center
    }
    .kpi:last-child p {
        grid-column:1
    }
    .kpi strong {
        font-size:27px
    }
    .kpi .small {
        font-size:10px
    }
    .kpi p {
        font-size:9px
    }
    .filters {
        width:100%;
        display:grid;
        grid-template-columns:1fr 1.3fr
    }
    .filters input,.filters select {
        width:100%;
        max-width:none;
        min-width:0;
        font-size:10px
    }
    .section-heading {
        gap:13px;
        margin-bottom:17px
    }
    .section-heading h2 {
        font-size:17px
    }
    .report-section>summary {
        padding:12px 11px;
        gap:5px;
        font-size:11px;
        flex-wrap:wrap
    }
    .report-section>summary>span:nth-child(2) {
        font-size:8px
    }
    .report-section>summary>span:first-child {
        gap:7px
    }
    .report-section>summary:after {
        display:none
    }
    th {
        font-size:8px;
        padding:12px 10px
    }
    td {
        font-size:11px;
        padding:13px 10px
    }
    .form-grid {
        grid-template-columns:1fr;
        gap:17px
    }
    .span-2,.span-3 {
        grid-column:span 1
    }
    .save-bar {
        gap:14px
    }
    .save-bar>.row {
        flex-wrap:wrap;
        gap:7px
    }
    .save-bar button,.save-bar .button {
        font-size:11px;
        padding:9px 11px
    }
    .token-row {
        flex-wrap:wrap
    }
    .token-row input {
        flex-basis:100%
    }
    .token-row button {
        min-height:35px;
        padding:8px 12px
    }
    .notice {
        font-size:11px;
        padding:12px 14px
    }
    .app-footer {
        padding:18px;
        flex-wrap:wrap;
        gap:10px;
        font-size:9px
    }
    .app-footer>details {
        width:100%
    }
    .app-footer details .form-grid {
        margin-top:12px
    }
    pre {
        font-size:10px;
        padding:14px
    }
    .login-layout {
        grid-template-columns:1fr;
        padding:12px
    }
    .login-story {
        padding:23px;
        border-radius:17px;
        min-height:260px
    }
    .login-story h1 {
        font-size:34px;
        margin:15px 0
    }
    .login-story h1 br:nth-child(2) {
        display:none
    }
    .login-story .brand {
        margin-bottom:30px
    }
    .login-story .eyebrow,.login-story p,.login-bottom {
        display:none
    }
    .login-form-wrap {
        padding:40px 23px
    }
    .login-form h2 {
        font-size:28px
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important;
        transition:none!important;
        animation:none!important
    }
}
/* Keep report labels readable without crowding the workspace. */
@media(min-width:761px) {
    .tabs a {
        font-size:13px
    }
    .kpi .small {
        font-size:12px
    }
    .kpi p {
        font-size:11px
    }
    .metric-index {
        font-size:10px
    }
    th {
        font-size:10px
    }
    td strong {
        font-size:12px
    }
    .report-section>summary>span:nth-child(2) {
        font-size:11px
    }
    .hero p {
        font-size:13px
    }
}

/* Marketing overview and account management */
:root {
    --bg: #f3f6fa;
    --ink: #192f4c;
    --teal: #127d83;
}
.topbar { box-shadow: 0 2px 14px #122b4605; }
.topnav a.current { color: #126b79; }
.account-link { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.account-link:hover { text-decoration: none; }
.overview-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    background: linear-gradient(110deg, #142d49, #1c506d 70%, #15898c);
    padding: 32px 34px; margin: 0 0 22px; border-radius: 19px; color: white;
    position: relative; overflow: hidden;
}
.overview-hero:after {
    content: ''; width: 280px; height: 280px; border: 1px solid #ffffff17;
    border-radius: 50%; position: absolute; right: 170px; top: -180px;
    box-shadow: 0 0 0 55px #ffffff05, 0 0 0 110px #ffffff03; pointer-events: none;
}
.overview-hero h1 { font-size: 30px; margin: 9px 0 12px; }
.overview-hero p { color: #c5dee6; font-size: 13px; margin: 0; }
.overview-hero .eyebrow { color: #a2d7da; }
.period-badge { position: relative; z-index: 1; padding: 15px 19px; border: 1px solid #ffffff35; background: #ffffff0a; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.period-badge .live-dot { background: #74d5b8; margin-right: 8px; }
.period-badge small { display: block; margin-top: 5px; color: #c1dce4; font-size: 10px; }
.summary-kpis .kpi { border-top: 3px solid #c6e6e5; }
.summary-kpis .kpi-top { font-size: 12px; font-weight: 600; }
.summary-kpis .kpi strong { font-size: 32px; }
.overview-panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; }
.trend-chart { height: 165px; display: flex; align-items: stretch; gap: 18px; padding-top: 5px; }
.trend-day { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.trend-count { font-weight: 600; color: #6c879a; }
.trend-track { width: 100%; max-width: 47px; height: 112px; margin-top: auto; display: flex; align-items: end; background: #f3f7f8; border-radius: 6px 6px 0 0; overflow: hidden; }
.trend-track > div { width: 100%; min-height: 2px; background: linear-gradient(#48adab, #147a84); border-radius: 6px 6px 0 0; }
.conversion-card h2 { margin: 8px 0 0; font-size: 17px; }
.conversion-value { font-family: Manrope, sans-serif; font-size: 39px; font-weight: 800; letter-spacing: -.04em; color: #167882; margin: 12px 0 0; line-height: 1.3; }
.conversion-value small { font-size: 22px; padding-left: 3px; }
.conversion-card p { margin: 4px 0 12px; font-size: 11px; }
.conversion-progress { height: 5px; border-radius: 4px; background: #eaf1f4; overflow: hidden; margin-bottom: 18px; }
.conversion-progress span { display: block; height: 100%; background: #1b9890; }
.snapshot-line { display: flex; justify-content: space-between; gap: 14px; margin-top: 9px; font-size: 11px; }
.snapshot-line > span { color: var(--muted); }
.snapshot-line strong { color: var(--ink); }
.website-heading { margin-top: 13px; }
.search-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 21px; }
.search-field { flex: 1; }
.search-toolbar > label:not(.search-field) { max-width: 230px; flex: 1; }
.search-toolbar input, .search-toolbar select { font-size: 12px; }
.search-toolbar > button { flex-shrink: 0; }
.search-toolbar > a { font-size: 12px; }
.website-card { display: flex; flex-direction: column; }
.website-card h2 { margin-top: 20px; }
.website-card .card-bottom { margin-top: 17px; padding-top: 13px; }
.website-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.website-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: 8px; background: #f6f8fa; padding: 13px 14px; margin: auto 0 0; }
.website-metrics span { display: block; font-size: 10px; color: var(--muted); }
.website-metrics strong { display: block; font-size: 17px; margin-top: 3px; font-family: Manrope, sans-serif; }
.danger-text { color: #b45145; }
.wrap { flex-wrap: wrap; }
.action-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #dbe5ec; border-radius: 17px; padding: 27px; color: var(--ink); box-shadow: 0 25px 100px #142b4640; overflow-y: auto; }
.action-dialog::backdrop { background: #10273d80; backdrop-filter: blur(3px); }
.action-dialog .stack { gap: 17px; }
.action-dialog h2, .action-dialog p { margin: 0; }
.dialog-close { border: 0; color: var(--muted); background: transparent; padding: 0; width: 30px; min-height: 30px; font-size: 24px; }
.dialog-close:hover { background: #eef2f5; color: var(--ink); }
.dialog-actions { display: flex; justify-content: end; gap: 10px; margin-top: 5px; }
.danger-button { background: #ad4e42; border-color: #ad4e42; }
.danger-button:hover { background: #923f35; border-color: #923f35; }
.account-page { max-width: 760px; margin: 15px auto 45px; }
.account-page > .card { padding: 30px; }
.password-form { max-width: 540px; gap: 20px; margin-top: 23px; }
.password-form input { width: 100%; }
.app-footer { align-items: center; }
.app-footer a { color: var(--muted); font-size: 11px; }
.hostname-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: start; gap: 18px; }
.hostname-form > button { margin-top: 26px; }
.availability-hint { margin: 16px 0 18px; }
.availability-form { display: grid; grid-template-columns: minmax(180px, 280px) auto; align-items: end; justify-content: start; gap: 14px; }
.availability-form label { min-width: 0; }
.availability-form button { min-height: 43px; }
.inline-details .stack { white-space: normal; }
.inline-details { margin-top: 9px; }
.integration-step { display: flex; align-items: center; gap: 12px; }
.step-number { width: 29px; height: 29px; background: #e6f4f2; color: #168476; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
@media (max-width: 1000px) {
    .overview-panels { grid-template-columns: 1fr 1fr; gap: 16px; }
    .overview-hero { padding: 27px; }
    .overview-hero h1 { font-size: 27px; }
}
@media (max-width: 760px) {
    .overview-hero { flex-direction: column; align-items: start; padding: 26px 23px; gap: 21px; }
    .overview-hero h1 { font-size: 27px; max-width: 320px; }
    .overview-hero p { font-size: 12px; }
    .period-badge { padding: 10px 14px; font-size: 11px; }
    .period-badge small { display: inline; margin-left: 10px; font-size: 9px; }
    .overview-panels { grid-template-columns: 1fr; gap: 0; }
    .summary-kpis .kpi-top { font-size: 11px; }
    .summary-kpis .kpi strong { font-size: 28px; }
    .trend-chart { gap: 13px; }
    .conversion-value { font-size: 36px; }
    .search-toolbar { flex-wrap: wrap; gap: 8px; }
    .search-field { flex-basis: 100%; }
    .search-toolbar > label:not(.search-field) { max-width: none; }
    .search-toolbar > button { font-size: 11px; }
    .website-actions .button { padding: 9px 13px; }
    .account-page { margin-top: 12px; }
    .account-page > .card { padding: 22px 18px; }
    .password-form { width: 100%; max-width: none; }
    .password-form button { width: 100%; }
    .hostname-form { grid-template-columns: 1fr; gap: 14px; }
    .hostname-form > button { margin-top: 0; justify-self: start; }
    .availability-form { grid-template-columns: 1fr; justify-content: stretch; }
    .availability-form button { justify-self: start; }
    .account-link { gap: 0; }
    .account-link .avatar { display: grid; width: 30px; height: 30px; font-size: 11px; }
    .account { gap: 9px; }
    .action-dialog { padding: 23px 20px; }
}

/* Constrain narrow screens and stack controls instead of clipping them. */
.shell, .topbar, .app-footer, .card, .website-card, .overview-hero { min-width: 0; }
.row, .save-bar > *, .search-toolbar > *, .website-actions > * { min-width: 0; }
.domain-remove { margin-top: 12px; }
@media(max-width: 480px) {
 .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; height:auto; gap:8px 12px; padding:12px 16px 0; }
 .topbar .brand { font-size:14px; gap:8px; min-width:0; }
 .topbar .brand-mark { width:34px; height:34px; flex-shrink:0; }
 .topbar .account { grid-column:2; grid-row:1; margin-left:0; }
 .topbar .topnav { grid-column:1 / -1; grid-row:2; justify-content:flex-start; margin:0; gap:24px; }
 .topnav a { padding:10px 0; }
 .shell { width:auto; margin:0 16px; padding-left:0; padding-right:0; }
 .save-bar { position:static; display:flex; flex-direction:column; align-items:stretch; gap:12px; }
 .save-bar > .row { display:grid; grid-template-columns:1fr; width:100%; }
 .save-bar .button, .save-bar button { width:100%; white-space:normal; }
 .website-actions { flex-wrap:wrap; }
 .search-toolbar > label { flex-basis:100%; width:100%; }
 .period-badge { max-width:100%; white-space:normal; }
 .period-badge small { display:block; margin:5px 0 0; }
 .token-row { display:grid; grid-template-columns:1fr 1fr; }
 .token-row input { grid-column:1 / -1; width:100%; min-width:0; }
 .hostname-form button, .availability-form button { width:100%; justify-self:stretch; }
 .dialog-actions { display:flex; flex-wrap:wrap; }
 .dialog-actions button { flex:1; min-width:100px; }
 .workspace-bar { flex-wrap:wrap; }
 .workspace-select { max-width:100%; }
}

.integration-keys dt { font-weight:700; margin-top:16px; }
.integration-keys dd { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.7; }

.doc-section-heading, .overview-shortcut {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.doc-section-heading h3 { margin-bottom: 0; }
.doc-section-heading { margin-bottom: 16px; }
.doc-copy-button { flex-shrink: 0; }
.explanation > .doc-copy-button, details.card > .doc-copy-button { margin: 12px 0; }
@media (max-width: 600px) {
    .doc-section-heading, .overview-shortcut { flex-direction: column; gap: 12px; }
    .page-heading > .button { width: 100%; }
}

/* Admin dialogs keep form height independent of the account table. */
.admin-row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-dialog { width: 640px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.admin-dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.admin-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.admin-dialog-header h2 { margin: 7px 0 8px; }
.admin-dialog-body { padding: 24px 28px; overflow-y: auto; min-height: 0; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-password-field { grid-column: 1 / -1; }
.admin-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #f8fafb; }
.website-card { position: relative; cursor: pointer; }
.website-workspace-link { position: static; }
.website-workspace-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.website-card [data-delete-url] { position: relative; z-index: 2; }
.website-card:has(.website-workspace-link:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 600px) {
    .admin-dialog-header { padding: 21px 20px 18px; }
    .admin-dialog-body { padding: 20px; }
    .admin-fields { grid-template-columns: 1fr; gap: 16px; }
    .admin-dialog-footer { padding: 16px 20px; }
    .admin-dialog-footer button { flex: 1; }
}

/* Product interface: readable type, restrained surfaces, clear actions. */
:root {
    --ink: #24323f;
    --muted: #566574;
    --teal: #24766d;
    --navy: #243b3a;
    --bg: #f6f7f8;
    --line: #e4e8eb;
    --radius: 12px;
    --shadow: 0 1px 3px #18263004;
}
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, .brand { font-family: 'DM Sans', system-ui, sans-serif; letter-spacing: -.02em; }
h1 { font-size: 27px; line-height: 1.3; font-weight: 700; }
h2, .section-heading h2, .conversion-card h2 { font-size: 20px; line-height: 1.4; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 700; margin-bottom: 18px; }
p { margin-bottom: 12px; }
small, .small, label small, .pill, .workspace-bar .pill, .timezone, .chip,
.kpi p, .report-section > summary > span:nth-child(2), .pagination,
.app-footer, .app-footer a, .period-badge small, .trend-day,
.website-metrics span, .method, .card-bottom, .section-editor summary span,
.app-footer summary { font-size: 14px; line-height: 1.6; }
.eyebrow, .hero .eyebrow { font-size: 14px; letter-spacing: .08em; }
label, .topnav a, .tabs a, .back-link, .workspace-select select,
.date-form label, .filters select, .filters input, .search-toolbar input,
.search-toolbar select, .search-toolbar > a, .small-button, .text-link,
.number-link, .token-row button, .date-form button, .hero-button,
.search-toolbar > button, .snapshot-line, .explanation, summary,
.report-section > summary, .notice, .toast, .check, .explanation summary,
.inline-details summary, .section-editor summary { font-size: 15px; }
label { font-weight: 600; line-height: 1.5; }
input, select, textarea, td input, td select, .date-form input, .token-row input {
    font-size: 16px; line-height: 1.5; min-height: 46px; border-color: #dce2e6;
    border-radius: 7px; box-shadow: 0 1px 2px #18263003;
}
input::placeholder, textarea::placeholder { color: #63717d; opacity: 1; font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: #b4c2c9; }
button, .button, .save-bar button, .save-bar .button { font-size: 15px; min-height: 44px; border-radius: 7px; padding: 9px 14px; font-weight: 600; }
.small-button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.icon-button, .dialog-close { font-size: 22px; }
.secondary { box-shadow: 0 1px 2px #18263005; }
.secondary:hover { background: #f5f8f7; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); box-shadow: none; }
.brand { font-size: 17px; font-weight: 500; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 22px; }
.account-name { font-size: 14px; font-weight: 600; }
.account-name small { font-size: 14px; color: var(--muted); }
.topnav a { font-weight: 600; }
.topnav a.current { color: var(--teal); }
.avatar, .account-link .avatar { background: #eef3f2; font-size: 14px; }
.shell { padding-top: 30px; padding-bottom: 36px; }
.page-heading { margin-bottom: 24px; align-items: center; }
.page-heading h1 { margin: 0 0 6px; }
.page-heading p { font-size: 15px; margin: 0; }
.card { padding: 22px; margin-bottom: 20px; border-radius: 12px; box-shadow: var(--shadow); }
.card > summary { font-size: 17px; }
.overview-hero { background: transparent; color: var(--ink); border-radius: 0; padding: 0; margin-bottom: 24px; gap: 20px; box-shadow: none; min-height: 0; }
.overview-hero::after, .hero::after { display: none; }
.overview-hero h1 { font-size: 27px; margin: 0 0 6px; }
.overview-hero p { color: var(--muted); font-size: 15px; }
.period-badge { background: white; border: 1px solid var(--line); padding: 9px 13px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.period-badge small { color: var(--muted); font-size: 14px; margin-top: 2px; }
.period-badge .live-dot { display: none; }
.kpi-grid { gap: 14px; margin-bottom: 22px; }
.kpi, .summary-kpis .kpi { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.kpi-top, .kpi .small, .summary-kpis .kpi-top { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.metric-index { display: none; }
.kpi strong, .summary-kpis .kpi strong { font-family: inherit; font-size: 27px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.kpi p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.overview-panels { gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.section-heading { margin-bottom: 18px; }
.trend-chart { height: 170px; gap: 16px; }
.trend-count { color: var(--muted); }
.trend-track { max-width: 36px; background: #f0f4f3; border-radius: 4px; }
.trend-track > div { background: #57958a; border-radius: 4px; }
.conversion-card h2 { margin: 0; }
.conversion-card p { font-size: 14px; }
.conversion-value { font-family: inherit; font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-top: 14px; }
.conversion-value small { font-size: 19px; }
.conversion-progress { height: 4px; }
.snapshot-line { margin-top: 12px; }
.website-grid { gap: 18px; }
.website-card { padding: 22px; border-radius: 12px; box-shadow: var(--shadow); }
.website-card:hover { transform: none; border-color: #8ab3a9; box-shadow: 0 4px 18px #243b3a08; }
.website-symbol { width: 38px; height: 38px; font-size: 17px; border-radius: 9px; background: #edf4f1; color: #387263; }
.website-card h2 { font-size: 18px; margin: 18px 0 5px; }
.website-card > p { font-size: 15px; }
.website-metrics { background: #f7f9f9; padding: 13px 15px; border-radius: 8px; }
.website-metrics strong { font-family: inherit; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-bottom { padding-top: 14px; margin-top: 16px; }
.website-actions { margin-top: 14px; }
.website-workspace-link { background: transparent; border: 0; color: var(--teal); padding-left: 0; box-shadow: none; }
.website-workspace-link::after { border-radius: 12px; }
.search-toolbar { margin-bottom: 22px; gap: 10px; }
.workspace-bar { margin-bottom: 20px; gap: 14px; }
.hero { background: transparent; color: var(--ink); padding: 0; border-radius: 0; min-height: 0; box-shadow: none; margin-bottom: 22px; }
.hero h1 { font-size: 26px; margin: 0; }
.hero-button { background: white; color: var(--ink); border-color: #dce2e6; }
.hero-button:hover { background: #f0f4f3; color: var(--ink); }
.tabs { margin: 0 0 24px; gap: 24px; padding-bottom: 0; border-color: var(--line); }
.tabs a { padding: 12px 0; border-radius: 0; font-size: 15px; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--teal); background: transparent; border-bottom-color: var(--teal); }
.tabs a:hover { background: transparent; color: var(--ink); }
.date-card { padding: 16px 20px; }
.date-form { flex-wrap: wrap; }
.date-form label { font-size: 15px; }
.date-form input { font-size: 16px; }
.chip { color: var(--muted); padding: 5px 9px; border-radius: 6px; }
.report-section { border-radius: 8px; }
.report-section > summary { background: #fafbfb; flex-wrap: wrap; gap: 6px 14px; }
.report-section > summary > span:nth-child(2) { font-size: 14px; }
table { font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums; }
th { color: var(--muted); background: #f8f9fa; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
th, td { padding: 16px 14px; }
td strong { font-size: 15px; font-weight: 600; }
.source, .code { font-size: 14px; }
.source.meta { color: #315a9c; }
.source.google { color: #93482f; }
.source.telegram { color: #246681; }
.source.app { color: #694986; }
pre { font-size: 14px; line-height: 1.8; padding: 18px; background: #f6f8fa; border: 1px solid #e7ecef; border-radius: 8px; color: #35536a; }
code { font-size: 14px; overflow-wrap: anywhere; }
pre code { font-size: inherit; overflow-wrap: normal; }
.integration-keys dd { font-size: 15px; }
.api-documentation .card > p, .explanation p { max-width: 85ch; }
.doc-section-heading { margin-bottom: 14px; align-items: center; }
.doc-copy-button { font-size: 14px; min-height: 40px; padding: 8px 12px; }
.step-number { width: 24px; height: 24px; font-size: 14px; border-radius: 6px; background: #edf4f1; color: var(--teal); }
.explanation { margin-top: 16px; }
.explanation summary { font-size: 15px; font-weight: 500; }
.campaign-create > summary { color: var(--teal); font-weight: 600; }
.campaign-create[open] > summary { margin-bottom: 20px; }
.save-bar { padding: 16px 20px; border-radius: 10px; box-shadow: var(--shadow); }
.notice { font-size: 15px; padding: 12px 16px; border-radius: 8px; }
.admin-dialog { padding: 0; border-radius: 14px; }
.admin-dialog-header { padding: 22px 24px 18px; }
.admin-dialog-header h2 { margin: 0 0 5px; font-size: 20px; }
.admin-dialog-header p { margin: 0; }
.admin-dialog-body { padding: 22px 24px; }
.admin-dialog-footer { padding: 16px 24px; }
.app-footer { padding-top: 18px; font-size: 14px; color: var(--muted); border-color: var(--line); }
.app-footer a { font-size: 14px; }
.account-page { max-width: 820px; }
.login-layout { padding: 0; }
.login-story { border-radius: 0; background: #223d38; padding: 48px 60px; }
.login-story::after { display: none; }
.login-story h1 { font-size: clamp(32px, 3.5vw, 50px); font-weight: 500; letter-spacing: -.03em; }
.login-story p { font-size: 16px; line-height: 1.7; color: #c3d5d0; max-width: 33ch; }
.login-bottom { font-size: 14px; color: #c3d5d0; }
.login-form { max-width: 360px; }
.login-form h2 { font-size: 26px; font-weight: 600; }
.login-form > p { font-size: 15px; }
.login-form > .small { font-size: 14px; }
@media (max-width: 1100px) and (min-width: 761px) {
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topbar { gap: 20px; }
    .account-name { max-width: 160px; }
}
@media (max-width: 760px) {
    h1, .page-heading h1, .overview-hero h1, .hero h1 { font-size: 24px; }
    h2, .section-heading h2, .conversion-card h2 { font-size: 19px; }
    .topbar .brand { font-size: 15px; }
    .topnav a { font-size: 15px; }
    .shell { padding-top: 24px; }
    .page-heading { gap: 16px; }
    .page-heading p, .overview-hero p { font-size: 15px; }
    .overview-hero { padding: 0; flex-direction: row; flex-wrap: wrap; gap: 14px; }
    .period-badge { font-size: 14px; padding: 8px 11px; white-space: normal; }
    .period-badge small { display: block; font-size: 14px; margin: 2px 0 0; }
    .kpi-grid { gap: 10px; }
    .kpi, .summary-kpis .kpi { padding: 15px; }
    .kpi .small, .summary-kpis .kpi-top { font-size: 14px; }
    .kpi strong, .summary-kpis .kpi strong { font-size: 25px; }
    .kpi p { font-size: 14px; }
    .overview-panels { grid-template-columns: 1fr; gap: 0; }
    .card, .website-card { padding: 18px; }
    .hero { flex-direction: row; flex-wrap: wrap; padding: 0; min-height: 0; gap: 14px; }
    .hero-button { font-size: 14px; }
    .tabs { gap: 20px; margin: 0 0 20px; padding-bottom: 0; }
    .tabs a { font-size: 15px; padding: 12px 0; }
    .card > summary { font-size: 17px; }
    .section-heading { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
    .filters { width: 100%; }
    .filters label { flex: 1; min-width: 125px; }
    .filters input, .filters select { width: 100%; max-width: none; }
    input, select, textarea, .date-form input, .filters input, .filters select,
    .search-toolbar input, .search-toolbar select, td input, td select { font-size: 16px; }
    .workspace-select select { font-size: 16px; }
    .workspace-select { max-width: 100%; }
    .workspace-bar .pill { font-size: 14px; }
    .report-section > summary > span:nth-child(2) { margin-left: 0; font-size: 14px; }
    th { font-size: 14px; }
    td { font-size: 15px; }
    .small, label small { font-size: 14px; }
    .trend-day { font-size: 14px; }
    pre { font-size: 14px; }
    .admin-dialog { padding: 0; }
    .admin-dialog-header, .admin-dialog-body { padding: 18px 20px; }
    .admin-dialog-header h2 { font-size: 19px; }
    .admin-dialog-footer { padding: 14px 20px; }
    .doc-section-heading { gap: 12px; align-items: flex-start; }
    .login-story { padding: 24px; }
    .login-story h1 { font-size: 30px; margin: 25px 0 0; }
    .login-form-wrap { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .topbar { height: auto; }
    .topbar .brand-mark { width: 32px; height: 32px; }
    .topbar .topnav { gap: 24px; }
    .date-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .date-form label { width: 100%; }
    .date-form input { width: 100%; min-width: 0; }
    .date-arrow { display: none; }
    .date-form button { margin: 0; }
    .quick-dates { gap: 6px; }
    .chip { padding: 6px 8px; font-size: 14px; }
    .page-heading { flex-wrap: wrap; }
    .website-actions { gap: 12px; }
    .app-footer { gap: 12px; }
}
.api-documentation table { white-space: normal; }
.api-documentation th:first-child, .api-documentation td:first-child { white-space: nowrap; }
.api-documentation td { vertical-align: top; }
.api-documentation { max-width: 1080px; }
@media (max-width: 760px) {
    .admin-accounts { padding: 0; background: transparent; border: 0; box-shadow: none; }
    .admin-accounts .table-scroll { overflow: visible; }
    .admin-accounts table, .admin-accounts tbody { display: block; }
    .admin-accounts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .admin-accounts tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; gap: 16px; margin-bottom: 14px; }
    .admin-accounts td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; }
    .admin-accounts td:first-child, .admin-accounts td:last-child { grid-column: 1 / -1; }
    .admin-accounts td:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .admin-accounts td:first-child strong { font-size: 16px; }
    .admin-accounts td[data-label]::before { content: attr(data-label); display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
    .admin-row-actions { gap: 10px; padding-top: 4px; }
}
/* Campaigns use one row per record, including permanent deletion. */
.campaign-list { padding: 6px 14px; }
.campaign-list table { table-layout: auto; }
.campaign-list th, .campaign-list td { padding: 16px 10px; }
.campaign-list td:first-child input { min-width: 210px; }
.campaign-list [data-save-status] { display: block; min-height: 1.4em; margin-top: 4px; max-width: 36ch; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; color: var(--muted); }
.campaign-list select { min-width: 132px; }
.campaign-key { background: transparent; padding: 0; color: var(--ink); font-size: 14px; user-select: all; }
.campaign-link-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.campaign-row-actions .row { flex-wrap: nowrap; gap: 6px; }
.campaign-list tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
    .campaign-list { padding: 0; background: transparent; border: 0; box-shadow: none; }
    .campaign-list .table-scroll { overflow: visible; }
    .campaign-list table, .campaign-list tbody { display: block; }
    .campaign-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .campaign-list tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 18px; margin-bottom: 14px; background: white; border: 1px solid var(--line); border-radius: 12px; }
    .campaign-list td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; }
    .campaign-list td:first-child, .campaign-list td:nth-child(2), .campaign-list td:nth-child(5), .campaign-list td:last-child { grid-column: 1 / -1; }
    .campaign-list td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
    .campaign-list td:first-child input, .campaign-list select { min-width: 0; width: 100%; }
    .campaign-key { overflow-wrap: anywhere; }
    .campaign-row-actions { padding-top: 14px !important; border-top: 1px solid var(--line) !important; }
    .campaign-row-actions .row { justify-content: flex-end; }
}

.integration-prompt pre { max-height: 65vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.integration-prompt pre code { overflow-wrap: anywhere; }

/* Shared visual template selection and compact workspace identity. */
.template-picker{border:0;padding:0;margin:0;min-width:0}.template-picker legend{font-size:15px;font-weight:600;margin-bottom:14px}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.template-option{position:relative;display:block;cursor:pointer;min-width:0}.template-option>input{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0;min-height:0}.template-choice{display:block;border:2px solid var(--line);border-radius:9px;overflow:hidden;background:white;height:100%;transition:border-color .15s,box-shadow .15s}.template-choice>img{display:block;width:100%;height:auto;aspect-ratio:28/17;border-bottom:1px solid var(--line);object-fit:cover}.template-details{display:block;padding:10px 12px}.template-name{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}.template-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:400;line-height:1.45;color:var(--muted);margin-top:5px}.template-check{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:18px;height:18px;border:1px solid #aab7bd;border-radius:50%;color:transparent}.template-option>input:checked+.template-choice{border-color:var(--teal);box-shadow:0 0 0 2px #247c7314}.template-option>input:checked+.template-choice .template-check{color:white;background:var(--teal);border-color:var(--teal)}.template-option>input:focus-visible+.template-choice{outline:3px solid var(--teal);outline-offset:4px}.template-option:hover .template-choice{border-color:#76a69e}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.workspace-identity{display:flex;align-items:center;gap:12px;min-width:0}.workspace-heading h1{font-size:24px;margin:0;overflow-wrap:anywhere}.workspace-heading>.button{flex-shrink:0}.workspace-status{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.workspace-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#ca953c}.workspace-status.is-active:before{background:#2b956b}@media(max-width:600px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-details{padding:9px}.template-name{font-size:12px}.template-description{font-size:11px}.workspace-heading{gap:10px;margin-bottom:8px}.workspace-heading h1{font-size:22px}.workspace-identity{gap:8px;flex-wrap:wrap}.workspace-heading>.button{font-size:13px;padding:9px 11px;min-height:40px}.workspace-status{font-size:12px}}

@media (min-width:601px) and (max-width:1000px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
