:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: rgba(15, 23, 31, 0.84);
  --panel-strong: rgba(18, 29, 39, 0.96);
  --ink: #f4f7fb;
  --muted: #98a7b7;
  --line: rgba(164, 188, 209, 0.18);
  --line-strong: rgba(164, 188, 209, 0.34);
  --accent: #30d5c8;
  --accent-2: #7dd3fc;
  --green: #41d78a;
  --red: #ff6875;
  --amber: #ffc857;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 213, 200, .24), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(125, 211, 252, .13), transparent 34%),
    linear-gradient(180deg, #0b1118 0%, #070b10 48%, #05080c 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: none;
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.app-shell { position: relative; width: min(1500px, calc(100vw - 36px)); margin: 0 auto; padding: 22px 0 40px; }
.site-nav {
  position: sticky; top: 0; z-index: 20; min-height: 68px; margin-bottom: 24px; padding: 10px 14px;
  display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 0 0 22px 22px;
  background: rgba(7, 11, 16, .76); box-shadow: 0 18px 45px rgba(0,0,0,.24); backdrop-filter: blur(18px);
}
.brand, .site-links a, a.tool-link { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 950; letter-spacing: .01em; }
.brand-name { display: inline-flex; align-items: baseline; gap: 5px; text-transform: lowercase; }
.brand-name b { font-size: 19px; color: var(--ink); }
.brand-name i { font-style: normal; color: var(--accent); text-shadow: 0 0 22px rgba(48,213,200,.38); }
.brand-mark {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(48,213,200,.92), rgba(125,211,252,.92) 52%, rgba(227,255,248,.92));
  box-shadow: 0 14px 40px rgba(48,213,200,.32), inset 0 1px 0 rgba(255,255,255,.7);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -45%; transform: rotate(28deg) translateX(-42%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transition: transform .55s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-3deg); box-shadow: 0 18px 50px rgba(48,213,200,.42), inset 0 1px 0 rgba(255,255,255,.78); }
.brand:hover .brand-mark::after { transform: rotate(28deg) translateX(58%); }
.brand-mark svg { position: relative; z-index: 1; width: 30px; height: 30px; }
.brand-mark .logo-fill { fill: #041313; }
.brand-mark .logo-line { fill: none; stroke: #041313; stroke-width: 3.2; stroke-linecap: round; opacity: .72; }
.online-pill {
  justify-self: end;
  min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px;
  border: 1px solid rgba(65,215,138,.24); border-radius: 999px;
  background: rgba(65,215,138,.08); color: var(--ink); font-weight: 950;
  box-shadow: 0 14px 34px rgba(65,215,138,.08);
}
.online-pill small { margin: 0; color: var(--muted); font-size: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 0 rgba(65,215,138,.55); animation: onlinePulse 1.8s ease-out infinite; }
.nav-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav-cta { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: #041313; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; text-decoration: none; box-shadow: 0 14px 34px rgba(48,213,200,.2); }
.lang-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); }
.lang-switcher button { min-height: 30px; padding: 0 9px; border-radius: 999px; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 950; box-shadow: none; }
.lang-switcher button.active { color: #041313; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.site-links, .actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.site-links { padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); }
.site-links a { min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 14px; color: var(--muted); font-weight: 850; transition: transform .18s ease, background .18s ease, color .18s ease; }
.site-links a:hover, .site-links a.active { color: var(--ink); background: rgba(48,213,200,.16); transform: translateY(-1px); }
.topbar {
  display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: start; gap: 22px;
  margin-bottom: 18px; padding: 34px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(135deg, rgba(18,33,45,.96), rgba(9,17,24,.78)), radial-gradient(circle at 78% 18%, rgba(48,213,200,.24), transparent 34%);
  box-shadow: var(--shadow); overflow: hidden;
}
.eyebrow { margin: 0 0 10px; color: var(--accent-2); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: 0; }
.lead { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
button, a.tool-link, select {
  min-height: 38px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  background: rgba(255,255,255,.055); color: var(--ink); font: inherit; font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
button { cursor: pointer; }
a.tool-link { display: inline-flex; align-items: center; }
button:hover, a.tool-link:hover { transform: translateY(-2px); border-color: rgba(125,211,252,.48); background: rgba(255,255,255,.1); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
button:active, a.tool-link:active { transform: translateY(0) scale(.98); }
button:disabled { cursor: wait; opacity: .58; transform: none; }
.primary { border-color: transparent; color: #041313; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px rgba(48,213,200,.26); }
.secondary:hover, .tool-link:hover, .icon-button:hover { border-color: rgba(125,211,252,.42); }
.icon-button { width: 38px; padding: 0; font-size: 21px; line-height: 1; }
.icon-button.small { width: 30px; min-height: 30px; font-size: 18px; }
.install-hidden { display: none; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.045); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.tab { border-color: transparent; background: transparent; color: var(--muted); }
.tab.active { color: #041313; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.control-band, .status-strip, .table-wrap, .manual-export, .auth-panel, .history-board, .guide-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.guide-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; margin-bottom: 10px; }
.guide-panel article { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 4px 8px; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.024)); overflow: hidden; }
.guide-panel article::after { content: ""; position: absolute; width: 70px; height: 70px; right: -34px; top: -40px; border-radius: 999px; background: rgba(48,213,200,.13); filter: blur(2px); }
.guide-panel b { grid-row: span 2; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #041313; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.guide-panel strong { font-size: 14px; }
.guide-panel span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.welcome-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3,7,11,.72); backdrop-filter: blur(18px); }
.welcome-screen[hidden] { display: none !important; pointer-events: none !important; }
.welcome-screen.is-leaving { animation: welcomeOut .26s ease forwards; }
.welcome-card { width: min(480px, 100%); padding: 30px; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(145deg, rgba(18,33,45,.98), rgba(7,11,16,.94)); box-shadow: 0 34px 120px rgba(0,0,0,.52); animation: welcomeIn .42s cubic-bezier(.2,.9,.2,1) both; }
.welcome-card h2 { margin: 8px 0; font-size: 38px; }
.welcome-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.welcome-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: #041313; font-size: 18px; font-weight: 950; background: linear-gradient(145deg, var(--accent), var(--accent-2)); box-shadow: 0 18px 46px rgba(48,213,200,.32); }
.control-band { display: grid; grid-template-columns: minmax(360px, 1fr) 160px; gap: 14px; padding: 14px; margin-bottom: 12px; }
.control-band.compact { display: flex; justify-content: flex-end; }
.control-band.compact label { width: 170px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 850; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); font: inherit; font-size: 14px; outline: none; background: rgba(6,10,15,.74); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(125,211,252,.68); box-shadow: 0 0 0 4px rgba(48,213,200,.14); }
.url-open-cell,
.plain-url-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}
.plain-url-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.open-url-btn {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  color: #041313;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(48,213,200,.18);
}
.url-open-cell input:placeholder-shown + .open-url-btn,
.urlCell input:placeholder-shown + .open-url-btn {
  opacity: 0;
  pointer-events: none;
}
.empty-input-row .icon-button.small {
  opacity: 0;
  pointer-events: none;
}
.status-strip { padding: 11px 14px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.hidden { display: none !important; }
.manual-export { display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; }
.manual-export strong { display: block; margin-bottom: 3px; }
.manual-export span { color: var(--muted); font-size: 13px; }
.manual-export textarea { min-height: 150px; white-space: pre; font-family: Consolas, "Courier New", monospace; }
.manual-export-actions, .auth-actions { display: flex; gap: 8px; justify-content: flex-end; }
.auth-panel { display: grid; grid-template-columns: 1.2fr minmax(220px, 280px) minmax(220px, 280px) auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 12px; }
.auth-panel h2 { margin: 0 0 4px; font-size: 18px; }
.auth-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-message { grid-column: 1 / -1; min-height: 0; padding: 0 2px; color: var(--muted); font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, color .18s ease; }
.auth-message.is-visible { opacity: 1; transform: translateY(0); }
.auth-message.is-error { color: #ff7b86; }
.auth-message.is-ok { color: var(--green); }
.user-badge { color: var(--muted); font-size: 13px; font-weight: 850; }
body.is-authenticated .auth-panel { display: none; }
body.is-authenticated .guest-only { display: none !important; }
body:not(.is-authenticated) .app-only, body:not(.is-authenticated) #logoutBtn { display: none; }
.landing-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.landing-hero,
.landing-tools,
body:not(.is-authenticated) .auth-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(18,33,45,.92), rgba(7,11,16,.82)),
    radial-gradient(circle at 86% 12%, rgba(48,213,200,.22), transparent 36%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.landing-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  overflow: hidden;
  position: relative;
}
.landing-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  bottom: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(48,213,200,.24), transparent 68%);
  filter: blur(4px);
  animation: softFloat 7s ease-in-out infinite alternate;
}
.landing-hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .96;
}
.landing-hero .lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.landing-note {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 18px 0 0;
  color: #c8d6e4;
  font-weight: 850;
  line-height: 1.55;
}
.landing-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.landing-tools article {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.026));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.landing-tools article:hover {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.4);
  background: rgba(255,255,255,.08);
}
.landing-tools b {
  font-size: 18px;
  letter-spacing: .01em;
}
.landing-tools span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}
.crowd-service-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, .9fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid rgba(48,213,200,.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(48,213,200,.18), transparent 32%),
    linear-gradient(145deg, rgba(14,32,36,.92), rgba(7,11,16,.86));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.crowd-service-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -105px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125,211,252,.22), transparent 68%);
  animation: softFloat 8s ease-in-out infinite alternate;
}
.crowd-copy, .crowd-points, .crowd-cta { position: relative; z-index: 1; }
.crowd-copy h2, .news-offer h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.crowd-copy p:not(.eyebrow), .news-card p, .offer-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.crowd-points { display: grid; gap: 9px; }
.crowd-points span {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: #c9d5e2;
  font-size: 14px;
}
.crowd-points b { margin-right: 8px; color: var(--accent-2); }
.crowd-points a, .news-telegram, .offer-card.contact a { color: var(--accent); font-weight: 950; text-decoration: none; }
.crowd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  color: #041313;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 44px rgba(48,213,200,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.crowd-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 58px rgba(48,213,200,.32); }
.crowd-order-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin: 0 0 18px;
  padding: 34px 38px;
  border: 1px solid rgba(48,213,200,.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(48,213,200,.22), transparent 34%),
    linear-gradient(135deg, rgba(18,33,45,.96), rgba(7,11,16,.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.crowd-order-banner::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -95px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(48,213,200,.2), transparent 68%);
  animation: softFloat 8s ease-in-out infinite alternate;
}
.crowd-order-banner > * { position: relative; z-index: 1; }
.crowd-order-banner h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
}
.crowd-order-banner p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.news-shell { padding-bottom: 70px; }
.news-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 16px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(48,213,200,.22), transparent 34%),
    linear-gradient(135deg, rgba(18,33,45,.96), rgba(7,11,16,.82));
  box-shadow: var(--shadow);
}
.news-hero h1 { max-width: 920px; }
.news-telegram {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(48,213,200,.28);
  border-radius: 999px;
  background: rgba(48,213,200,.08);
}
.news-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 14px;
  margin-bottom: 16px;
}
.offer-card, .news-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.024));
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.offer-card { padding: 22px; }
.offer-card.contact { position: relative; overflow: hidden; display: grid; align-content: center; gap: 12px; }
.offer-card.contact b { font-size: 24px; }
.offer-card.contact a { font-size: 28px; }
.contact-glow { position: absolute; width: 170px; height: 170px; right: -70px; top: -70px; border-radius: 999px; background: rgba(48,213,200,.18); filter: blur(2px); }
.offer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.offer-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(125,211,252,.24);
  border-radius: 999px;
  color: #d8e4ef;
  background: rgba(125,211,252,.07);
  font-size: 13px;
  font-weight: 850;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.news-card {
  position: relative;
  min-height: 220px;
  padding: 20px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--green));
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.36);
  background: rgba(255,255,255,.075);
}
.news-card.featured { grid-column: span 3; min-height: 190px; }
.news-date { display: inline-flex; margin-bottom: 14px; color: var(--accent-2); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.news-card h2, .news-card h3 { margin: 0 0 10px; }
.news-card h2 { font-size: 32px; }
.news-card h3 { font-size: 22px; }
.article-browser {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.article-sidebar,
.article-view {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(7, 13, 19, .76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.article-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 14px;
  max-height: calc(100vh - 116px);
  overflow: auto;
}
.article-search { margin-bottom: 2px; }
.article-list { display: grid; gap: 10px; }
.article-item {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 126px;
  padding: 14px;
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.article-item span,
.article-kicker span,
.article-kicker small {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.article-item b {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.article-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.article-item.active {
  border-color: rgba(48,213,200,.48);
  background: linear-gradient(145deg, rgba(48,213,200,.16), rgba(255,255,255,.035));
  box-shadow: 0 18px 44px rgba(48,213,200,.12);
}
.article-empty {
  padding: 18px;
  border: 1px dashed rgba(125,211,252,.28);
  border-radius: 18px;
  color: var(--muted);
}
.article-view {
  min-height: 680px;
  padding: clamp(24px, 4vw, 52px);
}
.article-view h2 {
  max-width: 900px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}
.article-view p {
  max-width: 900px;
  margin: 0 0 18px;
  color: #c8d3df;
  font-size: 17px;
  line-height: 1.78;
}
.article-view .article-summary {
  color: var(--accent-2);
  font-size: 19px;
  font-weight: 800;
}
.article-kicker { display: flex; align-items: center; gap: 12px; }
.article-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(125,211,252,.25);
  border-radius: 999px;
  color: #dce7f2;
  background: rgba(125,211,252,.07);
  font-size: 13px;
  font-weight: 850;
}
body:not(.is-authenticated) .auth-panel {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  padding: 18px;
}
body:not(.is-authenticated) .auth-panel > div {
  grid-column: 1 / -1;
}
body:not(.is-authenticated) .auth-panel h2 {
  font-size: 26px;
}
.table-wrap { overflow: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .24s ease both; }
.history-board { padding: 18px; }
.history-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.history-hero h2 { margin: 0 0 6px; font-size: 26px; }
.history-hero span { color: var(--muted); font-size: 14px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.history-card {
  position: relative; display: grid; gap: 14px; min-height: 178px; padding: 16px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  overflow: hidden; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.history-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--green)); opacity: .9; }
.history-card:hover { transform: translateY(-3px); border-color: rgba(125,211,252,.36); background: rgba(255,255,255,.075); box-shadow: 0 22px 50px rgba(0,0,0,.22); }
.history-card-top { display: grid; gap: 8px; }
.history-card-top span { color: var(--accent-2); font-size: 12px; font-weight: 900; }
.history-card-top strong { min-height: 42px; color: var(--ink); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.history-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.history-metrics span { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6,10,15,.44); }
.history-metrics b { display: block; font-size: 22px; color: var(--ink); }
.history-metrics small { margin: 0; color: var(--muted); font-size: 11px; }
body.is-processing .topbar, body.is-processing .hero { animation: processingGlow 1.4s ease-in-out infinite alternate; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
th, td { height: 42px; border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: clip; }
th { position: sticky; top: 0; z-index: 1; height: 38px; background: rgba(4,9,14,.96); color: #dce7f2; font-size: 12px; text-transform: uppercase; }
tr:hover td { background: rgba(48,213,200,.035); }
td:nth-child(1), th:nth-child(1) { width: 360px; }
td:nth-child(2), th:nth-child(2), td:nth-child(3), th:nth-child(3) { width: 230px; }
td:nth-child(4), th:nth-child(4) { width: 180px; }
td:nth-child(5), th:nth-child(5) { width: 130px; }
td:nth-child(6), th:nth-child(6) { width: 360px; }
td:nth-child(7), th:nth-child(7), td:nth-child(8), th:nth-child(8) { width: 100px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 86px; min-height: 26px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 900; }
.neutral { background: rgba(154,168,183,.18); color: #bfccd8; }
.ok { background: rgba(65,215,138,.14); color: var(--green); }
.bad { background: rgba(255,104,117,.14); color: var(--red); }
.manual, .checking { background: rgba(255,200,87,.15); color: var(--amber); }
.problem { color: #c5d0dc; font-size: 13px; }
.spacer-row td { background: rgba(255,255,255,.02); height: 20px; }
.spacer-row input, .spacer-row .badge { visibility: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes onlinePulse { 70% { box-shadow: 0 0 0 9px rgba(65,215,138,0); } 100% { box-shadow: 0 0 0 0 rgba(65,215,138,0); } }
@keyframes processingGlow { from { box-shadow: var(--shadow); } to { box-shadow: 0 28px 86px rgba(48,213,200,.22); } }
@keyframes welcomeIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes welcomeOut { to { opacity: 0; transform: scale(1.015); backdrop-filter: blur(0); } }
@keyframes softFloat { from { transform: translate3d(-8px, 10px, 0) scale(.94); } to { transform: translate3d(10px, -8px, 0) scale(1.05); } }
@media (max-width: 760px) {
  .app-shell { width: min(100vw - 18px, 720px); padding-top: 0; }
  .site-nav, .topbar, .control-band, .auth-panel, .guide-panel { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .landing-screen, .landing-tools, body:not(.is-authenticated) .auth-panel { grid-template-columns: 1fr; }
  .crowd-service-panel, .crowd-order-banner, .news-hero, .news-offer, .news-grid, .article-browser { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .crowd-service-panel, .crowd-order-banner { align-items: stretch; padding: 24px; }
  .article-sidebar { position: relative; top: auto; max-height: none; }
  .article-view { min-height: auto; }
  .landing-hero { min-height: auto; padding: 24px; }
  .landing-tools { padding: 10px; }
  .site-nav { position: relative; border-radius: 0 0 18px 18px; }
  .actions, .site-links { justify-content: flex-start; }
}


/* bilgril polished interface pass */
body {
  background:
    linear-gradient(125deg, rgba(48,213,200,.18), transparent 24%, rgba(125,211,252,.10) 52%, transparent 74%),
    linear-gradient(180deg, #071016 0%, #061018 46%, #03070c 100%) !important;
  background-size: 170% 170%, 100% 100%;
  animation: bgDrift 18s ease-in-out infinite alternate;
}
body::before {
  background:
    linear-gradient(115deg, transparent 0%, rgba(48,213,200,.08) 28%, transparent 46%),
    linear-gradient(245deg, transparent 12%, rgba(125,211,252,.06) 42%, transparent 68%) !important;
  background-size: 180% 180%;
  mask-image: none !important;
  opacity: .72;
  animation: bgVeil 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%, rgba(0,0,0,.22) 100%);
}
.site-nav {
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  border-radius: 22px !important;
  margin-top: 8px;
  padding: 10px 14px !important;
}
.nav-meta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.online-pill { justify-self: auto !important; min-height: 36px !important; padding: 0 12px !important; }
.cabinet { position: relative; }
.cabinet summary {
  min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; list-style: none; cursor: pointer;
  color: var(--ink); background: rgba(255,255,255,.055); font-weight: 900;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.cabinet summary::-webkit-details-marker { display: none; }
.cabinet summary:hover { transform: translateY(-1px); border-color: rgba(125,211,252,.42); background: rgba(255,255,255,.09); }
.cabinet-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 240px; display: grid; gap: 8px;
  padding: 12px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(8,15,22,.96); box-shadow: 0 24px 70px rgba(0,0,0,.38); backdrop-filter: blur(18px);
  animation: fadeUp .18s ease both;
}
.cabinet-email { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-2); font-size: 12px; font-weight: 900; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); }
.cabinet-menu button { width: 100%; justify-content: flex-start; color: var(--ink); background: rgba(255,255,255,.055); border-color: var(--line); box-shadow: none; }
body:not(.is-authenticated) .cabinet { display: none; }
.actions { gap: 8px !important; }
.guide-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important; padding: 8px !important; margin-bottom: 10px !important;
  border-radius: 16px !important; box-shadow: 0 14px 42px rgba(0,0,0,.18) !important;
}
.guide-panel article {
  grid-template-columns: 24px 1fr !important; gap: 3px 8px !important; min-height: 68px !important;
  padding: 10px 12px !important; border-radius: 13px !important;
}
.guide-panel article::after { width: 68px !important; height: 68px !important; right: -34px !important; top: -38px !important; opacity: .75; }
.guide-panel b { grid-row: span 2; width: 24px !important; height: 24px !important; border-radius: 8px !important; font-size: 12px; }
.guide-panel strong { font-size: 14px !important; line-height: 1.15; }
.guide-panel span { font-size: 12px !important; line-height: 1.32 !important; }
.topbar, .hero { padding: 28px !important; border-radius: 24px !important; }
@keyframes bgDrift { from { background-position: 0% 40%, center; } to { background-position: 100% 10%, center; } }
@keyframes bgVeil { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (max-width: 860px) {
  .site-nav { grid-template-columns: 1fr !important; }
  .site-links, .nav-meta { justify-self: start; }
  .guide-panel { grid-template-columns: 1fr !important; }
  .cabinet-menu { left: 0; right: auto; }
}


.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
.admin-panel[hidden] { display: none !important; }
.admin-panel {
  position: relative; z-index: 12; margin: -10px 0 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(8,15,22,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(18px); animation: fadeUp .2s ease both;
}
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-head h2 { margin: 0 0 5px; font-size: 24px; }
.admin-head span, .admin-empty { color: var(--muted); font-size: 13px; }
.admin-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.admin-user {
  display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
}
.admin-user.is-blocked { border-color: rgba(255,104,117,.38); background: rgba(255,104,117,.07); }
.admin-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user small, .admin-dates { color: var(--muted); font-size: 12px; }
.admin-dates { display: grid; gap: 3px; }
.admin-user button { min-height: 34px; color: var(--ink); background: rgba(255,255,255,.055); border-color: var(--line); box-shadow: none; }
.admin-user.is-blocked button { color: var(--green); }
body:not(.is-authenticated) .nav-meta .cabinet { display: none; }


/* v13 visible aurora background */
html { background: #03070c !important; }
body {
  position: relative;
  background:
    radial-gradient(circle at 14% 20%, rgba(48,213,200,.42), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(125,211,252,.30), transparent 30%),
    radial-gradient(circle at 55% 86%, rgba(65,215,138,.20), transparent 34%),
    linear-gradient(180deg, #071016 0%, #03070c 100%) !important;
  background-size: 135% 135%, 150% 150%, 145% 145%, 100% 100% !important;
  animation: auroraShift 10s ease-in-out infinite alternate !important;
  overflow-x: hidden;
}
body::before {
  content: "" !important;
  position: fixed !important;
  inset: -22% !important;
  pointer-events: none !important;
  background:
    conic-gradient(from 120deg at 30% 35%, transparent, rgba(48,213,200,.20), transparent 32%, rgba(125,211,252,.16), transparent 62%, rgba(65,215,138,.12), transparent),
    radial-gradient(circle at 70% 50%, rgba(48,213,200,.18), transparent 30%) !important;
  filter: blur(34px) saturate(1.28) !important;
  opacity: .95 !important;
  transform: translate3d(0,0,0) rotate(0deg) scale(1.04);
  animation: auroraFloat 16s ease-in-out infinite alternate !important;
  mask-image: none !important;
}
body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 34%, rgba(0,0,0,.32) 100%) !important;
}
.site-nav, .topbar, .hero, .guide-panel, .control-band, .status-strip, .table-wrap, .gridWrap, .stats, .historyPanel, .history-board, .auth-panel, .admin-panel {
  background-color: rgba(7, 13, 19, .76) !important;
  backdrop-filter: blur(20px) saturate(1.08) !important;
}
@keyframes auroraShift {
  0% { background-position: 0% 18%, 100% 0%, 40% 100%, center; }
  50% { background-position: 42% 8%, 70% 36%, 64% 76%, center; }
  100% { background-position: 100% 34%, 12% 24%, 30% 40%, center; }
}
@keyframes auroraFloat {
  0% { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1.04); opacity: .72; }
  50% { transform: translate3d(3%, 2%, 0) rotate(11deg) scale(1.12); opacity: .98; }
  100% { transform: translate3d(6%, -3%, 0) rotate(-7deg) scale(1.08); opacity: .82; }
}
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pageLeave { to { opacity: 0; transform: translateY(8px) scale(.994); filter: blur(4px); } }
.app-shell, .shell { animation: pageEnter .32s ease both; }
body.is-page-leaving .app-shell, body.is-page-leaving .shell { animation: pageLeave .2s ease both; pointer-events: none; }

/* v14 compact tool-first layout */
.topbar, .hero {
  min-height: 0 !important;
  padding: 22px 26px !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}
.topbar h1, .hero h1 {
  max-width: 760px;
  margin-top: 8px !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: .96 !important;
}
.topbar .lead, .hero .lead { display: none !important; }
.actions { align-items: center; }
.cabinet-menu {
  display: grid !important;
  align-items: stretch !important;
  gap: 8px !important;
  min-width: 230px;
}
.cabinet-menu button,
body.is-admin .cabinet-menu .admin-only {
  display: flex !important;
  width: 100% !important;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start !important;
  border-radius: 12px;
}
body:not(.is-admin) .cabinet-menu .admin-only { display: none !important; }
.admin-head span::after { content: " Shows every registered account, not only users online now."; }
.admin-user { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.admin-user:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, .34);
  background: rgba(255,255,255,.075);
}
.table-wrap,
.gridWrap {
  border-color: rgba(48,213,200,.32) !important;
  background:
    linear-gradient(180deg, rgba(11,36,39,.92), rgba(5,16,21,.92)),
    radial-gradient(circle at 12% 0%, rgba(48,213,200,.22), transparent 34%) !important;
  box-shadow: 0 26px 86px rgba(0,0,0,.34), 0 0 0 1px rgba(48,213,200,.08) inset !important;
  border-radius: 22px !important;
}
.table-wrap::before,
.gridWrap::before {
  content: "";
  display: inline-flex;
  margin: 12px 12px 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #041313;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.table-wrap table,
.gridWrap table {
  margin-top: 8px;
  background: rgba(2,10,13,.34);
}
.table-wrap input,
.inputTable input {
  min-height: 42px !important;
  border-color: rgba(125,211,252,.18) !important;
  background: rgba(2,8,12,.68) !important;
}
.table-wrap input:focus,
.inputTable input:focus {
  border-color: rgba(48,213,200,.75) !important;
  box-shadow: 0 0 0 4px rgba(48,213,200,.12) !important;
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .app-shell { width: calc(100vw - 12px) !important; padding: 6px 0 28px !important; }
  .site-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }
  .brand { justify-content: center; }
  .brand-mark { width: 40px !important; height: 40px !important; }
  .site-links {
    width: 100%;
    overflow-x: auto;
    justify-content: stretch;
    padding: 5px;
  }
  .site-links a { flex: 1 0 auto; min-height: 40px; text-align: center; white-space: nowrap; }
  .nav-meta { width: 100%; justify-content: space-between !important; gap: 8px !important; }
  .online-pill, .cabinet summary { min-height: 40px; padding: 9px 12px !important; }
  .cabinet { position: static !important; }
  .cabinet-menu { left: 8px !important; right: 8px !important; top: auto !important; width: auto !important; margin-top: 8px; }
  .topbar, .hero {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    border-radius: 20px !important;
    gap: 14px !important;
  }
  .topbar h1, .hero h1 { font-size: clamp(31px, 9.5vw, 42px) !important; line-height: 1.02 !important; }
  .actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .actions button, .toolbar button, .auth-actions button { width: 100%; min-height: 44px; }
  .guide-panel { grid-template-columns: 1fr !important; gap: 6px !important; padding: 7px !important; margin-bottom: 10px !important; }
  .guide-panel article { min-height: 58px !important; padding: 9px 10px !important; }
  .guide-panel span { display: none; }
  .control-band.compact { display: grid !important; grid-template-columns: 1fr !important; }
  .control-band.compact label { width: 100% !important; }
  .tabs { width: 100%; overflow-x: auto; padding: 5px; }
  .tab { flex: 1 0 auto; min-height: 40px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 940px; }
  input, select, textarea, button { font-size: 16px !important; }
  .history-hero, .admin-head { align-items: stretch !important; flex-direction: column !important; }
  .history-grid, .admin-users { grid-template-columns: 1fr !important; }
  .admin-panel { padding: 14px !important; }
  .portal-hero,
  .content-band {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }
  .portal-hero { min-height: auto !important; }
  .portal-orbit { min-height: 220px; }
  .portal-grid,
  .tool-directory,
  .pricing-grid,
  .mini-points {
    grid-template-columns: 1fr !important;
  }
  .portal-card.featured { grid-column: auto !important; }
  .page-hero { padding: 24px !important; border-radius: 22px !important; }
  .page-hero h1,
  .portal-hero h1 { font-size: clamp(34px, 11vw, 48px) !important; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .nav-cta { width: 100%; justify-content: center; }
  .lang-switcher { order: -1; }
}

/* v15 processing surface and clean sheet workflow */
button:disabled {
  cursor: default !important;
}
.topbar,
.hero,
.table-wrap,
.gridWrap {
  overflow: hidden;
}
body.is-processing .topbar::after,
body.is-processing .hero::after,
body.is-processing .table-wrap::after,
body.is-processing .gridWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 8%, rgba(48,213,200,.055) 36%, rgba(125,211,252,.075) 48%, transparent 72%),
    radial-gradient(circle at 18% 52%, rgba(65,215,138,.055), transparent 32%);
  background-size: 360% 100%, 150% 150%;
  mix-blend-mode: screen;
  animation: workScan 4.8s ease-in-out infinite;
  opacity: .48;
}
body.is-processing .table-wrap,
body.is-processing .gridWrap {
  border-color: rgba(48,213,200,.42) !important;
  box-shadow: 0 28px 94px rgba(48,213,200,.10), 0 0 0 1px rgba(48,213,200,.10) inset !important;
}
.manual-export textarea {
  font-family: Arial, sans-serif !important;
  font-size: 10pt !important;
  line-height: 1.35 !important;
  color: #071016 !important;
  background: #fff !important;
}
.marketing-shell { padding-bottom: 64px; }
.portal-hero,
.page-hero,
.content-band,
.tool-directory-card,
.portal-card,
.pricing-grid article,
.faq-list details {
  border: 1px solid var(--line);
  background: rgba(15, 23, 31, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.portal-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, .8fr);
  gap: 28px;
  align-items: center;
  min-height: 520px;
  padding: 56px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(48,213,200,.22), transparent 34%),
    linear-gradient(145deg, rgba(18,33,45,.96), rgba(7,11,16,.86));
}
.portal-hero h1,
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .95; max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.portal-orbit {
  position: relative;
  min-height: 330px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    radial-gradient(circle at center, rgba(48,213,200,.18), transparent 60%);
  overflow: hidden;
}
.portal-orbit::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(125,211,252,.24);
  border-radius: 999px;
  animation: softFloat 7s ease-in-out infinite alternate;
}
.portal-orbit span {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  color: #041313;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
  box-shadow: 0 18px 52px rgba(48,213,200,.22);
}
.portal-orbit span:nth-child(1) { left: 12%; top: 18%; }
.portal-orbit span:nth-child(2) { right: 14%; top: 24%; }
.portal-orbit span:nth-child(3) { left: 24%; bottom: 17%; }
.portal-orbit span:nth-child(4) { right: 22%; bottom: 20%; }
.portal-grid,
.tool-directory,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.portal-card,
.tool-directory-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.portal-card:hover,
.tool-directory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(48,213,200,.36);
  background: rgba(18,33,45,.95);
}
.portal-card span,
.tool-directory-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent-2);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.portal-card h2,
.tool-directory-card h2,
.content-band h2 { margin: 0 0 12px; font-size: 26px; }
.portal-card p,
.tool-directory-card p,
.content-band p,
.pricing-grid p,
.faq-list p { color: var(--muted); line-height: 1.65; }
.portal-card.featured { grid-column: span 2; background: linear-gradient(145deg, rgba(48,213,200,.16), rgba(15,23,31,.86)); }
.page-hero {
  padding: 46px;
  border-radius: 30px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(48,213,200,.18), transparent 34%),
    linear-gradient(145deg, rgba(18,33,45,.94), rgba(7,11,16,.82));
}
.content-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  margin-top: 18px;
}
.mini-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini-points span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  font-weight: 850;
}
.tool-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid article { padding: 24px; border-radius: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 18px 20px; border-radius: 18px; }
.faq-list summary { cursor: pointer; font-weight: 950; }
.compact-banner { padding: 24px 28px; border-radius: 24px; }
@keyframes workScan {
  0% { background-position: 120% 0, 0% 50%; opacity: .20; }
  50% { background-position: 20% 0, 62% 50%; opacity: .52; }
  100% { background-position: -80% 0, 100% 50%; opacity: .26; }
}

/* v60 second-pass SaaS polish */
:root {
  --shadow: 0 18px 54px rgba(0, 0, 0, .28);
  --panel: rgba(10, 20, 27, .82);
  --panel-strong: rgba(12, 25, 33, .94);
  --line: rgba(172, 199, 217, .16);
  --line-strong: rgba(172, 199, 217, .28);
  --radius: 16px;
}
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
.app-shell,
.shell {
  width: min(1280px, calc(100vw - 40px)) !important;
  padding-top: 16px !important;
}
.site-nav {
  min-height: 62px !important;
  grid-template-columns: minmax(180px, .85fr) minmax(360px, auto) minmax(260px, .85fr) !important;
  gap: 16px !important;
  padding: 9px 12px !important;
  margin-bottom: 18px !important;
  border-radius: 18px !important;
  background: rgba(6, 13, 18, .86) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.24) !important;
}
.brand { min-width: 0; }
.brand-mark { width: 38px !important; height: 38px !important; border-radius: 13px !important; }
.brand-mark svg { width: 27px !important; height: 27px !important; }
.brand-name b { font-size: 18px !important; }
.brand-name i { font-size: 18px !important; }
.site-links {
  justify-self: center !important;
  max-width: 100%;
  gap: 2px !important;
  padding: 4px !important;
  border-radius: 16px !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-links::-webkit-scrollbar { display: none; }
.site-links a {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  white-space: nowrap;
}
.nav-meta {
  justify-self: end !important;
  min-width: 0 !important;
  gap: 8px !important;
}
.online-pill {
  min-width: 92px !important;
  min-height: 34px !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.online-pill span:not(.online-dot) {
  display: inline-block;
  min-width: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.online-pill small {
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.lang-switcher {
  min-height: 34px !important;
  padding: 3px !important;
  border-radius: 14px !important;
}
.lang-switcher button {
  min-height: 28px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
}
.cabinet summary,
.nav-cta {
  min-height: 34px !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  white-space: nowrap;
}
.topbar,
.hero,
.portal-hero,
.page-hero,
.news-hero {
  padding: 28px 30px !important;
  border-radius: 22px !important;
  margin-bottom: 14px !important;
  min-height: 0 !important;
}
.topbar,
.hero {
  grid-template-columns: minmax(260px, 1fr) minmax(340px, auto) !important;
  gap: 18px !important;
}
.topbar h1,
.hero h1,
.portal-hero h1,
.page-hero h1,
.news-hero h1 {
  max-width: 840px !important;
  font-size: clamp(34px, 4.2vw, 58px) !important;
  line-height: 1.02 !important;
}
.lead,
.landing-hero .lead,
.portal-card p,
.tool-directory-card p,
.content-band p,
.pricing-grid p,
.faq-list p {
  color: #aebdca !important;
  line-height: 1.62 !important;
}
.actions,
.toolbar,
.hero .toolbar {
  gap: 8px !important;
}
button,
a.tool-link,
.nav-cta,
.crowd-cta {
  min-height: 40px !important;
  border-radius: 12px !important;
  font-weight: 850 !important;
}
button:hover,
a.tool-link:hover,
.nav-cta:hover,
.crowd-cta:hover {
  transform: translateY(-1px) !important;
}
.guide-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 8px !important;
  margin-bottom: 12px !important;
  border-radius: 18px !important;
}
.guide-panel article {
  min-height: 66px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}
.guide-panel span { font-size: 12px !important; }
.tabs {
  margin-bottom: 12px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.stats,
.status-strip,
.stop-summary {
  min-height: 40px !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
  background: rgba(6, 13, 18, .76) !important;
}
.auth-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 280px) minmax(220px, 280px) auto !important;
  align-items: end !important;
  gap: 12px !important;
  padding: 18px !important;
  border-radius: 18px !important;
}
input,
textarea,
select {
  min-height: 40px;
  border-radius: 10px !important;
  background: rgba(2, 8, 12, .72) !important;
}
.table-wrap,
.gridWrap,
.stop-results,
.resultWrap {
  border-radius: 18px !important;
  background: rgba(5, 16, 20, .82) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.24) !important;
}
.table-wrap::before,
.gridWrap::before {
  margin: 10px 10px 0 !important;
  padding: 4px 9px !important;
  font-size: 10px !important;
  content: "" !important;
}
table {
  font-size: 14px !important;
}
th {
  height: 36px !important;
  font-size: 11px !important;
  color: #cfd9e3 !important;
  background: rgba(3, 9, 13, .96) !important;
}
td {
  height: 40px !important;
  padding: 6px 9px !important;
}
.portal-hero {
  min-height: 420px !important;
  grid-template-columns: minmax(320px, 1.1fr) minmax(240px, .7fr) !important;
}
.portal-grid,
.tool-directory,
.pricing-grid {
  gap: 12px !important;
}
.portal-card,
.tool-directory-card,
.pricing-grid article,
.faq-list details,
.content-band,
.crowd-order-banner {
  border-radius: 18px !important;
}
.portal-card,
.tool-directory-card {
  min-height: 190px !important;
  padding: 20px !important;
}
.portal-card h2,
.tool-directory-card h2,
.content-band h2 {
  font-size: 23px !important;
}
.crowd-order-banner {
  padding: 24px 28px !important;
  grid-template-columns: minmax(280px, 1fr) auto !important;
}
.crowd-order-banner h2 {
  font-size: clamp(26px, 3vw, 42px) !important;
}
.crowd-order-banner p:not(.eyebrow) {
  margin-top: 10px !important;
}
.article-browser {
  gap: 14px !important;
}
.article-sidebar,
.article-view,
.history-board,
.admin-panel {
  border-radius: 18px !important;
}
.cabinet-menu {
  right: 0 !important;
  left: auto !important;
  border-radius: 16px !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.42) !important;
}
@media (max-width: 1100px) {
  .site-nav {
    grid-template-columns: 1fr !important;
  }
  .brand,
  .site-links,
  .nav-meta {
    justify-self: stretch !important;
  }
  .brand { justify-content: center; }
  .nav-meta { justify-content: center !important; flex-wrap: wrap; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .app-shell,
  .shell {
    width: calc(100vw - 16px) !important;
    padding-top: 8px !important;
  }
  .site-nav {
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  .site-links {
    justify-content: flex-start !important;
  }
  .nav-meta {
    justify-content: space-between !important;
    align-items: center !important;
  }
  .online-pill {
    min-width: 86px !important;
  }
  .topbar,
  .hero,
  .portal-hero,
  .page-hero,
  .news-hero {
    padding: 20px !important;
    border-radius: 18px !important;
  }
  .topbar,
  .hero,
  .auth-panel,
  .crowd-order-banner,
  .content-band,
  .portal-hero,
  .article-browser {
    grid-template-columns: 1fr !important;
  }
  .topbar h1,
  .hero h1,
  .portal-hero h1,
  .page-hero h1,
  .news-hero h1 {
    font-size: clamp(30px, 9vw, 42px) !important;
  }
  .actions,
  .toolbar,
  .hero .toolbar,
  .auth-actions,
  .manual-export-actions,
  .pasteActions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .guide-panel {
    grid-template-columns: 1fr !important;
  }
  .guide-panel span {
    display: block !important;
  }
  .portal-grid,
  .tool-directory,
  .pricing-grid,
  .mini-points,
  .landing-tools {
    grid-template-columns: 1fr !important;
  }
  .portal-card.featured {
    grid-column: auto !important;
  }
  .table-wrap table,
  .resultTable {
    min-width: 860px !important;
  }
  .cabinet-menu {
    left: 8px !important;
    right: 8px !important;
  }
}

/* v70 premium light SaaS system */
:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: rgba(255, 255, 255, .94);
  --panel-strong: #ffffff;
  --ink: #14212f;
  --muted: #647487;
  --line: rgba(24, 40, 56, .12);
  --line-strong: rgba(24, 40, 56, .2);
  --accent: #0f9f8f;
  --accent-2: #0ea5b7;
  --green: #138a55;
  --red: #cf3448;
  --amber: #b47605;
  --shadow: 0 14px 38px rgba(25, 40, 60, .08);
}
html,
body {
  background: #f6f8fb !important;
  color: var(--ink) !important;
}
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(15,159,143,.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(14,165,183,.08), transparent 30%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 46%, #eef4f6 100%) !important;
}
body::before,
body::after {
  opacity: .22 !important;
  filter: blur(44px) saturate(1.1) !important;
}
.site-nav,
.topbar,
.hero,
.guide-panel,
.control-band,
.status-strip,
.table-wrap,
.gridWrap,
.stats,
.historyPanel,
.history-board,
.auth-panel,
.admin-panel,
.portal-hero,
.page-hero,
.news-hero,
.content-band,
.portal-card,
.tool-directory-card,
.pricing-grid article,
.faq-list details,
.article-sidebar,
.article-view,
.crowd-order-banner,
.landing-hero,
.landing-tools,
.stop-results,
.resultWrap {
  background: rgba(255,255,255,.92) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(10px) saturate(1.02) !important;
}
.site-nav {
  background: rgba(255,255,255,.9) !important;
}
.brand-name b,
h1,
h2,
h3,
th,
td,
label,
.tab,
.site-links a,
.cabinet summary {
  color: var(--ink) !important;
}
.brand-name i,
.eyebrow,
.portal-card span,
.tool-directory-card span {
  color: var(--accent) !important;
  text-shadow: none !important;
}
.brand-mark {
  background: linear-gradient(145deg, #d8fbf7, #bfeff6) !important;
  box-shadow: 0 10px 24px rgba(15,159,143,.18), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.site-links,
.lang-switcher,
.tabs {
  background: #eef4f6 !important;
  border-color: rgba(24,40,56,.10) !important;
}
.site-links a {
  color: #526273 !important;
}
.site-links a:hover,
.site-links a.active {
  color: #083b37 !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(25,40,60,.07) !important;
}
.online-pill {
  color: #0f513f !important;
  background: #e9f9f2 !important;
  border-color: rgba(19,138,85,.20) !important;
  box-shadow: none !important;
}
.online-pill small { color: #4f7b68 !important; }
.online-dot { background: #19a96b !important; }
.lang-switcher button {
  color: #667789 !important;
}
.lang-switcher button.active,
.tab.active,
.primary,
.nav-cta,
.crowd-cta,
.open-url-btn,
.guide-panel b,
.table-wrap::before,
.gridWrap::before {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 10px 22px rgba(15,159,143,.18) !important;
}
button,
a.tool-link,
select {
  color: var(--ink) !important;
  background: #ffffff !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}
button:hover,
a.tool-link:hover {
  background: #f8fbfc !important;
  border-color: rgba(15,159,143,.28) !important;
  box-shadow: 0 8px 18px rgba(25,40,60,.08) !important;
}
button:disabled {
  color: #9aa6b2 !important;
  background: #eef2f5 !important;
}
input,
textarea,
select {
  color: var(--ink) !important;
  background: #ffffff !important;
  border-color: rgba(24,40,56,.14) !important;
}
input::placeholder,
textarea::placeholder { color: #9ba8b6 !important; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(15,159,143,.55) !important;
  box-shadow: 0 0 0 4px rgba(15,159,143,.10) !important;
}
.lead,
.landing-hero .lead,
.portal-card p,
.tool-directory-card p,
.content-band p,
.pricing-grid p,
.faq-list p,
.guide-panel span,
.auth-panel p,
.history-hero span,
.admin-head span,
.manual-export span,
.article-view,
.article-sidebar,
.status-strip,
.stats,
.stop-summary {
  color: var(--muted) !important;
}
.topbar,
.hero,
.portal-hero,
.page-hero,
.news-hero,
.crowd-order-banner {
  background:
    radial-gradient(circle at 88% 12%, rgba(15,159,143,.10), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7fbfc) !important;
}
.product-preview {
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(25,40,60,.10);
}
.preview-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.preview-toolbar span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.preview-toolbar button {
  min-height: 34px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
}
.preview-table {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}
.preview-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr 84px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(24,40,56,.08);
  border-radius: 12px;
  color: #435466;
  background: #f8fafc;
  font-size: 13px;
}
.preview-head {
  color: #718195;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  background: #eef4f6;
}
.preview-row b {
  justify-self: start;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}
.preview-row .ok { color: #0f6d46; background: #e7f7ef; }
.preview-row .warn { color: #8a5b00; background: #fff4d8; }
table {
  background: #ffffff !important;
}
th {
  background: #f2f6f8 !important;
  color: #526273 !important;
}
td {
  color: #1f2f3e !important;
  border-color: rgba(24,40,56,.10) !important;
}
tr:hover td { background: #f8fbfc !important; }
.miniBadge.ok,
.badge-ok {
  color: #0f6d46 !important;
  background: #e7f7ef !important;
}
.miniBadge.problem,
.badge-problem {
  color: #9b2333 !important;
  background: #fdecef !important;
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer div {
  display: grid;
  gap: 4px;
}
.site-footer strong {
  color: var(--ink);
  font-size: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}
.site-footer a:hover { color: var(--accent); }
*:focus-visible {
  outline: 3px solid rgba(15,159,143,.28) !important;
  outline-offset: 2px !important;
}
@media (max-width: 760px) {
  .product-preview { min-height: auto; padding: 12px; }
  .preview-row { grid-template-columns: 1fr; gap: 4px; padding: 10px; }
  .preview-toolbar { grid-template-columns: 34px 1fr; }
  .preview-toolbar button { grid-column: 1 / -1; width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

/* v71 responsive header + dark theme */
:root {
  --theme-panel: rgba(255, 255, 255, .86);
  --theme-panel-strong: rgba(255, 255, 255, .94);
  --theme-field: #ffffff;
  --theme-soft: rgba(229, 249, 247, .72);
}
.site-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  overflow: visible !important;
}
.brand { flex: 0 0 auto !important; }
.site-links {
  flex: 1 1 430px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-content: center !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
.site-links::-webkit-scrollbar { display: none; }
.site-links a { white-space: nowrap !important; flex: 0 0 auto !important; }
.nav-meta {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.online-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
}
.online-pill small { display: inline !important; white-space: nowrap !important; line-height: 1 !important; }
.theme-switcher {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(25, 122, 115, .22);
  background: rgba(255,255,255,.78);
  color: #173238;
  font: 900 12px/1 "Inter", "Segoe UI", Arial, sans-serif;
  padding: 0 12px;
  box-shadow: 0 8px 22px rgba(20, 60, 70, .08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.theme-switcher:hover { transform: translateY(-1px); border-color: rgba(20,184,166,.45); }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061214;
  --panel: rgba(9, 21, 26, .9);
  --panel-2: rgba(12, 30, 36, .82);
  --theme-panel: rgba(9, 21, 26, .86);
  --theme-panel-strong: rgba(10, 25, 31, .94);
  --theme-field: #071014;
  --theme-soft: rgba(15, 65, 62, .32);
  --ink: #f5fbff;
  --muted: #a8bac4;
  --line: rgba(124, 221, 216, .18);
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}
html[data-theme="dark"] body {
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 10% 10%, rgba(38, 210, 196, .20), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(97, 213, 255, .14), transparent 28%),
    linear-gradient(135deg, #061214 0%, #082322 54%, #050b10 100%) !important;
}
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .guide-panel,
html[data-theme="dark"] .control-band,
html[data-theme="dark"] .status-strip,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .gridWrap,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .historyPanel,
html[data-theme="dark"] .history-board,
html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .crowd-order-banner,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .news-card {
  background: var(--theme-panel) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--theme-field) !important;
  color: var(--ink) !important;
  border-color: rgba(124, 221, 216, .24) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #748995 !important; }
html[data-theme="dark"] table,
html[data-theme="dark"] .results-table,
html[data-theme="dark"] .matrix-table {
  background: rgba(5, 13, 17, .62) !important;
  color: var(--ink) !important;
}
html[data-theme="dark"] th {
  background: rgba(4, 11, 15, .9) !important;
  color: #dce8ee !important;
}
html[data-theme="dark"] td { border-color: rgba(124, 221, 216, .13) !important; }
html[data-theme="dark"] .theme-switcher {
  background: rgba(15, 37, 43, .88);
  color: #dffbff;
  border-color: rgba(124,221,216,.22);
}
@media (max-width: 1220px) {
  .site-nav { align-items: stretch !important; }
  .site-links {
    order: 3;
    flex-basis: 100% !important;
    justify-content: flex-start !important;
  }
  .nav-meta { margin-left: auto !important; }
}
@media (max-width: 640px) {
  .site-nav { padding: 12px !important; border-radius: 20px !important; }
  .brand-name { font-size: 16px !important; }
  .nav-meta {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  .lang-switcher,
  .theme-switcher,
  .online-pill,
  .cabinet summary { min-height: 38px !important; }
}

/* v72 commercial UI normalization */
html:not([data-theme="dark"]) {
  --bg: #eef9f8;
  --panel: rgba(255,255,255,.86);
  --panel-2: rgba(255,255,255,.94);
  --ink: #172433;
  --muted: #617286;
  --line: rgba(34, 75, 86, .13);
  --accent: #18b7ad;
  --accent-2: #61d5ff;
  --green: #20c878;
  --theme-panel: rgba(255,255,255,.88);
  --theme-panel-strong: rgba(255,255,255,.96);
  --theme-field: #ffffff;
}
html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 12% 8%, rgba(24,183,173,.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(97,213,255,.22), transparent 32%),
    linear-gradient(135deg, #f6fcfb 0%, #eaf7f6 48%, #f9fcff 100%) !important;
  color: var(--ink) !important;
}
html:not([data-theme="dark"]) .site-nav,
html:not([data-theme="dark"]) .topbar,
html:not([data-theme="dark"]) .hero,
html:not([data-theme="dark"]) .page-hero,
html:not([data-theme="dark"]) .news-hero,
html:not([data-theme="dark"]) .crowd-order-banner,
html:not([data-theme="dark"]) .content-band,
html:not([data-theme="dark"]) .guide-panel,
html:not([data-theme="dark"]) .control-band,
html:not([data-theme="dark"]) .status-strip,
html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .gridWrap,
html:not([data-theme="dark"]) .stats,
html:not([data-theme="dark"]) .historyPanel,
html:not([data-theme="dark"]) .history-board,
html:not([data-theme="dark"]) .auth-panel,
html:not([data-theme="dark"]) .admin-panel,
html:not([data-theme="dark"]) .article-sidebar,
html:not([data-theme="dark"]) .article-view,
html:not([data-theme="dark"]) .tool-directory-card,
html:not([data-theme="dark"]) .pricing-grid article,
html:not([data-theme="dark"]) .faq-list details,
html:not([data-theme="dark"]) .landing-hero,
html:not([data-theme="dark"]) .landing-tools,
html:not([data-theme="dark"]) .news-card,
html:not([data-theme="dark"]) .content-card {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(243,251,251,.84)) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  box-shadow: 0 22px 60px rgba(28, 68, 79, .10) !important;
}
html:not([data-theme="dark"]) .crowd-order-banner,
html:not([data-theme="dark"]) .news-hero,
html:not([data-theme="dark"]) .page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(38,211,200,.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(234,249,248,.82)) !important;
}
html:not([data-theme="dark"]) .article-view p,
html:not([data-theme="dark"]) .article-item small,
html:not([data-theme="dark"]) .lead,
html:not([data-theme="dark"]) .content-band p,
html:not([data-theme="dark"]) .pricing-grid p,
html:not([data-theme="dark"]) .faq-list p,
html:not([data-theme="dark"]) .crowd-order-banner p:not(.eyebrow) {
  color: var(--muted) !important;
}
html:not([data-theme="dark"]) .article-view .article-summary,
html:not([data-theme="dark"]) .article-kicker span,
html:not([data-theme="dark"]) .article-kicker small,
html:not([data-theme="dark"]) .article-item span,
html:not([data-theme="dark"]) .eyebrow {
  color: #039d9a !important;
}
html:not([data-theme="dark"]) .article-item {
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(34,75,86,.11) !important;
}
html:not([data-theme="dark"]) .article-item.active {
  background: linear-gradient(145deg, rgba(224,250,248,.98), rgba(255,255,255,.96)) !important;
  border-color: rgba(24,183,173,.38) !important;
}
html:not([data-theme="dark"]) input,
html:not([data-theme="dark"]) textarea,
html:not([data-theme="dark"]) select {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(34,75,86,.17) !important;
}
html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder { color: #9aa8b6 !important; }
html:not([data-theme="dark"]) table {
  background: rgba(255,255,255,.96) !important;
  color: var(--ink) !important;
}
html:not([data-theme="dark"]) th {
  background: #edf5f6 !important;
  color: #435568 !important;
}
html:not([data-theme="dark"]) td { color: #223345 !important; }

html[data-theme="dark"] .news-hero,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .crowd-order-banner {
  background:
    radial-gradient(circle at 82% 18%, rgba(38,211,200,.18), transparent 34%),
    linear-gradient(145deg, rgba(11,24,30,.95), rgba(6,14,18,.9)) !important;
}
html[data-theme="dark"] .article-sidebar,
html[data-theme="dark"] .article-view,
html[data-theme="dark"] .content-band,
html[data-theme="dark"] .tool-directory-card,
html[data-theme="dark"] .pricing-grid article,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .landing-hero,
html[data-theme="dark"] .landing-tools,
html[data-theme="dark"] .news-card {
  background: linear-gradient(145deg, rgba(10,24,30,.94), rgba(7,15,20,.86)) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .article-view p,
html[data-theme="dark"] .article-item small,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .content-band p,
html[data-theme="dark"] .pricing-grid p,
html[data-theme="dark"] .faq-list p {
  color: #aebfc9 !important;
}
html[data-theme="dark"] .article-item {
  background: rgba(11,28,34,.84) !important;
  border-color: rgba(124,221,216,.16) !important;
}
html[data-theme="dark"] .article-item.active {
  background: linear-gradient(145deg, rgba(24,183,173,.20), rgba(11,28,34,.92)) !important;
  border-color: rgba(24,183,173,.42) !important;
}

/* v73 SaaS polish: consistent commercial themes */
:root {
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 48px rgba(9, 25, 35, .10);
}

html:not([data-theme="dark"]) {
  --bg: #eef8f8;
  --ink: #172332;
  --muted: #617184;
  --line: rgba(23, 35, 50, .13);
  --accent: #12b6b2;
  --accent-2: #69d9f0;
  --green: #20c985;
  --theme-panel: rgba(255,255,255,.78);
  --theme-panel-strong: rgba(255,255,255,.94);
  --theme-input: #ffffff;
  --theme-row: rgba(255,255,255,.72);
  --theme-row-alt: rgba(242,249,250,.76);
}

html[data-theme="dark"] {
  --bg: #061513;
  --ink: #f4fbfb;
  --muted: #a8bac5;
  --line: rgba(169, 226, 226, .18);
  --accent: #33d2d0;
  --accent-2: #8ee7ff;
  --green: #45df9a;
  --theme-panel: rgba(10, 25, 32, .76);
  --theme-panel-strong: rgba(8, 19, 25, .92);
  --theme-input: rgba(4, 14, 18, .92);
  --theme-row: rgba(7, 22, 25, .82);
  --theme-row-alt: rgba(10, 31, 34, .7);
}

body { color: var(--ink) !important; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; }

html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 8% 10%, rgba(55, 211, 201, .18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(94, 217, 240, .22), transparent 30%),
    linear-gradient(135deg, #f8fcfc 0%, #eef8f8 46%, #e7f4f2 100%) !important;
}

.site-nav, .topbar, .hero, .page-hero, .news-hero, .crowd-order-banner, .landing-hero, .landing-tools, .content-band, .guide-panel, .control-band, .status-strip, .table-wrap, .gridWrap, .stats, .history-board, .historyPanel, .admin-panel, .auth-panel, .article-sidebar, .article-view, .tool-directory-card, .pricing-grid article, .faq-list details, .news-card, .content-card {
  background: var(--theme-panel-strong) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-soft) !important;
}

.topbar, .hero, .page-hero, .news-hero, .crowd-order-banner, .landing-hero {
  background: radial-gradient(circle at 95% 8%, rgba(51, 210, 208, .20), transparent 30%), linear-gradient(135deg, var(--theme-panel-strong), var(--theme-panel)) !important;
}

html[data-theme="dark"] .topbar, html[data-theme="dark"] .hero, html[data-theme="dark"] .page-hero, html[data-theme="dark"] .news-hero, html[data-theme="dark"] .crowd-order-banner, html[data-theme="dark"] .landing-hero {
  background: radial-gradient(circle at 94% 10%, rgba(51, 210, 208, .16), transparent 32%), linear-gradient(135deg, rgba(8, 19, 25, .96), rgba(9, 37, 39, .82)) !important;
}

h1, h2, h3, strong, b, th, label { color: var(--ink) !important; }
p, .lead, .landing-note, .status-strip, .guide-panel span, .content-band p, .article-view p, .article-item small, .faq-list p, .pricing-grid p, .crowd-order-banner p:not(.eyebrow) { color: var(--muted) !important; }
.eyebrow, .article-kicker, .article-item span, .brand-name i { color: #009d99 !important; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .article-kicker, html[data-theme="dark"] .article-item span, html[data-theme="dark"] .brand-name i { color: #69eff0 !important; }

.site-links, .lang-switcher {
  background: rgba(231, 242, 243, .78) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 5px !important;
}

html[data-theme="dark"] .site-links, html[data-theme="dark"] .lang-switcher { background: rgba(5, 15, 20, .78) !important; }
.site-links a, .lang-switcher button, .theme-switcher, .online-pill, .cabinet summary { min-height: 38px !important; color: var(--muted) !important; }
.site-links a.active, .site-links a:hover, .lang-switcher button.active, .theme-switcher:hover, .cabinet[open] summary, .cabinet summary:hover { background: var(--theme-panel-strong) !important; color: var(--ink) !important; }

button, .crowd-cta, .nav-cta { border-radius: 14px !important; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease !important; }
button:hover, .crowd-cta:hover, .nav-cta:hover { transform: translateY(-1px); }

input, textarea, select {
  background: var(--theme-input) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent) !important; }

table { color: var(--ink) !important; font-size: 14px !important; }
thead th { background: color-mix(in srgb, var(--theme-panel-strong) 82%, var(--accent) 8%) !important; color: color-mix(in srgb, var(--ink) 82%, var(--muted)) !important; }
tbody tr { background: var(--theme-row) !important; }
tbody tr:nth-child(even) { background: var(--theme-row-alt) !important; }
td { border-color: var(--line) !important; }

.table-wrap::before, .gridWrap::before, .admin-head span::after { content: none !important; display: none !important; }
.article-view, .article-sidebar, .article-item { background: var(--theme-panel-strong) !important; }
.article-view h1, .article-view h2, .news-hero h1 { color: var(--ink) !important; }
.article-view .article-summary { color: #079aa0 !important; }
html[data-theme="dark"] .article-view .article-summary { color: #7ce8ee !important; }

@media (max-width: 980px) {
  .site-nav { gap: 10px !important; }
  .site-links { width: 100% !important; overflow-x: auto !important; justify-content: flex-start !important; }
  .nav-meta { width: 100% !important; justify-content: space-between !important; }
  .topbar, .hero, .page-hero, .news-hero, .crowd-order-banner { padding: 22px !important; }
  h1 { font-size: clamp(34px, 11vw, 56px) !important; line-height: .96 !important; }
}

/* v74 history/buttons readability */
.history-board {
  padding: 28px !important;
}

.history-grid {
  gap: 18px !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

.history-card {
  min-height: 250px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(243,251,251,.90)) !important;
  border: 1px solid rgba(23,35,50,.13) !important;
  box-shadow: 0 16px 34px rgba(9,25,35,.08) !important;
}

html[data-theme="dark"] .history-card {
  background: linear-gradient(145deg, rgba(12,30,35,.96), rgba(7,17,22,.92)) !important;
  border-color: rgba(169,226,226,.18) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28) !important;
}

.history-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 52px rgba(9,25,35,.12) !important;
}

.history-metrics {
  gap: 10px !important;
}

.history-metrics span {
  background: linear-gradient(145deg, rgba(236,250,249,.95), rgba(255,255,255,.92)) !important;
  border: 1px solid rgba(23,35,50,.10) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

html[data-theme="dark"] .history-metrics span {
  background: linear-gradient(145deg, rgba(14,36,41,.96), rgba(8,20,26,.92)) !important;
  border-color: rgba(169,226,226,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.history-metrics b {
  color: var(--ink) !important;
}

.history-metrics small,
.history-card-top span {
  color: var(--muted) !important;
}

.history-card-top span {
  color: #099d9c !important;
}

html[data-theme="dark"] .history-card-top span {
  color: #69eff0 !important;
}

button:disabled,
button[disabled] {
  cursor: not-allowed !important;
  opacity: .72 !important;
  color: color-mix(in srgb, var(--ink) 58%, var(--muted)) !important;
  background: color-mix(in srgb, var(--theme-panel-strong) 84%, var(--muted) 8%) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] button[disabled] {
  opacity: .66 !important;
  color: rgba(231,248,248,.74) !important;
  background: rgba(19,41,48,.72) !important;
}

.history-card button {
  width: 100% !important;
  min-height: 42px !important;
  background: var(--theme-panel-strong) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}

.history-card button:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--theme-panel-strong)) !important;
}

/* v75 final theme contrast pass */
html:not([data-theme="dark"]) .history-board,
html:not([data-theme="dark"]) .historyPanel,
html:not([data-theme="dark"]) .gridWrap,
html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .stats,
html:not([data-theme="dark"]) .guide-panel,
html:not([data-theme="dark"]) .status-strip {
  background: rgba(255,255,255,.92) !important;
}

html[data-theme="dark"] .history-board,
html[data-theme="dark"] .historyPanel,
html[data-theme="dark"] .gridWrap,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .guide-panel,
html[data-theme="dark"] .status-strip {
  background: rgba(8,19,25,.90) !important;
}

html:not([data-theme="dark"]) .guide-panel article,
html:not([data-theme="dark"]) .history-card,
html:not([data-theme="dark"]) .admin-user {
  background: linear-gradient(145deg, #ffffff, #f4fbfb) !important;
  color: #172332 !important;
}

html[data-theme="dark"] .guide-panel article,
html[data-theme="dark"] .history-card,
html[data-theme="dark"] .admin-user {
  background: linear-gradient(145deg, rgba(13,31,37,.96), rgba(7,17,22,.94)) !important;
  color: #f4fbfb !important;
}

html:not([data-theme="dark"]) .history-metrics span {
  background: #f2fbfa !important;
  color: #172332 !important;
}

html[data-theme="dark"] .history-metrics span {
  background: rgba(8,22,28,.96) !important;
  color: #f4fbfb !important;
}

.history-card button,
.secondary,
.icon-button,
.tool-link {
  color: var(--ink) !important;
}

html:not([data-theme="dark"]) .secondary,
html:not([data-theme="dark"]) .history-card button {
  background: #ffffff !important;
}

html[data-theme="dark"] .secondary,
html[data-theme="dark"] .history-card button {
  background: rgba(13,31,38,.90) !important;
}

/* v76 shared controls polish */
html[data-theme="dark"] button:not(.primary):not(.tab.active):not(.crowd-cta):not(.lang-switcher button.active),
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .tool-link,
html[data-theme="dark"] .theme-switcher,
html[data-theme="dark"] .cabinet summary,
html[data-theme="dark"] .history-card button,
html[data-theme="dark"] .hero .toolbar button:not(#checkBtn):not(#checkAll):not(#processBtn) {
  background: rgba(10, 28, 34, .92) !important;
  color: #e9fbfb !important;
  border-color: rgba(148, 226, 226, .22) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
}

html[data-theme="dark"] button:not(.primary):not(.tab.active):not(.crowd-cta):hover,
html[data-theme="dark"] .secondary:hover,
html[data-theme="dark"] .tool-link:hover,
html[data-theme="dark"] .theme-switcher:hover,
html[data-theme="dark"] .cabinet summary:hover {
  background: rgba(17, 45, 52, .96) !important;
  border-color: rgba(93, 221, 219, .38) !important;
}

html[data-theme="dark"] button:disabled,
html[data-theme="dark"] button[disabled],
html[data-theme="dark"] .hero .toolbar button:disabled {
  background: rgba(14, 31, 37, .72) !important;
  color: rgba(232, 249, 249, .55) !important;
  border-color: rgba(148, 226, 226, .14) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

html:not([data-theme="dark"]) button:disabled,
html:not([data-theme="dark"]) button[disabled] {
  background: rgba(238, 246, 247, .86) !important;
  color: rgba(23, 35, 50, .48) !important;
  opacity: 1 !important;
}

/* v77 tabs theme alignment */
.tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 6px !important;
  margin: 0 0 14px !important;
  border-radius: 18px !important;
  border: 1px solid var(--line) !important;
  background: color-mix(in srgb, var(--theme-panel-strong) 86%, var(--accent) 5%) !important;
  box-shadow: 0 14px 34px rgba(9, 25, 35, .10) !important;
}

.tab {
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

.tab:hover {
  background: color-mix(in srgb, var(--theme-panel-strong) 88%, var(--accent) 10%) !important;
  color: var(--ink) !important;
  transform: translateY(-1px) !important;
}

.tab.active {
  color: #041313 !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(48, 213, 200, .20) !important;
}

html[data-theme="dark"] .tabs {
  background: rgba(7, 20, 25, .94) !important;
  border-color: rgba(148, 226, 226, .20) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] .tab:not(.active) {
  background: rgba(12, 31, 37, .72) !important;
  color: rgba(232, 249, 249, .72) !important;
}

html[data-theme="dark"] .tab:not(.active):hover {
  background: rgba(18, 45, 52, .96) !important;
  color: #f4fbfb !important;
}

/* v78 global language/theme contrast pass */
html[data-theme="dark"] .online-pill {
  background: rgba(8, 27, 33, .94) !important;
  color: #eafdfd !important;
  border-color: rgba(82, 225, 190, .30) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] .online-pill small,
html[data-theme="dark"] .online-pill span:not(.online-dot) {
  color: #eafdfd !important;
}

html:not([data-theme="dark"]) .online-pill {
  background: rgba(231, 255, 246, .92) !important;
  color: #17352f !important;
  border-color: rgba(36, 184, 129, .24) !important;
}

html:not([data-theme="dark"]) .online-pill small,
html:not([data-theme="dark"]) .online-pill span:not(.online-dot) {
  color: #17352f !important;
}

html[data-theme="dark"] .landing-hero,
html[data-theme="dark"] .landing-tools,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .news-hero,
html[data-theme="dark"] .crowd-order-banner,
html[data-theme="dark"] .content-band,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .article-view,
html[data-theme="dark"] .article-sidebar,
html[data-theme="dark"] .tool-directory-card,
html[data-theme="dark"] .portal-card,
html[data-theme="dark"] .pricing-grid article,
html[data-theme="dark"] .faq-list details {
  background: radial-gradient(circle at 88% 8%, rgba(48, 213, 200, .15), transparent 34%),
    linear-gradient(145deg, rgba(10, 30, 37, .97), rgba(6, 17, 23, .96)) !important;
  color: #f4fbfb !important;
  border-color: rgba(134, 226, 224, .18) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] .landing-hero h1,
html[data-theme="dark"] .landing-tools h1,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .news-hero h1,
html[data-theme="dark"] .crowd-order-banner h1,
html[data-theme="dark"] .content-card h2,
html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .news-card h2,
html[data-theme="dark"] .news-card h3,
html[data-theme="dark"] .article-view h1,
html[data-theme="dark"] .article-view h2,
html[data-theme="dark"] .tool-directory-card h2,
html[data-theme="dark"] .portal-card h2,
html[data-theme="dark"] .pricing-grid h2,
html[data-theme="dark"] .faq-list summary {
  color: #f4fbfb !important;
}

html[data-theme="dark"] .landing-hero p,
html[data-theme="dark"] .landing-hero .lead,
html[data-theme="dark"] .landing-tools p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .news-hero p,
html[data-theme="dark"] .crowd-order-banner p:not(.eyebrow),
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .article-view p,
html[data-theme="dark"] .article-sidebar p,
html[data-theme="dark"] .tool-directory-card p,
html[data-theme="dark"] .portal-card p,
html[data-theme="dark"] .pricing-grid p,
html[data-theme="dark"] .faq-list p {
  color: rgba(215, 232, 236, .82) !important;
}

html:not([data-theme="dark"]) .landing-hero,
html:not([data-theme="dark"]) .landing-tools,
html:not([data-theme="dark"]) .page-hero,
html:not([data-theme="dark"]) .news-hero,
html:not([data-theme="dark"]) .crowd-order-banner,
html:not([data-theme="dark"]) .content-band,
html:not([data-theme="dark"]) .content-card,
html:not([data-theme="dark"]) .news-card,
html:not([data-theme="dark"]) .article-view,
html:not([data-theme="dark"]) .article-sidebar,
html:not([data-theme="dark"]) .tool-directory-card,
html:not([data-theme="dark"]) .portal-card,
html:not([data-theme="dark"]) .pricing-grid article,
html:not([data-theme="dark"]) .faq-list details {
  background: radial-gradient(circle at 88% 8%, rgba(48, 213, 200, .14), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(242, 252, 252, .94)) !important;
  color: #172332 !important;
}

html:not([data-theme="dark"]) .landing-hero h1,
html:not([data-theme="dark"]) .landing-tools h1,
html:not([data-theme="dark"]) .page-hero h1,
html:not([data-theme="dark"]) .news-hero h1,
html:not([data-theme="dark"]) .content-card h2,
html:not([data-theme="dark"]) .content-card h3,
html:not([data-theme="dark"]) .news-card h2,
html:not([data-theme="dark"]) .news-card h3,
html:not([data-theme="dark"]) .article-view h1,
html:not([data-theme="dark"]) .article-view h2,
html:not([data-theme="dark"]) .tool-directory-card h2,
html:not([data-theme="dark"]) .portal-card h2,
html:not([data-theme="dark"]) .pricing-grid h2,
html:not([data-theme="dark"]) .faq-list summary {
  color: #172332 !important;
}

html:not([data-theme="dark"]) .landing-hero p,
html:not([data-theme="dark"]) .landing-hero .lead,
html:not([data-theme="dark"]) .landing-tools p,
html:not([data-theme="dark"]) .page-hero p,
html:not([data-theme="dark"]) .news-hero p,
html:not([data-theme="dark"]) .content-card p,
html:not([data-theme="dark"]) .news-card p,
html:not([data-theme="dark"]) .article-view p,
html:not([data-theme="dark"]) .article-sidebar p,
html:not([data-theme="dark"]) .tool-directory-card p,
html:not([data-theme="dark"]) .portal-card p,
html:not([data-theme="dark"]) .pricing-grid p,
html:not([data-theme="dark"]) .faq-list p {
  color: #5b6b7c !important;
}
/* v83: stable language layout */
.site-nav {
  grid-template-columns: minmax(210px, .9fr) minmax(520px, auto) minmax(330px, .9fr) !important;
}

.site-links {
  min-height: 46px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-links::-webkit-scrollbar {
  display: none;
}

.site-links a,
.lang-switcher button,
.theme-switcher,
.online-pill,
.cabinet summary,
.tabs .tab,
.tab {
  white-space: nowrap;
}

.site-links a {
  min-width: max-content;
  justify-content: center;
}

.lang-switcher,
.theme-switcher,
.online-pill,
.cabinet summary {
  flex: 0 0 auto;
}

.theme-switcher {
  min-width: 92px;
  justify-content: center;
}

.online-pill {
  min-width: 112px;
  justify-content: center;
}

.cabinet summary {
  min-width: 112px;
  justify-content: center;
}

.tabs {
  min-height: 52px;
}

.tabs .tab,
.tab {
  min-width: 126px;
  justify-content: center;
}

.topbar .actions button,
.hero .actions button,
.toolbar button,
.tool-hero button {
  min-width: 126px;
  justify-content: center;
  white-space: nowrap;
}

#installBtn {
  min-width: 124px;
}

#exportBtn,
#exportCsv,
#copyBtn {
  min-width: 184px;
}

#clearBtn,
#clearAll {
  min-width: 112px;
}

#runBtn,
#checkAll,
#checkBtn,
#processBtn {
  min-width: 124px;
}

.guide-panel article {
  grid-template-columns: 28px minmax(0, 1fr) !important;
}

.guide-panel strong,
.guide-panel span,
.status-strip,
.stats {
  overflow-wrap: anywhere;
}

.status-strip,
.stats {
  min-height: 42px;
  display: flex;
  align-items: center;
  white-space: normal;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr !important;
  }

  .site-links,
  .nav-meta {
    width: 100%;
  }

  .site-links {
    justify-content: flex-start;
  }

  .nav-meta {
    justify-content: flex-start;
  }

  .topbar,
  .tool-hero,
  .hero {
    align-items: stretch;
  }

  .topbar .actions,
  .tool-hero .actions,
  .hero .actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* v85: dark home hero contrast fix */
html[data-theme="dark"] .portal-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(55, 214, 203, .18), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(99, 222, 255, .10), transparent 30%),
    linear-gradient(145deg, rgba(10, 30, 37, .98), rgba(5, 14, 19, .98)) !important;
  color: #f4fbfb !important;
  border-color: rgba(134, 226, 224, .18) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .32) !important;
}

html[data-theme="dark"] .portal-hero h1,
html[data-theme="dark"] .portal-hero .eyebrow {
  color: #f4fbfb !important;
}

html[data-theme="dark"] .portal-hero .lead {
  color: rgba(215, 232, 236, .84) !important;
}

html[data-theme="dark"] .product-preview {
  background:
    radial-gradient(circle at 100% 0%, rgba(75, 221, 210, .16), transparent 34%),
    linear-gradient(145deg, rgba(13, 31, 38, .96), rgba(7, 17, 22, .96)) !important;
  color: #eafdfd !important;
  border-color: rgba(134, 226, 224, .18) !important;
}

html[data-theme="dark"] .preview-toolbar {
  border-bottom-color: rgba(134, 226, 224, .16) !important;
}

html[data-theme="dark"] .preview-toolbar strong,
html[data-theme="dark"] .preview-row span {
  color: #dfeff2 !important;
}

html[data-theme="dark"] .preview-row {
  background: rgba(8, 22, 28, .86) !important;
  border-color: rgba(134, 226, 224, .14) !important;
}

/* v86: clearer homepage preview badges and branded preview icon */
.preview-toolbar > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    url("/icon.svg") center / 20px 20px no-repeat,
    linear-gradient(135deg, #67e8f9, #2dd4bf) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.38),
    0 12px 30px rgba(20,184,166,.22);
}

.preview-row .ok,
.preview-row .warn {
  border: 1px solid transparent;
  font-weight: 850;
}

html[data-theme="dark"] .preview-row .ok {
  background: rgba(52,211,153,.22) !important;
  border-color: rgba(134,239,172,.28) !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .preview-row .warn {
  background: rgba(251,191,36,.22) !important;
  border-color: rgba(253,230,138,.30) !important;
  color: #fde68a !important;
}

html:not([data-theme="dark"]) .preview-row .ok {
  background: #e7f7ef !important;
  color: #0f6d46 !important;
}

html:not([data-theme="dark"]) .preview-row .warn {
  background: #fff4d8 !important;
  color: #8a5b00 !important;
}

html[data-theme="dark"] .preview-head {
  background: rgba(14, 33, 40, .94) !important;
}
