:root {
  --bg: #f1efe9;
  --surface: #ffffff;
  --surface-soft: #f7f5f0;
  --surface-muted: #eeece6;
  --ink: #202522;
  --ink-soft: #59605c;
  --ink-faint: #8a918d;
  --line: #deddd7;
  --line-strong: #c9c9c1;
  --brand: #245e50;
  --brand-dark: #173f36;
  --accent: #c7503d;
  --accent-soft: #f8e7e2;
  --amber: #a76b0c;
  --amber-soft: #faefd8;
  --blue: #286aa7;
  --blue-soft: #e8f1f9;
  --green: #24724d;
  --green-soft: #e6f3ec;
  --red: #b43d34;
  --red-soft: #fae9e6;
  --sidebar: #202522;
  --sidebar-soft: #2a302c;
  --shadow-sm: 0 1px 2px rgba(28, 35, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 35, 31, 0.13);
  --radius: 8px;
  --sidebar-width: 224px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: var(--ink-soft);
}

.boot-mark {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.boot-mark span {
  width: 8px;
  height: 24px;
  border-radius: 2px;
  background: var(--brand);
  animation: boot-wave 0.8s ease-in-out infinite alternate;
}

.boot-mark span:nth-child(2) {
  background: var(--accent);
  animation-delay: 0.15s;
}

.boot-mark span:nth-child(3) {
  background: #b67b1f;
  animation-delay: 0.3s;
}

@keyframes boot-wave {
  from { transform: scaleY(0.5); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(380px, 0.95fr);
  background: #ece9e1;
}

.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 84px);
  color: #f9f7f0;
  background: var(--sidebar);
}

.login-story::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.login-logo,
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  align-items: end;
  width: 24px;
  height: 24px;
}

.logo-mark span {
  display: block;
  border-radius: 1px;
  background: currentColor;
}

.logo-mark span:nth-child(1) { height: 13px; opacity: 0.55; }
.logo-mark span:nth-child(2) { height: 22px; }
.logo-mark span:nth-child(3) { height: 17px; opacity: 0.78; }

.login-story h1 {
  max-width: 580px;
  margin: 20px 0 26px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.login-story-copy {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 16px;
  line-height: 1.8;
}

.login-pipeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.login-pipeline span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.login-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.login-form-side {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: min(100%, 390px);
}

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.login-panel > p {
  margin: 0 0 32px;
  color: var(--ink-soft);
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.login-demo {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.7;
}

.login-demo strong {
  color: var(--ink);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  color: #f7f5ef;
  background: var(--sidebar);
}

.sidebar-head {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  color: #f7f5ef;
  font-size: 15px;
}

.sidebar-logo small {
  display: block;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 12px;
}

.nav-group + .nav-group {
  margin-top: 24px;
}

.nav-label {
  padding: 0 10px 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.63);
  background: transparent;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: var(--sidebar-soft);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #d7644e;
}

.nav-item .nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  text-align: center;
}

.sidebar-foot {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4a5b53;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  font-size: 12px;
}

.sidebar-user-copy span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 239, 233, 0.91);
  backdrop-filter: blur(12px);
}

.mobile-menu {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.breadcrumb strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  flex: 1;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #d7c6a9;
  border-radius: 999px;
  color: #765117;
  background: #fbf2df;
  font-size: 10px;
  font-weight: 700;
}

.mode-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf8421;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface);
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.page {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 48px) clamp(20px, 3vw, 42px) 60px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-heading h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.page-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover:not(:disabled) {
  border-color: #a8aaa4;
  background: #fcfcfa;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(36, 94, 80, 0.18);
}

.button.primary:hover:not(:disabled) {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button.danger {
  border-color: #e3bcb6;
  color: var(--red);
  background: #fff9f7;
}

.button.danger:hover:not(:disabled) {
  border-color: #cf9188;
  background: var(--red-soft);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.button.small {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 11px;
}

.button.wide {
  width: 100%;
}

.button.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brand-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.brand-filter-bar::-webkit-scrollbar {
  display: none;
}

.brand-filter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.brand-filter:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.brand-filter.active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.brand-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

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

.metric-card {
  min-width: 0;
  padding: 18px 18px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--brand);
  background: #eaf3ef;
}

.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.red { color: var(--red); background: var(--red-soft); }

.metric-value {
  margin-top: 7px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 10px;
}

.metric-foot strong {
  color: var(--green);
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 14px;
}

.panel-head p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.panel-body {
  padding: 18px;
}

.panel-body.flush {
  padding: 0;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

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

.pipeline-stage {
  position: relative;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.pipeline-stage:first-child {
  padding-left: 0;
}

.pipeline-stage:last-child {
  padding-right: 0;
  border-right: 0;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.stage-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stage-bar {
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--surface-muted);
  overflow: hidden;
}

.stage-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
}

.pipeline-stage:nth-child(2) .stage-bar span { background: var(--red); }
.pipeline-stage:nth-child(3) .stage-bar span { background: #c18a2b; }
.pipeline-stage:nth-child(4) .stage-bar span { background: var(--green); }

.brand-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.brand-board-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
}

.brand-board-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-monogram {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.brand-board-title {
  min-width: 0;
}

.brand-board-title strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-board-title span {
  color: var(--ink-faint);
  font-size: 10px;
}

.brand-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.brand-stat strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.brand-stat span {
  color: var(--ink-faint);
  font-size: 9px;
}

.agent-status {
  padding: 18px;
}

.agent-orbit {
  position: relative;
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 18px;
  border-radius: 6px;
  color: #f7faf8;
  background: #273c34;
}

.agent-orbit::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -44px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.025);
}

.agent-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #d8eadf;
  background: rgba(255, 255, 255, 0.07);
}

.agent-orbit strong {
  display: block;
  font-size: 14px;
}

.agent-orbit p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
}

.agent-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.agent-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.agent-info-row span {
  color: var(--ink-faint);
  font-size: 10px;
}

.agent-info-row strong {
  max-width: 68%;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.activity-list {
  display: grid;
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: #edf4f1;
}

.activity-icon.rejected { color: var(--red); background: var(--red-soft); }
.activity-icon.published { color: var(--green); background: var(--green-soft); }
.activity-icon.approved { color: var(--amber); background: var(--amber-soft); }

.activity-copy {
  min-width: 0;
}

.activity-copy p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.activity-copy span,
.activity-time {
  color: var(--ink-faint);
  font-size: 9px;
}

.activity-time {
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.search-field {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 360px;
}

.search-field .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  color: var(--ink-faint);
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 35px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.search-field input:focus {
  border-color: #7f9f95;
  box-shadow: 0 0 0 3px rgba(36, 94, 80, 0.09);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ebe9e3;
}

.segmented button {
  min-height: 29px;
  padding: 4px 10px;
  border: 0;
  border-radius: 5px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}

.segmented button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(28, 35, 31, 0.11);
}

.status-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.status-tab {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}

.status-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.status-tab.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tab-count {
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 9px;
  text-align: center;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  background: #faf9f6;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 11px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 0.14s ease;
}

.data-table tbody tr:hover {
  background: #fbfaf7;
}

.data-table tbody tr[data-action] {
  cursor: pointer;
}

.data-table .row-title {
  max-width: 360px;
}

.row-title strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-with-thumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-with-thumb > div {
  min-width: 0;
}

.article-thumb {
  width: 44px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface-muted);
}

.article-thumb.placeholder {
  color: var(--ink-faint);
}

.brand-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.blue { color: var(--blue); background: var(--blue-soft); }
.status-badge.red { color: var(--red); background: var(--red-soft); }
.status-badge.amber { color: var(--amber); background: var(--amber-soft); }
.status-badge.green { color: var(--green); background: var(--green-soft); }

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 9px;
  white-space: nowrap;
}

.platform-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--platform-color, var(--ink-faint));
}

.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 50%;
  color: var(--ink-faint);
  background: var(--surface-muted);
}

.empty-state h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--ink-faint);
  font-size: 11px;
}

.keyword-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: 16px;
  align-items: start;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
}

.keyword-pill small {
  color: var(--ink-faint);
  font-size: 9px;
}

.keyword-pill button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--ink-faint);
  background: transparent;
}

.keyword-pill button:hover {
  color: var(--red);
}

.keyword-categories {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.keyword-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: var(--surface);
  font-size: 11px;
}

.keyword-category span {
  color: var(--ink-faint);
}

.split-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(420px, 1.26fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.queue-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
}

.queue-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.queue-head strong {
  display: block;
  font-size: 13px;
}

.queue-head span {
  color: var(--ink-faint);
  font-size: 9px;
}

.queue-list {
  max-height: 660px;
  overflow-y: auto;
}

.queue-item {
  width: 100%;
  display: block;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.queue-item:hover {
  background: #f5f3ed;
}

.queue-item.active {
  background: #fff;
  box-shadow: inset 3px 0 var(--brand);
}

.queue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.queue-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.queue-item p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.queue-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 9px;
}

.review-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.review-toolbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-scroll {
  flex: 1;
  max-height: 760px;
  overflow-y: auto;
  padding: 24px 28px;
}

.review-title {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 12px 0 22px;
  color: var(--ink-faint);
  font-size: 10px;
}

.article-summary {
  margin: 0 0 24px;
  padding: 13px 15px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  background: #f5f7f5;
  font-size: 12px;
  line-height: 1.75;
}

.article-image-set {
  margin: 20px 0 25px;
}

.image-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.image-set-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.image-source {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.image-source.api {
  color: var(--green);
  background: var(--green-soft);
}

.image-source.demo {
  color: var(--amber);
  background: var(--amber-soft);
}

.article-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.article-image-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.article-image-card.cover {
  grid-column: 1 / -1;
}

.article-image-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-image-card.cover img {
  aspect-ratio: 3 / 2;
}

.article-image-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  background: #fff;
  font-size: 9px;
}

.article-image-set.compact .article-image-card img {
  min-height: 90px;
}

.image-empty {
  min-height: 120px;
  display: grid;
  place-content: center;
  gap: 7px;
  margin: 18px 0;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--ink-faint);
  background: var(--surface-soft);
  font-size: 10px;
  text-align: center;
}

.image-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #e2c6a0;
  border-radius: 5px;
  color: #76541f;
  background: #fff8ea;
  font-size: 9px;
  line-height: 1.55;
}

.article-body {
  color: #303712;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.95;
  word-break: break-word;
}

.article-body h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-body li {
  margin: 5px 0;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 11px 15px;
  border-left: 3px solid #c18a2b;
  color: var(--ink-soft);
  background: var(--amber-soft);
}

.review-footer {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.review-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.review-actions .button {
  flex: 1;
}

.review-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e2c8c3;
  border-radius: 6px;
  background: #fff9f7;
}

.review-note strong {
  font-size: 10px;
}

.review-note p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.risk-list {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #ead8b7;
  border-radius: 6px;
  color: #75541e;
  background: #fdf8ed;
  font-size: 10px;
}

.risk-list strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.publish-list {
  display: grid;
  gap: 10px;
}

.publish-article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.publish-article.active {
  border-color: #789a8f;
  box-shadow: 0 0 0 3px rgba(36, 94, 80, 0.08);
}

.publish-article-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--brand);
  background: #edf4f1;
}

.publish-article-copy {
  min-width: 0;
}

.publish-article-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-article-copy span {
  color: var(--ink-faint);
  font-size: 9px;
}

.publish-side {
  position: sticky;
  top: 84px;
}

.selected-article {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.publish-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-muted);
}

.selected-article h3 {
  margin: 7px 0 5px;
  font-size: 16px;
  line-height: 1.45;
}

.selected-article p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.manual-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.platform-select-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px 16px;
}

.platform-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.platform-choice-group:last-child .platform-check {
  border-bottom: 0;
}

.platform-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.platform-check-copy {
  min-width: 0;
  flex: 1;
}

.platform-check-copy strong,
.platform-check-copy span {
  display: block;
}

.platform-check-copy strong {
  font-size: 11px;
}

.platform-check-copy span {
  color: var(--ink-faint);
  font-size: 9px;
}

.platform-state {
  color: var(--amber);
  font-size: 9px;
  white-space: nowrap;
}

.platform-choice-group.selected {
  background: #fbfdfc;
}

.account-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 0 10px 25px;
}

.account-check {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 9px;
}

.account-check input {
  width: 13px;
  height: 13px;
  accent-color: var(--brand);
}

.account-check small {
  width: 100%;
  padding-left: 18px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-check.disabled {
  opacity: 0.55;
}

.account-missing {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-size: 9px;
}

.account-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.account-state::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.account-state.active { color: var(--green); background: var(--green-soft); }
.account-state.error { color: var(--red); background: var(--red-soft); }
.account-state.disabled { color: var(--ink-faint); background: var(--surface-muted); }

.publish-confirm {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.publish-confirm p {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-size: 9px;
}

.analytics-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 16px;
}

.date-control {
  display: grid;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 9px;
}

.date-control .input {
  width: 165px;
  height: 36px;
  font-size: 11px;
}

.analytics-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 9px;
}

.trend-panel {
  margin-bottom: 16px;
}

.trend-chart {
  min-width: 0;
  height: 214px;
  display: flex;
  align-items: stretch;
  gap: 5px;
  overflow-x: auto;
  padding: 18px 18px 13px;
}

.trend-column {
  min-width: 17px;
  flex: 1;
  display: grid;
  grid-template-rows: 15px minmax(0, 1fr) 17px;
  align-items: end;
  gap: 3px;
  text-align: center;
}

.trend-value {
  color: var(--ink-faint);
  font-size: 8px;
}

.trend-track {
  position: relative;
  height: 145px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(to top, transparent 0 28px, var(--line) 28px 29px);
}

.trend-track i {
  width: 100%;
  min-height: 2px;
  display: block;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
}

.trend-column:nth-child(5n + 2) .trend-track i {
  background: #668d80;
}

.trend-day {
  color: var(--ink-faint);
  font-size: 8px;
}

.analytics-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.analytics-matrix-wrap {
  overflow-x: auto;
}

.analytics-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.analytics-matrix th,
.analytics-matrix td {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 9px;
}

.analytics-matrix th {
  color: var(--ink-faint);
  background: #faf9f6;
  font-weight: 600;
  white-space: nowrap;
}

.analytics-matrix th > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.analytics-matrix th:last-child,
.analytics-matrix td:last-child {
  border-right: 0;
}

.analytics-matrix tr:last-child td {
  border-bottom: 0;
}

.analytics-matrix td:first-child {
  text-align: left;
}

.matrix-platform-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  white-space: nowrap;
}

.matrix-platform-name i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.count-cell {
  min-width: 22px;
  display: inline-block;
  color: #b1b3ae;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.count-cell.has-value {
  color: var(--ink);
  font-weight: 700;
}

.count-cell.total {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #edf4f1;
  font-weight: 700;
}

.platform-matrix {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.matrix-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.matrix-table th {
  color: var(--ink-faint);
  background: #faf9f6;
  font-size: 10px;
  font-weight: 600;
}

.matrix-table tr:last-child td {
  border-bottom: 0;
}

.matrix-table th:last-child,
.matrix-table td:last-child {
  border-right: 0;
}

.matrix-platform {
  text-align: left !important;
}

.matrix-platform strong {
  display: block;
  font-size: 11px;
}

.matrix-platform span {
  color: var(--ink-faint);
  font-size: 9px;
}

.platform-api-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  background: #fff;
  font-size: 8px;
}

.platform-api-chip:hover:not(:disabled) {
  color: var(--ink);
  border-color: #91a9a0;
  background: #f6faf8;
}

.platform-api-chip.connected {
  color: var(--green);
  border-color: #bfd8ca;
  background: var(--green-soft);
}

.platform-api-chip.configured {
  color: var(--blue);
  border-color: #c8d8e6;
  background: var(--blue-soft);
}

.platform-api-chip.error {
  color: var(--red);
  border-color: #e6c2bd;
  background: var(--red-soft);
}

.platform-api-chip.unsupported {
  color: var(--ink-faint);
  border-style: dashed;
  background: var(--surface-soft);
}

.api-status-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf7;
}

.api-status-card > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.api-status-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.api-endpoint-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.api-endpoint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: #faf9f6;
}

.api-endpoint-head strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.api-endpoint-head span {
  color: var(--ink-faint);
  font-size: 8px;
}

.api-endpoint-list {
  display: grid;
}

.api-endpoint-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.api-endpoint-row:last-child {
  border-bottom: 0;
}

.api-method {
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--brand);
  background: #eaf3ef;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.api-endpoint-copy {
  min-width: 0;
}

.api-endpoint-copy strong,
.api-endpoint-copy code {
  display: block;
}

.api-endpoint-copy strong {
  font-size: 9px;
}

.api-endpoint-copy code {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-scope-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  font-size: 8px;
}

.api-scope-row > span {
  margin-right: 3px;
  color: var(--ink-faint);
}

.api-scope-row .tag {
  font-style: normal;
}

.api-help-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.api-help-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.api-help-row:last-child {
  border-bottom: 0;
}

.api-help-row strong,
.api-help-row span {
  display: block;
}

.api-help-row strong {
  font-size: 10px;
}

.api-help-row > div span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
}

.api-help-row .button {
  text-decoration: none;
}

.matrix-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-size: 9px;
}

.matrix-cell::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.account-mini-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.account-mini {
  min-width: 54px;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  background: #fff;
  text-align: left;
}

.account-mini strong {
  font-size: 8px;
  font-weight: 600;
}

.account-mini span {
  color: var(--amber);
  font-size: 7px;
}

.account-mini.active span { color: var(--green); }
.account-mini.error span { color: var(--red); }
.account-mini.disabled span { color: var(--ink-faint); }

button.account-mini:hover {
  border-color: #789a8f;
  background: #f7fbf9;
}

.matrix-account-summary {
  width: 100%;
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

button.matrix-account-summary:hover {
  border-color: #8da99f;
  background: #f8fbf9;
}

.matrix-account-summary.readonly {
  cursor: default;
}

.matrix-account-summary > .icon {
  margin-left: auto;
  color: var(--ink-faint);
}

.matrix-account-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.matrix-account-count strong {
  font-size: 16px;
  line-height: 1;
}

.matrix-account-count small {
  color: var(--ink-faint);
  font-size: 8px;
}

.matrix-account-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  white-space: nowrap;
}

.matrix-account-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.matrix-account-meta i.active { background: var(--green); }
.matrix-account-meta i.error { background: var(--red); }

.account-group-list {
  display: grid;
  gap: 9px;
}

.account-group-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf7;
}

.account-slot-label {
  padding-top: 3px;
}

.account-slot-label strong,
.account-slot-label span {
  display: block;
}

.account-slot-label strong {
  font-size: 11px;
}

.account-slot-label span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

.account-group-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(150px, 1.2fr) minmax(100px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
}

.account-group-fields .input,
.account-group-fields .select {
  height: 36px;
}

.account-active-toggle {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 9px;
  white-space: nowrap;
}

.account-active-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}

.account-credentials {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.account-credentials summary {
  padding-top: 8px;
  color: var(--ink-faint);
  font-size: 9px;
  cursor: pointer;
}

.account-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.account-credential-grid .input {
  height: 36px;
}

.account-stats-table {
  min-width: 940px;
}

.account-handle {
  display: block;
  max-width: 140px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #dfcba8;
  border-radius: var(--radius);
  color: #6d501f;
  background: #fbf3e3;
  font-size: 11px;
  line-height: 1.65;
}

.notice .icon {
  margin-top: 1px;
}

.notice.info {
  border-color: #c8d6df;
  color: #385a72;
  background: #f0f6fa;
}

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

.agent-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.agent-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.agent-card-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.agent-card-head h3 {
  margin: 1px 0 2px;
  font-size: 13px;
}

.agent-card-head p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
}

.agent-card-body {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.agent-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 9px;
}

.agent-field p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.agent-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.agent-card-foot span {
  color: var(--ink-faint);
  font-size: 9px;
}

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

.person-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.person-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.person-cell strong,
.person-cell span {
  display: block;
}

.person-cell strong {
  font-size: 11px;
}

.person-cell span {
  color: var(--ink-faint);
  font-size: 9px;
}

.person-job {
  min-width: 150px;
}

.person-job strong,
.person-job span,
.person-login {
  display: block;
}

.person-job strong {
  font-size: 10px;
  white-space: nowrap;
}

.person-job span,
.person-login {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.45;
}

.personnel-table code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
}

.brand-scope {
  display: inline-block;
  max-width: 160px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 250px;
}

.permission-badge {
  padding: 2px 6px;
  border: 1px solid #cfdcd6;
  border-radius: 4px;
  color: #365f51;
  background: #f0f6f3;
  font-size: 8px;
  white-space: nowrap;
}

.permission-badge.muted {
  border-color: var(--line);
  color: var(--ink-faint);
  background: var(--surface-soft);
}

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

.brand-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

.brand-choice input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.brand-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.permission-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.permission-option input {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.permission-option span {
  min-width: 0;
}

.permission-option strong,
.permission-option small {
  display: block;
}

.permission-option strong {
  font-size: 10px;
}

.permission-option small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.45;
}

.status-toggle {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

.status-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.settings-form {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.settings-divider {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 3px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line);
}

.settings-divider strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.settings-divider span:not(.status-badge) {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.human-publish-mode {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.human-publish-mode strong {
  font-size: 11px;
}

.human-publish-mode span {
  color: var(--ink-faint);
  font-size: 9px;
  text-align: right;
}

.field {
  display: grid;
  gap: 6px;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.field small {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 400;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input,
.select {
  height: 39px;
  padding: 8px 11px;
}

.textarea {
  min-height: 102px;
  padding: 10px 11px;
  line-height: 1.65;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: #6f988c;
  box-shadow: 0 0 0 3px rgba(36, 94, 80, 0.09);
}

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

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

.mode-option {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mode-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(36, 94, 80, 0.08);
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option strong {
  font-size: 10px;
}

.mode-option span {
  color: var(--ink-faint);
  font-size: 9px;
}

.role-list,
.system-list {
  display: grid;
}

.role-item,
.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.role-item:last-child,
.system-row:last-child {
  border-bottom: 0;
}

.role-item strong,
.system-row strong {
  display: block;
  font-size: 11px;
}

.role-item span,
.system-row span {
  color: var(--ink-faint);
  font-size: 9px;
}

.role-scope {
  max-width: 42%;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 24, 21, 0.54);
  backdrop-filter: blur(3px);
  animation: fade-in 0.15s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(100%, 640px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: modal-in 0.18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal.wide {
  width: min(100%, 860px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.keyword-picker {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.keyword-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.keyword-choice:last-child {
  border-bottom: 0;
}

.keyword-choice:hover {
  background: #faf9f6;
}

.keyword-choice input {
  accent-color: var(--brand);
}

.keyword-choice span {
  min-width: 0;
  flex: 1;
}

.keyword-choice small {
  color: var(--ink-faint);
  font-size: 9px;
}

.generation-state {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 30px;
  text-align: center;
}

.generation-spinner {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #bdd4cc;
  border-radius: 50%;
  color: var(--brand);
  background: #eef5f2;
}

.generation-spinner .icon {
  animation: spin 1.1s linear infinite;
}

.generation-state h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.generation-state p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.article-drawer {
  width: min(100%, 980px);
  height: min(840px, calc(100vh - 40px));
}

.drawer-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  overflow: hidden;
}

.drawer-main {
  min-width: 0;
  overflow-y: auto;
  padding: 25px 28px;
}

.drawer-side {
  min-width: 0;
  overflow-y: auto;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fbfaf7;
}

.version-list {
  display: grid;
  gap: 8px;
}

.version-item {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.version-item strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.version-item span,
.version-item p {
  color: var(--ink-faint);
  font-size: 9px;
}

.version-item p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.side-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.side-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.side-section h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 11px;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
}

.detail-row span {
  color: var(--ink-faint);
}

.detail-row strong {
  font-weight: 600;
  text-align: right;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 9px;
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #48554f;
  border-radius: 7px;
  color: #f8faf9;
  background: #27312d;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  pointer-events: auto;
  animation: toast-in 0.2s ease;
}

.toast.error {
  border-color: #7d4038;
  background: #542f2a;
}

.toast.success .toast-icon {
  color: #8bcfaa;
}

.toast.error .toast-icon {
  color: #f0a197;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(241, 239, 233, 0.7);
  backdrop-filter: blur(2px);
}

.loading-dialog {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 11px;
}

.loading-dialog .icon {
  color: var(--brand);
  animation: spin 1s linear infinite;
}

.footer-note {
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 9px;
  text-align: center;
}

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

  .dashboard-grid,
  .keyword-layout,
  .publish-layout {
    grid-template-columns: 1fr;
  }

  .publish-side {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: 224px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(16, 21, 18, 0.3);
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topbar {
    padding: 0 18px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 360px;
    padding: 34px;
  }

  .login-story h1 {
    margin: 28px 0 16px;
    font-size: 40px;
  }

  .login-brand-row {
    display: none;
  }

  .login-form-side {
    padding: 42px 22px;
  }

  .split-workspace {
    grid-template-columns: 1fr;
  }

  .queue-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .queue-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .queue-item {
    min-width: 220px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .queue-item.active {
    box-shadow: inset 0 -3px var(--brand);
  }

  .drawer-layout {
    grid-template-columns: 1fr;
  }

  .drawer-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article-drawer {
    height: calc(100vh - 24px);
  }
}

@media (max-width: 680px) {
  .page {
    padding: 22px 16px 44px;
  }

  .topbar {
    height: 58px;
    gap: 8px;
  }

  .breadcrumb span,
  .mode-chip {
    display: none;
  }

  .page-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .heading-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .heading-actions .button {
    flex: 1;
  }

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

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 25px;
  }

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

  .pipeline-stage:nth-child(2) {
    border-right: 0;
  }

  .pipeline-stage:nth-child(3) {
    padding-left: 0;
  }

  .brand-board,
  .agent-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .activity-time {
    display: none;
  }

  .search-field {
    max-width: none;
    min-width: 100%;
  }

  .date-control {
    width: calc(50% - 5px);
  }

  .date-control .input {
    width: 100%;
  }

  .analytics-note {
    width: 100%;
    margin-left: 0;
  }

  .account-check-list {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .trend-chart {
    padding-left: 12px;
    padding-right: 12px;
  }

  .toolbar .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .modal {
    max-height: calc(100vh - 16px);
    border-radius: 7px;
  }

  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 15px;
    padding-right: 15px;
  }

  .form-row,
  .mode-options {
    grid-template-columns: 1fr;
  }

  .brand-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .account-group-row {
    grid-template-columns: 1fr;
  }

  .account-group-fields {
    grid-template-columns: 1fr;
  }

  .account-credential-grid {
    grid-template-columns: 1fr;
  }

  .api-help-row {
    grid-template-columns: 1fr auto;
  }

  .api-help-row .button {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .review-scroll,
  .drawer-main {
    padding: 18px 16px;
  }

  .split-workspace {
    overflow: visible;
  }

  .queue-list {
    display: grid;
    overflow: visible;
  }

  .queue-item {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .queue-item.active {
    box-shadow: inset 3px 0 var(--brand);
  }

  .review-scroll {
    max-height: none;
    overflow: visible;
  }

  .article-image-grid {
    grid-template-columns: 1fr;
  }

  .article-image-card.cover {
    grid-column: auto;
  }

  .article-image-card img,
  .article-image-card.cover img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

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

  .publish-article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .publish-article > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .login-story {
    min-height: 300px;
    padding: 28px 22px;
  }

  .login-story h1 {
    font-size: 34px;
  }

  .login-pipeline {
    margin-top: 20px;
  }

  .toast-root {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
