/* ============================================================
   CLIPPING DE NOTÍCIAS — PREMIUM EXECUTIVE EDITION
   Design para políticos, empresários e tomadores de decisão
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}

:root{
    --navy:#293846;
    --navy-light:#2f4050;
    --navy-mid:#1e2d3d;
    --gold:#FF6B01;
    --gold-light:#ff8c2e;
    --gold-dark:#e05e00;
    --gold-glow:rgba(255,107,1,.12);
    --surface:#f8f9fc;
    --card:#ffffff;
    --text:#1a1a2e;
    --text-secondary:#676767;
    --text-tertiary:#94a3b8;
    --border:rgba(0,0,0,.06);
    --border-light:rgba(0,0,0,.04);
    --positive:#1cc09f;
    --positive-bg:#eafaf5;
    --negative:#dc2626;
    --negative-bg:#fef2f2;
    --neutral:#676767;
    --neutral-bg:#f8fafc;
    --online-bg:#fff3e8;
    --online-text:#c2410c;
    --impressa-bg:#faf5ff;
    --impressa-text:#7c3aed;
    --tv-bg:#eff6ff;
    --tv-text:#1d4ed8;
    --radio-bg:#f0fdf4;
    --radio-text:#15803d;
    --shadow-sm:0 1px 3px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.06);
    --shadow-md:0 4px 12px rgba(0,0,0,.06),0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:0 10px 30px rgba(0,0,0,.08),0 4px 8px rgba(0,0,0,.04);
    --shadow-card:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03);
    --radius:14px;
    --radius-sm:10px;
    --radius-xs:8px;
}

body{
    font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',Roboto,sans-serif;
    background:var(--surface);color:var(--text);
    min-height:100vh;overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* ===== SPLASH ===== */
.splash{
    position:fixed;inset:0;z-index:9999;
    background:linear-gradient(160deg,#1e2d3d 0%,#293846 30%,#2f4050 60%,#374a5e 100%);
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    transition:opacity .6s cubic-bezier(.4,0,.2,1);
}
.splash::before{
    content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;
    background:radial-gradient(circle at 30% 40%,rgba(255,107,1,.1) 0%,transparent 50%),
               radial-gradient(circle at 70% 60%,rgba(47,64,80,.2) 0%,transparent 50%);
    animation:splashGlow 6s ease infinite;
}
@keyframes splashGlow{0%,100%{transform:rotate(0)}50%{transform:rotate(180deg)}}
.splash.hide{opacity:0;pointer-events:none;}
.splash img{width:100px;margin-bottom:20px;position:relative;z-index:1;filter:brightness(0) invert(1);}
.splash h2{color:#fff;font-size:18px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;position:relative;z-index:1;}
.splash h2::after{
    content:'';display:block;width:40px;height:2px;background:var(--gold);
    margin:12px auto 0;border-radius:1px;
}
.splash .spinner{
    width:28px;height:28px;border:2px solid rgba(255,255,255,.1);
    border-top-color:var(--gold);border-radius:50%;margin-top:32px;
    animation:spin .8s linear infinite;position:relative;z-index:1;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== HEADER ===== */
.header{
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);
    padding:14px 20px;display:flex;align-items:center;justify-content:space-between;
    position:sticky;top:0;z-index:100;
    box-shadow:0 2px 20px rgba(0,0,0,.2);
}
.header::after{
    content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
    background:linear-gradient(90deg,transparent,var(--gold),transparent);
    opacity:.6;
}
.header img{height:32px;filter:brightness(0) invert(1);}
.header-actions{display:flex;gap:6px;}
.header-btn{
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.7);cursor:pointer;padding:8px;border-radius:10px;
    display:flex;align-items:center;justify-content:center;transition:all .2s;
}
.header-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;}
.header-btn:active{background:rgba(255,255,255,.12);}
.notif-dot{position:relative;}
.notif-dot::after{
    content:'';position:absolute;top:5px;right:5px;
    width:7px;height:7px;background:var(--negative);border-radius:50%;
    border:2px solid var(--navy);
}

/* ===== SCREENS ===== */
.screen{display:none;padding-bottom:95px;}
.screen.active{display:block;}

/* ===== SECTION TITLES ===== */
.section-title{
    font-size:13px;font-weight:600;color:var(--text-secondary);
    text-transform:uppercase;letter-spacing:.8px;
    padding:20px 20px 10px;
}

/* ===== FILTER CHIPS ===== */
.filters{
    padding:16px 20px 8px;overflow-x:auto;display:flex;gap:8px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.filters::-webkit-scrollbar{display:none;}
.chip{
    white-space:nowrap;padding:9px 18px;border-radius:25px;
    background:var(--card);border:1px solid var(--border);
    font-size:12px;font-weight:500;color:var(--text-secondary);cursor:pointer;
    transition:all .25s cubic-bezier(.4,0,.2,1);flex-shrink:0;
    display:flex;align-items:center;gap:6px;
    box-shadow:var(--shadow-sm);
}
.chip svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;}
.chip.active{
    background:var(--navy);color:#fff;border-color:var(--navy);
    box-shadow:0 4px 12px rgba(10,22,40,.25);
}
.chip:active{transform:scale(.96);}

/* ===== SUMMARY BAR ===== */
.summary{display:flex;gap:10px;padding:8px 20px 4px;overflow-x:auto;scrollbar-width:none;}
.summary::-webkit-scrollbar{display:none;}
.summary-card{
    flex-shrink:0;background:var(--card);border-radius:var(--radius-sm);
    padding:14px 18px;min-width:95px;box-shadow:var(--shadow-card);text-align:center;
    border:1px solid var(--border-light);
}
.summary-card .num{font-size:24px;font-weight:700;color:var(--navy);letter-spacing:-.5px;}
.summary-card .lbl{font-size:10px;font-weight:500;color:var(--text-tertiary);margin-top:2px;text-transform:uppercase;letter-spacing:.5px;}

/* ===== SEARCH ===== */
.search-bar{padding:10px 20px 6px;}
.search-bar input{
    width:100%;padding:11px 16px 11px 44px;border-radius:var(--radius-sm);
    border:1px solid var(--border);font-size:14px;background:var(--card);
    box-shadow:var(--shadow-sm);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:16px center;
    transition:border-color .2s,box-shadow .2s;
}
.search-bar input:focus{
    outline:none;border-color:var(--gold);
    box-shadow:0 0 0 3px var(--gold-glow),var(--shadow-sm);
}

/* ===== NEWS LIST ===== */
.news-list{padding:8px 20px 0;}
.news-card{
    background:var(--card);border-radius:var(--radius);padding:18px;
    margin-bottom:14px;box-shadow:var(--shadow-card);
    cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);
    position:relative;border:1px solid var(--border-light);
}
.news-card:active{transform:scale(.98);box-shadow:var(--shadow-md);}
.news-card .card-top{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap;}

.badge{
    font-size:10px;font-weight:600;padding:4px 10px;border-radius:6px;
    letter-spacing:.3px;display:inline-flex;align-items:center;gap:4px;
}
.badge svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.5;fill:none;}
.badge-online{background:var(--online-bg);color:var(--online-text);}
.badge-impressa{background:var(--impressa-bg);color:var(--impressa-text);}
.badge-tv{background:var(--tv-bg);color:var(--tv-text);}
.badge-radio{background:var(--radio-bg);color:var(--radio-text);}
.badge-pos{background:var(--positive-bg);color:var(--positive);}
.badge-neg{background:var(--negative-bg);color:var(--negative);}
.badge-neutro{background:var(--neutral-bg);color:var(--neutral);}

.news-card h3{
    font-size:15px;font-weight:600;line-height:1.4;margin-bottom:8px;
    color:var(--text);padding-right:30px;letter-spacing:-.1px;
}
.news-card .meta{font-size:12px;color:var(--text-tertiary);display:flex;gap:14px;flex-wrap:wrap;}
.news-card .meta span{display:flex;align-items:center;gap:5px;font-weight:500;}
.news-card .meta svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.8;fill:none;opacity:.6;}

.fav-btn{
    position:absolute;top:16px;right:16px;background:none;border:none;
    cursor:pointer;padding:4px;color:#d1d5db;transition:color .2s;
}
.fav-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;}
.fav-btn.active{color:var(--gold);}
.fav-btn.active svg{fill:var(--gold);stroke:var(--gold);}

/* ===== EMPTY STATE ===== */
.empty{text-align:center;padding:60px 20px;color:var(--text-tertiary);}
.empty svg{width:48px;height:48px;margin-bottom:12px;opacity:.3;stroke:var(--text-tertiary);fill:none;stroke-width:1.2;}
.empty p{font-size:14px;font-weight:500;}

/* ===== BOTTOM NAV ===== */
.bottom-nav{
    position:fixed;bottom:0;left:0;right:0;
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);
    display:flex;z-index:100;padding:8px 0 env(safe-area-inset-bottom,10px);
    box-shadow:0 -4px 20px rgba(0,0,0,.15);
}
.bottom-nav button{
    flex:1;background:none;border:none;padding:8px 4px;
    display:flex;flex-direction:column;align-items:center;gap:3px;
    color:rgba(255,255,255,.35);font-size:10px;cursor:pointer;
    font-weight:500;letter-spacing:.3px;
    transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;
}
.bottom-nav button svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.6;fill:none;transition:all .25s;}
.bottom-nav button.active{color:var(--gold);}
.bottom-nav button.active::before{
    content:'';position:absolute;top:-8px;left:50%;transform:translateX(-50%);
    width:20px;height:3px;background:var(--gold);border-radius:0 0 3px 3px;
}
.bottom-nav button.active svg{stroke-width:2;}

/* ===== DETAIL VIEW ===== */
.detail-view{
    position:fixed;inset:0;background:var(--surface);z-index:200;
    transform:translateX(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
}
.detail-view.show{transform:translateX(0);}
.detail-header{
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);
    padding:14px 20px;display:flex;align-items:center;gap:14px;
    position:sticky;top:0;z-index:10;
    box-shadow:0 2px 20px rgba(0,0,0,.2);
}
.detail-header::after{
    content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
    background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.6;
}
.detail-header button{
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);
    cursor:pointer;color:rgba(255,255,255,.8);padding:6px;border-radius:var(--radius-xs);
    display:flex;transition:all .2s;
}
.detail-header button:active{background:rgba(255,255,255,.15);}
.detail-header button svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;}
.detail-header h2{font-size:15px;flex:1;font-weight:600;color:#fff;letter-spacing:-.1px;}

.detail-body{padding:20px;padding-bottom:110px;}
.detail-logo{text-align:center;margin-bottom:20px;}
.detail-logo img{height:44px;margin-bottom:6px;}
.detail-logo .client{font-size:11px;color:var(--text-tertiary);font-weight:500;letter-spacing:.5px;text-transform:uppercase;}

.info-table{
    width:100%;border-collapse:separate;border-spacing:0;background:var(--card);
    border-radius:var(--radius);overflow:hidden;margin-bottom:20px;
    box-shadow:var(--shadow-card);border:1px solid var(--border-light);
}
.info-table th{
    text-align:left;padding:12px 14px;background:#fafbfc;
    font-size:11px;color:var(--text-tertiary);width:120px;
    border-bottom:1px solid var(--border);font-weight:600;
    text-transform:uppercase;letter-spacing:.5px;vertical-align:top;
}
.info-table td{padding:12px 14px;font-size:13px;border-bottom:1px solid var(--border);line-height:1.5;}
.info-table tr:last-child th,.info-table tr:last-child td{border-bottom:none;}

.transcription{
    background:var(--card);border-radius:var(--radius);padding:18px;
    box-shadow:var(--shadow-card);border:1px solid var(--border-light);
}
.transcription h4{font-size:12px;margin-bottom:10px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-weight:600;}
.transcription p{font-size:14px;line-height:1.75;color:#374151;}
.transcription mark{background:#fef3c7;padding:1px 6px;border-radius:3px;color:#92400e;}

.detail-actions{
    position:fixed;bottom:0;left:0;right:0;padding:14px 20px;
    background:linear-gradient(to top,var(--surface) 60%,transparent);
    display:flex;gap:12px;z-index:210;
}
.btn-action{
    flex:1;padding:14px;border:none;border-radius:var(--radius-sm);
    font-size:14px;font-weight:600;cursor:pointer;display:flex;
    align-items:center;justify-content:center;gap:8px;letter-spacing:-.1px;
    transition:all .2s;
}
.btn-action svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;}
.btn-primary{
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);
    color:#fff;box-shadow:0 4px 14px rgba(10,22,40,.3);
}
.btn-primary:active{box-shadow:0 2px 6px rgba(10,22,40,.3);}
.btn-secondary{background:var(--card);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow-sm);}
.btn-secondary:active{background:var(--surface);}

/* ============================================================
   SCREEN: REDES SOCIAIS
   ============================================================ */
.social-card{
    background:var(--card);border-radius:var(--radius);padding:18px;
    margin-bottom:14px;box-shadow:var(--shadow-card);
    border:1px solid var(--border-light);
}
.social-card .sc-header{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.social-card .sc-avatar{
    width:42px;height:42px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.sc-avatar.ig{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);}
.sc-avatar.fb{background:#1877f2;}
.sc-avatar.tt{background:#000;border:1px solid rgba(255,255,255,.1);}
.sc-avatar svg{width:18px;height:18px;fill:#fff;stroke:none;}
.social-card .sc-name{font-size:14px;font-weight:600;color:var(--text);}
.social-card .sc-handle{font-size:12px;color:var(--text-tertiary);}
.social-card .sc-body{font-size:14px;line-height:1.6;color:#374151;margin-bottom:14px;}
.social-card .sc-image{
    width:100%;border-radius:var(--radius-sm);margin-bottom:14px;
    background:linear-gradient(135deg,#f1f5f9,#e2e8f0);min-height:140px;
    display:flex;align-items:center;justify-content:center;
    color:var(--text-tertiary);font-size:11px;font-weight:500;
    text-transform:uppercase;letter-spacing:.5px;
    border:1px dashed var(--border);
}
.social-card .sc-footer{display:flex;gap:16px;font-size:12px;color:var(--text-tertiary);font-weight:500;}
.social-card .sc-footer span{display:flex;align-items:center;gap:5px;}
.social-card .sc-footer svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none;}
.sc-date{font-size:11px;color:var(--text-tertiary);margin-bottom:10px;font-weight:500;display:flex;align-items:center;gap:5px;}
.sc-date svg{width:12px;height:12px;}

/* ============================================================
   SCREEN: DASHBOARD
   ============================================================ */
.dash-section{padding:0 20px;margin-bottom:20px;}
.dash-title{
    font-size:12px;font-weight:600;color:var(--text-tertiary);
    margin-bottom:12px;text-transform:uppercase;letter-spacing:.8px;
}
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.dash-stat{
    background:var(--card);border-radius:var(--radius);padding:18px;
    box-shadow:var(--shadow-card);text-align:center;
    border:1px solid var(--border-light);position:relative;overflow:hidden;
}
.dash-stat::before{
    content:'';position:absolute;top:0;left:0;right:0;height:3px;
    background:var(--navy);border-radius:3px 3px 0 0;
}
.dash-stat.accent::before{background:var(--gold);}
.dash-stat.positive::before{background:var(--positive);}
.dash-stat.negative::before{background:var(--negative);}
.dash-stat .ds-value{font-size:32px;font-weight:700;color:var(--navy);letter-spacing:-1px;}
.dash-stat.accent .ds-value{color:var(--gold-dark);}
.dash-stat.positive .ds-value{color:var(--positive);}
.dash-stat.negative .ds-value{color:var(--negative);}
.dash-stat .ds-label{font-size:10px;color:var(--text-tertiary);margin-top:4px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;}

/* Bar chart */
.bar-chart{background:var(--card);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-card);border:1px solid var(--border-light);}
.bar-chart .bar-row{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.bar-chart .bar-row:last-child{margin-bottom:0;}
.bar-chart .bar-label{font-size:12px;color:var(--text-secondary);width:75px;flex-shrink:0;font-weight:500;}
.bar-chart .bar-track{flex:1;height:28px;background:var(--surface);border-radius:8px;overflow:hidden;}
.bar-chart .bar-fill{
    height:100%;border-radius:8px;transition:width .6s cubic-bezier(.4,0,.2,1);
    display:flex;align-items:center;justify-content:flex-end;padding-right:10px;
    font-size:11px;font-weight:700;color:#fff;min-width:32px;
}
.bar-fill.navy{background:linear-gradient(90deg,var(--navy),var(--navy-mid));}
.bar-fill.gold{background:linear-gradient(90deg,var(--gold-dark),var(--gold));}
.bar-fill.green{background:linear-gradient(90deg,#047857,var(--positive));}
.bar-fill.slate{background:linear-gradient(90deg,#475569,var(--neutral));}
.bar-fill.red{background:linear-gradient(90deg,#b91c1c,var(--negative));}

/* Sentiment row */
.sentiment-row{display:flex;gap:10px;}
.sentiment-item{
    flex:1;background:var(--card);border-radius:var(--radius);
    padding:16px 10px;box-shadow:var(--shadow-card);text-align:center;
    border:1px solid var(--border-light);
}
.sentiment-item .si-icon{
    width:36px;height:36px;border-radius:10px;margin:0 auto 8px;
    display:flex;align-items:center;justify-content:center;
}
.sentiment-item .si-icon svg{width:18px;height:18px;stroke:#fff;stroke-width:2;fill:none;}
.si-icon.pos{background:linear-gradient(135deg,#059669,#10b981);}
.si-icon.neg{background:linear-gradient(135deg,#b91c1c,#ef4444);}
.si-icon.neu{background:linear-gradient(135deg,#475569,#94a3b8);}
.sentiment-item .si-val{font-size:22px;font-weight:700;letter-spacing:-.5px;}
.sentiment-item .si-lbl{font-size:10px;color:var(--text-tertiary);font-weight:600;text-transform:uppercase;letter-spacing:.3px;}

/* Top list */
.top-list{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow-card);overflow:hidden;border:1px solid var(--border-light);}
.top-item{
    display:flex;align-items:center;gap:14px;padding:14px 18px;
    border-bottom:1px solid var(--border-light);
}
.top-item:last-child{border-bottom:none;}
.top-rank{
    width:28px;height:28px;border-radius:8px;
    background:linear-gradient(135deg,var(--navy),var(--navy-mid));
    color:var(--gold);font-size:11px;font-weight:700;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.top-info{flex:1;}
.top-info .ti-name{font-size:13px;font-weight:600;color:var(--text);}
.top-info .ti-count{font-size:11px;color:var(--text-tertiary);font-weight:500;}
.top-pct{font-size:13px;font-weight:700;color:var(--navy);letter-spacing:-.3px;}

/* ============================================================
   SCREEN: CONFIGURAÇÕES
   ============================================================ */
.config-profile{
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);
    text-align:center;padding:30px 20px 24px;position:relative;
    margin-bottom:20px;
}
.config-profile::after{
    content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
    background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.6;
}
.config-avatar{
    width:68px;height:68px;border-radius:18px;background:rgba(255,255,255,.1);
    margin:0 auto 12px;display:flex;align-items:center;justify-content:center;
    border:2px solid rgba(201,168,76,.3);
}
.config-avatar svg{width:32px;height:32px;stroke:rgba(255,255,255,.7);stroke-width:1.6;fill:none;}
.config-name{font-size:17px;font-weight:600;color:#fff;letter-spacing:-.2px;}
.config-email{font-size:13px;color:rgba(255,255,255,.5);margin-top:2px;}

.config-section{padding:0 20px;margin-bottom:20px;}
.config-section-title{
    font-size:11px;font-weight:600;color:var(--text-tertiary);
    text-transform:uppercase;letter-spacing:.8px;margin-bottom:10px;padding-left:4px;
}
.config-group{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow-card);overflow:hidden;border:1px solid var(--border-light);}
.config-item{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 16px;border-bottom:1px solid var(--border-light);
}
.config-item:last-child{border-bottom:none;}
.config-item .ci-info{display:flex;align-items:center;gap:12px;flex:1;}
.config-item .ci-icon{
    width:38px;height:38px;border-radius:10px;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.ci-icon.blue{background:#eff6ff;color:#1d4ed8;}
.ci-icon.orange{background:#fff7ed;color:#c2410c;}
.ci-icon.green{background:var(--positive-bg);color:var(--positive);}
.ci-icon.red{background:var(--negative-bg);color:var(--negative);}
.ci-icon.gray{background:#f8fafc;color:var(--neutral);}
.ci-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;}
.config-item .ci-text .ci-label{font-size:14px;font-weight:500;color:var(--text);}
.config-item .ci-text .ci-desc{font-size:11px;color:var(--text-tertiary);margin-top:1px;}

/* Toggle */
.toggle{position:relative;width:46px;height:26px;flex-shrink:0;}
.toggle input{opacity:0;width:0;height:0;}
.toggle .slider{
    position:absolute;inset:0;background:#d1d5db;border-radius:26px;
    cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);
}
.toggle .slider::before{
    content:'';position:absolute;width:22px;height:22px;
    background:#fff;border-radius:50%;top:2px;left:2px;
    transition:transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 1px 4px rgba(0,0,0,.15);
}
.toggle input:checked+.slider{background:var(--navy);}
.toggle input:checked+.slider::before{transform:translateX(20px);}

.chevron{color:var(--text-tertiary);display:flex;}
.chevron svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;}

.config-logout{padding:0 20px;margin-top:28px;}
.btn-logout{
    width:100%;padding:14px;border-radius:var(--radius-sm);
    background:var(--negative-bg);color:var(--negative);
    font-size:14px;font-weight:600;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:8px;
    border:1px solid rgba(220,38,38,.1);transition:all .2s;
}
.btn-logout svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;}
.btn-logout:active{background:#fee2e2;}

.config-version{text-align:center;padding:20px;font-size:11px;color:var(--text-tertiary);letter-spacing:.3px;}

/* ===== UTILITIES ===== */
.fade-in{animation:fadeIn .35s cubic-bezier(.4,0,.2,1);}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}

@media print{
    .detail-header,.detail-actions,.bottom-nav,.header{display:none!important;}
    .detail-view{position:static!important;transform:none!important;}
    body{background:#fff;}
}
