@scope (.au-news) {
:scope{
    --cyan:#38bdf8;
    --blue:#2563eb;
    --green:#22c55e;
    --gold:#f59e0b;
    --purple:#a855f7;
    --red:#ef4444;
    --ink:#020617;
    --panel:#07101d;
    --text:#f8fafc;
    --muted:#9fb0c8;
}
*{box-sizing:border-box}
:focus-visible{outline:3px solid rgba(56,189,248,.9);outline-offset:3px}
:scope{display:flow-root;
    margin:0;
    min-height:100vh;
    font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 10% 0%,rgba(56,189,248,.18),transparent 28%),
        radial-gradient(circle at 90% 8%,rgba(34,197,94,.12),transparent 26%),
        linear-gradient(180deg,#020617,#07101d,#020617);
}
.wrap{
    width:min(1180px,calc(100% - 24px));
    margin:auto;
    padding:26px 0 64px;
}
.nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
}
.nav a{
    color:#fff;
    text-decoration:none;
    padding:9px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.08);
    font-weight:850;
}
.hero{
    padding:30px;
    border-radius:26px;
    background:
        linear-gradient(
            135deg,
            rgba(7,16,29,.98),
            rgba(11,35,71,.95) 58%,
            rgba(5,7,12,.98)
        );
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 24px 60px rgba(0,0,0,.3);
}
.eyebrow{
    color:var(--green);
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:.76rem;
    font-weight:950;
}
h1{
    font-size:clamp(2.2rem,6vw,4.7rem);
    letter-spacing:-.055em;
    line-height:.98;
    margin:.35rem 0 .7rem;
}
.hero p{
    max-width:790px;
    color:#dbeafe;
    line-height:1.65;
}
.stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}
.stat{
    padding:18px;
    border-radius:19px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
}
.stat strong{
    display:block;
    font-size:1.8rem;
}
.stat span{
    color:var(--muted);
    font-size:.82rem;
    font-weight:850;
}
.source-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:12px;
}
.source{
    padding:15px 17px;
    border-radius:17px;
    background:rgba(2,6,23,.54);
    border:1px solid rgba(255,255,255,.08);
}
.source strong{
    font-size:1.3rem;
}
.source span{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:.8rem;
    font-weight:800;
}
.section-head{
    margin:34px 0 14px;
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
}
.section-head h2{
    margin:0;
    font-size:2rem;
}
.section-head p{
    margin:5px 0 0;
    color:var(--muted);
}
.search{
    min-width:min(320px,100%);
    padding:11px 13px;
    border-radius:13px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(2,6,23,.75);
    color:#fff;
    font:inherit;
}
.table-wrap{
    overflow:auto;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(7,16,29,.92);
    box-shadow:0 18px 40px rgba(0,0,0,.24);
}
table{
    width:100%;
    border-collapse:collapse;
    min-width:1210px;
}
th,
td{
    text-align:left;
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,.07);
    vertical-align:top;
}
th{
    color:#bae6fd;
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.06em;
    background:rgba(255,255,255,.035);
}
td{
    color:#e2e8f0;
    font-size:.9rem;
}
.name{
    font-weight:900;
    color:#fff;
}
.email{
    color:#7dd3fc;
    text-decoration:none;
}
.communication-count{
    font-size:1.05rem;
    font-weight:950;
    color:#fff;
}
.communication-detail{
    color:var(--muted);
    font-size:.8rem;
    line-height:1.4;
}
.history-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(37,99,235,.14);
    border:1px solid rgba(56,189,248,.28);
    color:#bae6fd;
    text-decoration:none;
    font-size:.76rem;
    font-weight:950;
    white-space:nowrap;
}
.badge{
    display:inline-block;
    padding:6px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.badge.confirmed{
    background:rgba(34,197,94,.14);
    border:1px solid rgba(34,197,94,.3);
    color:#bbf7d0;
}
.badge.unsubscribed{
    background:rgba(100,116,139,.15);
    border:1px solid rgba(148,163,184,.25);
    color:#cbd5e1;
}
.badge.other{
    background:rgba(245,158,11,.14);
    border:1px solid rgba(245,158,11,.3);
    color:#fde68a;
}
.empty{
    margin-top:18px;
    padding:34px;
    border-radius:22px;
    text-align:center;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
}
.empty h2{
    margin-top:0;
}
.empty p{
    color:var(--muted);
    line-height:1.6;
}
.campaign-panel{
    margin-top:30px;
    padding:24px;
    border-radius:22px;
    background:
        linear-gradient(
            135deg,
            rgba(34,197,94,.11),
            rgba(7,16,29,.96)
        );
    border:1px solid rgba(34,197,94,.25);
    box-shadow:inset 0 4px 0 var(--green);
}
.campaign-panel h2{
    margin:0 0 8px;
}
.campaign-panel p{
    margin:0;
    color:#dbeafe;
    line-height:1.6;
}
.next-tools{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:16px;
}
.tool-chip{
    padding:8px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#cbd5e1;
    font-size:.78rem;
    font-weight:850;
}
.builder{
    margin-top:34px;
    padding:26px;
    border-radius:24px;
    background:rgba(7,16,29,.94);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:inset 0 4px 0 var(--gold),0 20px 45px rgba(0,0,0,.25);
}
.builder h2{
    margin:4px 0 8px;
    font-size:2rem;
}
.builder-intro{
    margin:0 0 22px;
    color:#cbd5e1;
    line-height:1.6;
}
.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.field{
    display:flex;
    flex-direction:column;
    gap:7px;
}
.field.full{
    grid-column:1/-1;
}
.field label{
    font-size:.8rem;
    font-weight:900;
    color:#dbeafe;
}
.field input,
.field select,
.field textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.15);
    border-radius:13px;
    background:rgba(2,6,23,.75);
    color:#fff;
    padding:12px 13px;
    font:inherit;
}
.field textarea{
    min-height:150px;
    resize:vertical;
}
.field small{
    color:var(--muted);
    line-height:1.45;
}
.form-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}
.save-btn{
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    padding:12px 18px;
    background:linear-gradient(135deg,#9a4b05,#f97316 52%,#f59e0b);
    color:#fff;
    font:inherit;
    font-weight:950;
    cursor:pointer;
}
.notice{
    margin:0 0 18px;
    padding:13px 15px;
    border-radius:14px;
    line-height:1.5;
}
.notice.success{
    background:rgba(34,197,94,.12);
    border:1px solid rgba(34,197,94,.3);
    color:#bbf7d0;
}
.notice.error{
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.3);
    color:#fecaca;
}
.campaign-history{
    margin-top:34px;
}
.campaign-list{
    display:grid;
    gap:12px;
}
.campaign-item{
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.09);
}
.campaign-top{
    display:flex;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
.campaign-item h3{
    margin:0 0 5px;
}
.campaign-meta{
    color:var(--muted);
    font-size:.8rem;
    line-height:1.55;
}
.status-pill{
    display:inline-block;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(56,189,248,.12);
    border:1px solid rgba(56,189,248,.25);
    color:#bae6fd;
    font-size:.72rem;
    font-weight:950;
    text-transform:uppercase;
}
.campaign-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:14px;
}
.campaign-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 14px;
    border-radius:999px;
    background:linear-gradient(135deg,#0a3d91,#2563eb 55%,#38bdf8);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
    text-decoration:none;
    font-weight:950;
    box-shadow:0 10px 22px rgba(0,0,0,.2);
}
.page-footer{margin-top:32px;color:#71839b;font-size:.76rem;text-align:center}
@media(max-width:800px){
    .stats{grid-template-columns:1fr 1fr}
    .source-stats{grid-template-columns:1fr}
    .form-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
    .stats{grid-template-columns:1fr}
}

}
@scope (.au-history) {
:scope{
    --cyan:#38bdf8;
    --blue:#2563eb;
    --green:#22c55e;
    --gold:#f59e0b;
    --purple:#a855f7;
    --red:#ef4444;
    --text:#f8fafc;
    --muted:#9fb0c8;
}
*{box-sizing:border-box}
:focus-visible{outline:3px solid rgba(56,189,248,.9);outline-offset:3px}
:scope{display:flow-root;
    margin:0;
    min-height:100vh;
    font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 8% 0%,rgba(56,189,248,.18),transparent 28%),
        radial-gradient(circle at 92% 8%,rgba(168,85,247,.14),transparent 25%),
        linear-gradient(180deg,#020617,#07101d,#020617);
}
.wrap{
    width:min(1220px,calc(100% - 24px));
    margin:auto;
    padding:24px 0 64px;
}
.nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:18px;
}
.nav a{
    color:#fff;
    text-decoration:none;
    padding:9px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.09);
    font-weight:850;
}
.hero{
    padding:30px;
    border-radius:26px;
    background:
        linear-gradient(
            135deg,
            rgba(7,16,29,.98),
            rgba(11,35,71,.95),
            rgba(5,7,12,.98)
        );
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 24px 60px rgba(0,0,0,.3);
}
.eyebrow{
    color:var(--cyan);
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.75rem;
    font-weight:950;
}
h1{
    margin:6px 0 8px;
    font-size:clamp(2rem,5vw,4rem);
    letter-spacing:-.045em;
    line-height:1;
}
.hero p{
    margin:5px 0;
    color:#dbeafe;
    line-height:1.55;
}
.badge{
    display:inline-block;
    margin-top:12px;
    padding:7px 10px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:950;
    text-transform:uppercase;
}
.badge.confirmed{
    background:rgba(34,197,94,.13);
    border:1px solid rgba(34,197,94,.3);
    color:#bbf7d0;
}
.badge.unsubscribed{
    background:rgba(100,116,139,.16);
    border:1px solid rgba(148,163,184,.28);
    color:#cbd5e1;
}
.badge.other{
    background:rgba(245,158,11,.13);
    border:1px solid rgba(245,158,11,.3);
    color:#fde68a;
}
.history-warning{margin-top:16px;padding:13px 15px;border-radius:14px;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);color:#fde68a;font-weight:800}
.stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:20px;
}
.stat{
    padding:17px;
    border-radius:18px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.09);
}
.stat strong{
    display:block;
    font-size:1.7rem;
}
.stat span{
    color:var(--muted);
    font-size:.79rem;
    font-weight:850;
}
.section{
    margin-top:30px;
}
.section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:13px;
}
.section-head h2{
    margin:0;
    font-size:1.8rem;
}
.section-head p{
    margin:4px 0 0;
    color:var(--muted);
}
.breakdown{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}
.chip{
    padding:8px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#dbeafe;
    font-size:.78rem;
    font-weight:850;
}
.timeline{
    display:grid;
    gap:12px;
}
.event{
    padding:18px;
    border-radius:18px;
    background:rgba(7,16,29,.94);
    border:1px solid rgba(255,255,255,.1);
    box-shadow:0 14px 30px rgba(0,0,0,.18);
}
.event-top{
    display:flex;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
.event h3{
    margin:0;
}
.meta{
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}
.event-status{
    display:inline-block;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(56,189,248,.11);
    border:1px solid rgba(56,189,248,.24);
    color:#bae6fd;
    font-size:.7rem;
    font-weight:950;
    text-transform:uppercase;
}
.event p{
    color:#cbd5e1;
    line-height:1.55;
    margin-bottom:0;
}
.empty{
    padding:28px;
    border-radius:20px;
    text-align:center;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    color:var(--muted);
}
.customer-info{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:18px;
}
.info{
    padding:13px 15px;
    border-radius:15px;
    background:rgba(2,6,23,.5);
    border:1px solid rgba(255,255,255,.08);
}
.info span{
    display:block;
    color:var(--muted);
    font-size:.72rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.info strong{
    display:block;
    margin-top:5px;
    color:#fff;
    word-break:break-word;
}
.page-footer{margin-top:32px;color:#71839b;font-size:.76rem;text-align:center}
@media(max-width:800px){
    .stats{grid-template-columns:1fr 1fr}
    .customer-info{grid-template-columns:1fr}
}
@media(max-width:520px){
    .stats{grid-template-columns:1fr}
}

}
.au-news .hero h1,.au-history .hero h1 {max-width:none}
.au-news .field label {display:block}
.au-news .builder:focus,.au-news .section-head:focus {outline:none}
.au-history .badge.pending {color:#fde68a;background:#3d2d13}
.au-history .au-verify {margin-left:.5rem;cursor:pointer}
.au-news .source strong {display:block}
.au-news .table-wrap {max-width:100%}
.au-news,.au-history {min-width:0}
.au-questions .hero {background:radial-gradient(circle at 92% 0,rgba(245,158,11,.18),transparent 32%),linear-gradient(135deg,#07101d,#0b2347 58%,#05070c)}
.au-questions .hero .label {color:#fbbf24}
.au-counts {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}
.au-counts .stat strong {font-size:1.6rem}
.au-counts .stat span {color:#bed1e6;font-size:.85rem}
.au-filters {display:grid;grid-template-columns:minmax(200px,2fr) minmax(120px,1fr) minmax(125px,1fr) minmax(95px,.7fr) auto;gap:8px;margin:17px 0 12px}
.au-questions :is(input:not([type="hidden"]),select,textarea){width:100%;color:#edf6ff;background:#050f1e;border:1px solid #40536d;border-radius:10px;padding:10px 12px;font:inherit;font-size:.90rem}
.au-questions textarea{min-height:64px;resize:vertical}
.au-topic{border:1px solid #304156;border-radius:20px;background:linear-gradient(rgba(23,36,58,.95),rgba(7,16,29,.98));margin:12px 0;padding:18px}
.au-topic-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.au-topic h2{font-size:1.35rem;letter-spacing:-.025em;margin:7px 0}
.au-topic .classification{color:#b6c6d7;font-size:.82rem}
.au-code,.au-pill{display:inline-block;font-size:.75rem;font-weight:850;padding:4px 9px;border-radius:999px;background:#15334a;color:#a5e6fb}
.au-badges{display:flex;flex-wrap:wrap;gap:5px}
.au-pill{text-transform:uppercase;color:#fde6aa;background:#443019}.au-pill.ok{color:#acffd5;background:#133b2e}
.au-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.au-tools details,.au-occurrence,.au-contact{border:1px solid #2d3e52;background:rgba(2,6,23,.52);padding:13px;border-radius:13px}
.au-tools summary{cursor:pointer;font-size:.91rem;font-weight:bold}
.au-questions label{display:block;margin:8px 0;font-size:.86rem}
.au-questions label>*{display:block;margin:3px 0}
.au-questions .mini{margin:3px 0}
.au-occurrence .actions{margin-top:0}
.au-q,.au-answer,.au-contact{margin-top:10px;padding:12px;background:#0d2136;color:#e6f4ff;border-radius:10px}
.au-answer{background:#112a28}.au-answer p{margin:3px 0;color:#d1ece5}
.au-questions :is(.au-follow,.au-contact) button,.au-tools button{background:#126955}
@media(max-width:800px){.au-filters{grid-template-columns:1fr 1fr}.au-filters input[type=search]{grid-column:1/-1}.au-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.au-questions .hero,.au-topic{padding:14px}.au-tools{grid-template-columns:1fr}.au-filters{grid-template-columns:1fr}.au-counts .stat{padding:9px}.au-counts .stat span{font-size:.74rem}}
