:root {
  --bg: #eef3f4;
  --bg-strong: #dbe5e6;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --text: #1f2a32;
  --muted: #697782;
  --muted-strong: #4d5d68;
  --line: rgba(31, 42, 50, 0.1);
  --accent: #2f7d7b;
  --accent-strong: #1d5e5c;
  --accent-soft: rgba(47, 125, 123, 0.12);
  --ink: #102b3a;
  --ink-soft: rgba(16, 43, 58, 0.12);
  --success: #2d8a62;
  --success-soft: rgba(45, 138, 98, 0.12);
  --danger: #b24d57;
  --danger-soft: rgba(178, 77, 87, 0.14);
  --warning: #b97920;
  --warning-soft: rgba(185, 121, 32, 0.14);
  --neutral-soft: rgba(31, 42, 50, 0.08);
  --shadow: 0 14px 34px rgba(16, 43, 58, 0.1);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font-display: "Iowan Old Style", "Noto Serif SC", "Songti SC", serif;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(135deg, #f7fafb 0%, #edf3f4 46%, #f4f7f2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
button {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 304px) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  min-height: 0;
  min-width: 0;
  padding: 28px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: #eff3f1;
  background: linear-gradient(180deg, #0d2028, #152f34);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #64c4bc, #2f7d7b);
  color: #0d2028;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-subtitle,
.sidebar-foot,
.job-card p,
.nav-link small {
  color: rgba(239, 243, 241, 0.72);
}

.muted,
.news-summary,
.signal-meta,
.story-meta,
.brief-meta,
.page-header p,
.auth-copy p,
.auth-note {
  color: var(--muted);
}

.job-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-label,
.job-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar .section-label,
.sidebar .job-label {
  color: #91d8d2;
}

.eyebrow-entry {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link span {
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateY(-1px);
  border-color: rgba(145, 216, 210, 0.28);
  background: rgba(145, 216, 210, 0.11);
}

.job-card h3 {
  margin: 0 0 8px;
  color: #fff9f4;
}

.job-card p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.recommendation-link {
  display: block;
}

.recommendation-card .recommendation-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.recommendation-card .recommendation-meta {
  margin-bottom: 8px;
  color: #91d8d2;
  font-size: 0.82rem;
  font-weight: 700;
}

.recommendation-card .recommendation-summary {
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.recommendation-card .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-actions form {
  margin: 0;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.language-switch {
  display: grid;
  gap: 10px;
}

.language-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(145, 216, 210, 0.18);
  color: rgba(239, 243, 241, 0.78);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lang-pill:hover,
.lang-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(145, 216, 210, 0.32);
  color: #ffffff;
  background: rgba(145, 216, 210, 0.12);
}

.content {
  min-width: 0;
  padding: 34px 36px 48px;
}

.content-auth {
  display: grid;
  place-items: center;
}

.content-shell {
  width: min(1520px, 100%);
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.content-shell > * {
  animation: fade-up 0.42s ease both;
}

.content-shell > *:nth-child(2) {
  animation-delay: 0.04s;
}

.content-shell > *:nth-child(3) {
  animation-delay: 0.08s;
}

.view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.view-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted-strong);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.view-pill strong {
  color: var(--text);
}

.view-pill:hover,
.view-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(47, 125, 123, 0.3);
  background: rgba(47, 125, 123, 0.1);
  color: var(--text);
}

.panel-soft {
  background: rgba(255, 255, 255, 0.78);
}

.layout-two-nested {
  margin-top: 20px;
}

.content-shell > *:nth-child(4) {
  animation-delay: 0.12s;
}

.flash {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.flash-success {
  color: var(--success);
  background: rgba(244, 255, 251, 0.95);
  border-color: rgba(31, 138, 104, 0.18);
}

.flash-error {
  color: var(--danger);
  background: rgba(255, 245, 244, 0.95);
  border-color: rgba(176, 74, 74, 0.18);
}

.flash-info {
  color: var(--accent-strong);
  background: rgba(244, 253, 252, 0.95);
  border-color: rgba(47, 125, 123, 0.18);
}

.hero,
.panel,
.metric-card,
.brief-card,
.auth-form,
.hint-card,
.auth-copy {
  border: 1px solid rgba(29, 37, 41, 0.08);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 360px;
  gap: 22px;
  padding: 30px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-copy h1,
.page-header h1,
.auth-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 1.02;
  color: var(--ink);
}

.hero-tender-detail .hero-copy {
  gap: 12px;
}

.hero-tender-detail {
  grid-template-columns: minmax(0, 1fr);
}

.hero-tender-detail .hero-copy h1 {
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  line-height: 1.08;
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.hero-copy p,
.page-header p,
.section-heading p,
.panel-head p,
.metric-card p,
.brief-card p,
.auth-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row,
.hero-tags-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 123, 0.2);
  background: rgba(47, 125, 123, 0.08);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 245, 0.92));
  border: 1px solid rgba(29, 37, 41, 0.08);
}

.hero-panel-value {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.hero-panel-note {
  color: var(--muted-strong);
  font-weight: 600;
}

.hero-panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel-value-small {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hero-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 37, 41, 0.08);
}

.hero-facts dt,
.hero-facts dd {
  margin: 0;
}

.hero-facts dt {
  color: var(--muted);
}

.hero-facts dd {
  max-width: 55%;
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.market-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-strip-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.market-card {
  display: grid;
  gap: 10px;
}

.market-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.market-unit {
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 700;
}

.market-subtitle {
  min-height: 44px;
}

.market-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-minimal-grid {
  align-items: stretch;
}

.dashboard-minimal-grid > .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
  align-content: start;
}

.dashboard-status-list {
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}

.dashboard-status-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 37, 41, 0.08);
}

.dashboard-status-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-status-row span {
  color: var(--muted);
}

.dashboard-status-row strong {
  max-width: 52%;
  text-align: right;
  color: var(--ink);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
}

.metric-card-policy::before {
  background: linear-gradient(90deg, #204b57, #5d8fa1);
}

.metric-card-company::before {
  background: linear-gradient(90deg, #b97920, #d7a642);
}

.metric-card-industry::before {
  background: linear-gradient(90deg, #59663e, #8ea85a);
}

.metric-card-tender::before {
  background: linear-gradient(90deg, #6b3f48, #bd727b);
}

.metric-card-neutral::before {
  background: linear-gradient(90deg, rgba(29, 37, 41, 0.22), rgba(29, 37, 41, 0.08));
}

.metric-label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.section-block,
.page-header {
  display: grid;
  gap: 18px;
}

.page-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.page-header-copy {
  display: grid;
  gap: 8px;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-header-action {
  display: flex;
  align-items: start;
}

.panel-head-actions,
.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filters-toolbar {
  margin: 18px 0 14px;
}

.section-heading,
.panel-head-block {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.page-header h1 {
  margin: 0 0 8px;
}

.panel {
  min-width: 0;
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  color: var(--ink);
}

.panel-head p {
  margin: 6px 0 0;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brief-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.brief-card:hover,
.signal-item:hover,
.story-item:hover,
.chip:hover,
.title-link:hover,
.text-link:hover,
.news-title:hover {
  transform: translateY(-2px);
}

.brief-card-policy {
  border-color: rgba(20, 51, 58, 0.12);
}

.brief-card-company {
  border-color: rgba(185, 121, 32, 0.18);
}

.brief-card-industry {
  border-color: rgba(89, 102, 62, 0.16);
}

.brief-card-tender {
  border-color: rgba(107, 63, 72, 0.14);
}

.brief-label {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-card strong,
.signal-item strong,
.story-item strong,
.news-title {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.76fr);
  gap: 18px;
}

.layout-two-bottom {
  align-items: start;
}

.leadership-grid {
  align-items: stretch;
}

.panel-emphasis {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 247, 0.9));
}

.stack-column {
  display: grid;
  gap: 18px;
}

.takeaway-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.takeaway-item {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(31, 42, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.takeaway-item span {
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.takeaway-item-company span {
  color: #7a531a;
  background: var(--warning-soft);
}

.takeaway-item-tender span {
  color: #73424b;
  background: rgba(107, 63, 72, 0.12);
}

.takeaway-item-industry span {
  color: #526334;
  background: rgba(89, 102, 62, 0.12);
}

.takeaway-item strong,
.watch-row strong {
  color: var(--ink);
}

.takeaway-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.status-cell {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(31, 42, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.status-cell span,
.watch-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-cell strong {
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.timeline-list,
.watchlist {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 96px minmax(90px, 1fr) 40px;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.timeline-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 50, 0.08);
}

.timeline-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7d7b, #7db7d8);
}

.signal-item-accent {
  border-left: 4px solid var(--accent);
}

.watch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(31, 42, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.watch-row > div {
  display: grid;
  gap: 5px;
}

.watch-count {
  min-width: 94px;
  text-align: right;
}

.signal-list,
.story-list,
.distribution-list,
.news-list {
  display: grid;
  gap: 12px;
}

.signal-item,
.story-item,
.news-card,
.token-item,
.chip {
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 37, 41, 0.08);
  background: rgba(255, 255, 255, 0.56);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.signal-item,
.story-item {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.signal-top,
.news-topline,
.news-meta,
.pager,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-actions {
  justify-content: flex-start;
}

.signal-score,
.news-score {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 600;
}

.card-actions {
  margin-top: 14px;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-high {
  background: var(--ink-soft);
  color: var(--ink);
}

.pill-medium {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pill-base,
.pill-neutral {
  background: var(--neutral-soft);
  color: var(--muted-strong);
}

.distribution-row {
  display: grid;
  gap: 8px;
}

.distribution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.distribution-head span {
  color: var(--muted-strong);
}

.distribution-bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 37, 41, 0.08);
}

.distribution-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7db7d8);
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.token-item span {
  color: var(--muted-strong);
}

.token-item strong {
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-kicker {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  gap: 18px;
}

.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.filters-news {
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto;
}

.field,
.auth-form label {
  display: grid;
  gap: 8px;
}

.field span,
.auth-form label span {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(29, 37, 41, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus {
  border-color: rgba(47, 125, 123, 0.34);
  box-shadow: 0 0 0 4px rgba(47, 125, 123, 0.12);
  background: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #64c4bc, #2f7d7b);
  color: #09262a;
  font-weight: 800;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border: 1px solid rgba(29, 37, 41, 0.08);
}

.btn-block {
  width: 100%;
}

.chip-groups {
  display: grid;
  gap: 14px;
}

.chip-group {
  display: grid;
  gap: 10px;
}

.chip-group-label {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
}

.chip strong {
  color: var(--accent-strong);
}

.chip.is-active {
  border-color: rgba(47, 125, 123, 0.24);
  background: rgba(47, 125, 123, 0.1);
}

.news-stage {
  display: grid;
  gap: 18px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.detail-layout {
  align-items: start;
}

.detail-article,
.detail-side {
  min-width: 0;
}

.article-body {
  display: grid;
  gap: 16px;
}

.article-body p {
  margin: 0;
  line-height: 1.82;
  white-space: pre-wrap;
}

.article-body-raw {
  padding-right: 0;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.news-card-featured {
  min-height: 100%;
}

.news-card-high {
  border-color: rgba(20, 51, 58, 0.16);
  box-shadow: 0 14px 28px rgba(20, 51, 58, 0.08);
}

.news-card-medium {
  border-color: rgba(185, 121, 32, 0.18);
}

.news-title {
  font-size: 1.02rem;
}

.news-meta {
  justify-content: start;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.pager {
  margin-top: 4px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 880px;
  table-layout: fixed;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(29, 37, 41, 0.08);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table th {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-link {
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tender-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.favorite-form {
  flex: 0 0 auto;
  margin: 0;
}

.favorite-star {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(29, 37, 41, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.favorite-star:hover {
  transform: translateY(-2px);
  border-color: #d59a22;
  color: #b77900;
}

.favorite-star.is-active,
.favorite-detail-button.is-active {
  border-color: #d59a22;
  background: #fff4cf;
  color: #9a6500;
}

.detail-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.favorite-detail-button {
  border: 1px solid rgba(29, 37, 41, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 32%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 18%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  width: 14%;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  width: 12%;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
  width: 13%;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
  width: 11%;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.empty-row,
.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  text-align: center;
}

.hero-translation,
.hero-translation-detail {
  grid-template-columns: minmax(0, 1fr);
}

.hero-translation-detail .hero-copy h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.translation-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  align-items: start;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head .section-kicker + h2 {
  margin: 0;
}

.translation-upload-form {
  display: grid;
  gap: 16px;
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(47, 125, 123, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(47, 125, 123, 0.06);
  cursor: pointer;
}

.file-drop:hover {
  border-color: rgba(47, 125, 123, 0.7);
  background: rgba(47, 125, 123, 0.1);
}

.file-drop-title {
  color: var(--ink);
  font-weight: 800;
}

.file-drop-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.file-drop input[type="file"] {
  min-height: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.translation-security-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.translation-security-note strong {
  color: var(--warning);
}

.workflow-panel {
  position: sticky;
  top: 28px;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding-left: 22px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.translation-job-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.translation-job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, transform 0.18s ease;
}

.translation-job-row:hover {
  transform: translateY(-1px);
  background: rgba(47, 125, 123, 0.04);
}

.translation-job-main,
.translation-job-state {
  display: grid;
  gap: 6px;
}

.translation-job-main strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.translation-job-main span,
.translation-job-state > span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.translation-job-state {
  justify-items: end;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--neutral-soft);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-queued,
.status-running {
  color: var(--accent-strong);
  border-color: rgba(47, 125, 123, 0.2);
  background: var(--accent-soft);
}

.status-completed {
  color: var(--success);
  border-color: rgba(45, 138, 98, 0.2);
  background: var(--success-soft);
}

.status-completed_with_warnings {
  color: var(--warning);
  border-color: rgba(185, 121, 32, 0.22);
  background: var(--warning-soft);
}

.status-failed {
  color: var(--danger);
  border-color: rgba(178, 77, 87, 0.2);
  background: var(--danger-soft);
}

.back-link {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 800;
}

.detail-badges,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 43, 58, 0.1);
}

.progress-value {
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #64c4bc, #2f7d7b);
  transition: width 0.3s ease;
}

.translation-progress-message {
  margin: 14px 0 18px;
  color: var(--muted-strong);
}

.translation-meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.translation-meta > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.translation-meta dt {
  color: var(--muted);
}

.translation-meta dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qa-block {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  line-height: 1.55;
}

.qa-block h3 {
  margin: 0 0 8px;
}

.qa-block ul {
  margin: 0;
  padding-left: 22px;
}

.qa-pass {
  color: var(--success);
  border-color: rgba(45, 138, 98, 0.2);
  background: var(--success-soft);
}

.qa-warning {
  color: #76501a;
  border-color: rgba(185, 121, 32, 0.22);
  background: var(--warning-soft);
}

.qa-fail {
  color: var(--danger);
  border-color: rgba(178, 77, 87, 0.2);
  background: var(--danger-soft);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 24px;
  width: min(1120px, calc(100vw - 32px));
  align-items: stretch;
}

.auth-language-bar {
  display: flex;
  justify-content: flex-end;
  width: min(1120px, calc(100vw - 32px));
  margin-bottom: 14px;
}

.auth-language-button {
  min-width: 176px;
}

.auth-copy {
  padding: 34px;
}

.auth-copy h1 {
  margin-bottom: 12px;
}

.market-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.market-portal-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(29, 37, 41, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  text-decoration: none;
}

.market-portal-card.is-active {
  border-color: rgba(47, 125, 123, 0.5);
  background: rgba(47, 125, 123, 0.08);
}

.market-portal-card span,
.market-portal-card small {
  color: var(--muted-strong);
}

.auth-hints {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.hint-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.hint-card strong {
  color: var(--ink);
}

.hint-card span {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.auth-form h2 {
  color: var(--ink);
}

.auth-note {
  margin: 0;
  color: var(--muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1360px) {
  .metric-strip,
  .metric-strip-compact,
  .briefing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-strip > .market-card:last-child {
    grid-column: 1 / -1;
  }

  .featured-grid,
  .story-grid,
  .takeaway-list,
  .dashboard-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .shell,
  .layout-two,
  .filters,
  .filters-news,
  .auth-panel,
  .hero {
    grid-template-columns: 1fr;
  }

  .shell {
    display: block;
    overflow-x: hidden;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .translation-grid {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .sidebar {
    gap: 14px;
  }

  .sidebar .recommendation-card {
    display: none;
  }

  .sidebar .language-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sidebar .section-label {
    margin-bottom: 0;
  }

  .sidebar .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar .nav-link {
    align-content: center;
    min-height: 44px;
    padding: 9px 8px;
    text-align: center;
  }

  .sidebar .nav-link small {
    display: none;
  }

  .sidebar-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
  }

  .content-shell {
    gap: 18px;
  }

  .hero,
  .panel,
  .metric-card,
  .auth-copy,
  .auth-form {
    padding: 20px;
  }

  .metric-strip,
  .metric-strip-compact,
  .briefing-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .panel-head-block,
  .pager,
  .watch-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .page-header-action {
    width: 100%;
  }

  .panel-head-actions,
  .hero-actions,
  .card-actions {
    width: 100%;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.96rem;
  }
}

@media (max-width: 560px) {
  .sidebar .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-portal-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-header h1,
  .auth-copy h1 {
    font-size: 2rem;
  }

  .chip,
  .btn,
  input,
  select {
    width: 100%;
  }

  .page-header-action .btn {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .translation-job-row,
  .translation-meta > div {
    grid-template-columns: 1fr;
  }

  .translation-job-state {
    justify-items: start;
  }

  .download-actions {
    flex-direction: column;
  }

  .signal-top,
  .news-topline,
  .news-meta,
  .filter-actions {
    justify-content: flex-start;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .watch-count {
    min-width: 0;
    text-align: left;
  }
}
