:root {
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --panel-soft: rgba(250, 252, 250, 0.68);
  --glass-line: rgba(255, 255, 255, 0.74);
  --text: #1c2421;
  --muted: #65716d;
  --line: rgba(206, 218, 211, 0.78);
  --accent: #2f9b72;
  --accent-dark: #126449;
  --accent-border: #89d8b2;
  --accent-soft: #e8f7ef;
  --gold: #d7a93a;
  --body-start: #edf8f4;
  --body-end: #fff8e8;
  --danger: #b42318;
  --violet: #8a5bd7;
  --coral: #d86c57;
  --sky: #76b7d9;
  --shadow: 0 18px 46px rgba(24, 38, 33, 0.11);
  --shadow-soft: 0 10px 28px rgba(24, 38, 33, 0.075);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.34) 0 13%, transparent 13% 100%),
    linear-gradient(67deg, transparent 0 64%, color-mix(in srgb, var(--sky), transparent 93%) 64% 73%, transparent 73% 100%),
    linear-gradient(136deg, transparent 0 20%, color-mix(in srgb, var(--violet), transparent 94%) 20% 29%, transparent 29% 100%),
    linear-gradient(180deg, var(--body-start) 0, var(--body-end) 360px, #f6f7f4 100%);
  background-attachment: scroll;
  background-size: 100% 100%, 960px 520px, 1180px 620px, 100% 100%;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

body::before {
  content: none;
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 51%, transparent 51% 100%);
  background-size: 34px 34px, 34px 34px, 420px 420px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

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

button {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  min-height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 22px color-mix(in srgb, var(--accent), transparent 78%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

button:hover {
  filter: brightness(0.98);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 15px 28px color-mix(in srgb, var(--accent), transparent 72%);
}

button.secondary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 18px rgba(25, 39, 33, 0.055);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

button.danger {
  background: var(--danger);
}

button.mini {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

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

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 70%);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  font-weight: 850;
}

h2 {
  font-size: 17px;
  font-weight: 850;
}

h3 {
  font-size: 16px;
  font-weight: 850;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent-soft), transparent 42%);
  box-shadow: 0 12px 34px rgba(26, 38, 33, 0.07);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

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

.brand-mark,
.module-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent-border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), var(--accent-soft));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 10px 22px color-mix(in srgb, var(--accent), transparent 74%);
  font-size: 27px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-color: color-mix(in srgb, var(--gold), #fff 18%);
  color: #fff7ce;
}

.image-mark {
  position: relative;
  padding: 0;
  border: 3px solid #f2ca5f;
  background: #f4cf68;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(146, 87, 20, 0.24),
    0 0 0 4px rgba(243, 201, 82, 0.16);
}

.rainbow-shark-image-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.lingzhi-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid #f0c95a;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), transparent 18px),
    radial-gradient(circle at 72% 8%, rgba(255, 245, 173, 0.95), transparent 16px),
    linear-gradient(145deg, #fff3a9 0, #dda82f 34%, #9a39d2 72%, #46206f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.64),
    inset 0 -14px 22px rgba(70, 24, 116, 0.34),
    0 12px 24px rgba(128, 62, 179, 0.2),
    0 0 0 4px rgba(232, 186, 69, 0.16);
}

.lingzhi-mark strong {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  color: #fff7ce;
  font-size: 20px;
  line-height: 1;
  text-shadow:
    0 1px 0 #8e5c10,
    0 3px 10px rgba(68, 18, 105, 0.75);
}

.lingzhi-aura,
.lingzhi-cap,
.lingzhi-crown,
.lingzhi-stem,
.lingzhi-coin,
.lingzhi-gem {
  position: absolute;
  display: block;
}

.lingzhi-aura {
  z-index: 0;
  inset: 5px;
  border: 2px solid rgba(255, 231, 116, 0.78);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(255, 238, 150, 0.62);
}

.lingzhi-cap {
  z-index: 2;
  top: 8px;
  left: 9px;
  width: 40px;
  height: 24px;
  border: 2px solid rgba(255, 246, 204, 0.96);
  border-radius: 22px 22px 10px 10px;
  background:
    radial-gradient(circle at 25% 26%, #fff2c2 0 9%, transparent 10%),
    linear-gradient(90deg, #db355f, #f1bd37 26%, #36bb76 50%, #2f8edb 72%, #8936c7);
  box-shadow:
    inset 0 -6px 10px rgba(73, 17, 102, 0.22),
    0 4px 10px rgba(100, 35, 135, 0.28);
}

.lingzhi-crown {
  z-index: 3;
  top: 5px;
  left: 17px;
  width: 24px;
  height: 10px;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(180deg, #fff0a9, #d99b23);
  clip-path: polygon(0 100%, 10% 30%, 26% 70%, 42% 8%, 58% 70%, 74% 30%, 100% 100%);
}

.lingzhi-stem {
  z-index: 1;
  left: 22px;
  bottom: 7px;
  width: 15px;
  height: 29px;
  border-radius: 10px 10px 7px 7px;
  background: linear-gradient(180deg, #fff6d1, #e0ac32 58%, #975d18);
  box-shadow:
    inset 0 0 0 1px rgba(117, 79, 15, 0.22),
    0 4px 8px rgba(66, 24, 80, 0.2);
}

.lingzhi-coin {
  z-index: 4;
  width: 12px;
  height: 12px;
  border: 2px solid #fff6b5;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #fff9cf, #d89b20 62%, #8a5a11);
}

.coin-one {
  left: 6px;
  bottom: 10px;
}

.coin-two {
  right: 6px;
  bottom: 14px;
}

.lingzhi-gem {
  z-index: 4;
  width: 8px;
  height: 8px;
  rotate: 45deg;
  border: 1px solid #fff9d7;
  background: linear-gradient(135deg, #fff3b6, #f2c04b 45%, #7f37c1);
}

.gem-one {
  left: 10px;
  top: 13px;
}

.gem-two {
  right: 11px;
  top: 34px;
}

.module-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand p,
.updated-at,
.section-title span,
.muted {
  color: var(--muted);
}

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

.current-user {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.auth-gate {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  padding: 32px 18px;
  position: relative;
  z-index: 1;
}

.auth-card {
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent-soft), transparent 26%);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.auth-card .brand-mark {
  justify-self: center;
}

.auth-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.auth-card label span,
.user-form-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.auth-status {
  min-height: 18px;
  color: var(--danger);
  font-weight: 750;
}

.user-admin {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
}

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

.user-create-card {
  position: sticky;
  top: 96px;
}

.user-create-card .task-card-head {
  margin-bottom: 10px;
}

.user-create-card .task-card-head h3 {
  margin: 0;
}

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

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

.user-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.user-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.user-row-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.user-table-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(18, 18, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.user-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-table-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
}

.user-table-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.user-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}

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

.user-table th,
.user-table td {
  overflow: hidden;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: rgba(244, 240, 234, 0.88);
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(24, 24, 26, 0.94);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.user-table td:first-child strong {
  color: var(--text);
  font-size: 13px;
}

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

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

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

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

.user-table th:nth-child(6),
.user-table td:nth-child(6) {
  width: 10%;
  text-align: right;
}

.user-table-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.user-table-row:hover td {
  background: rgba(255, 255, 255, 0.055);
}

.user-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 86;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.user-edit-modal {
  position: fixed;
  z-index: 87;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 14px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(18, 18, 20, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 24px 70px rgba(0, 0, 0, 0.52);
  transform: translate(-50%, -50%);
}

.user-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-edit-head h3,
.user-edit-head p {
  margin: 0;
}

.user-edit-head h3 {
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.user-edit-head p,
.user-edit-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.user-edit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.user-edit-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.user-edit-meta strong {
  color: var(--text);
  font-size: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
}

.checkbox-line span {
  margin: 0;
}

.shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.hero-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--gold), #fff 76%));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.hero-strip::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 16px;
  width: 260px;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold), transparent 40%), transparent);
  transform: rotate(-14deg);
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-weight: 850;
}

.quick-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.stat-pill,
.metric {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 55%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), transparent 74%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  padding: 10px 12px;
}

.stat-pill strong,
.metric strong {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}

.stat-pill span,
.metric span {
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

body[data-view="home"] .workspace {
  min-height: calc(100vh - 116px);
  align-content: center;
}

body[data-view="module"] .workspace {
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.42fr) minmax(330px, 0.92fr);
  align-items: start;
  gap: 20px;
}

body[data-view="module"] .module-panel {
  display: none;
}

body[data-view="module"] .side-panel {
  position: sticky;
  top: 104px;
}

body[data-view="module"] .step-line {
  display: none;
}

body[data-view="module"] .flow-panel {
  grid-column: 1 / 3;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-view="module"] .flow-panel::before {
  display: none;
}

body[data-view="home"] .flow-panel,
body[data-view="home"] .side-panel,
body[data-view="home"] .support-grid {
  display: none;
}

body[data-view="users"] .workspace {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body[data-view="users"] .shell {
  width: 100%;
  max-width: none;
}

body[data-view="users"] .module-panel,
body[data-view="users"] .side-panel,
body[data-view="users"] .support-grid,
body[data-view="users"] .step-line {
  display: none !important;
}

body[data-view="users"] .flow-panel {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-view="users"] .flow-panel::before {
  display: none;
}

body[data-view="users"] #activeModulePanel {
  display: block;
  width: 100%;
  max-width: none;
}

body[data-view="home"] .module-panel {
  border: 0;
  box-shadow: none;
  background: transparent;
}

body[data-view="home"] .module-panel::before {
  display: none;
}

body[data-view="home"] .module-panel .section-title {
  justify-content: center;
  display: grid;
  gap: 4px;
  text-align: center;
}

body[data-view="home"] .module-panel .section-title h2 {
  font-size: 30px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 65%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(20px) saturate(1.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--violet), var(--gold));
  opacity: 0.58;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 28px;
}

.module-panel {
  position: static;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.module-list.home-mascots {
  position: relative;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: clamp(6px, 2vw, 28px);
  max-width: 1180px;
  margin: 20px auto 0;
  align-items: end;
}

.module-list.home-mascots::before {
  display: none;
}

.home-flow {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  margin-bottom: 4px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), #fff 44%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.home-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 18px;
  align-items: end;
}

.home-flow-head h2 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.home-flow-head p {
  color: var(--muted);
  font-weight: 650;
}

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

.home-flow-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  min-height: 172px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--card-border), #fff 28%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--card-soft), transparent 18%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 26px color-mix(in srgb, var(--card-accent), transparent 86%);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.home-flow-card::before,
.stage-card::before,
.task-flow-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.44) 42%, transparent 52% 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.16) 18px 19px);
  translate: -110% 0;
  opacity: 0.55;
}

.home-flow-card:hover::before,
.stage-card.active::before,
.task-flow-summary:hover::before {
  translate: 120% 0;
}

.flow-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--card-accent), #fff 42%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--card-dark);
  font-size: 13px;
  font-weight: 900;
}

.flow-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.flow-copy strong {
  color: var(--card-dark);
  font-size: 18px;
}

.flow-copy small {
  color: var(--muted);
  font-weight: 620;
  line-height: 1.4;
}

.flow-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.flow-checks i {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--card-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.module-list.single-module {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.module-list.single-module .home-back {
  justify-self: start;
  grid-column: 1 / -1;
  width: 100%;
}

.module-choice {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 14px;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  background: var(--panel-strong);
  text-align: left;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.home-mascots .module-choice {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    color-mix(in srgb, var(--card-soft, var(--accent-soft)), transparent 28%);
  box-shadow: 0 18px 42px rgba(25, 36, 31, 0.095);
  text-align: center;
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.home-mascots .module-choice:nth-of-type(1) {
  transform: rotate(-3deg) translateY(10px);
}

.home-mascots .module-choice:nth-of-type(2) {
  transform: translateY(-8px);
}

.home-mascots .module-choice:nth-of-type(3) {
  transform: rotate(2deg) translateY(-5px);
}

.home-mascots .module-choice:nth-of-type(4) {
  transform: rotate(3deg) translateY(12px);
}

.home-mascots .module-choice:nth-of-type(5) {
  transform: rotate(-2deg) translateY(4px);
}

.home-mascots .module-choice:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px color-mix(in srgb, var(--card-accent), transparent 82%);
}

.module-choice::after,
.task-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.64) 48%, transparent 56% 100%);
  translate: -120% 0;
  pointer-events: none;
}

.module-choice:hover::after,
.task-option:hover::after {
  translate: 120% 0;
}

.module-choice.active {
  border-color: var(--card-border, var(--accent-border));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    var(--card-soft, var(--accent-soft));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-accent), transparent 70%),
    0 16px 34px color-mix(in srgb, var(--card-accent), transparent 84%);
}

.home-mascots .module-choice.active {
  border-color: color-mix(in srgb, var(--card-border), #fff 12%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--card-soft), #fff 18%);
  box-shadow: 0 24px 48px color-mix(in srgb, var(--card-accent), transparent 82%);
}

.module-choice .module-icon {
  width: 96px;
  height: 96px;
  border-color: color-mix(in srgb, var(--line), var(--accent-border) 20%);
  background: #fff;
  filter: saturate(0.45);
  opacity: 0.82;
}

.home-mascots .module-choice .module-icon {
  width: clamp(118px, 14vw, 172px);
  height: clamp(118px, 14vw, 172px);
  border: 0;
  border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%;
  background: transparent;
  box-shadow: 0 18px 30px color-mix(in srgb, var(--card-accent), transparent 82%);
  filter: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0.92) 70%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0.92) 70%, transparent 76%);
}

.home-mascots .module-choice .module-icon img {
  scale: 1.08;
}

.module-choice.active .module-icon {
  border-color: var(--card-border, var(--accent-border));
  filter: none;
  opacity: 1;
}

.home-welcome {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 50%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), #fff 34%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.home-welcome .brand-mark {
  width: 92px;
  height: 92px;
}

.home-welcome h2 {
  font-size: 24px;
}

.module-name {
  display: block;
  font-weight: 850;
  font-size: 20px;
}

.home-mascots .module-name {
  font-size: 28px;
}

.home-mascots .module-role {
  max-width: 190px;
  font-size: 14px;
  color: color-mix(in srgb, var(--text), var(--muted) 44%);
}

.home-mascots .module-state {
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.friend-hand {
  position: absolute;
  top: 118px;
  width: clamp(24px, 4vw, 58px);
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent), #fff 45%);
  opacity: 0.7;
}

.friend-hand-left {
  left: -18px;
  rotate: 10deg;
}

.friend-hand-right {
  right: -18px;
  rotate: -10deg;
}

.home-mascots .module-choice:nth-of-type(1) .friend-hand-left,
.home-mascots .module-choice:last-of-type .friend-hand-right {
  display: none;
}

.module-role {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.module-state {
  min-width: 42px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.flow-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#activeModulePanel {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.42fr);
  gap: 14px;
  align-items: start;
}

.module-left-zone,
.module-main-zone {
  display: grid;
  gap: 14px;
  align-content: start;
}

#activeModulePanel > .module-left-zone {
  grid-column: 1;
}

#activeModulePanel > .module-main-zone {
  grid-column: 2;
}

.module-left-zone .menu-title span {
  display: none;
}

.step-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9f7;
  font-weight: 850;
}

.step-dot::after {
  content: attr(data-label);
  font-weight: 700;
}

.step-dot.active {
  border-color: var(--accent-border);
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.active-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--accent-soft), #fff 34%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.module-back {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

body[data-view="module"] .active-head,
body[data-view="module"] .status-band {
  min-height: 108px;
}

.active-head::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 120px;
  height: 20px;
  border-block: 1px solid color-mix(in srgb, var(--accent-border), transparent 20%);
  opacity: 0.42;
  transform: rotate(-8deg);
}

.active-head,
.status-band {
  min-height: 108px;
}

.active-head .module-icon {
  width: 78px;
  height: 78px;
  border-color: var(--accent-border);
}

.hero-avatar {
  box-shadow:
    0 0 0 4px #fff,
    0 14px 28px color-mix(in srgb, var(--accent), transparent 68%);
}

.status-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 40%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46)),
    color-mix(in srgb, var(--accent-soft), #fff 52%);
  margin-bottom: 0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

body[data-view="module"] .status-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--accent-soft), #fff 48%));
}

.status-band::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px auto;
  width: 138px;
  height: 6px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent), transparent 64%) 0 12px,
    transparent 12px 20px
  );
  opacity: 0.45;
}

.mobile-panel-tabs {
  display: none;
}

.status-row,
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pill.ok {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    var(--accent-soft);
  color: var(--accent-dark);
}

.pill.off {
  background: rgba(245, 246, 244, 0.68);
  color: var(--muted);
}

.task-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.task-group {
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.task-group-title {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-soft), #fff 24%), rgba(255, 255, 255, 0.54));
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.task-group-title::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.task-group[open] .task-group-title::after {
  content: "收起";
}

.task-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 10px;
}

.task-option {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-align: left;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.task-option:hover,
.module-choice:hover,
.run-row:hover,
.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent), transparent 84%);
}

.task-option.active {
  border-color: var(--card-border, var(--accent-border));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    var(--card-soft, var(--accent-soft));
  color: var(--card-dark, var(--accent-dark));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-accent), transparent 72%),
    0 12px 28px color-mix(in srgb, var(--card-accent), transparent 86%);
}

.task-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.stage-guide {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), transparent 58%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.stage-guide .section-title {
  margin-bottom: 0;
}

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

.stage-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 148px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.stage-card.active {
  border-color: var(--accent-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    var(--accent-soft);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 74%),
    0 12px 24px color-mix(in srgb, var(--accent), transparent 86%);
}

.stage-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-card-head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 24%);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.stage-card-head strong {
  color: var(--accent-dark);
}

.stage-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.stage-task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.stage-task-links button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.purple-flow-deck {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--accent-soft), #fff 18%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.purple-flow-title {
  margin-bottom: 0;
}

.purple-flow-title > div {
  display: grid;
  gap: 2px;
}

.purple-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 24%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

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

.purple-lane {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  min-height: 214px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.purple-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.46) 44%, transparent 54% 100%),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--gold), transparent 76%), transparent 72px);
  translate: -110% 0;
  opacity: 0.52;
}

.purple-lane:hover::before,
.purple-lane.active::before {
  translate: 120% 0;
}

.purple-lane.active {
  border-color: var(--accent-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    var(--accent-soft);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 72%),
    0 12px 24px color-mix(in srgb, var(--accent), transparent 86%);
}

.purple-lane-head {
  display: flex;
  gap: 9px;
  align-items: center;
}

.purple-lane-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 18%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.purple-lane-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.purple-lane-head strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.purple-lane-head small,
.purple-lane p {
  color: var(--muted);
  font-size: 12px;
}

.purple-lane p {
  font-weight: 620;
}

.purple-lane-steps,
.purple-lane-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.purple-lane-steps button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.purple-lane-steps button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft), #fff 30%);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.purple-lane-steps button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.purple-lane-steps button.active span {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.purple-lane-checks {
  align-self: end;
}

.purple-lane-checks i {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.outreach-flow-deck {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), #fff 20%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.outreach-flow-title {
  margin-bottom: 0;
}

.outreach-flow-title > div {
  display: grid;
  gap: 2px;
}

.outreach-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 18%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

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

.outreach-rail-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 64%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.outreach-rail-step span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 24%);
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.outreach-rail-step strong {
  color: var(--text);
  font-size: 13px;
}

.outreach-rail-step small {
  color: var(--muted);
  font-size: 12px;
}

.outreach-rail-step.active {
  border-color: var(--accent-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    var(--accent-soft);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 74%),
    0 10px 22px color-mix(in srgb, var(--accent), transparent 88%);
}

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

.outreach-lane {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  min-height: 164px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.outreach-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.46) 44%, transparent 54% 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--accent), transparent 88%) 18px 19px);
  translate: -110% 0;
  opacity: 0.5;
}

.outreach-lane:hover::before,
.outreach-lane.active::before {
  translate: 120% 0;
}

.outreach-lane.active {
  border-color: var(--accent-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    var(--accent-soft);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 72%),
    0 12px 24px color-mix(in srgb, var(--accent), transparent 86%);
}

.outreach-lane-head {
  display: flex;
  gap: 9px;
  align-items: center;
}

.outreach-lane-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 18%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.outreach-lane-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.outreach-lane-head strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.outreach-lane-head small,
.outreach-lane p {
  color: var(--muted);
  font-size: 12px;
}

.outreach-lane p {
  font-weight: 620;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.outreach-lane-steps,
.outreach-lane-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.outreach-lane-steps button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.outreach-lane-steps button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft), #fff 30%);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.outreach-lane-steps button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.outreach-lane-steps button.active span {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.outreach-lane-checks {
  align-self: end;
}

.outreach-lane-checks i {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.advanced-tools {
  margin: -4px 0 16px;
  border: 1px dashed color-mix(in srgb, var(--accent-border), var(--line) 35%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 82%);
}

.advanced-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 850;
}

.advanced-tools summary small {
  color: var(--muted);
  font-weight: 650;
}

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

.task-option.advanced-task {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.74);
}

.task-card {
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 65%);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5)),
    color-mix(in srgb, var(--accent-soft), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-card > .task-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
}

.task-card p {
  color: var(--muted);
  margin-top: 4px;
}

.task-flow-summary {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--accent-soft), transparent 58%);
}

.task-flow-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 14px;
}

.task-flow-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.task-flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-flow-chips span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 48%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.task-handoff {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 52%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.44)),
    color-mix(in srgb, var(--accent-soft), #fff 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px color-mix(in srgb, var(--accent), transparent 88%);
}

.task-handoff::before {
  content: "";
  position: absolute;
  inset: auto 14px 10px auto;
  width: 142px;
  height: 5px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent), transparent 60%) 0 12px,
    transparent 12px 20px
  );
  opacity: 0.45;
}

.task-handoff strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 15px;
}

.task-handoff p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.task-handoff button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.stale-action-panel {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft), #fff 55%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

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

.stale-action-head strong {
  color: var(--accent-dark);
}

.stale-action-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.stale-action-card {
  display: grid;
  grid-template-rows: auto auto 32px;
  gap: 7px;
  min-height: 118px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 48%);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stale-action-card.passive {
  grid-template-rows: auto 1fr;
}

.stale-action-card span {
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.stale-action-card strong {
  align-self: center;
  color: var(--accent-dark);
  font-size: 26px;
  line-height: 1;
}

.stale-action-card button {
  align-self: end;
  justify-content: center;
}

.fat-flow-deck {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft), #fff 28%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.fat-flow-deck::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--sky), var(--gold));
  opacity: 0.66;
}

.fat-flow-title {
  align-items: start;
  margin-bottom: 0;
}

.fat-flow-title > div:first-child {
  display: grid;
  gap: 4px;
}

.fat-flow-title h2 {
  margin: 0;
  font-size: 22px;
}

.fat-flow-title span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.fat-flow-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: min(100%, 360px);
}

.fat-flow-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.fat-flow-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fat-flow-stats strong {
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.fat-flow-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 68%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.fat-flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.58) 48%, transparent 56% 100%);
  pointer-events: none;
  translate: -120% 0;
}

.fat-flow-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px color-mix(in srgb, var(--accent), transparent 88%);
}

.fat-flow-card:hover::after,
.fat-flow-card.active::after {
  translate: 120% 0;
}

.fat-flow-card.active {
  border-color: color-mix(in srgb, var(--accent), var(--accent-border) 34%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--accent-soft), #fff 10%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 74%),
    0 18px 34px color-mix(in srgb, var(--accent), transparent 86%);
}

.fat-flow-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.fat-flow-card-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), #fff 46%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.fat-flow-card-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fat-flow-card-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.18;
}

.fat-flow-card-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.fat-flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.fat-flow-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
}

.fat-flow-checks i {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.fat-flow-card button {
  align-self: end;
  justify-content: center;
  width: 100%;
}

.fat-workbench {
  display: grid;
  gap: 12px;
}

body[data-view="module"][data-module="fattomato"] .workspace {
  grid-template-columns: minmax(360px, 0.78fr) minmax(650px, 1.36fr) minmax(320px, 0.72fr);
}

body[data-module="fattomato"] #activeModulePanel {
  grid-template-columns: minmax(380px, 0.74fr) minmax(0, 1.26fr);
}

body[data-module="fattomato"] .module-left-zone .menu-title,
body[data-module="fattomato"] .module-left-zone .task-picker {
  display: none;
}

body[data-module="fattomato"] .module-left-zone {
  gap: 10px;
}

body[data-module="fattomato"] .active-head {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  min-height: 126px;
}

body[data-module="fattomato"] .active-head .module-icon {
  width: 86px;
  height: 86px;
}

body[data-module="fattomato"] .active-head h2 {
  margin-bottom: 3px;
}

body[data-module="fattomato"] .active-head p {
  max-width: 8em;
  line-height: 1.35;
}

body[data-module="fattomato"] .status-band {
  min-height: 110px;
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-module="fattomato"] .status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body[data-module="fattomato"] .status-row .pill {
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
}

body[data-module="fattomato"] .status-band .task-actions {
  display: grid;
  grid-template-columns: auto auto;
}

.fat-toolbar,
.fat-counts,
.fat-detail,
.fat-sidebar {
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft), transparent 56%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.fat-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.fat-toolbar h3,
.fat-detail h3 {
  margin: 0;
}

.fat-scan-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.fat-scan-controls .field-hint {
  max-width: 100%;
}

.fat-scan-toolbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    color-mix(in srgb, var(--accent-soft), transparent 62%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.fat-scan-head,
.fat-scan-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fat-scan-head > div {
  display: grid;
  gap: 3px;
}

.fat-scan-head strong {
  color: var(--text);
  font-size: 1.02rem;
}

.fat-scan-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.fat-scan-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(86px, 0.42fr) minmax(150px, 0.72fr) minmax(176px, 0.9fr);
  gap: 10px;
}

.fat-scan-main button {
  min-height: 42px;
}

.fat-scan-primary {
  justify-content: center;
}

.fat-toolbar-select {
  display: grid;
  min-width: 150px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.fat-toolbar-select span {
  display: none;
}

.fat-toolbar-select select {
  min-height: 42px;
  width: 100%;
}

.fat-left-inbox {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-module="fattomato"] .fat-left-inbox {
  align-content: start;
  overflow: visible;
}

.fat-inbox-title {
  display: grid;
  gap: 2px;
  padding: 8px 2px;
}

.fat-inbox-title strong {
  color: var(--text);
}

.fat-inbox-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.fat-left-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.fat-message-limit {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 68%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.fat-message-limit label {
  margin: 0;
}

.fat-inbox-group {
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.fat-inbox-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

.fat-inbox-group summary strong {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: right;
}

.fat-inbox-list {
  display: grid;
  gap: 2px;
  padding: 6px;
  overflow: visible;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
}

.fat-inbox-group-flat .fat-inbox-list {
  border-top: 0;
}

.fat-inbox-list-scroll {
  max-height: min(776px, calc(100vh - 455px));
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent), #fff 30%) transparent;
}

.fat-inbox-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.fat-inbox-list-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), #fff 30%);
}

.fat-inbox-subgroup {
  display: grid;
  gap: 6px;
}

.fat-inbox-subgroup + .fat-inbox-subgroup {
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px dashed color-mix(in srgb, var(--accent-border), var(--line) 64%);
}

.fat-inbox-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.fat-inbox-subhead small {
  color: var(--muted);
  font-size: 0.76rem;
}

.fat-inbox-subitems {
  display: grid;
  gap: 4px;
  overflow: visible;
}

.fat-inbox-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 4px 9px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid transparent;
}

.fat-inbox-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.fat-inbox-item.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft), #fff 28%);
}

.fat-inbox-item span,
.fat-last-scan {
  color: var(--muted);
  font-size: 0.84rem;
}

.fat-creator-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.fat-profile-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-soft), #fff 28%);
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fat-profile-chip.off {
  color: var(--muted);
  background: #f5f6f4;
}

.fat-knowledge-widget {
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 62%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.fat-knowledge-widget summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: var(--accent-dark);
}

.fat-knowledge-widget summary strong {
  font-size: 0.8rem;
  color: var(--muted);
}

.fat-knowledge-body {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
}

.fat-knowledge-body textarea {
  min-height: 120px;
}

.fat-recent-qa {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 66%);
}

.fat-recent-qa > summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

.fat-recent-qa-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.fat-recent-qa-card {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.fat-recent-qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fat-recent-qa-head small,
.fat-recent-qa-card .muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.fat-recent-qa-card p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fat-knowledge-page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(31, 25, 22, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fat-knowledge-page {
  display: grid;
  gap: 14px;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent-soft), #fff 64%);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 24px 70px rgba(84, 45, 31, 0.22);
}

.fat-knowledge-page-head,
.fat-knowledge-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fat-knowledge-page-head h3 {
  margin: 0;
}

.fat-knowledge-page-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  min-height: 0;
}

.fat-knowledge-note-panel,
.fat-knowledge-qa-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 68%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.72) 76%);
}

.fat-knowledge-note-panel textarea {
  min-height: 180px;
}

.fat-knowledge-note-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
}

.fat-knowledge-note-list p {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  line-height: 1.45;
}

.fat-knowledge-section-title span {
  color: var(--muted);
  font-weight: 800;
}

.fat-knowledge-qa-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.warning-text {
  margin: 0;
  color: #9a4b18;
  font-weight: 800;
}

.fat-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.fat-counts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 50%);
  color: var(--muted);
  font-size: 0.86rem;
}

.fat-counts strong {
  color: var(--accent-dark);
}

.fat-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.65fr);
  gap: 12px;
  min-height: 520px;
}

.fat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.fat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
}

.fat-tabs button {
  min-height: 38px;
  background: #fff;
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent-border), var(--line) 40%);
}

.fat-tabs button.active {
  background: var(--accent-dark);
  color: #fff;
}

.fat-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 620px;
  padding: 10px;
  overflow: auto;
}

.fat-contact {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 88px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
}

.fat-contact.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft), #fff 32%);
}

.fat-contact-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.fat-contact-head strong,
.fat-contact-preview,
.fat-contact-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fat-contact-preview,
.fat-contact-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.fat-detail {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

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

.fat-message-pair,
.fat-message-stack {
  display: grid;
  gap: 10px;
}

.fat-message-pair > div,
.fat-message-stack > section,
.fat-suggestion,
.fat-reply-module,
.fat-kb,
.fat-compose {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 65%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--accent-soft), #fff 68%);
}

.fat-message-pair p,
.fat-message-stack p,
.fat-suggestion p,
.fat-reply-module p,
.fat-kb p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.fat-chat-thread {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}

.fat-chat-message {
  display: flex;
  min-width: 0;
}

.fat-chat-message.creator {
  justify-content: flex-start;
}

.fat-chat-message.shop {
  justify-content: flex-end;
}

.fat-chat-bubble {
  display: grid;
  gap: 5px;
  max-width: min(78%, 620px);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 3px 10px rgba(27, 39, 32, 0.04);
}

.fat-chat-message.shop .fat-chat-bubble {
  border-color: color-mix(in srgb, var(--accent), var(--line) 55%);
  background: color-mix(in srgb, var(--accent-soft), #fff 32%);
}

.fat-chat-bubble small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.fat-chat-system {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.fat-chat-system span {
  padding: 4px 9px;
  border-radius: 8px;
  background: #f7f8f5;
  overflow-wrap: anywhere;
}

.fat-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fat-reply-translation {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
}

.fat-send-status {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f8f5;
  font-weight: 800;
}

.fat-send-status.ok {
  color: #176b49;
  background: #e8f7ef;
}

.fat-send-status.warn {
  color: #9a4b18;
  background: #fff5e8;
}

.fat-contact-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    #fffaf6;
}

.fat-contact-bridge p {
  margin: 4px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.fat-contact-bridge button {
  flex: 0 0 auto;
}

.fat-reply-actions {
  display: grid;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
}

.fat-primary-actions {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.fat-primary-actions > button,
.fat-quick-replies summary {
  min-width: 118px;
  white-space: nowrap;
}

.fat-quick-reply-row {
  display: grid;
  width: 100%;
  justify-items: start;
}

.fat-quick-replies {
  display: grid;
  gap: 6px;
  width: 100%;
}

.fat-quick-replies summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent), transparent 74%);
}

.fat-quick-replies summary::-webkit-details-marker {
  display: none;
}

.fat-quick-reply-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(84, 45, 31, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.fat-quick-reply {
  display: block;
  width: 100%;
  min-width: 44px;
  padding: 7px 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.fat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 25, 22, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fat-reply-modal {
  display: grid;
  gap: 12px;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent-soft), #fff 66%);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 24px 70px rgba(84, 45, 31, 0.24);
}

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

.fat-reply-modal h3 {
  margin: 0;
}

.fat-reply-modal textarea {
  min-height: 180px;
  margin-top: 6px;
}

.fat-editor-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fat-voice-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.fat-editor-preview {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 65%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 68%);
}

.fat-editor-preview p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fat-draft-versions {
  border-top: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 72%);
  padding-top: 8px;
}

.fat-draft-versions summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent-dark);
}

.fat-draft-versions article {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.fat-draft-versions small {
  color: var(--muted);
  line-height: 1.45;
}

.fat-kb summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent-dark);
}

.fat-compose textarea {
  min-height: 110px;
  margin-top: 6px;
}

.task-progress {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 45%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 42%);
}

.task-progress strong {
  color: var(--accent-dark);
}

.task-progress span,
.task-progress small {
  color: var(--muted);
}

.task-progress.completed {
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--accent-soft), #fff 38%);
}

.task-progress.completed strong {
  color: var(--accent-dark);
}

.task-progress.failed {
  border-color: #d38a72;
  background: #fff1ec;
}

.task-progress.failed strong {
  color: #9b3e26;
}

.task-progress.stuck {
  border-color: color-mix(in srgb, var(--accent-border), var(--line) 28%);
  background: color-mix(in srgb, var(--accent-soft), #fff 18%);
}

.task-progress.stuck strong {
  color: var(--accent-dark);
}

.task-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field-group {
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 60%);
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft), #fff 62%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.field-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.field-group-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.field-step-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent-border), #fff 22%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.field-group-head strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.field-group-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  align-items: start;
  margin-top: 0;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.checkbox-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 50%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.checkbox-chip input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox-chip:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 70%);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%);
}

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

.full-field {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.fulfillment-target-field {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 55%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.66) 62%);
}

.picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.picker-row .secondary {
  white-space: nowrap;
}

.toggle-field {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 9px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 65%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.toggle-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.toggle-field strong,
.toggle-field small {
  display: block;
}

.filter-builder,
.export-filter-builder {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 52%);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.filter-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.filter-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

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

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

.filter-section > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 58%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  overflow: hidden;
}

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

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.chip input:checked + span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 68%);
}

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

.compact-toggle {
  max-width: 420px;
}

button.mini.active {
  border-color: var(--accent-border);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.filter-preview {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px dashed color-mix(in srgb, var(--accent-border), var(--line) 34%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.62) 68%);
  color: var(--accent-dark);
  white-space: pre-wrap;
  word-break: break-word;
}

.task-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 44%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.64) 42%);
  color: var(--accent-dark);
  font-weight: 750;
}

.cb-plan-preview {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-border), var(--line) 34%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.cb-plan-preview.ok {
  border-color: color-mix(in srgb, #2f9b72, var(--line) 25%);
  background: color-mix(in srgb, #e8f7ef, #fff 36%);
}

.cb-plan-preview.bad {
  border-color: color-mix(in srgb, #d85c45, var(--line) 24%);
  background: color-mix(in srgb, #fff0eb, #fff 30%);
}

.cb-plan-preview-head,
.cb-plan-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.cb-plan-preview-head strong {
  color: var(--accent-dark);
}

.cb-plan-preview-head span,
.cb-plan-preview-meta span,
.cb-plan-source {
  color: var(--muted);
  font-size: 0.86rem;
}

.cb-plan-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 8px;
  padding-left: 18px;
}

.cb-plan-list li {
  word-break: break-word;
}

.cb-plan-skipped {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cb-plan-skipped p {
  margin: 6px 0 0;
}

.side-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.1fr);
  gap: 18px;
  position: static;
  max-height: none;
  overflow: visible;
}

body[data-view="module"] .side-panel {
  grid-template-columns: 1fr;
  gap: 14px;
}

body[data-view="module"] .side-panel .panel {
  min-height: 260px;
}

.side-panel .panel {
  min-height: 0;
}

.side-panel .panel:last-child {
  display: flex;
  flex-direction: column;
}

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

.db-summary.fat-snapshot .metric.wide {
  grid-column: 1 / -1;
}

.db-summary.fat-snapshot .metric strong {
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.db-summary.fat-snapshot .metric span {
  font-size: 13px;
}

.runs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  flex: none;
  max-height: 360px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent), #fff 34%) transparent;
}

.runs-list::-webkit-scrollbar,
.artifact-viewer::-webkit-scrollbar,
.artifact-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.runs-list::-webkit-scrollbar-thumb,
.artifact-viewer::-webkit-scrollbar-thumb,
.artifact-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), #fff 34%);
}

body[data-view="module"] .runs-list {
  grid-template-columns: 1fr;
  max-height: 420px;
}

.run-row {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.run-row strong {
  display: block;
}

.run-row small {
  color: var(--muted);
}

.run-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.run-actions button {
  min-height: 34px;
  padding: 6px 10px;
}

.run-actions .technical {
  color: var(--muted);
  font-weight: 650;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}

.is-hidden {
  display: none !important;
}

.log-panel,
.result-panel {
  min-height: 340px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 260px;
}

.artifact-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.artifact-list:empty {
  display: none;
}

.artifact-tab {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: auto;
  min-width: 180px;
  max-width: 280px;
  min-height: 52px;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

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

.artifact-tab.active {
  color: var(--accent-dark);
  border-color: var(--accent-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    var(--accent-soft);
}

.artifact-tab small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-viewer {
  min-width: 0;
  min-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--accent-soft), transparent 76%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.artifact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.artifact-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.artifact-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1d2422;
}

.artifact-table-wrap {
  overflow: auto;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.artifact-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 12px;
}

.artifact-table th,
.artifact-table td {
  max-width: 260px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.artifact-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--accent-soft), #fff 44%);
  color: var(--accent-dark);
  font-weight: 850;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.conflict-panel {
  display: grid;
  gap: 10px;
}

.conflict-panel-head,
.conflict-title,
.conflict-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.conflict-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.conflict-title span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

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

.conflict-values label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.conflict-values small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.conflict-values strong {
  display: block;
  margin-top: 3px;
  word-break: break-word;
}

.conflict-actions input {
  min-width: 0;
}

.manual-contact-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--accent-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft), #fff 58%);
}

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

.manual-contact-grid label,
.manual-contact-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.manual-contact-field span {
  font-weight: 800;
  color: var(--text);
}

.inline-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

@media (max-width: 900px) {
  .fat-toolbar,
  .fat-flow-title,
  .fat-detail-head,
  .fat-knowledge-page-head {
    display: grid;
  }

  .fat-scan-controls,
  .fat-counts,
  .fat-board,
  .fat-message-pair,
  .fat-knowledge-page-grid {
    grid-template-columns: 1fr;
  }

  .conflict-actions,
  .fat-left-actions,
  .inline-edit-row,
  .manual-contact-grid {
    grid-template-columns: 1fr;
  }

  .fat-scan-main,
  .fat-scan-stats {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Assist mode, first-run guides, and records modal. */
.assist-toggle.active,
.top-actions button.active {
  border-color: rgba(255, 122, 61, 0.52);
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.94), rgba(126, 60, 255, 0.86));
  color: #fff;
}

body[data-help-mode="1"] [data-help-key] {
  cursor: help;
  outline: 1px solid rgba(255, 238, 91, 0.38);
  outline-offset: 3px;
}

body[data-help-mode="1"] [data-help-key]:hover {
  outline-color: rgba(255, 238, 91, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(255, 238, 91, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.task-option span,
.task-card-head p,
.home-flow-head p,
.home-flow-card small,
.stage-card p,
.purple-lane p,
.outreach-lane p,
.fat-flow-card p,
.task-flow-summary p,
.task-handoff p,
.field-group-head small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-checks,
.purple-lane-checks,
.outreach-lane-checks,
.fat-flow-checks {
  display: none;
}

.field-hint {
  display: none;
}

body[data-help-mode="1"] .field-hint {
  display: block;
}

body[data-auth="in"] .support-grid {
  display: none;
}

.records-backdrop,
.guide-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.records-backdrop {
  z-index: 86;
}

.guide-backdrop {
  z-index: 106;
}

.records-titlebar,
.records-run-drawer,
.guide-modal,
.assist-help-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(18, 18, 20, 0.9);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 70px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(28px) saturate(1.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
}

body {
  --records-edge: clamp(12px, 2.2vw, 34px);
  --records-top: 150px;
  --records-drawer-width: 320px;
}

body[data-records-open="1"] {
  overflow: hidden;
}

body[data-records-open="1"][data-auth="in"] .support-grid {
  position: fixed;
  z-index: 92;
  top: var(--records-top);
  right: var(--records-edge);
  bottom: var(--records-edge);
  left: calc(var(--records-edge) + var(--records-drawer-width) + 14px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 12px;
  margin: 0;
  overflow: hidden;
}

body[data-records-open="1"] .support-grid > .panel {
  min-height: 0;
  overflow: hidden;
}

body[data-records-open="1"] .result-panel,
body[data-records-open="1"] .log-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-records-open="1"] .result-layout {
  min-height: 0;
  overflow: hidden;
}

body[data-records-open="1"] .artifact-viewer,
body[data-records-open="1"] #logBox {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.records-titlebar {
  position: fixed;
  z-index: 94;
  top: 78px;
  right: var(--records-edge);
  left: var(--records-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
}

.records-titlebar h2,
.records-run-head h3,
.guide-modal h2,
.assist-help-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0;
}

.records-titlebar p,
.guide-modal p,
.assist-help-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.records-run-drawer {
  position: fixed;
  z-index: 93;
  top: var(--records-top);
  bottom: var(--records-edge);
  left: var(--records-edge);
  width: var(--records-drawer-width);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

.records-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.records-run-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.records-run-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.records-run-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.records-run-item.active {
  border-color: rgba(255, 122, 61, 0.44);
  background: rgba(255, 122, 61, 0.13);
}

.records-run-item strong,
.records-run-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-run-item strong {
  color: var(--text);
  font-size: 13px;
}

.records-run-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.records-run-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.guide-modal {
  position: fixed;
  z-index: 108;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 28px));
  padding: 18px;
  transform: translate(-50%, -50%);
}

.guide-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.assist-step-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: assistStep;
}

.assist-step-list li {
  position: relative;
  min-height: 38px;
  padding: 9px 10px 9px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  counter-increment: assistStep;
}

.assist-step-list li::before {
  content: counter(assistStep);
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a3d, #8e45ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.guide-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.assist-help-panel {
  position: fixed;
  z-index: 112;
  top: 92px;
  right: var(--records-edge);
  width: min(430px, calc(100vw - 24px));
  padding: 14px;
}

.assist-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.assist-hand {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

@media (max-width: 980px) {
  body[data-records-open="1"][data-auth="in"] .support-grid {
    top: 330px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .records-titlebar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .records-run-drawer {
    top: 118px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-height: 194px;
  }

  .records-run-list {
    grid-template-columns: 1fr;
  }

  .assist-help-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 560px) {
  .records-titlebar {
    align-items: start;
  }

  .records-titlebar p {
    display: none;
  }

  .guide-modal {
    padding: 14px;
  }

  .assist-panel-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .assist-panel-head button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

#logBox {
  min-height: 270px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #151a1f;
  color: #d6e2dc;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.file-warning {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
}

.file-warning code {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 850;
}

/* Dark glass console theme inspired by the supplied product reference. */
:root {
  color-scheme: dark;
  --panel: rgba(18, 18, 20, 0.72);
  --panel-strong: rgba(28, 28, 31, 0.86);
  --panel-soft: rgba(36, 36, 40, 0.62);
  --glass-line: rgba(255, 255, 255, 0.12);
  --text: #f4f0ea;
  --muted: #a5a19c;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff7a3d;
  --accent-dark: #f4d7c8;
  --accent-border: rgba(255, 255, 255, 0.18);
  --accent-soft: rgba(142, 69, 255, 0.16);
  --gold: #f5ee5b;
  --body-start: #050505;
  --body-end: #101012;
  --danger: #ff6a52;
  --violet: #7a3cff;
  --coral: #ff7842;
  --sky: #7c89ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.32);
}

body {
  color: var(--text);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.035) 0 12%, transparent 12% 100%),
    linear-gradient(68deg, transparent 0 62%, rgba(124, 60, 255, 0.14) 62% 63%, transparent 63% 100%),
    linear-gradient(156deg, transparent 0 22%, rgba(255, 122, 61, 0.1) 22% 23%, transparent 23% 100%),
    radial-gradient(1200px 520px at 74% -18%, rgba(126, 60, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #030303 0, #0b0b0d 42%, #111114 100%);
  background-attachment: scroll;
  background-size: 100% 100%, 980px 520px, 1180px 620px, 100% 100%, 100% 100%;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 48% 49%, transparent 49% 100%);
  background-size: 42px 42px, 42px 42px, 520px 520px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 190px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
}

h1,
h2,
h3,
.module-name,
.task-card-head h3,
.fat-flow-title h2,
.home-flow-head h2 {
  color: var(--text);
  letter-spacing: 0;
}

.brand p,
.updated-at,
.section-title span,
.muted,
.field-hint,
.task-option span,
.stage-card p,
.purple-lane p,
.outreach-lane p,
.fat-flow-card p,
.run-row small {
  color: var(--muted);
}

button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #ff7a3d 0%, #8e45ff 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 28px rgba(115, 54, 255, 0.24);
}

button:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 34px rgba(255, 122, 61, 0.22);
}

button.secondary,
button.mini.active,
.stage-task-links button.active,
.purple-lane-steps button.active,
.outreach-lane-steps button.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: rgba(255, 122, 61, 0.42);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.74);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.brand-mark,
.module-icon,
.image-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #111113;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.42);
}

.brand .image-mark {
  animation: none;
}

.current-user {
  color: var(--text);
}

.panel,
.auth-card,
.hero-strip,
.home-flow,
.home-welcome,
body[data-view="module"] .active-head,
.active-head,
.status-band,
.stage-guide,
.purple-flow-deck,
.outreach-flow-deck,
.fat-flow-deck,
.task-card,
.fat-toolbar,
.fat-counts,
.fat-detail,
.fat-sidebar,
.fat-scan-toolbar,
.fat-knowledge-widget,
.fat-contact-bridge,
.task-flow-summary,
.task-handoff,
.advanced-tools,
.filter-builder,
.export-filter-builder,
.fulfillment-target-field,
.cb-plan-preview,
.conflict-panel,
.manual-contact-editor,
.fat-knowledge-page,
.result-panel,
.log-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 20, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

.panel::before {
  background: linear-gradient(90deg, rgba(255, 122, 61, 0.78), rgba(126, 60, 255, 0.72), rgba(245, 238, 91, 0.58));
  opacity: 0.54;
}

.panel::after {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 58%);
}

.active-head::after,
.status-band::after {
  opacity: 0.22;
}

.module-choice,
.home-mascots .module-choice,
.home-flow-card,
.task-option,
.task-group,
.stage-card,
.purple-lane,
.outreach-lane,
.outreach-rail-step,
.fat-flow-card,
.fat-inbox-item,
.fat-contact,
.fat-recent-qa-card,
.fat-knowledge-note-panel,
.fat-knowledge-qa-panel,
.fat-message-pair > div,
.fat-message-stack > section,
.fat-suggestion,
.fat-reply-module,
.fat-kb,
.fat-compose,
.fat-chat-system,
.metric,
.stat-pill,
.run-row,
.user-row,
.conflict-item,
.stale-action-card,
.field-group,
.toggle-field,
.checkbox-chip,
.chip,
.filter-preview,
.task-notice,
.artifact-card,
.artifact-viewer,
.artifact-table-wrap {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(35, 35, 39, 0.58);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.home-mascots .module-choice,
.home-mascots .module-choice:nth-of-type(1),
.home-mascots .module-choice:nth-of-type(2),
.home-mascots .module-choice:nth-of-type(3),
.home-mascots .module-choice:nth-of-type(4) {
  transform: none;
}

.home-mascots .module-choice {
  min-height: 246px;
  padding: 16px 12px;
}

.home-mascots .module-choice .module-icon {
  width: clamp(92px, 10vw, 126px);
  height: clamp(92px, 10vw, 126px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.friend-hand {
  display: none;
}

.module-choice:hover,
.task-option:hover,
.run-row:hover,
.metric:hover,
.fat-flow-card:hover,
.stage-card:hover,
.purple-lane:hover,
.outreach-lane:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.module-choice.active,
.home-mascots .module-choice.active,
.task-option.active,
.stage-card.active,
.purple-lane.active,
.outreach-lane.active,
.outreach-rail-step.active,
.fat-flow-card.active,
.home-flow-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 122, 61, 0.95) 0%, rgba(126, 60, 255, 0.86) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 48px rgba(126, 60, 255, 0.28);
}

.module-choice.active *,
.task-option.active *,
.stage-card.active *,
.purple-lane.active *,
.outreach-lane.active *,
.outreach-rail-step.active *,
.fat-flow-card.active *,
.home-flow-card:hover * {
  color: #fff;
}

.module-choice .module-icon {
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(255, 255, 255, 0.16);
  filter: saturate(0.75) contrast(0.95);
}

.module-choice.active .module-icon,
.home-mascots .module-choice .module-icon {
  filter: saturate(0.95) contrast(0.98);
}

.flow-number,
.stage-card-head span,
.purple-lane-head > span,
.outreach-lane-head > span,
.outreach-rail-step span,
.fat-flow-card-head > span,
.purple-lane-steps button span,
.outreach-lane-steps button span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.flow-checks i,
.purple-lane-checks i,
.outreach-lane-checks i,
.fat-flow-checks i,
.pill,
.purple-flow-badge,
.outreach-flow-badge {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.pill.ok,
.pill.off,
.fat-send-status.ok,
.fat-send-status.warn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.pill.ok {
  color: #c8ffdf;
}

.pill.off,
.fat-send-status.warn {
  color: #f2b9aa;
}

input,
textarea,
select,
.fat-toolbar-select select,
.conflict-actions input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 240, 234, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 122, 61, 0.62);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(255, 122, 61, 0.18);
}

.checkbox-chip:has(input:checked),
.chip input:checked + span,
button.mini.active {
  border-color: rgba(255, 122, 61, 0.42);
  background: rgba(255, 122, 61, 0.16);
  color: #ffd9ca;
}

.task-group-title {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.task-group-title::after {
  color: var(--muted);
}

.field-group-head,
.stale-action-head,
.fat-inbox-title,
.fat-detail-head,
.fat-reply-head,
.fat-knowledge-section-title,
.conflict-panel-head {
  color: var(--text);
}

.field-step-index,
.eyebrow,
.filter-section > span,
.cb-plan-preview-head strong,
.stage-card-head strong,
.purple-lane-head strong,
.outreach-lane-head strong,
.fat-flow-card-head strong,
.flow-copy strong {
  color: var(--text);
}

.fat-chat-message.creator .fat-chat-bubble,
.fat-chat-message.shop .fat-chat-bubble {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.fat-chat-message.creator .fat-chat-bubble {
  background: rgba(255, 255, 255, 0.1);
}

.fat-chat-message.shop .fat-chat-bubble,
.fat-reply-translation,
.fat-editor-preview {
  background: rgba(126, 60, 255, 0.14);
}

.fat-contact.active,
.fat-inbox-item.active {
  border-color: rgba(255, 122, 61, 0.44);
  background: rgba(255, 122, 61, 0.14);
}

.fat-modal-backdrop,
.fat-knowledge-page-backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fat-reply-modal {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(18, 18, 20, 0.92);
  color: var(--text);
}

.cb-plan-preview.ok {
  border-color: rgba(111, 255, 174, 0.26);
  background: rgba(111, 255, 174, 0.08);
}

.cb-plan-preview.bad,
.task-notice {
  border-color: rgba(255, 122, 61, 0.22);
  background: rgba(255, 122, 61, 0.08);
}

.artifact-table th,
.artifact-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.runs-list,
.artifact-viewer,
.artifact-table-wrap,
.fat-inbox-list-scroll {
  scrollbar-color: rgba(255, 122, 61, 0.54) transparent;
}

.runs-list::-webkit-scrollbar-thumb,
.artifact-viewer::-webkit-scrollbar-thumb,
.artifact-table-wrap::-webkit-scrollbar-thumb,
.fat-inbox-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 61, 0.48);
}

#logBox {
  border-color: rgba(255, 255, 255, 0.1);
  background: #08080a;
  color: #d8d1ca;
}

.file-warning code {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body[data-view="module"] .status-band,
body[data-module="fattomato"] .status-band,
body[data-view="module"] .module-left-zone .status-band {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.fat-flow-stats span,
.fat-scan-controls,
.fat-message-limit,
.fat-inbox-group,
.fat-inbox-list,
.fat-inbox-subhead,
.fat-knowledge-body textarea,
.fat-knowledge-note-list,
.fat-knowledge-qa-list,
.fat-draft-versions article {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.fat-flow-stats small {
  color: var(--muted);
}

.fat-flow-stats strong {
  color: var(--text);
}

.status-row .pill,
body[data-module="fattomato"] .status-row .pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.075);
}

.task-option.advanced-task,
.advanced-picker .task-option {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(35, 35, 39, 0.58);
  color: var(--text);
}

@media (max-width: 1180px) {
  .workspace,
  .hero-strip,
  .support-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  body[data-view="module"] .workspace {
    grid-template-columns: minmax(260px, 0.75fr) minmax(430px, 1.25fr);
  }

  body[data-view="module"] .flow-panel {
    grid-column: 1 / -1;
  }

  body[data-view="module"] #activeModulePanel {
    grid-template-columns: minmax(260px, 0.75fr) minmax(430px, 1.25fr);
  }

  body[data-view="module"][data-module="fattomato"] #activeModulePanel {
    grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  }

  body[data-view="module"] .side-panel {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="module"] .runs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-flow-grid,
  .stage-guide-grid,
  .purple-flow-grid,
  .outreach-flow-grid,
  .fat-flow-grid,
  .outreach-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-flow-head {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand h1 {
    font-size: 20px;
    white-space: nowrap;
  }

  .brand p {
    font-size: 12px;
    white-space: normal;
  }

  .top-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    justify-content: stretch;
  }

  .updated-at {
    display: none;
  }

  .top-actions button {
    min-height: 34px;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .current-user {
    grid-column: 1 / -1;
    width: 100%;
    text-align: left;
  }

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

  body[data-view="module"] .workspace,
  body[data-view="module"] #activeModulePanel,
  body[data-view="module"] .side-panel,
  body[data-view="module"] .runs-list,
  .workspace,
  .hero-strip,
  .support-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  body[data-view="module"][data-module="fattomato"] #activeModulePanel {
    grid-template-columns: 1fr;
  }

  body[data-module="fattomato"] .fat-left-inbox {
    max-height: none;
  }

  .home-flow-grid,
  .stage-guide-grid,
  .purple-flow-grid,
  .outreach-flow-grid,
  .fat-flow-grid,
  .fat-flow-stats,
  .outreach-rail,
  .advanced-picker {
    grid-template-columns: 1fr;
  }

  .home-flow-card {
    min-height: 138px;
  }

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

  .purple-lane {
    min-height: 0;
  }

  .outreach-lane,
  .outreach-rail-step {
    min-height: 0;
  }

  .fat-flow-deck {
    gap: 10px;
    padding: 12px;
  }

  .fat-flow-title h2 {
    font-size: 20px;
  }

  .fat-flow-title span {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .fat-flow-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .fat-flow-stats span {
    padding: 7px 8px;
  }

  .fat-flow-stats small {
    font-size: 10px;
  }

  .fat-flow-stats strong {
    font-size: 12px;
  }

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

  .fat-flow-card {
    min-height: 0;
    padding: 10px;
    gap: 7px;
  }

  .fat-flow-card-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fat-flow-card-head > span {
    width: 30px;
    height: 30px;
  }

  .fat-flow-card-head strong {
    font-size: 14px;
  }

  .fat-flow-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .fat-flow-checks {
    display: none;
  }

  .fat-flow-card button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .task-handoff {
    grid-template-columns: 1fr;
  }

  .task-handoff button {
    width: 100%;
  }

  .stale-action-grid {
    grid-template-columns: 1fr;
  }

  body[data-view="module"] .flow-panel,
  #activeModulePanel > .module-left-zone,
  #activeModulePanel > .module-main-zone {
    grid-column: 1;
  }

  body[data-view="module"] .module-left-zone .active-head {
    min-height: 92px;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  body[data-view="module"] .module-left-zone .status-band {
    min-height: 82px;
    margin-top: -8px;
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  body[data-view="module"] .task-option {
    min-height: 72px;
  }

  body[data-view="module"] .task-option span {
    display: none;
  }

  body[data-view="module"] .mobile-panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-view="module"] .mobile-panel-tabs button {
    min-height: 42px;
    padding: 8px 6px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
      rgba(35, 35, 39, 0.68);
  }

  body[data-view="module"] .mobile-panel-tabs button.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #ff7a3d 0%, #8e45ff 100%);
  }

  body[data-view="module"][data-mobile-panel="settings"] .menu-title,
  body[data-view="module"][data-mobile-panel="settings"] .task-picker,
  body[data-view="module"][data-mobile-panel="settings"] .side-panel,
  body[data-view="module"][data-mobile-panel="settings"] .support-grid {
    display: none;
  }

  body[data-view="module"][data-mobile-panel="menu"] .module-main-zone,
  body[data-view="module"][data-mobile-panel="menu"] .side-panel,
  body[data-view="module"][data-mobile-panel="menu"] .support-grid {
    display: none;
  }

  body[data-view="module"][data-mobile-panel="results"] .menu-title,
  body[data-view="module"][data-mobile-panel="results"] .task-picker,
  body[data-view="module"][data-mobile-panel="results"] .module-main-zone {
    display: none;
  }

  body[data-view="module"][data-mobile-panel="results"] .side-panel {
    display: grid;
  }

  body[data-view="module"] .module-panel,
  body[data-view="module"] .side-panel,
  .module-panel,
  .side-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .flow-panel,
  .side-panel {
    height: auto;
    min-height: 0;
  }

  .quick-stats {
    min-width: 0;
  }

  .runs-list {
    max-height: 390px;
  }

  .shell {
    padding: 10px 12px;
  }

  .quick-stats,
  .module-list,
  .module-list.home-mascots,
  .module-list.single-module,
  #activeModulePanel,
  .task-picker,
  .task-group-grid,
  .fields,
  .db-summary,
  .runs-list,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .run-actions {
    grid-template-columns: 1fr;
  }

  .home-welcome {
    grid-template-columns: 1fr;
  }

  .module-list.home-mascots::before,
  .friend-hand {
    display: none;
  }

  .home-mascots .module-choice,
  .home-mascots .module-choice:nth-of-type(1),
  .home-mascots .module-choice:nth-of-type(2),
  .home-mascots .module-choice:nth-of-type(3),
  .home-mascots .module-choice:nth-of-type(4) {
    min-height: 210px;
    transform: none;
  }
}

html[lang="en"] .advanced-tools > summary::after {
  content: "Expand";
}

html[lang="en"] .advanced-tools[open] > summary::after {
  content: "Collapse";
}

html[lang="it"] .advanced-tools > summary::after {
  content: "Espandi";
}

html[lang="it"] .advanced-tools[open] > summary::after {
  content: "Riduci";
}

html[lang="de"] .advanced-tools > summary::after {
  content: "Öffnen";
}

html[lang="de"] .advanced-tools[open] > summary::after {
  content: "Schließen";
}

html[lang="en"] .drawer-task-item.active::after {
  content: "Current";
}

html[lang="it"] .drawer-task-item.active::after {
  content: "Attuale";
}

html[lang="de"] .drawer-task-item.active::after {
  content: "Aktuell";
}

/* Final assist overrides after legacy responsive rules. */
body[data-auth="in"] .support-grid {
  display: none;
}

body[data-records-open="1"][data-auth="in"] .support-grid {
  position: fixed;
  z-index: 92;
  top: var(--records-top);
  right: var(--records-edge);
  bottom: var(--records-edge);
  left: calc(var(--records-edge) + var(--records-drawer-width) + 14px);
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 12px;
  margin: 0;
  overflow: hidden;
}

body[data-help-mode="1"] [data-help-key] {
  cursor: help;
  outline: 1px solid rgba(255, 238, 91, 0.44);
  outline-offset: 3px;
}

.flow-checks,
.purple-lane-checks,
.outreach-lane-checks,
.fat-flow-checks,
.field-hint {
  display: none;
}

body[data-help-mode="1"] .field-hint {
  display: block;
}

@media (max-width: 980px) {
  body[data-records-open="1"][data-auth="in"] .support-grid {
    top: 330px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  body[data-records-open="1"] .records-titlebar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  body[data-records-open="1"] .records-run-drawer {
    top: 118px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-height: 194px;
  }
}

/* Ultra-minimal surface: all explanations move behind the hand helper. */
body[data-auth="in"] .brand p,
body[data-auth="in"] .section-title > span,
body[data-auth="in"] .module-role,
body[data-auth="in"] .active-head p,
body[data-auth="in"] .home-welcome p,
body[data-auth="in"] .home-flow-head p,
body[data-auth="in"] .home-flow-card small,
body[data-auth="in"] .flow-checks,
body[data-auth="in"] .stage-card p,
body[data-auth="in"] .stage-task-links,
body[data-auth="in"] .purple-flow-title span,
body[data-auth="in"] .purple-flow-badge,
body[data-auth="in"] .purple-lane-head small,
body[data-auth="in"] .purple-lane p,
body[data-auth="in"] .purple-lane-checks,
body[data-auth="in"] .outreach-flow-title span,
body[data-auth="in"] .outreach-flow-badge,
body[data-auth="in"] .outreach-rail-step small,
body[data-auth="in"] .outreach-lane-head small,
body[data-auth="in"] .outreach-lane p,
body[data-auth="in"] .outreach-lane-checks,
body[data-auth="in"] .fat-flow-title span,
body[data-auth="in"] .fat-flow-card-head small,
body[data-auth="in"] .fat-flow-card p,
body[data-auth="in"] .fat-flow-checks,
body[data-auth="in"] .task-option span,
body[data-auth="in"] .advanced-tools summary small,
body[data-auth="in"] .task-card-head p,
body[data-auth="in"] .task-flow-summary,
body[data-auth="in"] .task-handoff p,
body[data-auth="in"] .task-notice,
body[data-auth="in"] .field-group-head small,
body[data-auth="in"] .field-hint,
body[data-auth="in"] .filter-preview,
body[data-auth="in"] .stale-action-head span,
body[data-auth="in"] .cb-plan-source,
body[data-auth="in"] .fat-knowledge-widget > p,
body[data-auth="in"] .fat-knowledge-page-head p,
body[data-auth="in"] .fat-reply-editor-head p,
body[data-auth="in"] .fat-voice-status,
body[data-auth="in"] .auth-copy p {
  display: none !important;
}

body[data-auth="in"] .task-group-title,
body[data-auth="in"] .advanced-tools summary,
body[data-auth="in"] .fat-inbox-group summary,
body[data-auth="in"] .fat-knowledge-widget summary,
body[data-auth="in"] .fat-recent-qa > summary,
body[data-auth="in"] .fat-quick-replies summary {
  min-height: 34px;
  padding: 8px 10px;
}

body[data-auth="in"] .home-flow,
body[data-auth="in"] .stage-guide,
body[data-auth="in"] .purple-flow-deck,
body[data-auth="in"] .outreach-flow-deck,
body[data-auth="in"] .fat-flow-deck,
body[data-auth="in"] .task-card,
body[data-auth="in"] .status-band,
body[data-auth="in"] .active-head,
body[data-auth="in"] .panel {
  gap: 10px;
}

body[data-auth="in"] .home-flow-head,
body[data-auth="in"] .purple-flow-title,
body[data-auth="in"] .outreach-flow-title,
body[data-auth="in"] .fat-flow-title,
body[data-auth="in"] .task-card-head,
body[data-auth="in"] .field-group-head,
body[data-auth="in"] .stale-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}

body[data-auth="in"] .home-flow-head h2,
body[data-auth="in"] .purple-flow-title h2,
body[data-auth="in"] .outreach-flow-title h2,
body[data-auth="in"] .fat-flow-title h2,
body[data-auth="in"] .task-card-head h3 {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.15;
}

body[data-auth="in"] .home-flow-grid,
body[data-auth="in"] .stage-guide-grid,
body[data-auth="in"] .purple-flow-grid,
body[data-auth="in"] .outreach-flow-grid,
body[data-auth="in"] .fat-flow-grid,
body[data-auth="in"] .outreach-rail {
  gap: 8px;
}

body[data-auth="in"] .home-flow-card,
body[data-auth="in"] .stage-card,
body[data-auth="in"] .purple-lane,
body[data-auth="in"] .outreach-lane,
body[data-auth="in"] .outreach-rail-step,
body[data-auth="in"] .fat-flow-card,
body[data-auth="in"] .task-option,
body[data-auth="in"] .run-row,
body[data-auth="in"] .metric,
body[data-auth="in"] .field-group {
  min-height: 0 !important;
  padding: 10px !important;
}

body[data-auth="in"] .task-option {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

body[data-auth="in"] .task-option strong,
body[data-auth="in"] .home-flow-card strong,
body[data-auth="in"] .stage-card-head strong,
body[data-auth="in"] .purple-lane-head strong,
body[data-auth="in"] .outreach-lane-head strong,
body[data-auth="in"] .fat-flow-card-head strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-auth="in"] .home-flow-card {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 54px !important;
}

body[data-auth="in"] .flow-copy {
  min-width: 0;
}

body[data-auth="in"] .stage-card-head,
body[data-auth="in"] .purple-lane-head,
body[data-auth="in"] .outreach-lane-head,
body[data-auth="in"] .fat-flow-card-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

body[data-auth="in"] .purple-lane-steps,
body[data-auth="in"] .outreach-lane-steps,
body[data-auth="in"] .fat-flow-card button {
  margin-top: 2px;
}

body[data-auth="in"] .home-mascots .module-choice,
body[data-auth="in"] .module-choice {
  min-height: 78px !important;
  padding: 10px !important;
}

body[data-auth="in"] .home-mascots .module-choice .module-icon,
body[data-auth="in"] .module-choice .module-icon {
  width: 54px !important;
  height: 54px !important;
}

body[data-auth="in"] .home-mascots .module-name,
body[data-auth="in"] .module-name {
  font-size: 16px;
}

body[data-auth="in"] .home-welcome {
  min-height: 96px;
  padding: 14px;
}

body[data-auth="in"] .home-welcome .brand-mark {
  width: 64px;
  height: 64px;
}

body[data-auth="in"] .fields,
body[data-auth="in"] .user-form-grid,
body[data-auth="in"] .mini-grid {
  gap: 8px;
}

body[data-auth="in"] label {
  gap: 5px;
}

body[data-auth="in"] button,
body[data-auth="in"] .secondary,
body[data-auth="in"] .mini {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
}

body[data-auth="in"] .top-actions {
  gap: 8px;
}

body[data-auth="in"] .assist-help-panel p,
body[data-auth="in"] .guide-modal p,
body[data-auth="in"] .records-titlebar p,
body[data-auth="in"] .records-run-item small,
body[data-auth="in"] .assist-step-list li,
body[data-auth="in"] .artifact-viewer p,
body[data-auth="in"] .fat-chat-bubble p,
body[data-auth="in"] .fat-suggestion p,
body[data-auth="in"] .fat-reply-module p,
body[data-auth="in"] .fat-kb p,
body[data-auth="in"] .fat-message-stack p,
body[data-auth="in"] .fat-draft-versions p,
body[data-auth="in"] .fat-recent-qa-card p,
body[data-auth="in"] .fat-knowledge-note-list p,
body[data-auth="in"] .fat-knowledge-qa-list p {
  display: revert !important;
}

body[data-help-mode="1"] .field-hint {
  display: none !important;
}

body[data-auth="in"] .records-titlebar p,
body[data-auth="in"] .fat-reply-editor-head p,
body[data-auth="in"] .fat-knowledge-page-head p,
body[data-auth="in"] .fat-knowledge-widget > p,
body[data-auth="in"] .fat-voice-status,
body[data-auth="in"] .task-card > p.muted,
body[data-auth="in"] .module-main-zone > p.muted,
body[data-auth="in"] .module-left-zone > p.muted {
  display: none !important;
}

body[data-view="home"] .module-panel > .section-title {
  display: none !important;
}

body[data-view="home"] .module-panel {
  padding-top: 0;
}

body[data-view="home"] .module-list.home-mascots {
  align-content: start;
  padding-top: 0;
}

@media (max-width: 760px) {
  .module-top-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
  }

  .top-module-pill,
  .top-status-pill {
    max-width: none;
  }
}

/* Function drawer navigation. */
body[data-menu-drawer-open="1"] {
  overflow: hidden;
}

body[data-view="module"]:not([data-module="fattomato"]) #activeModulePanel {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-view="module"]:not([data-module="fattomato"]) #activeModulePanel > .module-main-zone {
  grid-column: 1 !important;
}

.drawer-edge-trigger {
  position: fixed;
  z-index: 81;
  top: 82px;
  bottom: 0;
  left: 0;
  width: 22px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
  opacity: 0.32;
  transition: opacity 180ms ease;
}

.drawer-edge-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 3px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 61, 0.82), rgba(138, 67, 255, 0.62));
  box-shadow: 0 0 24px rgba(138, 67, 255, 0.38);
  transform: translateY(-50%);
}

.drawer-edge-trigger:hover,
.drawer-edge-trigger:focus-visible {
  opacity: 1;
  outline: 0;
}

body[data-menu-drawer-open="1"] .drawer-edge-trigger {
  pointer-events: none;
  opacity: 0;
}

.module-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.module-top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.top-module-pill,
.top-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 170px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-module-pill {
  border-color: rgba(255, 122, 61, 0.3);
  background: rgba(255, 122, 61, 0.13);
}

.top-status-pill.ok {
  color: #c8ffdf;
}

.top-status-pill.off {
  color: #f2b9aa;
}

.menu-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 82;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.menu-drawer-backdrop.closing {
  animation: drawerBackdropFadeOut 260ms ease forwards;
}

.function-drawer {
  position: fixed;
  z-index: 84;
  top: 86px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, auto) minmax(0, 1fr);
  gap: 12px;
  width: min(390px, calc(100vw - 28px));
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(18, 18, 20, 0.92);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 70px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(28px) saturate(1.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
}

.function-drawer-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.function-drawer-head .drawer-avatar {
  width: 46px;
  height: 46px;
}

.function-drawer-head h2,
.function-drawer-head p {
  margin: 0;
}

.function-drawer-head h2 {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-drawer-head p {
  display: block !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.drawer-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.drawer-section-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.drawer-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.drawer-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.drawer-group summary::-webkit-details-marker {
  display: none;
}

.drawer-group summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.drawer-group[open] summary::after {
  content: "－";
}

.drawer-group summary span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 11px;
}

.drawer-submenu {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px 42px;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.drawer-menu-item:hover,
.drawer-menu-item.active {
  border-color: rgba(255, 122, 61, 0.42);
  background: rgba(255, 122, 61, 0.16);
}

.drawer-menu-item > .drawer-option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-menu-item i {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 980px) {
  .user-admin {
    grid-template-columns: 1fr;
  }

  .user-create-card {
    position: static;
  }

  .user-table-wrap {
    max-height: none;
  }

  .function-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  body[data-view="module"]:not([data-module="fattomato"]) #activeModulePanel {
    grid-template-columns: 1fr;
  }
}

/* Parent-child function drawer. */
.function-drawer {
  top: 84px;
  right: auto;
  bottom: 18px;
  left: 18px;
  grid-template-columns: minmax(260px, 0.46fr) minmax(320px, 0.54fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  width: min(790px, calc(100vw - 36px));
  padding: 10px;
  overflow: hidden;
  animation: drawerSlideIn 220ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.function-drawer.closing {
  animation: drawerFadeOut 260ms ease forwards;
}

@keyframes drawerSlideIn {
  from {
    opacity: 0.58;
    transform: translateX(calc(-100% - 28px));
  }

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

@keyframes drawerFadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(5px);
  }
}

@keyframes drawerBackdropFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.drawer-parent-panel,
.drawer-child-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.drawer-parent-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.function-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(25, 25, 27, 0.82);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.drawer-section-frame {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
}

.drawer-sections-scroll {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: hidden auto;
  padding-right: 2px;
}

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

.drawer-parent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.drawer-parent-item:hover,
.drawer-parent-item.active {
  border-color: rgba(255, 203, 117, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 122, 61, 0.34), rgba(138, 67, 255, 0.28)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(255, 122, 61, 0.16);
}

.drawer-parent-item > span:not(.drawer-option-icon) {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.drawer-parent-item b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-parent-item:focus-visible,
.drawer-child-list .drawer-menu-item:focus-visible {
  outline: 2px solid rgba(255, 122, 61, 0.5);
  outline-offset: -2px;
}

.drawer-child-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(14, 14, 16, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    -16px 0 34px rgba(0, 0, 0, 0.18);
}

.drawer-child-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-child-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.drawer-child-head h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-child-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: hidden auto;
  padding-right: 2px;
}

.drawer-child-list .drawer-menu-item {
  min-height: 48px;
  padding: 11px 12px;
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.042);
  color: rgba(244, 240, 234, 0.84);
}

.drawer-child-list .drawer-menu-item > .drawer-option-label {
  font-size: 14px;
  font-weight: 820;
  line-height: 1.15;
}

.drawer-child-list .drawer-menu-item:hover,
.drawer-child-list .drawer-menu-item.active {
  border-color: rgba(255, 203, 117, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 122, 61, 0.18), rgba(138, 67, 255, 0.11)),
    rgba(255, 255, 255, 0.06);
  color: rgba(255, 247, 228, 0.94);
}

.drawer-child-list .drawer-menu-item.active::after {
  content: "当前";
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.drawer-bottom-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.drawer-utility-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.drawer-utility-label {
  min-width: 0;
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-option-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fffdf6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.drawer-parent-item .drawer-option-icon {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.drawer-icon-data {
  background: linear-gradient(145deg, #28e8a2, #167cff);
}

.drawer-icon-sync {
  background: linear-gradient(145deg, #ffe36e, #ff7a3d);
}

.drawer-icon-export {
  background: linear-gradient(145deg, #79f2ff, #6c5cff);
}

.drawer-icon-fix {
  background: linear-gradient(145deg, #ff8b8b, #d83cff);
}

.drawer-icon-product {
  background: linear-gradient(145deg, #b9ff6a, #20b26b);
}

.drawer-icon-pop {
  background: linear-gradient(145deg, #ffd36f, #ff7c3a);
}

.drawer-icon-voucher {
  background: linear-gradient(145deg, #fff26f, #18c99a);
}

.drawer-icon-send {
  background: linear-gradient(145deg, #ff9c5a, #8a43ff);
}

.drawer-icon-message {
  background: linear-gradient(145deg, #5df1ff, #2c8fff);
}

.drawer-icon-advanced {
  background: linear-gradient(145deg, #f2f0ff, #8a43ff);
}

.drawer-icon-admin {
  background: linear-gradient(145deg, #7dffbf, #008a67);
}

.drawer-icon-home {
  background: linear-gradient(145deg, #fff0a6, #ff8d3d);
}

.drawer-icon-exit {
  background: linear-gradient(145deg, #ffb09d, #cb3d50);
}

.drawer-icon-task {
  background: linear-gradient(145deg, #e9e6ff, #8a8b9f);
}

.drawer-parent-item.active .drawer-option-icon,
.drawer-menu-item.active .drawer-option-icon,
.drawer-utility-item.active .drawer-option-icon {
  filter: saturate(1.16) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(255, 122, 61, 0.2);
}

.drawer-utility-item:hover,
.drawer-utility-item.active {
  border-color: rgba(255, 122, 61, 0.38);
  background: rgba(255, 122, 61, 0.15);
}

.drawer-utility-item.danger {
  border-color: rgba(255, 125, 111, 0.28);
  background: rgba(255, 125, 111, 0.13);
  color: #ffd1ca;
}

@media (max-width: 980px) {
  .function-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(230px, 1fr);
    width: auto;
    overflow: auto;
  }

  .drawer-parent-panel,
  .drawer-child-panel,
  .drawer-child-list {
    overflow: visible;
  }

  .function-drawer-head {
    position: static;
  }
}

@media (max-width: 560px) {
  .function-drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 8px;
  }

  .function-drawer-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* High-contrast sequence markers. */
body[data-auth="in"] .field-step-index,
body[data-auth="in"] .stage-card-head > span,
body[data-auth="in"] .purple-lane-head > span,
body[data-auth="in"] .outreach-lane-head > span,
body[data-auth="in"] .outreach-rail-step span,
body[data-auth="in"] .fat-flow-card-head > span,
body[data-auth="in"] .purple-lane-steps button span,
body[data-auth="in"] .outreach-lane-steps button span,
body[data-auth="in"] .drawer-parent-item > span:not(.drawer-option-icon) {
  border: 1px solid rgba(255, 239, 166, 0.88);
  background:
    linear-gradient(145deg, #fff4c7 0%, #ffc875 46%, #ff7a3d 100%);
  color: #241207;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 8px 20px rgba(255, 122, 61, 0.28);
  text-shadow: none;
}

body[data-auth="in"] .field-step-index {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

body[data-auth="in"] .field-group:focus-within .field-step-index,
body[data-auth="in"] .stage-card.active .stage-card-head > span,
body[data-auth="in"] .purple-lane.active .purple-lane-head > span,
body[data-auth="in"] .outreach-lane.active .outreach-lane-head > span,
body[data-auth="in"] .outreach-rail-step.active span,
body[data-auth="in"] .fat-flow-card.active .fat-flow-card-head > span,
body[data-auth="in"] .drawer-parent-item.active > span:not(.drawer-option-icon) {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(145deg, #ffffff 0%, #ffe16f 40%, #ff6f45 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 0 4px rgba(255, 122, 61, 0.14),
    0 10px 24px rgba(255, 122, 61, 0.34);
}

body[data-auth="in"] .step-dot,
body[data-auth="in"] .task-flow-chips span {
  border-color: rgba(255, 203, 117, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 234, 166, 0.18), rgba(255, 122, 61, 0.14)),
    rgba(255, 255, 255, 0.075);
  color: #ffe7b1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(255, 122, 61, 0.13);
}

body[data-auth="in"] .step-dot.active,
body[data-auth="in"] .task-flow-chips span:first-child {
  border-color: rgba(255, 239, 166, 0.78);
  color: #fff3ca;
  background:
    linear-gradient(145deg, rgba(255, 238, 160, 0.26), rgba(255, 122, 61, 0.2)),
    rgba(255, 255, 255, 0.09);
}

/* Morandi fountain glassmorphism theme. */
:root {
  color-scheme: dark;
  --panel: rgba(36, 39, 39, 0.58);
  --panel-strong: rgba(44, 47, 47, 0.7);
  --panel-soft: rgba(78, 87, 82, 0.26);
  --glass-line: rgba(241, 236, 225, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --text: #f1ece3;
  --muted: #b8b0a3;
  --line: rgba(230, 222, 207, 0.14);
  --accent: #9caf9f;
  --accent-dark: #e6ddd2;
  --accent-border: rgba(199, 213, 202, 0.28);
  --accent-soft: rgba(153, 174, 160, 0.18);
  --gold: #d1b982;
  --body-start: #080909;
  --body-end: #171615;
  --danger: #c98578;
  --violet: #a096ad;
  --coral: #b98b7e;
  --sky: #91a9b4;
  --mauve: #a9929d;
  --sage: #9caf9f;
  --stone: #b9b1a1;
  --clay: #b78b7a;
  --mist: #91a9b4;
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.3);
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #070808 0%, #111211 44%, #191715 100%);
  background-attachment: scroll;
  background-size: auto;
}

body::before {
  content: none;
  display: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(226, 219, 205, 0.045) 64px 65px, transparent 65px 128px),
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 78px, rgba(210, 194, 164, 0.075) 79px 81px, transparent 82px 126px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
  opacity: 0.92;
}

body::after {
  content: none;
  display: none;
  height: 44vh;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 8, 8, 0.68) 72%, rgba(7, 8, 8, 0.92) 100%),
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 92px, rgba(226, 219, 205, 0.08) 93px 95px, transparent 96px 148px),
    repeating-linear-gradient(90deg, transparent 0 82px, rgba(226, 219, 205, 0.048) 82px 84px, transparent 84px 166px);
  opacity: 0.82;
}

button {
  border-color: rgba(241, 236, 225, 0.18);
  background:
    linear-gradient(135deg, rgba(156, 175, 159, 0.95) 0%, rgba(145, 169, 180, 0.88) 52%, rgba(169, 146, 157, 0.9) 100%);
  color: #fffaf2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 34px rgba(73, 82, 75, 0.28);
}

button:hover {
  filter: brightness(1.06) saturate(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 20px 42px rgba(145, 169, 180, 0.24);
}

button.secondary,
button.mini.active,
.stage-task-links button.active,
.purple-lane-steps button.active,
.outreach-lane-steps button.active {
  border-color: rgba(241, 236, 225, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(52, 55, 54, 0.56);
  color: var(--text);
}

button.secondary:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(63, 69, 66, 0.64);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: rgba(209, 185, 130, 0.56);
}

.topbar {
  border-bottom-color: rgba(241, 236, 225, 0.1);
  background:
    linear-gradient(180deg, rgba(28, 30, 30, 0.78), rgba(19, 20, 20, 0.62)),
    rgba(20, 21, 21, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(32px) saturate(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(1.08);
}

.brand-mark,
.module-icon,
.image-mark {
  border-color: rgba(209, 185, 130, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(45, 47, 46, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.38);
}

.panel,
.auth-card,
.hero-strip,
.home-flow,
.home-welcome,
body[data-view="module"] .active-head,
.active-head,
.status-band,
.stage-guide,
.purple-flow-deck,
.outreach-flow-deck,
.fat-flow-deck,
.task-card,
.fat-toolbar,
.fat-counts,
.fat-detail,
.fat-sidebar,
.fat-scan-toolbar,
.fat-knowledge-widget,
.fat-contact-bridge,
.task-flow-summary,
.task-handoff,
.advanced-tools,
.filter-builder,
.export-filter-builder,
.fulfillment-target-field,
.cb-plan-preview,
.conflict-panel,
.manual-contact-editor,
.fat-knowledge-page,
.result-panel,
.log-panel,
.user-table-panel,
.user-edit-modal {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.038)),
    linear-gradient(180deg, rgba(156, 175, 159, 0.055), rgba(145, 169, 180, 0.035)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    var(--shadow-soft);
  backdrop-filter: blur(30px) saturate(1.08);
  -webkit-backdrop-filter: blur(30px) saturate(1.08);
}

.panel::before,
.fat-flow-deck::before {
  background: linear-gradient(90deg, transparent 0%, rgba(209, 185, 130, 0.7) 20%, rgba(145, 169, 180, 0.62) 52%, rgba(169, 146, 157, 0.5) 80%, transparent 100%);
  opacity: 0.72;
}

.panel::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.028) 28px 29px);
}

.home-flow-card::before,
.stage-card::before,
.task-flow-summary::before,
.purple-lane::before,
.outreach-lane::before,
.fat-flow-card::after {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.3) 47%, transparent 56% 100%),
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 46px, rgba(209, 185, 130, 0.09) 47px 48px, transparent 49px 74px);
}

.module-choice,
.home-mascots .module-choice,
.home-flow-card,
.task-option,
.task-group,
.stage-card,
.purple-lane,
.outreach-lane,
.outreach-rail-step,
.fat-flow-card,
.fat-inbox-item,
.fat-contact,
.fat-recent-qa-card,
.fat-knowledge-note-panel,
.fat-knowledge-qa-panel,
.fat-message-pair > div,
.fat-message-stack > section,
.fat-suggestion,
.fat-reply-module,
.fat-kb,
.fat-compose,
.fat-chat-system,
.metric,
.stat-pill,
.run-row,
.user-row,
.conflict-item,
.stale-action-card,
.field-group,
.toggle-field,
.checkbox-chip,
.chip,
.filter-preview,
.task-notice,
.artifact-card,
.artifact-viewer,
.artifact-table-wrap,
.drawer-section-frame,
.drawer-bottom-actions {
  border-color: rgba(241, 236, 225, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(45, 49, 48, 0.52);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}

.module-choice:hover,
.task-option:hover,
.run-row:hover,
.metric:hover,
.fat-flow-card:hover,
.stage-card:hover,
.purple-lane:hover,
.outreach-lane:hover {
  border-color: rgba(209, 185, 130, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 46px rgba(0, 0, 0, 0.28);
}

.module-choice.active,
.home-mascots .module-choice.active,
.task-option.active,
.stage-card.active,
.purple-lane.active,
.outreach-lane.active,
.outreach-rail-step.active,
.fat-flow-card.active,
.home-flow-card:hover {
  border-color: rgba(231, 213, 174, 0.34);
  background:
    linear-gradient(135deg, rgba(156, 175, 159, 0.58) 0%, rgba(145, 169, 180, 0.44) 46%, rgba(183, 139, 122, 0.44) 100%),
    rgba(43, 45, 44, 0.72);
  color: #fff8ed;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 52px rgba(53, 62, 60, 0.34);
}

.module-choice.active *,
.task-option.active *,
.stage-card.active *,
.purple-lane.active *,
.outreach-lane.active *,
.outreach-rail-step.active *,
.fat-flow-card.active *,
.home-flow-card:hover * {
  color: #fff8ed;
}

.flow-number,
.stage-card-head span,
.purple-lane-head > span,
.outreach-lane-head > span,
.outreach-rail-step span,
.fat-flow-card-head > span,
.purple-lane-steps button span,
.outreach-lane-steps button span {
  border-color: rgba(231, 213, 174, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(72, 78, 74, 0.58);
  color: var(--text);
}

.flow-checks i,
.purple-lane-checks i,
.outreach-lane-checks i,
.fat-flow-checks i,
.pill,
.purple-flow-badge,
.outreach-flow-badge,
.top-module-pill,
.top-status-pill {
  border-color: rgba(241, 236, 225, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(62, 67, 64, 0.52);
  color: var(--muted);
}

.pill.ok,
.top-status-pill.ok {
  color: #d9eadc;
}

.pill.off,
.top-status-pill.off,
.fat-send-status.warn {
  color: #e5bbb1;
}

.top-module-pill {
  border-color: rgba(209, 185, 130, 0.28);
  background:
    linear-gradient(145deg, rgba(209, 185, 130, 0.16), rgba(156, 175, 159, 0.1)),
    rgba(63, 59, 51, 0.48);
}

input,
textarea,
select,
.fat-toolbar-select select,
.conflict-actions input {
  border-color: rgba(241, 236, 225, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032)),
    rgba(18, 19, 19, 0.38);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: rgba(241, 236, 225, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(209, 185, 130, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(29, 31, 31, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(209, 185, 130, 0.16);
}

.checkbox-chip:has(input:checked),
.chip input:checked + span,
button.mini.active {
  border-color: rgba(209, 185, 130, 0.36);
  background:
    linear-gradient(145deg, rgba(209, 185, 130, 0.18), rgba(156, 175, 159, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: #f5ead2;
}

.task-group-title {
  background:
    linear-gradient(90deg, rgba(156, 175, 159, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
}

.user-table th,
.user-table td,
.artifact-table th,
.artifact-table td {
  border-color: rgba(241, 236, 225, 0.08);
  color: rgba(241, 236, 225, 0.86);
}

.user-table th,
.artifact-table th {
  background: rgba(32, 34, 34, 0.84);
  color: rgba(218, 210, 196, 0.78);
}

.user-table-row:hover td {
  background: rgba(156, 175, 159, 0.1);
}

.user-modal-backdrop,
.fat-modal-backdrop,
.fat-knowledge-page-backdrop,
.menu-drawer-backdrop {
  background: rgba(5, 6, 6, 0.52);
  backdrop-filter: blur(18px) saturate(1.02);
  -webkit-backdrop-filter: blur(18px) saturate(1.02);
}

#logBox {
  border-color: rgba(241, 236, 225, 0.1);
  background:
    linear-gradient(180deg, rgba(16, 17, 17, 0.96), rgba(10, 11, 11, 0.96));
  color: #ddd3c6;
}

.runs-list,
.artifact-viewer,
.artifact-table-wrap,
.fat-inbox-list-scroll,
.drawer-parent-panel,
.drawer-child-panel,
.drawer-child-list {
  scrollbar-color: rgba(209, 185, 130, 0.42) transparent;
}

.runs-list::-webkit-scrollbar-thumb,
.artifact-viewer::-webkit-scrollbar-thumb,
.artifact-table-wrap::-webkit-scrollbar-thumb,
.fat-inbox-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(209, 185, 130, 0.38);
}

.drawer-edge-trigger::after {
  background: linear-gradient(180deg, rgba(209, 185, 130, 0.82), rgba(145, 169, 180, 0.56));
  box-shadow: 0 0 24px rgba(145, 169, 180, 0.32);
}

.function-drawer {
  border-color: rgba(241, 236, 225, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(156, 175, 159, 0.06), rgba(183, 139, 122, 0.04)),
    rgba(24, 26, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 82px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(34px) saturate(1.08);
  -webkit-backdrop-filter: blur(34px) saturate(1.08);
}

.function-drawer-head,
.drawer-child-panel {
  border-color: rgba(241, 236, 225, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(36, 39, 39, 0.6);
}

.drawer-parent-item {
  min-height: 52px;
  border-color: rgba(241, 236, 225, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(62, 67, 64, 0.48);
}

.drawer-parent-item:hover,
.drawer-parent-item.active {
  border-color: rgba(209, 185, 130, 0.42);
  background:
    linear-gradient(135deg, rgba(156, 175, 159, 0.26), rgba(145, 169, 180, 0.18) 58%, rgba(183, 139, 122, 0.16)),
    rgba(71, 75, 72, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

.drawer-child-list .drawer-menu-item {
  min-height: 50px;
  border-color: rgba(241, 236, 225, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.03)),
    rgba(28, 31, 31, 0.48);
}

.drawer-child-list .drawer-menu-item:hover,
.drawer-child-list .drawer-menu-item.active,
.drawer-menu-item:hover,
.drawer-menu-item.active {
  border-color: rgba(209, 185, 130, 0.32);
  background:
    linear-gradient(145deg, rgba(156, 175, 159, 0.18), rgba(169, 146, 157, 0.11)),
    rgba(241, 236, 225, 0.055);
  color: #fff8ed;
}

.drawer-child-list .drawer-menu-item.active::after {
  color: #e7d5ae;
}

.drawer-utility-item {
  border-color: rgba(241, 236, 225, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.drawer-utility-item:hover,
.drawer-utility-item.active {
  border-color: rgba(209, 185, 130, 0.32);
  background: rgba(156, 175, 159, 0.14);
}

.drawer-utility-item.danger {
  border-color: rgba(201, 133, 120, 0.34);
  background: rgba(201, 133, 120, 0.12);
  color: #f1c9bf;
}

.drawer-option-icon {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fffaf2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 9px 20px rgba(0, 0, 0, 0.18);
}

.drawer-icon-data {
  background: linear-gradient(145deg, #9dc6b1, #7ea2b3);
}

.drawer-icon-sync {
  background: linear-gradient(145deg, #d6bf89, #b98b7e);
}

.drawer-icon-export {
  background: linear-gradient(145deg, #9bb9c3, #8f94ad);
}

.drawer-icon-fix {
  background: linear-gradient(145deg, #c99b94, #a9929d);
}

.drawer-icon-product {
  background: linear-gradient(145deg, #b7c79c, #83aa91);
}

.drawer-icon-pop {
  background: linear-gradient(145deg, #d2b883, #bd9277);
}

.drawer-icon-voucher {
  background: linear-gradient(145deg, #d8c994, #8fb49c);
}

.drawer-icon-send {
  background: linear-gradient(145deg, #c59885, #9d8fac);
}

.drawer-icon-message {
  background: linear-gradient(145deg, #a3c0c7, #7f9db1);
}

.drawer-icon-advanced {
  background: linear-gradient(145deg, #c7c0cf, #9f94ae);
}

.drawer-icon-admin {
  background: linear-gradient(145deg, #a9c7b4, #759a88);
}

.drawer-icon-home {
  background: linear-gradient(145deg, #d9c58d, #ad9274);
}

.drawer-icon-exit {
  background: linear-gradient(145deg, #caa09a, #ad7377);
}

.drawer-icon-task {
  background: linear-gradient(145deg, #c7c2b9, #8f9693);
}

body[data-auth="in"] .field-step-index,
body[data-auth="in"] .stage-card-head > span,
body[data-auth="in"] .purple-lane-head > span,
body[data-auth="in"] .outreach-lane-head > span,
body[data-auth="in"] .outreach-rail-step span,
body[data-auth="in"] .fat-flow-card-head > span,
body[data-auth="in"] .purple-lane-steps button span,
body[data-auth="in"] .outreach-lane-steps button span,
body[data-auth="in"] .drawer-parent-item > span:not(.drawer-option-icon) {
  border-color: rgba(245, 232, 197, 0.86);
  background:
    linear-gradient(145deg, #f7ead1 0%, #d6bd82 46%, #a88265 100%);
  color: #211914;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(166, 126, 84, 0.28);
}

body[data-auth="in"] .field-group:focus-within .field-step-index,
body[data-auth="in"] .stage-card.active .stage-card-head > span,
body[data-auth="in"] .purple-lane.active .purple-lane-head > span,
body[data-auth="in"] .outreach-lane.active .outreach-lane-head > span,
body[data-auth="in"] .outreach-rail-step.active span,
body[data-auth="in"] .fat-flow-card.active .fat-flow-card-head > span,
body[data-auth="in"] .drawer-parent-item.active > span:not(.drawer-option-icon) {
  border-color: rgba(255, 248, 229, 0.96);
  background:
    linear-gradient(145deg, #fff8e6 0%, #ddc588 42%, #9caf9f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(209, 185, 130, 0.13),
    0 12px 26px rgba(156, 175, 159, 0.28);
}

body[data-auth="in"] .step-dot,
body[data-auth="in"] .task-flow-chips span {
  border-color: rgba(209, 185, 130, 0.52);
  background:
    linear-gradient(145deg, rgba(209, 185, 130, 0.16), rgba(156, 175, 159, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: #eadbb8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

body[data-auth="in"] .step-dot.active,
body[data-auth="in"] .task-flow-chips span:first-child {
  border-color: rgba(245, 232, 197, 0.74);
  color: #fff4d9;
  background:
    linear-gradient(145deg, rgba(209, 185, 130, 0.24), rgba(156, 175, 159, 0.16)),
    rgba(255, 255, 255, 0.08);
}

/* Low-power production rendering: static surfaces avoid continuous GPU work. */
*,
*::before,
*::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* RAINBOW SHARK identity and lightweight locale control. */
.rainbow-shark-image-mark {
  padding: 7px;
  border-color: rgba(255, 204, 0, 0.62);
  background: #101111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.rainbow-shark-image-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand h1 {
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand {
  flex: 0 0 auto;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 8px 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.locale-switcher select {
  width: auto;
  min-width: 92px;
  min-height: 26px;
  padding: 2px 28px 2px 8px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background-color: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.locale-switcher select:focus {
  border-color: rgba(255, 204, 0, 0.42);
  box-shadow: none;
}

@media (max-width: 760px) {
  .locale-switcher {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .locale-switcher select {
    flex: 1;
    max-width: 180px;
  }
}

/* Login surface: keep only the language control, anchored away from the form. */
body[data-auth="pending"] .topbar {
  visibility: hidden;
}

body[data-auth="out"] .topbar {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  z-index: 30;
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-auth="out"] .topbar .brand,
body[data-auth="out"] .topbar .updated-at,
body[data-auth="out"] .topbar .current-user {
  display: none !important;
}

body[data-auth="out"] .top-actions {
  display: block;
  width: auto;
}

body[data-auth="out"] .locale-switcher {
  display: inline-flex;
  grid-column: auto;
  width: auto;
  min-height: 40px;
  padding: 6px 9px 6px 12px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 21, 21, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

body[data-auth="out"] .locale-switcher select {
  flex: none;
  width: auto;
  min-width: 104px;
  max-width: none;
}

body[data-auth="out"] .auth-gate {
  min-height: 100svh;
  padding-bottom: 84px;
}

@media (max-width: 760px) {
  body[data-auth="out"] .topbar {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    padding: 0;
  }

  body[data-auth="out"] .top-actions,
  body[data-auth="out"] .locale-switcher {
    width: auto;
  }
}

/* Geometric agent marks and high-contrast operational states. */
.module-choice .module-icon,
.home-mascots .module-choice .module-icon {
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--card-accent), #fff 18%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--card-accent), #fff 84%), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 30px color-mix(in srgb, var(--card-accent), transparent 78%);
  filter: none;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.module-choice .module-icon img,
.home-mascots .module-choice .module-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1;
}

.module-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.home-mascots .module-state {
  min-width: 104px;
  padding: 7px 12px;
  background-image: none;
}

.module-state-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
}

.module-state-ready {
  border-color: #38b77f;
  background: #123d2e;
  color: #dffff0;
}

.module-state-ready .module-state-dot {
  border-radius: 50%;
  background: #67e3aa;
}

.module-state-attention {
  border-color: #d9992f;
  background: #503817;
  color: #fff0bf;
}

.module-state-attention .module-state-dot {
  border-radius: 2px;
  background: #ffc85c;
  transform: rotate(45deg);
}

.module-state-offline {
  border-color: #9b6670;
  background: #3d292e;
  color: #ffe2e7;
}

.module-state-offline .module-state-dot {
  border: 2px solid #d99aa6;
  border-radius: 2px;
  background: transparent;
}

.home-mascots .module-choice .module-state.module-state-ready,
.module-choice.active .module-state.module-state-ready {
  border-color: #38b77f;
  background: #123d2e;
  color: #dffff0;
}

.home-mascots .module-choice .module-state.module-state-attention,
.module-choice.active .module-state.module-state-attention {
  border-color: #d9992f;
  background: #503817;
  color: #fff0bf;
}

.home-mascots .module-choice .module-state.module-state-offline,
.module-choice.active .module-state.module-state-offline {
  border-color: #9b6670;
  background: #3d292e;
  color: #ffe2e7;
}

.pill.ok,
.top-status-pill.ok {
  border-color: #2f9b70;
  background: #143d30;
  color: #dcffed;
}

.top-status-pill.warn {
  border-color: #c78a2c;
  background: #4b3519;
  color: #fff0c3;
}

.pill.off,
.top-status-pill.off {
  border-color: #95606a;
  background: #3b292d;
  color: #ffe1e6;
}

.user-table {
  min-width: 880px;
}

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

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

.user-row-actions,
.user-edit-primary-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

button.danger-button {
  border-color: #b94f5d;
  background: #762c38;
  color: #fff3f5;
  box-shadow: none;
}

button.danger-button:hover:not(:disabled) {
  border-color: #e06d7d;
  background: #923747;
  color: #fff;
}

button.danger-button:disabled {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(241, 236, 225, 0.38);
  cursor: not-allowed;
}

.user-edit-actions {
  justify-content: space-between;
}

@media (max-width: 760px) {
  .module-state {
    min-width: 92px;
  }

  .user-edit-actions,
  .user-edit-primary-actions {
    width: 100%;
  }

  .user-edit-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .user-edit-primary-actions > button {
    flex: 1;
  }

  body[data-auth="in"] .top-actions {
    min-width: 0;
  }

  body[data-auth="in"] .top-actions > button {
    min-width: 0;
    padding-inline: 5px;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.12;
  }

  body[data-auth="in"] .current-user {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* RAINBOW SHARK dark Liquid Glass layout.
   Static translucent surfaces preserve the glass look without GPU blur or
   continuous background animation. */
:root {
  --panel: rgba(14, 19, 28, 0.91);
  --panel-strong: rgba(19, 26, 37, 0.94);
  --panel-soft: rgba(31, 43, 58, 0.58);
  --glass-line: rgba(211, 229, 246, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.11);
  --text: #f2f7fb;
  --muted: #97a7b7;
  --line: rgba(190, 214, 236, 0.13);
  --accent: #8bb3c8;
  --accent-dark: #d9e8f1;
  --accent-border: rgba(159, 199, 222, 0.28);
  --accent-soft: rgba(83, 131, 158, 0.16);
  --gold: #e4c36f;
  --body-start: #06080d;
  --body-end: #0b1119;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.3);
}

body {
  background:
    radial-gradient(ellipse at 14% -12%, rgba(69, 113, 150, 0.17), transparent 38%),
    radial-gradient(ellipse at 88% -8%, rgba(190, 158, 86, 0.09), transparent 32%),
    linear-gradient(180deg, #05070b 0%, #0a1018 52%, #070a0f 100%);
  background-attachment: scroll;
  background-size: 100% 100%;
}

body::before,
body::after {
  content: none !important;
  display: none !important;
}

body[data-auth="in"] .topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(228px, 272px) minmax(390px, 1fr) minmax(390px, 470px);
  grid-template-areas: "brand context utility";
  gap: 14px;
  align-items: stretch;
  min-height: 96px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid rgba(190, 214, 236, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 21, 30, 0.98), rgba(7, 11, 17, 0.98)),
    #080c12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 52px rgba(0, 0, 0, 0.35);
}

body[data-auth="in"] .brand {
  grid-area: brand;
  align-self: center;
  min-width: 0;
  gap: 12px;
}

body[data-auth="in"] .brand > div:last-child {
  min-width: 0;
}

body[data-auth="in"] .brand h1 {
  overflow: hidden;
  color: #ffffff;
  font-size: 19px;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
}

body[data-auth="in"] .brand p {
  overflow: hidden;
  margin-top: 2px;
  color: #8495a6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-auth="in"] .rainbow-shark-image-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 8px;
  border: 1px solid rgba(255, 207, 66, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(13, 18, 25, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.33);
}

.topbar-context {
  grid-area: context;
  display: grid;
  grid-template-columns: minmax(116px, 0.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid rgba(190, 214, 236, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(18, 25, 35, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.topbar-context-meta {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(190, 214, 236, 0.1);
}

.topbar-context-label {
  color: #d8e4ec;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-auth="in"] .updated-at {
  display: block;
  overflow: hidden;
  color: #8293a3;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-auth="in"] .module-top-controls {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: start;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px;
  scrollbar-width: none;
}

body[data-auth="in"] .module-top-controls::-webkit-scrollbar {
  display: none;
}

body[data-auth="in"] .module-top-controls.is-hidden {
  display: none;
}

body[data-auth="in"] .top-actions {
  grid-area: utility;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(28px, auto) minmax(36px, auto);
  gap: 7px;
  align-content: center;
  justify-content: stretch;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
}

.account-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 176px);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body[data-auth="in"] .current-user {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0 3px;
  color: #c5d1da;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

body[data-auth="in"] .global-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid rgba(190, 214, 236, 0.13);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(17, 24, 34, 0.88);
  color: #e9f1f7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 9px 22px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-auth="in"] .global-actions > button:hover {
  border-color: rgba(218, 234, 246, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(25, 34, 46, 0.94);
}

body[data-auth="in"] .locale-switcher {
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 3px 5px 3px 9px;
  overflow: hidden;
  border-color: rgba(190, 214, 236, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(16, 23, 32, 0.9);
}

body[data-auth="in"] .locale-switcher select {
  flex: 1;
  min-width: 0;
  max-width: 116px;
  min-height: 24px;
  color: #edf4f8;
}

body[data-auth="in"] .top-module-pill,
body[data-auth="in"] .top-status-pill {
  min-height: 31px;
  max-width: 190px;
  padding: 6px 10px;
  border-radius: 10px;
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

body[data-auth="in"] .top-module-pill {
  border-color: rgba(228, 195, 111, 0.28);
  background: rgba(101, 82, 38, 0.28);
  color: #f3deaa;
}

body[data-auth="in"] .shell {
  max-width: 1580px;
  padding: 22px 24px 30px;
}

body[data-auth="in"] .panel,
body[data-auth="in"] .auth-card,
body[data-auth="in"] .home-flow,
body[data-auth="in"] .home-welcome,
body[data-auth="in"] .active-head,
body[data-auth="in"] .status-band,
body[data-auth="in"] .stage-guide,
body[data-auth="in"] .purple-flow-deck,
body[data-auth="in"] .outreach-flow-deck,
body[data-auth="in"] .fat-flow-deck,
body[data-auth="in"] .task-card,
body[data-auth="in"] .task-flow-summary,
body[data-auth="in"] .task-handoff,
body[data-auth="in"] .advanced-tools,
body[data-auth="in"] .filter-builder,
body[data-auth="in"] .export-filter-builder,
body[data-auth="in"] .user-table-panel,
body[data-auth="in"] .user-edit-modal,
body[data-auth="in"] .records-titlebar,
body[data-auth="in"] .records-run-drawer,
body[data-auth="in"] .guide-modal,
body[data-auth="in"] .assist-help-panel,
body[data-auth="in"] .function-drawer {
  border-color: rgba(190, 214, 236, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(44, 70, 91, 0.06), rgba(10, 15, 22, 0.03)),
    rgba(13, 19, 28, 0.93);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 22px 54px rgba(0, 0, 0, 0.32);
}

body[data-auth="in"] .module-choice,
body[data-auth="in"] .home-mascots .module-choice,
body[data-auth="in"] .home-flow-card,
body[data-auth="in"] .task-option,
body[data-auth="in"] .task-group,
body[data-auth="in"] .stage-card,
body[data-auth="in"] .purple-lane,
body[data-auth="in"] .outreach-lane,
body[data-auth="in"] .fat-flow-card,
body[data-auth="in"] .run-row,
body[data-auth="in"] .user-row,
body[data-auth="in"] .field-group,
body[data-auth="in"] .toggle-field,
body[data-auth="in"] .checkbox-chip,
body[data-auth="in"] .metric,
body[data-auth="in"] .artifact-card,
body[data-auth="in"] .artifact-viewer,
body[data-auth="in"] .drawer-section-frame,
body[data-auth="in"] .drawer-bottom-actions {
  border-color: rgba(190, 214, 236, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015)),
    rgba(20, 28, 39, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

body[data-auth="in"] input,
body[data-auth="in"] textarea,
body[data-auth="in"] select {
  border-color: rgba(190, 214, 236, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(7, 11, 17, 0.86);
  color: #edf4f8;
}

body[data-auth="in"] input:focus,
body[data-auth="in"] textarea:focus,
body[data-auth="in"] select:focus {
  border-color: rgba(139, 179, 200, 0.68);
  background: rgba(12, 18, 26, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 0 0 3px rgba(80, 139, 172, 0.16);
}

body[data-auth="in"] .panel::before,
body[data-auth="in"] .fat-flow-deck::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 215, 235, 0.52), rgba(228, 195, 111, 0.32), transparent);
  opacity: 0.7;
}

body[data-auth="in"] .panel::after,
body[data-auth="in"] .module-choice::after,
body[data-auth="in"] .task-option::after,
body[data-auth="in"] .home-flow-card::before,
body[data-auth="in"] .stage-card::before,
body[data-auth="in"] .task-flow-summary::before,
body[data-auth="in"] .purple-lane::before,
body[data-auth="in"] .outreach-lane::before,
body[data-auth="in"] .fat-flow-card::after {
  content: none !important;
  display: none !important;
}

body[data-view="home"][data-auth="in"] .workspace {
  min-height: auto;
  align-content: start;
}

body[data-view="home"][data-auth="in"] .module-panel {
  padding: 24px;
  border: 1px solid rgba(190, 214, 236, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    rgba(11, 16, 24, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 24px 64px rgba(0, 0, 0, 0.3);
}

body[data-view="home"][data-auth="in"] .module-list.home-mascots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

body[data-view="home"][data-auth="in"] .home-mascots .module-choice,
body[data-view="home"][data-auth="in"] .home-mascots .module-choice:nth-of-type(n) {
  grid-template-rows: auto auto minmax(34px, 1fr) auto;
  align-content: start;
  justify-items: center;
  gap: 11px;
  min-height: 246px !important;
  padding: 18px 13px !important;
  transform: none !important;
  border-radius: 18px;
  text-align: center;
}

body[data-view="home"][data-auth="in"] .home-mascots .module-choice:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--card-accent), rgba(255, 255, 255, 0.22) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.28);
}

body[data-view="home"][data-auth="in"] .home-mascots .module-choice .module-icon {
  width: 84px !important;
  height: 84px !important;
  padding: 12px;
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px color-mix(in srgb, var(--card-accent), transparent 80%);
}

body[data-view="home"][data-auth="in"] .home-mascots .module-name {
  max-width: 100%;
  overflow: hidden;
  color: #f7fbfe;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="home"][data-auth="in"] .home-mascots .module-role {
  display: -webkit-box !important;
  min-height: 34px;
  max-width: 210px;
  overflow: hidden;
  color: #91a2b2;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="home"][data-auth="in"] .friend-hand {
  display: none;
}

body[data-auth="out"] .topbar-context,
body[data-auth="out"] .global-actions {
  display: none !important;
}

body[data-auth="out"] .account-controls {
  display: block;
}

body[data-auth="out"] .top-actions {
  display: block;
}

body[data-auth="out"] .locale-switcher {
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(10, 15, 22, 0.96);
}

@media (max-width: 1280px) {
  body[data-auth="in"] .topbar {
    grid-template-columns: minmax(238px, 1fr) minmax(420px, 520px);
    grid-template-areas:
      "brand utility"
      "context context";
  }

  body[data-auth="in"] .topbar-context {
    min-height: 56px;
  }

  body[data-view="home"][data-auth="in"] .module-list.home-mascots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-auth="in"] .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "utility"
      "context";
    gap: 9px;
    padding: 10px 12px 12px;
  }

  body[data-auth="in"] .brand {
    width: 100%;
  }

  body[data-auth="in"] .brand h1 {
    font-size: 18px;
  }

  body[data-auth="in"] .brand p {
    font-size: 10px;
  }

  body[data-auth="in"] .top-actions {
    grid-template-rows: auto auto;
    gap: 8px;
  }

  body[data-auth="in"] .account-controls {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 168px);
  }

  body[data-auth="in"] .current-user {
    width: auto;
    text-align: left;
  }

  body[data-auth="in"] .locale-switcher {
    grid-column: auto;
    width: 100%;
  }

  body[data-auth="in"] .locale-switcher > span {
    display: none;
  }

  body[data-auth="in"] .locale-switcher select {
    max-width: none;
    border-left: 0;
  }

  body[data-auth="in"] .global-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-auth="in"] .global-actions > button {
    min-height: 42px;
    padding-inline: 5px;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  body[data-auth="in"] .topbar-context {
    grid-template-columns: minmax(104px, 0.28fr) minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  body[data-auth="in"] .topbar-context-label {
    font-size: 10px;
  }

  body[data-auth="in"] .module-top-controls {
    grid-column: auto;
    width: auto;
  }

  body[data-auth="in"] .shell {
    padding: 10px 12px 22px;
  }

  body[data-view="home"][data-auth="in"] .module-panel {
    padding: 12px;
    border-radius: 17px;
  }

  body[data-view="home"][data-auth="in"] .module-list.home-mascots {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-view="home"][data-auth="in"] .home-mascots .module-choice,
  body[data-view="home"][data-auth="in"] .home-mascots .module-choice:nth-of-type(n) {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    min-height: 104px !important;
    padding: 12px !important;
    text-align: left;
  }

  body[data-view="home"][data-auth="in"] .home-mascots .module-choice .module-icon {
    grid-row: 1 / 3;
    width: 62px !important;
    height: 62px !important;
    padding: 9px;
    border-radius: 18px;
  }

  body[data-view="home"][data-auth="in"] .home-mascots .module-name {
    grid-column: 2;
    align-self: end;
    font-size: 16px;
  }

  body[data-view="home"][data-auth="in"] .home-mascots .module-role {
    grid-column: 2;
    align-self: start;
    min-height: 0;
    text-align: left;
    -webkit-line-clamp: 1;
  }

  body[data-view="home"][data-auth="in"] .home-mascots .module-state {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    min-width: 92px;
  }
}
