/* Cloud Design v1.0.8 — light theme rebuild, premium mark, notification center, integration UX */

/* Brand */
.brand-mark{width:38px;height:38px;filter:none!important}.brand-copy b{font-weight:760;letter-spacing:-.045em}.brand-copy small{letter-spacing:.19em}.hero-core img{width:56px;height:56px}.footer-brand .brand-mark{width:40px;height:40px}

/* Notification bell/dropdown */
.notification-center{position:relative}.notification-button{position:relative;display:grid;place-items:center}.notification-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button.active{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.notification-count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;font-size:.67rem;box-shadow:0 0 0 3px var(--bg)}
.notification-popover{position:absolute;right:-8px;top:calc(100% + 12px);width:min(390px,calc(100vw - 24px));background:color-mix(in srgb,var(--surface) 96%,transparent);border:1px solid var(--line);border-radius:20px;box-shadow:0 26px 80px rgba(0,0,0,.32);backdrop-filter:blur(24px);overflow:hidden;z-index:2200}.notification-popover-head,.notification-popover-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.notification-popover-head{border-bottom:1px solid var(--line)}.notification-popover-head>div{display:grid;gap:3px}.notification-popover-head small{color:var(--muted);font-size:.72rem}.notification-popover-head>a,.notification-popover-foot>a,.notification-popover-foot button{color:var(--accent);font-size:.78rem;font-weight:700;border:0;background:none;cursor:pointer}.notification-popover-list{max-height:390px;overflow:auto}.notification-popover-item{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:6px;padding:6px 8px 6px 14px;border-bottom:1px solid var(--line)}.notification-popover-item>a{display:grid;gap:4px;padding:10px 0;color:var(--text);min-width:0}.notification-popover-item b{font-size:.82rem}.notification-popover-item span{color:var(--muted);font-size:.76rem;line-height:1.4}.notification-popover-item small{color:color-mix(in srgb,var(--muted) 80%,transparent);font-size:.68rem}.notification-popover-item form{display:grid;place-items:start center;padding-top:8px}.notification-popover-item form button{width:28px;height:28px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:1.15rem;cursor:pointer}.notification-popover-item form button:hover{background:var(--soft);color:var(--text)}.notification-popover-empty{padding:28px 18px;color:var(--muted);text-align:center;font-size:.82rem}.notification-popover-foot{border-top:1px solid var(--line);background:var(--soft)}.notification-popover-foot form{margin:0}.mobile-notifications-link{display:flex!important;align-items:center;justify-content:space-between!important}.mobile-notifications-link .badge-dot{margin-left:auto}.account-chip .badge-dot{display:none!important}
.notification-page-list{padding:8px 18px}.notification-page-list .notification-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.notification-page-list .notification-row>a{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:13px 0}.notification-page-list .notification-row form{margin:0}.notification-page-list .notification-row>.status-pill{margin-right:4px}.notification-page-list .notification-row.unread{background:color-mix(in srgb,var(--accent) 5%,transparent);padding-inline:12px}

/* Clearer integration states */
.settings-help{padding:15px 17px;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));border-radius:15px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));margin:12px 0 18px}.settings-help b{display:block;margin-bottom:5px}.settings-help p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.55}.backup-status-link{text-decoration:none}.telegram-link-pending,.telegram-linked-panel{margin-top:26px}.telegram-link-pending .telegram-live-hint{margin-top:16px;font-size:.78rem}.telegram-linked-live{animation:telegramConnected .32s ease both}@keyframes telegramConnected{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* -------------------- LIGHT THEME — rebuilt from scratch -------------------- */
html[data-theme="light"]{
 --bg:#f6f7fb;
 --bg2:#eef0f6;
 --surface:#ffffff;
 --surface2:#f7f8fc;
 --surface-2:#f7f8fc;
 --text:#171923;
 --muted:#6c7082;
 --line:rgba(31,35,54,.105);
 --soft:rgba(53,58,88,.045);
 --shadow:0 24px 68px rgba(31,35,54,.085);
 --shadow-soft:0 11px 30px rgba(31,35,54,.065);
 color-scheme:light;
}
html[data-theme="light"] body{background:radial-gradient(900px 520px at 90% -10%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 72%),radial-gradient(760px 420px at -8% 20%,rgba(127,139,194,.06),transparent 70%),linear-gradient(180deg,#fafbfe 0,#f6f7fb 45%,#f2f4f9 100%);color:var(--text)}
html[data-theme="light"] .site-header.scrolled{background:rgba(250,251,254,.86);border-color:rgba(31,35,54,.075);box-shadow:0 10px 34px rgba(31,35,54,.055)}
html[data-theme="light"] .card{background:linear-gradient(180deg,#fff 0,#fbfcff 100%);border-color:rgba(31,35,54,.09);box-shadow:0 1px 0 rgba(255,255,255,.95) inset,var(--shadow-soft)}
html[data-theme="light"] .ghost-btn,html[data-theme="light"] .icon-btn,html[data-theme="light"] .menu-btn,html[data-theme="light"] .account-chip{background:rgba(255,255,255,.78);border-color:rgba(31,35,54,.11);box-shadow:0 1px 0 #fff inset,0 5px 16px rgba(31,35,54,.045)}
html[data-theme="light"] .ghost-btn:hover,html[data-theme="light"] .icon-btn:hover,html[data-theme="light"] .menu-btn:hover,html[data-theme="light"] .account-chip:hover{background:#fff;border-color:color-mix(in srgb,var(--accent) 30%,rgba(31,35,54,.12));box-shadow:0 9px 22px rgba(31,35,54,.07)}
html[data-theme="light"] .primary-btn{box-shadow:0 12px 27px color-mix(in srgb,var(--accent) 18%,transparent),0 1px 0 rgba(255,255,255,.25) inset}
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select{background:#fbfcff;border-color:rgba(31,35,54,.12);color:#171923;box-shadow:0 1px 0 #fff inset}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#9da1b1}
html[data-theme="light"] input:focus,html[data-theme="light"] textarea:focus,html[data-theme="light"] select:focus{background:#fff;border-color:color-mix(in srgb,var(--accent) 65%,rgba(31,35,54,.12));box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 9%,transparent)}
html[data-theme="light"] .orbital-card{background:rgba(255,255,255,.88);border-color:rgba(31,35,54,.09);box-shadow:0 14px 42px rgba(31,35,54,.075)}
html[data-theme="light"] .trust-strip{background:rgba(255,255,255,.45);border-color:rgba(31,35,54,.075)}
html[data-theme="light"] .cta-panel{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 5%,#fff),#fff);border-color:color-mix(in srgb,var(--accent) 18%,rgba(31,35,54,.1));box-shadow:0 18px 50px rgba(31,35,54,.07)}
html[data-theme="light"] .side-nav{background:rgba(255,255,255,.7);border:1px solid rgba(31,35,54,.085);box-shadow:0 8px 24px rgba(31,35,54,.045)}
html[data-theme="light"] .side-nav a:hover,html[data-theme="light"] .side-nav a.active{background:color-mix(in srgb,var(--accent) 7%,#fff);color:#171923}
html[data-theme="light"] .table-wrap{background:#fff;border-color:rgba(31,35,54,.09);box-shadow:0 10px 30px rgba(31,35,54,.045)}
html[data-theme="light"] th,html[data-theme="light"] td{border-color:rgba(31,35,54,.075)}
html[data-theme="light"] tr:hover td{background:rgba(31,35,54,.018)}
html[data-theme="light"] .status-pill{background:#f5f6fa;border-color:rgba(31,35,54,.09)}
html[data-theme="light"] .status-pill.good{background:#edf9f2;color:#2b8a59;border-color:#d6efe1}html[data-theme="light"] .status-pill.warn{background:#fff8ea;color:#9c6715;border-color:#f0e0bf}html[data-theme="light"] .status-pill.bad{background:#fff0f0;color:#b64d4d;border-color:#f1d2d2}
html[data-theme="light"] .notification-popover{background:rgba(255,255,255,.96);border-color:rgba(31,35,54,.09);box-shadow:0 28px 80px rgba(31,35,54,.16)}
html[data-theme="light"] .notification-count{box-shadow:0 0 0 3px #f9fafe}
html[data-theme="light"] .mobile-menu{background:rgba(246,247,251,.94)}html[data-theme="light"] .mobile-menu-inner{background:#fff;border-color:rgba(31,35,54,.09);box-shadow:0 24px 70px rgba(31,35,54,.13)}
html[data-theme="light"] .site-footer{background:#eef0f6;border-color:rgba(31,35,54,.08)}
html[data-theme="light"] .guest-chat-fab,html[data-theme="light"] .guest-chat-panel{background:#fff;border-color:rgba(31,35,54,.1);box-shadow:0 18px 55px rgba(31,35,54,.14)}
html[data-theme="light"] .toast{background:#fff;border-color:rgba(31,35,54,.1);box-shadow:0 18px 50px rgba(31,35,54,.14)}
html[data-theme="light"] .consent-banner{background:rgba(255,255,255,.96)}
html[data-theme="light"] .pc-warning,html[data-theme="light"] .settings-help{background:color-mix(in srgb,var(--accent) 4%,#fff)}
html[data-theme="light"] .chat-bubble{background:#f4f5fa;border-color:rgba(31,35,54,.08)}html[data-theme="light"] .chat-bubble.mine{background:color-mix(in srgb,var(--accent) 10%,#fff);border-color:color-mix(in srgb,var(--accent) 22%,rgba(31,35,54,.08))}
html[data-theme="light"] .progress{background:#e9ebf2}
html[data-theme="light"] code{background:#f1f2f7;border-radius:7px;padding:2px 6px;color:#42465a}

@media(max-width:720px){
 .notification-popover{position:fixed;top:calc(var(--header) + 8px);left:12px;right:12px;width:auto;max-height:calc(100svh - var(--header) - 24px)}.notification-popover-list{max-height:55svh}.notification-page-list{padding:6px 12px}.notification-page-list .notification-row{grid-template-columns:1fr}.notification-page-list .notification-row>a{display:grid;gap:8px}.notification-page-list .notification-row form,.notification-page-list .notification-row>.status-pill{justify-self:start}.settings-help{padding:14px}.brand-copy small{letter-spacing:.14em}
}
