*{box-sizing:border-box}
:root{
  --navy:#061a32;
  --navy-2:#0a2748;
  --navy-3:#123c65;
  --ink:#f4f8fc;
  --muted:#a7bad0;
  --line:rgba(189,214,239,.18);
  --accent:#d96643;
  --accent-2:#b94f32;
  --blue:#2d79c7;
  --blue-glow:#55b4ff;
  --panel:#f6f8fb;
  font-family:"Segoe UI",Inter,Arial,sans-serif
}
html,body{margin:0;min-height:100%;background:#061a32;color:var(--ink)}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 96% 53%,rgba(248,248,248,.54) 0,rgba(119,159,202,.18) 13%,rgba(217,102,67,.16) 25%,transparent 42%),
    radial-gradient(circle at 67% 38%,rgba(73,157,239,.15),transparent 30%),
    linear-gradient(116deg,#05162b 0%,#072242 46%,#0a3156 72%,#395f86 100%);
  transition:background .22s ease,color .22s ease
}
body.sources-light-mode{
  background:
    radial-gradient(circle at 88% 14%,rgba(73,153,236,.16) 0,rgba(73,153,236,.07) 20%,transparent 38%),
    radial-gradient(circle at 14% 86%,rgba(38,111,190,.09),transparent 30%),
    linear-gradient(138deg,#f8fbff 0%,#eef6fd 42%,#e8f3fb 70%,#f5faff 100%);
  color:#0d2f57
}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.7;
  background:
    linear-gradient(120deg,transparent 0 60%,rgba(255,255,255,.025) 60.1% 60.35%,transparent 60.5%),
    radial-gradient(circle at 68% 40%,transparent 0 10%,rgba(67,150,231,.06) 10.15% 10.4%,transparent 10.6% 17%,rgba(67,150,231,.05) 17.1% 17.35%,transparent 17.55%)
}
body.sources-light-mode:before{
  background:
    radial-gradient(circle at 70% 44%,
      transparent 0 10%,
      rgba(65,143,221,.055) 10.15% 10.45%,
      transparent 10.7% 17%,
      rgba(65,143,221,.050) 17.15% 17.45%,
      transparent 17.7% 24%,
      rgba(65,143,221,.042) 24.15% 24.38%,
      transparent 24.65% 31%,
      rgba(65,143,221,.035) 31.15% 31.35%,
      transparent 31.6%),
    linear-gradient(118deg,
      transparent 0 57%,
      rgba(75,150,223,.030) 57.15% 57.42%,
      transparent 57.7% 65%,
      rgba(217,102,67,.022) 65.15% 65.42%,
      transparent 65.7%),
    radial-gradient(circle at 17% 79%,rgba(48,117,190,.035) 0 2px,transparent 3px);
  background-size:auto,auto,18px 18px;
  opacity:.95
}
.hidden{display:none!important}
.app-shell{min-height:100vh;display:flex;flex-direction:column;position:relative;z-index:1}
.topbar{
  margin:20px 28px 0;height:72px;border:1px solid rgba(164,199,234,.26);
  background:rgba(7,30,57,.70);backdrop-filter:blur(18px);border-radius:22px;
  display:flex;align-items:center;padding:0 30px;gap:28px;box-shadow:0 12px 40px rgba(0,0,0,.16);
  transition:background .22s ease,border-color .22s ease,color .22s ease
}
body.sources-light-mode .topbar{
  background:rgba(255,255,255,.88);
  border-color:rgba(34,84,131,.17);
  color:#0d2d53;
  box-shadow:0 10px 30px rgba(45,79,111,.08)
}
.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.brand b,.panel-wordmark b{color:var(--accent)}
.brand-radar,.panel-radar{position:relative;width:43px;height:43px;border:3px solid var(--accent);border-left-color:transparent;border-radius:50%}
.brand-radar:after,.panel-radar:after{content:"";position:absolute;width:9px;height:9px;background:#fff;border-radius:50%;left:15px;top:15px}
body.sources-light-mode .brand-radar:after{background:#173f72}
.brand-radar span,.panel-radar span{position:absolute;width:29px;height:29px;border:2px solid rgba(255,255,255,.75);border-left-color:transparent;border-radius:50%;left:4px;top:4px}
body.sources-light-mode .brand-radar span{border-color:rgba(23,63,114,.65);border-left-color:transparent}
.brand-radar i,.panel-radar i{position:absolute;width:17px;height:2px;background:var(--accent);left:18px;top:8px;transform:rotate(-40deg);transform-origin:left center}
.top-features{margin-left:auto;display:flex;gap:28px;color:#ccd9ea;font-size:13px}
body.sources-light-mode .top-features{color:#173d68;font-weight:700}
.top-features span{white-space:nowrap}
.local-badge{padding:10px 14px;background:var(--accent);border-radius:10px;font-size:11px;font-weight:800;letter-spacing:.06em;color:#fff;white-space:nowrap}

.hero{
  width:min(1540px,95vw);margin:0 auto;flex:1;display:grid;
  grid-template-columns:minmax(0,1fr) 450px;
  gap:52px;align-items:center;padding:48px 0 42px;position:relative
}
.hero:after{
  content:"";position:absolute;right:-10vw;top:4%;bottom:5%;width:45%;
  background:radial-gradient(circle at 50% 48%,rgba(255,255,255,.25),rgba(217,102,67,.12) 30%,transparent 66%);
  pointer-events:none;filter:blur(4px)
}
.hero-copy{
  position:relative;min-height:650px;
  display:grid;grid-template-columns:minmax(590px,1.7fr) minmax(300px,.9fr);
  gap:18px;align-items:center;overflow:visible
}
.hero-text-zone{
  position:relative;z-index:5;min-width:0;padding-left:4px;
}

.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#ef8464;margin-bottom:18px}
.hero h1,.wizard-title h1{font-size:clamp(50px,4.25vw,70px);line-height:1.03;letter-spacing:-.035em;margin:0 0 24px}
.hero-text-zone h1{max-width:650px}
.hero h1 span{color:var(--accent)}
.lead{font-size:20px;line-height:1.65;color:#c1d0e2;max-width:620px;margin:0}
.lead strong{color:#ff8b69}
.feature-row{display:flex;gap:34px;margin-top:38px;position:relative;z-index:4}
.feature-row>div{display:flex;align-items:center;gap:10px}
.feature-row em{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(13,50,90,.80);border:1px solid rgba(76,168,255,.18);color:#ff7a56;font-style:normal;font-size:20px}
.feature-row span{display:flex;flex-direction:column}
.feature-row b{font-size:13px}.feature-row small{font-size:11px;color:#9fb0c8;margin-top:2px}

.news-stream{
  position:relative;left:auto;right:auto;top:auto;bottom:auto;
  width:100%;height:560px;pointer-events:none;z-index:2;min-width:0;
}
.news-stream:before{
  content:"";position:absolute;left:-35%;right:-14%;top:42%;height:260px;border-radius:50%;
  border-top:1px solid rgba(64,160,246,.26);transform:rotate(-7deg);
  box-shadow:0 -18px 80px rgba(49,132,217,.10)
}
.news-stream:after{
  content:"";position:absolute;left:-28%;right:-28%;top:56%;height:200px;
  background:
    linear-gradient(8deg,transparent 0 44%,rgba(42,126,208,.22) 44.4% 44.7%,transparent 45% 49%,rgba(217,102,67,.30) 49.3% 49.6%,transparent 50%);
}
.stream-card{
  position:absolute;width:min(270px,92%);height:106px;border:1px solid rgba(173,208,242,.27);
  border-radius:15px;background:linear-gradient(135deg,rgba(99,155,211,.18),rgba(255,255,255,.035));
  backdrop-filter:blur(12px);box-shadow:0 18px 45px rgba(0,0,0,.18);
  display:flex;gap:12px;padding:12px;
  transform:perspective(600px) rotateY(-8deg) rotateZ(-2deg);
  animation:floatCard 6s ease-in-out infinite
}
.sc1{left:2%;top:9%}
.sc2{left:15%;top:40%;animation-delay:-2s}
.sc3{left:-5%;top:70%;animation-delay:-4s}
.thumb{width:72px;height:72px;border-radius:9px;flex:0 0 auto;overflow:hidden;border:1px solid rgba(255,255,255,.14)}
.thumb.skyline{
  background:
    linear-gradient(180deg,rgba(91,124,158,.95) 0 46%,rgba(29,56,84,.95) 47% 100%);
}
.thumb.road{
  background:
    linear-gradient(145deg,#284b70 0 49%,#6a8bab 50% 61%,#20354a 62%);
}
.thumb.speaker{
  background:
    radial-gradient(circle at 50% 28%,#d9e1e8 0 9%,transparent 10%),
    linear-gradient(180deg,#536c88 0 58%,#1e3855 59%);
}
.stream-copy{flex:1;position:relative;padding-top:16px}
.stream-copy small{position:absolute;right:0;top:0;color:#aebdd0;font-size:9px}
.stream-copy i{display:block;height:7px;border-radius:8px;background:rgba(255,255,255,.27);margin-top:10px;width:100%}
.stream-copy i.short{width:68%;margin-top:9px}
.notify-bubble{
  position:absolute;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  color:#ff8c6c;background:rgba(217,102,67,.22);border:1px solid rgba(255,135,98,.72);
  box-shadow:0 0 42px rgba(217,102,67,.45);font-size:18px;
  animation:pulse 2.7s ease-in-out infinite
}
.nb1{left:72%;top:25%}
.nb2{left:3%;top:58%;animation-delay:-1.2s}
.data-line{position:absolute;height:1px;transform-origin:left;background:linear-gradient(90deg,transparent,#4ca7ff,#d96643,transparent);opacity:.65}
.dl1{width:390px;left:-18%;top:48%;transform:rotate(4deg)}
.dl2{width:350px;left:-10%;top:65%;transform:rotate(-3deg)}
.dl3{width:420px;left:-14%;top:82%;transform:rotate(5deg)}
@keyframes floatCard{
  0%,100%{transform:perspective(600px) rotateY(-8deg) rotateZ(-2deg) translateY(0)}
  50%{transform:perspective(600px) rotateY(-8deg) rotateZ(-2deg) translateY(-8px)}
}
@keyframes pulse{
  0%,100%{transform:scale(1);opacity:.8}
  50%{transform:scale(1.08);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .stream-card,.notify-bubble{animation:none}
}

.auth-card{
  width:100%;max-width:450px;justify-self:end;color:#15304f;position:relative;z-index:4;
  background:linear-gradient(150deg,rgba(255,255,255,.98),rgba(239,244,251,.91));
  border:1px solid rgba(255,255,255,.92);border-radius:28px;padding:38px;
  box-shadow:0 30px 80px rgba(0,0,0,.26),0 0 80px rgba(255,255,255,.08);backdrop-filter:blur(22px)
}
.panel-logo{display:flex;flex-direction:column;align-items:center;gap:12px}
.panel-radar{width:64px;height:64px;border-width:4px}.panel-radar span{width:44px;height:44px;left:6px;top:6px;border-color:rgba(13,45,86,.68);border-left-color:transparent}.panel-radar:after{width:12px;height:12px;left:22px;top:22px;background:#173f72}.panel-radar i{width:24px;left:26px;top:12px}
.panel-wordmark{font-weight:850;letter-spacing:.05em;font-size:28px;color:#17365e}.panel-wordmark.compact{font-size:22px;margin-bottom:12px}
.satellite-art{height:105px;position:relative;margin:16px 0 2px}.dish{width:54px;height:28px;border:3px solid #6f89a7;border-radius:0 0 60px 60px;transform:rotate(-35deg);position:absolute;left:50%;top:35px;margin-left:-24px}.dish:after{content:"";position:absolute;width:3px;height:42px;background:#6f89a7;left:26px;top:23px}
.signal{position:absolute;border:2px solid #9eb2c9;border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;transform:rotate(10deg)}.s1{width:28px;height:28px;left:56%;top:18px}.s2{width:45px;height:45px;left:57%;top:8px}
.auth-card h2{text-align:center;font-size:28px;margin:7px 0 8px}.auth-card p{text-align:center;color:#6f8096;line-height:1.5;margin:0 0 22px}
.btn{width:100%;border:0;border-radius:12px;padding:15px 18px;font-size:15px;font-weight:800;cursor:pointer;margin-top:10px;transition:.15s ease}.btn:hover{transform:translateY(-1px)}
.btn.primary{color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent-2));box-shadow:0 10px 25px rgba(183,78,51,.23);display:flex;align-items:center;justify-content:center;gap:12px}.btn.primary span{margin-left:auto}
.btn.secondary{background:rgba(255,255,255,.55);color:#17365e;border:1.5px solid #234873}.btn.ghost{background:transparent;border:1px solid #d4dce7;color:#6d7d91}
.back-link{border:0;background:none;padding:0;color:#1f5d9c;font-weight:750;cursor:pointer;margin-bottom:14px}
label{display:block;font-size:12px;font-weight:800;margin:13px 0 6px;color:#34506d}
input{width:100%;border:1px solid #cad4e0;border-radius:11px;padding:13px 14px;font-size:15px;outline:none;background:#fbfcfe}
input:focus{border-color:#2d6aa8;box-shadow:0 0 0 3px rgba(23,78,140,.10)}
.small{font-size:13px}.error{background:#fdecec;border:1px solid #efc1c1;color:#9e2424;padding:10px 12px;border-radius:10px;font-size:13px;margin-top:14px}
.demo-box{margin-top:18px;padding-top:16px;border-top:1px solid #dce3ec;font-size:12px;color:#76879a;line-height:1.6}
.success-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto;background:#e9f7ef;color:#157347;font-size:28px;font-weight:900}
.account-summary{border:1px solid #d9e1ea;border-radius:14px;overflow:hidden;margin:22px 0}.account-summary>div{display:flex;justify-content:space-between;gap:18px;padding:13px 15px;border-bottom:1px solid #e1e7ef}.account-summary>div:last-child{border-bottom:0}.account-summary span{color:#75869a;font-size:12px}.account-summary strong{font-size:12px}

/* SOURCES SCREEN */
.sources-view{
  width:min(1500px,96vw);margin:26px auto 0;flex:1;padding:28px 28px 128px;border-radius:28px 28px 0 0;
  transition:background .22s ease,color .22s ease,border-color .22s ease
}
.sources-view.theme-dark{
  color:#f4f8fc;
  background:
    radial-gradient(circle at 84% 15%,rgba(217,102,67,.10),transparent 23%),
    radial-gradient(circle at 20% 82%,rgba(65,145,224,.09),transparent 28%),
    rgba(5,23,44,.38);
  border:1px solid rgba(185,211,237,.10)
}
.sources-view.theme-light{
  color:#123659;
  background:
    radial-gradient(circle at 72% 42%,
      transparent 0 12%,
      rgba(76,157,237,.070) 12.15% 12.45%,
      transparent 12.7% 20%,
      rgba(76,157,237,.060) 20.15% 20.45%,
      transparent 20.7% 28%,
      rgba(76,157,237,.048) 28.15% 28.40%,
      transparent 28.65% 36%,
      rgba(76,157,237,.036) 36.15% 36.38%,
      transparent 36.7%),
    radial-gradient(circle at 88% 14%,rgba(74,153,233,.10),transparent 25%),
    radial-gradient(circle at 8% 82%,rgba(43,115,188,.07),transparent 25%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,248,255,.94) 55%,rgba(233,245,253,.92) 100%);
  border:1px solid rgba(37,89,139,.12);
  box-shadow:0 18px 50px rgba(54,79,103,.08);
  position:relative;
  overflow:hidden;
}
.wizard-head{display:grid;grid-template-columns:92px minmax(0,1fr) 370px;gap:24px;align-items:center;margin-bottom:28px}
.sources-view.theme-light:before{
  content:"";position:absolute;inset:-4% -8% auto auto;width:68%;height:84%;
  background:
    radial-gradient(circle at 55% 40%,rgba(255,255,255,.78),transparent 32%),
    repeating-radial-gradient(circle at 55% 42%,
      transparent 0 70px,
      rgba(69,145,220,.045) 71px 72px,
      transparent 73px 116px);
  pointer-events:none;opacity:.92
}
.sources-view.theme-light:after{
  content:"";position:absolute;left:-7%;right:24%;bottom:7%;height:35%;
  background:
    linear-gradient(7deg,
      transparent 0 45%,
      rgba(56,132,207,.10) 45.25% 45.55%,
      transparent 45.85% 49%,
      rgba(56,132,207,.07) 49.25% 49.55%,
      transparent 49.85% 53%,
      rgba(217,102,67,.07) 53.25% 53.55%,
      transparent 53.85%);
  border-radius:50%;
  pointer-events:none;opacity:.78
}
.theme-light .wizard-head,
.theme-light .source-toolbar,
.theme-light .source-explainer,
.theme-light .source-grid{position:relative;z-index:1}

.source-back{color:#c9d8e9}.theme-light .source-back{color:#285d91}
.wizard-title h1{font-size:44px;margin:0 0 10px}.wizard-title p{color:#aebfd1;margin:0;line-height:1.5}
.theme-light .wizard-title p{color:#536f89}.theme-light .eyebrow{color:#c95a3a}
.wizard-side{display:flex;flex-direction:column;gap:16px}
.theme-picker{display:flex;align-items:center;justify-content:space-between;gap:14px}
.theme-picker>span{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:#8da3bb;font-weight:800}
.theme-light .theme-picker>span{color:#536f89}
.theme-segment{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:rgba(0,0,0,.16);border:1px solid rgba(185,211,237,.12)}
.theme-light .theme-segment{background:#edf1f4;border-color:#d3dde6}
.theme-segment button{border:0;background:transparent;color:#8ea4bb;padding:9px 11px;border-radius:9px;font-size:11px;font-weight:750;cursor:pointer;min-width:90px}
.theme-segment button.active{background:#fff;color:#173b61;box-shadow:0 4px 14px rgba(0,0,0,.10)}
.theme-light .theme-segment button{color:#647b91}.theme-light .theme-segment button.active{background:#183f66;color:#fff}
.progress-label{display:flex;justify-content:space-between;font-size:11px;color:#9db0c6;margin-bottom:9px}.progress-label b{color:#fff}
.theme-light .progress-label{color:#526f89}.theme-light .progress-label b{color:#0f3358}
.progress{height:7px;background:rgba(255,255,255,.11);border-radius:30px;overflow:hidden}.theme-light .progress{background:#d8e1e9}
.progress i{display:block;height:100%;background:linear-gradient(90deg,#d76542,#ff8a67);border-radius:30px}

.source-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:14px;align-items:center;margin-bottom:18px}
.searchbox{height:48px;border-radius:13px;border:1px solid rgba(189,213,238,.22);background:rgba(255,255,255,.06);display:flex;align-items:center;padding:0 15px;color:#8da9c5}
.searchbox input{background:transparent;border:0;box-shadow:none!important;color:#fff;padding:0 10px}.searchbox input::placeholder{color:#8097af}
.theme-light .searchbox{background:rgba(255,255,255,.94);border-color:#c7d9e8;color:#365f86;box-shadow:0 6px 18px rgba(40,70,98,.05)}
.theme-light .searchbox input{color:#12395f}.theme-light .searchbox input::placeholder{color:#6f87a0}
.chips{display:flex;gap:7px;flex-wrap:wrap}
.chip{border:1px solid rgba(188,212,238,.19);background:rgba(255,255,255,.05);color:#b8c8da;border-radius:999px;padding:9px 12px;font-size:11px;cursor:pointer}
.chip.active{background:#d76542;color:#fff;border-color:#d76542}
.theme-light .chip{background:rgba(255,255,255,.92);border-color:#c8d9e7;color:#3e5f7e}.theme-light .chip.active{background:#d76542;color:#fff;border-color:#d76542}
.add-source{height:48px;border:1px solid rgba(215,101,66,.65);background:rgba(215,101,66,.11);color:#ffb099;border-radius:12px;padding:0 16px;font-weight:750;cursor:pointer}
.theme-light .add-source{background:#fff4ef;color:#b84f31}

.source-explainer{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}
.explain-card{display:flex;gap:13px;align-items:center;border:1px solid rgba(185,211,237,.15);background:rgba(255,255,255,.045);border-radius:14px;padding:14px 16px}
.theme-light .explain-card{background:#fff;border-color:#d8e1e9;box-shadow:0 5px 16px rgba(40,70,98,.04)}
.mode-icon{font-size:24px;color:#5eb5ff}.selective .mode-icon{color:#ff8f6d}
.explain-card div{display:flex;flex-direction:column}.explain-card b{font-size:13px}.explain-card small{color:#8fa4bb;margin-top:4px}
.theme-light .explain-card small{color:#5d7891}

.source-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.source-card{
  border:1px solid rgba(184,211,237,.16);background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  border-radius:17px;padding:17px;min-height:196px;transition:.15s ease;position:relative
}
.source-card:hover{transform:translateY(-2px);border-color:rgba(107,176,244,.36)}
.source-card.selected{border-color:rgba(215,101,66,.75);box-shadow:0 0 0 1px rgba(215,101,66,.17),0 15px 40px rgba(0,0,0,.12)}
.theme-light .source-card{background:rgba(255,255,255,.94);border-color:#cdddea;box-shadow:0 8px 22px rgba(50,84,116,.065)}
.theme-light .source-card:hover{border-color:#8db7db}.theme-light .source-card.selected{border-color:#d76542;box-shadow:0 0 0 1px rgba(215,101,66,.13),0 10px 24px rgba(48,76,101,.08)}
.source-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-right:34px;min-height:26px}.source-avatar{width:43px;height:43px;border-radius:11px;background:linear-gradient(135deg,#174e8c,#0d3157);display:grid;place-items:center;font-weight:900;color:#fff}.verified{font-size:10px;color:#8ec5f5}.theme-light .verified{color:#1f6cab;font-weight:700}
.source-card h3{font-size:15px;margin:13px 0 3px;position:relative;z-index:1}
.domain{font-size:11px;color:#8198b0}
.category{display:inline-block;font-size:10px;color:#9fb4ca;margin-top:8px}
.verified{
  font-size:10px;color:#8ec5f5;
  display:inline-flex;align-items:center;justify-content:flex-end;
  line-height:1.1;max-width:calc(100% - 12px);text-align:right;
}
.theme-light .domain{color:#587591}.theme-light .category{color:#587591}
.mode-toggle{display:grid;grid-template-columns:1fr 1fr;background:rgba(0,0,0,.16);border-radius:10px;padding:3px;margin-top:17px}
.theme-light .mode-toggle{background:#edf2f6}
.mode-toggle button{border:0;background:transparent;color:#829ab3;border-radius:8px;padding:8px 6px;font-size:10px;cursor:pointer}
.mode-toggle button.active{background:#fff;color:#17365e;font-weight:800}
.theme-light .mode-toggle button{color:#4b6984}.theme-light .mode-toggle button.active{background:#173f66;color:#fff}
.source-select{position:absolute;top:14px;right:14px;width:20px;height:20px;border-radius:6px;border:1px solid #6282a4;background:rgba(0,0,0,.12);display:grid;place-items:center;color:transparent;cursor:pointer;font-size:12px;z-index:2}
.theme-light .source-select{background:#f4f7f9;border-color:#9ab0c5}
.source-card.selected .source-select{background:#d76542;border-color:#d76542;color:white}
.wizard-footer{
  position:fixed;bottom:0;left:0;right:0;background:rgba(6,23,45,.92);backdrop-filter:blur(18px);
  border-top:1px solid rgba(180,207,234,.16);padding:16px max(3vw,28px);display:flex;align-items:center;justify-content:space-between;z-index:20;
  transition:background .22s ease,color .22s ease
}
body.sources-light-mode .wizard-footer{background:rgba(255,255,255,.93);border-top-color:#d8e1e9;color:#183650;box-shadow:0 -8px 28px rgba(48,74,98,.08)}
.wizard-footer>div{display:flex;flex-direction:column}.wizard-footer strong{font-size:13px}.wizard-footer span{font-size:11px;color:#859bb2;margin-top:3px}
body.sources-light-mode .wizard-footer span{color:#57728b}
.btn.inline{width:auto;min-width:230px;margin:0}
.toast{position:fixed;right:28px;bottom:95px;background:#f6f8fb;color:#193956;padding:14px 18px;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.25);font-size:13px;z-index:30}
#globalFooter{padding:17px;text-align:center;color:#6f839c;font-size:11px}

@media(max-width:1100px){
  .top-features{display:none}.hero{grid-template-columns:1fr}.auth-card{justify-self:start;max-width:560px}.news-stream{opacity:.38}
  .source-grid{grid-template-columns:repeat(2,1fr)}.wizard-head{grid-template-columns:1fr}.source-toolbar{grid-template-columns:1fr}.chips{order:3}.wizard-side{max-width:460px}
}
@media(max-width:650px){
  .topbar{margin:10px;height:62px;padding:0 16px}.brand{font-size:18px}.local-badge{font-size:9px}.hero{padding-top:35px}.hero-copy{min-height:auto}
  .hero h1{font-size:44px}.lead{font-size:17px}.feature-row{gap:16px;flex-wrap:wrap}.news-stream{display:none}.auth-card{padding:25px}
  .source-grid{grid-template-columns:1fr}.source-explainer{grid-template-columns:1fr}.wizard-title h1{font-size:36px}.sources-view{padding-left:14px;padding-right:14px}
  .theme-picker{align-items:flex-start;flex-direction:column}.wizard-footer{gap:12px;align-items:stretch;flex-direction:column}.btn.inline{width:100%}
}

.theme-light .source-card h3{color:#0e3157}
.theme-light .explain-card b{color:#12385f}
.theme-light .wizard-title h1{color:#0c2f55}


/* =========================================================
   ONBOARDING STEP 2 — INTERESTS
   ========================================================= */
.interests-view{
  width:min(1500px,96vw);margin:26px auto 0;flex:1;padding:28px 28px 128px;
  border-radius:28px 28px 0 0;position:relative;overflow:hidden;
  transition:background .22s ease,color .22s ease,border-color .22s ease
}
.interests-view.theme-dark{
  color:#f4f8fc;
  background:
    radial-gradient(circle at 82% 17%,rgba(217,102,67,.10),transparent 22%),
    radial-gradient(circle at 18% 82%,rgba(65,145,224,.09),transparent 28%),
    radial-gradient(circle at 73% 46%,
      transparent 0 10%,rgba(67,150,231,.05) 10.15% 10.4%,
      transparent 10.7% 17%,rgba(67,150,231,.045) 17.15% 17.4%,
      transparent 17.7% 24%,rgba(67,150,231,.035) 24.15% 24.35%,transparent 24.65%),
    rgba(5,23,44,.42);
  border:1px solid rgba(185,211,237,.10)
}
.interests-view.theme-light{
  color:#123659;
  background:
    radial-gradient(circle at 72% 42%,
      transparent 0 12%,rgba(76,157,237,.070) 12.15% 12.45%,
      transparent 12.7% 20%,rgba(76,157,237,.060) 20.15% 20.45%,
      transparent 20.7% 28%,rgba(76,157,237,.048) 28.15% 28.40%,
      transparent 28.65% 36%,rgba(76,157,237,.036) 36.15% 36.38%,transparent 36.7%),
    radial-gradient(circle at 88% 14%,rgba(74,153,233,.10),transparent 25%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,248,255,.94) 55%,rgba(233,245,253,.92) 100%);
  border:1px solid rgba(37,89,139,.12);
  box-shadow:0 18px 50px rgba(54,79,103,.08)
}
.interests-head,.interest-layout{position:relative;z-index:1}
.interest-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start
}
.interest-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.interest-panel{
  border:1px solid rgba(184,211,237,.15);
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  border-radius:18px;padding:20px
}
.theme-light .interest-panel{
  background:rgba(255,255,255,.94);border-color:#cfdfea;
  box-shadow:0 8px 22px rgba(50,84,116,.055)
}
.panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.panel-heading>div{min-width:0}
.panel-heading h2{font-size:19px;margin:2px 0 5px}
.panel-heading p{font-size:12px;line-height:1.5;color:#91a7bd;margin:0;max-width:760px}
.theme-light .panel-heading h2{color:#0d3157}
.theme-light .panel-heading p{color:#5d7891}
.step-badge{
  display:inline-grid;place-items:center;min-width:32px;height:22px;padding:0 7px;
  border-radius:999px;background:rgba(215,102,67,.14);color:#ff9676;
  font-size:10px;font-weight:900;letter-spacing:.08em
}
.theme-light .step-badge{background:#edf6ff;color:#1768ae}
.optional-label{font-size:10px;color:#8198af;border:1px solid rgba(153,184,214,.20);padding:6px 9px;border-radius:999px}
.theme-light .optional-label{color:#678099;border-color:#d4e1ec;background:#f7fbff}

.tag-input-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.tag-input-row input{
  background:rgba(255,255,255,.065);border:1px solid rgba(182,209,235,.18);color:#f4f8fc;
  padding:13px 14px;border-radius:11px
}
.tag-input-row input::placeholder{color:#7189a2}
.theme-light .tag-input-row input{
  background:#fff;color:#12395f;border-color:#cbdce9
}
.theme-light .tag-input-row input::placeholder{color:#7189a0}
.mini-primary{
  border:0;border-radius:11px;padding:0 16px;background:#164f88;color:#fff;
  font-weight:800;cursor:pointer;min-height:44px
}
.theme-dark .mini-primary{background:linear-gradient(135deg,#235f9a,#17456f)}
.theme-light .mini-primary{background:#116ac1}
.helper-text{font-size:10px;color:#7089a2;margin-top:9px}
.theme-light .helper-text{color:#657e96}

.tag-cloud{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.data-tag{
  display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 10px;
  background:rgba(36,100,163,.22);border:1px solid rgba(82,156,226,.28);
  color:#cfe8ff;font-size:11px;font-weight:700
}
.theme-light .data-tag{background:#edf7ff;color:#174e7f;border-color:#bedcf2}
.data-tag button{border:0;background:none;color:inherit;cursor:pointer;padding:0;font-size:14px;line-height:1;opacity:.75}

.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.topic-card{
  min-height:76px;border:1px solid rgba(180,209,236,.16);background:rgba(255,255,255,.035);
  border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer;
  color:#c5d4e5;text-align:left;transition:.14s ease
}
.topic-card:hover{border-color:rgba(92,166,237,.40);transform:translateY(-1px)}
.topic-card.selected{border-color:#d96643;background:rgba(217,102,67,.12);color:#fff;box-shadow:0 0 0 1px rgba(217,102,67,.12)}
.topic-icon{
  width:36px;height:36px;border-radius:10px;background:rgba(39,107,173,.26);
  display:grid;place-items:center;font-size:17px;flex:0 0 auto
}
.topic-card span:last-child{font-size:12px;font-weight:800}
.theme-light .topic-card{background:#fff;border-color:#cfdeea;color:#254766}
.theme-light .topic-card:hover{border-color:#91bddf}
.theme-light .topic-card.selected{border-color:#1c77c8;background:#edf7ff;color:#0d4f89;box-shadow:0 0 0 1px rgba(28,119,200,.10)}
.theme-light .topic-icon{background:#e8f4ff;color:#146bb7}

.location-presets{display:flex;gap:8px;flex-wrap:wrap}
.location-chip{
  border:1px solid rgba(183,211,237,.18);background:rgba(255,255,255,.04);
  color:#bcd0e3;border-radius:999px;padding:9px 12px;font-size:11px;font-weight:750;cursor:pointer
}
.location-chip.selected{background:#d96643;border-color:#d96643;color:#fff}
.theme-light .location-chip{background:#fff;border-color:#cbdae7;color:#42627e}
.theme-light .location-chip.selected{background:#176fbd;border-color:#176fbd;color:#fff}
.location-row{margin-top:14px}

.interest-summary{
  position:sticky;top:18px;border:1px solid rgba(184,211,237,.16);
  background:linear-gradient(160deg,rgba(16,50,84,.82),rgba(9,31,56,.68));
  backdrop-filter:blur(18px);border-radius:18px;padding:20px
}
.theme-light .interest-summary{
  background:rgba(255,255,255,.96);border-color:#cbdce9;
  box-shadow:0 12px 30px rgba(50,80,108,.08)
}
.summary-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:#ef8464;margin-bottom:8px}
.theme-light .summary-kicker{color:#176ab4}
.interest-summary h3{font-size:17px;margin:0 0 17px}
.theme-light .interest-summary h3{color:#0f345a}
.summary-metric{
  display:flex;align-items:center;justify-content:space-between;padding:11px 0;
  border-bottom:1px solid rgba(181,208,233,.12)
}
.summary-metric span{font-size:11px;color:#93a9be}
.summary-metric strong{font-size:20px;color:#fff}
.theme-light .summary-metric{border-bottom-color:#d9e5ee}
.theme-light .summary-metric span{color:#5f7890}
.theme-light .summary-metric strong{color:#0c4e88}
.semantic-note{
  display:flex;gap:11px;padding:14px;margin-top:16px;border-radius:13px;
  background:rgba(63,137,209,.10);border:1px solid rgba(74,151,225,.18)
}
.semantic-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#164d80;color:#6ebcff;flex:0 0 auto}
.semantic-note b{font-size:12px}.semantic-note p{font-size:10px;color:#8fa6bd;line-height:1.5;margin:4px 0 0}
.theme-light .semantic-note{background:#eef8ff;border-color:#c8e3f5}
.theme-light .semantic-icon{background:#dcedfb;color:#176eb9}
.theme-light .semantic-note b{color:#123c63}
.theme-light .semantic-note p{color:#5f7890}
.summary-preview{margin-top:14px;padding:14px;border-radius:13px;background:rgba(217,102,67,.08);border:1px solid rgba(217,102,67,.14)}
.summary-preview>span{font-size:9px;font-weight:900;letter-spacing:.1em;color:#ef8464}
.summary-preview p{font-size:10px;line-height:1.55;color:#9eb1c3;margin:6px 0 0}
.theme-light .summary-preview{background:#fff6f2;border-color:#f1d4c9}
.theme-light .summary-preview>span{color:#bb5539}
.theme-light .summary-preview p{color:#5c7389}
.theme-light .summary-preview b{color:#173c61}

@media(max-width:1100px){
  .interest-layout{grid-template-columns:1fr}
  .interest-summary{position:relative;top:auto}
  .topic-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  .topic-grid{grid-template-columns:repeat(2,1fr)}
  .tag-input-row{grid-template-columns:1fr}
}
@media(max-width:430px){
  .topic-grid{grid-template-columns:1fr}
}


/* =========================================================
   ONBOARDING STEP 3 — NOTIFICATIONS
   ========================================================= */
.notifications-view{
  width:min(1500px,96vw);margin:26px auto 0;flex:1;padding:28px 28px 128px;
  border-radius:28px 28px 0 0;position:relative;overflow:hidden;
  transition:background .22s ease,color .22s ease,border-color .22s ease
}
.notifications-view.theme-dark{
  color:#f4f8fc;
  background:
    radial-gradient(circle at 83% 18%,rgba(217,102,67,.10),transparent 22%),
    radial-gradient(circle at 18% 83%,rgba(65,145,224,.09),transparent 29%),
    radial-gradient(circle at 72% 45%,
      transparent 0 10%,rgba(67,150,231,.05) 10.15% 10.4%,
      transparent 10.7% 18%,rgba(67,150,231,.04) 18.15% 18.4%,
      transparent 18.7% 26%,rgba(67,150,231,.03) 26.15% 26.35%,transparent 26.65%),
    rgba(5,23,44,.42);
  border:1px solid rgba(185,211,237,.10)
}
.notifications-view.theme-light{
  color:#123659;
  background:
    radial-gradient(circle at 72% 42%,
      transparent 0 12%,rgba(76,157,237,.070) 12.15% 12.45%,
      transparent 12.7% 20%,rgba(76,157,237,.060) 20.15% 20.45%,
      transparent 20.7% 28%,rgba(76,157,237,.048) 28.15% 28.40%,
      transparent 28.65% 36%,rgba(76,157,237,.036) 36.15% 36.38%,transparent 36.7%),
    radial-gradient(circle at 88% 14%,rgba(74,153,233,.10),transparent 25%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,248,255,.94) 55%,rgba(233,245,253,.92) 100%);
  border:1px solid rgba(37,89,139,.12);
  box-shadow:0 18px 50px rgba(54,79,103,.08)
}
.notifications-head,.notifications-layout{position:relative;z-index:1}
.notifications-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}
.notifications-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.notify-panel{
  border:1px solid rgba(184,211,237,.15);
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  border-radius:18px;padding:20px
}
.theme-light .notify-panel{
  background:rgba(255,255,255,.94);border-color:#cfdfea;
  box-shadow:0 8px 22px rgba(50,84,116,.055)
}

.priority-stack{display:flex;flex-direction:column;gap:10px}
.priority-row{
  display:grid;grid-template-columns:42px minmax(0,1fr) 230px;gap:13px;align-items:center;
  border:1px solid rgba(183,211,237,.14);border-radius:14px;padding:13px 14px;
  background:rgba(255,255,255,.035)
}
.theme-light .priority-row{background:#fff;border-color:#d3e0eb}
.priority-dot{
  width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-weight:900
}
.priority-red .priority-dot{background:rgba(224,73,73,.18);color:#ff7777;border:1px solid rgba(244,89,89,.35)}
.priority-orange .priority-dot{background:rgba(217,102,67,.18);color:#ff9878;border:1px solid rgba(217,102,67,.35)}
.priority-white .priority-dot{background:rgba(255,255,255,.08);color:#dbe8f4;border:1px solid rgba(200,220,240,.25)}
.theme-light .priority-white .priority-dot{background:#f5f8fb;color:#54728e;border-color:#ccdbe7}
.priority-copy{display:flex;flex-direction:column;gap:4px}
.priority-copy b{font-size:13px}.priority-copy span{font-size:10px;color:#8fa5bc;line-height:1.45}
.theme-light .priority-copy b{color:#12385e}.theme-light .priority-copy span{color:#5c7891}
.threshold-box label{display:block;font-size:9px;color:#849bb1;margin-bottom:6px;text-transform:uppercase;letter-spacing:.08em}
.threshold-box>div{display:grid;grid-template-columns:1fr 50px;gap:8px;align-items:center}
.threshold-box input[type="range"]{accent-color:#d96643;width:100%}
.threshold-box strong{text-align:right;font-size:14px}
.feed-rule{font-size:10px;color:#849bb1;text-align:right}
.theme-light .feed-rule{color:#5a7790}

.setting-line{
  margin-top:15px;padding:13px 14px;border-radius:13px;border:1px solid rgba(184,211,237,.13);
  background:rgba(255,255,255,.025);display:flex;justify-content:space-between;align-items:center;gap:20px
}
.theme-light .setting-line{background:#f8fbfe;border-color:#d6e2ec}
.setting-line>span{display:flex;flex-direction:column;gap:4px}
.setting-line b{font-size:12px}.setting-line small{font-size:10px;line-height:1.45;color:#829ab1;max-width:760px}
.theme-light .setting-line b{color:#12385d}.theme-light .setting-line small{color:#5f7890}
.setting-line input[type="checkbox"],.channel-card input[type="checkbox"]{
  appearance:none;width:40px;height:22px;border-radius:999px;background:#465f78;position:relative;cursor:pointer;flex:0 0 auto;transition:.15s
}
.setting-line input[type="checkbox"]:after,.channel-card input[type="checkbox"]:after{
  content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;transition:.15s
}
.setting-line input[type="checkbox"]:checked,.channel-card input[type="checkbox"]:checked{background:#1673c7}
.setting-line input[type="checkbox"]:checked:after,.channel-card input[type="checkbox"]:checked:after{left:21px}

.channel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.channel-card{
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;
  border:1px solid rgba(184,211,237,.14);border-radius:14px;padding:14px;background:rgba(255,255,255,.035)
}
.theme-light .channel-card{background:#fff;border-color:#d3e0eb}
.channel-icon{width:37px;height:37px;border-radius:10px;background:rgba(36,105,170,.25);display:grid;place-items:center;color:#74beff;font-size:16px}
.theme-light .channel-icon{background:#e8f4ff;color:#176fb9}
.channel-card>div:nth-child(2){display:flex;flex-direction:column;gap:3px}
.channel-card b{font-size:12px}.channel-card span{font-size:9px;color:#849bb2;line-height:1.35}
.theme-light .channel-card b{color:#12375d}.theme-light .channel-card span{color:#5e7790}

.email-options{
  margin-top:13px;border-top:1px solid rgba(184,211,237,.12);padding-top:13px;
  display:flex;align-items:center;justify-content:space-between;gap:16px
}
.email-options>span{font-size:11px;color:#899fb5}
.email-options.disabled{opacity:.42;pointer-events:none}
.email-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:rgba(0,0,0,.14);padding:4px;border-radius:10px}
.theme-light .email-mode{background:#edf2f6}
.email-mode button{border:0;background:transparent;color:#829ab2;padding:8px 14px;border-radius:8px;font-size:10px;font-weight:750;cursor:pointer}
.email-mode button.active{background:#fff;color:#15395f}
.theme-light .email-mode button.active{background:#173f66;color:#fff}

.quiet-hours{
  display:flex;align-items:center;gap:12px;margin-top:13px;padding:12px 14px;border-radius:12px;
  border:1px solid rgba(184,211,237,.12);background:rgba(255,255,255,.025)
}
.theme-light .quiet-hours{background:#f8fbfe;border-color:#d6e2ec}
.quiet-hours.disabled{opacity:.42;pointer-events:none}
.quiet-hours label{display:flex;align-items:center;gap:8px;margin:0;color:#8ca2b8;font-size:10px}
.theme-light .quiet-hours label{color:#5f7890}
.quiet-hours input[type="time"]{width:auto;min-width:108px;padding:9px 10px;background:rgba(255,255,255,.06);color:#fff;border-color:rgba(184,211,237,.16)}
.theme-light .quiet-hours input[type="time"]{background:#fff;color:#12395f;border-color:#cbdce9}

.notification-preview{
  position:sticky;top:18px;border:1px solid rgba(184,211,237,.16);
  background:linear-gradient(160deg,rgba(16,50,84,.82),rgba(9,31,56,.68));
  backdrop-filter:blur(18px);border-radius:18px;padding:20px
}
.theme-light .notification-preview{
  background:rgba(255,255,255,.96);border-color:#cbdce9;
  box-shadow:0 12px 30px rgba(50,80,108,.08)
}
.notification-preview h3{font-size:17px;margin:0 0 15px}
.theme-light .notification-preview h3{color:#10365c}
.preview-alert{
  border-radius:13px;padding:13px;margin-top:10px;border:1px solid rgba(255,255,255,.10)
}
.red-alert{background:rgba(187,54,54,.18);border-color:rgba(239,82,82,.28)}
.orange-alert{background:rgba(217,102,67,.13);border-color:rgba(217,102,67,.24)}
.theme-light .red-alert{background:#fff2f2;border-color:#f2c9c9}
.theme-light .orange-alert{background:#fff6f2;border-color:#f1d5ca}
.preview-alert-head{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.08em;color:#9bb0c3;margin-bottom:6px}
.red-alert .preview-alert-head b{color:#ff8585}.orange-alert .preview-alert-head b{color:#ff9676}
.preview-alert strong{display:block;font-size:11px;line-height:1.4}
.preview-alert p{font-size:9px;line-height:1.4;color:#92a8bc;margin:5px 0}
.preview-alert small{font-size:8px;color:#819ab0}
.theme-light .preview-alert strong{color:#17395c}.theme-light .preview-alert p,.theme-light .preview-alert small{color:#607a91}
.preview-channels{margin-top:15px;padding-top:13px;border-top:1px solid rgba(184,211,237,.13)}
.preview-channels>span{font-size:9px;color:#849cb2;text-transform:uppercase;letter-spacing:.09em}
.active-channel-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.active-channel-tag{padding:6px 8px;border-radius:999px;background:rgba(43,112,181,.22);border:1px solid rgba(78,150,220,.22);font-size:9px;color:#bee0ff}
.theme-light .active-channel-tag{background:#edf7ff;border-color:#c9e1f3;color:#175b93}
.simulate-btn{
  width:100%;margin-top:14px;border:1px solid rgba(85,166,244,.28);background:rgba(36,102,168,.18);
  color:#cce7ff;border-radius:11px;padding:11px;font-size:10px;font-weight:800;cursor:pointer
}
.theme-light .simulate-btn{background:#edf7ff;color:#1766a9;border-color:#c8e0f2}
.simulation-message{margin-top:10px;border-radius:10px;padding:10px;background:rgba(36,111,180,.14);font-size:9px;color:#a9c9e7;line-height:1.4}
.theme-light .simulation-message{background:#eef7ff;color:#3d678b}

@media(max-width:1120px){
  .notifications-layout{grid-template-columns:1fr}
  .notification-preview{position:relative;top:auto}
}
@media(max-width:850px){
  .priority-row{grid-template-columns:42px 1fr}
  .threshold-box,.feed-rule{grid-column:2}
  .channel-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .priority-row{grid-template-columns:1fr}
  .priority-dot,.threshold-box,.feed-rule{grid-column:auto}
  .email-options{align-items:flex-start;flex-direction:column}
  .quiet-hours{flex-wrap:wrap}
}


/* =========================================================
   ONBOARDING STEP 4 — REVIEW & ACTIVATE
   ========================================================= */
.review-view{
  width:min(1500px,96vw);margin:26px auto 0;flex:1;padding:28px 28px 60px;
  border-radius:28px;position:relative;overflow:hidden;
  transition:background .22s ease,color .22s ease,border-color .22s ease
}
.review-view.theme-dark{
  color:#f4f8fc;
  background:
    radial-gradient(circle at 82% 18%,rgba(217,102,67,.10),transparent 22%),
    radial-gradient(circle at 18% 82%,rgba(65,145,224,.09),transparent 28%),
    radial-gradient(circle at 73% 44%,
      transparent 0 10%,rgba(67,150,231,.05) 10.15% 10.4%,
      transparent 10.7% 18%,rgba(67,150,231,.04) 18.15% 18.4%,
      transparent 18.7% 26%,rgba(67,150,231,.03) 26.15% 26.35%,transparent 26.65%),
    rgba(5,23,44,.42);
  border:1px solid rgba(185,211,237,.10)
}
.review-view.theme-light{
  color:#123659;
  background:
    radial-gradient(circle at 72% 42%,
      transparent 0 12%,rgba(76,157,237,.070) 12.15% 12.45%,
      transparent 12.7% 20%,rgba(76,157,237,.060) 20.15% 20.45%,
      transparent 20.7% 28%,rgba(76,157,237,.048) 28.15% 28.40%,
      transparent 28.65% 36%,rgba(76,157,237,.036) 36.15% 36.38%,transparent 36.7%),
    radial-gradient(circle at 88% 14%,rgba(74,153,233,.10),transparent 25%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,248,255,.94) 55%,rgba(233,245,253,.92) 100%);
  border:1px solid rgba(37,89,139,.12);
  box-shadow:0 18px 50px rgba(54,79,103,.08)
}
.review-head,.review-layout{position:relative;z-index:1}
.review-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px;align-items:start
}
.review-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.review-card{
  border:1px solid rgba(184,211,237,.15);
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  border-radius:18px;padding:20px
}
.theme-light .review-card{
  background:rgba(255,255,255,.94);border-color:#cfdfea;
  box-shadow:0 8px 22px rgba(50,84,116,.055)
}
.review-card-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px
}
.review-card-head>div{display:flex;gap:12px;align-items:flex-start}
.review-number{
  width:34px;height:28px;border-radius:9px;display:grid;place-items:center;
  background:rgba(217,102,67,.13);color:#ff9676;font-size:10px;font-weight:900;letter-spacing:.08em
}
.theme-light .review-number{background:#edf6ff;color:#1768ae}
.review-card-head h2{font-size:18px;margin:1px 0 4px}
.review-card-head p{font-size:10px;color:#869db4;line-height:1.45;margin:0}
.theme-light .review-card-head h2{color:#0d3157}
.theme-light .review-card-head p{color:#5d7891}
.edit-btn{
  border:1px solid rgba(99,164,227,.28);background:rgba(39,106,173,.12);color:#bfe0ff;
  padding:8px 11px;border-radius:9px;font-size:10px;font-weight:800;cursor:pointer
}
.theme-light .edit-btn{background:#edf7ff;color:#1765a8;border-color:#c5dff1}

.review-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}
.review-stat-row>div{
  border:1px solid rgba(184,211,237,.12);border-radius:12px;padding:12px;background:rgba(255,255,255,.025);
  display:flex;flex-direction:column;gap:3px
}
.review-stat-row strong{font-size:21px}
.review-stat-row span{font-size:9px;color:#8299b0}
.theme-light .review-stat-row>div{background:#f8fbfe;border-color:#d7e3ec}
.theme-light .review-stat-row strong{color:#0e4f89}
.theme-light .review-stat-row span{color:#5f7890}

.review-list{display:flex;gap:7px;flex-wrap:wrap}
.review-source-pill{
  display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 9px;
  border:1px solid rgba(183,211,237,.16);background:rgba(255,255,255,.035);
  font-size:10px;color:#bed1e3
}
.review-source-pill i{
  width:7px;height:7px;border-radius:50%;background:#5aaeff;display:block
}
.review-source-pill.full i{background:#d96643}
.theme-light .review-source-pill{background:#fff;border-color:#d2e0eb;color:#365875}

.review-interest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.review-subsection{
  border:1px solid rgba(184,211,237,.12);border-radius:13px;padding:13px;background:rgba(255,255,255,.025)
}
.theme-light .review-subsection{background:#f9fcff;border-color:#d6e3ed}
.review-subsection>span{
  display:block;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#819ab2;margin-bottom:8px
}
.review-tags{display:flex;gap:6px;flex-wrap:wrap}
.review-tag{
  padding:6px 8px;border-radius:999px;background:rgba(36,102,168,.18);
  border:1px solid rgba(70,145,217,.18);font-size:9px;color:#c7e5ff
}
.theme-light .review-tag{background:#edf7ff;border-color:#c9e1f3;color:#175b93}
.review-tag.empty{opacity:.62}

.review-notification-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.review-priority{
  border-radius:13px;padding:12px;border:1px solid rgba(184,211,237,.12);
  display:flex;flex-direction:column;gap:3px;background:rgba(255,255,255,.025)
}
.review-priority span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.review-priority strong{font-size:18px}.review-priority small{font-size:9px;color:#829ab1}
.review-priority.red{border-color:rgba(231,83,83,.26);background:rgba(188,58,58,.10)}
.review-priority.orange{border-color:rgba(217,102,67,.25);background:rgba(217,102,67,.08)}
.theme-light .review-priority{background:#f8fbfe;border-color:#d4e1eb}
.theme-light .review-priority.red{background:#fff4f4;border-color:#f1cece}
.theme-light .review-priority.orange{background:#fff7f2;border-color:#efd9ce}
.theme-light .review-priority strong{color:#12385e}
.theme-light .review-priority small{color:#5f7890}

.review-channel-line{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:13px;padding-top:13px;border-top:1px solid rgba(184,211,237,.12)
}
.review-channel-line>span{font-size:10px;color:#8199b0}
.review-quiet{font-size:9px;color:#829ab0;margin-top:9px}
.theme-light .review-channel-line>span,.theme-light .review-quiet{color:#5f7890}

.activation-panel{
  position:sticky;top:18px;border:1px solid rgba(184,211,237,.16);
  background:linear-gradient(160deg,rgba(16,50,84,.88),rgba(9,31,56,.76));
  backdrop-filter:blur(18px);border-radius:20px;padding:24px;text-align:center
}
.theme-light .activation-panel{
  background:rgba(255,255,255,.97);border-color:#cbdce9;
  box-shadow:0 12px 30px rgba(50,80,108,.08)
}
.activation-radar{
  width:74px;height:74px;border-radius:50%;margin:0 auto 15px;position:relative;
  border:3px solid #d96643;border-left-color:transparent
}
.activation-radar:before{
  content:"";position:absolute;inset:10px;border-radius:50%;border:2px solid rgba(101,175,243,.72);border-left-color:transparent
}
.activation-radar:after{
  content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;left:28px;top:28px;box-shadow:0 0 22px rgba(94,177,255,.6)
}
.theme-light .activation-radar:after{background:#174e84}
.activation-radar span{
  position:absolute;width:31px;height:2px;background:#d96643;left:37px;top:18px;transform:rotate(-38deg);transform-origin:left center
}
.activation-panel h3{font-size:22px;margin:4px 0 8px}
.activation-panel>p{font-size:10px;color:#91a7bc;line-height:1.55;margin:0 0 17px}
.theme-light .activation-panel h3{color:#0e3459}
.theme-light .activation-panel>p{color:#5f7890}
.readiness-list{display:flex;flex-direction:column;gap:8px;text-align:left}
.readiness-list>div{
  display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;
  padding:10px;border-radius:11px;background:rgba(255,255,255,.035);border:1px solid rgba(183,211,237,.10)
}
.theme-light .readiness-list>div{background:#f8fbfe;border-color:#d8e4ed}
.readiness-list span{
  width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#1d6f53;color:#b8f3db;font-size:10px
}
.readiness-list b{font-size:10px}.readiness-list small{font-size:9px;color:#8098af}
.theme-light .readiness-list b{color:#14385b}.theme-light .readiness-list small{color:#607a91}
.activation-note{
  text-align:left;margin:14px 0;padding:13px;border-radius:12px;
  background:rgba(217,102,67,.08);border:1px solid rgba(217,102,67,.14)
}
.activation-note b{font-size:10px;color:#ff9777}
.activation-note p{font-size:9px;line-height:1.5;color:#90a7bc;margin:5px 0 0}
.theme-light .activation-note{background:#fff6f2;border-color:#f0d5ca}
.theme-light .activation-note b{color:#b95035}.theme-light .activation-note p{color:#5f7890}
.activate-btn{
  width:100%;border:0;border-radius:13px;padding:15px 16px;background:linear-gradient(135deg,#d96643,#b94f32);
  color:#fff;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;box-shadow:0 10px 28px rgba(185,79,50,.25)
}
.activate-btn:hover{transform:translateY(-1px)}
.activate-btn:disabled{opacity:.55;cursor:default;transform:none}
.activation-status{
  margin-top:12px;border-radius:11px;padding:11px;background:rgba(30,130,92,.14);
  border:1px solid rgba(72,178,137,.22);color:#b6f2dc;font-size:10px;line-height:1.45;text-align:left
}
.theme-light .activation-status{background:#edf9f4;border-color:#c7eadb;color:#216649}

@media(max-width:1120px){
  .review-layout{grid-template-columns:1fr}
  .activation-panel{position:relative;top:auto}
}
@media(max-width:760px){
  .review-interest-grid,.review-stat-row,.review-notification-grid{grid-template-columns:1fr}
  .review-card-head{flex-direction:column}
  .review-channel-line{align-items:flex-start;flex-direction:column}
}


/* =========================================================
   MAIN DASHBOARD / FEED
   ========================================================= */
.dashboard-view{
  width:min(1560px,98vw);margin:18px auto 28px;min-height:760px;
  display:grid;grid-template-columns:245px minmax(0,1fr);
  border-radius:26px;overflow:hidden;border:1px solid rgba(185,211,237,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.18);
  position:relative
}
.dashboard-view.theme-dark{
  color:#eef6ff;
  background:
    radial-gradient(circle at 88% 12%,rgba(217,102,67,.09),transparent 22%),
    radial-gradient(circle at 64% 72%,rgba(63,145,226,.07),transparent 27%),
    #081b33
}
.dashboard-view.theme-light{
  color:#123659;
  background:
    radial-gradient(circle at 80% 18%,rgba(67,146,225,.10),transparent 24%),
    radial-gradient(circle at 20% 86%,rgba(49,119,188,.06),transparent 26%),
    linear-gradient(145deg,#f9fcff,#eef7fd 62%,#e8f3fb)
}
.dashboard-sidebar{
  background:rgba(5,21,40,.82);border-right:1px solid rgba(183,211,237,.12);
  padding:22px 15px;display:flex;flex-direction:column;min-width:0
}
.theme-light .dashboard-sidebar{background:rgba(255,255,255,.84);border-right-color:#d1e0eb}
.sidebar-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:850;letter-spacing:.04em;padding:2px 8px 22px}
.sidebar-brand b{color:#d96643}
.sidebar-brand .brand-radar{width:36px;height:36px}
.dashboard-nav{display:flex;flex-direction:column;gap:5px}
.nav-item{
  border:0;background:transparent;color:#9eb2c7;border-radius:11px;padding:11px 12px;
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;
  text-align:left;font-size:13px;font-weight:750;cursor:pointer
}
.nav-item span{font-size:14px}.nav-item b{font-size:9px;background:#d96643;color:#fff;padding:3px 6px;border-radius:999px}
.nav-item:hover{background:rgba(255,255,255,.05);color:#fff}
.nav-item.active{background:rgba(35,105,174,.20);color:#fff;border:1px solid rgba(75,151,225,.18)}
.theme-light .nav-item{color:#4d6881}.theme-light .nav-item:hover{background:#edf6fd;color:#143b60}
.theme-light .nav-item.active{background:#e9f5ff;color:#0e4d83;border-color:#c8e1f4}
.sidebar-section-title{font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#607891;margin:24px 12px 9px}
.sidebar-bottom{margin-top:auto;padding-top:20px}
.demo-indicator{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:rgba(217,102,67,.08);color:#d7a08e;font-size:9px;font-weight:900;letter-spacing:.1em}
.demo-indicator i{width:7px;height:7px;border-radius:50%;background:#d96643;box-shadow:0 0 12px rgba(217,102,67,.6)}
.sidebar-logout{width:100%;margin-top:8px;border:0;background:transparent;color:#6f879f;padding:9px;font-size:11px;cursor:pointer;text-align:left}
.theme-light .sidebar-logout{color:#607a91}

.dashboard-main{padding:25px 26px 32px;min-width:0}
.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.dashboard-eyebrow{font-size:10px;font-weight:900;letter-spacing:.15em;color:#d96643;margin-bottom:6px}
.dashboard-header h1{font-size:31px;margin:0 0 5px;letter-spacing:-.025em}
.dashboard-header p{margin:0;color:#839bb2;font-size:13px;line-height:1.45}
.theme-light .dashboard-header h1{color:#0d3157}.theme-light .dashboard-header p{color:#5d7891}
.dashboard-actions{display:flex;align-items:center;gap:10px}
.dashboard-theme-toggle{display:flex;background:rgba(0,0,0,.14);padding:3px;border-radius:10px}
.theme-light .dashboard-theme-toggle{background:#e8f0f6}
.dashboard-theme-toggle button{border:0;background:transparent;color:#7991a9;width:31px;height:28px;border-radius:8px;cursor:pointer}
.dashboard-theme-toggle button.active{background:#fff;color:#17466f}
.last-check{display:flex;align-items:center;gap:8px;border:1px solid rgba(184,211,237,.12);border-radius:11px;padding:8px 10px;background:rgba(255,255,255,.025)}
.theme-light .last-check{background:#fff;border-color:#d2e0eb}
.live-dot{width:8px;height:8px;border-radius:50%;background:#31b67a;box-shadow:0 0 12px rgba(49,182,122,.5)}
.last-check>div{display:flex;flex-direction:column;gap:2px}.last-check b{font-size:10px}.last-check small{font-size:9px;color:#728ba3}

.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.stat-card{
  border:1px solid rgba(184,211,237,.12);border-radius:14px;padding:13px;text-align:left;
  background:rgba(255,255,255,.025);color:inherit;display:flex;flex-direction:column;cursor:default
}
button.stat-card{cursor:pointer}
.theme-light .stat-card{background:rgba(255,255,255,.88);border-color:#d3e1ec}
.stat-card span{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#8198af}
.stat-card strong{font-size:24px;margin:3px 0}.stat-card small{font-size:10px;color:#718ba3}
.stat-red{border-left:3px solid #e35c5c}.stat-red strong{color:#ff7a7a}
.stat-orange{border-left:3px solid #d96643}.stat-orange strong{color:#ff9878}
.stat-blue{border-left:3px solid #2e82d2}.stat-blue strong{color:#70baff}
.stat-neutral strong{font-size:18px;color:#c9d9e8}
.theme-light .stat-neutral strong{color:#173d62}

.feed-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:10px;margin-bottom:14px}
.feed-sort-label{display:flex;align-items:center;gap:8px;color:#9db5ca;font-size:10px;font-weight:850;letter-spacing:.04em;white-space:nowrap}
.feed-sort-label>span{text-transform:uppercase}
.feed-sort-label select{
  min-height:34px;border:1px solid rgba(104,170,225,.34);border-radius:9px;
  background:linear-gradient(145deg,rgba(42,102,154,.38),rgba(20,54,85,.72));
  color:#edf7ff;padding:0 30px 0 11px;font:inherit;font-weight:800;letter-spacing:0;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 5px 14px rgba(0,0,0,.12);
}
.feed-sort-label select:hover{border-color:rgba(112,184,238,.66);background:linear-gradient(145deg,rgba(53,121,178,.52),rgba(25,67,103,.88))}
.feed-sort-label select:focus{outline:0;border-color:#71b6eb;box-shadow:0 0 0 3px rgba(81,165,226,.18),inset 0 1px 0 rgba(255,255,255,.10)}
.feed-sort-label select option{color:#eaf5ff;background:#173d62}
.theme-light .feed-sort-label{color:#58738a}.theme-light .feed-sort-label select{background:#fff;color:#173d62;border-color:#bcd3e5;box-shadow:0 3px 10px rgba(48,92,125,.08)}
.feed-search{
  height:42px;border:1px solid rgba(184,211,237,.13);border-radius:11px;background:rgba(255,255,255,.03);
  display:flex;align-items:center;padding:0 12px;color:#7892ab
}
.feed-search input{background:transparent;border:0;box-shadow:none!important;color:#fff;padding:0 9px;font-size:13px}
.feed-search input::placeholder{color:#657e97}
.theme-light .feed-search{background:#fff;border-color:#d1e0eb}.theme-light .feed-search input{color:#12385e}.theme-light .feed-search input::placeholder{color:#7189a0}
.feed-filter-group{display:flex;gap:5px;padding:3px;background:rgba(0,0,0,.12);border-radius:11px}
.theme-light .feed-filter-group{background:#e9f0f5}
.feed-filter{border:0;background:transparent;color:#8097ae;padding:9px 12px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer}
.feed-filter.active{background:#fff;color:#14385d}.feed-filter.red.active{color:#b84242}.feed-filter.orange.active{color:#b65437}
.theme-light .feed-filter.active{background:#173f66;color:#fff}

.feed-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
.feed-section-head{display:flex;justify-content:space-between;align-items:center;color:#7189a1;font-size:10px;margin:0 2px 10px;padding:3px 0}
.article-feed{display:flex;flex-direction:column;gap:9px}
.article-card{
  border:1px solid rgba(184,211,237,.12);border-radius:15px;background:rgba(255,255,255,.035);
  padding:14px;display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:13px;transition:.14s
}
.article-card:hover{border-color:rgba(80,158,234,.30);transform:translateY(-1px)}
.article-card.unread{background:rgba(255,255,255,.052)}
.article-card.read{opacity:.72}
.theme-light .article-card{background:rgba(255,255,255,.92);border-color:#d2e0eb}
.theme-light .article-card.unread{background:#fff}
.priority-bar{width:5px;border-radius:999px;background:#94a4b4}
.article-card.red .priority-bar{background:#e35b5b;box-shadow:0 0 14px rgba(227,91,91,.32)}
.article-card.orange .priority-bar{background:#d96643}
.article-card.white .priority-bar{background:#6d91b3}
.article-content{min-width:0}
.article-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:10px;color:#748da5;margin-bottom:6px}
.article-source{font-weight:900;color:#a9c5df}.theme-light .article-source{color:#245b8c}
.priority-label{padding:3px 6px;border-radius:999px;font-weight:850}
.priority-label.red{background:rgba(226,79,79,.14);color:#ff8181}
.priority-label.orange{background:rgba(217,102,67,.13);color:#ff9a7b}
.priority-label.white{background:rgba(104,143,178,.12);color:#9db7cf}
.theme-light .priority-label.red{background:#fff0f0;color:#b83f3f}.theme-light .priority-label.orange{background:#fff3ed;color:#b65437}.theme-light .priority-label.white{background:#eff5fa;color:#55738e}
.article-title{font-size:17px;line-height:1.4;margin:0 0 5px}
.theme-light .article-title{color:#103659}
.article-summary{font-size:12px;line-height:1.55;color:#849bb1;margin:0 0 9px;max-width:900px}
.theme-light .article-summary{color:#5d7890}
.article-footer{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.article-tag{font-size:9px;padding:4px 6px;border-radius:999px;background:rgba(39,105,171,.13);color:#8fbce4}
.theme-light .article-tag{background:#edf7ff;color:#286392}
.reason-badge{font-size:9px;padding:4px 7px;border-radius:999px;background:rgba(217,102,67,.10);color:#e5967d;margin-left:auto}
.theme-light .reason-badge{background:#fff3ed;color:#a9563d}
.article-actions{display:flex;flex-direction:column;gap:6px}
.article-actions button{border:1px solid rgba(184,211,237,.13);background:rgba(255,255,255,.035);color:#8ba3b9;border-radius:9px;width:34px;height:31px;cursor:pointer;font-size:11px}
.article-actions button.active{background:rgba(217,102,67,.14);color:#ff9676;border-color:rgba(217,102,67,.25)}
.theme-light .article-actions button{background:#fff;border-color:#d1e0eb;color:#486884}
.article-actions button.active{color:#c35b3e}
.feed-empty{padding:30px;border:1px dashed rgba(184,211,237,.14);border-radius:14px;text-align:center;color:#7890a8;font-size:10px}
.feed-pagination{
  display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;width:fit-content;max-width:100%;
  margin:20px auto 5px;padding:8px;border:1px solid rgba(103,166,218,.22);border-radius:13px;
  background:linear-gradient(145deg,rgba(42,91,136,.18),rgba(12,37,61,.46));box-shadow:0 10px 24px rgba(0,0,0,.13)
}
.feed-page,.feed-page-nav{
  border:1px solid rgba(142,194,234,.26);background:rgba(255,255,255,.065);color:#d4e9fa;border-radius:9px;
  min-width:35px;height:34px;padding:0 10px;font-size:11px;font-weight:850;cursor:pointer;
  transition:background .14s,border-color .14s,transform .14s,color .14s
}
.feed-page:hover,.feed-page-nav:not(:disabled):hover{background:rgba(78,151,211,.26);border-color:rgba(143,204,241,.72);color:#fff;transform:translateY(-1px)}
.feed-page:focus-visible,.feed-page-nav:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(81,165,226,.22)}
.feed-page.active{background:linear-gradient(145deg,#e27852,#bd4f35);color:#fff;border-color:#ee9a78;box-shadow:0 4px 12px rgba(205,91,57,.25)}
.feed-page-nav:disabled{opacity:.38;cursor:not-allowed;background:rgba(255,255,255,.025);color:#7892a8}.feed-page-ellipsis{color:#91abc1;padding:0 2px;font-weight:850}
.theme-light .feed-pagination{background:linear-gradient(145deg,#fff,#eef5fa);border-color:#cedfea;box-shadow:0 8px 18px rgba(48,92,125,.10)}
.theme-light .feed-page,.theme-light .feed-page-nav{background:#fff;color:#315a7d;border-color:#c5d9e8}.theme-light .feed-page.active{background:linear-gradient(145deg,#d96b49,#b95035);color:#fff;border-color:#d96b49}

.dashboard-sidepanel{display:flex;flex-direction:column;gap:10px}
.sidepanel-card{
  border:1px solid rgba(184,211,237,.12);border-radius:15px;background:rgba(255,255,255,.03);padding:16px
}
.theme-light .sidepanel-card{background:rgba(255,255,255,.90);border-color:#d3e1ec}
.sidepanel-kicker{font-size:9px;font-weight:900;letter-spacing:.13em;color:#d96643;margin-bottom:7px}
.sidepanel-card h3{font-size:16px;margin:0 0 10px}.theme-light .sidepanel-card h3{color:#12385e}
.sidepanel-card p{font-size:11px;line-height:1.55;color:#7e96ad;margin:9px 0}
.sidepanel-card button{width:100%;border:1px solid rgba(73,151,224,.20);background:rgba(35,104,171,.12);color:#a9d1f3;border-radius:9px;padding:9px;font-size:10px;font-weight:800;cursor:pointer}
.theme-light .sidepanel-card button{background:#edf7ff;color:#1765a8;border-color:#c9e1f3}
.radar-mini{width:100px;height:100px;margin:7px auto;position:relative;border-radius:50%;border:1px solid rgba(74,151,225,.16)}
.radar-ring{position:absolute;border:1px solid rgba(74,151,225,.16);border-radius:50%;inset:16px}.radar-ring.r2{inset:32px}
.radar-sweep{position:absolute;left:50%;top:50%;width:42px;height:1px;background:linear-gradient(90deg,#45a2f0,transparent);transform-origin:left center;transform:rotate(-35deg)}
.radar-mini i{position:absolute;width:7px;height:7px;border-radius:50%;background:#d96643;right:25px;top:25px;box-shadow:0 0 12px rgba(217,102,67,.5)}
.quick-metric{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid rgba(184,211,237,.09);font-size:10px}.quick-metric:last-child{border-bottom:0}.quick-metric span{color:#7d95ab}.quick-metric b{font-size:12px}
.theme-light .quick-metric b{color:#12385e}

@media(max-width:1120px){
  .dashboard-view{grid-template-columns:78px minmax(0,1fr)}
  .sidebar-brand>div:last-child,.nav-item:not(.active){font-size:0}
  .nav-item{grid-template-columns:1fr;place-items:center}.nav-item b{display:none}
  .sidebar-section-title,.demo-indicator span,.sidebar-logout{display:none}
  .feed-layout{grid-template-columns:1fr}
}
@media(max-width:800px){
  .dashboard-view{display:block;margin:8px auto}
  .dashboard-sidebar{display:none}
  .dashboard-main{padding:16px}
  .dashboard-stats{grid-template-columns:repeat(2,1fr)}
  .feed-toolbar{grid-template-columns:1fr}
  .feed-section-head{gap:9px;align-items:flex-start;flex-wrap:wrap}
  .dashboard-header{flex-direction:column}
}
@media(max-width:520px){
  .dashboard-stats{grid-template-columns:1fr}
  .article-card{grid-template-columns:4px minmax(0,1fr)}
  .article-actions{grid-column:2;flex-direction:row}
}


/* v0.6.1 readability + settings navigation */
.settings-nav-stack{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px
}
.settings-nav-stack .back-link{margin-bottom:0}
.dashboard-back-link{
  border:1px solid rgba(76,151,224,.22);
  background:rgba(35,103,170,.10);
  color:#a9d2f4;
  border-radius:9px;
  padding:7px 9px;
  font-size:10px;
  font-weight:800;
  cursor:pointer
}
.theme-light .dashboard-back-link{
  background:#edf7ff;
  color:#1765a8;
  border-color:#c9e1f3
}
.plan-usage-line{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  margin:0 0 12px;padding:9px 12px;border-radius:11px;
  border:1px solid rgba(184,211,237,.12);
  background:rgba(255,255,255,.025)
}
.plan-usage-line span{font-size:10px;font-weight:850;color:#c8d9e8}
.plan-usage-line small{font-size:9px;color:#7f97ae}
.theme-light .plan-usage-line{background:#f8fbfe;border-color:#d4e1eb}
.theme-light .plan-usage-line span{color:#143a60}
.theme-light .plan-usage-line small{color:#5e7891}

/* Slightly larger general helper copy in onboarding */
.wizard-title p{font-size:13px}
.explain-card small{font-size:11px}
.panel-heading p{font-size:12px}
.helper-text{font-size:11px}
.review-card-head p{font-size:11px}

.channel-card.plan-disabled{
  opacity:.48;
  position:relative
}
.channel-card.plan-disabled:after{
  content:"Δεν περιλαμβάνεται στο πακέτο";
  position:absolute;right:12px;bottom:5px;
  font-size:7px;color:#8aa0b5
}


/* =========================================================
   v0.6.3 — ONBOARDING READABILITY PASS
   ========================================================= */

/* Page 1 — Sources */
.plan-usage-line span{
  font-size:13px;
  font-weight:900
}
.plan-usage-line small{
  font-size:12px;
  line-height:1.4
}
.mode-toggle button{
  font-size:12px;
  font-weight:850;
  padding-top:8px;
  padding-bottom:8px
}
.source-card .domain,
.source-card .category,
.source-card .verified{
  font-size:11px
}

/* Page 2 — Interests / semantic explanation */
.semantic-note b{
  font-size:14px
}
.semantic-note p{
  font-size:12px;
  line-height:1.6
}
.summary-preview>span{
  font-size:11px
}
.summary-preview p{
  font-size:12px;
  line-height:1.65
}
.summary-preview p b{
  font-size:12px
}
.interest-summary h3{
  font-size:18px
}
.summary-metric span{
  font-size:12px
}

/* Page 3 — Notifications */
.priority-copy b{
  font-size:14px
}
.priority-copy span{
  font-size:12px;
  line-height:1.55
}
.threshold-box label{
  font-size:10px
}
.setting-line b{
  font-size:14px
}
.setting-line small{
  font-size:12px;
  line-height:1.55
}
.channel-card b{
  font-size:14px
}
.channel-card span{
  font-size:12px;
  line-height:1.45
}
.email-options>span{
  font-size:12px
}
.email-mode button{
  font-size:11px
}
.notification-preview h3{
  font-size:18px
}
.preview-alert-head{
  font-size:10px
}
.preview-alert strong{
  font-size:14px;
  line-height:1.45
}
.preview-alert p{
  font-size:12px;
  line-height:1.5
}
.preview-alert small{
  font-size:11px;
  line-height:1.4
}
.preview-channels>span{
  font-size:10px
}
.active-channel-tag{
  font-size:10px
}
.simulate-btn{
  font-size:11px
}
.simulation-message{
  font-size:11px
}

/* Page 4 — Review */
.review-card-head p{
  font-size:13px;
  line-height:1.5
}
.review-stat-row span{
  font-size:11px
}
.review-source-pill{
  font-size:11px
}
.review-subsection>span{
  font-size:11px
}
.review-tag{
  font-size:10px
}
.review-priority span{
  font-size:10px
}
.review-priority small{
  font-size:11px
}
.review-channel-line>span{
  font-size:11px
}
.review-quiet{
  font-size:11px
}
.activation-panel>p{
  font-size:12px;
  line-height:1.6
}
.readiness-list b{
  font-size:12px
}
.readiness-list small{
  font-size:11px
}
.activation-note b{
  font-size:12px
}
.activation-note p{
  font-size:11px;
  line-height:1.55
}

/* Dashboard return button — prominent, top-right */
.wizard-side{
  position:relative
}
.dashboard-back-link.top-right{
  align-self:flex-end;
  margin:0 0 12px auto;
  padding:10px 14px;
  border-radius:11px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.01em;
  border:1px solid rgba(76,151,224,.28);
  background:linear-gradient(135deg,rgba(35,103,170,.20),rgba(30,82,132,.14));
  color:#cfeaff;
  box-shadow:0 7px 20px rgba(18,66,109,.12)
}
.dashboard-back-link.top-right:hover{
  transform:translateY(-1px);
  border-color:rgba(95,177,255,.48)
}
.theme-light .dashboard-back-link.top-right{
  background:linear-gradient(135deg,#edf7ff,#e4f2fc);
  color:#145d9a;
  border-color:#bddcf1;
  box-shadow:0 7px 20px rgba(60,105,145,.08)
}

/* Custom time picker */
.quiet-hours{
  overflow:visible
}
.time-picker-wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px
}
.time-label{
  font-size:11px;
  color:#8ea4b8;
  font-weight:800
}
.theme-light .time-label{
  color:#58728a
}
.time-picker-btn{
  min-width:118px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:10px;
  border:1px solid rgba(184,211,237,.18);
  background:rgba(255,255,255,.06);
  color:#f3f8fc;
  padding:10px 12px;
  font-size:13px;
  font-weight:850;
  cursor:pointer
}
.time-picker-btn:hover{
  border-color:rgba(88,166,240,.42);
  background:rgba(255,255,255,.09)
}
.theme-light .time-picker-btn{
  background:#fff;
  color:#12395f;
  border-color:#c7d9e8
}
.time-separator{
  color:#8199af;
  font-size:11px
}
.time-picker-menu{
  position:absolute;
  z-index:60;
  top:auto;
  bottom:calc(100% + 7px);
  left:0;
  width:220px;
  max-height:260px;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:5px;
  padding:8px;
  border-radius:12px;
  border:1px solid rgba(184,211,237,.20);
  background:rgba(10,33,58,.97);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  backdrop-filter:blur(16px)
}
.theme-light .time-picker-menu{
  background:rgba(255,255,255,.98);
  border-color:#c9dae8;
  box-shadow:0 18px 40px rgba(54,83,109,.16)
}
.time-option{
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:#a9bfd3;
  padding:8px 9px;
  font-size:11px;
  font-weight:800;
  cursor:pointer
}
.time-option:hover,
.time-option.active{
  background:#176fbd;
  color:#fff
}
.theme-light .time-option{
  background:#f4f8fb;
  color:#3e607e
}
.theme-light .time-option:hover,
.theme-light .time-option.active{
  background:#176fbd;
  color:#fff
}

/* ensure hidden custom menu actually hides */
.time-picker-menu.hidden{
  display:none!important
}

@media(max-width:720px){
  .dashboard-back-link.top-right{
    align-self:flex-start;
    margin:0 0 10px
  }
  .quiet-hours{
    align-items:flex-start
  }
  .time-picker-wrap{
    width:100%
  }
  .time-picker-btn{
    flex:1
  }
}


/* v0.6.4 — time picker hotfix */
.quiet-hours{
  position:relative;
  z-index:5
}
.time-picker-wrap{
  z-index:6
}
.time-picker-menu{
  scrollbar-width:thin;
  scrollbar-color:#4f7da8 transparent
}
.time-picker-menu::-webkit-scrollbar{
  width:8px
}
.time-picker-menu::-webkit-scrollbar-track{
  background:transparent
}
.time-picker-menu::-webkit-scrollbar-thumb{
  background:rgba(104,153,196,.48);
  border-radius:999px
}
.time-picker-menu:after{
  content:"";
  position:absolute;
  left:34px;
  bottom:-6px;
  width:11px;
  height:11px;
  background:rgba(10,33,58,.97);
  border-right:1px solid rgba(184,211,237,.20);
  border-bottom:1px solid rgba(184,211,237,.20);
  transform:rotate(45deg)
}
.theme-light .time-picker-menu:after{
  background:rgba(255,255,255,.98);
  border-color:#c9dae8
}


/* v0.6.5 — Dashboard return CTA */
.dashboard-back-link.top-right,
.theme-light .dashboard-back-link.top-right{
  background:linear-gradient(135deg,#df6b47,#c55335);
  color:#fff;
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(197,83,53,.28);
  text-shadow:0 1px 1px rgba(0,0,0,.08)
}
.dashboard-back-link.top-right:hover,
.theme-light .dashboard-back-link.top-right:hover{
  background:linear-gradient(135deg,#e87854,#cf5d3d);
  color:#fff;
  border-color:rgba(255,255,255,.28);
  box-shadow:0 12px 28px rgba(197,83,53,.34);
  transform:translateY(-1px)
}
.dashboard-back-link.top-right:active,
.theme-light .dashboard-back-link.top-right:active{
  transform:translateY(0);
  box-shadow:0 6px 16px rgba(197,83,53,.24)
}


/* =========================================================
   v0.7.0 — ARTICLE DETAIL VIEW
   ========================================================= */
.article-detail-view{
  width:min(1500px,96vw);margin:18px auto 28px;min-height:780px;padding:22px;
  border-radius:26px;border:1px solid rgba(184,211,237,.12);position:relative;overflow:hidden
}
.article-detail-view.theme-dark{
  color:#eef6ff;
  background:radial-gradient(circle at 86% 14%,rgba(217,102,67,.09),transparent 22%),
             radial-gradient(circle at 71% 49%,rgba(65,145,224,.07),transparent 28%),
             #081b33
}
.article-detail-view.theme-light{
  color:#123659;
  background:radial-gradient(circle at 80% 18%,rgba(67,146,225,.10),transparent 24%),
             linear-gradient(145deg,#f9fcff,#eef7fd 62%,#e8f3fb)
}
.detail-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.detail-back-btn{
  border:1px solid rgba(184,211,237,.16);background:rgba(255,255,255,.03);
  color:#a9c7e1;padding:10px 13px;border-radius:10px;font-size:11px;font-weight:850;cursor:pointer
}
.theme-light .detail-back-btn{background:#fff;color:#245f8f;border-color:#cfdeea}
.detail-top-actions{display:flex;gap:8px}
.detail-icon-btn,.detail-original-btn{border-radius:10px;padding:10px 13px;font-size:11px;font-weight:850;cursor:pointer}
.detail-icon-btn{border:1px solid rgba(184,211,237,.16);background:rgba(255,255,255,.03);color:#a9c7e1}
.detail-icon-btn.active{color:#ff9878;border-color:rgba(217,102,67,.28);background:rgba(217,102,67,.10)}
.detail-original-btn{
  border:1px solid rgba(255,255,255,.10);background:linear-gradient(135deg,#df6b47,#c55335);color:#fff;
  box-shadow:0 8px 20px rgba(197,83,53,.22)
}
.theme-light .detail-icon-btn{background:#fff;color:#2b5f87;border-color:#cfdeea}

.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}
.detail-main-card{
  border:1px solid rgba(184,211,237,.12);border-radius:18px;background:rgba(255,255,255,.03);padding:24px
}
.theme-light .detail-main-card{background:rgba(255,255,255,.94);border-color:#d1e0eb;box-shadow:0 10px 28px rgba(55,83,108,.06)}
.detail-meta-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#829bb2;font-size:10px;margin-bottom:12px}
.detail-priority-badge{padding:5px 8px;border-radius:999px;font-weight:900}
.detail-priority-badge.red{background:rgba(226,79,79,.14);color:#ff8585}
.detail-priority-badge.orange{background:rgba(217,102,67,.14);color:#ff9878}
.detail-priority-badge.white{background:rgba(104,143,178,.13);color:#a9bfd3}
.theme-light .detail-priority-badge.red{background:#fff0f0;color:#b83f3f}
.theme-light .detail-priority-badge.orange{background:#fff3ed;color:#b65437}
.theme-light .detail-priority-badge.white{background:#eff5fa;color:#55738e}
.detail-main-card>h1{font-size:32px;line-height:1.18;margin:0 0 12px;letter-spacing:-.025em}
.theme-light .detail-main-card>h1{color:#0d3157}
.detail-main-card>h1>a{color:inherit;text-decoration:none}
.detail-main-card>h1>a.detail-title-link{cursor:pointer}
.detail-main-card>h1>a.detail-title-link:hover{text-decoration:underline;text-decoration-color:rgba(169,208,240,.72);text-underline-offset:.14em}
.detail-main-card>h1>a.detail-title-link:focus-visible{outline:2px solid rgba(169,208,240,.82);outline-offset:4px;border-radius:3px}
.theme-light .detail-main-card>h1>a.detail-title-link:hover{text-decoration-color:rgba(13,49,87,.6)}
.detail-lead{font-size:15px;line-height:1.65;color:#9cb0c3;margin:0 0 14px;max-width:960px}
.theme-light .detail-lead{color:#58738b}
.detail-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}
.detail-tag{font-size:10px;padding:6px 8px;border-radius:999px;background:rgba(39,105,171,.14);color:#a9d0f0}
.theme-light .detail-tag{background:#edf7ff;color:#225f8f}

.detail-section{border-top:1px solid rgba(184,211,237,.10);padding-top:20px;margin-top:20px}
.detail-section-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.detail-section-kicker{font-size:8px;font-weight:900;letter-spacing:.13em;color:#d96643;margin-bottom:5px}
.detail-section h2{font-size:20px;margin:0}.theme-light .detail-section h2{color:#12385e}
.score-circle{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;border:4px solid #d96643;
  color:#ff9b7b;font-size:14px;font-weight:900;flex:0 0 auto
}
.theme-light .score-circle{color:#b44f34}
.relevance-explanation{font-size:13px;line-height:1.65;color:#91a8bc;margin:0 0 15px}
.theme-light .relevance-explanation{color:#5c758b}
.relevance-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.relevance-breakdown>div{
  border:1px solid rgba(184,211,237,.10);border-radius:12px;padding:11px;background:rgba(255,255,255,.025)
}
.theme-light .relevance-breakdown>div{background:#f8fbfe;border-color:#d7e3ec}
.relevance-breakdown>div>span{display:block;font-size:9px;color:#849bb1;margin-bottom:7px;text-transform:uppercase;letter-spacing:.06em;font-weight:850}
.detail-chip-row{display:flex;gap:5px;flex-wrap:wrap}
.detail-chip{font-size:9px;padding:5px 7px;border-radius:999px;background:rgba(40,105,170,.18);color:#b7dafa}
.theme-light .detail-chip{background:#eaf5fd;color:#245f8e}
.signal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}
.signal-card{border-radius:11px;padding:10px;border:1px solid rgba(184,211,237,.10);background:rgba(255,255,255,.025)}
.theme-light .signal-card{background:#fff;border-color:#d7e3ec}
.signal-card span{display:block;font-size:9px;color:#8098ae;margin-bottom:7px}
.signal-bar{height:6px;border-radius:999px;background:rgba(116,151,182,.15);overflow:hidden}
.signal-bar i{display:block;height:100%;background:linear-gradient(90deg,#2f83d0,#d96643);border-radius:999px}
.signal-card b{display:block;text-align:right;font-size:10px;margin-top:5px}

.story-timeline{display:flex;flex-direction:column}
.timeline-item{
  display:grid;grid-template-columns:76px 22px minmax(0,1fr) auto;gap:10px;align-items:start;
  position:relative;padding:8px 0
}
.timeline-time{font-size:12px;font-weight:900}
.timeline-node{position:relative;display:flex;justify-content:center}
.timeline-node i{width:11px;height:11px;border-radius:50%;background:#5f8eb7;border:2px solid #0d2846;z-index:2}
.theme-light .timeline-node i{border-color:#fff}
.timeline-item.first .timeline-node i{background:#d96643;box-shadow:0 0 14px rgba(217,102,67,.45)}
.timeline-node:after{content:"";position:absolute;width:1px;height:42px;background:rgba(184,211,237,.18);top:11px}
.timeline-item:last-child .timeline-node:after{display:none}
.timeline-copy b{display:block;font-size:12px}.timeline-copy span{font-size:9px;color:#8299af}
.theme-light .timeline-copy b{color:#12385d}.theme-light .timeline-copy span{color:#5d7890}
.timeline-delay{font-size:9px;color:#8098ad;text-align:right}
.timeline-delay.first{color:#d96643;font-weight:900}
.timeline-open{border:0;background:transparent;color:#74b6ee;font-size:9px;cursor:pointer;padding:0;margin-top:4px}
.theme-light .timeline-open{color:#1766a9}
.timeline-count{font-size:10px;color:#859bb0}

.detail-side{display:flex;flex-direction:column;gap:10px}
.detail-side-card{border:1px solid rgba(184,211,237,.12);border-radius:15px;background:rgba(255,255,255,.03);padding:16px}
.theme-light .detail-side-card{background:rgba(255,255,255,.92);border-color:#d3e1ec}
.detail-quick-stat{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid rgba(184,211,237,.09)}
.detail-quick-stat:last-child{border-bottom:0}
.detail-quick-stat span{font-size:9px;color:#7e96ad}.detail-quick-stat b{font-size:10px;text-align:right}
.theme-light .detail-quick-stat b{color:#14385d}
.newsroom-note h3{font-size:14px;margin:0 0 7px}.theme-light .newsroom-note h3{color:#12385e}
.newsroom-note p{font-size:10px;line-height:1.55;color:#8098ae;margin:0}

.article-title.clickable{cursor:pointer}
.article-title.clickable:hover{text-decoration:underline;text-decoration-color:rgba(217,102,67,.6)}

@media(max-width:1050px){.detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .detail-topbar{align-items:flex-start;flex-direction:column}
  .detail-top-actions{width:100%;flex-wrap:wrap}
  .detail-main-card>h1{font-size:25px}
  .relevance-breakdown,.signal-grid{grid-template-columns:1fr}
  .timeline-item{grid-template-columns:62px 20px minmax(0,1fr)}
  .timeline-delay{grid-column:3;text-align:left}
}


/* =========================================================
   v0.8.0 — ARCHIVE & SEARCH
   ========================================================= */
.archive-content{min-width:0}
.archive-header{
  display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px
}
.archive-header h1{font-size:31px;margin:0 0 5px;letter-spacing:-.025em}
.archive-header p{margin:0;color:#839bb2;font-size:13px;line-height:1.45}
.theme-light .archive-header h1{color:#0d3157}
.theme-light .archive-header p{color:#5d7891}
.archive-header-actions{display:flex;gap:8px;align-items:center}
.archive-back-btn{
  border:1px solid rgba(184,211,237,.14);background:rgba(255,255,255,.03);color:#abc7df;
  border-radius:10px;padding:9px 12px;font-size:10px;font-weight:850;cursor:pointer
}
.theme-light .archive-back-btn{background:#fff;color:#245f8f;border-color:#cfdeea}

.archive-search-card{
  border:1px solid rgba(184,211,237,.12);border-radius:16px;padding:16px;
  background:rgba(255,255,255,.03);margin-bottom:14px
}
.theme-light .archive-search-card{background:rgba(255,255,255,.91);border-color:#d2e0eb}
.archive-main-search{
  display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;
  border:1px solid rgba(184,211,237,.15);border-radius:12px;background:rgba(255,255,255,.035);
  padding:4px 5px 4px 12px;color:#7992a9
}
.theme-light .archive-main-search{background:#fff;border-color:#cbdce9}
.archive-main-search input{
  border:0!important;box-shadow:none!important;background:transparent;color:#fff;
  padding:10px 8px;font-size:13px
}
.archive-main-search input::placeholder{color:#70879d}
.theme-light .archive-main-search input{color:#12385e}
.archive-main-search button{
  border:0;border-radius:9px;background:linear-gradient(135deg,#df6b47,#c55335);
  color:#fff;padding:10px 16px;font-size:10px;font-weight:900;cursor:pointer
}

.archive-presets{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.archive-presets button{
  border:1px solid rgba(184,211,237,.12);background:rgba(255,255,255,.025);
  color:#849bb1;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:800;cursor:pointer
}
.archive-presets button.active{
  background:rgba(35,107,176,.22);border-color:rgba(77,151,223,.27);color:#c8e5ff
}
.theme-light .archive-presets button{background:#fff;border-color:#d0dfea;color:#4f6c85}
.theme-light .archive-presets button.active{background:#eaf5fd;border-color:#bddcf1;color:#155d99}

.archive-filter-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.archive-filter-grid label,.archive-sort{display:flex;flex-direction:column;gap:5px}
.archive-filter-grid label>span,.archive-sort>span{
  font-size:8px;text-transform:uppercase;letter-spacing:.07em;font-weight:850;color:#7f97ad
}
.archive-filter-grid input,.archive-filter-grid select,.archive-sort select{
  width:100%;border:1px solid rgba(184,211,237,.14);border-radius:9px;
  background:rgba(255,255,255,.04);color:#c7d7e6;padding:9px 9px;font-size:10px
}
.archive-filter-grid select option,.archive-sort select option{color:#172f48;background:#fff}
.theme-light .archive-filter-grid input,
.theme-light .archive-filter-grid select,
.theme-light .archive-sort select{
  background:#fff;color:#153a5e;border-color:#cbdce9
}

.archive-filter-footer{
  display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:12px;
  padding-top:12px;border-top:1px solid rgba(184,211,237,.10)
}
.archive-filter-footer>div{display:flex;align-items:end;gap:8px}
.archive-saved-toggle{display:flex;align-items:center;gap:8px;font-size:10px;color:#8ba2b8}
.archive-saved-toggle input{accent-color:#d96643}
.archive-clear-btn{
  border:1px solid rgba(184,211,237,.13);background:transparent;color:#839bb2;
  border-radius:9px;padding:9px 11px;font-size:9px;font-weight:800;cursor:pointer
}
.theme-light .archive-clear-btn{color:#526f88;border-color:#d0dfea}

.archive-summary-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 8px
}
.archive-summary-row>div{display:flex;align-items:baseline;gap:6px}
.archive-summary-row strong{font-size:20px}
.archive-summary-row span,.archive-summary-row p{font-size:9px;color:#7890a7;margin:0}
.theme-light .archive-summary-row strong{color:#143b60}

.archive-results-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
.archive-results{display:flex;flex-direction:column;gap:9px}
.archive-result{
  display:grid;grid-template-columns:96px 5px minmax(0,1fr) auto;gap:12px;
  border:1px solid rgba(184,211,237,.12);border-radius:14px;padding:13px;
  background:rgba(255,255,255,.035);cursor:pointer;transition:.13s
}
.archive-result:hover{border-color:rgba(82,158,232,.32);transform:translateY(-1px)}
.theme-light .archive-result{background:rgba(255,255,255,.93);border-color:#d2e0eb}
.archive-result-date{display:flex;flex-direction:column;gap:3px}
.archive-result-date b{font-size:11px}.archive-result-date span{font-size:9px;color:#7e96ad}
.theme-light .archive-result-date b{color:#173c61}
.archive-result-priority{width:5px;border-radius:999px;background:#6d91b3}
.archive-result.red .archive-result-priority{background:#e35b5b}
.archive-result.orange .archive-result-priority{background:#d96643}
.archive-result-copy{min-width:0}
.archive-result-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:9px;color:#788fa6;margin-bottom:5px}
.archive-result-meta .source{font-weight:900;color:#a9c6df}
.theme-light .archive-result-meta .source{color:#245b8c}
.archive-result h2{font-size:15px;line-height:1.4;margin:0 0 5px}
.theme-light .archive-result h2{color:#103659}
.archive-result p{font-size:11px;line-height:1.5;color:#849bb1;margin:0 0 8px}
.theme-light .archive-result p{color:#5d7890}
.archive-result-footer{display:flex;gap:5px;flex-wrap:wrap}
.archive-result-action{display:flex;flex-direction:column;justify-content:center;align-items:end;gap:6px}
.archive-result-action b{font-size:11px;color:#d96643}
.archive-result-action span{font-size:8px;color:#7d95ab}
.archive-sidepanel{display:flex;flex-direction:column;gap:10px}

@media(max-width:1200px){
  .archive-filter-grid{grid-template-columns:repeat(3,1fr)}
  .archive-results-layout{grid-template-columns:1fr}
}
@media(max-width:720px){
  .archive-header{flex-direction:column}
  .archive-filter-grid{grid-template-columns:1fr 1fr}
  .archive-filter-footer{align-items:flex-start;flex-direction:column}
  .archive-filter-footer>div{width:100%;flex-wrap:wrap}
  .archive-result{grid-template-columns:72px 4px minmax(0,1fr)}
  .archive-result-action{grid-column:3;align-items:start}
}
@media(max-width:480px){
  .archive-filter-grid{grid-template-columns:1fr}
  .archive-result{grid-template-columns:4px minmax(0,1fr)}
  .archive-result-date{grid-column:2}
  .archive-result-action{grid-column:2}
}


/* =========================================================
   v0.9.0 — MARKET PACK / REAL SOURCE CATALOG
   ========================================================= */
.market-pack-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:14px 16px;
  margin-bottom:10px;
  border-radius:14px;
  border:1px solid rgba(217,102,67,.20);
  background:
    radial-gradient(circle at 94% 20%,rgba(217,102,67,.11),transparent 24%),
    rgba(255,255,255,.025)
}
.theme-light .market-pack-banner{
  background:
    radial-gradient(circle at 94% 20%,rgba(217,102,67,.09),transparent 25%),
    rgba(255,255,255,.94);
  border-color:#efd5cb
}
.market-pack-banner>div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:180px
}
.market-pack-kicker{
  font-size:8px;
  letter-spacing:.14em;
  font-weight:900;
  color:#d96643
}
.market-pack-banner strong{
  font-size:18px
}
.theme-light .market-pack-banner strong{
  color:#12385d
}
.market-pack-banner small{
  font-size:10px;
  color:#7f97ae
}
.theme-light .market-pack-banner small{
  color:#5d7890
}
.market-chips{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap
}
.market-chip{
  border:1px solid rgba(184,211,237,.13);
  background:rgba(255,255,255,.035);
  color:#8ea6bc;
  border-radius:999px;
  padding:8px 11px;
  font-size:10px;
  font-weight:850;
  cursor:pointer
}
.market-chip b{
  font-size:8px;
  opacity:.74;
  margin-left:4px
}
.market-chip.active{
  background:linear-gradient(135deg,#df6b47,#c55335);
  border-color:rgba(255,255,255,.12);
  color:#fff;
  box-shadow:0 6px 18px rgba(197,83,53,.20)
}
.theme-light .market-chip{
  background:#fff;
  border-color:#cfdfea;
  color:#486781
}
.theme-light .market-chip.active{
  background:linear-gradient(135deg,#df6b47,#c55335);
  color:#fff;
  border-color:transparent
}
.source-coverage{
  display:flex;
  align-items:center;
  gap:5px;
  margin:8px 0 2px;
  font-size:10px;
  color:#8ca3b8
}
.source-coverage:before{
  content:"⌖";
  color:#d96643;
  font-size:11px
}
.theme-light .source-coverage{
  color:#56738d
}
.source-status-label{
  font-size:9px;
  font-weight:800;
  color:#62b992
}
.theme-light .source-status-label{
  color:#277e5e
}
.source-card .category{
  display:block;
  margin-top:4px
}
.source-grid-empty{
  grid-column:1/-1;
  padding:30px;
  border:1px dashed rgba(184,211,237,.15);
  border-radius:14px;
  color:#7d95ab;
  text-align:center;
  font-size:11px
}

@media(max-width:880px){
  .market-pack-banner{
    align-items:flex-start;
    flex-direction:column
  }
  .market-chips{
    justify-content:flex-start
  }
}


/* v0.10.0 — LIVE CRAWLER BETA */
.demo-indicator.live-beta{background:rgba(49,182,122,.09);color:#83cdb0}
.demo-indicator.live-beta i{background:#31b67a;box-shadow:0 0 13px rgba(49,182,122,.58)}
.scan-now-btn{
  border:1px solid rgba(217,102,67,.28);
  background:linear-gradient(135deg,rgba(217,102,67,.18),rgba(197,83,53,.11));
  color:#ffad92;border-radius:10px;padding:9px 12px;font-size:10px;font-weight:900;
  cursor:pointer;white-space:nowrap
}
.scan-now-btn:hover{background:linear-gradient(135deg,#df6b47,#c55335);color:#fff}
.scan-now-btn.scanning{cursor:wait;opacity:.78}
.theme-light .scan-now-btn{background:#fff3ed;color:#ad4d34;border-color:#efc7b9}
.theme-light .scan-now-btn:hover{background:linear-gradient(135deg,#df6b47,#c55335);color:#fff}
.select-visible-sources{
  border:1px solid rgba(49,182,122,.22);background:rgba(49,182,122,.08);color:#7bc4a7;
  border-radius:9px;padding:9px 11px;font-size:10px;font-weight:850;cursor:pointer
}
.theme-light .select-visible-sources{background:#edf9f4;border-color:#c6e9d9;color:#277e5e}
.source-crawler-status{
  display:inline-flex;align-items:center;gap:5px;margin-top:7px;border-radius:999px;
  padding:4px 7px;font-size:9px;font-weight:850
}
.source-crawler-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#70899f}
.source-crawler-status.ok{background:rgba(49,182,122,.10);color:#78c7a8}
.source-crawler-status.ok:before{background:#31b67a}
.source-crawler-status.degraded{background:rgba(224,153,56,.10);color:#e0ad63}
.source-crawler-status.degraded:before{background:#e0a039}
.source-crawler-status.error{background:rgba(226,79,79,.10);color:#f08d8d}
.source-crawler-status.error:before{background:#e35b5b}
.source-crawler-status.never{background:rgba(113,143,170,.10);color:#8fa6ba}
.theme-light .source-crawler-status.ok{background:#edf9f4;color:#277e5e}
.theme-light .source-crawler-status.degraded{background:#fff8ea;color:#9b6c21}
.theme-light .source-crawler-status.error{background:#fff0f0;color:#b54040}
.source-adapter{font-size:8px;color:#6f879d;margin-top:4px}
.health-summary{display:grid;grid-template-columns:1fr;gap:7px;margin:9px 0}
.health-summary span{display:flex;align-items:center;gap:7px;font-size:10px;color:#88a0b6}
.health-summary b{margin-left:auto}
.health-dot{display:inline-block;width:7px;height:7px;border-radius:50%}
.health-dot.ok{background:#31b67a}.health-dot.degraded{background:#e0a039}.health-dot.error{background:#e35b5b}
.health-problem-list{display:flex;flex-direction:column;gap:5px;margin:8px 0}
.health-problem{font-size:9px;line-height:1.35;color:#d68c8c;padding:6px 7px;border-radius:8px;background:rgba(226,79,79,.06)}
.theme-light .health-problem{color:#a94444;background:#fff3f3}
.live-dot.scanning{background:#e0a039;box-shadow:0 0 12px rgba(224,160,57,.52)}
.live-dot.error{background:#e35b5b;box-shadow:0 0 12px rgba(227,91,91,.45)}
@media(max-width:1000px){.dashboard-actions{flex-wrap:wrap}}


/* =========================================================
   v0.11.0 — REAL DESKTOP NOTIFICATIONS
   ========================================================= */
.channel-live-badge,
.channel-next-badge{
  display:inline-block;
  vertical-align:1px;
  margin-left:5px;
  padding:3px 5px;
  border-radius:999px;
  font-size:7px;
  font-style:normal;
  letter-spacing:.08em;
  font-weight:900
}
.channel-live-badge{
  background:rgba(49,182,122,.13);
  color:#72c4a3
}
.channel-next-badge{
  background:rgba(123,148,171,.10);
  color:#8ea4b8
}
.theme-light .channel-live-badge{background:#e9f8f2;color:#247b5c}
.theme-light .channel-next-badge{background:#eef3f7;color:#5d7489}

.desktop-runtime-panel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:12px;
  padding:13px 14px;
  border:1px solid rgba(49,182,122,.16);
  border-radius:13px;
  background:rgba(49,182,122,.045)
}
.theme-light .desktop-runtime-panel{
  background:#f5fbf8;
  border-color:#cce9dd
}
.desktop-runtime-copy{
  display:flex;
  flex-direction:column;
  gap:3px
}
.desktop-runtime-kicker{
  font-size:7px;
  letter-spacing:.12em;
  color:#55b78e;
  font-weight:900
}
.desktop-runtime-copy b{font-size:12px}
.desktop-runtime-copy small{
  color:#839cb2;
  font-size:10px;
  line-height:1.4
}
.theme-light .desktop-runtime-copy b{color:#143b60}
.theme-light .desktop-runtime-copy small{color:#5f7890}
.desktop-runtime-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap
}
.desktop-runtime-actions button,
.history-refresh-btn{
  border:1px solid rgba(184,211,237,.14);
  background:rgba(255,255,255,.04);
  color:#a7c1d8;
  border-radius:9px;
  padding:8px 10px;
  font-size:9px;
  font-weight:850;
  cursor:pointer
}
.desktop-runtime-actions button:hover{
  border-color:rgba(49,182,122,.34);
  color:#9de0c2
}
.theme-light .desktop-runtime-actions button,
.theme-light .history-refresh-btn{
  background:#fff;
  border-color:#d1dfeb;
  color:#315f84
}
.permission-pill{
  border-radius:999px;
  padding:6px 8px;
  font-size:8px;
  font-weight:900;
  background:rgba(123,148,171,.10);
  color:#8fa6ba
}
.permission-pill.granted{background:rgba(49,182,122,.12);color:#74c6a6}
.permission-pill.denied{background:rgba(226,79,79,.10);color:#ed8b8b}
.permission-pill.default{background:rgba(224,160,57,.10);color:#d9a35c}
.theme-light .permission-pill.granted{background:#e9f8f2;color:#247b5c}
.theme-light .permission-pill.denied{background:#fff0f0;color:#ad4343}
.theme-light .permission-pill.default{background:#fff7e8;color:#986c28}

.notification-history-panel{margin-top:12px}
.notification-history-panel .panel-heading{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start
}
.notification-history-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:10px
}
.history-empty{
  border:1px dashed rgba(184,211,237,.12);
  border-radius:10px;
  padding:14px;
  font-size:10px;
  color:#7e96ac;
  text-align:center
}
.notification-history-item{
  display:grid;
  grid-template-columns:8px minmax(0,1fr) auto;
  gap:9px;
  align-items:start;
  padding:9px 10px;
  border:1px solid rgba(184,211,237,.10);
  border-radius:10px;
  background:rgba(255,255,255,.025)
}
.theme-light .notification-history-item{
  background:#fff;
  border-color:#d8e4ed
}
.notification-history-dot{
  width:7px;height:7px;border-radius:50%;margin-top:5px;background:#718ca5
}
.notification-history-item.red .notification-history-dot{background:#e35b5b}
.notification-history-item.orange .notification-history-dot{background:#d96643}
.notification-history-copy b{
  display:block;
  font-size:10px;
  line-height:1.35;
  margin-bottom:3px
}
.notification-history-copy span{
  font-size:8px;
  color:#7992a9
}
.theme-light .notification-history-copy b{color:#153a5e}
.notification-history-status{
  font-size:8px;
  font-weight:850;
  color:#75c4a5;
  white-space:nowrap
}
.notification-history-status.failed,
.notification-history-status.blocked{color:#e28a8a}
.notification-history-status.pending{color:#d6a05b}

@media(max-width:850px){
  .desktop-runtime-panel{align-items:flex-start;flex-direction:column}
  .desktop-runtime-actions{justify-content:flex-start}
}


/* =========================================================
   v0.11.2 — PER-SOURCE NOTIFICATION POLICY
   ========================================================= */
.source-notification-control{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(184,211,237,.09)
}
.source-notification-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px
}
.source-notification-label span{
  font-size:8px;
  font-weight:900;
  letter-spacing:.07em;
  color:#7891a7;
  text-transform:uppercase
}
.source-notification-label small{
  font-size:8px;
  color:#657e95
}
.notification-mode-toggle{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:4px
}
.notification-mode-toggle button{
  border:1px solid rgba(184,211,237,.10);
  background:rgba(255,255,255,.025);
  color:#7f98ae;
  border-radius:8px;
  padding:7px 5px;
  font-size:8px;
  font-weight:850;
  line-height:1.2;
  cursor:pointer
}
.notification-mode-toggle button:hover{
  border-color:rgba(82,158,232,.25);
  color:#b8d7ee
}
.notification-mode-toggle button.active[data-notification-mode="relevance"]{
  color:#b8dbf6;
  border-color:rgba(62,137,208,.35);
  background:rgba(42,111,176,.15)
}
.notification-mode-toggle button.active[data-notification-mode="always"]{
  color:#fff;
  border-color:rgba(217,102,67,.44);
  background:linear-gradient(135deg,#df6b47,#c55335);
  box-shadow:0 5px 14px rgba(197,83,53,.18)
}
.notification-mode-toggle button.active[data-notification-mode="none"]{
  color:#9aabba;
  background:rgba(104,123,141,.10);
  border-color:rgba(137,157,176,.16)
}
.source-notification-control.disabled{opacity:.42}
.source-notification-control.disabled .notification-mode-toggle button{cursor:not-allowed}
.theme-light .source-notification-control{border-top-color:#dce7ef}
.theme-light .source-notification-label span{color:#607b92}
.theme-light .source-notification-label small{color:#72899c}
.theme-light .notification-mode-toggle button{
  background:#fff;
  border-color:#d5e2ec;
  color:#56728a
}
.theme-light .notification-mode-toggle button.active[data-notification-mode="relevance"]{
  color:#1f628f;background:#edf7fe;border-color:#bfdaed
}
.theme-light .notification-mode-toggle button.active[data-notification-mode="always"]{
  color:#fff;background:linear-gradient(135deg,#df6b47,#c55335);border-color:transparent
}
.theme-light .notification-mode-toggle button.active[data-notification-mode="none"]{
  color:#667b8d;background:#f1f4f6;border-color:#d9e1e7
}


/* =========================================================
   v0.11.3 — READ = MOVE TO ARCHIVE
   ========================================================= */
.article-card.being-read{
  opacity:.28;
  transform:translateX(18px) scale(.99);
  transition:opacity .28s ease,transform .28s ease
}
.article-card.being-read::after{
  content:"✓ Διαβάστηκε · μεταφορά στο Αρχείο";
  position:absolute;
  inset:auto 16px 12px auto;
  z-index:4;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(49,182,122,.16);
  color:#78c9a8;
  font-size:9px;
  font-weight:900;
  box-shadow:0 5px 14px rgba(0,0,0,.12)
}
.theme-light .article-card.being-read::after{
  background:#e9f8f1;
  color:#247b5b
}

.detail-read-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 10px;
  border:1px solid rgba(49,182,122,.22);
  border-radius:999px;
  background:rgba(49,182,122,.09);
  color:#78c9a8;
  font-size:9px;
  font-weight:900;
  white-space:nowrap
}
.theme-light .detail-read-status{
  background:#eaf8f2;
  border-color:#c9e9db;
  color:#267d5d
}

.archive-result-action .read-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(49,182,122,.09);
  color:#71c3a2;
  font-size:8px;
  font-weight:900
}
.theme-light .archive-result-action .read-badge{
  background:#eaf8f2;
  color:#267d5d
}
.archive-result-action .unread-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(82,158,232,.09);
  color:#89b8df;
  font-size:8px;
  font-weight:850
}
.theme-light .archive-result-action .unread-badge{
  background:#edf6fd;
  color:#376f9e
}


/* =========================================================
   v0.11.4 — BULK ACTIONS / DELETE / 7-DAY RETENTION
   ========================================================= */
.bulk-action-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-2px 0 12px;
  padding:10px 12px;
  border:1px solid rgba(82,158,232,.18);
  border-radius:12px;
  background:rgba(32,96,157,.09)
}
.theme-light .bulk-action-bar{
  background:#f2f8fd;
  border-color:#cfe0ed
}
.bulk-selection-info{
  display:flex;
  align-items:baseline;
  gap:6px;
  white-space:nowrap
}
.bulk-selection-info b{
  font-size:17px;
  color:#d96643
}
.bulk-selection-info span{
  font-size:10px;
  color:#8098ae;
  font-weight:800
}
.bulk-action-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap
}
.bulk-action-buttons button{
  border:1px solid rgba(184,211,237,.13);
  background:rgba(255,255,255,.035);
  color:#9ab4ca;
  border-radius:8px;
  padding:7px 9px;
  font-size:9px;
  font-weight:850;
  cursor:pointer
}
.bulk-action-buttons button:hover{
  border-color:rgba(82,158,232,.30);
  color:#c3def2
}
.bulk-action-buttons button.danger{
  border-color:rgba(226,79,79,.25);
  background:rgba(226,79,79,.09);
  color:#ee8b8b
}
.bulk-action-buttons button.danger:hover{
  background:#b84444;
  border-color:#b84444;
  color:#fff
}
.bulk-action-buttons button.muted{
  color:#768da1
}
.theme-light .bulk-action-buttons button{
  background:#fff;
  border-color:#d2e0ea;
  color:#426987
}
.theme-light .bulk-action-buttons button.danger{
  background:#fff2f2;
  border-color:#efc9c9;
  color:#b74747
}
.bulk-select-check{
  display:flex;
  justify-content:center;
  align-items:center;
  width:34px;
  height:31px;
  border:1px solid rgba(184,211,237,.13);
  border-radius:9px;
  background:rgba(255,255,255,.035);
  cursor:pointer
}
.bulk-select-check input{
  width:15px;
  height:15px;
  accent-color:#d96643;
  cursor:pointer
}
.theme-light .bulk-select-check{
  background:#fff;
  border-color:#d1e0eb
}
.article-card.bulk-selected,
.archive-result.bulk-selected{
  border-color:rgba(217,102,67,.48)!important;
  box-shadow:0 0 0 1px rgba(217,102,67,.12) inset
}
.archive-select-cell{
  display:flex;
  align-items:center;
  justify-content:center
}
.archive-result{
  grid-template-columns:38px 96px 5px minmax(0,1fr) auto!important
}
.archive-result-action .archive-delete-btn{
  border:1px solid rgba(226,79,79,.18);
  background:rgba(226,79,79,.06);
  color:#dd8585;
  border-radius:8px;
  padding:5px 7px;
  font-size:8px;
  font-weight:850;
  cursor:pointer
}
.archive-result-action .archive-delete-btn:hover{
  background:#b84444;
  color:#fff
}
.article-actions .article-delete-btn{
  color:#db8181
}
.article-actions .article-delete-btn:hover{
  background:#a94040;
  color:#fff;
  border-color:#a94040
}
.detail-delete-btn{
  border-color:rgba(226,79,79,.20)!important;
  color:#dc8585!important
}
.detail-delete-btn:hover{
  background:#a94040!important;
  color:#fff!important
}
.retention-note b{color:#d96643}

@media(max-width:820px){
  .bulk-action-bar{align-items:flex-start;flex-direction:column}
  .bulk-action-buttons{justify-content:flex-start}
}
@media(max-width:720px){
  .archive-result{
    grid-template-columns:34px 72px 4px minmax(0,1fr)!important
  }
  .archive-result-action{
    grid-column:4!important
  }
}
@media(max-width:480px){
  .archive-result{
    grid-template-columns:34px 4px minmax(0,1fr)!important
  }
  .archive-result-date{grid-column:3!important}
  .archive-result-action{grid-column:3!important}
}


/* =========================================================
   v0.11.5 — STRICT INBOX / IMMEDIATE ACTIONS
   ========================================================= */
.article-card.processing-out{
  opacity:0;
  transform:translateX(24px) scale(.985);
  max-height:0;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:hidden;
  pointer-events:none;
  transition:
    opacity .18s ease,
    transform .18s ease,
    max-height .22s ease .04s,
    margin .22s ease .04s,
    padding .22s ease .04s
}
.article-actions{
  gap:6px
}
.article-title.clickable{
  cursor:pointer
}
.article-title.clickable:hover{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px
}


/* =========================================================
   v0.11.6 — DELETE CONFIRMATION / ARCHIVE PRESETS
   ========================================================= */
.delete-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(3,12,22,.64);
  backdrop-filter:blur(8px)
}
.delete-confirm-card{
  width:min(440px,calc(100vw - 34px));
  border:1px solid rgba(226,79,79,.22);
  border-radius:18px;
  padding:20px;
  background:linear-gradient(160deg,#10273a,#0b1c2c);
  box-shadow:0 24px 70px rgba(0,0,0,.40)
}
.theme-light .delete-confirm-card{
  background:#fff;
  border-color:#edcccc;
  box-shadow:0 24px 70px rgba(31,58,82,.18)
}
.delete-confirm-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  border-radius:13px;
  background:rgba(226,79,79,.10);
  font-size:19px
}
.delete-confirm-kicker{
  display:block;
  margin-bottom:5px;
  color:#dc7777;
  font-size:8px;
  font-weight:950;
  letter-spacing:.12em
}
.delete-confirm-copy h3{
  margin:0 0 7px;
  font-size:19px;
  color:#edf6fc
}
.theme-light .delete-confirm-copy h3{color:#183c5b}
.delete-confirm-copy p{
  margin:0;
  color:#8ea7ba;
  font-size:11px;
  line-height:1.55
}
.theme-light .delete-confirm-copy p{color:#60788c}
.delete-confirm-never{
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin:16px 0 18px;
  padding:11px 12px;
  border:1px solid rgba(184,211,237,.10);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  cursor:pointer
}
.theme-light .delete-confirm-never{
  background:#f7fafc;
  border-color:#dbe6ed
}
.delete-confirm-never input{
  margin-top:1px;
  width:15px;
  height:15px;
  accent-color:#d96643
}
.delete-confirm-never span{
  color:#9ab0c2;
  font-size:10px;
  font-weight:750;
  line-height:1.4
}
.theme-light .delete-confirm-never span{color:#5d7488}
.delete-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px
}
.delete-confirm-actions button{
  min-width:90px;
  border:1px solid rgba(184,211,237,.14);
  border-radius:9px;
  padding:9px 13px;
  background:rgba(255,255,255,.04);
  color:#a7bccd;
  font-size:10px;
  font-weight:900;
  cursor:pointer
}
.theme-light .delete-confirm-actions button{
  background:#fff;
  border-color:#d4e0e8;
  color:#526f86
}
.delete-confirm-actions button.danger{
  border-color:#b94848;
  background:#b94848;
  color:#fff
}
.delete-confirm-actions button.danger:hover{
  background:#a43b3b
}
.archive-presets{
  flex-wrap:wrap
}


/* =========================================================
   v0.12.0 — RECYCLE BIN
   ========================================================= */
#dashboardTrashBtn b{
  margin-left:auto
}
.trash-item{
  border-color:rgba(226,79,79,.16)!important
}
.trash-item .archive-result-date small{
  color:#d98585
}
.trash-item-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap
}
.trash-restore-btn,
.trash-permanent-btn{
  border:1px solid rgba(184,211,237,.12);
  border-radius:8px;
  padding:6px 8px;
  background:rgba(255,255,255,.03);
  font-size:8px;
  font-weight:900;
  cursor:pointer
}
.trash-restore-btn{
  color:#78c7a6;
  border-color:rgba(49,182,122,.22)
}
.trash-restore-btn:hover{
  background:rgba(49,182,122,.14)
}
.trash-permanent-btn{
  color:#df8585;
  border-color:rgba(226,79,79,.22)
}
.trash-permanent-btn:hover{
  background:#a94040;
  color:#fff
}
.theme-light .trash-restore-btn{
  background:#edf9f4;
  color:#27795d;
  border-color:#cce9dc
}
.theme-light .trash-permanent-btn{
  background:#fff2f2;
  color:#ad4545;
  border-color:#efcdcd
}


/* =========================================================
   v0.12.1 — PERSONAL RELEVANCE + INTERNAL READER
   ========================================================= */
.detail-feedback-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin:18px 0 4px;
  padding:15px 16px;
  border:1px solid rgba(82,158,232,.16);
  border-radius:13px;
  background:rgba(39,102,162,.07)
}
.detail-feedback-panel h3{
  margin:3px 0 4px;
  color:#dcecf8;
  font-size:14px
}
.detail-feedback-panel p{
  margin:0;
  color:#829caf;
  font-size:10px
}
.theme-light .detail-feedback-panel{
  background:#f3f9fd;
  border-color:#d2e4f0
}
.theme-light .detail-feedback-panel h3{color:#183e60}
.theme-light .detail-feedback-panel p{color:#647f94}

.detail-feedback-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.detail-feedback-actions button{
  border:1px solid rgba(184,211,237,.13);
  border-radius:9px;
  padding:8px 10px;
  background:rgba(255,255,255,.035);
  color:#9bb7ca;
  font-size:9px;
  font-weight:900;
  cursor:pointer
}
.detail-feedback-actions button:hover{
  border-color:rgba(82,158,232,.30);
  color:#d8eaf6
}
.detail-feedback-actions button.active-like{
  background:rgba(49,182,122,.15);
  border-color:rgba(49,182,122,.32);
  color:#82d1af
}
.detail-feedback-actions button.active-dislike{
  background:rgba(226,112,79,.13);
  border-color:rgba(226,112,79,.30);
  color:#ed9c84
}
.theme-light .detail-feedback-actions button{
  background:#fff;
  border-color:#d2e0ea;
  color:#456b87
}
.theme-light .detail-feedback-actions button.active-like{
  background:#eaf8f2;
  color:#287b5d;
  border-color:#c6e7d8
}
.theme-light .detail-feedback-actions button.active-dislike{
  background:#fff2ed;
  color:#a9563d;
  border-color:#efd2c8
}
.detail-feedback-status{
  flex-basis:100%;
  color:#758da1;
  font-size:9px;
  font-weight:750
}

.reader-section{
  margin-top:18px
}
.reader-status{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(82,158,232,.10);
  color:#8fbbe0;
  font-size:8px;
  font-weight:900
}
.reader-loading{
  display:flex;
  align-items:center;
  gap:9px;
  padding:18px 0;
  color:#8da5b8;
  font-size:10px
}
.reader-loading i{
  width:14px;
  height:14px;
  border:2px solid rgba(141,165,184,.25);
  border-top-color:#d96643;
  border-radius:50%;
  animation:readerSpin .8s linear infinite
}
@keyframes readerSpin{to{transform:rotate(360deg)}}

.reader-body{
  max-width:820px;
  margin:8px auto 0;
  font-family:Georgia,"Times New Roman",serif;
  color:#c4d4df
}
.theme-light .reader-body{color:#27465f}
.reader-body p{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.78
}
.reader-body h2{
  margin:28px 0 12px;
  font-family:Inter,system-ui,sans-serif;
  color:#e2eff8;
  font-size:20px;
  line-height:1.3
}
.theme-light .reader-body h2{color:#173f61}
.reader-fallback{
  margin-top:12px;
  padding:14px;
  border:1px dashed rgba(217,102,67,.28);
  border-radius:11px;
  background:rgba(217,102,67,.06)
}
.reader-fallback p{
  margin:0 0 10px;
  color:#9caebe;
  font-size:10px;
  line-height:1.5
}
.reader-fallback button{
  border:1px solid rgba(217,102,67,.28);
  border-radius:8px;
  padding:8px 10px;
  background:rgba(217,102,67,.10);
  color:#eda58e;
  font-size:9px;
  font-weight:900;
  cursor:pointer
}


/* =========================================================
   v0.12.4 — DEDICATED SAVED FOLDER
   ========================================================= */
#dashboardSavedBtn b{
  margin-left:auto
}
.saved-content .archive-header h1{
  display:flex;
  align-items:center;
  gap:8px
}
.saved-search-card{
  border-color:rgba(217,102,67,.16)
}
.saved-filter-footer{
  align-items:center
}
.saved-permanent-note{
  display:flex;
  align-items:center;
  gap:10px;
  color:#91a9bb
}
.saved-permanent-note>span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(217,102,67,.11);
  color:#e18a6e;
  font-size:19px;
  font-weight:900
}
.saved-permanent-note div{
  display:flex;
  flex-direction:column;
  gap:2px
}
.saved-permanent-note b{
  color:#c9d9e5;
  font-size:10px
}
.saved-permanent-note small{
  color:#7892a6;
  font-size:8px
}
.theme-light .saved-permanent-note b{color:#284d67}
.theme-light .saved-permanent-note small{color:#6f8798}

.saved-result{
  border-color:rgba(217,102,67,.14)!important
}
.saved-result .archive-result-meta .saved-chip{
  color:#e49276;
  border-color:rgba(217,102,67,.22);
  background:rgba(217,102,67,.08)
}
.saved-item-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:stretch
}
.saved-unsave-btn,
.saved-delete-btn{
  border:1px solid rgba(184,211,237,.12);
  border-radius:8px;
  padding:7px 8px;
  background:rgba(255,255,255,.03);
  font-size:8px;
  font-weight:900;
  cursor:pointer
}
.saved-unsave-btn{
  color:#9bb8cb
}
.saved-delete-btn{
  color:#df8585;
  border-color:rgba(226,79,79,.20)
}
.saved-unsave-btn:hover{
  border-color:rgba(82,158,232,.28);
  color:#d5e8f5
}
.saved-delete-btn:hover{
  background:#a94040;
  color:#fff
}
.theme-light .saved-unsave-btn{
  background:#fff;
  color:#426a87;
  border-color:#d5e2ea
}
.theme-light .saved-delete-btn{
  background:#fff2f2;
  color:#ad4545;
  border-color:#efcdcd
}


/* =========================================================
   v0.11.7 — SHARED NEWSROOM ACTION CONTROL READABILITY
   ========================================================= */
/* One shared action scale for feed cards, Saved, Archive, Trash and bulk UI. */
.article-actions{
  gap:8px
}
.article-actions button,
.bulk-select-check{
  width:40px;
  height:38px;
  border-radius:10px;
  font-size:13px
}
.bulk-select-check input{
  width:16px;
  height:16px
}

.bulk-action-bar{
  gap:14px;
  padding:12px 14px
}
.bulk-selection-info{
  gap:7px
}
.bulk-selection-info b{
  font-size:18px
}
.bulk-selection-info span{
  font-size:11px
}
.bulk-action-buttons{
  gap:8px
}
.bulk-action-buttons button{
  min-height:38px;
  padding:9px 12px;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap
}

/* Text actions in the Saved, Archive and Trash card variants. */
.archive-result-action .archive-delete-btn,
.trash-restore-btn,
.trash-permanent-btn,
.saved-unsave-btn,
.saved-delete-btn{
  min-height:36px;
  padding:8px 10px;
  font-size:10px;
  line-height:1.2
}
.trash-item-actions,
.saved-item-actions{
  gap:8px
}

/* Detail and confirmation actions follow the same readable desktop scale. */
.detail-icon-btn,
.detail-original-btn{
  min-height:40px;
  padding:10px 14px;
  font-size:12px
}
.detail-top-actions,
.delete-confirm-actions{
  flex-wrap:wrap
}
.delete-confirm-actions button{
  min-height:38px;
  padding:9px 12px;
  font-size:10px
}

@media(max-width:520px){
  .article-actions{flex-wrap:wrap}
  .bulk-action-buttons{width:100%;justify-content:flex-start}
  .bulk-action-buttons button{flex:0 1 auto}
}


/* =========================================================
   v0.13.1 — SOURCE DIAGNOSTICS
   ========================================================= */
.diagnose-visible-sources{
  border:1px solid rgba(82,158,232,.24);
  border-radius:10px;
  padding:9px 11px;
  background:rgba(82,158,232,.08);
  color:#9bc6e8;
  font-size:9px;
  font-weight:900;
  cursor:pointer
}
.diagnose-visible-sources:hover{
  background:rgba(82,158,232,.14);
  border-color:rgba(82,158,232,.42)
}
.diagnose-visible-sources:disabled{
  opacity:.55;
  cursor:wait
}
.theme-light .diagnose-visible-sources{
  background:#edf6fc;
  border-color:#c9dfef;
  color:#356d98
}

.source-diagnostic-panel{
  margin:12px 0 16px;
  padding:14px 15px;
  border:1px solid rgba(82,158,232,.14);
  border-radius:12px;
  background:rgba(35,82,122,.07)
}
.theme-light .source-diagnostic-panel{
  background:#f6fbfe;
  border-color:#d9e8f2
}
.source-diagnostic-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap
}
.source-diagnostic-kicker{
  color:#76aeda;
  font-size:8px;
  font-weight:950;
  letter-spacing:.12em
}
.source-diagnostic-panel h3{
  margin:3px 0 3px;
  color:#d9e9f5;
  font-size:13px
}
.theme-light .source-diagnostic-panel h3{color:#204969}
.source-diagnostic-panel p{
  margin:0;
  color:#849caf;
  font-size:9px
}
.source-diagnostic-stats{
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.source-diagnostic-stats span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#8da6b9;
  font-size:8px;
  font-weight:850
}
.source-diagnostic-stats b{
  color:#e8f2f9
}
.theme-light .source-diagnostic-stats span{
  background:#fff;
  color:#667f91;
  border:1px solid #dde9f1
}
.theme-light .source-diagnostic-stats b{color:#244d6b}

.source-diagnostic-progress{
  height:4px;
  margin-top:11px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.06)
}
.theme-light .source-diagnostic-progress{background:#e4eef4}
.source-diagnostic-progress i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#d96643;
  transition:width .2s ease
}

.source-card.diag-ok{
  border-color:rgba(49,182,122,.30)
}
.source-card.diag-degraded{
  border-color:rgba(222,166,74,.32)
}
.source-card.diag-error{
  border-color:rgba(226,79,79,.34)
}
.source-crawler-status.ok{color:#68c39d}
.source-crawler-status.degraded{color:#d7ae63}
.source-crawler-status.error{color:#dc7777}
.source-crawler-status.never{color:#768b9b}

.source-diagnostic-detail{
  margin-top:5px;
  color:#70889b;
  font-size:8px;
  line-height:1.4;
  word-break:break-word
}
.source-diagnostic-detail.error{
  color:#be7474
}


/* =========================================================
   v0.13.2 — SPLIT NEWS FEEDS
   ========================================================= */
.dashboard-sidebar .sidebar-section-title:first-of-type{
  margin-top:14px
}
.dashboard-nav.library-nav{
  margin-bottom:4px
}
.dashboard-nav [data-feed-view="epirus"]>span{
  color:#8ec4e8
}
.dashboard-nav [data-feed-view="official"]>span{
  color:#d8a36d
}
.dashboard-nav [data-feed-view="core"]>span{
  color:#a7b9e9
}
.dashboard-nav [data-feed-view="all"]{
  opacity:.84
}
.dashboard-nav [data-feed-view="all"].active{
  opacity:1
}
\n\n/* v0.14.0 — National Sources / Importance / Clustering */\n.national-selective-lock{margin-top:14px;padding:10px 12px;border:1px solid rgba(87,166,219,.35);border-radius:10px;background:rgba(36,107,154,.12);font-size:12px;font-weight:700}\n.national-feed-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:12px 0 2px}\n.national-feed-filter{border:1px solid rgba(126,163,191,.25);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:8px 12px;cursor:pointer;font-size:12px}\n.national-feed-filter.active{border-color:rgba(224,132,88,.8);box-shadow:0 0 0 1px rgba(224,132,88,.18) inset;background:rgba(224,132,88,.13)}\n.national-category-label,.story-cluster-label,.national-score-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:11px;line-height:1.2}\n.national-category-label{background:rgba(78,142,188,.15);border:1px solid rgba(78,142,188,.3)}\n.story-cluster-label{background:rgba(224,132,88,.14);border:1px solid rgba(224,132,88,.34);font-weight:700}\n.national-score-badge{border:1px solid rgba(224,132,88,.28);background:rgba(224,132,88,.09)}\n.cluster-sources{font-size:11px;opacity:.72;padding:3px 0}\n

/* =========================================================
   v0.14.3 — National category pills / portal color polish
   ========================================================= */

.national-feed-filters{
  gap:10px;
  padding:10px 0 6px;
}

.national-feed-filter{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid rgba(89,163,212,.38) !important;
  background:
    linear-gradient(180deg,
      rgba(28,91,137,.88) 0%,
      rgba(20,70,109,.92) 100%) !important;
  color:#eaf6ff !important;
  border-radius:999px !important;
  padding:9px 14px !important;
  min-height:36px;
  font-size:12px !important;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1;
  box-shadow:
    0 4px 14px rgba(8,35,57,.20),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.national-feed-filter:hover{
  background:
    linear-gradient(180deg,
      rgba(43,121,173,.96) 0%,
      rgba(27,88,132,.98) 100%) !important;
  border-color:rgba(115,194,241,.62) !important;
  color:#ffffff !important;
  transform:translateY(-1px);
  box-shadow:
    0 6px 18px rgba(8,35,57,.28),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.national-feed-filter:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(95,177,228,.22),
    0 6px 18px rgba(8,35,57,.25);
}

.national-feed-filter.active,
.national-feed-filter[aria-pressed="true"]{
  background:
    linear-gradient(180deg,
      #d97a52 0%,
      #bd603e 100%) !important;
  border-color:#e99a74 !important;
  color:#ffffff !important;
  box-shadow:
    0 6px 18px rgba(141,66,37,.30),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.national-feed-filter.active:hover{
  background:
    linear-gradient(180deg,
      #e48760 0%,
      #c96643 100%) !important;
}

/* Light theme: keep portal identity instead of white/black buttons */
body.light .national-feed-filter,
[data-theme="light"] .national-feed-filter{
  background:
    linear-gradient(180deg,
      rgba(34,112,163,.96) 0%,
      rgba(25,83,125,.98) 100%) !important;
  color:#ffffff !important;
  border-color:rgba(35,121,177,.50) !important;
}

body.light .national-feed-filter:hover,
[data-theme="light"] .national-feed-filter:hover{
  background:
    linear-gradient(180deg,
      rgba(45,132,188,.98) 0%,
      rgba(30,99,147,.99) 100%) !important;
}

body.light .national-feed-filter.active,
[data-theme="light"] .national-feed-filter.active{
  background:
    linear-gradient(180deg,
      #d97a52 0%,
      #bd603e 100%) !important;
  color:#ffffff !important;
  border-color:#e99a74 !important;
}

/* =========================================================
   v0.14.9 — Custom Sources + robust regional source filtering
   ========================================================= */
.source-status-label.custom{
  color:#e69a75;
  border:1px solid rgba(230,154,117,.35);
  background:rgba(230,154,117,.10);
  border-radius:999px;
  padding:3px 7px;
  letter-spacing:.05em;
}
.theme-light .source-status-label.custom{
  color:#a94f32;
  border-color:#e7b39d;
  background:#fff2ec;
}
.custom-source-remove{
  position:absolute;
  top:14px;
  right:42px;
  width:20px;
  height:20px;
  border-radius:6px;
  border:1px solid rgba(199,111,92,.42);
  background:rgba(132,49,35,.12);
  color:#d9927f;
  cursor:pointer;
  font-size:14px;
  line-height:16px;
  z-index:3;
}
.custom-source-remove:hover{
  background:rgba(173,67,45,.25);
  color:#fff;
}
.theme-light .custom-source-remove{
  background:#fff6f2;
  color:#a7523b;
  border-color:#e7b7a7;
}

.custom-source-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(3,16,30,.68);
  backdrop-filter:blur(8px);
}
.custom-source-overlay.hidden{display:none}
.source-events-history{margin:28px 0 8px;padding:18px 20px;border:1px solid rgba(132,169,197,.22);border-radius:16px;background:rgba(17,44,66,.42)}
.source-events-history.hidden{display:none}
.source-events-history h2{margin:0 0 10px;font-size:15px;color:#dceaf4}
.source-event-history-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid rgba(164,194,218,.14)}
.source-event-history-row b{font-size:13px;color:#dceaf4}.source-event-history-row p{margin:4px 0 0;color:#9bb4c7;font-size:12px;line-height:1.4}.source-event-history-row time{color:#8faabd;font-size:11px;white-space:nowrap}
.custom-source-modal{
  position:relative;
  width:min(620px,96vw);
  border-radius:20px;
  padding:24px;
  color:#f4f8fc;
  background:
    radial-gradient(circle at 88% 8%,rgba(217,102,67,.09),transparent 28%),
    linear-gradient(145deg,rgba(17,48,80,.98),rgba(7,28,50,.99));
  border:1px solid rgba(185,211,237,.16);
  box-shadow:0 28px 80px rgba(0,0,0,.42);
}
.custom-source-close{
  position:absolute;
  top:16px;
  right:17px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(185,211,237,.14);
  border-radius:10px;
  background:rgba(255,255,255,.045);
  color:#9db2c8;
  font-size:21px;
  line-height:1;
  cursor:pointer;
}
.custom-source-close:hover{background:rgba(255,255,255,.09);color:#fff}
.custom-source-modal-head{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding-right:42px;
  margin-bottom:18px;
}
.custom-source-modal-icon{width:48px;height:48px;border-radius:12px;font-size:22px}
.custom-source-kicker{margin:1px 0 4px;color:#e47a57}
.custom-source-modal h3{
  margin:0 0 7px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.01em;
}
.custom-source-modal-head p{
  margin:0;
  color:#9fb4c8;
  font-size:12px;
  line-height:1.55;
  max-width:510px;
}
.custom-source-form-card{
  border:1px solid rgba(185,211,237,.14);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:16px;
}
.custom-source-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0 0 13px;
}
.custom-source-field>span{
  font-size:11px;
  font-weight:800;
  color:#b8c9d8;
}
.custom-source-field input,
.custom-source-field select{
  width:100%;
  height:48px;
  border-radius:13px;
  border:1px solid rgba(189,213,238,.22);
  background:rgba(255,255,255,.06);
  color:#f4f8fc;
  padding:0 14px;
  font-size:14px;
  font-weight:600;
  outline:none;
  box-shadow:none;
}
.custom-source-field select option{color:#173b5d;background:#fff}
.custom-source-field input::placeholder{color:#8097af}
.custom-source-field input:focus,
.custom-source-field select:focus{
  border-color:rgba(82,158,232,.55);
  box-shadow:0 0 0 3px rgba(82,158,232,.10);
}
.custom-source-validate{
  width:100%;
  height:48px;
  margin:1px 0 0;
  font-size:11px;
  border-radius:12px;
}
.custom-source-validate:disabled{opacity:.55;cursor:wait}
.custom-source-result{
  border-radius:13px;
  padding:13px 14px;
  margin:13px 0 0;
  border:1px solid rgba(166,205,235,.16);
  background:rgba(255,255,255,.045);
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:11px;
}
.custom-source-result.hidden{display:none}
.custom-source-result.success{border-color:rgba(82,186,139,.35);background:rgba(65,153,113,.09)}
.custom-source-result.degraded{border-color:rgba(224,166,86,.40);background:rgba(185,127,51,.10)}
.custom-source-result.error{border-color:rgba(220,105,93,.42);background:rgba(173,64,50,.10)}
.custom-source-result.duplicate{border-color:rgba(90,158,213,.40);background:rgba(61,125,174,.10)}
.custom-source-result.checking{color:#9ec5df}
.custom-source-result-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.custom-source-result-head b{font-size:13px}
.custom-source-result-head span{color:#8ca5ba}
.custom-source-result-meta{display:flex;gap:12px;flex-wrap:wrap;color:#9fbbce}
.custom-source-samples{display:flex;flex-direction:column;gap:4px;color:#90a9bc;line-height:1.4}
.custom-source-requests-title{margin-top:4px;font-size:12px;font-weight:700;color:#d8e6f0}
.custom-source-request{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid rgba(164,194,218,.14)}
.custom-source-request>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.custom-source-request>div:last-child{align-items:flex-end;text-align:right}
.custom-source-request b{font-size:12px;color:#dceaf4;overflow-wrap:anywhere}
.custom-source-request small{font-size:11px;color:#8faabd}
.custom-source-status{display:inline-flex;align-items:center;border:1px solid rgba(141,180,209,.34);border-radius:999px;padding:3px 8px;font-size:11px;line-height:1.1;color:#c7dbe9;background:rgba(96,140,171,.12);white-space:nowrap}
.custom-source-status.status-approved{color:#bce7cd;border-color:rgba(82,186,139,.42);background:rgba(65,153,113,.12)}
.custom-source-status.status-rejected,.custom-source-status.status-failed_validation{color:#f0bbb5;border-color:rgba(220,105,93,.42);background:rgba(173,64,50,.12)}
.custom-source-request-reason{max-width:240px;font-size:11px;color:#a9bfce;overflow-wrap:anywhere}
.custom-source-result>span{color:#9fb5c7}
.custom-source-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}
.custom-source-actions .btn{font-size:13px;padding:12px 16px;min-height:44px}
.custom-source-actions .btn.inline{min-width:190px}
.custom-source-actions .btn.ghost{
  color:#b7c9d8;
  border-color:rgba(185,211,237,.20);
  background:rgba(255,255,255,.035);
}

body.sources-light-mode .custom-source-overlay{background:rgba(29,51,72,.32)}
body.sources-light-mode .custom-source-modal{
  color:#123659;
  background:
    radial-gradient(circle at 88% 8%,rgba(215,101,66,.07),transparent 28%),
    linear-gradient(145deg,#ffffff,#f2f8fc);
  border-color:#cbdde9;
  box-shadow:0 28px 70px rgba(38,64,88,.20);
}
body.sources-light-mode .source-events-history{background:#f8fbfd;border-color:#d6e2eb}body.sources-light-mode .source-events-history h2,body.sources-light-mode .source-event-history-row b{color:#224b6b}body.sources-light-mode .source-event-history-row p,body.sources-light-mode .source-event-history-row time{color:#617b91}
body.sources-light-mode .custom-source-close{background:#f4f8fb;border-color:#d7e2ea;color:#6a8296}
body.sources-light-mode .custom-source-modal-head p,
body.sources-light-mode .custom-source-field>span,
body.sources-light-mode .custom-source-result-head span,
body.sources-light-mode .custom-source-result-meta,
body.sources-light-mode .custom-source-samples,
body.sources-light-mode .custom-source-result>span{color:#617b91}
body.sources-light-mode .custom-source-requests-title,body.sources-light-mode .custom-source-request b{color:#224b6b}
body.sources-light-mode .custom-source-request small,body.sources-light-mode .custom-source-request-reason{color:#617b91}
body.sources-light-mode .custom-source-form-card{background:#f8fbfd;border-color:#d6e2eb}
body.sources-light-mode .custom-source-field input,
body.sources-light-mode .custom-source-field select{
  background:#fff;
  color:#173b5d;
  border-color:#c7d9e8;
}
body.sources-light-mode .custom-source-field input::placeholder{color:#6f87a0}
body.sources-light-mode .custom-source-actions .btn.ghost{background:#fff;color:#5f7487;border-color:#d4dce7}
@media(max-width:620px){
  .custom-source-modal{padding:20px 16px}
  .custom-source-modal-head{grid-template-columns:42px minmax(0,1fr);gap:11px;padding-right:34px}
  .custom-source-modal-icon{width:42px;height:42px}
  .custom-source-actions{flex-direction:column-reverse}
  .custom-source-actions .btn.inline{width:100%;min-width:0}
}
.source-card.custom-card .source-top{padding-right:62px}

.workspace-link{display:block;text-decoration:none;text-align:center;margin-bottom:8px}
