:root {
  color-scheme: dark;
  --bg: #090e10;
  --panel: #11191c;
  --line: #283438;
  --muted: #91a0a1;
  --text: #edf4ef;
  --green: #c6ed79;
  --green-soft: rgba(198, 237, 121, .12);
  --red: #ff8581;
  --blue: #87d0d1;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body {
  min-width: 320px;
  background:
    radial-gradient(ellipse at 78% -12%, rgba(73, 117, 60, .16), transparent 34rem),
    radial-gradient(ellipse at 8% 82%, rgba(31, 87, 82, .08), transparent 36rem),
    var(--bg);
}
button, input, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; display: block; }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 254px;
  display: flex;
  flex-direction: column;
  padding: 25px 15px 18px;
  background: rgba(12, 17, 19, .96);
  border-right: 1px solid rgba(144, 168, 160, .12);
  backdrop-filter: blur(24px);
}
.sidebar-masthead { padding: 2px 10px 0; }
.sidebar-masthead .brand { gap: 10px; }
.sidebar-masthead .brand-title { font-size: 14px; font-weight: 750; }
.sidebar-masthead .brand-kicker { color: #9aaba6; font-size: 9px; letter-spacing: .12em; }
.sidebar-masthead .radar-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.sidebar-edition {
  display: block;
  margin: 27px 0 0 2px;
  color: #657477;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.sidebar-nav { display: grid; gap: 5px; margin-top: 12px; }
.sidebar-link {
  position: relative;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #93a2a2;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.sidebar-link:hover { color: #e5eee8; background: rgba(255,255,255,.035); transform: translateX(2px); }
.sidebar-link.is-active {
  color: #eaf3dc;
  background: linear-gradient(105deg, rgba(188, 229, 119, .13), rgba(188, 229, 119, .035));
  border-color: rgba(198, 237, 121, .13);
  box-shadow: inset 2px 0 0 var(--green);
}
.nav-icon, .metric-icon, .sidebar-footer-icon, .hero-mini-icon, .hero-cta-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.nav-icon svg, .metric-icon svg, .sidebar-footer-icon svg, .hero-mini-icon svg, .hero-cta-icon svg { display: block; width: 100%; height: 100%; }
.sidebar-link.is-active .nav-icon { color: var(--green); }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 12px 2px;
  color: #788789;
  font-size: 11px;
  border-top: 1px solid rgba(144, 168, 160, .1);
}
.sidebar-footer-icon { color: #a3c66d; width: 16px; height: 16px; }
.app-workspace { min-height: 100vh; margin-left: 254px; min-width: 0; }
.topbar {
  min-height: 72px;
  padding: 0 clamp(22px, 3.5vw, 52px);
  border-bottom: 1px solid rgba(144, 168, 160, .1);
  background: rgba(9, 14, 16, .78);
  backdrop-filter: blur(20px);
}
.topbar-overline { color: #728181; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.topbar-title { margin-top: 3px; color: #d8e2dd; font-size: 13px; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(40vw, 400px);
  padding: 8px 11px;
  border: 1px solid rgba(136, 165, 131, .15);
  border-radius: 999px;
  background: rgba(18, 29, 27, .75);
  color: #9aa9a4;
  font-size: 10px;
  font-weight: 650;
}
.system-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-status.is-unverified .system-status-dot { background: #7d8b8e; box-shadow: none; }
.system-status.is-unverified .system-status-dot::after { display: none; }
.system-status-dot, .hero-signal-dot, .hero-analysis-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(198,237,121,.58);
}
.system-status-dot::after, .hero-signal-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(198,237,121,.42);
  border-radius: 50%;
  animation: status-pulse 2.4s ease-out infinite;
}
.user-area { gap: 10px; }
.user-email { max-width: 190px; color: #9ba8a8; font-size: 11px; }
.user-area .ghost-button { min-height: 34px; padding: 0 11px; border-color: rgba(144,168,160,.15); border-radius: 9px; font-size: 11px; }

.main { width: min(1580px, 100%); margin: 0 auto; padding: 35px clamp(22px, 3.5vw, 52px) 96px; }
.page-heading { align-items: center; margin: 0 0 22px; }
.page-heading .eyebrow { color: #9dbb70; font-size: 9px; letter-spacing: .16em; }
.page-heading h1 { margin-top: 9px; color: #f1f4ef; font-size: clamp(29px, 3vw, 41px); letter-spacing: -.05em; line-height: 1.06; }
.page-heading p { margin: 10px 0 0; color: #8b999a; font-size: 13px; }

#dashboard-content { animation: dashboard-in .36s cubic-bezier(.2,.8,.2,1) both; }
.overview-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  min-height: 294px;
  margin: 25px 0 17px;
  overflow: hidden;
  border: 1px solid rgba(150, 186, 126, .17);
  border-radius: 23px;
  background:
    radial-gradient(circle at 72% 45%, rgba(60, 112, 55, .18), transparent 23rem),
    linear-gradient(115deg, #151e1c 0%, #101816 55%, #101917 100%);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .19), inset 0 1px rgba(255,255,255,.025);
}
.overview-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background-image: radial-gradient(rgba(202, 235, 143, .19) .7px, transparent .7px);
  background-size: 19px 19px;
  mask-image: linear-gradient(90deg, transparent 28%, #000 100%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 37px clamp(24px, 3vw, 42px); }
.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(198,237,121,.2);
  border-radius: 999px;
  background: rgba(183,218,123,.055);
  color: #bed597;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-signal-dot { width: 6px; height: 6px; }
.hero-title { max-width: 560px; margin: 19px 0 9px; color: #f0f5ee; font-size: clamp(27px, 3.05vw, 39px); font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.hero-description { max-width: 500px; margin: 0; color: #98a6a2; font-size: 13px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 23px; }
.hero-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(220,248,173,.7);
  border-radius: 10px;
  background: var(--green);
  color: #152012;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(157, 204, 90, .13);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .22s ease;
}
.hero-cta:hover { transform: translateY(-2px); background: #d1f38f; box-shadow: 0 12px 30px rgba(157, 204, 90, .22); }
.hero-cta:active { transform: translateY(0) scale(.98); }
.hero-cta-icon { width: 16px; height: 16px; }
.hero-footnote { display: inline-flex; align-items: center; gap: 8px; color: #8d9b96; font-size: 11px; }
.hero-footnote::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #64776a; }
.hero-visual {
  position: relative;
  min-height: 294px;
  overflow: hidden;
  border-left: 1px solid rgba(190, 222, 150, .07);
  background: radial-gradient(ellipse at 50% 50%, rgba(57, 98, 48, .18), rgba(18, 28, 23, .02) 60%, transparent 75%);
}
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #141d1b 0, transparent 29%); pointer-events: none; }
.hero-radar-art { position: absolute; width: min(100%, 380px); height: 100%; max-height: 360px; inset: 50% 0 auto 50%; object-fit: contain; opacity: .79; transform: translate(-50%,-50%) rotate(-4deg); filter: saturate(.8) contrast(1.04); animation: radar-drift 15s ease-in-out infinite alternate; }
.hero-float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 11px 14px;
  border: 1px solid rgba(221, 238, 221, .16);
  border-radius: 12px;
  background: rgba(16, 25, 23, .78);
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(14px);
}
.hero-float-main { top: 25px; right: 19px; min-width: 105px; }
.hero-float-label { color: #9cae9d; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.hero-float-value { color: #eef7e7; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.hero-float-secondary { left: 14px; bottom: 42px; display: flex; align-items: center; gap: 8px; color: #d4e0d4; font-size: 10px; font-weight: 700; }
.hero-mini-icon { width: 16px; height: 16px; color: var(--green); }
.hero-analysis-caption { position: absolute; z-index: 2; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 7px; color: #92a19a; font-size: 9px; }
.hero-analysis-dot { width: 5px; height: 5px; }

.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0 0 14px; }
.metric {
  position: relative;
  min-height: 126px;
  padding: 17px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(151, 174, 166, .12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20,29,31,.96), rgba(15,22,24,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  animation: card-in .42s cubic-bezier(.2,.8,.2,1) both;
  transition: border-color .22s ease, background .22s ease, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
.metrics .metric:nth-child(2) { animation-delay: 35ms; }
.metrics .metric:nth-child(3) { animation-delay: 70ms; }
.metrics .metric:nth-child(4) { animation-delay: 105ms; }
.metrics .metric:nth-child(5) { animation-delay: 140ms; }
.metrics .metric:nth-child(6) { animation-delay: 175ms; }
.metric:hover { border-color: rgba(198,237,121,.23); background: linear-gradient(145deg, rgba(25,36,36,.98), rgba(17,26,27,.99)); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.17); }
.metric-action { cursor: pointer; }
.metric-action:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.metric-label { color: #9eadaa; font-size: 10px; letter-spacing: .08em; }
.metric-icon { width: 28px; height: 28px; padding: 6px; border: 1px solid rgba(198,237,121,.16); border-radius: 9px; background: rgba(198,237,121,.07); color: #bedc8b; }
.metric-value { margin-top: 10px; color: #ecf3ed; font-size: 27px; font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.metric:first-child .metric-value, .metrics .metric:first-child .metric-value { color: var(--green); }
.metric-note { max-width: 100%; margin-top: 8px; color: #7f8d8f; font-size: 10px; line-height: 1.45; }
.metrics .metric:nth-child(2) .metric-icon { color: #8ed2d4; border-color: rgba(135,208,209,.2); background: rgba(135,208,209,.07); }
.metrics .metric:nth-child(3) .metric-icon { color: #aab7bd; border-color: rgba(170,183,189,.17); background: rgba(170,183,189,.06); }
.metrics .metric:nth-child(6) .metric-icon { color: #f2bd76; border-color: rgba(242,189,118,.2); background: rgba(242,189,118,.08); }

.overview-bento { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(300px, .82fr); gap: 12px; margin: 0 0 14px; }
.profitability-summary, .autopublish-control {
  min-height: 290px;
  padding: 22px 23px;
  border: 1px solid rgba(151,174,166,.13);
  border-radius: 17px;
  background: linear-gradient(148deg, rgba(19,28,30,.98), rgba(14,21,23,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.profitability-summary { display: flex; flex-direction: column; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.profitability-summary:hover { border-color: rgba(198,237,121,.24); transform: translateY(-1px); }
.analysis-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.analysis-heading .eyebrow { color: #a3c276; font-size: 9px; }
.analysis-heading h2 { margin: 6px 0 0; color: #e6eee8; font-size: 17px; letter-spacing: -.025em; }
.analysis-period { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(148,169,161,.12); border-radius: 999px; color: #859392; font-size: 9px; }
.analysis-topline { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 20px 0 16px; }
.analysis-total { display: flex; align-items: baseline; gap: 10px; }
.analysis-total strong { color: #edf5e8; font-size: 32px; letter-spacing: -.05em; line-height: 1; }
.analysis-total span { color: #8e9c99; font-size: 10px; }
.analysis-help { max-width: 250px; margin: 0; color: #81908d; font-size: 10px; line-height: 1.5; text-align: right; }
.analysis-rows { display: grid; gap: 12px; }
.analysis-row-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.analysis-name { color: #a8b4ae; font-size: 10px; }
.analysis-count { color: #dce6df; font-size: 10px; font-weight: 750; }
.analysis-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(216,231,222,.08); }
.analysis-fill { display: block; height: 100%; min-width: 0; border-radius: inherit; transition: width .75s cubic-bezier(.2,.8,.2,1); }
.analysis-good .analysis-fill { background: linear-gradient(90deg,#86b953,var(--green)); }
.analysis-cool .analysis-fill { background: linear-gradient(90deg,#458c92,#83cdcf); }
.analysis-warm .analysis-fill { background: linear-gradient(90deg,#b17b3b,#ecc37c); }
.analysis-neutral .analysis-fill { background: linear-gradient(90deg,#5e6a70,#a1afb3); }
.analysis-footer { margin-top: auto; padding-top: 16px; color: #73817f; font-size: 9px; }
.autopublish-control { display: flex; flex-direction: column; align-items: flex-start; background: radial-gradient(circle at 100% 0, rgba(81,120,56,.14), transparent 17rem), linear-gradient(145deg, rgba(20,30,27,.98), rgba(14,21,23,.98)); }
.autopublish-control .metric-label { color: #a6c476; font-size: 9px; letter-spacing: .11em; }
.autopublish-control .metric-value { margin-top: 20px; font-size: 28px; }
.autopublish-control .metric-note { max-width: 360px; margin-top: 10px; font-size: 10px; line-height: 1.65; }
.autopublish-control .primary-button, .autopublish-control .ghost-button { width: auto; min-height: 37px; margin-top: auto; padding: 0 13px; border-radius: 9px; font-size: 10px; }
.autopublish-control .primary-button { background: var(--green); }
.autopublish-control .ghost-button { border-color: rgba(242,189,118,.2); color: #e5c18b; }

.health-panel, .publication-watch {
  margin: 13px 0;
  padding: 20px 21px;
  border: 1px solid rgba(151,174,166,.12);
  border-radius: 17px;
  background: rgba(16,24,26,.9);
  box-shadow: inset 0 1px rgba(255,255,255,.02);
  scroll-margin-top: 92px;
}
.health-header { align-items: center; margin-bottom: 14px; }
.health-header .eyebrow, .publication-watch-header .eyebrow { color: #9cb86e; font-size: 9px; }
.health-header h2, .publication-watch-header h2 { margin-top: 5px; color: #e5ece7; font-size: 16px; letter-spacing: -.025em; }
.health-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 9px; }
.health-card { border-color: rgba(151,174,166,.12); border-radius: 12px; background: rgba(22,32,34,.72); transition: border-color .2s ease, background .2s ease; }
.health-card:hover, .health-card[open] { border-color: rgba(135,208,209,.23); background: rgba(25,37,38,.92); }
.health-card-title strong { color: #dce6df; font-size: 11px; }
.health-details, .health-next { color: #8a9997; }
.health-next { line-height: 1.5; }
.health-errors { color: #aeb9b4; }
.health-card .secondary-button { min-height: 32px; margin-top: 10px; border-radius: 8px; font-size: 10px; }

.publication-watch { padding: 22px; }
.publication-watch-header { margin-bottom: 14px; }
.publication-watch-summary { gap: 6px; }
.watch-pill { min-height: 28px; padding: 5px 9px; border: 1px solid transparent; font-size: 9px; transition: transform .18s ease, filter .18s ease; }
.watch-pill:hover { transform: translateY(-1px); filter: brightness(1.12); }
.watch-critical { color: #ff9a94; background: rgba(255,122,122,.1); }
.watch-warning { color: #efc783; background: rgba(255,183,77,.09); }
.watch-stale { color: #c2b3ea; background: rgba(162,128,255,.09); }
.watch-healthy { color: #c6ed79; background: rgba(198,237,121,.09); }
.publication-watch-store { margin-top: 14px; }
.publication-protection-actions { gap: 7px; margin-top: 12px; }
.publication-protection-actions .secondary-button { min-height: 34px; border-radius: 9px; font-size: 10px; }
.publication-protection-actions .primary-button { width: auto; min-height: 34px; margin-top: 0; border-radius: 9px; font-size: 10px; }
.publication-protection-row { border-color: rgba(151,174,166,.13); border-radius: 12px; background: rgba(20,30,31,.64); transition: border-color .18s ease; }
.publication-protection-row[open] { border-color: rgba(135,208,209,.24); }
.publication-protection-title { padding: 2px; color: #dce6df; }
.publication-protection-title strong { font-size: 11px; }
.publication-protection-detail { color: #a2b1aa; }
.publication-empty { padding: 16px 18px; border: 1px dashed rgba(151,174,166,.19); border-radius: 11px; color: #8a9997; font-size: 11px; line-height: 1.55; }

.filter-panel {
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 9px;
  margin-top: 16px;
  padding: 15px;
  border-color: rgba(151,174,166,.12);
  border-radius: 15px;
  background: rgba(17,25,27,.88);
  box-shadow: none;
}
.filter-heading { grid-column: 1 / -1; padding: 1px 2px 3px; }
.filter-heading h2 { margin: 0; color: #e5ece7; font-size: 15px; letter-spacing: -.02em; }
.filter-heading p { margin: 4px 0 0; color: #7f8d8c; font-size: 10px; }
.search-wrap { grid-column: 1 / -1; }
.search-icon { width: 17px; height: 17px; color: #81918f; }
.search-wrap .input { min-height: 42px; border-color: rgba(151,174,166,.14); border-radius: 10px; background: rgba(8,13,15,.8); }
.search-icon { color: #a0b0aa; }
.input, .select { min-height: 38px; border-color: rgba(151,174,166,.14); border-radius: 9px; background-color: #101719; color: #cbd7d0; font-size: 10px; }
.input:hover, .select:hover { border-color: rgba(198,237,121,.35); }
.filter-reset { min-height: 38px; border-radius: 9px; font-size: 10px; }
.results-bar { margin: 20px 2px 10px; }
.results-section { scroll-margin-top: 92px; }
.results-heading { margin: 24px 2px 0; }
.results-heading .eyebrow { color: #9cb86e; font-size: 9px; }
.results-heading h2 { margin: 6px 0 4px; color: #e8efea; font-size: 20px; letter-spacing: -.035em; }
.results-heading p { margin: 0; color: #83918f; font-size: 10px; }
.results-count { color: #8e9b99; font-size: 11px; }
.results-count strong { color: #e6eee8; }
.bulk-actions { border-color: rgba(151,174,166,.12); border-radius: 12px; background: rgba(16,24,26,.83); }
.bulk-actions .secondary-button, .bulk-actions .ghost-button { min-height: 34px; border-radius: 8px; font-size: 10px; }
.table-wrap { border-color: rgba(151,174,166,.13); border-radius: 15px; background: rgba(15,22,24,.92); box-shadow: 0 16px 42px rgba(0,0,0,.17); }
.opportunity-table { min-width: 1160px; }
.opportunity-table th { position: sticky; top: 72px; z-index: 2; padding: 13px 14px; border-bottom: 1px solid rgba(151,174,166,.1); background: #151e20; color: #8c9c98; font-size: 9px; letter-spacing: .1em; }
.opportunity-table td { padding: 15px 14px; border-top-color: rgba(151,174,166,.085); }
.opportunity-table tbody tr { transition: background .18s ease; }
.opportunity-table tbody tr:hover { background: rgba(188,229,119,.035); }
.product-name { color: #e5ece7; font-size: 11px; }
.product-meta { color: #82918f; font-size: 10px; line-height: 1.5; }
.opportunity-kind, .lifecycle-pill { font-size: 9px; }
.current-price { color: #f2f5ef; font-size: 13px; }
.discount-pill { min-width: 54px; padding: 6px 8px; font-size: 10px; }
.status-select { min-height: 34px; border-color: rgba(151,174,166,.16); border-radius: 8px; background: #101719; font-size: 10px; }
.product-link { color: #b6c5bd; font-size: 10px; }
.quick-status-button { width: 31px; height: 31px; border-radius: 8px; }
.empty-state, .error-state, .loading-state { border-color: rgba(151,174,166,.13); border-radius: 16px; background: rgba(17,25,27,.8); }
.state-icon { color: var(--green); }
.spinner { border-color: rgba(198,237,121,.16); border-top-color: var(--green); }
.toast { border-color: rgba(151,174,166,.18); border-radius: 12px; background: #182224; color: #e6eee8; }

.publication-card { border-color: rgba(151,174,166,.16); border-radius: 20px; background: #11191c; }
.publication-info, .publication-editor, .publication-costs, .publication-warning, .publication-validation, .publication-success { border-color: rgba(151,174,166,.14); border-radius: 12px; background: rgba(22,32,34,.8); }
.publication-info-value { color: #e6eee8; }
.publication-editor-row .primary-button, .publication-actions .primary-button { width: auto; margin-top: 0; }
.publication-textarea { min-height: 92px; }

@keyframes dashboard-in { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(9px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes radar-drift { from { transform: translate(-50%,-50%) rotate(-4deg) scale(1); } to { transform: translate(-50%,-50%) rotate(1deg) scale(1.035); } }
@keyframes status-pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

@media (max-width: 1180px) {
  .sidebar { width: 224px; }
  .app-workspace { margin-left: 224px; }
  .overview-hero { grid-template-columns: minmax(0,1.15fr) minmax(245px,.85fr); }
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric { padding: 15px; }
  .overview-bento { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); }
}
@media (max-width: 900px) {
  .sidebar { width: 74px; align-items: center; padding: 18px 8px; }
  .sidebar-masthead { padding: 0; }
  .sidebar-masthead .brand { justify-content: center; }
  .sidebar-masthead .brand > div:last-child, .sidebar-edition, .sidebar-link-label, .sidebar-footer span { display: none; }
  .sidebar-nav { width: 100%; gap: 8px; margin-top: 28px; }
  .sidebar-link { width: 54px; height: 48px; justify-content: center; padding: 0; }
  .sidebar-link.is-active { box-shadow: inset 0 2px 0 var(--green); }
  .sidebar-link .nav-icon { width: 21px; height: 21px; }
  .sidebar-footer { justify-content: center; padding: 14px 0 0; }
  .app-workspace { margin-left: 74px; }
  .overview-hero { grid-template-columns: minmax(0,1fr) 255px; }
  .hero-copy { padding: 30px 25px; }
  .hero-title { font-size: 30px; }
  .hero-visual { min-height: 280px; }
  .overview-bento { grid-template-columns: 1fr; }
  .autopublish-control { min-height: 230px; }
  .filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 75px; }
  .app-shell { display: block; }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(151,174,166,.16);
    background: rgba(11,16,18,.96);
    backdrop-filter: blur(22px);
  }
  .sidebar-masthead, .sidebar-footer { display: none; }
  .sidebar-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; gap: 4px; margin: 0; }
  .sidebar-link {
    width: auto;
    height: 54px;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    border-radius: 10px;
    font-size: 8px;
    line-height: 1;
  }
  .sidebar-link.is-active { box-shadow: inset 0 2px 0 var(--green); }
  .sidebar-link-label { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-link .nav-icon { width: 18px; height: 18px; }
  .app-workspace { width: 100%; min-height: 100vh; margin: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 60px; padding: 0 16px; }
  .topbar-overline { font-size: 8px; }
  .topbar-title { font-size: 12px; }
  .topbar-actions { gap: 8px; }
  .system-status { max-width: 135px; padding: 7px 8px; font-size: 8px; }
  .user-area { gap: 0; }
  .user-email { display: none; }
  .user-area .ghost-button { min-height: 31px; padding: 0 8px; font-size: 9px; }
  .main { padding: 24px 15px 24px; }
  .page-heading { align-items: start; margin-bottom: 17px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { max-width: 330px; font-size: 11px; line-height: 1.55; }
  .overview-hero { grid-template-columns: 1fr; margin: 19px 0 12px; border-radius: 17px; }
  .hero-copy { padding: 23px 20px 20px; }
  .hero-title { max-width: 420px; margin-top: 16px; font-size: 27px; }
  .hero-description { font-size: 11px; }
  .hero-actions { gap: 11px; margin-top: 17px; }
  .hero-cta { min-height: 39px; font-size: 10px; }
  .hero-footnote { font-size: 9px; }
  .hero-visual { min-height: 195px; border-top: 1px solid rgba(190,222,150,.07); border-left: 0; }
  .hero-visual::after { background: linear-gradient(180deg, #151e1c 0, transparent 25%); }
  .hero-radar-art { width: 220px; max-height: 235px; left: 51%; }
  .hero-float-main { top: 13px; right: 12px; padding: 8px 10px; }
  .hero-float-label { font-size: 7px; }
  .hero-float-value { font-size: 19px; }
  .hero-float-secondary { left: 10px; bottom: 33px; padding: 8px 10px; font-size: 9px; }
  .hero-analysis-caption { right: 11px; bottom: 11px; font-size: 8px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
  .metric { min-height: 112px; padding: 12px; border-radius: 13px; }
  .metric-label { max-width: 122px; font-size: 8px; line-height: 1.35; }
  .metric-icon { width: 24px; height: 24px; padding: 5px; border-radius: 8px; }
  .metric-value { margin-top: 9px; font-size: 23px; }
  .metric-note { margin-top: 6px; font-size: 8px; }
  .overview-bento { gap: 8px; margin-bottom: 10px; }
  .profitability-summary, .autopublish-control { min-height: 0; padding: 16px; border-radius: 14px; }
  .analysis-heading h2 { font-size: 15px; }
  .analysis-period { font-size: 8px; }
  .analysis-topline { align-items: start; flex-direction: column; gap: 7px; margin: 16px 0 13px; }
  .analysis-total strong { font-size: 29px; }
  .analysis-help { max-width: none; text-align: left; font-size: 9px; }
  .analysis-rows { gap: 11px; }
  .analysis-name, .analysis-count { font-size: 9px; }
  .analysis-footer { margin-top: 14px; padding-top: 13px; font-size: 8px; }
  .autopublish-control .metric-value { margin-top: 14px; font-size: 24px; }
  .autopublish-control .metric-note { margin-bottom: 17px; font-size: 9px; }
  .health-panel, .publication-watch { margin: 9px 0; padding: 15px; border-radius: 14px; }
  .health-grid { grid-template-columns: 1fr; }
  .health-header h2, .publication-watch-header h2 { font-size: 15px; }
  .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 12px; }
  .filter-heading h2 { font-size: 14px; }
  .filter-heading p { font-size: 9px; }
  .search-wrap { grid-column: 1 / -1; }
  .filter-panel .select { min-width: 0; padding: 0 8px; font-size: 9px; }
  .filter-reset { grid-column: 1 / -1; }
  .results-bar { align-items: start; gap: 5px; margin-top: 16px; }
  .bulk-actions { align-items: stretch; padding: 9px; }
  .bulk-status-buttons { width: 100%; margin-left: 0; }
  .bulk-status-buttons button { flex: 1 1 30%; padding: 0 6px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .opportunity-table { min-width: 0; }
  .opportunity-table tbody { gap: 9px; }
  .opportunity-table tr { gap: 13px 10px; padding: 14px; border-color: rgba(151,174,166,.13); border-radius: 13px; background: #11191c; }
  .opportunity-table td::before { color: #82918f; font-size: 8px; }
  .product-name { font-size: 10px; }
  .current-price { font-size: 12px; }
  .discount-pill { min-width: 46px; padding: 5px 6px; font-size: 9px; }
  .product-status-inline { gap: 6px; }
  .product-status-label { font-size: 8px; }
  .quick-status-button { width: 28px; height: 28px; }
  .publication-watch-summary { max-height: 124px; overflow: auto; padding-bottom: 2px; }
  .publication-protection-actions { align-items: stretch; }
  .publication-protection-actions button { flex: 1 1 145px; }
  .publication-card { max-height: 94vh; padding: 17px; }
  .publication-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 12px; }
  .topbar-overline { display: none; }
  .system-status { max-width: 102px; }
  .system-status-text { max-width: 72px; }
  .user-area .ghost-button { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
