:root {
  color-scheme: dark;
  --bg: #07100d;
  --surface: rgba(17, 28, 24, .78);
  --surface-solid: #111d19;
  --surface-2: rgba(27, 39, 34, .72);
  --border: rgba(191, 255, 225, .105);
  --text: #ecf7f1;
  --muted: #94a9a0;
  --green: #65f2b5;
  --green-dim: #39bb87;
  --purple: #b693ff;
  --danger: #ff8796;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
  --radius: 20px;
  --sidebar: 238px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4f0;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #fff;
  --surface-2: rgba(235, 243, 239, .9);
  --border: rgba(20, 65, 47, .12);
  --text: #10251d;
  --muted: #60766c;
  --green: #087c54;
  --green-dim: #0b9666;
  --purple: #7150ba;
  --danger: #c9354c;
  --shadow: 0 22px 70px rgba(24, 58, 44, .1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .34; }
.ambient-one { width: 620px; height: 620px; left: -280px; top: -260px; background: radial-gradient(circle, rgba(44, 198, 133, .2), transparent 67%); }
.ambient-two { width: 720px; height: 720px; right: -340px; bottom: -390px; background: radial-gradient(circle, rgba(136, 87, 226, .17), transparent 66%); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 10;
  display: flex; flex-direction: column; padding: 25px 17px;
  background: color-mix(in srgb, var(--bg) 75%, transparent); border-right: 1px solid var(--border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 3px 11px 28px; font-size: 17px; font-weight: 760; letter-spacing: .025em; }
.brand > span:last-child { background: linear-gradient(90deg, var(--text), color-mix(in srgb, var(--purple) 72%, var(--text))); background-clip: text; -webkit-background-clip: text; color: transparent; text-transform: uppercase; }
.brand-mark { position: relative; display: block; width: 34px; height: 34px; flex: none; isolation: isolate; filter: drop-shadow(0 0 9px rgba(50, 200, 140, .18)) drop-shadow(0 0 13px rgba(111, 64, 170, .16)); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; clip-path: polygon(24% 0, 82% 0, 100% 18%, 100% 72%, 72% 100%, 18% 100%, 0 82%, 0 24%); }
.brand-mark::before { inset: 0; background: linear-gradient(135deg, #235f4b 0 38%, #2d1749 62% 100%); box-shadow: inset 0 0 0 1px rgba(113, 245, 187, .35); }
.brand-mark::after { inset: 3px; z-index: 1; background: linear-gradient(145deg, #071711, #110b1c); }
.brand-mark i { position: absolute; z-index: 2; left: 8px; top: 8px; width: 8px; height: 18px; clip-path: polygon(0 0, 100% 0, 70% 43%, 100% 100%, 30% 100%, 0 57%); background: linear-gradient(180deg, #55d8a1, #164f3d); box-shadow: 0 0 9px rgba(83, 221, 163, .45); transform: skewX(-8deg); }
.brand-mark i + i { left: 18px; width: 8px; clip-path: polygon(30% 0, 100% 0, 100% 43%, 68% 50%, 100% 100%, 25% 100%, 0 55%); background: linear-gradient(180deg, #9a71dd, #321d57); box-shadow: 0 0 9px rgba(147, 101, 218, .4); transform: skewX(8deg); }
.sidebar nav { display: grid; gap: 5px; }
.nav-label { margin: 24px 13px 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.nav-link { width: 100%; min-height: 45px; border: 0; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-radius: 13px; color: var(--muted); background: transparent; cursor: pointer; transition: .2s ease; text-align: left; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-link.active { box-shadow: inset 0 0 0 1px var(--border); }
.nav-link.active .icon { color: var(--green); filter: drop-shadow(0 0 8px rgba(101,242,181,.32)); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 5px; }
.sidebar-bottom form { margin: 0; }
.main-wrap { grid-column: 2; min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: center; padding: 16px 42px; border-bottom: 1px solid var(--border); }
.search { width: min(520px, 100%); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 13px; color: var(--muted); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.search:focus-within { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); box-shadow: 0 0 0 3px rgba(59, 200, 143, .08); }
.search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search input::placeholder { color: var(--muted); }
kbd { border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; font: 11px/20px inherit; color: var(--muted); background: var(--surface-2); }
.theme-toggle-mobile { display: none !important; }
main { max-width: 1440px; margin: 0 auto; padding: 48px 48px 80px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 33px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-heading-tools { display: flex; align-items: center; gap: 12px; }
.dashboard-clock { position: relative; min-width: 190px; min-height: 67px; padding: 9px 14px 8px; overflow: hidden; display: grid; align-content: center; justify-items: end; border: 1px solid color-mix(in srgb, var(--green) 32%, var(--border)); border-radius: 12px 3px 12px 3px; background: linear-gradient(135deg, rgba(10, 35, 27, .92), rgba(25, 13, 41, .88)); box-shadow: inset 0 0 0 1px rgba(172, 255, 220, .025), inset 0 0 24px rgba(50, 210, 145, .045), 0 8px 30px rgba(0,0,0,.13); }
.dashboard-clock::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--green), var(--purple)); box-shadow: 0 0 9px var(--green); }
.dashboard-clock::after { content: "24H"; position: absolute; top: 7px; left: 9px; color: color-mix(in srgb, var(--purple) 70%, var(--muted)); font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.dashboard-clock time { color: #78efbb; font: 650 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .045em; font-variant-numeric: tabular-nums slashed-zero; text-shadow: 0 0 11px rgba(80, 224, 165, .3); }
.dashboard-clock span { margin-top: 6px; color: #9d86c4; font: 550 8px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="light"] .dashboard-clock { background: linear-gradient(135deg, #e8f5ee, #eee8f7); }
[data-theme="light"] .dashboard-clock time { color: #08724e; text-shadow: none; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(31px, 4vw, 47px); line-height: 1.05; letter-spacing: -.045em; font-weight: 720; }
h2 { margin-bottom: 4px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
h3 { margin-bottom: 5px; }
.muted { margin-bottom: 0; color: var(--muted); }
.button { min-height: 43px; border: 1px solid var(--border); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; color: var(--text); background: var(--surface-2); font-weight: 650; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--green) 28%, var(--border)); }
.button.primary { color: #071810; background: linear-gradient(135deg, #72f5bd, #44ce95); border-color: transparent; box-shadow: 0 8px 25px rgba(52, 196, 139, .16), inset 0 1px rgba(255,255,255,.45); }
[data-theme="light"] .button.primary { color: white; background: linear-gradient(135deg, #07865b, #0aa873); }
.button.full { width: 100%; }
.icon { flex: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { position: relative; min-height: 164px; overflow: hidden; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-solid) 91%, transparent)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.stat-card:after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -70px; top: -75px; background: var(--border); filter: blur(2px); }
.stat-card.green:after { background: rgba(59, 219, 155, .10); }
.stat-card.purple:after { background: rgba(164, 112, 255, .12); }
.stat-card > div:nth-child(2) { display: grid; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { margin: 3px 0; font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-icon { float: right; color: var(--green); }
.purple .stat-icon { color: var(--purple); }
.meter { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--border); }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.section { margin-top: 38px; }
.section-title { min-height: 39px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-title h2 { margin: 0; }
.section-title p, .section-title > div > p:not(.eyebrow) { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.section-title > a { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card { min-height: 78px; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: .2s ease; }
.service-card:hover { transform: translateY(-2px); border-color: rgba(111, 237, 184, .25); box-shadow: var(--shadow); }
.service-card > div:nth-child(2) { display: grid; }
.service-card strong { font-size: 13px; }
.service-card span { color: var(--muted); font-size: 10px; }
.service-card > .icon { width: 17px; height: 17px; }
.service-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; font-weight: 800; background: linear-gradient(145deg, #6f3bdd, #9d70f0); color: white; box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(115,62,215,.16); }
.rutorrent .service-logo { background: linear-gradient(145deg, #16a76c, #57dda3); color: #062217; }
.xrdp .service-logo { background: linear-gradient(145deg, #2e668d, #69b4d6); color: white; }
.feed-picker { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 650; }
.feed-picker select { height: 26px; max-width: 112px; border: 0; outline: 0; padding: 0 22px 0 6px; color: var(--text); background-color: var(--surface-2); border-radius: 7px; font-size: 11px; font-weight: 650; cursor: pointer; }
.rss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rss-card { min-width: 0; min-height: 245px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.rss-card:hover { transform: translateY(-2px); border-color: rgba(111, 237, 184, .25); box-shadow: var(--shadow); }
.rss-card-media { position: relative; height: 118px; flex: none; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.88); background: linear-gradient(145deg, #5c38a1, #251d35); font-size: 38px; font-weight: 800; }
.rss-card-media[data-source="Reuters"] { background: linear-gradient(145deg, #de6b25, #4b2515); }
.rss-card-media > span { opacity: .72; }
.rss-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rss-card:hover .rss-card-media img { transform: scale(1.025); }
.rss-card-body { min-height: 126px; padding: 14px 15px 13px; display: flex; flex-direction: column; }
.rss-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 650; }
.rss-card-meta > span { color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.rss-card h3 { margin: 8px 0 12px; display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; letter-spacing: -.015em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rss-card-open { margin-top: auto; color: var(--muted); font-size: 10px; }
.rss-card:hover .rss-card-open { color: var(--green); }
.rss-state { grid-column: 1/-1; min-height: 170px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; }
.rss-state p { margin: 0; }
.button.compact { min-height: 34px; padding: 0 13px; border-radius: 9px; font-size: 11px; }
.rss-skeleton { padding: 14px; pointer-events: none; }
.rss-skeleton span, .rss-skeleton i, .rss-skeleton b { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 65%, var(--border)), var(--surface-2)); background-size: 200% 100%; animation: rss-shimmer 1.25s ease-in-out infinite; }
.rss-skeleton span { height: 112px; }
.rss-skeleton i { width: 44%; height: 9px; margin-top: 18px; }
.rss-skeleton b { height: 34px; margin-top: 12px; }
@keyframes rss-shimmer { to { background-position: -200% 0; } }
.service-empty { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.service-empty .service-logo { margin-bottom: 19px; }
.service-empty .muted { max-width: 430px; margin: 2px auto 23px; }
.panel { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.022); }
.file-list { display: grid; }
.file-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 8px; border-top: 1px solid var(--border); }
.file-row:first-child { border-top: 0; }
.file-type { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.file-info { min-width: 0; display: grid; }
.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-info span { color: var(--muted); font-size: 11px; }
.file-actions { display: flex; gap: 4px; }
.file-actions form, .post-head form { margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.media-preview { position: relative; width: 100%; aspect-ratio: 16/10; padding: 0; border: 0; display: grid; place-items: center; overflow: hidden; color: white; background: #050807; cursor: pointer; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .25s ease; }
.media-preview > svg { position: absolute; padding: 10px; border-radius: 50%; background: rgba(5,12,9,.68); backdrop-filter: blur(8px); }
.media-preview:hover img { transform: scale(1.025); opacity: .82; }
.media-info { min-width: 0; min-height: 62px; padding: 10px 8px 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.media-info > div:first-child { min-width: 0; display: grid; }
.media-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.media-info span { color: var(--muted); font-size: 10px; }
.player-modal { width: min(900px, calc(100vw - 24px)); padding: 45px 14px 17px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: #050807; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.player-modal::backdrop { background: rgba(1,5,3,.86); backdrop-filter: blur(6px); }
.player-modal video { width: 100%; max-height: 75vh; display: block; border-radius: 12px; background: black; }
.player-modal h2 { margin: 14px 5px 0; }
.download-jobs { margin-top: 14px; }
.download-job { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: center; padding: 9px 3px; border-top: 1px solid var(--border); }
.download-job:first-of-type { border-top: 0; }
.download-job div { min-width: 0; display: grid; }
.download-job strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.download-job small { color: var(--muted); font-size: 10px; }
.job-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.job-dot.complete { background: var(--green); box-shadow: 0 0 8px var(--green); }
.job-dot.failed { background: var(--danger); }
.job-dot.running, .job-dot.queued { background: var(--purple); animation: pulse 1.2s infinite alternate; }
.upload-status { min-height: 20px; font-size: 11px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 13px; background: black; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes pulse { to { opacity: .35; } }
.icon-button { width: 38px; height: 38px; padding: 0; border: 0; display: inline-grid; place-items: center; color: var(--muted); border-radius: 10px; background: transparent; cursor: pointer; transition: .15s ease; }
.icon-button:hover { color: var(--green); background: var(--surface-2); }
.icon-button:disabled { opacity: .45; cursor: wait; }
.icon-button.danger:hover { color: var(--danger); }
.category-bar { display: flex; gap: 8px; padding-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.chip { min-height: 35px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 12px; }
.chip span { opacity: .7; }
.chip.active, .chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); background: var(--surface-2); }
.empty { min-height: 190px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty span { margin-bottom: 8px; color: var(--green); font-size: 24px; }
.empty h3, .empty p { margin-bottom: 2px; }
.empty.small { min-height: 90px; }
.modal { width: min(490px, calc(100vw - 28px)); padding: 29px; border: 1px solid var(--border); border-radius: 23px; color: var(--text); background: var(--surface-solid); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.modal::backdrop { background: rgba(2, 8, 6, .7); backdrop-filter: blur(7px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 35px; height: 35px; border: 0; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 23px; cursor: pointer; }
.share-modal .field { margin: 21px 0 14px; }
.share-modal input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0; }
.drop-zone { min-height: 145px; margin: 22px 0 15px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1px dashed color-mix(in srgb, var(--green) 38%, var(--border)); border-radius: 16px; color: var(--green); background: color-mix(in srgb, var(--green) 4%, transparent); cursor: pointer; }
.drop-zone strong { margin-top: 7px; color: var(--text); }
.drop-zone span { color: var(--muted); font-size: 12px; }
.drop-zone.dragging { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); }
.drop-zone input { display: none; }
.field { display: grid; gap: 6px; margin: 14px 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea, .login-form input { width: 100%; border: 1px solid var(--border); border-radius: 11px; outline: 0; padding: 11px 13px; color: var(--text); background: var(--surface-2); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .login-form input:focus { border-color: color-mix(in srgb, var(--green) 48%, var(--border)); box-shadow: 0 0 0 3px rgba(67, 209, 150, .08); }
.upload-queue { display: grid; gap: 7px; margin: 13px 0; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.upload-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { grid-column: 1/-1; height: 3px; overflow: hidden; border-radius: 2px; background: var(--border); }
.progress i { display: block; width: 0; height: 100%; background: var(--green); transition: width .15s; }
.blog-grid { columns: 3 290px; column-gap: 15px; }
.post-card { display: inline-block; width: 100%; margin: 0 0 15px; padding: 20px; break-inside: avoid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.post-head { display: flex; align-items: center; justify-content: space-between; }
.post-kind { color: var(--green); font-size: 9px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.post-card h2 { margin: 7px 0 13px; font-size: 19px; }
.post-body { margin: 13px 0; color: color-mix(in srgb, var(--text) 89%, var(--muted)); font-size: 13px; overflow-wrap: anywhere; }
.post-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.post-card time { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; }
.post-media { width: 100%; max-height: 440px; object-fit: cover; display: block; border-radius: 13px; background: var(--surface-2); }
a.post-media { overflow: hidden; }
a.post-media img { width: 100%; max-height: 440px; display: block; object-fit: cover; }
.link-preview { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.link-preview span { color: var(--green); font-size: 10px; }
.link-preview strong { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.link-preview svg { grid-column: 2; grid-row: 1/3; align-self: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 10px 15px; border: 1px solid var(--border); border-radius: 10px; opacity: 0; pointer-events: none; background: var(--surface-solid); box-shadow: var(--shadow); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }
.login-body { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); margin: 0; padding: 40px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); backdrop-filter: blur(25px); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035); }
.brand-login { padding: 0 0 43px; }
.login-card h1 { font-size: 37px; }
.login-form { display: grid; gap: 15px; margin-top: 29px; }
.login-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.login-form .button { margin-top: 6px; }
.login-error { margin-top: 17px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 10px; color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); font-size: 12px; }
.secure-note { margin: 25px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.secure-note span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  :root { --radius: 17px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-wrap { min-height: 100vh; padding-bottom: 72px; }
  .topbar { height: 70px; padding: 12px 15px; justify-content: stretch; gap: 8px; }
  .search { height: 43px; }
  .search kbd { display: none; }
  .theme-toggle-mobile { display: inline-grid !important; flex: none; border: 1px solid var(--border); background: var(--surface); }
  main { padding: 29px 16px 45px; }
  .page-heading { align-items: flex-start; margin-bottom: 25px; }
  .dashboard-heading { display: grid; }
  .dashboard-heading-tools { width: 100%; justify-content: space-between; }
  .dashboard-clock { min-width: 178px; padding: 9px 12px 8px; justify-items: end; }
  .heading-actions { max-width: 155px; }
  .page-heading .button { min-width: 43px; padding: 0 12px; }
  .page-heading .button svg { margin: 0; }
  h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 145px; padding: 17px; }
  .stat-card strong { font-size: 21px; }
  .stat-card small { font-size: 10px; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .rss-grid { grid-template-columns: 1fr; gap: 10px; }
  .rss-card { min-height: 220px; }
  .rss-card-media { height: 112px; }
  .panel { padding: 14px; }
  .section { margin-top: 29px; }
  .file-row { padding: 11px 2px; grid-template-columns: 39px minmax(0,1fr) auto; gap: 10px; }
  .file-type { width: 38px; height: 38px; }
  .file-actions { gap: 0; }
  .file-actions .icon-button { width: 35px; }
  .file-info span { max-width: 48vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .blog-grid { columns: 1; }
  .mobile-nav { position: fixed; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); left: 10px; right: 10px; bottom: max(9px, env(safe-area-inset-bottom)); height: 60px; padding: 5px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(22px); box-shadow: 0 12px 40px rgba(0,0,0,.24); }
  .mobile-nav .nav-link { min-height: 48px; padding: 0; display: grid; place-items: center; gap: 0; font-size: 10px; }
  .mobile-nav .nav-link svg { width: 20px; height: 20px; }
  .modal { padding: 25px 20px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 125px; }
  .page-heading .muted { max-width: 240px; }
  .page-heading > .button { font-size: 0; }
  .page-heading > .button svg { width: 20px; height: 20px; }
  .dashboard-heading-tools .button { min-width: 43px; padding: 0 12px; font-size: 0; }
  .login-card { padding: 31px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
