:root {
  --sand: #f3ead8;
  --cream: rgba(255, 251, 245, 0.9);
  --cream-strong: #fffdf8;
  --ink: #1c2624;
  --muted: #68746f;
  --line: rgba(39, 47, 45, 0.1);
  --accent: #ca6238;
  --accent-deep: #9f421d;
  --teal: #1d746e;
  --moss: #6b7b34;
  --plum: #60506d;
  --night: #14201d;
  --shadow: 0 28px 72px rgba(72, 49, 24, 0.12);
  --shadow-soft: 0 18px 40px rgba(53, 39, 22, 0.08);
  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-ui: "Segoe UI Variable Text", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}

/* Independent authentication page */
body.auth-guest {
  overflow: hidden;
  background: #08172e;
}

body.auth-guest > .topbar,
body.auth-guest > .page-shell {
  display: none !important;
}

.auth-page[hidden] {
  display: none !important;
}

.auth-page [hidden] {
  display: none !important;
}

.auth-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100vh;
  overflow: auto;
  color: #10213c;
  background:
    linear-gradient(118deg, rgba(7, 24, 51, 0.98) 0%, rgba(10, 39, 77, 0.96) 48%, #edf3fb 48.1%, #f7f9fc 100%);
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.auth-page-glow {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.auth-page-glow-one {
  top: -18rem;
  left: 22%;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(29, 113, 205, 0.42), transparent 68%);
}

.auth-page-glow-two {
  right: -14rem;
  bottom: -18rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(201, 144, 47, 0.15), transparent 68%);
}

.auth-page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  width: min(1240px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(48px, 7vh, 84px) clamp(48px, 6vw, 88px) clamp(38px, 5vh, 64px) 0;
  color: #f6f9ff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.auth-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px 5px 13px 5px;
  color: #0b2852;
  background: #f2c45f;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.auth-story-kicker {
  margin-top: clamp(64px, 13vh, 130px);
  color: #f2c45f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.auth-story h1 {
  max-width: 650px;
  margin-top: 18px;
  color: #fff;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(2.7rem, 4.7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.auth-story-copy {
  max-width: 570px;
  margin-top: 28px;
  color: rgba(225, 235, 249, 0.76);
  font-size: 15px;
  line-height: 1.9;
}

.auth-flow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 48px;
  color: rgba(238, 244, 254, 0.78);
  font-size: 12px;
}

.auth-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.auth-flow b {
  color: #f2c45f;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.auth-flow i {
  width: clamp(18px, 3vw, 48px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.auth-story-footnote {
  margin-top: 28px;
  color: rgba(218, 230, 247, 0.48);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 54px 0 54px clamp(48px, 7vw, 110px);
}

.auth-card {
  width: min(100%, 460px);
  padding: 38px 40px 28px;
  border: 1px solid rgba(21, 54, 99, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(13, 33, 64, 0.16);
  animation: auth-card-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-card-heading .section-kicker {
  margin-bottom: 8px;
  color: #346cba;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.auth-card-heading h2 {
  color: #10213c;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.auth-card-heading p:last-child {
  margin-top: 10px;
  color: #738097;
  font-size: 13px;
}

.auth-card .top-access-panel {
  gap: 16px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card .login-status {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #1f2329;
  background: #ecfdf5;
}

.auth-method-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  color: #153053;
  text-align: left;
  background: #f8fbff;
  box-shadow: none;
}

.auth-method-button:hover:not(:disabled) {
  border-color: #9db9df;
  background: #f1f7ff;
  box-shadow: 0 10px 24px rgba(28, 82, 151, 0.09);
  transform: translateY(-1px);
}

.auth-method-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.auth-feishu-icon {
  background: linear-gradient(145deg, #1e86ff, #2864d7);
}

.auth-method-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  margin-left: 12px;
}

.auth-method-copy strong {
  font-size: 14px;
}

.auth-method-copy small {
  color: #7a879a;
  font-size: 11px;
  font-weight: 400;
}

.auth-method-arrow {
  color: #7890ad;
  font-size: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #929dad;
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6ebf2;
}

.auth-card .top-access-credentials {
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-card .login-row {
  gap: 7px;
}

.auth-card .login-row label {
  color: #435169;
  font-size: 12px;
  font-weight: 650;
}

.auth-card .login-row input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8e0ea;
  border-radius: 11px;
  color: #162740;
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-card .login-row input:focus {
  border-color: #4f83c9;
  box-shadow: 0 0 0 3px rgba(52, 108, 186, 0.12);
}

.auth-card .login-row input:disabled {
  color: #7f8a9a;
  background: #f2f5f8;
}

.auth-card .top-access-actions {
  display: block;
}

.auth-password-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #245ba8, #153f7d);
  box-shadow: 0 12px 24px rgba(27, 72, 137, 0.2);
  font-size: 13px;
  font-weight: 650;
}

.auth-password-button:hover:not(:disabled) {
  box-shadow: 0 15px 28px rgba(27, 72, 137, 0.25);
}

.auth-boot-state {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 72px 20px 30px;
  text-align: center;
}

.auth-boot-state strong {
  margin-top: 20px;
  color: #1b3151;
  font-size: 14px;
}

.auth-boot-state p {
  margin-top: 6px;
  color: #7b8797;
  font-size: 12px;
}

.auth-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: auth-spin 720ms linear infinite;
}

.auth-spinner-large {
  width: 34px;
  height: 34px;
  border-width: 3px;
  color: #346cba;
}

.auth-method-button .auth-spinner {
  margin: 0 11px;
  color: #2b69bb;
}

.auth-feedback {
  padding: 10px 12px;
  border-radius: 9px;
  color: #31547f;
  background: #eef5fe;
  font-size: 12px;
  line-height: 1.5;
}

.auth-feedback.is-error {
  color: #9a3b33;
  background: #fff0ed;
}

.auth-feedback.is-success {
  color: #17684f;
  background: #eaf8f2;
}

.auth-retry-button {
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid #cbd8e9;
  border-radius: 9px;
  color: #214d88;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
  color: #98a1af;
  font-size: 10px;
}

.auth-security-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #43a27d;
  box-shadow: 0 0 0 3px rgba(67, 162, 125, 0.12);
}

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

@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  body.auth-guest {
    overflow: auto;
  }

  .auth-page {
    position: absolute;
    background: linear-gradient(180deg, #091d3c 0, #0d3262 35%, #f4f7fb 35.1%, #f4f7fb 100%);
  }

  .auth-page-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 620px);
    padding: 28px 0 44px;
  }

  .auth-story {
    min-height: auto;
    padding: 4px 8px 38px;
  }

  .auth-story-kicker {
    margin-top: 44px;
  }

  .auth-story h1 {
    font-size: clamp(2.25rem, 9vw, 3.6rem);
  }

  .auth-flow,
  .auth-story-footnote {
    display: none;
  }

  .auth-card-wrap {
    padding: 0;
  }

  .auth-card {
    width: 100%;
  }

  .auth-password-button {
    min-height: 44px;
  }

  .top-access-actions > .auth-password-button {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .auth-page-shell {
    width: min(100% - 20px, 480px);
    padding-top: 18px;
  }

  .auth-story {
    padding: 2px 10px 30px;
  }

  .auth-brand {
    font-size: 14px;
  }

  .auth-brand-mark {
    width: 38px;
    height: 38px;
  }

  .auth-story-kicker {
    margin-top: 34px;
  }

  .auth-story-copy {
    margin-top: 18px;
    font-size: 13px;
  }

  .auth-card {
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .auth-card-heading h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }

  .auth-spinner {
    animation-duration: 1.4s;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(202, 98, 56, 0.3), transparent 23rem),
    radial-gradient(circle at 90% 0%, rgba(29, 116, 110, 0.24), transparent 24rem),
    linear-gradient(180deg, #fbf5eb 0%, #efe2cf 48%, #efe6d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 92%);
}

.page-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 12px 32px;
}

.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"] {
  width: calc(100vw - 24px);
  max-width: none;
  padding-inline: 12px;
}

.page-shell[data-shell="login"] {
  max-width: 1180px;
}

.page-shell[data-shell="login"] .layout {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.page-shell[data-shell="login"] .sidebar {
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.page-shell[data-shell="workspace"] .hero,
.page-shell[data-shell="admin"] .hero {
  grid-template-columns: 1fr;
}

.page-shell[data-shell="workspace"] .hero-copy-block,
.page-shell[data-shell="admin"] .hero-copy-block {
  padding: 24px 26px;
}

.page-shell[data-shell="workspace"] .workspace-hero,
.page-shell[data-shell="admin"] .workspace-hero {
  display: none;
}

.top-access-shell {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  align-items: start;
}

.top-access-nav,
.top-access-panel {
  min-width: 0;
}

.top-access-nav {
  display: grid;
  gap: 10px;
}

.top-access-tab {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid rgba(54, 56, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.top-access-tab strong {
  display: block;
  font-size: 0.98rem;
}

.top-access-tab span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.top-access-tab.is-active {
  border-color: rgba(206, 98, 54, 0.4);
  background: linear-gradient(135deg, rgba(206, 98, 54, 0.16), rgba(255, 249, 244, 0.96));
}

.top-access-tab.is-logged-in {
  border-color: rgba(31, 123, 116, 0.28);
}

.top-access-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(64, 50, 30, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 238, 0.76));
  box-shadow: var(--shadow);
}

.top-access-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 18px;
  margin-bottom: 16px;
  animation: rise-in 700ms ease;
}

.hero-copy-block,
.card,
.hero-panel {
  border: 1px solid rgba(64, 50, 30, 0.06);
  border-radius: var(--radius-2xl);
  background: var(--cream);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy-block {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 28px;
  background:
    radial-gradient(circle at top right, rgba(202, 98, 56, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 236, 0.74));
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(29, 116, 110, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.8rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero-copy {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.04rem;
}

.hero-inline-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-inline-metrics article {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(55, 53, 44, 0.08);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.hero-inline-metrics strong,
.hero-panel-heading h2,
.spotlight-layout h3,
.spotlight-scorecard strong,
.command-card strong {
  display: block;
}

.hero-inline-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-status-strip {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.92rem;
  background: rgba(29, 116, 110, 0.08);
  border: 1px solid rgba(29, 116, 110, 0.12);
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 24px rgba(159, 66, 29, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(159, 66, 29, 0.22);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(45, 53, 49, 0.08);
}

.hero-panel {
  padding: 26px;
  background:
    linear-gradient(155deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 247, 0.86)),
    var(--cream);
}

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

.hero-panel-heading h2 {
  margin-top: 2px;
  font-size: 1.36rem;
  line-height: 1.3;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-grid article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(52, 55, 49, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-grid strong,
.role-button strong,
.stat-card strong,
.timeline-item strong,
.review-card strong,
.task-chip strong {
  display: block;
}

.hero-grid span,
.role-button span,
.muted,
.task-meta,
.review-card span,
.field-help {
  color: var(--muted);
  font-size: 0.92rem;
}

.system-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 123, 116, 0.14);
  background: rgba(31, 123, 116, 0.1);
  color: var(--teal);
  font-weight: 700;
}

.system-banner.is-hidden {
  display: none;
}

.role-button:hover,
.process-step:hover,
.role-button:hover,
.task-row:hover {
  transform: translateY(-2px);
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  justify-content: center;
  width: 100%;
}

.sidebar,
.content {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.content,
.detail-grid,
.field-section,
.history-section {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-right: 4px;
}

.card {
  padding: 18px;
  align-self: start;
  min-width: 0;
}

.login-card-standalone {
  padding: 28px;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 238, 0.76));
}

.dark-card {
  color: #f7efe5;
  background:
    radial-gradient(circle at top right, rgba(206, 98, 54, 0.18), transparent 12rem),
    linear-gradient(180deg, #22312d 0%, #151d1b 100%);
}

.dark-card .section-kicker,
.dark-card .muted {
  color: rgba(247, 239, 229, 0.72);
}

.section-heading,
.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.card-heading {
  margin-bottom: 18px;
}

.hint-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(31, 123, 116, 0.12);
  color: var(--teal);
}

.role-switch,
.process-nav,
.timeline,
.permission-list,
.review-list,
.action-stack,
.external-task-list,
.detail-grid {
  display: grid;
  gap: 14px;
}

.role-button {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(206, 98, 54, 0.14);
  background: rgba(255, 252, 249, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--shadow-soft);
}

.process-nav {
  gap: 10px;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #f7efe5;
  text-align: left;
  box-shadow: none;
}

.process-step.is-locked {
  opacity: 0.42;
}

.process-step.is-active {
  border-color: rgba(255, 178, 115, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.process-step.is-current-stage .process-step-index {
  background: linear-gradient(135deg, #ffb273, #ce6236);
  color: #fff7ef;
}

.process-step.is-completed-stage .process-step-index {
  background: rgba(29, 116, 110, 0.78);
  color: #f7fffd;
}

.process-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
}

.process-step-body strong {
  display: block;
  color: #fff7ef;
}

.process-step-body span {
  display: block;
  margin-top: 4px;
  color: rgba(247, 239, 229, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

.role-button.is-active {
  border-color: rgba(206, 98, 54, 0.5);
  background: linear-gradient(135deg, rgba(206, 98, 54, 0.18), rgba(255, 249, 244, 0.96));
}

.role-button.is-locked {
  opacity: 0.72;
}

.role-lock-note {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--accent-deep);
}

.login-demo {
  margin-top: 16px;
}

.page-shell[data-shell="workspace"] #login-card .login-status,
.page-shell[data-shell="admin"] #login-card .login-status {
  margin-bottom: 0;
}

.page-shell[data-shell="workspace"] #process-card,
.page-shell[data-shell="admin"] #process-card {
  padding: 18px;
}

.login-status {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(31, 123, 116, 0.08);
  border: 1px solid rgba(31, 123, 116, 0.12);
  color: var(--teal);
}

.login-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.login-status-actions button {
  flex: 0 0 auto;
}

.login-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid rgba(34, 48, 44, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(29, 116, 110, 0.34);
  box-shadow: 0 0 0 4px rgba(29, 116, 110, 0.08);
  background: #fff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[readonly],
textarea[readonly] {
  background: rgba(242, 236, 229, 0.82);
  color: #4e5a56;
}

.code-row {
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.login-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-user-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.demo-user-chip {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(45, 53, 49, 0.08);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.demo-user-chip.is-active {
  border-color: rgba(31, 123, 116, 0.34);
  background: rgba(31, 123, 116, 0.08);
}

.demo-user-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-item {
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.timeline-item.is-current::before {
  background: linear-gradient(180deg, #ffb273, #ce6236);
}

.permission-item {
  padding: 16px 16px;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.permission-item span {
  font-size: 1.08rem;
  font-weight: 700;
}

.permission-item p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
}

.internal-zone {
  background: linear-gradient(135deg, #5d4e67, #3e3248);
}

.visible-zone {
  background: linear-gradient(135deg, #1f7b74, #145753);
}

.editable-zone {
  background: linear-gradient(135deg, #68792e, #46511d);
}

.workspace-hero {
  background:
    radial-gradient(circle at top right, rgba(202, 98, 56, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.74));
}

.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.workspace-heading h2 {
  font-size: clamp(1.46rem, 2vw, 1.9rem);
}

.workspace-heading p {
  max-width: 52ch;
}

.content-section {
  display: none;
  gap: 14px;
  align-items: start;
}

.content-section.is-active {
  display: grid;
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}

.overview-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.overview-spotlight.is-hidden {
  display: none;
}

.admin-center-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.overview-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.task-module-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.module-filter-panel {
  margin: 18px 0;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.module-filter-heading > div {
  display: grid;
  gap: 3px;
}

.workspace-module-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.readonly-field-section {
  margin-top: 16px;
}

.readonly-field-section .readonly-grid-wrap {
  border-radius: 0;
  border: 1px solid var(--line);
}

.readonly-field-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.readonly-field-table th,
.readonly-field-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.45;
}

.readonly-field-table th {
  width: 15%;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
  white-space: normal;
}

.readonly-field-table td {
  width: 35%;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.readonly-field-table tr:last-child th,
.readonly-field-table tr:last-child td {
  border-bottom: 0;
}

.readonly-field-table .is-empty {
  background: #fff;
}

#view-assigned .card-heading,
#view-result .card-heading {
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

#view-assigned .detail-grid,
#view-result .result-list,
#view-result .result-action-stack {
  gap: 14px;
}

#view-assigned .readonly-field-section header,
#view-result .field-section header {
  margin-bottom: 8px;
}

#view-assigned .readonly-field-table.readonly-pairs-table {
  width: 100%;
  min-width: 0;
  max-width: none;
  table-layout: fixed;
}

#view-assigned .readonly-field-table th {
  width: 15%;
  color: var(--muted);
  background: #f8fafc;
}

#view-assigned .readonly-field-table td {
  width: 35%;
  background: #fff;
}

#view-assigned .export-hint:empty {
  display: none;
}

@media (max-width: 820px) {
  #view-assigned .readonly-field-table,
  #view-assigned .readonly-field-table tbody,
  #view-assigned .readonly-field-table tr {
    display: block;
  }

  #view-assigned .readonly-field-table th,
  #view-assigned .readonly-field-table td {
    display: block;
    width: 100%;
    border-right: 0;
  }

  #view-assigned .readonly-field-table .is-empty {
    display: none;
  }
}

.filter-field {
  display: grid;
  gap: 8px;
}

.keyword-field {
  grid-column: auto;
}

.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.export-hint {
  margin-top: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 240, 0.82)),
    var(--cream-strong);
  border: 1px solid rgba(44, 53, 49, 0.08);
  box-shadow: var(--shadow);
}

.stat-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(202, 98, 56, 0.8), rgba(29, 116, 110, 0.72));
}

.stat-value {
  margin-top: 10px;
  font-size: 2.2rem;
  font-weight: 800;
}

.spotlight-card {
  min-height: 0;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.spotlight-primary,
.spotlight-secondary,
.spotlight-empty,
.command-card,
.command-metrics article {
  border-radius: 22px;
  border: 1px solid rgba(53, 53, 45, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.spotlight-primary {
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(202, 98, 56, 0.12), transparent 13rem),
    rgba(255, 255, 255, 0.82);
}

.spotlight-secondary {
  display: grid;
  gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.spotlight-id-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.spotlight-id {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 29, 0.08);
  font-weight: 700;
}

.spotlight-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}

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

.spotlight-meta-grid article,
.spotlight-scorecard {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(43, 52, 49, 0.08);
}

.spotlight-meta-grid span,
.spotlight-scorecard span,
.command-card span,
.command-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.spotlight-scorecard strong {
  font-size: 1.14rem;
}

.module-summary-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(53, 53, 45, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 238, 0.76)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.module-summary-card.compact {
  padding: 14px;
}

.form-card-wide,
.admin-card-wide {
  grid-column: 1 / -1;
}

.module-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.module-summary-grid article {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(44, 52, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.module-summary-grid span,
.micro-checklist span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.module-summary-grid strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.module-summary-count-button {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #11659a;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
}

.module-summary-count-button:hover,
.module-summary-count-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.micro-checklist {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(29, 116, 110, 0.2);
  background: rgba(29, 116, 110, 0.06);
}

.command-panel {
  display: grid;
  gap: 12px;
}

.command-card {
  padding: 16px;
}

.command-card-primary {
  background:
    linear-gradient(180deg, rgba(29, 116, 110, 0.12), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.84);
}

.command-card-muted {
  background: rgba(252, 248, 242, 0.86);
}

.command-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.command-metrics article {
  padding: 14px 16px;
}

.command-metrics strong {
  font-size: 1.3rem;
}

.board,
.form-grid,
.field-grid,
.edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.board-column,
.field-section,
.review-card,
.action-card,
.external-card,
.admin-card,
.rule-card {
  border-radius: 24px;
  border: 1px solid rgba(50, 56, 49, 0.08);
  background: rgba(255, 251, 246, 0.88);
  align-self: start;
  height: auto;
}

.board-column {
  padding: 14px;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 242, 0.7)),
    rgba(255, 251, 246, 0.88);
}

.board-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task-chip {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(54, 56, 51, 0.08);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.task-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 98, 56, 0.24);
}

.task-chip.is-selected {
  border-color: rgba(202, 98, 56, 0.34);
  background:
    linear-gradient(180deg, rgba(202, 98, 56, 0.08), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
}

.task-chip p {
  margin-top: 6px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 14px;
  align-items: start;
}

#view-review .review-stack-layout,
#view-result .result-stack-layout {
  grid-template-columns: minmax(0, 1fr);
}

#view-review .review-stack-layout > .card,
#view-result .result-stack-layout > .card {
  width: 100%;
}

.task-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(54, 56, 51, 0.06);
  max-width: 100%;
}

.task-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
}

.task-table thead {
  background: rgba(248, 240, 230, 0.92);
}

.task-table th,
.task-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(54, 56, 51, 0.08);
}

.task-table th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

.task-table-wrap-compact {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.task-table-compact {
  min-width: 960px;
}

.task-table-compact th {
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.task-table-compact td {
  vertical-align: middle;
}

.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;
}

.task-select-column {
  width: 48px;
  text-align: center;
}

.task-select-column input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  cursor: pointer;
}

.batch-share-card {
  gap: 14px;
}

.batch-share-toolbar {
  display: grid;
  grid-template-columns: repeat(2, max-content) minmax(180px, 1fr) minmax(120px, .5fr) max-content;
  gap: 10px;
  align-items: end;
}

.batch-share-toolbar label {
  display: grid;
  gap: 6px;
}

.batch-share-toolbar label span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.batch-share-toolbar button,
.batch-share-toolbar select {
  min-height: 42px;
}

.task-share-current-url button {
  flex: none;
}

.task-row {
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.task-row.is-selected {
  background: rgba(206, 98, 54, 0.08);
}

.task-row.is-selected td {
  background: rgba(206, 98, 54, 0.05);
}

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

.list-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.table-primary,
.table-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.table-primary strong,
.table-stack strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.45;
}

.table-primary span,
.table-stack span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.table-note {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.table-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-cell {
  padding: 24px 10px;
  text-align: center;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge[data-status="待审核"] {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}

.status-badge[data-status="待上级审批"] {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.status-badge[data-status="需求修改"] {
  background: rgba(194, 65, 12, 0.12);
  color: #c2410c;
}

.status-badge[data-status="待分配"] {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
}

.status-badge[data-status="执行中"] {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.status-badge[data-status="审核驳回"] {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.status-badge[data-status="待结果审核"] {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.status-badge[data-status="结果驳回"] {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
}

.status-badge[data-status="已完成"] {
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
}

.approval-badge,
.approval-text {
  display: inline-flex;
  max-width: 154px;
  align-items: center;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-badge {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
}

.approval-badge[data-tone="pending"] {
  background: rgba(22, 93, 255, 0.1);
  color: #114fd8;
}

.approval-badge[data-tone="success"] {
  background: rgba(16, 185, 129, 0.12);
  color: #087f5b;
}

.approval-badge[data-tone="rejected"] {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.approval-badge[data-tone="waiting"] {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.approval-text {
  color: var(--muted);
  font-weight: 600;
}

.detail-grid {
  gap: 16px;
  align-items: start;
}

.field-section {
  padding: 16px;
}

.history-section {
  grid-column: 1 / -1;
}

.field-section header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.section-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-badge.internal {
  background: rgba(93, 78, 103, 0.14);
  color: var(--plum);
}

.section-badge.visible {
  background: rgba(31, 123, 116, 0.12);
  color: var(--teal);
}

.section-badge.editable {
  background: rgba(104, 121, 46, 0.16);
  color: #55621d;
}

.field-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field-card {
  border-radius: 18px;
  border: 1px solid rgba(58, 52, 44, 0.08);
  background: rgba(255, 255, 255, 0.8);
  padding: 12px;
}

.field-card p {
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.field-display {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(44, 52, 48, 0.08);
  background: rgba(248, 243, 235, 0.9);
  color: #495550;
  line-height: 1.6;
}

.field-display-long {
  min-height: 0;
  white-space: pre-wrap;
}

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.batch-import-notice {
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(186, 114, 37, 0.18);
  background: rgba(255, 244, 227, 0.85);
  color: #8a4c12;
  font-size: 0.9rem;
  line-height: 1.5;
}

.batch-editor-feedback {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 3px solid var(--teal);
  background: rgba(31, 123, 116, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.batch-editor-feedback.is-error {
  border-left-color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  color: #8f1d15;
}

.batch-editor-feedback.is-success {
  border-left-color: #237b4b;
  background: rgba(35, 123, 75, 0.08);
  color: #1f633d;
}

.execution-row-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(54, 56, 51, 0.1);
}

.execution-row-filters .filter-field {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.execution-row-filters .filter-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.execution-row-filters .filter-field input {
  min-height: 36px;
}

.execution-row-filters > .muted {
  margin-left: auto;
  padding-bottom: 8px;
}

@media (max-width: 720px) {
  .execution-row-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .execution-row-filters .filter-field,
  .execution-row-filters > button {
    width: 100%;
    min-width: 0;
  }

  .execution-row-filters > .muted {
    margin-left: 0;
    padding-bottom: 0;
  }
}

.batch-table td.is-invalid {
  background: rgba(180, 35, 24, 0.08);
}

.batch-table [data-batch-field][aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

.batch-upload-helper {
  min-width: 210px;
}

.batch-editor-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* External suppliers use a vertical flow: upload controls first, execution table below. */
.external-batch-editor-layout {
  grid-template-columns: minmax(0, 1fr);
}

.batch-side-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(54, 56, 51, 0.08);
  background: rgba(255, 251, 246, 0.88);
}

.batch-side-actions {
  display: grid;
  gap: 8px;
}

.batch-side-actions > button,
.batch-side-actions > label,
.batch-side-actions .upload-helper {
  width: 100%;
  min-width: 0;
}

.batch-side-actions .upload-helper {
  justify-content: center;
}

.batch-side-meta {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(54, 56, 51, 0.08);
}

.batch-side-meta strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.batch-editor-main {
  min-width: 0;
}

.batch-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(54, 56, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  max-width: 100%;
  width: 100%;
  scrollbar-gutter: stable both-edges;
}

.batch-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.batch-table thead {
  background: #f7efe4;
}

.batch-table th,
.batch-table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(54, 56, 51, 0.08);
  border-right: 1px solid rgba(54, 56, 51, 0.06);
  vertical-align: top;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  max-width: 140px;
}

.batch-table th {
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--accent-deep);
  font-weight: 700;
}

.batch-table td {
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
}

.batch-table-dense th,
.batch-table-dense td {
  padding: 4px 5px;
  max-width: 112px;
  font-size: 0.78rem;
}

.batch-table-dense th.is-media,
.batch-table-dense td.is-media {
  min-width: 98px;
  max-width: 120px;
}

.batch-table-dense th.is-long,
.batch-table-dense td.is-long {
  min-width: 100px;
  max-width: 124px;
}

.batch-table-dense th.is-date,
.batch-table-dense td.is-date {
  min-width: 82px;
  max-width: 92px;
}

.batch-table-dense th.is-id,
.batch-table-dense td.is-id,
.batch-table-dense th.is-number,
.batch-table-dense td.is-number,
.batch-table-dense th.is-boolean,
.batch-table-dense td.is-boolean,
.batch-table-dense th.is-compact,
.batch-table-dense td.is-compact {
  min-width: 72px;
  max-width: 86px;
}

.batch-table-dense .batch-cell input,
.batch-table-dense .batch-cell textarea,
.batch-table-dense .batch-cell select {
  padding: 3px 5px;
  font-size: 0.74rem;
}

.batch-table-dense .batch-cell textarea {
  min-height: 34px;
}

.batch-table tbody tr:nth-child(2n) td {
  background: rgba(252, 247, 240, 0.62);
}

.batch-table th:last-child,
.batch-table td:last-child {
  border-right: none;
}

.batch-table th.is-media,
.batch-table td.is-media {
  min-width: 130px;
  max-width: 160px;
}

.batch-table th.is-long,
.batch-table td.is-long {
  min-width: 120px;
  max-width: 160px;
}

.batch-table th.is-id,
.batch-table td.is-id,
.batch-table th.is-number,
.batch-table td.is-number {
  min-width: 72px;
  max-width: 92px;
}

.batch-table th.is-date,
.batch-table td.is-date {
  min-width: 88px;
  max-width: 108px;
}

.batch-table th.is-boolean,
.batch-table td.is-boolean {
  min-width: 62px;
  max-width: 78px;
}

.batch-table th.is-compact,
.batch-table td.is-compact {
  min-width: 76px;
  max-width: 104px;
}

.batch-table th.is-action,
.batch-table td.is-action {
  min-width: 116px;
  max-width: 132px;
  white-space: nowrap;
}

.order-match-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.order-match-badge.is-match-accurate { background: #dcfce7; color: #166534; }
.order-match-badge.is-match-incorrect { background: #fee2e2; color: #991b1b; }
.order-match-badge.is-match-not-found { background: #fef3c7; color: #92400e; }
.order-match-badge.is-match-pending { background: #e2e8f0; color: #475569; }

.internal-match-tools {
  padding: 20px 0;
  border-top: 1px solid var(--line, #dbe3ef);
  border-bottom: 1px solid var(--line, #dbe3ef);
}

.match-tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.match-tool-note { display: none !important; }

.dashboard-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line, #dbe3ef);
}

.dashboard-section:first-child { padding-top: 0; }

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dashboard-keyword { grid-column: span 2; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-metric {
  position: relative;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #dbeafe 0%, #165dff 52%, #93c5fd 100%) border-box;
}

.dashboard-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-metric-help {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #d0d7de;
  border-radius: 50%;
  background: #f1f3f5;
  color: #4b5563;
  cursor: help;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-metric-help::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: min(260px, 70vw);
  padding: 8px 10px;
  border-radius: 6px;
  background: #1f2329;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dashboard-metric-help:hover::after,
.dashboard-metric-help:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-metric span,
.dashboard-metric small { display: block; color: #64748b; }
.dashboard-metric strong { display: block; margin: 8px 0 6px; color: #123a70; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.dashboard-metric .dashboard-metric-subvalue { margin-bottom: 4px; color: #165dff; font-weight: 700; }
.dashboard-amount-metric > strong { margin-bottom: 14px; font-size: clamp(28px, 2.6vw, 38px); }
.dashboard-amount-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.dashboard-amount-breakdown-item { min-width: 0; }
.dashboard-amount-breakdown-label { margin-bottom: 3px; font-size: 12px; }
.dashboard-amount-breakdown-value {
  margin: 0 !important;
  color: #1f2329 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}
.dashboard-review-breakdown {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--line, #dbe3ef);
}
.dashboard-review-breakdown-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.dashboard-review-breakdown-item span {
  flex: 0 1 auto;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}
.dashboard-review-breakdown-item small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}
.dashboard-table-wrap { width: 100%; overflow-x: auto; margin-top: 16px; }
.dashboard-table { width: 100%; min-width: 1020px; }
.dashboard-table td:first-child strong,
.dashboard-table td:first-child span { display: block; }
.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 14px;
  color: #1f2329;
}
.dashboard-pagination-summary { font-size: 13px; font-weight: 600; }
.dashboard-pagination-page-totals {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.dashboard-pagination-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; }
.dashboard-pagination-controls button { white-space: nowrap; }
.dashboard-pagination-controls select,
.dashboard-pagination-jump input { min-height: 34px; border: 1px solid #d1fae5; border-radius: 6px; background: #ffffff; color: #1f2329; padding: 0 8px; }
.dashboard-pagination-controls select { width: auto; min-width: 0; }
.dashboard-pagination-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.dashboard-pagination-jump input { width: 70px; }
.provider-result-focus-actions { display: inline-flex; align-items: center; }
.tracking-chip-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tracking-chip-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.tracking-chip-button:focus-visible {
  outline: 2px solid #165dff;
  outline-offset: 2px;
}
.dashboard-tracking-modal {
  width: min(900px, 94vw);
}
.dashboard-tracking-table {
  min-width: 760px;
}

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

@media (max-width: 640px) {
  .dashboard-filters,
  .dashboard-metrics { grid-template-columns: 1fr; }
  .dashboard-amount-breakdown { grid-template-columns: 1fr; }
  .dashboard-keyword { grid-column: auto; }
  .match-tool-row > * { width: 100%; }
}

.batch-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 48px;
}

.batch-row-action-button {
  width: 100%;
  padding: 3px 5px;
  font-size: 0.7rem;
  line-height: 1.2;
}

.batch-table td.is-action {
  vertical-align: middle;
}

.batch-table tr.is-row-locked td {
  background: rgba(249, 246, 239, 0.78);
}

.batch-cell {
  display: grid;
  gap: 4px;
}

.batch-cell.is-media .upload-helper {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.batch-cell input,
.batch-cell textarea,
.batch-cell select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 4px;
  border-color: rgba(44, 53, 49, 0.14);
  background: #fff;
  box-shadow: none;
  font-size: 0.8rem;
}

.batch-cell textarea {
  min-height: 40px;
  line-height: 1.45;
  resize: vertical;
}

.batch-cell.is-long textarea {
  min-height: 40px;
}

.batch-cell.is-media textarea {
  min-height: 40px;
}

.batch-cell.is-boolean select,
.batch-cell.is-date input {
  min-height: 32px;
}

.batch-cell.is-id input,
.batch-cell.is-number input {
  min-height: 32px;
}

.readonly-grid-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(54, 56, 51, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.readonly-pairs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.readonly-pairs-table th,
.readonly-pairs-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(54, 56, 51, 0.06);
  border-bottom: 1px solid rgba(54, 56, 51, 0.08);
  vertical-align: top;
}

.readonly-pairs-table tr:last-child th,
.readonly-pairs-table tr:last-child td {
  border-bottom: none;
}

.readonly-pairs-table th {
  width: 110px;
  font-size: 0.76rem;
  color: var(--accent-deep);
  background: rgba(247, 239, 228, 0.88);
}

.readonly-pairs-table td {
  background: rgba(255, 255, 255, 0.96);
}

.readonly-pairs-table th.is-empty,
.readonly-pairs-table td.is-empty {
  background: rgba(255, 255, 255, 0.96);
  border-right: none;
}

.readonly-pairs-table td .batch-cell-text {
  font-size: 0.8rem;
  line-height: 1.45;
}

.batch-remove-button {
  width: 100%;
  white-space: normal;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 4px;
  font-size: 0.74rem;
}

.batch-cell-text {
  line-height: 1.45;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
}

.asin-match-value,
.asin-match-cell .batch-cell-text {
  color: #c62828;
  font-weight: 700;
}

.admin-only-readonly {
  color: var(--muted);
  background: rgba(17, 101, 154, 0.06);
  border: 1px solid rgba(17, 101, 154, 0.18);
  border-radius: 4px;
  padding: 5px 6px;
}

.batch-cell-text.is-multiline {
  white-space: pre-wrap;
}

.batch-cell-text.is-empty {
  color: var(--muted);
}

.batch-cell-text a {
  color: #2d74d7;
  text-decoration: none;
  word-break: break-all;
}

.batch-cell-text a:hover {
  text-decoration: underline;
}

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

.batch-image-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(54, 56, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  color: inherit;
}

.batch-image-card img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.batch-image-card span {
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-word;
}

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

.business-history-disclosure {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid rgba(54, 56, 51, 0.12);
  border-bottom: 1px solid rgba(54, 56, 51, 0.08);
  background: transparent;
}

.business-history-disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 2px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.business-history-disclosure summary::-webkit-details-marker {
  display: none;
}

.business-history-disclosure summary span {
  font-weight: 700;
}

.business-history-disclosure summary small {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.business-history-disclosure summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.business-history-disclosure[open] summary::after {
  content: "−";
}

.business-history-disclosure > .history-list {
  padding: 4px 2px 14px;
}

.history-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(54, 56, 51, 0.08);
}

.history-item:first-child {
  border-top: none;
  padding-top: 0;
}

.history-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 0 0 4px rgba(31, 123, 116, 0.08);
}

.history-body {
  display: grid;
  gap: 4px;
}

.history-body span {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-panel {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(50, 56, 49, 0.16);
}

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

.form-card {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(50, 56, 49, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.form-card-blocked {
  grid-column: 1 / -1;
}

.form-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.form-card .form-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.submit-master-card {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-self: start;
  overflow: hidden;
}

.submit-master-head {
  display: grid;
  gap: 6px;
}

.submit-master-head > div {
  min-width: 0;
}

.submit-card-block {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(50, 56, 49, 0.08);
  background: transparent;
}

.submit-block-head {
  display: grid;
  gap: 6px;
}

.submit-card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

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

.submit-system-strip article {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(44, 52, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.submit-system-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.submit-system-strip strong {
  display: block;
  font-size: 1rem;
}

.submit-field-zone {
  display: grid;
  gap: 10px;
}

.submit-zone-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.submit-card-fields-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  grid-auto-flow: dense;
}

.form-row-compact {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.form-row-compact.is-wide {
  grid-column: span 2;
}

.form-row-compact.is-full {
  grid-column: 1 / -1;
}

.form-row-compact textarea {
  min-height: 72px;
}

.submit-card-actions {
  background: rgba(255, 251, 246, 0.92);
}

.batch-table-request {
  min-width: 1540px;
}

.batch-table-request th,
.batch-table-request td {
  padding: 4px 4px;
  max-width: 88px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.batch-table-request th {
  font-size: 0.72rem;
}

.batch-table-request th.is-long,
.batch-table-request td.is-long {
  min-width: 104px;
  max-width: 128px;
}

.batch-table-request th.is-media,
.batch-table-request td.is-media {
  min-width: 92px;
  max-width: 114px;
}

.batch-table-request th.is-date,
.batch-table-request td.is-date {
  min-width: 78px;
  max-width: 86px;
}

.batch-table-request th.is-number,
.batch-table-request td.is-number,
.batch-table-request th.is-id,
.batch-table-request td.is-id,
.batch-table-request th.is-boolean,
.batch-table-request td.is-boolean,
.batch-table-request th.is-compact,
.batch-table-request td.is-compact {
  min-width: 62px;
  max-width: 74px;
}

.batch-table-request .batch-cell {
  gap: 3px;
}

.batch-table-request .batch-cell input,
.batch-table-request .batch-cell textarea,
.batch-table-request .batch-cell select {
  padding: 3px 5px;
  font-size: 0.76rem;
}

.batch-table-request .batch-cell textarea {
  min-height: 34px;
}

.batch-table-request .batch-remove-button {
  padding: 4px 3px;
  font-size: 0.7rem;
}

.request-import-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: 1fr;
}

.request-import-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding-bottom: 2px;
}

.request-import-toolbar .upload-helper {
  min-width: 0;
}

.request-import-stack .batch-table-wrap {
  width: 100%;
  order: 3;
}

.request-import-stack .batch-import-notice {
  order: 2;
  margin: 0;
}

.submit-actions-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .submit-actions-line {
    align-items: stretch;
    flex-direction: column;
  }

  .request-import-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .request-import-toolbar > button,
  .request-import-toolbar > label {
    width: 100%;
  }
}

.submit-card-block:first-of-type {
  padding-top: 0;
  border-top: none;
}

.review-card,
.action-card,
.external-card,
.admin-card,
.rule-card {
  padding: 14px;
}

.review-worklist,
.external-worklist,
.result-worklist,
.admin-logs {
  display: grid;
  gap: 10px;
}

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

.review-task-title {
  cursor: pointer;
  transition: color 180ms ease;
}

.review-task-title:hover {
  color: var(--accent-deep);
}

.review-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.review-card-detail-grid article {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 52, 48, 0.08);
}

.review-card-detail-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.review-card-detail-grid p {
  color: var(--ink);
  line-height: 1.5;
  font-size: 0.9rem;
}

.review-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.review-jump-button {
  white-space: nowrap;
}

.review-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.review-detail-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 52, 48, 0.08);
}

.review-detail-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.review-detail-card p {
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.92rem;
  word-break: break-word;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.review-card-selectable,
.external-card-selectable {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.review-card-selectable:hover,
.external-card-selectable:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 98, 56, 0.24);
}

.review-card-selectable.is-selected,
.external-card-selectable.is-selected {
  border-color: rgba(202, 98, 56, 0.34);
  background:
    linear-gradient(180deg, rgba(202, 98, 56, 0.08), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 34px rgba(159, 66, 29, 0.12);
}

.review-tags,
.external-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(206, 98, 54, 0.1);
  color: var(--accent-deep);
}

.action-stack {
  gap: 14px;
}

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

.action-card-highlight {
  background:
    radial-gradient(circle at top right, rgba(29, 116, 110, 0.1), transparent 12rem),
    rgba(255, 251, 246, 0.94);
}

.result-rejection-notice {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-left: 4px solid #b42318;
  background: #fff4f2;
  color: #5f1713;
}

.result-rejection-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.result-rejection-heading strong {
  font-size: 1rem;
}

.result-rejection-heading span,
.result-rejection-meta,
.result-rejection-reason span {
  color: #8b413a;
  font-size: 0.84rem;
}

.result-rejection-reason {
  display: grid;
  gap: 4px;
}

.result-rejection-reason p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.action-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtle-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 53, 49, 0.08);
}

.success-button {
  color: #0f5f47;
  background: rgba(230, 249, 240, 0.96);
  border: 1px solid rgba(15, 95, 71, 0.18);
  box-shadow: none;
}

.warning-button {
  color: #8a4c12;
  background: rgba(255, 243, 227, 0.96);
  border: 1px solid rgba(186, 114, 37, 0.2);
  box-shadow: none;
}

.danger-button {
  color: #8f1f1f;
  background: rgba(255, 244, 244, 0.92);
  border: 1px solid rgba(143, 31, 31, 0.16);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
}

.admin-form-grid span {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-form-grid input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(44, 53, 49, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
}

.admin-form-grid input:focus {
  outline: 2px solid rgba(29, 116, 110, 0.18);
  border-color: rgba(29, 116, 110, 0.28);
}

.admin-form-span-2 {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

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

.account-list-header,
.account-list-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 1.2fr) minmax(140px, 0.8fr) minmax(220px, 1.2fr);
  gap: 14px;
  align-items: center;
}

.account-list-header {
  padding: 0 14px 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-list-row {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.account-list-main,
.account-list-email,
.account-list-role,
.account-list-note {
  min-width: 0;
}

.account-list-main strong,
.account-list-role strong,
.account-list-note strong {
  display: block;
  line-height: 1.45;
}

.account-list-main span,
.account-list-email span,
.account-list-role span,
.account-list-note span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

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

.task-rail {
  display: grid;
  gap: 10px;
}

.task-rail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(50, 56, 49, 0.08);
  background: rgba(255, 251, 246, 0.92);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.task-rail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 98, 56, 0.24);
}

.task-rail-card.is-selected {
  border-color: rgba(202, 98, 56, 0.34);
  background:
    linear-gradient(180deg, rgba(202, 98, 56, 0.08), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 34px rgba(159, 66, 29, 0.12);
}

.task-rail-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.task-rail-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.task-rail-title strong {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 32, 29, 0.08);
  font-size: 0.84rem;
}

.task-rail-title h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.task-rail-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.task-rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.task-rail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(44, 52, 48, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
}

.task-rail-empty {
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(50, 56, 49, 0.16);
  background: rgba(255, 255, 255, 0.68);
}

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

.external-execution-card {
  width: 100%;
}

.external-execution-card .card-heading {
  margin-bottom: 12px;
}

.result-list,
.result-action-stack {
  display: grid;
  gap: 10px;
}

.result-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.edit-card-hero {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(202, 98, 56, 0.12), transparent 13rem),
    rgba(255, 255, 255, 0.82);
}

.edit-card {
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(50, 56, 49, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.edit-card.is-editing {
  border-color: rgba(29, 116, 110, 0.22);
  box-shadow: 0 16px 30px rgba(29, 116, 110, 0.08);
}

.edit-card strong,
.readonly-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.edit-card p {
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.readonly-card {
  background: rgba(252, 247, 240, 0.86);
}

.upload-helper {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(202, 98, 56, 0.28);
  background: rgba(202, 98, 56, 0.05);
  cursor: pointer;
}

.upload-helper input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.upload-helper-note {
  margin-top: 8px;
}

.admin-matrix,
.admin-rules {
  display: grid;
  gap: 10px;
  align-items: start;
}

.admin-matrix {
  grid-template-columns: 1fr;
}

.admin-card-span-full {
  grid-column: 1 / -1;
}

.admin-card-span-5 {
  grid-column: 1 / -1;
}

.admin-card-span-7 {
  grid-column: 1 / -1;
}

.admin-card,
.rule-card {
  display: grid;
  gap: 12px;
}

.admin-card h3,
.rule-card h3 {
  font-size: 1.04rem;
  line-height: 1.45;
}

.permission-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.permission-table th,
.permission-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(54, 56, 51, 0.08);
  vertical-align: top;
  line-height: 1.6;
  word-break: break-word;
}

.rule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 123, 116, 0.08);
  color: var(--teal);
  font-size: 0.9rem;
}

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

.admin-section-head p {
  color: var(--muted);
  line-height: 1.65;
}

.permission-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.permission-strip-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.permission-strip-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.permission-strip-card strong {
  font-size: 1.06rem;
  line-height: 1.4;
}

.permission-strip-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.permission-strip-card.internal {
  background: linear-gradient(180deg, rgba(96, 80, 109, 0.08), rgba(255, 255, 255, 0.82));
}

.permission-strip-card.visible {
  background: linear-gradient(180deg, rgba(29, 116, 110, 0.08), rgba(255, 255, 255, 0.82));
}

.permission-strip-card.editable {
  background: linear-gradient(180deg, rgba(107, 123, 52, 0.1), rgba(255, 255, 255, 0.82));
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.role-permission-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.role-permission-card header {
  display: grid;
  gap: 6px;
}

.role-permission-card header strong {
  font-size: 1.08rem;
}

.role-permission-card header span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.role-permission-list article {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(44, 53, 49, 0.08);
}

.role-permission-list article:first-child {
  padding-top: 0;
  border-top: none;
}

.role-permission-list span {
  font-size: 0.8rem;
  color: var(--muted);
}

.role-permission-list p {
  line-height: 1.6;
}

.account-overview-list {
  display: grid;
  gap: 12px;
}

.account-overview-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.2fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0 14px 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-overview-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.2fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
}

.account-overview-row {
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.account-overview-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-overview-main span {
  color: var(--muted);
  word-break: break-word;
  font-size: 0.9rem;
}

.account-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-overview-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.account-overview-side .muted {
  text-align: right;
}

.admin-card-summary {
  background:
    radial-gradient(circle at top right, rgba(29, 116, 110, 0.08), transparent 13rem),
    rgba(255, 251, 246, 0.92);
}

.account-management {
  display: grid;
  gap: 12px;
}

.service-provider-directory {
  display: grid;
  gap: 16px;
}

.service-provider-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.service-provider-create-form label {
  display: grid;
  gap: 7px;
}

.service-provider-create-form label span {
  color: var(--muted);
  font-size: 0.84rem;
}

.service-provider-table {
  min-width: 0;
  overflow-x: auto;
}

.service-provider-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 0.9fr) 100px minmax(150px, 0.8fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  min-width: 820px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.service-provider-header {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.service-provider-row input {
  width: 100%;
}

.service-provider-row .account-status-badge {
  width: fit-content;
  margin: 0;
}

.service-provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-result-admin-section {
  display: grid;
  gap: 16px;
}

.admin-data-warning {
  padding: 12px 14px;
  border: 1px solid #f3c969;
  border-radius: 10px;
  background: #fff8e6;
  color: #7a5200;
  line-height: 1.6;
}

.provider-result-admin-anchor {
  align-self: flex-start;
  text-decoration: none;
}

.provider-result-provider-zones,
.provider-result-link-list {
  display: grid;
  gap: 12px;
}

.provider-result-provider-zone {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.provider-result-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.provider-result-zone-head strong {
  display: block;
  color: var(--ink);
}

.provider-result-zone-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-result-link-card.is-superseded {
  opacity: 0.72;
  background: #f8fafc;
}

.provider-result-collapse-button {
  justify-self: start;
}

.provider-result-collapse-button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent, #10b981) 45%, var(--line));
  background: #ecfdf5;
  color: #065f46;
}

.provider-result-link-collapse {
  display: grid;
  gap: 12px;
}

.provider-result-link-collapse[hidden] {
  display: none;
}

.provider-result-link-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.provider-result-link-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}

.provider-result-link-dialog-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.provider-result-link-dialog-form h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.provider-result-link-dialog-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.provider-result-link-dialog-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.provider-result-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.provider-result-link-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
  padding: 14px;
}

.provider-result-link-card.is-active {
  border-color: color-mix(in srgb, var(--accent, #10b981) 45%, var(--line));
}

.provider-result-link-head,
.provider-result-link-url,
.provider-result-link-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-result-link-head,
.provider-result-link-head {
  justify-content: space-between;
}

.provider-result-link-head > div,
.provider-result-link-url {
  min-width: 0;
}

.provider-result-link-head strong {
  display: block;
  color: var(--ink);
}

.provider-result-link-head span,
.provider-result-link-stats,
.provider-result-link-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-result-link-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.provider-result-link-stats strong {
  color: var(--ink);
}

.provider-result-link-controls {
  flex-wrap: wrap;
  margin-top: 12px;
}

.provider-result-link-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-result-link-controls input {
  width: 76px;
}

.provider-result-link-url {
  margin-top: 10px;
}

.provider-result-link-url input {
  min-width: 0;
  flex: 1;
}

.provider-result-link-hint {
  margin: 10px 0 0;
}

.provider-result-link-row-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.provider-result-link-row-summary span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft, #f8fafc);
}

.provider-result-match-value {
  color: #dc2626;
}

.provider-result-auto-match-value {
  display: block;
  overflow-wrap: anywhere;
}

.provider-result-match-failure {
  display: block;
  margin-top: 3px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.readonly-value {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft, #f8fafc);
  color: var(--ink);
}

@media (max-width: 720px) {
  .service-provider-create-form {
    grid-template-columns: 1fr;
  }
}

.account-management-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.account-search-field {
  display: grid;
  gap: 8px;
  min-width: min(420px, 100%);
}

.account-search-field span {
  font-size: 0.84rem;
  color: var(--muted);
}

.account-search-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.account-management-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.account-management-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.account-management-panel-head h4 {
  margin: 0;
  font-size: 1rem;
}

.account-management-header,
.account-management-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.9fr) minmax(110px, 0.65fr) minmax(210px, 1.1fr) minmax(160px, 0.95fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.account-management-header {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-management-row {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(44, 53, 49, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.account-management-row.is-selected {
  border-color: rgba(29, 116, 110, 0.24);
  background:
    linear-gradient(180deg, rgba(243, 251, 248, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 32px rgba(29, 116, 110, 0.08);
}

.account-management-main,
.account-management-role,
.account-management-status,
.account-management-activity,
.account-management-remark,
.account-management-actions {
  min-width: 0;
}

.account-management-main strong,
.account-management-role strong,
.account-management-status strong,
.account-management-activity strong,
.account-management-remark strong {
  display: block;
  line-height: 1.45;
}

.account-management-main span,
.account-management-role span,
.account-management-status span,
.account-management-activity span,
.account-management-remark span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-status-badge.is-active {
  color: #0f5f47;
  background: rgba(227, 246, 235, 0.92);
}

.account-status-badge.is-inactive {
  color: #8f1f1f;
  background: rgba(255, 236, 236, 0.96);
}

.account-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
}

.account-management-actions button {
  min-width: 72px;
}

.account-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-create-actions button {
  min-width: 160px;
}

.ghost-button.is-current {
  border-color: rgba(29, 116, 110, 0.22);
  background: rgba(232, 247, 245, 0.94);
  color: var(--teal);
}

.account-editing-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(29, 116, 110, 0.14);
  background: rgba(232, 247, 245, 0.76);
}

.account-editing-notice span {
  color: var(--muted);
}

.page-shell[data-shell="admin"] .admin-center-grid > .card {
  border-radius: 26px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .page-shell {
    max-width: 1040px;
    padding-inline: 10px;
  }

  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"] {
    width: 100%;
    max-width: 100%;
    padding-inline: 8px;
  }

  .layout,
  .split-layout,
  .hero {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-spotlight,
  .stats-grid,
  .overview-filter-grid,
  .board,
  .field-grid,
  .form-grid,
  .edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-card-fields-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-matrix {
    grid-template-columns: 1fr;
  }

  .admin-card-span-5,
  .admin-card-span-7 {
    grid-column: 1 / -1;
  }

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

  .module-summary-grid {
    grid-template-columns: 1fr;
  }

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

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

  .top-access-credentials {
    grid-template-columns: 1fr;
  }

  .readonly-pairs-table,
  .readonly-pairs-table tbody,
  .readonly-pairs-table tr {
    display: block;
  }

  .readonly-pairs-table tr {
    border-bottom: 1px solid rgba(54, 56, 51, 0.08);
  }

  .readonly-pairs-table tr:last-child {
    border-bottom: none;
  }

  .readonly-pairs-table th,
  .readonly-pairs-table td {
    display: block;
    width: 100%;
    border-right: none;
  }

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

  .submit-card-fields,
  .submit-card-fields-dense,
  .review-card-detail-grid,
  .task-rail-card {
    grid-template-columns: 1fr;
  }

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

  .account-overview-header,
  .account-overview-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .account-management-header,
  .account-management-row {
    grid-template-columns: 1fr;
  }

  .account-overview-side {
    justify-items: start;
  }

  .account-overview-side .muted {
    text-align: left;
  }

  .task-rail-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page-shell {
    max-width: 100%;
    padding: 12px 8px 24px;
  }

  .sidebar,
  .overview-spotlight,
  .stats-grid,
  .overview-filter-grid,
  .board,
  .field-grid,
  .form-grid,
  .edit-grid,
  .hero-grid,
  .hero-inline-metrics {
    grid-template-columns: 1fr;
  }

  .submit-system-strip {
    grid-template-columns: 1fr;
  }

  .submit-card-fields,
  .submit-card-fields-dense,
  .review-card-detail-grid,
  .result-detail-grid,
  .overview-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-matrix,
  .role-permission-grid,
  .permission-strip {
    grid-template-columns: 1fr;
  }

  .account-overview-header,
  .account-overview-row,
  .account-list-header,
  .account-list-row,
  .account-management-header,
  .account-management-row {
    grid-template-columns: 1fr;
  }

  .account-overview-header,
  .account-list-header,
  .account-management-header {
    display: none;
  }

  .card-heading,
  .section-heading,
  .hero-panel-heading,
  .workspace-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .submit-master-head,
  .submit-zone-head,
  .admin-section-head,
  .account-management-toolbar,
  .account-management-panel-head,
  .review-card-top,
  .field-section header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .task-rail-card,
  .spotlight-meta-grid,
  .command-metrics {
    grid-template-columns: 1fr;
  }

  .review-detail-head {
    flex-direction: column;
  }

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

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

  .submit-master-head {
    flex-direction: column;
  }

  .submit-master-metrics {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* 2026-08-20 enterprise layout refresh */
:root {
  --sand: #f5f7fb;
  --cream: #ffffff;
  --cream-strong: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --teal: #1e40af;
  --moss: #475569;
  --plum: #334155;
  --night: #1e3a8a;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  --radius-2xl: 8px;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --font-ui: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

body {
  background: #f5f7fb;
  color: var(--ink);
}

body::before {
  display: none;
}

.page-shell,
.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"],
.page-shell[data-shell="login"] {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 16px 40px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  width: 100%;
  background: #1d4ed8;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.topbar-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-link,
.topbar-mobile-link {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  border-radius: 0;
  padding: 18px 14px;
  font-size: 14px;
  line-height: 1;
}

.topbar-link:hover,
.topbar-mobile-link:hover,
.topbar-link.is-active,
.topbar-mobile-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}

.topbar-link.is-disabled,
.topbar-mobile-link.is-disabled {
  opacity: 0.5;
}

.topbar-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.topbar-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}

.topbar-user,
.topbar-mobile-user {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-user strong,
.topbar-mobile-user strong {
  font-size: 13px;
  font-weight: 600;
}

.topbar-user span,
.topbar-mobile-user span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.topbar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.topbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.topbar-mobile,
.topbar-legacy {
  display: none;
}

#topbar-mobile-links {
  display: grid;
}

.admin-shell {
  display: grid;
  gap: 16px;
}

.admin-center-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-module-nav {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.admin-module-nav > .section-kicker {
  margin: 0 12px 8px;
}

.admin-center-content {
  min-width: 0;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-page-header h2 {
  margin: 4px 0 0;
}

.admin-page-header p {
  margin: 0;
  max-width: 540px;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-page-actions .muted {
  flex: 1 1 auto;
}

.admin-cleanup-shortcut {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-subnav {
  display: grid;
  gap: 2px;
}

.admin-subnav-link {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-subnav-link strong {
  font-size: 14px;
}

.admin-subnav-link span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.admin-subnav-link.is-active {
  border-left-color: var(--primary);
  background: rgba(29, 78, 216, 0.06);
}

.admin-subnav-link:hover:not(:disabled) {
  background: rgba(29, 78, 216, 0.05);
  transform: none;
  box-shadow: none;
}

.admin-center-panel {
  display: block;
}

.admin-center-panel[hidden] {
  display: none !important;
}

.task-cleanup-warning {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid #b42318;
  background: #fff4f2;
  color: #7a271a;
  font-size: 13px;
  line-height: 1.6;
}

.task-cleanup-search-field {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-bottom: 16px;
}

.task-cleanup-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.task-cleanup-table {
  min-width: 860px;
  margin: 0;
}

.task-cleanup-table td,
.task-cleanup-table th {
  vertical-align: middle;
}

.task-cleanup-table .danger-button {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-actions .muted {
    max-width: none;
  }

  .admin-cleanup-shortcut {
    width: 100%;
  }
}

.system-banner {
  margin-bottom: 16px;
}

.top-access-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.top-access-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-access-tab {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: #fff;
  box-shadow: none;
  color: #334155;
}

.top-access-tab strong {
  font-size: 13px;
  font-weight: 600;
}

.top-access-tab span {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.top-access-tab.is-active,
.top-access-tab.is-logged-in {
  border-color: #93c5fd;
  background: #eff6ff;
}

.top-access-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.top-access-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  gap: 10px;
}

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

.login-status {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ink);
}

.login-status .login-status-actions {
  margin-top: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  padding: 0;
  max-height: none;
  overflow: visible;
  gap: 20px;
}

.content {
  gap: 40px;
}

.content-section {
  display: grid;
  gap: 24px;
}

.card,
.hero-copy-block,
.hero-panel,
.field-section,
.action-card,
.review-card,
.external-card,
.admin-card,
.rule-card,
.edit-card,
.form-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dark-card,
.glass {
  color: var(--ink);
  background: transparent;
}

.dark-card .section-kicker,
.dark-card .muted {
  color: var(--muted);
}

.workspace-hero,
#role-switch-card,
#tips-card {
  display: none !important;
}

.content-section > .card,
.split-layout > .card,
.admin-center-grid > .card,
.field-section,
.action-card,
.review-card,
.external-card,
.admin-card,
.rule-card,
.edit-card,
.form-card,
.module-summary-card {
  background: #fff;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.card-heading,
.section-heading,
.field-section header,
.submit-master-head,
.submit-block-head,
.admin-section-head,
.account-management-panel-head {
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-kicker,
.panel-label,
.eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  letter-spacing: 0.08em;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  max-width: none;
}

h2 {
  font-size: 22px;
  line-height: 1.35;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

.muted,
.field-help,
.review-card span,
.task-meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.hint-tag,
.section-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: none;
}

.split-layout,
.admin-center-grid,
.result-detail-grid,
.review-detail-grid,
.module-summary-grid {
  align-items: start;
  gap: 24px;
}

.submit-master-card {
  gap: 20px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.submit-master-metrics,
.submit-system-strip,
.stats-grid,
.module-summary-grid {
  gap: 12px;
}

.submit-master-metrics article,
.submit-system-strip article,
.stat-card,
.module-summary-grid article,
.spotlight-scorecard {
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.spotlight-layout,
.spotlight-primary,
.spotlight-secondary {
  gap: 16px;
}

.overview-filter-grid,
.form-grid,
.edit-grid,
.field-grid {
  gap: 16px;
}

.task-rail-card,
.account-management-row,
.account-list-row,
.account-overview-row {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
}

.task-rail-card:hover,
.task-row:hover,
.process-step:hover,
button:hover:not(:disabled) {
  transform: none;
}

.process-card,
#process-card {
  padding: 0;
}

.process-nav {
  gap: 8px;
}

.process-step {
  color: #0f172a;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: none;
}

.process-step.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.process-step.is-locked {
  opacity: 0.65;
}

.process-step-index {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.process-step-body strong {
  color: #0f172a;
}

.process-step-body span {
  color: #64748b;
  font-size: 12px;
}

.task-table-wrap,
.batch-table-wrap,
.permission-table,
.task-table {
  box-shadow: none;
}

.batch-table-wrap,
.task-table-wrap {
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.empty-panel {
  padding: 16px 0 0;
}

button {
  border-radius: 8px;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

button:hover:not(:disabled) {
  box-shadow: none;
  background: #1d4ed8;
}

.ghost-button,
.subtle-button {
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.ghost-button:hover:not(:disabled),
.subtle-button:hover:not(:disabled) {
  background: #f8fafc;
}

.page-shell[data-shell="workspace"] .hero,
.page-shell[data-shell="admin"] .hero,
.page-shell[data-shell="login"] .layout {
  grid-template-columns: 1fr;
}

.page-shell[data-shell="login"] .sidebar {
  display: none;
}

.page-shell[data-shell="login"] .content {
  display: none;
}

.page-shell[data-shell="workspace"] .hero,
.page-shell[data-shell="admin"] .hero,
.hero,
.hero-copy-block,
.hero-panel {
  display: none !important;
}

@media (max-width: 1024px) {
  .topbar-menu,
  .topbar-user,
  .topbar-action {
    display: none;
  }

  .topbar-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-block;
  }

  .topbar-mobile.is-open {
    display: grid;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 12px;
  }

  .topbar-mobile-link {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-inline: 0;
  }

  .topbar-mobile-user {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-subnav {
    grid-template-columns: 1fr;
  }

  .admin-center-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-module-nav {
    position: static;
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-subnav-link {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .admin-subnav-link.is-active {
    border-bottom-color: var(--primary);
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: static;
  }

  .top-access-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .top-access-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding: 80px 12px 24px;
  }

  .topbar-inner {
    padding: 0 12px;
  }

  .top-access-credentials {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-page-header {
    display: grid;
    align-items: start;
  }

  .top-access-panel {
    align-items: stretch;
  }

  .top-access-actions {
    width: 100%;
  }

  .top-access-actions > button {
    flex: 1 1 100%;
  }

  .split-layout,
  .admin-center-grid,
  .review-detail-grid,
  .result-detail-grid,
  .module-summary-grid,
  .overview-filter-grid,
  .field-grid,
  .edit-grid,
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-08-20 modal login + full-width topbar hotfix */
.topbar-inner {
  max-width: none;
  width: 100%;
  padding-inline: 20px;
}

.topbar-login-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-login-actions[hidden],
.topbar-mobile-login-actions[hidden] {
  display: none !important;
}

.topbar-login-button,
.topbar-mobile-login-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.topbar-login-button:hover:not(:disabled),
.topbar-mobile-login-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: none;
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  margin: 84px auto 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

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

.auth-modal-body {
  display: grid;
  gap: 18px;
  padding: 18px 20px 20px;
}

.auth-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.auth-modal-close:hover:not(:disabled) {
  background: #f8fafc;
  color: #111827;
  transform: none;
  box-shadow: none;
}

.top-access-panel {
  display: grid;
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
}

.top-access-credentials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.top-access-actions > button {
  flex: 0 0 auto;
}

.page-shell,
.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"],
.page-shell[data-shell="login"] {
  max-width: 1200px;
  width: 100%;
  padding-inline: 16px;
}

.layout {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
}

.content {
  gap: 32px;
}

.content-section {
  gap: 20px;
}

.content-section > .card,
.split-layout > .card,
.admin-center-grid > .card,
.field-section,
.action-card,
.review-card,
.external-card,
.admin-card,
.rule-card,
.edit-card,
.form-card,
.module-summary-card {
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.task-table-wrap,
.batch-table-wrap,
.permission-table {
  border-radius: 0;
  box-shadow: none;
}

.top-access-shell {
  display: none !important;
}

@media (max-width: 1024px) {
  .topbar-menu,
  .topbar-user,
  .topbar-action,
  .topbar-login-actions {
    display: none;
  }

  .topbar-mobile.is-open {
    display: grid;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 16px 12px;
  }

  .topbar-mobile-login-actions {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    padding-inline: 12px;
  }

  .auth-modal-panel {
    width: calc(100vw - 20px);
    margin-top: 72px;
  }

  .auth-modal-header,
  .auth-modal-body {
    padding-inline: 14px;
  }

  .top-access-credentials {
    grid-template-columns: 1fr;
  }

  .top-access-actions {
    width: 100%;
  }

  .top-access-actions > button {
    flex: 1 1 100%;
  }
}

/* 2026-08-20 full-width workspace hotfix */
.page-shell,
.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"],
.page-shell[data-shell="login"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 20px;
}

.layout {
  width: 100%;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
}

.content,
.content-section,
.split-layout,
.admin-center-grid {
  width: 100%;
}

.split-layout,
.admin-center-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.task-table-wrap,
.batch-table-wrap,
.permission-table,
.result-detail-grid,
.review-detail-grid {
  width: 100%;
  max-width: none;
}

@media (max-width: 1024px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-inline: 16px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-layout,
  .admin-center-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-inline: 12px;
  }
}

/* final visibility guard: only the current main view should render */
.content-section {
  display: none !important;
}

.content-section.is-active {
  display: grid !important;
  gap: 20px;
}

.sidebar,
.content,
.content-section,
.split-layout,
.admin-center-grid,
.submit-shell,
.form-grid,
.field-section,
.request-import-stack,
.request-import-toolbar,
.submit-master-card,
.submit-actions-line {
  min-width: 0;
}

#view-submit {
  grid-template-columns: minmax(0, 1fr) !important;
}

#view-submit .submit-shell {
  display: block;
  width: 100%;
}

#view-submit .form-grid {
  grid-template-columns: 1fr !important;
}

#view-submit .submit-master-card {
  display: grid;
  gap: 16px;
  width: 100%;
}

#view-submit .submit-master-head {
  margin-bottom: 0;
}

#view-submit .field-section {
  padding-top: 0;
  border-top: none;
}

#view-submit .request-import-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px;
  width: 100%;
}

#view-submit .request-import-toolbar,
#view-submit .request-import-stack .batch-import-notice,
#view-submit .request-import-stack .batch-table-wrap {
  grid-column: 1 / -1;
}

#view-submit .request-import-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

#view-submit .request-import-stack .batch-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

#view-submit .batch-table-request {
  min-width: 1120px;
  width: max-content;
}

#view-submit .batch-table-request th,
#view-submit .batch-table-request td {
  min-width: 64px;
  max-width: 112px;
}

#view-submit .batch-table-request th.is-long,
#view-submit .batch-table-request td.is-long {
  min-width: 116px;
  max-width: 156px;
}

#view-submit .batch-table-request th.is-media,
#view-submit .batch-table-request td.is-media {
  min-width: 98px;
  max-width: 128px;
}

#view-submit .batch-table-request th.is-date,
#view-submit .batch-table-request td.is-date {
  min-width: 88px;
  max-width: 96px;
}

#view-submit .submit-record-filter-panel {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

#view-submit .submit-record-filter-panel h3 {
  margin-bottom: 4px;
}

#view-submit .submit-record-action-column {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 148px;
  min-width: 148px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -8px 0 12px rgba(31, 41, 55, 0.06);
}

#view-submit thead .submit-record-action-column {
  z-index: 3;
  background: rgba(248, 240, 230, 0.98);
}

#view-submit .submit-record-action-column .ghost-button {
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

#view-submit .submit-record-action-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

#view-submit .submit-record-action-group button {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
}

#view-submit .submit-record-detail-panel {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#view-submit .submit-record-detail-panel > .section-heading {
  align-items: center;
}

#view-submit .submit-record-filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

#view-submit .submit-record-filter-grid .filter-field {
  display: grid;
  gap: 5px;
  min-width: 220px;
}

#view-submit .submit-record-filter-grid .filter-field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

#view-submit .batch-table-request th,
#view-submit .batch-table-request td {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-submit .batch-table-request th:not(.is-action),
#view-submit .batch-table-request td:not(.is-action) {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
}

#view-submit .batch-table-request th.is-action,
#view-submit .batch-table-request td.is-action {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
}

#view-submit .batch-table-request .batch-cell,
#view-submit .batch-table-request .batch-cell input,
#view-submit .batch-table-request .batch-cell textarea,
#view-submit .batch-table-request .batch-cell select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#view-submit .batch-table-request .batch-cell textarea {
  min-height: 56px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-submit .batch-table-request .request-image-upload {
  min-width: 0;
}

#view-submit .batch-table-request select[multiple] {
  min-width: 0;
  min-height: 32px;
}

#view-submit .submit-actions-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

#view-submit .submit-actions-line .muted {
  flex: 1 1 auto;
}

.external-execution-card,
.external-execution-card .detail-grid,
.external-execution-card .field-section,
.external-execution-card .batch-editor-layout,
.external-execution-card .batch-editor-main,
.external-execution-card .batch-side-panel,
.external-execution-card .readonly-grid-wrap {
  min-width: 0;
}

.external-execution-card .batch-editor-layout {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
}

.request-image-upload {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.request-image-upload > input[type="text"] {
  min-width: 0;
  background: #f6f8f7;
  color: var(--muted);
}

.request-image-upload .upload-helper {
  justify-content: center;
  min-height: 34px;
}

.batch-table-request select[multiple] {
  min-width: 170px;
  min-height: 92px;
  padding: 4px;
}

.batch-table-request select[multiple] option {
  padding: 4px 6px;
}

/* The process navigation now lives in the fixed top navigation, not beside the work area. */
.topbar-stage-row {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #1742ad;
}

.topbar-stage-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1440px;
  min-height: 44px;
  margin: 0 auto;
  padding: 4px 20px;
}

.topbar-stage-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-stage-inner .process-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}

.topbar-stage-inner .process-step {
  display: inline-flex;
  flex: 0 1 auto;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  box-shadow: none;
}

.topbar-stage-inner .process-step:hover:not(:disabled),
.topbar-stage-inner .process-step.is-active,
.topbar-stage-inner .process-step.is-current-stage {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.topbar-stage-inner .process-step.is-locked {
  opacity: 0.48;
}

.topbar-stage-inner .process-step-index {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
}

.topbar-stage-inner .process-step-body {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar-stage-inner .process-step-body strong {
  color: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.topbar-stage-inner .process-step-body span {
  display: none;
}

/* Keep the business area wide and give the request table a dense, readable row. */
.layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.sidebar {
  display: none !important;
}

.content {
  width: 100%;
  gap: 28px;
}

#view-submit .batch-table-request {
  min-width: 980px;
  width: max-content;
  table-layout: fixed;
}

#view-submit .batch-table-request th,
#view-submit .batch-table-request td {
  padding: 3px;
  line-height: 1.3;
}

#view-submit .batch-table-request .batch-cell {
  min-width: 0;
}

#view-submit .batch-table-request input,
#view-submit .batch-table-request select,
#view-submit .batch-table-request textarea {
  width: 100%;
  min-width: 0;
  padding: 4px 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

#view-submit .batch-table-request textarea {
  min-height: 44px;
  resize: vertical;
}

#view-submit .batch-table-request select[multiple] {
  min-width: 0;
  min-height: 72px;
}

#view-submit .request-image-upload {
  min-width: 0;
  gap: 4px;
}

@media (max-width: 1024px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-top: 136px;
  }

  .topbar-stage-inner {
    align-items: flex-start;
    padding-inline: 12px;
  }

  .topbar-stage-inner .process-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 600px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-top: 184px;
    padding-inline: 12px;
  }

  .topbar-stage-inner {
    gap: 8px;
    min-height: 42px;
  }

  .topbar-stage-label {
    padding-top: 6px;
  }

  #view-submit .batch-table-request {
    min-width: 900px;
  }
}

.task-share-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.task-share-heading p {
  margin: 5px 0 0;
}

.task-share-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.task-share-status.is-active { color: #126044; background: #e9f8f0; }
.task-share-status.is-inactive { color: #8b3f32; background: #fff0ed; }
.task-share-status.is-empty { color: #68736f; background: #f1f4f3; }

.task-share-status-panel {
  padding: 12px 0 2px;
}

.task-share-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.task-share-meta div { min-width: 0; }

.task-share-meta dt,
.task-share-current-url span {
  color: var(--muted);
  font-size: 0.76rem;
}

.task-share-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.task-share-current-url {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: #f5f8f7;
}

.task-share-link-name {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.task-share-current-url a {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.task-share-status-error {
  margin: 0;
  color: #a13e31;
}

@media (max-width: 900px) {
  .task-share-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .task-share-heading { align-items: center; }
  .task-share-meta { grid-template-columns: 1fr; }
}

/* Keep the supplier execution workspace vertical after the shared two-column rule. */
.external-execution-card .external-batch-editor-layout {
  grid-template-columns: minmax(0, 1fr);
}

.external-execution-card .batch-table-wrap,
.external-execution-card .readonly-grid-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.external-execution-card .readonly-pairs-table {
  min-width: 720px;
  table-layout: auto;
}

@media (max-width: 1024px) {
  #view-submit .batch-table-request {
    min-width: 980px;
  }

  .external-execution-card .batch-editor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #view-submit .request-import-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #view-submit .request-import-toolbar > button,
  #view-submit .request-import-toolbar > label,
  #view-submit .submit-actions-line > button {
    width: 100%;
  }

  #view-submit .submit-actions-line {
    flex-direction: column;
    align-items: stretch;
  }

  .external-execution-card .readonly-pairs-table {
    min-width: 0;
  }
}

/* 2026-09-09 final minimal enterprise theme */
:root {
  --sand: #ffffff;
  --cream: #ffffff;
  --cream-strong: #ffffff;
  --ink: #333333;
  --muted: #8a8f99;
  --line: #e5e7eb;
  --accent: #165dff;
  --accent-deep: #0e4bd8;
  --primary: #165dff;
  --teal: #165dff;
  --moss: #657180;
  --plum: #4e5969;
  --night: #1d2129;
  --shadow: none;
  --shadow-soft: none;
  --radius-2xl: 8px;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --font-ui: "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}

html,
body,
body.auth-guest {
  color: #333333;
  background: #ffffff;
}

body::before,
.auth-page::before,
.auth-page-glow {
  display: none !important;
}

.page-shell,
.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"],
.page-shell[data-shell="login"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 24px 40px;
  background: #ffffff;
}

.topbar {
  min-height: 56px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: #165dff;
  box-shadow: none;
}

.topbar-inner {
  width: 100%;
  max-width: none;
  min-height: 56px;
  padding: 0 24px;
  gap: 28px;
}

.topbar-left,
.topbar-right {
  gap: 18px;
}

.topbar-brand {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.topbar-menu {
  gap: 4px;
}

.topbar-link,
.topbar-mobile-link {
  min-height: 56px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
}

.topbar-link:hover,
.topbar-mobile-link:hover,
.topbar-link.is-active,
.topbar-mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -2px 0 #ffffff;
}

.topbar-action,
.topbar-login-button,
.topbar-mobile-login-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}

.topbar-action:hover:not(:disabled),
.topbar-login-button:hover:not(:disabled),
.topbar-mobile-login-button:hover:not(:disabled) {
  border-color: #ffffff;
  color: #165dff;
  background: #ffffff;
}

.topbar-user span,
.topbar-mobile-user span {
  color: rgba(255, 255, 255, 0.74);
}

.topbar-mobile {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: #165dff;
}

.topbar-stage-row {
  display: none !important;
}

.layout,
.content,
.content-section,
.admin-shell,
.admin-center-content {
  background: #ffffff;
}

.content {
  gap: 28px;
}

.content-section.is-active {
  gap: 20px;
}

.content-section > .card,
.split-layout > .card,
.admin-center-grid > .card,
.field-section,
.action-card,
.review-card,
.external-card,
.admin-card,
.rule-card,
.edit-card,
.form-card,
.module-summary-card,
.submit-master-card,
.submit-card-block {
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  color: #333333;
  background: #ffffff;
  box-shadow: none;
}

.card-heading,
.section-heading,
.field-section header,
.submit-master-head,
.submit-block-head,
.admin-section-head,
.account-management-panel-head,
.admin-page-header {
  border-color: #e5e7eb;
}

h1,
h2,
h3,
h4,
strong,
.workspace-module-title {
  color: #333333;
}

.muted,
.field-help,
.task-meta,
.review-card span,
.admin-subnav-link span {
  color: #8a8f99;
}

.section-kicker,
.panel-label,
.eyebrow,
a {
  color: #165dff;
}

.stats-grid,
.submit-master-metrics,
.submit-system-strip,
.module-summary-grid {
  gap: 12px;
}

.stat-card,
.submit-master-metrics article,
.submit-system-strip article,
.module-summary-grid article,
.spotlight-scorecard {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #333333;
  background: #ffffff;
  box-shadow: none;
}

.stat-card::before,
.stat-card::after,
.submit-master-metrics article::before,
.submit-master-metrics article::after,
.submit-system-strip article::before,
.submit-system-strip article::after,
.module-summary-grid article::before,
.module-summary-grid article::after,
.spotlight-scorecard::before,
.spotlight-scorecard::after {
  display: none !important;
}

.task-rail-card,
.account-management-row,
.account-list-row,
.account-overview-row {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.task-rail-card:hover,
.task-rail-card.is-selected,
.account-management-row:hover,
.account-list-row:hover {
  background: #f7f9fc;
}

.task-rail-card.is-selected {
  border-left: 3px solid #165dff;
}

.task-table-wrap,
.batch-table-wrap,
.permission-table,
.readonly-grid-wrap,
.readonly-field-section .readonly-grid-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.task-table,
.batch-table,
.readonly-pairs-table,
.readonly-field-table,
.permission-table table {
  border-collapse: collapse;
  color: #333333;
  background: #ffffff;
}

.task-table th,
.batch-table th,
.readonly-pairs-table th,
.readonly-field-table th,
.permission-table th {
  border-color: #e5e7eb;
  color: #4e5969;
  background: #f7f8fa;
  font-weight: 500;
}

.task-table td,
.batch-table td,
.readonly-pairs-table td,
.readonly-field-table td,
.permission-table td {
  border-color: #e5e7eb;
  color: #333333;
  background: #ffffff;
}

.batch-table tbody tr:nth-child(2n) td,
.task-table tbody tr:nth-child(2n) td {
  background: #fafbfc;
}

input,
textarea,
select {
  border: 1px solid #d9dde4;
  border-radius: 6px;
  color: #333333;
  background: #ffffff;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #165dff;
  outline: 2px solid rgba(22, 93, 255, 0.12);
  box-shadow: none;
}

input[readonly],
textarea[readonly],
select:disabled {
  color: #657180;
  background: #f7f8fa;
}

button {
  border-radius: 6px;
  color: #ffffff;
  background: #165dff;
  box-shadow: none;
  font-weight: 400;
}

button:hover:not(:disabled) {
  color: #ffffff;
  background: #0e4bd8;
  box-shadow: none;
  transform: none;
}

.ghost-button,
.subtle-button,
.auth-retry-button {
  border: 1px solid #d9dde4;
  color: #4e5969;
  background: #ffffff;
}

.ghost-button:hover:not(:disabled),
.subtle-button:hover:not(:disabled),
.auth-retry-button:hover:not(:disabled) {
  border-color: #165dff;
  color: #165dff;
  background: #f2f6ff;
}

.hint-tag,
.section-badge,
.task-rail-chip {
  border: 1px solid #dbe6ff;
  border-radius: 4px;
  color: #165dff;
  background: #f2f6ff;
  box-shadow: none;
}

.admin-module-nav {
  border-color: #e5e7eb;
}

.admin-subnav-link {
  border-radius: 0;
  color: #333333;
  background: #ffffff;
}

.admin-subnav-link.is-active,
.admin-subnav-link:hover:not(:disabled) {
  color: #165dff;
  background: #f2f6ff;
}

/* Authentication follows the same restrained white-and-blue visual system. */
.auth-page {
  color: #333333;
  background: #ffffff;
}

.auth-page-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  width: min(1180px, calc(100% - 64px));
  background: #ffffff;
}

.auth-story {
  color: #333333;
}

.auth-brand,
.auth-story h1 {
  color: #1d2129;
}

.auth-brand-mark {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #165dff;
  box-shadow: none;
}

.auth-story-kicker,
.auth-flow b {
  color: #165dff;
}

.auth-story-copy,
.auth-flow,
.auth-story-footnote {
  color: #8a8f99;
}

.auth-flow i {
  background: #d9dde4;
}

.auth-card-wrap {
  border-left: 1px solid #e5e7eb;
}

.auth-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.auth-card-heading h2,
.auth-boot-state strong,
.auth-method-button,
.auth-card .login-row input {
  color: #333333;
}

.auth-card-heading .section-kicker,
.auth-spinner-large {
  color: #165dff;
}

.auth-method-button {
  border: 1px solid #d9dde4;
  border-radius: 6px;
  background: #ffffff;
}

.auth-method-button:hover:not(:disabled) {
  border-color: #165dff;
  background: #f2f6ff;
  box-shadow: none;
  transform: none;
}

.auth-feishu-icon,
.auth-password-button {
  border-radius: 6px;
  background: #165dff;
  box-shadow: none;
}

.auth-password-button:hover:not(:disabled) {
  background: #0e4bd8;
  box-shadow: none;
}

.auth-card-footer {
  border-color: #e5e7eb;
}

@media (max-width: 1024px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-top: 76px;
    padding-inline: 16px;
  }

  .topbar-mobile.is-open {
    max-width: none;
    padding: 0 16px 14px;
  }

  .topbar-mobile-link {
    min-height: 44px;
    padding: 0 4px;
    box-shadow: none;
  }

  .topbar-mobile-link:hover,
  .topbar-mobile-link.is-active {
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .auth-page {
    background: #ffffff;
  }

  .auth-page-shell {
    width: min(100% - 32px, 620px);
  }

  .auth-card-wrap {
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-top: 72px;
    padding-inline: 12px;
  }

  .topbar-inner {
    padding-inline: 12px;
  }

  .content,
  .content-section.is-active {
    gap: 16px;
  }

  .content-section > .card,
  .split-layout > .card,
  .admin-center-grid > .card,
  .field-section,
  .action-card,
  .review-card,
  .external-card,
  .admin-card,
  .rule-card,
  .edit-card,
  .form-card,
  .module-summary-card {
    padding-top: 16px;
  }
}

/* 2026-09-09 keyboard accessibility and interaction-state polish. */
:where(
  button,
  a[href],
  input,
  select,
  textarea,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid rgba(22, 93, 255, 0.38);
  outline-offset: 2px;
}

:where(button, [role="button"]):active:not(:disabled) {
  transform: translateY(1px);
}

:where(button, [role="button"])[aria-busy="true"],
button.is-loading {
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-09-09 unified business blue and operational result layout. */
:root {
  --accent: #11659a;
  --accent-deep: #0d527e;
  --primary: #11659a;
  --teal: #11659a;
}

.topbar,
.topbar-mobile,
.auth-brand-mark,
.auth-feishu-icon,
.auth-password-button {
  background: #11659a;
}

.topbar-action:hover:not(:disabled),
.topbar-login-button:hover:not(:disabled),
.topbar-mobile-login-button:hover:not(:disabled),
.auth-story-kicker,
.auth-flow b,
.auth-card-heading .section-kicker,
.auth-spinner-large {
  color: #11659a;
}

.card-heading,
.section-heading,
.workspace-heading,
.submit-master-head,
.submit-block-head,
.list-block-head,
.field-section > header,
.admin-section-head,
.account-management-panel-head,
.admin-page-header {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
}

:is(
  .card-heading,
  .section-heading,
  .workspace-heading,
  .submit-master-head,
  .submit-block-head,
  .list-block-head,
  .field-section > header,
  .admin-section-head,
  .account-management-panel-head,
  .admin-page-header,
  .module-filter-heading,
  .task-share-heading
) :is(h1, h2, h3, h4, strong, .workspace-module-title) {
  color: #11659a;
  font-weight: 700;
}

.task-table th,
.batch-table th,
.readonly-pairs-table th,
.readonly-field-table th,
.permission-table th {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: #11659a;
  font-weight: 500;
}

button,
.ghost-button,
.subtle-button,
.auth-retry-button,
.topbar-action,
.topbar-login-button,
.topbar-mobile-login-button {
  border-color: #11659a;
  color: #ffffff;
  background: #11659a;
}

button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.subtle-button:hover:not(:disabled),
.auth-retry-button:hover:not(:disabled),
.auth-password-button:hover:not(:disabled) {
  border-color: #0d527e;
  color: #ffffff;
  background: #0d527e;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #11659a;
  outline-color: rgba(17, 101, 154, 0.2);
}

:where(
  button,
  a[href],
  input,
  select,
  textarea,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline-color: rgba(17, 101, 154, 0.38);
}

.section-kicker,
.panel-label,
.eyebrow,
a,
.hint-tag,
.section-badge,
.task-rail-chip,
.admin-subnav-link.is-active,
.admin-subnav-link:hover:not(:disabled) {
  color: #11659a;
}

.task-rail-card.is-selected {
  border-left-color: #11659a;
}

.dashboard-result-row {
  cursor: pointer;
}

.dashboard-result-row:hover td,
.dashboard-result-row:focus-visible td {
  background: #eef6fb;
}

#view-result .split-layout.result-detail-only {
  grid-template-columns: minmax(0, 1fr);
}

#view-result .split-layout.result-detail-only > .card:not([hidden]) {
  width: 100%;
}

@media (max-width: 600px) {
  .card-heading,
  .section-heading,
  .workspace-heading,
  .submit-master-head,
  .submit-block-head,
  .list-block-head,
  .field-section > header,
  .admin-section-head,
  .account-management-panel-head,
  .admin-page-header {
    padding: 0 0 10px;
  }
}

/* 2026-09-09 mobile compatibility pass: keep wide data inside its own scroller. */
html,
body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

:where(
  .page-shell,
  .layout,
  .content,
  .content-section,
  .split-layout,
  .admin-shell,
  .admin-center-layout,
  .admin-center-content,
  .card,
  .field-section,
  .review-card,
  .external-card,
  .action-card,
  .form-card,
  .edit-card,
  .submit-shell,
  .request-import-stack,
  .batch-editor-layout,
  .batch-editor-main,
  .batch-side-panel
) {
  min-width: 0;
  max-width: 100%;
}

:where(
  .task-table-wrap,
  .batch-table-wrap,
  .permission-table,
  .dashboard-table-wrap,
  .readonly-grid-wrap
) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

:where(
  .batch-cell-text,
  .field-display,
  .readonly-value,
  .task-meta,
  .muted,
  .review-card,
  .external-card,
  .admin-card,
  .rule-card,
  .table-primary,
  .table-stack,
  .table-note,
  .task-rail-card
) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

:where(input, select, textarea, button, .button, .upload-helper) {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    width: 100%;
    padding: 72px 12px 28px;
  }

  .topbar-inner {
    min-height: 56px;
    padding-inline: 12px;
    gap: 8px;
  }

  .topbar-left {
    flex: 1 1 auto;
    gap: 8px;
  }

  .topbar-right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .topbar-brand {
    display: block;
    min-width: 0;
    max-width: min(62vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-toggle {
    flex: 0 0 40px;
    display: inline-block;
  }

  .topbar-mobile.is-open {
    width: 100%;
    max-width: none;
    padding: 0 12px 12px;
  }

  .topbar-mobile-link {
    width: 100%;
    min-height: 44px;
    padding: 0;
    text-align: left;
  }

  .content,
  .content-section,
  .content-section.is-active {
    gap: 16px;
  }

  .split-layout,
  .admin-center-layout,
  .review-detail-grid,
  .result-detail-grid,
  .module-summary-grid,
  .overview-filter-grid,
  .field-grid,
  .edit-grid,
  .form-grid,
  .stats-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .card-heading,
  .section-heading,
  .workspace-heading,
  .field-section > header,
  .admin-section-head,
  .admin-page-header,
  .list-block-head,
  .review-card-top,
  .review-detail-head {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-module-nav {
    position: static;
    width: 100%;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-subnav-link {
    min-width: 0;
    padding: 9px 8px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .admin-subnav-link span {
    overflow-wrap: anywhere;
  }

  .request-import-toolbar,
  .batch-toolbar,
  .batch-side-actions,
  .action-line,
  .submit-actions-line,
  .top-access-actions,
  .result-toolbar,
  .result-filters,
  .submit-bar {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .request-import-toolbar > button,
  .request-import-toolbar > label,
  .batch-side-actions > button,
  .batch-side-actions > label,
  .action-line > button,
  .submit-actions-line > button,
  .top-access-actions > button,
  .result-toolbar > .button,
  .result-filters > label,
  .result-filters > .button,
  .submit-bar > .button {
    width: 100%;
    min-height: 42px;
  }

  .execution-row-filters .filter-field,
  #view-submit .submit-record-filter-grid .filter-field,
  .result-filters label {
    width: 100%;
    min-width: 0;
  }

  #view-submit .batch-table-request,
  .task-table,
  .task-table-compact,
  .dashboard-table,
  .permission-table table,
  .readonly-pairs-table,
  .readonly-field-table {
    width: max-content;
  }

  #view-submit .batch-table-request {
    min-width: 900px;
  }

  .batch-table-wrap,
  .task-table-wrap,
  .dashboard-table-wrap,
  .readonly-grid-wrap {
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
  }

  .batch-table th,
  .batch-table td,
  .task-table th,
  .task-table td,
  .permission-table th,
  .permission-table td {
    padding: 6px;
  }

  .batch-table-request select[multiple] {
    min-height: 72px;
    max-height: 104px;
  }

  .auth-modal {
    overflow-y: auto;
    padding: 12px;
  }

  .auth-modal-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    overflow-y: auto;
  }

  .auth-modal-header,
  .auth-modal-body {
    padding-inline: 14px;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-inline: 10px;
  }

  .topbar-brand {
    max-width: 56vw;
    font-size: 14px;
  }

  .topbar-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .admin-subnav {
    grid-template-columns: 1fr;
  }

  .admin-subnav-link {
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .admin-subnav-link.is-active {
    border-left-color: var(--primary);
  }

  .stat-card,
  .submit-master-metrics article,
  .submit-system-strip article,
  .module-summary-grid article {
    padding: 12px;
  }

  .card-heading h2,
  .section-heading h2,
  .workspace-heading h2 {
    font-size: 19px;
  }

  .muted,
  .field-help,
  .task-meta {
    font-size: 12px;
  }
}

/* 2026-09-10 clean white-and-green visual theme. */
:root {
  --sand: #ffffff;
  --cream: #ffffff;
  --cream-strong: #ffffff;
  --ink: #1f2329;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #10b981;
  --accent-deep: #059669;
  --primary: #10b981;
  --teal: #10b981;
  --night: #1f2329;
  --shadow: none;
  --shadow-soft: none;
}

html,
body,
body.auth-guest,
.auth-page,
.auth-page-shell,
.page-shell,
.page-shell[data-shell="workspace"],
.page-shell[data-shell="admin"],
.page-shell[data-shell="login"],
.layout,
.content,
.content-section,
.admin-shell,
.admin-center-content {
  color: #1f2329;
  background: #ffffff;
}

.topbar,
.topbar-mobile,
.auth-brand-mark,
.auth-feishu-icon,
.auth-password-button {
  color: #ffffff;
  background: #10b981;
}

.topbar-brand,
.topbar-link,
.topbar-mobile-link,
.topbar-user,
.topbar-mobile-user,
.topbar-user strong,
.topbar-mobile-user strong {
  color: #ffffff;
}

.topbar-user span,
.topbar-mobile-user span,
.topbar-mobile .topbar-user span {
  color: rgba(255, 255, 255, 0.82);
}

.topbar-link:hover,
.topbar-mobile-link:hover,
.topbar-link.is-active,
.topbar-mobile-link.is-active {
  color: #ffffff;
  background: #059669;
  box-shadow: none;
}

.topbar-action,
.topbar-login-button,
.topbar-mobile-login-button {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: transparent;
}

.topbar-action:hover:not(:disabled),
.topbar-login-button:hover:not(:disabled),
.topbar-mobile-login-button:hover:not(:disabled) {
  border-color: #059669;
  color: #ffffff;
  background: #059669;
}

.content-section > .card,
.split-layout > .card,
.admin-center-grid > .card,
.field-section,
.action-card,
.review-card,
.external-card,
.admin-card,
.rule-card,
.edit-card,
.form-card,
.module-summary-card,
.submit-master-card,
.submit-card-block,
.auth-card,
.auth-modal-panel {
  color: #1f2329;
  background: #ffffff;
  box-shadow: none;
}

h1,
h2,
h3,
h4,
.workspace-module-title,
:is(
  .card-heading,
  .section-heading,
  .workspace-heading,
  .submit-master-head,
  .submit-block-head,
  .list-block-head,
  .field-section > header,
  .admin-section-head,
  .account-management-panel-head,
  .admin-page-header,
  .module-filter-heading,
  .task-share-heading
) :is(h1, h2, h3, h4, strong, .workspace-module-title) {
  color: #1f2329;
  font-weight: 700;
}

.card-heading,
.section-heading,
.workspace-heading,
.submit-master-head,
.submit-block-head,
.list-block-head,
.field-section > header,
.admin-section-head,
.account-management-panel-head,
.admin-page-header {
  border-color: #e5e7eb;
  color: #1f2329;
  background: transparent;
}

.section-kicker,
.panel-label,
.eyebrow,
a,
.auth-story-kicker,
.auth-flow b,
.auth-card-heading .section-kicker,
.auth-spinner-large,
.admin-subnav-link.is-active,
.admin-subnav-link:hover:not(:disabled) {
  color: #10b981;
}

.dashboard-metric,
.stat-card,
.submit-master-metrics article,
.submit-system-strip article,
.module-summary-grid article,
.spotlight-scorecard {
  border: 1px solid #10b981;
  color: #1f2329;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-metric span,
.dashboard-metric small,
.dashboard-metric strong,
.dashboard-metric .dashboard-metric-subvalue,
.stat-card span,
.stat-card strong,
.stat-card small {
  color: #1f2329;
}

.task-table-wrap,
.batch-table-wrap,
.permission-table,
.dashboard-table-wrap,
.readonly-grid-wrap,
.readonly-field-section .readonly-grid-wrap {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.task-table,
.batch-table,
.dashboard-table,
.readonly-pairs-table,
.readonly-field-table,
.permission-table table {
  color: #1f2329;
  background: #ffffff;
}

.task-table th,
.batch-table th,
.dashboard-table th,
.readonly-pairs-table th,
.readonly-field-table th,
.permission-table th,
table thead th {
  border-color: #d1fae5;
  color: #1f2329;
  background: #ecfdf5;
  font-weight: 600;
}

.task-table td,
.batch-table td,
.dashboard-table td,
.readonly-pairs-table td,
.readonly-field-table td,
.permission-table td {
  border-color: #e5e7eb;
  color: #1f2329;
  background: #ffffff;
}

.batch-table tbody tr:nth-child(2n) td,
.task-table tbody tr:nth-child(2n) td,
.dashboard-table tbody tr:nth-child(2n) td {
  background: #ffffff;
}

.dashboard-result-row:hover td,
.dashboard-result-row:focus-visible td,
.task-rail-card:hover,
.task-rail-card.is-selected,
.account-management-row:hover,
.account-list-row:hover,
.admin-subnav-link.is-active,
.admin-subnav-link:hover:not(:disabled) {
  background: #ecfdf5;
}

.task-rail-card.is-selected {
  border-left-color: #10b981;
}

input,
textarea,
select {
  border-color: #d1d5db;
  color: #1f2329;
  background: #ffffff;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #10b981;
  outline: 2px solid rgba(16, 185, 129, 0.16);
  box-shadow: none;
}

:where(
  button,
  a[href],
  input,
  select,
  textarea,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline-color: rgba(16, 185, 129, 0.42);
}

button,
.auth-password-button {
  border-color: #10b981;
  color: #ffffff;
  background: #10b981;
  box-shadow: none;
}

button:hover:not(:disabled),
.auth-password-button:hover:not(:disabled) {
  border-color: #059669;
  color: #ffffff;
  background: #059669;
  box-shadow: none;
}

.ghost-button,
.subtle-button,
.auth-retry-button {
  border-color: #10b981;
  color: #059669;
  background: #ffffff;
}

.ghost-button:hover:not(:disabled),
.subtle-button:hover:not(:disabled),
.auth-retry-button:hover:not(:disabled) {
  border-color: #059669;
  color: #059669;
  background: #ecfdf5;
}

.hint-tag,
.section-badge,
.task-rail-chip,
.import-notice,
.result-message:not(.is-error) {
  border-color: #a7f3d0;
  color: #059669;
  background: #ecfdf5;
  box-shadow: none;
}

.auth-method-button {
  border-color: #d1d5db;
  color: #1f2329;
  background: #ffffff;
}

.auth-method-button:hover:not(:disabled) {
  border-color: #10b981;
  color: #1f2329;
  background: #ecfdf5;
}

.auth-card-wrap,
.auth-card,
.auth-card-footer,
.auth-modal-header {
  border-color: #e5e7eb;
}

.danger-button,
.remove-row,
#reject-request-button,
#reject-result-button,
#result-admin-reject-button,
[data-request-delete-row],
[data-batch-delete-row],
[data-readonly-batch-delete-row] {
  border-color: #dc2626;
  color: #b91c1c;
  background: #ffffff;
}

.danger-button:hover:not(:disabled),
.remove-row:hover:not(:disabled),
#reject-request-button:hover:not(:disabled),
#reject-result-button:hover:not(:disabled),
#result-admin-reject-button:hover:not(:disabled),
[data-request-delete-row]:hover:not(:disabled),
[data-batch-delete-row]:hover:not(:disabled),
[data-readonly-batch-delete-row]:hover:not(:disabled) {
  border-color: #b91c1c;
  color: #ffffff;
  background: #b91c1c;
}

/* 2026-09-10 unified responsive layout. This layer changes sizing only. */
:where(
  .page-shell,
  .layout,
  .sidebar,
  .content,
  .content-section,
  .split-layout,
  .admin-shell,
  .admin-center-layout,
  .admin-center-content,
  .admin-center-panel,
  .card,
  .field-section,
  .submit-shell,
  .submit-master-card,
  .submit-card-block,
  .module-summary-card,
  .request-import-stack,
  .batch-editor-layout,
  .batch-editor-main,
  .batch-side-panel,
  .account-management,
  .account-management-panel,
  .service-provider-directory
) {
  min-width: 0;
  max-width: 100%;
}

:where(
  .task-table-wrap,
  .batch-table-wrap,
  .dashboard-table-wrap,
  .readonly-grid-wrap,
  .service-provider-table
) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

@media (max-width: 1024px) {
  .topbar-menu,
  .topbar-user,
  .topbar-action {
    display: none;
  }

  .topbar-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-block;
  }

  .topbar-mobile.is-open {
    display: grid;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-center-layout,
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-module-nav {
    position: static;
    width: 100%;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid,
  .dashboard-metrics,
  .module-summary-grid,
  .submit-master-metrics,
  .submit-system-strip,
  .permission-strip,
  .role-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .batch-share-toolbar {
    grid-template-columns: 1fr;
  }

  .batch-share-toolbar button,
  .batch-share-toolbar select,
  .batch-share-toolbar label {
    width: 100%;
  }

  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    width: 100%;
    padding: 72px 12px 28px;
  }

  .topbar-inner {
    min-height: 56px;
    padding-inline: 12px;
    gap: 8px;
  }

  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar-right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .topbar-brand {
    display: block;
    min-width: 0;
    max-width: min(58vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .topbar-mobile.is-open {
    padding: 0 12px 12px;
  }

  .topbar-mobile-link,
  .topbar-mobile-login-button {
    width: 100%;
    min-height: 44px;
    text-align: left;
  }

  :where(
    .sidebar,
    .split-layout,
    .overview-spotlight,
    .board,
    .stats-grid,
    .dashboard-metrics,
    .overview-filter-grid,
    .task-module-filter-grid,
    .module-summary-grid,
    .submit-master-metrics,
    .submit-system-strip,
    .field-grid,
    .form-grid,
    .edit-grid,
    .review-detail-grid,
    .review-card-detail-grid,
    .result-detail-grid,
    .spotlight-layout,
    .spotlight-meta-grid,
    .permission-strip,
    .role-permission-grid,
    .admin-form-grid
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .task-rail-card,
  .account-overview-row,
  .account-list-row,
  .account-management-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-overview-header,
  .account-list-header,
  .account-management-header {
    display: none;
  }

  .account-overview-side {
    justify-items: start;
  }

  .account-overview-side .muted,
  .task-rail-meta {
    justify-content: flex-start;
    text-align: left;
  }

  :where(
    .card-heading,
    .section-heading,
    .workspace-heading,
    .submit-master-head,
    .submit-block-head,
    .list-block-head,
    .field-section > header,
    .admin-section-head,
    .admin-page-header,
    .account-management-panel-head,
    .review-card-top,
    .review-detail-head,
    .task-share-heading
  ) {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-subnav-link {
    min-width: 0;
    min-height: 44px;
    padding: 9px 8px;
  }

  :where(
    .request-import-toolbar,
    .batch-toolbar,
    .batch-side-actions,
    .action-line,
    .submit-actions-line,
    .top-access-actions,
    .result-toolbar,
    .result-filters,
    .submit-bar,
    .admin-form-actions,
    .account-create-actions,
    .match-tool-row
  ) {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  :where(
    .dashboard-filters,
    .execution-row-filters,
    #view-submit .submit-record-filter-grid
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  :where(
    .dashboard-filters .filter-field,
    .execution-row-filters .filter-field,
    #view-submit .submit-record-filter-grid .filter-field,
    .result-filters label,
    .account-search-field
  ) {
    width: 100%;
    min-width: 0;
  }

  :where(
    button,
    .button,
    .upload-helper,
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    select,
    textarea
  ) {
    min-height: 44px;
  }

  :where(
    .request-import-toolbar,
    .batch-side-actions,
    .action-line,
    .submit-actions-line,
    .top-access-actions,
    .result-toolbar,
    .submit-bar,
    .admin-form-actions,
    .account-create-actions,
    .match-tool-row
  ) > :where(button, .button, label) {
    width: 100%;
  }

  .service-provider-create-form {
    grid-template-columns: minmax(0, 1fr);
  }

  table.permission-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  table.permission-table > :where(thead, tbody, tfoot) {
    display: table;
    width: max-content;
    min-width: 680px;
  }

  :where(.task-table, .task-table-compact) {
    width: max-content;
    min-width: 1020px;
  }

  .dashboard-table {
    width: max-content;
    min-width: 1020px;
  }

  :where(.readonly-pairs-table, .readonly-field-table) {
    width: max-content;
    min-width: 720px;
  }

  #view-submit .batch-table-request {
    width: max-content;
    min-width: 900px;
  }

  .auth-modal,
  .auth-page {
    overscroll-behavior: contain;
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-modal-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: 0;
    overflow-y: auto;
  }

  .auth-card {
    width: 100%;
  }

  .auth-password-button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .page-shell[data-shell="workspace"],
  .page-shell[data-shell="admin"],
  .page-shell[data-shell="login"] {
    padding-inline: 8px;
  }

  .topbar-inner,
  .topbar-mobile.is-open {
    padding-inline: 8px;
  }

  .topbar-brand {
    max-width: 52vw;
    font-size: 14px;
  }

  .topbar-login-button {
    min-width: 56px;
    padding-inline: 10px;
  }

  .admin-subnav {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(
    .card,
    .field-section,
    .review-card,
    .external-card,
    .action-card,
    .admin-card,
    .rule-card,
    .edit-card,
    .form-card,
    .submit-master-card,
    .submit-card-block,
    .account-management-panel
  ) {
    padding: 12px;
  }

  .auth-page-shell {
    width: calc(100% - 16px);
  }

  .auth-card {
    padding: 24px 16px 18px;
  }

  .batch-row-actions,
  .account-management-actions,
  .service-provider-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .provider-result-link-head,
  .provider-result-zone-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-result-link-url {
    width: 100%;
  }

  .provider-result-link-url input {
    width: 100%;
  }

  .provider-result-zone-head button,
  .provider-result-dialog-actions {
    width: 100%;
  }

  .provider-result-dialog-actions {
    flex-direction: column-reverse;
  }

  .provider-result-dialog-actions button {
    width: 100%;
  }

  .batch-row-actions > button,
  .account-management-actions > button,
  .service-provider-actions > button {
    width: 100%;
  }
}

/* Global operation feedback. Kept outside #page-shell so rerenders never remove it. */
.plc-toast-region {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 10020;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.plc-toast {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: start;
  padding: 14px 12px 14px 14px;
  border: 1px solid #d7e0e9;
  border-left: 4px solid #11659a;
  border-radius: 10px;
  color: #1f2937;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  pointer-events: auto;
  animation: plc-toast-in 220ms ease-out both;
}

.plc-toast.is-leaving {
  animation: plc-toast-out 180ms ease-in both;
}

.plc-toast-success {
  border-left-color: #10b981;
}

.plc-toast-error {
  border-left-color: #b42318;
}

.plc-toast-warning {
  border-left-color: #d97706;
}

.plc-toast-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #11659a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.plc-toast-success .plc-toast-icon {
  background: #0f9f6e;
}

.plc-toast-error .plc-toast-icon {
  background: #b42318;
}

.plc-toast-warning .plc-toast-icon {
  background: #d97706;
}

.plc-toast-body {
  min-width: 0;
}

.plc-toast-body strong {
  display: block;
  margin: 1px 0 4px;
  color: #172033;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.plc-toast-body p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.plc-toast-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: transparent;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.plc-toast-close:hover,
.plc-toast-close:focus-visible {
  color: #172033;
  background: #edf2f7;
}

.plc-confirm-layer {
  padding: 22px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  width: min(480px, calc(100vw - 44px));
  max-width: min(480px, calc(100vw - 44px));
  animation: plc-confirm-in 180ms ease-out both;
}

.plc-confirm-layer::backdrop {
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
}

.plc-confirm-dialog {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.plc-confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #b42318;
  font-size: 22px;
  font-weight: 800;
}

.plc-confirm-icon-primary {
  background: #11659a;
}

.plc-confirm-copy {
  min-width: 0;
}

.plc-confirm-kicker {
  margin: 1px 0 5px;
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.plc-confirm-copy h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  line-height: 1.35;
}

.plc-confirm-copy > p:last-child {
  margin: 9px 0 0;
  color: #526173;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.plc-confirm-input-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.plc-confirm-input-wrap > span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.plc-confirm-input-wrap textarea {
  width: 100%;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #172033;
  background: #ffffff;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.plc-confirm-input-wrap textarea:focus-visible {
  outline: 3px solid rgba(17, 101, 154, .2);
  outline-offset: 1px;
  border-color: #11659a;
}

.plc-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.plc-confirm-actions button {
  min-width: 96px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.plc-confirm-actions .is-danger {
  border-color: #b42318;
  color: #ffffff;
  background: #b42318;
}

.plc-confirm-actions .is-primary {
  border-color: #11659a;
  color: #ffffff;
  background: #11659a;
}

.plc-confirm-actions button:focus-visible {
  outline: 3px solid rgba(17, 101, 154, .28);
  outline-offset: 2px;
}

@keyframes plc-toast-in {
  from { opacity: 0; transform: translate3d(18px, -8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes plc-toast-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(14px, -6px, 0); }
}

@keyframes plc-confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .plc-toast-region {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
  }

  .plc-toast {
    padding: 13px 10px 13px 12px;
  }

  .plc-confirm-layer {
    align-items: end;
    padding: 12px;
  }

  .plc-confirm-dialog {
    width: 100%;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .plc-confirm-actions button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plc-toast,
  .plc-toast.is-leaving,
  .plc-confirm-dialog {
    animation-duration: 1ms;
  }
}

/* 站内消息通知 */
.topbar-notification-button,
.topbar-mobile-notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.topbar-notification-button:hover:not(:disabled),
.topbar-mobile-notification-button:hover:not(:disabled) {
  border-color: #ffffff;
  color: #165dff;
  background: #ffffff;
}

.topbar-notification-button[hidden],
.topbar-mobile-notification-button[hidden] {
  display: none !important;
}

.topbar-notification-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.topbar-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.topbar-notification-badge[hidden] {
  display: none;
}

.notification-panel {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.notification-panel[hidden] {
  display: none !important;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.notification-panel-header strong {
  font-size: 14px;
  color: #111827;
}

.notification-read-all-button {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.notification-read-all-button:hover:not(:disabled) {
  border-color: #165dff;
  color: #165dff;
}

.notification-panel-body {
  flex: 1 1 auto;
  min-height: 80px;
  overflow-y: auto;
}

.notification-panel-list {
  display: grid;
  gap: 0;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.is-unread {
  background: #eff6ff;
}

.notification-item.is-unread:hover {
  background: #e8f1ff;
}

.notification-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.notification-unread-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #165dff;
}

.notification-item-message {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

.notification-item-time {
  font-size: 11px;
  color: #9ca3af;
}

.notification-panel-empty {
  padding: 32px 16px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

.notification-panel-empty[hidden] {
  display: none;
}

.notification-panel-loading {
  padding: 32px 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 1024px) {
  .topbar-notification-button {
    display: none !important;
  }

  .topbar-mobile-notification-button {
    display: inline-flex;
  }

  .notification-panel {
    top: 60px;
    right: 12px;
  }
}

.provider-result-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.provider-result-detail-toolbar > label,
.provider-result-detail-filter,
.provider-result-detail-search {
  display: grid;
  min-width: 128px;
  gap: 5px;
  color: #1f2329;
  font-size: 12px;
  font-weight: 700;
}

.provider-result-detail-search { min-width: 220px; flex: 1 1 220px; }
.provider-result-date-range { min-width: 286px; flex: 1 1 286px; }
.provider-result-date-range > div {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid #d7e4dd;
  border-radius: 8px;
  background: #fff;
}
.provider-result-date-range input {
  width: calc(50% - 10px);
  min-width: 0;
  min-height: 34px;
  padding: 6px 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.provider-result-date-range em {
  flex: 0 0 auto;
  padding: 0 4px;
  color: #667085;
  font-style: normal;
}
.provider-result-detail-count {
  align-self: center;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.provider-result-detail-toolbar input,
.provider-result-detail-toolbar select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d7e4dd;
  border-radius: 8px;
  background: #fff;
  color: #1f2329;
}

.provider-result-detail-table-wrap { overflow: auto; border: 1px solid #dcebe3; border-radius: 10px; background: #fff; }
.provider-result-detail-table { width: 100%; min-width: 1760px; border-collapse: collapse; }
.provider-result-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 12px;
  border-bottom: 1px solid #cfe7dc;
  background: #ecfdf5;
  color: #1f2329;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.provider-result-detail-table .th-resize {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}
.provider-result-detail-table th:last-child .th-resize { right: 0; }
.provider-result-detail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf5f1;
  color: #1f2329;
  font-size: 13px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.provider-result-detail-table tbody tr:last-child td { border-bottom: 0; }
.provider-result-table-image {
  width: 62px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dcebe3;
  display: block;
}
.provider-result-batch-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 0;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}
.provider-result-batch-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.provider-result-batch-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2329;
}
.provider-result-batch-field .batch-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.provider-result-batch-field select,
.provider-result-batch-field input {
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.provider-result-batch-message {
  margin: 12px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}
.provider-result-binding-dialog { width: min(1240px, calc(100vw - 24px)); }
.provider-result-binding-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 12px;
  color: #52606d;
  font-size: 13px;
}
.provider-result-binding-summary strong { color: #1f2329; }
.provider-result-binding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.provider-result-binding-table-wrap {
  max-height: min(50vh, 520px);
  overflow: auto;
  border: 1px solid #d7e4dd;
  background: #fff;
}
.provider-result-binding-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}
.provider-result-binding-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  border-bottom: 1px solid #cfe7dc;
  background: #f8fafc;
  color: #1f2329;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.provider-result-binding-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf5f1;
  color: #1f2329;
  font-size: 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.provider-result-binding-table select {
  width: min(320px, 34vw);
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #d7e4dd;
  border-radius: 6px;
  font-size: 12px;
}
.provider-result-binding-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.provider-result-binding-status.safe { color: #065f46; background: #ecfdf5; }
.provider-result-binding-status.review { color: #92400e; background: #fff7ed; }
.provider-result-binding-status.missing { color: #b42318; background: #fef3f2; }
.provider-result-binding-empty,
.provider-result-binding-empty-state {
  margin: 0;
  color: #52606d;
  font-size: 13px;
}
.provider-result-binding-empty-state {
  padding: 24px 10px;
  text-align: center;
}
.provider-result-order { font-weight: 700; overflow-wrap: anywhere; }
.provider-result-detail-actions { white-space: nowrap; }
.provider-result-detail-actions > * + * { margin-left: 6px; }
.provider-result-task-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.provider-result-task-status.running { color: #92400e; background: #fff7ed; }
.provider-result-task-status.completed { color: #065f46; background: #ecfdf5; }

.provider-result-detail-dialog {
  width: min(940px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #cfe7dc;
  border-radius: 12px;
  background: #fff;
  color: #1f2329;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}
.provider-result-detail-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.provider-result-detail-dialog form { display: block; padding: 20px; }
.provider-result-detail-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.provider-result-detail-dialog-head h4 { margin: 0; color: #1f2329; }
.provider-result-detail-dialog-head-actions { display: inline-flex; align-items: center; gap: 10px; }
.provider-result-detail-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.provider-result-detail-dialog .ghost-button,
.provider-result-detail-dialog .secondary-button,
.provider-result-detail-dialog .primary-button,
.provider-result-detail-actions .ghost-button,
.provider-result-detail-actions .secondary-button,
.provider-result-detail-actions .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cfe0d8;
  border-radius: 7px;
  background: #fff;
  color: #1f2329;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.provider-result-detail-dialog .primary-button,
.provider-result-detail-actions .secondary-button { border-color: #10b981; background: #10b981; color: #fff; }
.provider-result-detail-dialog .primary-button:hover,
.provider-result-detail-actions .secondary-button:hover { border-color: #059669; background: #059669; }
.provider-result-detail-actions .danger-button { border-color: #f3c1bb; color: #b42318; background: #fff; }
.provider-result-detail-actions .danger-button:hover { border-color: #b42318; background: #b42318; color: #fff; }
.provider-result-detail-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: min(58vh, 560px); overflow: auto; padding-right: 4px; }
.provider-result-edit-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.provider-result-edit-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.provider-result-edit-section h5 {
  margin: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.provider-result-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.provider-result-readonly-value {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #52616b;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.provider-result-detail-field { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: #1f2329; }
.provider-result-detail-image-field { grid-column: 1 / -1; }
.provider-result-detail-image-field .image-cell { display: grid; gap: 6px; }
.provider-result-detail-image-field input[readonly] { color: #475467; font-weight: 400; background: #fff; cursor: text; overflow-wrap: anywhere; }
.provider-result-detail-image-field .image-upload { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; color: #047857; background: #ecfdf5; border: 1px dashed #10b981; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.provider-result-detail-image-field .image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.provider-result-detail-image-field .image-upload:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
.provider-result-detail-image-field .paste-hint { color: #667085; font-size: 11px; font-weight: 400; }
.provider-result-detail-field input,
.provider-result-detail-field select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d7e4dd;
  border-radius: 8px;
  background: #fff;
  color: #1f2329;
  font: inherit;
}
.provider-result-detail-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; max-height: min(58vh, 560px); overflow: auto; }
.provider-result-detail-definition { min-width: 0; }
.provider-result-detail-definition dt { color: #64748b; font-size: 12px; font-weight: 700; }
.provider-result-detail-definition dd { margin: 3px 0 0; color: #1f2329; font-size: 13px; overflow-wrap: anywhere; }
.provider-result-detail-definition img { width: 92px; height: 64px; margin: 3px 5px 0 0; object-fit: cover; border-radius: 6px; }
.provider-result-image-thumb-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.provider-result-image-thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfe7dc;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
}
.provider-result-image-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.provider-result-image-thumb:focus-visible { border-color: #059669; box-shadow: 0 0 0 2px rgba(5, 150, 105, .22); outline: none; }
.provider-result-editable-image-list { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-result-editable-image { display: inline-grid; gap: 4px; justify-items: center; }
.provider-result-image-remove {
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #f3c1bb;
  border-radius: 6px;
  background: #fff;
  color: #b42318;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.provider-result-image-remove:hover { border-color: #b42318; background: #b42318; color: #fff; }
.provider-result-image-remove:focus-visible { outline: 2px solid #b42318; outline-offset: 2px; }

.provider-result-image-preview {
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 0;
  background: transparent;
}
.provider-result-image-preview::backdrop { background: rgba(15, 23, 42, .88); }
.provider-result-image-preview-body { position: relative; display: grid; place-items: center; }
.provider-result-image-preview-body img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: min(82vh, 850px);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}
.provider-result-image-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .76);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.provider-result-image-preview-close:hover { background: rgba(15, 23, 42, .92); }
.provider-result-export-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0; }
.provider-result-export-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: center; gap: 6px 12px; max-height: 46vh; overflow: auto; padding: 4px; }
.provider-result-export-fields label { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; column-gap: 8px; min-width: 0; text-align: left; white-space: nowrap; color: #1f2329; font-size: 13px; line-height: 1.4; padding: 2px 4px; border-radius: 4px; cursor: pointer; }
.provider-result-export-fields label:hover { background: #f0f4f8; }
.provider-result-export-fields label input[type="checkbox"] { grid-column: 1; width: 15px; height: 15px; margin: 0; justify-self: start; }
.provider-result-export-fields label span { grid-column: 2; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-result-select-cell { width: 36px; text-align: center; }
.provider-result-select-cell input[type="checkbox"] { width: 15px; height: 15px; accent-color: #11659a; cursor: pointer; }
.provider-result-detail-message { margin: 12px 0 0; color: #b42318; font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
  .provider-result-detail-form,
  .provider-result-edit-grid,
  .provider-result-detail-definitions { grid-template-columns: 1fr; }
  .provider-result-detail-dialog { width: calc(100vw - 16px); }
  .provider-result-image-thumb { width: 58px; height: 44px; }
  .provider-result-image-preview-body img { max-width: calc(100vw - 16px); }
  .provider-result-date-range { min-width: 100%; flex-basis: 100%; }
  .provider-result-date-range input { width: calc(50% - 9px); }
}

.execution-detail-modal {
  border: 1px solid var(--border, #dde3ea);
  border-radius: 12px;
  padding: 0;
  max-width: min(860px, 92vw);
  max-height: 80vh;
  overflow: auto;
}
.execution-detail-modal::backdrop { background: rgba(0,0,0,0.35); }
.execution-detail-modal-content { padding: 16px 20px; }
.execution-detail-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.execution-detail-table-wrap { overflow-x: auto; margin-top: 8px; }
.execution-detail-table-wrap table { min-width: 640px; }

.request-detail-modal {
  border: 1px solid var(--border, #dde3ea);
  border-radius: 8px;
  padding: 0;
  width: min(1080px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}
.request-detail-modal::backdrop { background: rgba(15, 23, 42, .38); }
.request-detail-modal-content { display: flex; min-height: 0; max-height: inherit; flex-direction: column; }
.request-detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  background: #f8fafc;
}
.request-detail-modal-head strong { display: block; font-size: 16px; line-height: 1.4; }
.request-detail-modal-head p { margin-top: 2px; font-size: 13px; line-height: 1.5; }
.request-detail-modal-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.request-detail-modal-body { min-height: 0; overflow: auto; padding: 12px 18px 6px; }
.request-detail-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line, #e5e7eb);
  background: #fff;
}
.request-detail-modal-body .readonly-field-section { margin-top: 0; }
@media (max-width: 720px) {
  .request-detail-modal { width: 100vw; max-height: 94vh; border-left: 0; border-right: 0; border-radius: 0; }
  .request-detail-modal-head,
  .request-detail-modal-body,
  .request-detail-modal-footer { padding-left: 12px; padding-right: 12px; }
  .request-detail-modal-head { flex-direction: column; align-items: stretch; }
  .request-detail-modal-actions { justify-content: space-between; }
  .request-detail-modal-footer { flex-direction: column-reverse; }
}
.request-multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 4px 0;
}
.request-multi-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}
.request-multi-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #11659a;
  cursor: pointer;
}
.admin-activity {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-activity .admin-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

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

.activity-range-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.82rem;
}

.activity-legend span {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

.activity-legend .pv {
  background: #165dff;
}

.activity-legend .uv {
  background: #7ba6ff;
}

.site-activity-chart {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.site-activity-chart .activity-axis {
  stroke: #d1d5db;
  stroke-width: 1;
}

.site-activity-chart .activity-pv-line {
  fill: none;
  stroke: #165dff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-activity-chart .activity-uv-line {
  fill: none;
  stroke: #7ba6ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-activity-chart .activity-axis-label {
  fill: #6b7280;
  font-size: 12px;
}

.admin-activity .admin-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line, #e5e7eb);
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.admin-activity .activity-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.admin-activity .activity-table th,
.admin-activity .activity-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  text-align: left;
  font-size: 0.88rem;
}

.admin-activity .activity-table th {
  color: #6b7280;
  background: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}

.admin-activity .activity-table td.number,
.admin-activity .activity-table th.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-activity .activity-table code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f3f4f6;
  font-size: 0.8rem;
}

