: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: none;
}

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

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

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

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

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

.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(93, 78, 103, 0.14);
  color: var(--plum);
}

.status-badge[data-status="待分配"] {
  background: rgba(206, 98, 54, 0.16);
  color: var(--accent-deep);
}

.status-badge[data-status="执行中"] {
  background: rgba(31, 123, 116, 0.14);
  color: var(--teal);
}

.status-badge[data-status="待结果审核"] {
  background: rgba(104, 121, 46, 0.18);
  color: #56621d;
}

.status-badge[data-status="已完成"] {
  background: rgba(31, 123, 116, 0.18);
  color: #114c48;
}

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

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

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

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

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

/* 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;
  }
}
