:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #66727f;
  --line: #dce2e7;
  --line-strong: #c7d0d7;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --soft: #eef2f4;
  --green: #24765b;
  --green-soft: #e6f2ed;
  --blue: #326f9d;
  --blue-soft: #e9f1f7;
  --amber: #a76a14;
  --amber-soft: #f8eedc;
  --coral: #b95847;
  --coral-soft: #f8e8e4;
  --shadow: 0 10px 34px rgba(24, 35, 45, 0.12);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

/* Feedback */
.feedback-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.feedback-dialog[open] {
  display: block;
}

.feedback-dialog::backdrop {
  background: rgba(31, 39, 58, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feedback-dialog-shell {
  max-height: min(88vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.92);
  box-shadow: 0 34px 90px rgba(25, 35, 57, 0.28);
}

.feedback-header {
  min-height: 126px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(70, 88, 120, 0.12);
}

.feedback-header-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 15px;
  color: #34798a;
  background: rgba(220, 245, 244, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 9px 22px rgba(53, 75, 106, 0.11);
}

.feedback-header-icon svg {
  width: 22px;
  height: 22px;
}

.feedback-header .dialog-meta {
  font-size: 9px;
  font-weight: 800;
}

.feedback-header h2 {
  margin: 3px 0 5px;
  font-size: 25px;
  line-height: 1.12;
}

.feedback-header p {
  max-width: 560px;
  margin: 0;
  color: #647087;
  font-size: 12px;
  line-height: 1.6;
}

.feedback-form {
  max-height: calc(min(88vh, 820px) - 126px);
  padding: 22px 24px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.feedback-field,
.feedback-upload-section {
  display: grid;
  gap: 10px;
}

.feedback-field > span,
.feedback-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-field strong,
.feedback-section-heading strong {
  color: #1f2b41;
  font-size: 13px;
}

.feedback-field small,
.feedback-section-heading small,
.feedback-section-heading div > span {
  color: #768198;
  font-size: 10px;
}

.feedback-field textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid rgba(73, 91, 124, 0.17);
  border-radius: 12px;
  color: #1f2b41;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(53, 67, 94, 0.04);
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.feedback-field textarea:focus {
  border-color: rgba(58, 144, 158, 0.46);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(67, 153, 166, 0.1);
}

.feedback-upload-section {
  margin-top: 20px;
}

.feedback-section-heading div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.feedback-dropzone {
  min-height: 88px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(65, 132, 153, 0.34);
  border-radius: 12px;
  color: #496178;
  background: rgba(229, 246, 248, 0.48);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feedback-dropzone:hover,
.feedback-dropzone.is-dragging {
  transform: translateY(-1px);
  border-color: rgba(54, 145, 158, 0.62);
  background: rgba(221, 246, 246, 0.76);
}

.feedback-dropzone.is-full {
  opacity: 0.62;
}

.feedback-dropzone > strong {
  color: #26354b;
  font-size: 12px;
}

.feedback-dropzone > span:last-child {
  color: #738198;
  font-size: 10px;
}

.feedback-drop-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #337f91;
  background: rgba(255, 255, 255, 0.7);
}

.feedback-preview-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.feedback-preview-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(73, 91, 124, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.feedback-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #eef3f7;
}

.feedback-preview-item figcaption {
  min-width: 0;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.feedback-preview-item figcaption span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #367b8a;
  background: rgba(211, 240, 240, 0.72);
  font-size: 9px;
  font-weight: 800;
}

.feedback-preview-item figcaption small {
  min-width: 0;
  overflow: hidden;
  color: #667187;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-preview-item > button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: #fff;
  background: rgba(35, 45, 64, 0.68);
  cursor: pointer;
}

.feedback-preview-item > button svg {
  width: 14px;
  height: 14px;
}

.feedback-form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(190, 75, 91, 0.18);
  border-radius: 10px;
  color: #a23d50;
  background: rgba(255, 235, 239, 0.7);
  font-size: 11px;
}

.feedback-footer {
  position: sticky;
  bottom: 0;
  margin: 22px -24px 0;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(73, 91, 124, 0.12);
  background: rgba(247, 250, 254, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.feedback-footer > span {
  color: #6a768c;
  font-size: 10px;
}

.feedback-footer > div {
  display: flex;
  gap: 9px;
}

.feedback-submit-loader {
  display: none;
}

.feedback-form.is-submitting .feedback-submit-icon {
  display: none;
}

.feedback-form.is-submitting .feedback-submit-loader {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.feedback-success {
  min-height: 430px;
  padding: 40px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.feedback-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #248e82;
  background: rgba(204, 241, 235, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(47, 118, 111, 0.14);
}

.feedback-success-icon svg {
  width: 30px;
  height: 30px;
}

.feedback-success p {
  margin: 6px 0 0;
  color: #3b8190;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.feedback-success h2 {
  margin: 0;
  color: #1f2b41;
  font-size: 25px;
}

.feedback-success > span {
  color: #717c91;
  font-size: 11px;
}

.feedback-success .primary-button {
  margin-top: 14px;
  min-width: 126px;
}

@media (max-width: 640px) {
  .feedback-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .feedback-dialog-shell {
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }

  .feedback-header {
    min-height: 120px;
    padding: 17px;
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    gap: 11px;
  }

  .feedback-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .feedback-header h2 {
    font-size: 21px;
  }

  .feedback-header p {
    font-size: 10px;
  }

  .feedback-form {
    max-height: calc(100dvh - 140px);
    padding: 17px 17px 0;
  }

  .feedback-dropzone {
    flex-direction: column;
    text-align: center;
  }

  .feedback-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feedback-footer {
    margin-right: -17px;
    margin-left: -17px;
    padding: 13px 17px;
  }

  .feedback-footer > span {
    display: none;
  }

  .feedback-footer > div {
    width: 100%;
    justify-content: flex-end;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(50, 111, 157, 0.2);
  outline-offset: 2px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 43, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 34px 34px;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 42px 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.auth-panel > p {
  margin: 0 0 26px;
  color: var(--muted);
}

.auth-panel label {
  display: block;
  margin-bottom: 8px;
  color: #46525d;
  font-size: 13px;
  font-weight: 650;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-row > div {
  display: grid;
  min-width: 0;
}

.brand-row strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand-row span:not(.brand-mark) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

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

.code-row input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
}

.primary-button,
.secondary-button,
.icon-text-button,
.icon-button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-weight: 650;
}

.primary-button {
  min-width: 76px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
}

.primary-button:hover {
  background: #263746;
}

.primary-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.secondary-button {
  padding: 0 13px;
  border-color: var(--line-strong);
  background: white;
}

.secondary-button:hover,
.icon-text-button:hover,
.icon-button:hover {
  background: var(--soft);
}

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--coral);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.topbar-inner {
  width: min(1500px, 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 22px;
}

.brand-row.compact .brand-mark {
  width: 34px;
  height: 34px;
}

.brand-row.compact .brand-mark svg {
  width: 18px;
  height: 18px;
}

.tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
}

.tab-button {
  position: relative;
  min-width: 92px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #53606b;
  font-size: 14px;
  font-weight: 650;
}

.tab-button::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  content: "";
  background: transparent;
}

.tab-button:hover {
  color: var(--ink);
}

.tab-button.is-active {
  color: var(--ink);
}

.tab-button.is-active::after {
  background: var(--green);
}

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

.refresh-time {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-color: var(--line);
}

.icon-text-button span:first-child {
  font-size: 18px;
  line-height: 1;
}

.icon-text-button.is-loading span:first-child {
  animation: spin 0.8s linear infinite;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: var(--line);
  font-size: 22px;
  line-height: 1;
}

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

.workspace {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px 28px 50px;
}

.status-banner {
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid #e6bf75;
  border-radius: 6px;
  background: var(--amber-soft);
  color: #6d470d;
  font-size: 13px;
}

.filter-band {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(140px, 0.55fr) minmax(125px, 0.5fr) minmax(155px, 0.58fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field span {
  position: absolute;
  left: 12px;
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}

.search-field input {
  min-width: 0;
  padding: 0 12px 0 37px;
}

.select-field {
  display: grid;
  gap: 5px;
}

.select-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.select-field select {
  padding: 0 30px 0 10px;
}

.date-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.date-filter-label {
  min-height: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.date-clear-button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.date-clear-button:hover {
  background: var(--soft);
  color: var(--ink);
}

.date-clear-button svg {
  width: 13px;
  height: 13px;
}

.date-preset-control {
  position: relative;
  display: flex;
  align-items: center;
}

.date-preset-control > svg {
  position: absolute;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.date-preset-control select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}

.custom-date-range {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 7px;
  background: rgba(0, 113, 227, 0.035);
  animation: date-range-enter 180ms ease-out both;
}

.custom-date-range[hidden] {
  display: none;
}

.custom-date-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  color: #3c4650;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.custom-date-title svg {
  width: 16px;
  height: 16px;
  color: #0071e3;
}

.custom-date-range label {
  display: grid;
  gap: 4px;
}

.custom-date-range label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.custom-date-range input {
  width: 152px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(29, 29, 31, 0.13);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.date-range-separator {
  align-self: end;
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

@keyframes date-range-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.segment-control {
  height: 38px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--soft);
}

.segment-control button {
  min-width: 58px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #53606b;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.segment-control button:last-child {
  border-right: 0;
}

.segment-control button.is-active {
  background: var(--ink);
  color: white;
}

.view-section {
  animation: reveal 0.18s ease-out;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.kpi-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--ink));
  border-radius: 6px;
  background: var(--surface);
}

.kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.kpi-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent, var(--ink));
}

.kpi-value {
  margin-top: 14px;
  font-size: 31px;
  font-weight: 760;
  line-height: 1;
}

.kpi-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.section-heading h2,
.boss-summary-band h2,
.dialog-topbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.quiet-label {
  color: var(--muted);
  font-size: 12px;
}

.progress-section,
.activity-section,
.boss-block,
.report-block {
  margin-top: 30px;
}

.overall-progress {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.overall-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.overall-copy strong {
  font-size: 24px;
}

.overall-copy span {
  color: var(--muted);
  font-size: 11px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: #e6ebee;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.25s ease;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

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

.owner-table th,
.owner-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

.owner-table th {
  background: #f8fafb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.owner-table tbody tr:hover {
  background: #fafcfc;
}

.owner-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.owner-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
}

.owner-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.owner-progress .progress-track {
  width: 125px;
  height: 7px;
}

.owner-progress span:last-child {
  min-width: 38px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.number-success { color: var(--green); font-weight: 700; }
.number-processing { color: var(--blue); font-weight: 700; }
.number-failed { color: var(--coral); font-weight: 700; }
.number-pending { color: var(--amber); font-weight: 700; }

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.activity-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: var(--surface);
}

.activity-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.activity-status.success { background: var(--green); }
.activity-status.processing { background: var(--blue); }
.activity-status.failed { background: var(--coral); }
.activity-status.pending { background: var(--amber); }

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

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

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

.activity-copy span,
.activity-time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.gallery-heading {
  margin-top: 2px;
}

.gallery-heading-actions,
.listing-page-size,
.listing-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.listing-page-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.listing-page-size select {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.listing-pagination {
  width: fit-content;
  margin: 20px auto 4px;
  color: var(--muted);
  font-size: 12px;
}
.listing-pagination[hidden] { display: none; }
.listing-pagination .icon-button { width: 32px; height: 32px; }
.app-shell .listing-page-size select {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(17, 28, 41, 0.92);
  color: #e7edf4;
}

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

.gallery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gallery-card:hover {
  border-color: #aebac2;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.09);
  transform: translateY(-2px);
}

.gallery-card-button {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef1f3;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #84909a;
  font-size: 12px;
}

.image-count-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.image-count-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(23, 33, 43, 0.86);
  color: white;
}

.status-badge {
  min-height: 22px;
  padding: 0 7px;
}

.status-badge.success { background: var(--green-soft); color: #185841; }
.status-badge.processing { background: var(--blue-soft); color: #24577e; }
.status-badge.failed { background: var(--coral-soft); color: #914234; }
.status-badge.pending { background: var(--amber-soft); color: #7a4c0c; }

.gallery-card-copy {
  padding: 13px 14px 15px;
}

.gallery-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-card-topline span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card h3 {
  min-height: 39px;
  margin: 11px 0 5px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-sku {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-note {
  min-height: 34px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #596571;
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-card-actions {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 10px 8px 13px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 251, 0.92);
}

.gallery-version-label {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.gallery-version-label svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.gallery-version-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-satisfaction-button {
  display: inline-flex;
  min-width: 66px;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(130, 105, 56, 0.2);
  border-radius: 7px;
  color: #705d2b;
  background: rgba(255, 249, 226, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.gallery-satisfaction-button:hover:not(:disabled) {
  border-color: rgba(157, 70, 92, 0.34);
  color: #8f3e55;
  background: rgba(255, 238, 241, 0.94);
  transform: translateY(-1px);
}

.gallery-satisfaction-button.is-active {
  border-color: rgba(173, 67, 96, 0.35);
  color: #a33f5d;
  background: linear-gradient(120deg, rgba(255, 228, 235, 0.96), rgba(255, 246, 213, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 4px 12px rgba(159, 61, 88, 0.1);
}

.gallery-satisfaction-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.gallery-satisfaction-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.gallery-satisfaction-button.is-active svg {
  fill: currentColor;
}

.gallery-satisfaction-button.is-loading svg {
  animation: satisfaction-heartbeat 0.72s ease-in-out infinite alternate;
}

@keyframes satisfaction-heartbeat {
  to { transform: scale(0.82); opacity: 0.58; }
}

.gallery-download-button {
  display: inline-flex;
  min-width: 90px;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(50, 111, 157, 0.24);
  border-radius: 7px;
  color: #245f7b;
  background: rgba(227, 243, 248, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-download-button:hover:not(:disabled) {
  border-color: rgba(36, 95, 123, 0.4);
  color: #174d67;
  background: rgba(215, 239, 247, 0.98);
  transform: translateY(-1px);
}

.gallery-download-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.gallery-download-button svg {
  width: 14px;
  height: 14px;
}

.gallery-download-button .download-spinner {
  display: none;
}

.gallery-download-button.is-loading .download-file-icon {
  display: none;
}

.gallery-download-button.is-loading .download-spinner {
  display: block;
  animation: dashboard-control-spin 0.8s linear infinite;
}

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

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

.boss-period-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.boss-period-controls {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.boss-period-segments {
  flex: 0 0 auto;
}

.boss-period-picker {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.boss-period-input-wrap {
  position: relative;
  display: block;
}

.boss-period-input-wrap svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.app-shell .boss-period-picker input {
  width: 196px;
  min-width: 196px;
  height: 42px;
  padding: 0 10px 0 38px;
  border: 1px solid rgba(29, 29, 31, 0.13);
  border-radius: 7px;
  background: #fbfbfd;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color-scheme: light;
}

.app-shell .boss-period-picker input::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  opacity: 0.72;
  cursor: pointer;
}

.app-shell .boss-period-picker input:focus {
  outline: 0;
  border-color: #0071e3;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.boss-period-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.boss-period-meta svg {
  width: 16px;
  height: 16px;
}

.boss-period-toolbar.is-loading .boss-period-meta svg {
  animation: dashboard-control-spin 0.8s linear infinite;
}

.boss-period-toolbar.is-loading :is(button, input) {
  cursor: wait;
}

.boss-summary-band {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  background: var(--surface);
}

.boss-summary-band h2 {
  max-width: 760px;
  font-size: 22px;
}

.boss-report-time {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.boss-cost-total {
  min-width: 190px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.boss-cost-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.boss-cost-total strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.boss-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.boss-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.boss-owner-list,
.issue-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.boss-owner-row,
.issue-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.boss-owner-row:last-child,
.issue-row:last-child {
  border-bottom: 0;
}

.boss-owner-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.boss-owner-row strong,
.issue-row strong {
  font-variant-numeric: tabular-nums;
}

.issue-row span {
  color: var(--muted);
  font-size: 12px;
}

.report-text {
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111820;
  color: #e9eef2;
  font: 12px/1.8 Consolas, "Microsoft YaHei", monospace;
  white-space: pre-wrap;
}

.product-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(14, 21, 27, 0.28);
}

.product-dialog::backdrop {
  background: rgba(17, 24, 32, 0.58);
}

.dialog-topbar {
  min-height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-topbar > div {
  min-width: 0;
}

.dialog-topbar h2,
.dialog-topbar p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: Consolas, sans-serif;
  font-size: 11px;
}

.dialog-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}

.dialog-body {
  max-height: calc(100vh - 115px);
  overflow: auto;
  padding: 20px;
}

.primary-image-stage {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eff2f3;
}

.primary-image-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: white;
}

.stage-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 40px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(23, 33, 43, 0.78);
  color: white;
  font-size: 32px;
  line-height: 1;
}

.stage-arrow:hover {
  background: rgba(23, 33, 43, 0.94);
}

.stage-arrow.previous { left: 10px; }
.stage-arrow.next { right: 10px; }

.image-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(23, 33, 43, 0.78);
  color: white;
  font-size: 11px;
}

.dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 12px auto 0;
}

.dialog-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #edf1f3;
}

.dialog-thumb.is-active {
  border-color: var(--green);
}

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

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.dialog-fact {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
}

.dialog-fact dt {
  color: var(--muted);
  font-size: 10px;
}

.dialog-fact dd {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 14px;
  transform: translateY(20px);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: minmax(170px, 1fr) auto auto;
  }

  .refresh-time {
    display: none;
  }

  .filter-band {
    grid-template-columns: minmax(250px, 1fr) minmax(140px, 0.5fr) minmax(130px, 0.5fr) minmax(155px, 0.55fr);
  }

  .segment-control {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .boss-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .topbar {
    position: static;
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 16px 0;
    gap: 10px;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 46px;
    overflow-x: auto;
  }

  .tab-button {
    min-width: 96px;
  }

  .top-actions .icon-text-button span:last-child {
    display: none;
  }

  .top-actions .icon-text-button {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .workspace {
    padding: 16px 14px 36px;
  }

  .filter-band {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .search-field,
  .date-filter,
  .segment-control {
    grid-column: 1 / -1;
  }

  .segment-control {
    width: 100%;
    overflow-x: auto;
  }

  .segment-control button {
    flex: 1 0 auto;
  }

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

  .overall-progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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

  .boss-summary-band {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 20px;
  }

  .boss-cost-total {
    width: 100%;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .boss-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .boss-period-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .boss-period-meta {
    justify-content: flex-start;
    text-align: left;
  }

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

@media (max-width: 520px) {
  .boss-period-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .boss-period-segments,
  .app-shell .boss-period-picker input {
    width: 100%;
    min-width: 0;
  }

  .auth-shell {
    padding: 14px;
  }

  .auth-panel {
    padding: 24px 18px;
  }

  .auth-panel h1 {
    margin-top: 34px;
  }

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

  .code-row .primary-button {
    height: 42px;
  }

  .brand-row.compact span:not(.brand-mark) {
    display: none;
  }

  .filter-band {
    grid-template-columns: 1fr;
  }

  .search-field,
  .date-filter,
  .custom-date-range,
  .segment-control {
    grid-column: 1;
  }

  .custom-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .custom-date-title {
    grid-column: 1 / -1;
    min-height: 20px;
    margin-right: 0;
  }

  .custom-date-range input {
    width: 100%;
    min-width: 0;
  }

  .custom-date-range label {
    min-width: 0;
  }

  .date-range-separator {
    display: none;
  }

  .kpi-grid,
  .boss-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .kpi-card {
    min-height: 112px;
    padding: 14px;
  }

  .kpi-grid:not(.boss-kpis) .kpi-card:last-child {
    grid-column: 1 / -1;
  }

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

  .kpi-caption {
    min-height: 30px;
  }

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

  .gallery-card h3 {
    min-height: 0;
  }

  .dialog-body {
    padding: 10px;
  }

  .dialog-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dialog-facts {
    grid-template-columns: 1fr 1fr;
  }

  .stage-arrow {
    width: 34px;
    height: 46px;
  }
}

/* 2026 visual refinement: quiet, product-led, and motion-aware. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e2e2e6;
  --line-strong: #d0d0d5;
  --surface: #ffffff;
  --canvas: #f5f5f7;
  --soft: #f0f0f2;
  --green: #1f7a5a;
  --green-soft: #e9f5ef;
  --blue: #1769aa;
  --blue-soft: #eaf3fb;
  --amber: #9a620e;
  --amber-soft: #fbf1dd;
  --coral: #ad4b3d;
  --coral-soft: #faeae7;
  --shadow: 0 18px 50px rgba(29, 29, 31, 0.12);
  --panel-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 28px rgba(29, 29, 31, 0.045);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  font-feature-settings: "tnum" 1, "cv02" 1, "cv03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(23, 105, 170, 0.16);
}

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.2);
  outline-offset: 2px;
}

.auth-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-shell::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  content: "";
  background: #1d1d1f;
}

.auth-panel {
  position: relative;
  padding: 38px;
  overflow: hidden;
  border-color: rgba(29, 29, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 28px 80px rgba(29, 29, 31, 0.13);
  animation: auth-arrive 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--ink);
}

.auth-panel h1 {
  margin-top: 36px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-signal {
  height: 34px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 34px 0 -18px;
}

.auth-signal span {
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  transform-origin: bottom;
  animation: signal-grow 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-signal span:nth-child(1) { height: 10px; animation-delay: 90ms; }
.auth-signal span:nth-child(2) { height: 18px; background: var(--blue); animation-delay: 140ms; }
.auth-signal span:nth-child(3) { height: 26px; background: var(--ink); animation-delay: 190ms; }
.auth-signal span:nth-child(4) { height: 16px; background: var(--amber); animation-delay: 240ms; }
.auth-signal span:nth-child(5) { height: 23px; background: var(--coral); animation-delay: 290ms; }

.brand-mark {
  border-radius: 8px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 5px 14px rgba(29, 29, 31, 0.16);
  letter-spacing: 0;
}

.brand-mark::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #27a070;
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.18);
  content: "";
}

.brand-row strong {
  font-weight: 700;
}

.brand-row.compact span:not(.brand-mark) {
  position: relative;
  padding-left: 11px;
}

.brand-row.compact span:not(.brand-mark)::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #27a070;
  box-shadow: 0 0 0 3px rgba(39, 160, 112, 0.12);
  content: "";
}

.code-row input {
  height: 46px;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: #fbfbfd;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.code-row input:hover {
  border-color: #b8b8be;
}

.code-row input:focus {
  border-color: #0071e3;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.09);
}

.primary-button,
.secondary-button,
.icon-text-button,
.icon-button {
  border-radius: 8px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  background: var(--ink);
  box-shadow: 0 5px 14px rgba(29, 29, 31, 0.16);
}

.primary-button:hover {
  background: #323235;
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.2);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.icon-text-button:active,
.icon-button:active {
  transform: scale(0.97);
}

.topbar {
  border-bottom-color: rgba(29, 29, 31, 0.09);
  background: rgba(250, 250, 252, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.topbar-inner {
  min-height: 72px;
  padding-right: 32px;
  padding-left: 32px;
}

.tabs {
  height: 40px;
  align-self: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.055);
}

.tab-button {
  min-width: 98px;
  padding: 0 14px;
  border-radius: 6px;
  color: #68686d;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tab-button::after {
  display: none;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tab-button.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.12), 0 4px 12px rgba(29, 29, 31, 0.05);
}

.refresh-time {
  font-variant-numeric: tabular-nums;
}

.icon-text-button,
.icon-button,
.secondary-button {
  border-color: rgba(29, 29, 31, 0.1);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03);
}

.secondary-button:hover,
.icon-text-button:hover,
.icon-button:hover {
  border-color: rgba(29, 29, 31, 0.16);
  background: white;
  box-shadow: 0 5px 16px rgba(29, 29, 31, 0.08);
}

.workspace {
  padding-top: 28px;
  padding-bottom: 64px;
}

.filter-band {
  gap: 14px;
  margin-bottom: 30px;
  padding: 16px;
  border-color: rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.search-field input,
.select-field select,
.date-preset-control select {
  height: 42px;
  border-color: rgba(29, 29, 31, 0.13);
  border-radius: 7px;
  background: #fbfbfd;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-field input:hover,
.select-field select:hover,
.date-preset-control select:hover {
  border-color: rgba(29, 29, 31, 0.22);
}

.search-field input:focus,
.select-field select:focus,
.date-preset-control select:focus,
.custom-date-range input:focus {
  border-color: #0071e3;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.segment-control {
  height: 42px;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
}

.segment-control button {
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.segment-control button.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.13), 0 4px 10px rgba(29, 29, 31, 0.04);
}

.view-section {
  animation: none;
}

.enter-item {
  animation: surface-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--enter-index, 0) * 48ms);
}

.app-shell.is-launching .topbar {
  animation: topbar-enter 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-shell.is-launching .filter-band {
  animation: surface-enter 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kpi-grid {
  gap: 14px;
  margin-bottom: 34px;
}

.kpi-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid rgba(29, 29, 31, 0.075);
  border-top: 1px solid rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.kpi-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent, var(--ink));
  content: "";
  opacity: 0.88;
}

.kpi-label {
  color: #727278;
  font-weight: 600;
}

.kpi-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--ink)) 12%, transparent);
}

.kpi-value {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.section-heading h2,
.boss-summary-band h2,
.dialog-topbar h2 {
  font-weight: 700;
  letter-spacing: 0;
}

.section-kicker {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0;
}

.progress-section,
.activity-section,
.boss-block,
.report-block {
  margin-top: 36px;
}

.overall-progress {
  gap: 24px;
  margin-bottom: 18px;
  padding: 18px;
  border-color: rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.overall-copy strong {
  font-size: 26px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  background: #e8e8ec;
}

.progress-track span {
  background: var(--green);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.table-wrap {
  border-color: rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.owner-table th,
.owner-table td {
  padding: 14px 16px;
  border-bottom-color: #ececf0;
}

.owner-table th {
  background: #fafafd;
  font-weight: 650;
}

.owner-table tbody tr {
  transition: background 150ms ease;
}

.owner-table tbody tr:hover {
  background: #f8fafb;
}

.owner-avatar {
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.activity-list {
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.activity-item {
  border: 1px solid rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.activity-item:hover {
  border-color: rgba(29, 29, 31, 0.14);
  box-shadow: 0 10px 30px rgba(29, 29, 31, 0.075);
  transform: translateY(-1px);
}

.activity-status {
  box-shadow: 0 0 0 4px rgba(110, 110, 115, 0.1);
}

.activity-status.success { box-shadow: 0 0 0 4px rgba(31, 122, 90, 0.1); }
.activity-status.processing { box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.1); }
.activity-status.failed { box-shadow: 0 0 0 4px rgba(173, 75, 61, 0.1); }
.activity-status.pending { box-shadow: 0 0 0 4px rgba(154, 98, 14, 0.1); }

.gallery-grid {
  gap: 18px;
}

.gallery-card {
  content-visibility: auto;
  contain-intrinsic-size: 410px;
  border-color: rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover {
  border-color: rgba(29, 29, 31, 0.15);
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.11);
  transform: translateY(-4px);
}

.gallery-image-wrap {
  border-bottom-color: #ececf0;
  background: white;
}

.gallery-image-wrap img {
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 380ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image-wrap img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery-card:hover .gallery-image-wrap img {
  transform: scale(1.018);
}

.gallery-card-button:disabled {
  cursor: default;
}

.image-count-badge {
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(29, 29, 31, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.gallery-card-copy {
  padding: 15px 16px 17px;
}

.gallery-card h3 {
  margin-top: 12px;
  font-weight: 680;
}

.empty-state {
  border-color: rgba(29, 29, 31, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.boss-summary-band {
  min-height: 164px;
  padding: 30px;
  overflow: hidden;
  border: 0;
  border-left: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 20px 55px rgba(29, 29, 31, 0.18);
}

.boss-summary-band .section-kicker {
  color: #79d4b3;
}

.boss-summary-band h2 {
  font-size: 23px;
}

.boss-report-time,
.boss-cost-total span {
  color: rgba(255, 255, 255, 0.58);
}

.boss-cost-total {
  border-left-color: rgba(255, 255, 255, 0.16);
}

.boss-cost-total strong {
  font-size: 34px;
  font-weight: 700;
}

.boss-owner-list,
.issue-list {
  border-color: rgba(29, 29, 31, 0.075);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.boss-owner-row,
.issue-row {
  min-height: 56px;
  border-bottom-color: #ececf0;
}

.report-text {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #f2f2f4;
  box-shadow: 0 18px 44px rgba(29, 29, 31, 0.14);
}

.product-dialog {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 32px 100px rgba(12, 12, 14, 0.32);
}

.product-dialog[open] {
  animation: dialog-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-dialog[open]::backdrop {
  animation: backdrop-enter 260ms ease-out both;
}

.product-dialog::backdrop {
  background: rgba(17, 17, 19, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-topbar {
  padding: 19px 22px;
  background: rgba(250, 250, 252, 0.9);
}

.dialog-body {
  padding: 24px;
}

.primary-image-stage {
  overflow: hidden;
  border-color: rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.025);
}

.primary-image-stage img {
  transition: opacity 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-image-stage img.is-changing {
  opacity: 0.35;
  transform: scale(0.992);
}

.stage-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.72);
  font-size: 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease;
}

.stage-arrow:hover {
  background: rgba(29, 29, 31, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.image-counter {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(29, 29, 31, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dialog-thumb {
  border-radius: 7px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dialog-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 29, 31, 0.1);
}

.dialog-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(23, 105, 170, 0.12);
}

.dialog-facts {
  border-color: #e2e2e6;
  border-radius: 8px;
  background: #e2e2e6;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@keyframes auth-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes signal-grow {
  from { opacity: 0; transform: scaleY(0.15); }
  to { opacity: 1; transform: scaleY(1); }
}

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

@keyframes topbar-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-enter {
  from { background: rgba(17, 17, 19, 0); backdrop-filter: blur(0); }
  to { background: rgba(17, 17, 19, 0.62); backdrop-filter: blur(8px); }
}

@media (max-width: 820px) {
  .topbar-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tabs {
    height: 45px;
    margin-top: 2px;
    background: rgba(29, 29, 31, 0.05);
  }

  .filter-band {
    margin-bottom: 24px;
  }

  .boss-summary-band {
    padding: 24px;
  }

  .boss-cost-total {
    border-top-color: rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 28px 22px;
  }

  .auth-signal {
    margin-top: 28px;
  }

  .workspace {
    padding-top: 18px;
  }

  .tabs {
    width: 100%;
  }

  .tab-button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .filter-band {
    gap: 12px;
  }

  .kpi-card {
    min-height: 116px;
    padding: 15px;
  }

  .kpi-value {
    font-size: 27px;
  }

  .gallery-grid {
    gap: 14px;
  }

  .boss-summary-band h2 {
    font-size: 20px;
  }

  .dialog-body {
    padding: 10px;
  }

  .stage-arrow {
    width: 38px;
    height: 38px;
  }
}

/* Icon system and secure-access refinement. */
.lucide {
  display: block;
  flex: 0 0 auto;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-panel.is-authenticated {
  animation: auth-exit 340ms cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

.auth-panel.has-error {
  animation: auth-shake 360ms ease-in-out;
}

.auth-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 36px 0 26px;
}

.auth-heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 105, 170, 0.12);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.auth-heading-icon svg {
  width: 20px;
  height: 20px;
}

.auth-heading h1 {
  margin: 0;
  font-size: 25px;
}

.auth-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-signal {
  position: relative;
  width: 100%;
}

.auth-signal::before,
.auth-signal::after {
  position: absolute;
  top: 24px;
  left: 72px;
  height: 1px;
  content: "";
}

.auth-signal::before {
  right: 0;
  background: #e4e4e8;
}

.auth-signal::after {
  width: 38px;
  background: var(--blue);
  opacity: 0.72;
  animation: auth-scan 3.6s ease-in-out infinite;
}

.auth-field-label {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

.auth-field-label svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.auth-code-field {
  height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfbfd;
  box-shadow: inset 0 1px 2px rgba(29, 29, 31, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-code-field:hover {
  border-color: #b7b7bd;
}

.auth-code-field:focus-within {
  border-color: #0071e3;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.09), 0 8px 24px rgba(29, 29, 31, 0.06);
  transform: translateY(-1px);
}

.auth-code-field.has-error {
  border-color: var(--coral);
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(173, 75, 61, 0.08);
}

.auth-code-field .field-leading {
  justify-self: center;
  width: 17px;
  height: 17px;
  color: #8a8a90;
  transition: color 180ms ease, transform 180ms ease;
}

.auth-code-field:focus-within .field-leading {
  color: var(--blue);
  transform: scale(1.05);
}

.auth-code-field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.auth-code-field input::placeholder {
  color: #a0a0a6;
}

.field-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #77777d;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.field-action:hover {
  background: #ececf0;
  color: var(--ink);
}

.field-action:active {
  transform: scale(0.92);
}

.field-action svg {
  width: 17px;
  height: 17px;
}

.auth-submit {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
}

.auth-submit svg {
  width: 17px;
  height: 17px;
}

.auth-submit .button-arrow {
  transition: transform 180ms ease, opacity 180ms ease;
}

.auth-submit:hover .button-arrow {
  transform: translateX(3px);
}

.auth-submit .button-loader {
  display: none;
}

.auth-submit.is-loading {
  cursor: wait;
  opacity: 0.88;
}

.auth-submit.is-loading .button-arrow {
  display: none;
}

.auth-submit.is-loading .button-loader {
  display: block;
  animation: spin 750ms linear infinite;
}

.auth-submit.is-loading .button-label {
  font-size: 0;
}

.auth-submit.is-loading .button-label::after {
  content: "正在验证";
  font-size: 14px;
}

.form-error {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-error svg {
  width: 14px;
  height: 14px;
}

.auth-security {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 13px -38px -38px;
  padding: 0 38px;
  border-top: 1px solid #ececf0;
  background: #fafafd;
  color: #77777d;
  font-size: 10px;
  font-weight: 600;
}

.auth-security > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-security svg {
  width: 12px;
  height: 12px;
}

.auth-online {
  color: var(--green);
}

.auth-online svg {
  animation: online-pulse 2.4s ease-in-out infinite;
}

.feishu-auth-action {
  display: grid;
}

.feishu-login-button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
}

.feishu-button-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.feishu-button-icon svg {
  width: 19px;
  height: 19px;
}

.feishu-button-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.feishu-button-copy strong {
  color: white;
  font-size: 14px;
  font-weight: 680;
}

.feishu-button-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-login-button .button-arrow,
.feishu-login-button .button-loader {
  width: 17px;
  height: 17px;
}

.feishu-login-button .button-arrow {
  transition: transform 180ms ease, opacity 180ms ease;
}

.feishu-login-button:hover .button-arrow {
  transform: translateX(3px);
}

.feishu-login-button .button-loader {
  display: none;
}

.feishu-login-button.is-loading {
  cursor: wait;
  opacity: 0.84;
  pointer-events: none;
}

.feishu-login-button.is-loading .button-arrow {
  display: none;
}

.feishu-login-button.is-loading .button-loader {
  display: block;
  animation: spin 750ms linear infinite;
}

.user-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 4px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #4f4f54;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03);
  font-size: 11px;
  font-weight: 650;
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.user-chip-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip > svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tab-button svg {
  width: 15px;
  height: 15px;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-button:hover svg,
.tab-button.is-active svg {
  opacity: 1;
}

.tab-button.is-active svg {
  transform: scale(1.06);
}

.icon-text-button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-text-button.is-loading svg {
  animation: spin 760ms linear infinite;
}

.icon-text-button.is-loading span:first-child {
  animation: none;
}

.search-field span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.search-field span svg {
  width: 16px;
  height: 16px;
}

.report-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.report-toggle svg {
  width: 15px;
  height: 15px;
}

.kpi-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent, var(--ink)) 14%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, var(--ink)) 9%, white);
  color: var(--accent, var(--ink));
}

.kpi-icon svg {
  width: 16px;
  height: 16px;
}

.kpi-card::after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 18px;
  width: 34px;
  height: 2px;
  content: "";
  background: white;
  opacity: 0;
  pointer-events: none;
}

.kpi-card.enter-item::after {
  animation: kpi-scan 820ms calc(var(--enter-index, 0) * 48ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.activity-status {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: none;
}

.activity-status svg {
  width: 15px;
  height: 15px;
}

.activity-status.success { background: var(--green-soft); color: var(--green); box-shadow: none; }
.activity-status.processing { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.activity-status.failed { background: var(--coral-soft); color: var(--coral); box-shadow: none; }
.activity-status.pending { background: var(--amber-soft); color: var(--amber); box-shadow: none; }

.activity-status.processing svg,
.status-badge.processing svg {
  animation: spin 1.4s linear infinite;
}

.image-count-badge,
.status-badge {
  gap: 5px;
}

.image-count-badge svg,
.status-badge svg {
  width: 12px;
  height: 12px;
}

.issue-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.issue-row span svg {
  width: 15px;
  height: 15px;
  color: var(--coral);
}

.stage-arrow svg {
  width: 21px;
  height: 21px;
}

.dialog-topbar .icon-button svg {
  width: 18px;
  height: 18px;
}

@keyframes auth-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.985); }
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  68% { transform: translateX(-2px); }
}

@keyframes auth-scan {
  0%, 12% { opacity: 0; transform: translateX(0); }
  28% { opacity: 0.75; }
  72% { opacity: 0.75; }
  88%, 100% { opacity: 0; transform: translateX(245px); }
}

@keyframes online-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes kpi-scan {
  0% { opacity: 0; transform: translateX(0); }
  18% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(150px); }
}

@media (max-width: 520px) {
  .auth-heading {
    margin-top: 30px;
  }

  .auth-security {
    margin-right: -22px;
    margin-bottom: -28px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .tab-button {
    gap: 5px;
  }

  .tab-button svg {
    width: 14px;
    height: 14px;
  }

  .kpi-icon {
    width: 28px;
    height: 28px;
  }

  .auth-security > span:first-child {
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-chip {
    width: 36px;
    padding: 3px;
  }

  .user-chip-name,
  .user-chip > svg {
    display: none;
  }
}

/* Owner revision workflow. */
.dialog-revision-action {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: #f6f7f8;
}

.dialog-revision-action > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-revision-action > div > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dialog-revision-action strong {
  font-size: 13px;
}

.dialog-revision-action > div > div > span {
  color: var(--muted);
  font-size: 11px;
}

.dialog-revision-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  line-height: 0;
}

.dialog-revision-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  transform: none;
  stroke-width: 1.8;
}

.revision-open-button,
.revision-submit,
.revision-success-actions .primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.revision-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 34px 110px rgba(12, 12, 14, 0.34);
}

.revision-dialog[open] {
  animation: dialog-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.revision-dialog::backdrop {
  background: rgba(17, 17, 19, 0.66);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.revision-dialog[open]::backdrop {
  animation: backdrop-enter 260ms ease-out both;
}

.revision-dialog-shell {
  max-height: calc(100vh - 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.revision-topbar {
  min-height: 82px;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 252, 0.94);
}

.revision-topbar > div {
  min-width: 0;
}

.revision-topbar h2,
.revision-topbar p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-topbar h2 {
  font-size: 20px;
  line-height: 1.25;
}

.revision-topbar p {
  margin-top: 4px;
  color: var(--muted);
  font: 11px/1.4 Consolas, "Segoe UI", sans-serif;
}

.revision-form {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 0;
}

.revision-context {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  animation: revision-step-enter 380ms 40ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.revision-context-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 750;
}

.revision-context > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.revision-context strong,
.revision-context > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-context strong {
  font-size: 14px;
}

.revision-context > div > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.revision-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9e2d1;
  font-size: 11px;
  font-weight: 700;
}

.revision-verified svg {
  width: 15px;
  height: 15px;
}

.revision-section {
  padding: 24px 0;
  border-bottom: 1px solid #ececf0;
  animation: revision-step-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.revision-section:nth-of-type(1) { animation-delay: 90ms; }
.revision-section:nth-of-type(2) { animation-delay: 140ms; }
.revision-section:nth-of-type(3) { animation-delay: 190ms; }

.revision-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.revision-section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.revision-section-heading > div > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: #3e5668;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.revision-section-heading h3 {
  margin: 0;
  font-size: 14px;
}

.revision-section-heading small {
  color: var(--muted);
  font-size: 11px;
}

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

.revision-history {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(104, 116, 130, 0.16);
}

.revision-history[hidden] {
  display: none;
}

.revision-history-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.92fr) minmax(0, 4.08fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(88, 105, 124, 0.13);
  border-radius: 8px;
  background: rgba(244, 247, 250, 0.78);
}

.revision-history-row.is-current {
  border-color: rgba(50, 111, 157, 0.32);
  background: linear-gradient(110deg, rgba(231, 245, 248, 0.88), rgba(242, 239, 251, 0.82));
  box-shadow: inset 3px 0 0 rgba(50, 111, 157, 0.76);
}

.revision-history-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.revision-history-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(50, 111, 157, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: #326f9d;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.revision-history-meta > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.revision-history-meta strong,
.revision-history-meta > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-history-meta strong {
  font-size: 12px;
}

.revision-history-meta > div > span {
  color: var(--muted);
  font-size: 9px;
}

.revision-history-meta small {
  grid-column: 2;
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(45, 137, 103, 0.12);
  color: #237657;
  font-size: 9px;
  font-weight: 750;
}

.revision-history-images {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.revision-history-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(70, 83, 97, 0.12);
  border-radius: 6px;
  background: white;
}

.revision-history-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.revision-history-image span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(24, 29, 36, 0.66);
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.revision-slot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0 0 9px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f1f3f5;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.revision-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.09);
}

.revision-slot.is-selected {
  border-color: var(--blue);
  background: #edf4f9;
  box-shadow: 0 0 0 2px rgba(50, 111, 157, 0.12);
}

.revision-slot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: white;
}

.revision-slot-number,
.revision-slot-label {
  display: block;
  margin: 7px 9px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-slot-number {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.revision-slot-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.revision-slot-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: scale(0.75);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.58);
  color: white;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.revision-slot.is-selected .revision-slot-check {
  transform: scale(1);
  background: var(--blue);
  opacity: 1;
}

.revision-slot-check svg {
  width: 13px;
  height: 13px;
}

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

.revision-copy-fields .revision-section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.revision-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.revision-field > span {
  color: #3f4d58;
  font-size: 11px;
  font-weight: 750;
}

.revision-field input,
.revision-field textarea {
  width: 100%;
  border: 1px solid #d9dfe4;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: 13px/1.55 Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.revision-field input {
  min-height: 48px;
  padding: 11px 46px 11px 12px;
}

.revision-field textarea {
  min-height: 124px;
  resize: vertical;
  padding: 11px 46px 11px 12px;
}

.revision-field input:focus,
.revision-field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(50, 111, 157, 0.12);
}

.revision-field > small {
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: #8a949c;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.revision-dropzone {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #bfcbd4;
  border-radius: 8px;
  background: #f7f9fa;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.revision-dropzone:hover,
.revision-dropzone.is-dragging {
  border-color: var(--blue);
  background: #edf4f9;
}

.revision-dropzone.is-full {
  opacity: 0.62;
}

.revision-dropzone > strong,
.revision-dropzone > span:last-child {
  white-space: nowrap;
}

.revision-dropzone > strong {
  font-size: 12px;
}

.revision-dropzone > span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.revision-drop-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--blue);
  box-shadow: 0 5px 15px rgba(29, 29, 31, 0.07);
}

.revision-reference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.revision-reference-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  background: white;
}

.revision-reference-item img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f3f5;
}

.revision-reference-item > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.revision-reference-item strong,
.revision-reference-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-reference-item strong {
  font-size: 10px;
}

.revision-reference-item span {
  color: var(--muted);
  font-size: 9px;
}

.revision-reference-item button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #55616b;
}

.revision-reference-item button:hover {
  background: var(--coral-soft);
  color: var(--coral);
}

.revision-reference-item button svg {
  width: 14px;
  height: 14px;
}

.revision-form-error {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--coral-soft);
  color: #934333;
  font-size: 11px;
  font-weight: 650;
}

.revision-form-error svg {
  width: 16px;
  height: 16px;
}

.revision-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 -24px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.revision-submit-loader {
  display: none;
}

.revision-form.is-submitting .revision-submit-icon {
  display: none;
}

.revision-form.is-submitting .revision-submit-loader {
  display: block;
  animation: spin 0.8s linear infinite;
}

.revision-success {
  min-height: 560px;
  overflow: auto;
  padding: 74px 24px 44px;
  text-align: center;
  animation: revision-success-enter 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.revision-success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.revision-success-icon svg {
  width: 32px;
  height: 32px;
}

.revision-success > p {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.revision-success h2 {
  max-width: 660px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.35;
}

.revision-success-meta {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 1px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  background: #e0e4e8;
  text-align: left;
}

.revision-success-meta span,
.revision-success-meta strong {
  min-width: 0;
  padding: 12px 14px;
  background: white;
  font-size: 11px;
}

.revision-success-meta span {
  color: var(--muted);
}

.revision-success-meta strong {
  overflow-wrap: anywhere;
}

.revision-success-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.revision-success-actions a {
  text-decoration: none;
}

@keyframes revision-step-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revision-success-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .revision-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .revision-copy-fields {
    grid-template-columns: 1fr;
  }

  .revision-copy-fields .revision-section-heading {
    grid-column: auto;
  }

  .revision-reference-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dialog-revision-action {
    align-items: stretch;
    flex-direction: column;
  }

  .revision-open-button {
    width: 100%;
  }

  .revision-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .revision-dialog-shell {
    max-height: calc(100vh - 18px);
  }

  .revision-topbar {
    min-height: 76px;
    padding: 15px 16px;
  }

  .revision-form {
    padding: 14px 14px 0;
  }

  .revision-context {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .revision-verified {
    grid-column: 1 / -1;
    padding-left: 55px;
  }

  .revision-section {
    padding: 20px 0;
  }

  .revision-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .revision-history-row {
    padding: 9px;
  }

  .revision-history-images {
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .revision-slot-label {
    font-size: 10px;
  }

  .revision-dropzone {
    min-height: 126px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .revision-dropzone > strong,
  .revision-dropzone > span:last-child {
    white-space: normal;
  }

  .revision-footer {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .revision-footer .secondary-button {
    flex: 0 0 auto;
  }

  .revision-submit {
    min-width: 0;
    flex: 1 1 auto;
  }

  .revision-success {
    min-height: 500px;
    padding: 54px 16px 34px;
  }

  .revision-success h2 {
    font-size: 20px;
  }

  .revision-success-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

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

/* V7.2.1 smart workspaces */
.feature-workbench,
.feature-workbench.smart-copy-placeholder {
  position: relative;
  min-width: 0;
  min-height: min(650px, calc(100vh - 230px));
  display: grid;
  place-content: stretch;
  justify-items: stretch;
  align-content: start;
  gap: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.feature-status-band,
.feature-compose-panel,
.feature-history-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 252, 0.76)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 44px rgba(48, 58, 88, 0.1);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.feature-status-band {
  position: relative;
  padding: 20px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
}

.feature-status-band::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #4cb8ad, #6f89d8 48%, #d88bb9);
}

.operations-status-band::before {
  background: linear-gradient(90deg, #327f77, #5d7fb5 52%, #b8885c);
}

.feature-status-copy,
.feature-status-actions,
.feature-panel-heading,
.feature-form-footer,
.feature-task-row,
.feature-task-main > div,
.operations-window,
.feature-form-error {
  display: flex;
  align-items: center;
}

.feature-status-copy {
  min-width: 0;
  gap: 13px;
}

.feature-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 132, 153, 0.2);
  border-radius: 12px;
  color: #245b6c;
  background: linear-gradient(140deg, rgba(211, 246, 242, 0.92), rgba(228, 232, 250, 0.8));
}

.feature-mark svg {
  width: 21px;
  height: 21px;
}

.feature-status-copy > div,
.feature-panel-heading > div,
.feature-task-main {
  min-width: 0;
}

.feature-status-copy p,
.feature-panel-heading p {
  margin: 0 0 3px;
  color: #397287;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0;
}

.feature-status-copy h2,
.feature-panel-heading h3 {
  margin: 0;
  color: #172238;
  letter-spacing: 0;
}

.feature-status-copy h2 {
  font-size: 22px;
}

.feature-status-copy > div > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #647088;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-status-actions {
  align-self: center;
  justify-content: flex-end;
  gap: 10px;
}

.feature-safety-badge,
.feature-beta-tag,
.feature-task-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.feature-safety-badge {
  height: 34px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(44, 137, 113, 0.22);
  border-radius: 999px;
  color: #236d5d;
  background: rgba(224, 248, 241, 0.78);
  font-size: 11px;
  font-weight: 750;
}

.feature-safety-badge.is-readonly {
  color: #315f7a;
  border-color: rgba(67, 119, 151, 0.22);
  background: rgba(225, 240, 249, 0.78);
}

.feature-safety-badge.is-offline {
  color: #85621f;
  border-color: rgba(167, 116, 24, 0.2);
  background: rgba(252, 243, 215, 0.82);
}

.feature-safety-badge svg {
  width: 15px;
  height: 15px;
}

.feature-status-actions .bruce-nudge-button {
  min-width: auto;
  height: 34px;
  margin: 0;
  padding: 0 13px;
  font-size: 11px;
}

.feature-summary-grid {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(111, 126, 154, 0.14);
}

.feature-summary-item {
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid rgba(111, 126, 154, 0.12);
}

.feature-summary-item:first-child {
  padding-left: 0;
}

.feature-summary-item:last-child {
  border-right: 0;
}

.feature-summary-item > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #526179;
  background: rgba(232, 238, 246, 0.86);
}

.feature-summary-item.is-completed > span { color: #24745e; background: rgba(221, 246, 237, 0.9); }
.feature-summary-item.is-running > span { color: #326c9a; background: rgba(224, 239, 252, 0.9); }
.feature-summary-item.is-failed > span { color: #a24e51; background: rgba(252, 230, 233, 0.9); }
.feature-summary-item.is-queued > span { color: #8a641d; background: rgba(251, 243, 219, 0.92); }

.feature-summary-item svg {
  width: 15px;
  height: 15px;
}

.feature-summary-item > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.feature-summary-item strong {
  color: #172238;
  font-size: 18px;
  line-height: 1;
}

.feature-summary-item small {
  overflow: hidden;
  color: #69748a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-workspace-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 16px;
  align-items: stretch;
}

.feature-compose-panel,
.feature-history-panel {
  padding: 20px;
}

.feature-compose-panel {
  display: grid;
  align-content: start;
  gap: 17px;
}

.feature-history-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.feature-panel-heading {
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
}

.feature-panel-heading h3 {
  font-size: 18px;
}

.feature-beta-tag {
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(105, 86, 170, 0.16);
  border-radius: 999px;
  color: #6b55a2;
  background: rgba(241, 229, 250, 0.82);
  font-size: 9px;
  font-weight: 800;
}

.feature-refresh-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
}

.feature-refresh-button.is-loading svg,
.feature-task-row.is-running .feature-task-state svg,
.feature-loading-row svg,
.feature-compose-panel .primary-button.is-loading svg {
  animation: spin 1s linear infinite;
}

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

.feature-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #4c5870;
  font-size: 11px;
  font-weight: 700;
}

.feature-field > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.feature-field > span small {
  color: #778298;
  font-size: 10px;
  font-weight: 650;
}

.feature-field :is(select, input, textarea) {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(102, 119, 150, 0.22);
  border-radius: 10px;
  color: #1d2940;
  background: rgba(250, 252, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(47, 61, 92, 0.04);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feature-field :is(select, input) {
  height: 42px;
  padding: 0 12px;
}

.feature-field textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

.feature-field :is(select, input, textarea):focus {
  border-color: rgba(45, 132, 151, 0.52);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(83, 174, 180, 0.12);
}

.feature-field :is(select, input, textarea):disabled {
  color: #8993a4;
  cursor: not-allowed;
  background: rgba(239, 243, 247, 0.78);
}

.copy-contract,
.report-sheet-contract {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(103, 121, 150, 0.16);
  border-radius: 11px;
  background: rgba(102, 122, 153, 0.1);
}

.copy-contract {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.copy-contract span,
.report-sheet-contract span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e6980;
  background: rgba(250, 252, 255, 0.9);
  text-align: center;
}

.copy-contract span {
  min-height: 46px;
  gap: 5px;
  padding: 8px;
  font-size: 10px;
}

.copy-contract strong {
  color: #1f6070;
  font-size: 15px;
}

.operations-window {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.operations-window span {
  min-width: 0;
  flex: 1 1 220px;
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82, 126, 150, 0.14);
  border-radius: 10px;
  color: #657086;
  background: rgba(235, 245, 249, 0.68);
  font-size: 10px;
}

.operations-window svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #2c7480;
}

.operations-window strong {
  overflow: hidden;
  color: #243149;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-sheet-contract {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-sheet-contract span {
  min-height: 40px;
  padding: 8px;
  font-size: 10px;
  font-weight: 680;
}

.feature-form-error {
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(185, 82, 77, 0.18);
  border-radius: 9px;
  color: #974741;
  background: rgba(253, 235, 232, 0.82);
  font-size: 11px;
}

.feature-form-error[hidden] {
  display: none !important;
}

.feature-form-error svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.feature-form-footer {
  min-width: 0;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.feature-form-footer > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6d778c;
  font-size: 10px;
  line-height: 1.5;
}

.feature-form-footer > span svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #347a7f;
}

.feature-form-footer .primary-button {
  min-width: 150px;
  min-height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.feature-task-list {
  min-width: 0;
  max-height: 480px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.feature-task-row {
  min-width: 0;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(106, 121, 149, 0.15);
  border-radius: 11px;
  background: rgba(250, 252, 255, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-task-row:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 131, 151, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.feature-task-state {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #866221;
  background: rgba(250, 241, 214, 0.88);
}

.feature-task-row.is-completed .feature-task-state { color: #24745e; background: rgba(218, 244, 234, 0.9); }
.feature-task-row.is-running .feature-task-state { color: #316c9b; background: rgba(220, 237, 251, 0.92); }
.feature-task-row:is(.is-failed, .is-needs_attention) .feature-task-state { color: #a34d50; background: rgba(251, 226, 230, 0.92); }

.feature-task-state svg {
  width: 16px;
  height: 16px;
}

.feature-task-main {
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.feature-task-main > div {
  min-width: 0;
  gap: 7px;
}

.feature-task-main strong {
  overflow: hidden;
  color: #1e2a40;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-task-main > div > span {
  flex: 0 0 auto;
  color: #537184;
  font-size: 9px;
}

.feature-task-main p,
.feature-task-main small,
.feature-task-error {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-task-main p {
  color: #5e697f;
  font-size: 10px;
}

.feature-task-main small {
  color: #8a93a4;
  font-size: 9px;
}

.feature-task-error {
  color: #a44b4d !important;
}

.feature-task-end {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.feature-task-badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #71551c;
  background: rgba(249, 240, 211, 0.9);
  font-size: 9px;
  font-weight: 760;
}

.feature-task-row.is-completed .feature-task-badge { color: #24664f; background: rgba(218, 244, 234, 0.9); }
.feature-task-row.is-running .feature-task-badge { color: #2c628d; background: rgba(220, 237, 251, 0.92); }
.feature-task-row:is(.is-failed, .is-needs_attention) .feature-task-badge { color: #934247; background: rgba(251, 226, 230, 0.92); }

.feature-download-button {
  min-height: 25px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(69, 126, 147, 0.18);
  border-radius: 8px;
  color: #285f76;
  background: rgba(229, 243, 248, 0.84);
  font-size: 9px;
  font-weight: 720;
  text-decoration: none;
}

.feature-download-button svg {
  width: 12px;
  height: 12px;
}

.feature-loading-row,
.feature-empty-row {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #738096;
  text-align: center;
}

.feature-loading-row {
  grid-template-columns: auto auto;
  min-height: 80px;
  font-size: 11px;
}

.feature-empty-row > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #587184;
  background: rgba(229, 239, 246, 0.86);
}

.feature-empty-row strong {
  color: #354157;
  font-size: 13px;
}

.feature-empty-row small {
  color: #8992a2;
  font-size: 10px;
}

.feature-workbench.is-bruce-active > :not(#bruceCompanion) {
  opacity: 0.08;
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 220ms ease, filter 220ms ease;
}

@media (max-width: 1080px) {
  .feature-workspace-grid {
    grid-template-columns: 1fr;
  }

  .feature-task-list {
    max-height: 390px;
  }
}

@media (max-width: 720px) {
  .smart-copy-view,
  .feature-workbench,
  .feature-workbench.smart-copy-placeholder {
    min-height: auto;
  }

  .feature-status-band {
    padding: 18px 16px 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-status-actions {
    justify-content: flex-start;
  }

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

  .feature-summary-item,
  .feature-summary-item:first-child {
    padding: 11px 8px;
  }

  .feature-summary-item:nth-child(2n) {
    border-right: 0;
  }

  .feature-summary-item:last-child {
    grid-column: 1 / -1;
  }

  .feature-compose-panel,
  .feature-history-panel {
    padding: 16px;
  }

  .feature-form-grid,
  .copy-contract,
  .report-sheet-contract {
    grid-template-columns: 1fr 1fr;
  }

  .feature-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-form-footer .primary-button {
    width: 100%;
  }

  .feature-task-row {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .feature-status-copy h2 {
    font-size: 19px;
  }

  .feature-form-grid,
  .copy-contract,
  .report-sheet-contract {
    grid-template-columns: 1fr;
  }

  .feature-task-state {
    display: none;
  }
}

/* Submission and exception operations */
textarea {
  font: inherit;
  letter-spacing: 0;
}

.exception-section,
.submission-source-section,
.submission-selected-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.exception-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.45fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 14px 16px;
  background: #fff;
}

.exception-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.exception-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--coral-soft);
  color: var(--coral);
}

.exception-product > div,
.exception-detail {
  min-width: 0;
}

.exception-name,
.owner-exception-link,
.failed-count-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.exception-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exception-name:hover,
.owner-exception-link:not(:disabled):hover,
.failed-count-button:not(:disabled):hover {
  color: var(--blue);
}

.exception-product span,
.exception-detail p {
  color: var(--muted);
  font-size: 12px;
}

.exception-product > div > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exception-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exception-detail p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.issue-chip {
  min-width: max-content;
  padding: 4px 7px;
  border: 1px solid #efc8c0;
  border-radius: 5px;
  background: var(--coral-soft);
  color: #914234;
  font-size: 11px;
  font-weight: 750;
}

.exception-retry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.owner-exception-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.owner-exception-link:disabled,
.failed-count-button:disabled {
  cursor: default;
}

.failed-count-button {
  min-width: 30px;
  color: var(--coral);
  font-weight: 800;
}

.empty-state.compact {
  min-height: 118px;
  padding: 24px;
}

.submit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 4px;
}

.submit-heading h2 {
  margin: 4px 0 7px;
  font-size: 28px;
  line-height: 1.2;
}

.submit-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.submit-site-field {
  display: grid;
  gap: 7px;
  width: min(240px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.submit-site-field select {
  height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.development-owner-field,
.development-source-field {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.development-owner-field select,
.development-source-field select {
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.submission-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: #285b7f;
  font-size: 13px;
  line-height: 1.55;
}

.submission-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.submission-toolbar .segment-control button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.submission-search {
  width: min(420px, 100%);
}

.submission-source-panel {
  min-height: 186px;
}

.inline-loading {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.inline-loading svg,
.submission-submit-loader,
.retry-submit-loader {
  animation: spin 0.9s linear infinite;
}

.development-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  contain: layout paint;
}

.development-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.development-page-controls,
.development-page-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.development-page-controls .icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.development-pagination .development-page-input {
  width: 58px;
  min-height: 32px;
  height: 32px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #294858;
  font: inherit;
  text-align: center;
}

.development-product:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.development-product {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 88px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.development-product:nth-child(2n) {
  border-right: 0;
}

.development-product.is-selected {
  background: #f3f8fb;
  box-shadow: inset 3px 0 0 var(--blue);
}

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

.development-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: transparent;
}

.development-product.is-selected .development-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.development-product-copy {
  display: grid;
  min-width: 0;
}

.development-product-copy strong,
.development-product-copy span,
.development-product-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.development-product-copy strong {
  font-size: 13px;
}

.development-product-copy span {
  margin-top: 3px;
  color: #42505c;
  font-family: Consolas, monospace;
  font-size: 11px;
}

.development-product-owner {
  color: #65727d !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700;
}

.development-product-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.development-competitor-links {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  overflow: visible !important;
  white-space: normal !important;
}

.development-competitor-links em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.development-competitor-link {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  overflow: visible !important;
  color: var(--blue) !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 10px !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap !important;
}

.development-competitor-link:hover { color: #0c5ea8 !important; }
.development-competitor-link svg { width: 12px; height: 12px; }

.development-status {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
}

.development-status.ready {
  background: var(--green-soft);
  color: var(--green);
}

.development-status.waiting {
  background: var(--amber-soft);
  color: var(--amber);
}

.bulk-sku-field {
  display: grid;
  gap: 8px;
  color: #46525d;
  font-size: 13px;
  font-weight: 700;
}

.bulk-sku-field textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: Consolas, "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

#parseBulkSku {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.bulk-resolve-loader {
  display: none;
  animation: spin 0.9s linear infinite;
}

#parseBulkSku.is-loading .bulk-resolve-icon {
  display: none;
}

#parseBulkSku.is-loading .bulk-resolve-loader {
  display: block;
}

.bulk-lookup-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 12px 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

#aplusLookupHint {
  flex-basis: 100%;
  margin-left: 0;
  line-height: 1.5;
}

.submission-paste-zone[hidden] {
  display: none;
}

.aplus-target-choice {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.aplus-target-choice select {
  width: min(100%, 420px);
  min-width: 0;
  height: 32px;
  padding: 0 30px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.submission-paste-zone {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.submission-paste-zone.is-active {
  border-color: #7aa6c4;
  background: var(--blue-soft);
  color: #285b7f;
}

.submission-selected-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.submission-item {
  display: grid;
  grid-template-columns: 36px minmax(220px, 0.8fr) minmax(240px, 1.4fr) auto 36px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

.submission-item.is-active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.submission-item.is-unresolved {
  background: #fffaf2;
}

.submission-order {
  color: #94a0aa;
  font-size: 12px;
  font-weight: 800;
}

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

.submission-item-copy strong {
  overflow: hidden;
  font-family: Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-product-name {
  overflow: hidden;
  color: #42505c;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 10px;
}

.submission-product-meta > span,
.submission-product-meta.is-unresolved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.submission-product-meta svg {
  width: 12px;
  height: 12px;
}

.submission-product-meta.is-unresolved {
  color: #9a671d;
  font-weight: 700;
}

.submission-item-copy input {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--soft);
  color: #42505c;
  font-size: 12px;
}

.submission-item-copy input:focus {
  border-color: var(--line-strong);
  background: #fff;
}

.app-shell .submission-main-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-top: 7px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.app-shell .submission-main-display label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  cursor: pointer;
}

.app-shell .submission-main-display input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.app-shell .submission-main-display .submission-display-status {
  color: var(--muted);
  font-size: 11px;
}

.app-shell .submission-main-display .icon-button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.app-shell .submission-main-display .icon-button svg {
  width: 14px;
  height: 14px;
}

.submission-reference-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.submission-reference-thumb {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
}

.submission-reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submission-reference-thumb button,
.retry-reference-item button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(23, 33, 43, 0.82);
  color: #fff;
}

.submission-reference-thumb button svg,
.retry-reference-item button svg {
  width: 12px;
  height: 12px;
}

.submission-no-reference {
  color: var(--muted);
  font-size: 11px;
}

.submission-add-reference {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.submission-remove {
  min-width: 34px;
  min-height: 34px;
}

.submission-footer {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(24, 35, 45, 0.1);
}

.submission-footer > span {
  color: var(--muted);
  font-size: 12px;
}

#submissionSubmit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.submission-submit-loader,
.retry-submit-loader,
#submissionSubmit.is-loading .submission-submit-icon,
.retry-dialog.is-submitting .retry-submit-icon {
  display: none;
}

#submissionSubmit.is-loading .submission-submit-loader,
.retry-dialog.is-submitting .retry-submit-loader {
  display: block;
}

.retry-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--shadow);
}

.retry-dialog::backdrop {
  background: rgba(18, 27, 34, 0.54);
  backdrop-filter: blur(8px);
}

.retry-dialog-shell {
  overflow: auto;
  max-height: calc(100vh - 32px);
  background: #fff;
}

.retry-body {
  padding: 22px;
}

.retry-body .revision-footer {
  margin: 0 -22px -22px;
  padding-right: 22px;
  padding-left: 22px;
}

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

.retry-product-row > div {
  display: grid;
  min-width: 0;
}

.retry-product-row strong,
.retry-product-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retry-product-row > div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.retry-reason {
  margin: 18px 0;
  padding: 13px 14px;
  border-left: 3px solid var(--coral);
  background: #fcf4f2;
}

.retry-reason span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.retry-reason p {
  margin: 5px 0 0;
  color: #5b4945;
  font-size: 13px;
  line-height: 1.6;
}

#retryReferenceSection.is-recommended {
  border-color: #e6b9b0;
  box-shadow: inset 3px 0 0 var(--coral);
}

.retry-reference-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.retry-reference-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
}

.retry-reference-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retry-reference-item > span {
  position: absolute;
  bottom: 3px;
  left: 3px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .exception-item {
    grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) auto;
    gap: 14px;
  }

  .development-products {
    grid-template-columns: 1fr;
  }

  .development-product {
    border-right: 0;
  }

  .submission-item {
    grid-template-columns: 32px minmax(180px, 0.8fr) minmax(180px, 1fr) auto 36px;
  }
}

@media (max-width: 820px) {
  .exception-section,
  .submission-source-section,
  .submission-selected-section {
    padding: 18px;
  }

  .exception-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .exception-detail {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .exception-retry {
    grid-column: 2;
    grid-row: 1;
  }

  .submit-heading,
  .submission-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-site-field,
  .development-owner-field,
  .development-source-field,
  .submission-search {
    width: 100%;
  }

  .submission-item {
    grid-template-columns: 30px minmax(0, 1fr) auto 36px;
  }

  .submission-reference-thumbs {
    grid-column: 2 / -1;
    min-height: 46px;
  }

  .retry-reference-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .submit-heading h2 {
    font-size: 23px;
  }

  .exception-item {
    padding: 13px;
  }

  .exception-detail {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .submission-toolbar #submissionMode {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submission-toolbar #submissionMode button {
    width: auto;
    min-width: 0;
    min-height: 38px;
    justify-content: center;
  }

  .tab-button {
    padding-right: 4px;
    padding-left: 4px;
  }

  .tab-button span {
    white-space: nowrap;
  }

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

  .submission-add-reference {
    grid-column: 2;
    justify-self: start;
  }

  .submission-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .submission-reference-thumbs {
    grid-column: 1 / -1;
  }

  .submission-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submission-selected-section .section-heading h2 {
    font-size: 16px;
    line-height: 1.35;
  }

  #submissionSubmit {
    justify-content: center;
    width: 100%;
  }

  .retry-body {
    padding: 16px;
  }

  .retry-body .revision-footer {
    margin: 0 -16px -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .retry-product-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  #retryIssueBadge {
    grid-column: 2;
    justify-self: start;
  }

  .retry-reference-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep four compact SKU cards per row while showing the full set in each square. */
.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-set-media {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  grid-template-columns: 1.35fr .825fr .825fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  background: #f4f6f7;
  border-bottom: 1px solid #ececf0;
}

.gallery-set-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2e6e8;
  border-radius: 5px;
  background: #fff;
}

.gallery-set-tile.is-main { grid-column: 1; grid-row: 1 / span 3; }
.gallery-set-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-set-tile:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery-set-tile:nth-child(4) { grid-column: 2; grid-row: 2; }
.gallery-set-tile:nth-child(5) { grid-column: 3; grid-row: 2; }
.gallery-set-tile:nth-child(6) { grid-column: 2; grid-row: 3; }
.gallery-set-tile:nth-child(7) { grid-column: 3; grid-row: 3; }

.gallery-set-tile img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: transparent;
  z-index: 1;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 340ms ease, transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-set-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(110deg, transparent 25%, rgba(212, 224, 234, .72) 48%, transparent 72%),
    #f5f7f9;
  background-size: 220% 100%, 100% 100%;
  transition: opacity 180ms ease;
}

.gallery-set-tile.is-image-loading::before {
  opacity: 1;
}

.gallery-set-tile.is-image-error::before {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(116, 139, 158, .18) 0 18%, transparent 19%),
    #f4f6f8;
}

.gallery-set-tile img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-carousel img.is-loaded { opacity: 0; }
.gallery-carousel img.is-loaded.is-active { opacity: 1; }

.gallery-set-tile.is-empty {
  display: grid;
  place-items: center;
  color: #a4adb4;
  background: #edf0f2;
}

.gallery-set-tile.is-empty svg {
  width: 18px;
  height: 18px;
}

.gallery-set-tile > span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(29, 29, 31, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  z-index: 3;
}

.gallery-carousel > span {
  left: auto;
  right: 5px;
  min-width: 25px;
}

.gallery-set-media .image-count-badge {
  top: 9px;
  right: 9px;
  bottom: auto;
}

.gallery-team-readonly-label {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(78, 105, 120, 0.24);
  border-radius: 7px;
  color: #476574;
  background: rgba(232, 240, 241, 0.92);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.gallery-team-readonly-label svg {
  width: 14px;
  height: 14px;
}

.gallery-image-download-button {
  display: inline-flex;
  width: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(50, 111, 157, 0.24);
  border-radius: 7px;
  color: #245f7b;
  background: rgba(227, 243, 248, 0.9);
}

.gallery-image-download-button:hover:not(.is-disabled) {
  border-color: rgba(36, 95, 123, 0.4);
  color: #174d67;
  background: rgba(215, 239, 247, 0.98);
}

.gallery-image-download-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.gallery-image-download-button svg {
  width: 14px;
  height: 14px;
}

.gallery-card:hover .gallery-set-tile img.is-loaded.is-active,
.gallery-card:hover .gallery-set-tile:not(.gallery-carousel) img.is-loaded {
  transform: scale(1.018);
}

.exception-list {
  max-height: 5000px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 420ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.exception-section.is-collapsed .exception-list {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  border-color: transparent;
}

@media (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-set-media { gap: 5px; padding: 7px; }
}

/* Match the approved square composition: main 2x2, four surrounding images, and 6/7 at bottom right. */
.gallery-set-media {
  display: grid;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: #dfe4e7;
}

.gallery-set-tile {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.gallery-set-tile.is-main {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.gallery-set-tile:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-set-tile:nth-child(3) { grid-column: 3; grid-row: 2; }
.gallery-set-tile:nth-child(4) { grid-column: 1; grid-row: 3; }
.gallery-set-tile:nth-child(5) { grid-column: 2; grid-row: 3; }
.gallery-set-tile:nth-child(6) { grid-column: 3; grid-row: 3; }

.gallery-set-tile > span {
  left: 5px;
  bottom: 5px;
}

.gallery-carousel > span {
  left: auto;
  right: 5px;
}

/* V6.2.1 secure-access stage and product version mark. */
.brand-copy {
  min-width: 0;
}

.brand-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title-line strong {
  min-width: 0;
  white-space: nowrap;
}

.version-badge {
  position: relative;
  isolation: isolate;
  min-width: 54px;
  height: 21px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid #cda94c;
  border-radius: 999px;
  background: linear-gradient(115deg, #0f0f0e 0%, #282313 48%, #11110f 100%);
  color: #f4d36d;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 178, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 3px 9px rgba(35, 29, 12, 0.2);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(246, 211, 103, 0.34);
  vertical-align: middle;
  animation: version-gold-pulse 3.2s ease-in-out infinite;
}

.version-badge::before {
  position: absolute;
  z-index: -1;
  top: -12px;
  bottom: -12px;
  left: -28px;
  width: 18px;
  transform: skewX(-18deg);
  background: rgba(255, 228, 138, 0.22);
  content: "";
  animation: version-gold-scan 3.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.version-badge::after {
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid rgba(255, 221, 119, 0.12);
  border-radius: inherit;
  content: "";
}

.version-badge-compact {
  min-width: 49px;
  height: 18px;
  padding: 0 7px;
  font-size: 8px;
}

.auth-shell {
  z-index: 0;
  padding: 36px 24px;
  background-color: #f3f5f8;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(40, 112, 150, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 112, 150, 0.018) 1px, transparent 1px);
  background-position: 0 0, 0 0, 24px 24px, 24px 24px;
  background-size: 48px 48px, 48px 48px, 96px 96px, 96px 96px;
}

.auth-shell::before {
  position: absolute;
  z-index: 0;
  inset: -45% 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 46%,
    rgba(26, 129, 163, 0.025) 48%,
    rgba(26, 129, 163, 0.11) 50%,
    rgba(26, 129, 163, 0.025) 52%,
    transparent 54%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
  animation: auth-field-scan 8s linear infinite;
}

.auth-shell::after {
  z-index: 5;
  height: 4px;
  background:
    linear-gradient(90deg, #191a1d 0 42%, #bf9c41 42% 48%, #2b86a4 48% 51%, #191a1d 51% 100%);
  background-size: 170% 100%;
  box-shadow: 0 -1px 10px rgba(43, 134, 164, 0.08);
  animation: auth-footer-stream 7s linear infinite;
}

.auth-ambient {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-scan-plane {
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  height: 1px;
  background: rgba(29, 29, 31, 0.09);
}

.auth-scan-plane::before,
.auth-scan-plane::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(36, 122, 151, 0.36);
  border-radius: 1px;
  background: #f3f5f8;
  content: "";
}

.auth-scan-plane::before {
  left: 0;
}

.auth-scan-plane::after {
  right: 0;
}

.auth-tech-rail {
  position: absolute;
  top: 50%;
  width: 168px;
  height: min(52vh, 470px);
  transform: translateY(-50%);
  opacity: 0.72;
}

.auth-tech-rail::before,
.auth-tech-rail::after {
  position: absolute;
  content: "";
}

.auth-tech-rail::before {
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(31, 111, 143, 0.24);
}

.auth-tech-rail::after {
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(29, 29, 31, 0.1);
}

.auth-tech-rail-left {
  left: clamp(28px, 7vw, 124px);
}

.auth-tech-rail-right {
  right: clamp(28px, 7vw, 124px);
}

.auth-tech-rail-left::before {
  left: 0;
}

.auth-tech-rail-right::before {
  right: 0;
}

.auth-tech-rail i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(31, 111, 143, 0.42);
  border-radius: 1px;
  background: #f3f5f8;
  box-shadow: 0 0 0 3px rgba(31, 111, 143, 0.045);
  animation: auth-node-signal 3.8s ease-in-out infinite;
}

.auth-tech-rail-left i {
  left: -4px;
}

.auth-tech-rail-right i {
  right: -4px;
}

.auth-tech-rail i:nth-child(1) { top: 0; }
.auth-tech-rail i:nth-child(2) { top: 20%; animation-delay: -0.5s; }
.auth-tech-rail i:nth-child(3) { top: 40%; animation-delay: -1s; }
.auth-tech-rail i:nth-child(4) { top: 60%; animation-delay: -1.5s; }
.auth-tech-rail i:nth-child(5) { top: 80%; animation-delay: -2s; }
.auth-tech-rail i:nth-child(6) { bottom: 0; animation-delay: -2.5s; }

.auth-circuit-map {
  position: absolute;
  width: 250px;
  height: 178px;
  border-top: 1px solid rgba(29, 29, 31, 0.09);
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
  opacity: 0.62;
}

.auth-circuit-map::before,
.auth-circuit-map::after {
  position: absolute;
  content: "";
}

.auth-circuit-map::before {
  top: 30%;
  width: 68%;
  height: 40%;
  border-top: 1px solid rgba(36, 118, 150, 0.24);
  border-bottom: 1px solid rgba(36, 118, 150, 0.16);
}

.auth-circuit-map::after {
  top: 0;
  bottom: 0;
  width: 34%;
  border-right: 1px solid rgba(29, 29, 31, 0.08);
  border-left: 1px solid rgba(29, 29, 31, 0.08);
}

.auth-circuit-map-left {
  top: 11%;
  left: 3%;
}

.auth-circuit-map-right {
  right: 3%;
  bottom: 10%;
  transform: rotate(180deg);
}

.auth-circuit-map i {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(36, 118, 150, 0.38);
  border-radius: 1px;
  background: #f3f5f8;
}

.auth-circuit-map i:nth-child(1) { top: -4px; left: 18%; }
.auth-circuit-map i:nth-child(2) { top: 30%; left: 68%; }
.auth-circuit-map i:nth-child(3) { right: 14%; bottom: -4px; }
.auth-circuit-map i:nth-child(4) { bottom: 30%; left: 0; }

.auth-data-meter {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.12);
  opacity: 0.66;
}

.auth-data-meter-left {
  bottom: 8%;
  left: clamp(28px, 7vw, 124px);
}

.auth-data-meter-right {
  top: 9%;
  right: clamp(28px, 7vw, 124px);
  transform: rotate(180deg);
}

.auth-data-meter i {
  width: 5px;
  height: 24px;
  transform-origin: bottom;
  border-radius: 1px 1px 0 0;
  background: #237a96;
  animation: auth-meter-live 2.8s ease-in-out infinite;
}

.auth-data-meter i:nth-child(2) { height: 14px; animation-delay: -0.35s; background: #24765b; }
.auth-data-meter i:nth-child(3) { height: 30px; animation-delay: -0.7s; background: #1d1d1f; }
.auth-data-meter i:nth-child(4) { height: 18px; animation-delay: -1.05s; background: #b18a2f; }
.auth-data-meter i:nth-child(5) { height: 27px; animation-delay: -1.4s; }
.auth-data-meter i:nth-child(6) { height: 11px; animation-delay: -1.75s; background: #24765b; }
.auth-data-meter i:nth-child(7) { height: 21px; animation-delay: -2.1s; background: #1d1d1f; }
.auth-data-meter i:nth-child(8) { height: 16px; animation-delay: -2.45s; background: #b18a2f; }

.auth-panel {
  z-index: 2;
  width: min(520px, 100%);
  padding: 42px;
  overflow: visible;
  border: 1px solid rgba(29, 29, 31, 0.11);
  background-color: rgba(255, 255, 255, 0.94);
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow:
    0 1px 1px rgba(29, 29, 31, 0.04),
    0 24px 70px rgba(29, 29, 31, 0.14),
    0 0 0 8px rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.auth-panel::before {
  height: 3px;
  background: linear-gradient(90deg, #1d1d1f 0 38%, #c6a448 38% 45%, #2b86a4 45% 49%, #1d1d1f 49% 100%);
  background-size: 190% 100%;
  animation: auth-panel-stream 6s linear infinite;
}

.auth-panel::after {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -1px;
  width: 1px;
  background: rgba(43, 134, 164, 0.46);
  content: "";
  opacity: 0;
  animation: auth-edge-scan 4.8s ease-in-out infinite;
}

.auth-panel-corners {
  position: absolute;
  inset: -9px;
  pointer-events: none;
}

.auth-panel-corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(29, 29, 31, 0.34);
  border-style: solid;
}

.auth-panel-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.auth-panel-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.auth-panel-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.auth-panel-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.auth-brand-row {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.auth-brand-row::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 72px;
  height: 1px;
  background: #2b86a4;
  content: "";
  animation: auth-brand-line 3.8s ease-in-out infinite;
}

.auth-brand-row .brand-mark {
  width: 42px;
  height: 42px;
  color: #f7f8fa;
}

.auth-heading {
  margin: 30px 0 22px;
}

.auth-heading-icon {
  position: relative;
  overflow: hidden;
}

.auth-heading-icon::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(50, 111, 157, 0.16);
  border-radius: 5px;
  content: "";
  animation: auth-icon-pulse 2.8s ease-in-out infinite;
}

.auth-signal {
  margin-top: 26px;
}

.auth-signal span {
  animation-name: signal-live;
  animation-duration: 3.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.auth-protocol {
  display: grid;
  grid-template-columns: 34px minmax(26px, 1fr) 34px minmax(26px, 1fr) 34px;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}

.auth-protocol-node {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 29, 31, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
  color: #59636b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  animation: auth-protocol-node 4.5s ease-in-out infinite;
}

.auth-protocol-node:nth-of-type(3) {
  animation-delay: -3s;
}

.auth-protocol-node:nth-of-type(5) {
  animation-delay: -1.5s;
}

.auth-protocol-node svg {
  width: 16px;
  height: 16px;
}

.auth-protocol-track {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.12);
}

.auth-protocol-track i {
  position: absolute;
  top: -1px;
  left: -12px;
  width: 12px;
  height: 3px;
  border-radius: 1px;
  background: #2b86a4;
  box-shadow: 0 0 8px rgba(43, 134, 164, 0.36);
  animation: auth-protocol-flow 2.3s linear infinite;
}

.auth-protocol-track:nth-of-type(4) i {
  animation-delay: -1.15s;
}

.feishu-login-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: #1d1d1f;
  box-shadow: 0 9px 24px rgba(29, 29, 31, 0.19);
}

.feishu-login-button::before {
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: -38px;
  width: 22px;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, 0.12);
  content: "";
  animation: auth-button-scan 4.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.feishu-login-button::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0.34);
  transform-origin: left;
  background: #c2a047;
  content: "";
  opacity: 0.72;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feishu-login-button:hover::after {
  transform: scaleX(1);
}

.auth-security {
  margin-right: -42px;
  margin-bottom: -42px;
  margin-left: -42px;
  padding-right: 42px;
  padding-left: 42px;
  background-color: rgba(247, 248, 250, 0.94);
  background-image: linear-gradient(90deg, rgba(29, 29, 31, 0.025) 1px, transparent 1px);
  background-size: 22px 100%;
}

@keyframes version-gold-scan {
  0%, 18% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  30% { opacity: 1; }
  62% { opacity: 1; }
  76%, 100% { opacity: 0; transform: translateX(105px) skewX(-18deg); }
}

@keyframes version-gold-pulse {
  0%, 100% { border-color: #b89438; box-shadow: inset 0 1px 0 rgba(255, 240, 178, 0.14), 0 3px 9px rgba(35, 29, 12, 0.17); }
  50% { border-color: #e2c363; box-shadow: inset 0 1px 0 rgba(255, 240, 178, 0.25), 0 3px 12px rgba(184, 148, 56, 0.28); }
}

@keyframes auth-field-scan {
  from { transform: translateY(-26%); }
  to { transform: translateY(26%); }
}

@keyframes auth-footer-stream {
  from { background-position: 0 0; }
  to { background-position: 170% 0; }
}

@keyframes auth-panel-stream {
  from { background-position: 0 0; }
  to { background-position: 190% 0; }
}

@keyframes auth-edge-scan {
  0%, 12%, 100% { opacity: 0; transform: scaleY(0.18) translateY(-120%); }
  30% { opacity: 0.82; }
  72% { opacity: 0.82; }
  88% { opacity: 0; transform: scaleY(0.18) translateY(520%); }
}

@keyframes auth-node-signal {
  0%, 100% { border-color: rgba(31, 111, 143, 0.3); background: #f3f5f8; }
  48%, 56% { border-color: rgba(31, 111, 143, 0.8); background: #dcecf1; }
}

@keyframes auth-meter-live {
  0%, 100% { opacity: 0.45; transform: scaleY(0.52); }
  50% { opacity: 0.9; transform: scaleY(1); }
}

@keyframes auth-brand-line {
  0%, 100% { opacity: 0.26; transform: scaleX(0.35); transform-origin: right; }
  50% { opacity: 0.88; transform: scaleX(1); transform-origin: right; }
}

@keyframes auth-icon-pulse {
  0%, 100% { opacity: 0.28; transform: scale(0.88); }
  50% { opacity: 0.82; transform: scale(1); }
}

@keyframes signal-live {
  0%, 100% { opacity: 0.58; transform: scaleY(0.58); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes auth-protocol-node {
  0%, 20%, 100% { border-color: rgba(29, 29, 31, 0.11); color: #59636b; background: rgba(255, 255, 255, 0.84); }
  42%, 58% { border-color: rgba(43, 134, 164, 0.4); color: #247a98; background: #edf6f8; }
}

@keyframes auth-protocol-flow {
  from { transform: translateX(0); }
  to { transform: translateX(118px); }
}

@keyframes auth-button-scan {
  0%, 20% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  32% { opacity: 1; }
  66% { opacity: 1; }
  78%, 100% { opacity: 0; transform: translateX(560px) skewX(-18deg); }
}

@media (max-width: 980px) {
  .auth-circuit-map {
    opacity: 0.32;
  }

  .auth-tech-rail {
    width: 90px;
    opacity: 0.48;
  }
}

@media (max-width: 700px) {
  .auth-tech-rail,
  .auth-circuit-map,
  .auth-data-meter {
    display: none;
  }

  .auth-scan-plane {
    right: 20px;
    left: 20px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 22px 16px;
  }

  .auth-panel {
    padding: 28px 22px;
    box-shadow:
      0 1px 1px rgba(29, 29, 31, 0.04),
      0 18px 48px rgba(29, 29, 31, 0.14),
      0 0 0 5px rgba(255, 255, 255, 0.3);
  }

  .auth-panel-corners {
    inset: -6px;
  }

  .auth-brand-row {
    padding-bottom: 15px;
  }

  .auth-heading {
    margin-top: 25px;
  }

  .auth-protocol {
    gap: 6px;
  }

  .auth-security {
    margin-right: -22px;
    margin-bottom: -28px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .brand-title-line {
    gap: 6px;
  }

  .version-badge {
    min-width: 49px;
    height: 19px;
    padding: 0 6px;
    font-size: 8px;
  }
}

/* Liquid-glass login theme. Everything below is scoped to the authentication view. */
.auth-shell {
  --glass-x: 50%;
  --glass-y: 46%;
  --glass-tilt-x: 0deg;
  --glass-tilt-y: 0deg;
  --liquid-pan-x: 0px;
  --liquid-pan-y: 0px;
  padding: 36px 24px;
  background-color: #edf3f8;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(237, 245, 250, 0.32) 44%, rgba(231, 240, 247, 0.72)),
    linear-gradient(30deg, rgba(109, 209, 221, 0.13), transparent 42%, rgba(143, 151, 245, 0.11) 76%, transparent);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, cover;
}

.auth-shell::before {
  position: absolute;
  z-index: 0;
  inset: -18%;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.78) 0, rgba(255, 255, 255, 0.18) 18%, transparent 43%),
    linear-gradient(112deg, transparent 12%, rgba(255, 255, 255, 0.34) 39%, transparent 62%);
  content: "";
  opacity: 0.78;
  pointer-events: none;
  animation: liquid-ambient-breathe 9s ease-in-out infinite;
}

.auth-shell::after {
  z-index: 5;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -1px 18px rgba(96, 163, 186, 0.15);
  animation: none;
}

.auth-ambient {
  z-index: 1;
  transform: translate3d(var(--liquid-pan-x), var(--liquid-pan-y), 0) scale(1.025);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-liquid-ribbon {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 44px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -18px 34px rgba(255, 255, 255, 0.08),
    0 20px 70px rgba(75, 126, 155, 0.08);
  filter: blur(0.2px) saturate(118%);
  opacity: 0.82;
  will-change: transform;
}

.auth-liquid-ribbon::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.56) 45%, transparent 72%);
  content: "";
  transform: translateX(-70%);
  animation: liquid-ribbon-glint 7.5s ease-in-out infinite;
}

.auth-liquid-ribbon-one {
  top: 12%;
  left: -15%;
  width: 72vw;
  height: 132px;
  background: linear-gradient(90deg, rgba(82, 194, 218, 0.3), rgba(116, 148, 241, 0.18) 54%, rgba(255, 255, 255, 0.2));
  transform: rotate(-8deg) skewX(-9deg);
  animation: liquid-ribbon-one 14s ease-in-out infinite alternate;
}

.auth-liquid-ribbon-two {
  right: -17%;
  bottom: 9%;
  width: 76vw;
  height: 148px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(239, 143, 190, 0.2) 38%, rgba(118, 211, 188, 0.24));
  transform: rotate(-7deg) skewX(8deg);
  animation: liquid-ribbon-two 17s ease-in-out infinite alternate;
}

.auth-liquid-ribbon-three {
  top: 55%;
  left: 24%;
  width: 54vw;
  height: 92px;
  background: linear-gradient(90deg, rgba(122, 218, 206, 0.13), rgba(255, 255, 255, 0.36) 48%, rgba(134, 158, 244, 0.18));
  transform: rotate(8deg);
  opacity: 0.62;
  animation: liquid-ribbon-three 12s ease-in-out infinite alternate;
}

.auth-liquid-pane {
  position: absolute;
  width: clamp(210px, 24vw, 360px);
  height: min(52vh, 470px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 18px 0 44px rgba(255, 255, 255, 0.1),
    0 32px 80px rgba(71, 116, 146, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.auth-liquid-pane::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.21), transparent 36%, rgba(92, 181, 213, 0.06));
  content: "";
}

.auth-liquid-pane-left {
  top: 25%;
  left: -7%;
  transform: rotate(-10deg);
  animation: liquid-pane-left 13s ease-in-out infinite alternate;
}

.auth-liquid-pane-right {
  right: -6%;
  bottom: 22%;
  transform: rotate(9deg);
  animation: liquid-pane-right 15s ease-in-out infinite alternate;
}

.auth-liquid-caustic {
  position: absolute;
  top: 42%;
  left: -30%;
  width: 160%;
  height: 110px;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.46) 36%, rgba(130, 207, 221, 0.14) 52%, transparent 78%);
  filter: blur(18px);
  opacity: 0.64;
  animation: liquid-caustic-flow 11s ease-in-out infinite;
}

.auth-panel {
  z-index: 2;
  width: min(520px, 100%);
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.48);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04) 52%, rgba(188, 224, 234, 0.11));
  background-size: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32),
    inset 18px 0 42px rgba(255, 255, 255, 0.08),
    0 32px 90px rgba(68, 108, 138, 0.18),
    0 4px 14px rgba(81, 126, 151, 0.08);
  transform: perspective(1200px) rotateX(var(--glass-tilt-x)) rotateY(var(--glass-tilt-y));
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  animation: liquid-panel-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
}

.auth-panel:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.38),
    inset 18px 0 42px rgba(255, 255, 255, 0.1),
    0 38px 104px rgba(68, 108, 138, 0.21),
    0 5px 16px rgba(81, 126, 151, 0.09);
}

.auth-panel > * {
  position: relative;
  z-index: 2;
}

.auth-panel::before {
  position: absolute;
  z-index: 1;
  top: -34%;
  right: auto;
  bottom: auto;
  left: -62%;
  width: 38%;
  height: 168%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  content: "";
  pointer-events: none;
  animation: liquid-panel-glint 7.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.auth-panel::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(108, 213, 221, 0.08), transparent 36%, rgba(145, 142, 241, 0.06) 74%, transparent);
  content: "";
  opacity: 0.86;
  pointer-events: none;
  animation: none;
}

.auth-panel-corners {
  display: none;
}

.auth-brand-row {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.auth-brand-row::after {
  right: 0;
  bottom: -1px;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(75, 160, 188, 0.6), transparent);
  animation: liquid-brand-line 4.6s ease-in-out infinite;
}

.auth-brand-row .brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 20, 24, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(30, 44, 58, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.auth-signal {
  height: 26px;
  margin: 27px 0 -10px;
  gap: 4px;
}

.auth-signal::before {
  left: 58px;
  background: rgba(255, 255, 255, 0.48);
}

.auth-signal::after {
  left: 58px;
  width: 64px;
  background: linear-gradient(90deg, transparent, rgba(74, 159, 187, 0.72), transparent);
  animation: liquid-signal-line 4.8s ease-in-out infinite;
}

.auth-signal span {
  width: 7px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  animation: liquid-signal-bars 3.6s ease-in-out infinite;
}

.auth-signal span:nth-child(1) { background: #4aa9ad; }
.auth-signal span:nth-child(2) { background: #538dbf; }
.auth-signal span:nth-child(3) { background: #5e6074; }
.auth-signal span:nth-child(4) { background: #d0a45c; }
.auth-signal span:nth-child(5) { background: #ce7f8e; }

.auth-heading {
  margin: 28px 0 22px;
}

.auth-heading-icon {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(224, 243, 249, 0.46);
  color: #257da5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 20px rgba(73, 135, 160, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.auth-heading-icon::after {
  border-color: rgba(76, 161, 188, 0.14);
  animation: liquid-icon-breathe 3.6s ease-in-out infinite;
}

.auth-protocol {
  margin-bottom: 22px;
}

.auth-protocol-node {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.38);
  color: #50626f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 7px 18px rgba(75, 125, 151, 0.08);
  -webkit-backdrop-filter: blur(13px) saturate(150%);
  backdrop-filter: blur(13px) saturate(150%);
  animation: liquid-protocol-node 5.2s ease-in-out infinite;
}

.auth-protocol-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(76, 128, 153, 0.05);
}

.auth-protocol-track i {
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(54, 151, 180, 0.78), transparent);
  box-shadow: none;
  animation: liquid-protocol-flow 2.8s linear infinite;
}

.feishu-login-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(20, 21, 25, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(30, 40, 53, 0.19);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.feishu-login-button:hover {
  background: rgba(32, 34, 40, 0.93);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 34px rgba(30, 40, 53, 0.23);
}

.feishu-login-button::before {
  z-index: -1;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: liquid-button-glint 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.feishu-login-button::after {
  height: 1px;
  background: linear-gradient(90deg, #d8b75b, rgba(109, 210, 215, 0.82), rgba(154, 143, 238, 0.7));
  opacity: 0.84;
}

.auth-security {
  margin-right: -42px;
  margin-bottom: -42px;
  margin-left: -42px;
  padding-right: 42px;
  padding-left: 42px;
  border-top-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.26);
  color: rgba(60, 69, 78, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

@keyframes liquid-ambient-breathe {
  0%, 100% { opacity: 0.58; transform: scale(0.98); }
  50% { opacity: 0.86; transform: scale(1.025); }
}

@keyframes liquid-ribbon-glint {
  0%, 20% { opacity: 0; transform: translateX(-70%); }
  36% { opacity: 0.72; }
  68% { opacity: 0.72; }
  82%, 100% { opacity: 0; transform: translateX(180%); }
}

@keyframes liquid-ribbon-one {
  from { transform: rotate(-8deg) skewX(-9deg) translate3d(-2%, -7px, 0); }
  to { transform: rotate(-5deg) skewX(-5deg) translate3d(4%, 9px, 0); }
}

@keyframes liquid-ribbon-two {
  from { transform: rotate(-7deg) skewX(8deg) translate3d(3%, 8px, 0); }
  to { transform: rotate(-10deg) skewX(4deg) translate3d(-4%, -9px, 0); }
}

@keyframes liquid-ribbon-three {
  from { transform: rotate(8deg) translate3d(-2%, -4px, 0); }
  to { transform: rotate(5deg) translate3d(4%, 8px, 0); }
}

@keyframes liquid-pane-left {
  from { transform: rotate(-10deg) translate3d(-6px, -8px, 0); }
  to { transform: rotate(-7deg) translate3d(12px, 14px, 0); }
}

@keyframes liquid-pane-right {
  from { transform: rotate(9deg) translate3d(7px, 10px, 0); }
  to { transform: rotate(6deg) translate3d(-10px, -12px, 0); }
}

@keyframes liquid-caustic-flow {
  0%, 100% { opacity: 0.36; transform: rotate(-4deg) translateX(-9%); }
  50% { opacity: 0.72; transform: rotate(-2deg) translateX(9%); }
}

@keyframes liquid-panel-arrive {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes liquid-panel-glint {
  0%, 18% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  32% { opacity: 0.76; }
  66% { opacity: 0.76; }
  82%, 100% { opacity: 0; transform: translateX(440%) skewX(-18deg); }
}

@keyframes liquid-brand-line {
  0%, 100% { opacity: 0.28; transform: scaleX(0.4); transform-origin: right; }
  50% { opacity: 0.92; transform: scaleX(1); transform-origin: right; }
}

@keyframes liquid-signal-line {
  0%, 100% { opacity: 0.18; transform: translateX(0); }
  50% { opacity: 0.82; transform: translateX(250px); }
}

@keyframes liquid-signal-bars {
  0%, 100% { opacity: 0.52; transform: scaleY(0.55); }
  50% { opacity: 0.94; transform: scaleY(1); }
}

@keyframes liquid-icon-breathe {
  0%, 100% { opacity: 0.24; transform: scale(0.88); }
  50% { opacity: 0.68; transform: scale(1); }
}

@keyframes liquid-protocol-node {
  0%, 20%, 100% { border-color: rgba(255, 255, 255, 0.7); color: #50626f; background: rgba(255, 255, 255, 0.36); }
  42%, 58% { border-color: rgba(121, 209, 221, 0.72); color: #267f9d; background: rgba(229, 249, 250, 0.54); }
}

@keyframes liquid-protocol-flow {
  from { transform: translateX(0); }
  to { transform: translateX(118px); }
}

@keyframes liquid-button-glint {
  0%, 22% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  36% { opacity: 1; }
  66% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateX(520px) skewX(-18deg); }
}

@media (max-width: 900px) {
  .auth-liquid-pane {
    opacity: 0.42;
  }

  .auth-liquid-pane-left {
    left: -18%;
  }

  .auth-liquid-pane-right {
    right: -17%;
  }
}

@media (max-width: 700px) {
  .auth-liquid-pane {
    display: none;
  }

  .auth-liquid-ribbon-one,
  .auth-liquid-ribbon-two {
    width: 120vw;
  }

  .auth-liquid-ribbon-three {
    left: 5%;
    width: 92vw;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 22px 16px;
  }

  .auth-liquid-ribbon {
    border-radius: 32px;
  }

  .auth-liquid-ribbon-one {
    top: 11%;
    left: -34%;
    height: 104px;
  }

  .auth-liquid-ribbon-two {
    right: -38%;
    bottom: 12%;
    height: 118px;
  }

  .auth-liquid-ribbon-three {
    top: 58%;
    height: 72px;
  }

  .auth-panel {
    padding: 28px 22px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.3),
      0 24px 62px rgba(68, 108, 138, 0.2);
  }

  .auth-brand-row {
    padding-bottom: 15px;
  }

  .auth-heading {
    margin-top: 24px;
  }

  .auth-protocol {
    gap: 6px;
  }

  .auth-security {
    margin-right: -22px;
    margin-bottom: -28px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }
}

/* Animated brand intro: one playback per page refresh, then the final frame remains. */
.brand-video-mark,
.auth-brand-row .brand-video-mark {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #07080b;
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(24, 31, 42, 0.2);
}

.brand-video-mark::after {
  display: none;
}

.brand-logo-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #07080b;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.015);
}

.brand-row.compact .brand-video-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 5px 14px rgba(24, 31, 42, 0.17);
}

/* Aurora application theme: a calm operational layer over a living color field. */
.app-shell {
  --ink: #f5f7fb;
  --muted: #aab4c3;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --surface: rgba(14, 17, 27, 0.72);
  --canvas: #07080d;
  --soft: rgba(255, 255, 255, 0.065);
  --green: #61ddb0;
  --green-soft: rgba(65, 211, 157, 0.14);
  --blue: #79baff;
  --blue-soft: rgba(80, 156, 255, 0.14);
  --amber: #efc365;
  --amber-soft: rgba(239, 195, 101, 0.14);
  --coral: #ff879b;
  --coral-soft: rgba(255, 105, 134, 0.14);
  --panel-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  --aurora-x: 52%;
  --aurora-y: 34%;
  --aurora-shift-x: 0px;
  --aurora-shift-y: 0px;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: clip;
  color: var(--ink);
  background: #07080d;
  color-scheme: dark;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.app-shell::before {
  inset: -22vh -18vw;
  opacity: 0.92;
  background:
    radial-gradient(ellipse 48% 38% at 10% 16%, rgba(255, 78, 137, 0.50), rgba(255, 78, 137, 0.12) 42%, transparent 68%),
    radial-gradient(ellipse 44% 40% at 86% 12%, rgba(85, 118, 255, 0.50), rgba(85, 118, 255, 0.12) 42%, transparent 70%),
    radial-gradient(ellipse 48% 38% at 83% 83%, rgba(36, 219, 179, 0.43), rgba(36, 219, 179, 0.10) 45%, transparent 70%),
    radial-gradient(ellipse 38% 42% at 24% 82%, rgba(255, 189, 78, 0.30), rgba(255, 189, 78, 0.07) 44%, transparent 68%),
    radial-gradient(ellipse 35% 32% at 53% 47%, rgba(154, 91, 255, 0.30), rgba(154, 91, 255, 0.06) 48%, transparent 72%);
  background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
  background-size: 165% 165%, 180% 170%, 175% 185%, 170% 180%, 150% 150%;
  filter: blur(34px) saturate(130%);
  transform: translate3d(var(--aurora-shift-x), var(--aurora-shift-y), 0) scale(1.02);
  will-change: background-position, transform;
  animation: app-aurora-flow 22s ease-in-out infinite alternate;
}

.app-shell::after {
  inset: 0;
  background:
    radial-gradient(circle at var(--aurora-x) var(--aurora-y), rgba(255, 255, 255, 0.095), transparent 27%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 5, 9, 0.16), rgba(4, 5, 9, 0.56));
  background-size: auto, 44px 44px, 44px 44px, auto;
  opacity: 0.88;
  transition: background-position 180ms ease-out;
}

.app-shell .workspace {
  position: relative;
}

.app-shell .workspace {
  z-index: 1;
}

.app-shell .topbar {
  z-index: 20;
  border-bottom-color: rgba(255, 255, 255, 0.105);
  background: rgba(7, 9, 15, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  backdrop-filter: blur(26px) saturate(155%);
}

.app-shell .brand-row strong {
  color: #ffffff;
}

.app-shell .brand-row.compact span:not(.brand-mark) {
  color: var(--muted);
}

.app-shell .brand-row.compact span:not(.brand-mark)::before {
  background: #5ce1b0;
  box-shadow: 0 0 0 3px rgba(92, 225, 176, 0.12), 0 0 12px rgba(92, 225, 176, 0.5);
}

.app-shell .brand-video-mark {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(89, 218, 215, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-shell .tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.app-shell .tab-button {
  color: #9fa9b8;
}

.app-shell .tab-button:hover {
  color: #f7f9fc;
  background: rgba(255, 255, 255, 0.075);
}

.app-shell .tab-button.is-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(83, 153, 255, 0.2), rgba(74, 218, 168, 0.10)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

.app-shell .tab-button.is-active::before {
  position: absolute;
  right: 16px;
  bottom: 1px;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6b9e, #65a8ff, #54e0b0, #f4c76c);
  box-shadow: 0 0 12px rgba(101, 168, 255, 0.42);
  content: "";
}

.app-shell .refresh-time {
  color: #8995a5;
}

.app-shell .user-chip {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.app-shell .user-chip-avatar {
  background: rgba(99, 177, 255, 0.15);
  color: #9bcbff;
}

.app-shell .user-chip > svg {
  color: #64ddb1;
}

.app-shell :is(
  .filter-band,
  .kpi-card,
  .overall-progress,
  .table-wrap,
  .activity-list,
  .gallery-card,
  .empty-state,
  .boss-summary-band,
  .boss-owner-list,
  .issue-list,
  .exception-section,
  .submission-source-section,
  .submission-selected-section,
  .submission-footer
) {
  border-color: var(--line);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 52px rgba(0, 0, 0, 0.21);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.app-shell .filter-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    rgba(13, 16, 26, 0.72);
}

.app-shell :is(input, select, textarea) {
  color-scheme: dark;
}

.app-shell :is(
  .search-field input,
  .select-field select,
  .date-preset-control select,
  .custom-date-range input,
  .submit-site-field select,
  .development-owner-field select,
  .development-source-field select,
  .bulk-sku-field textarea,
  .revision-field input,
  .revision-field textarea
) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 15, 0.58);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.app-shell :is(input, textarea)::placeholder {
  color: #778293;
}

.app-shell select option {
  background: #111521;
  color: #f3f6fa;
}

.app-shell :is(
  .search-field input,
  .select-field select,
  .date-preset-control select,
  .custom-date-range input,
  .submit-site-field select,
  .development-owner-field select,
  .development-source-field select,
  .bulk-sku-field textarea
):hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.app-shell :is(
  .search-field input,
  .select-field select,
  .date-preset-control select,
  .custom-date-range input,
  .submit-site-field select,
  .development-owner-field select,
  .development-source-field select,
  .bulk-sku-field textarea
):focus {
  border-color: rgba(103, 181, 255, 0.78);
  background: rgba(7, 10, 18, 0.82);
  box-shadow: 0 0 0 3px rgba(93, 165, 255, 0.13), 0 0 24px rgba(85, 149, 255, 0.08);
}

.app-shell .custom-date-range {
  border-color: rgba(105, 180, 255, 0.2);
  background: rgba(69, 135, 230, 0.075);
}

.app-shell .custom-date-title {
  color: #ced6e1;
}

.app-shell .custom-date-title svg {
  color: #79baff;
}

.app-shell .segment-control {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 14, 0.46);
}

.app-shell .segment-control button {
  color: #99a4b4;
}

.app-shell .segment-control button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.app-shell .segment-control button.is-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(93, 164, 255, 0.24), rgba(79, 219, 172, 0.10)),
    rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 6px 18px rgba(0, 0, 0, 0.18);
}

.app-shell .primary-button {
  border-color: rgba(143, 207, 255, 0.28);
  background:
    linear-gradient(115deg, rgba(73, 133, 255, 0.92), rgba(42, 190, 155, 0.9));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 26px rgba(33, 137, 191, 0.22);
}

.app-shell .primary-button:hover {
  border-color: rgba(174, 222, 255, 0.45);
  background:
    linear-gradient(115deg, rgba(83, 150, 255, 0.98), rgba(49, 205, 165, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 32px rgba(36, 152, 196, 0.28);
}

.app-shell :is(.secondary-button, .icon-text-button, .icon-button) {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  color: #e8edf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.app-shell :is(.secondary-button, .icon-text-button, .icon-button):hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.105);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.app-shell .status-banner {
  border-color: rgba(239, 195, 101, 0.32);
  background: rgba(151, 103, 26, 0.2);
  color: #f4d28b;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.app-shell .kpi-card {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent, #79baff) 10%, transparent), transparent 42%),
    rgba(14, 17, 27, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.app-shell .kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent, #79baff) 14%, transparent), transparent 48%),
    rgba(18, 21, 32, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 58px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.app-shell .kpi-card:first-child {
  --accent: #b8c3d1 !important;
}

.app-shell .kpi-icon {
  border-color: color-mix(in srgb, var(--accent, #79baff) 34%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--accent, #79baff) 15%, rgba(255, 255, 255, 0.045));
  color: color-mix(in srgb, var(--accent, #79baff) 66%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.app-shell .kpi-label,
.app-shell .kpi-caption,
.app-shell .quiet-label {
  color: var(--muted);
}

.app-shell .section-kicker {
  color: #6fe0b7;
  text-shadow: 0 0 18px rgba(80, 224, 177, 0.22);
}

.app-shell .progress-track {
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.app-shell .progress-track span {
  background: linear-gradient(90deg, #4e9dff, #56dfb0);
  box-shadow: 0 0 18px rgba(77, 208, 178, 0.26);
}

.app-shell .owner-table th {
  background: rgba(255, 255, 255, 0.035);
  color: #9ba7b6;
}

.app-shell .owner-table :is(th, td) {
  border-bottom-color: rgba(255, 255, 255, 0.075);
}

.app-shell .owner-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.app-shell .owner-avatar {
  background: rgba(104, 181, 255, 0.15);
  color: #9acbff;
}

.app-shell .activity-list,
.app-shell .exception-list,
.app-shell .submission-selected-list {
  background: rgba(255, 255, 255, 0.09);
}

.app-shell :is(.activity-item, .exception-item, .boss-owner-row, .issue-row, .submission-item) {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(9, 12, 20, 0.66);
}

.app-shell :is(.activity-item, .exception-item, .boss-owner-row, .issue-row, .submission-item):hover {
  background: rgba(255, 255, 255, 0.045);
}

.app-shell .exception-section {
  background:
    linear-gradient(135deg, rgba(255, 105, 137, 0.055), transparent 38%),
    rgba(14, 17, 27, 0.72);
}

.app-shell .exception-icon {
  background: rgba(255, 105, 134, 0.14);
  color: #ff91a4;
}

.app-shell .issue-chip {
  border-color: rgba(255, 132, 151, 0.26);
  background: rgba(255, 105, 134, 0.13);
  color: #ffadba;
}

.app-shell .gallery-card {
  background: rgba(13, 16, 25, 0.78);
}

.app-shell .gallery-card:hover {
  border-color: rgba(127, 198, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 54px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(72, 150, 220, 0.08);
}

.app-shell .gallery-set-media {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.10);
}

.app-shell .gallery-set-tile {
  background: #f7f8fa;
}

.app-shell .gallery-set-tile.is-empty {
  color: #7d8999;
  background: rgba(255, 255, 255, 0.055);
}

.app-shell .gallery-note,
.app-shell .development-product-copy span,
.app-shell .submission-product-name {
  color: #b1bbc8;
}

.app-shell .image-count-badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 12, 0.82);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.app-shell .status-badge.success { color: #86ecc4; }
.app-shell .status-badge.processing { color: #9bcbff; }
.app-shell .status-badge.failed { color: #ff9bab; }
.app-shell .status-badge.pending { color: #f3ce83; }

.app-shell .empty-state {
  background: rgba(9, 12, 19, 0.38);
}

.app-shell .boss-summary-band {
  position: relative;
  overflow: hidden;
  border-left-color: #58d9ad;
  background:
    radial-gradient(circle at 86% 14%, rgba(92, 165, 255, 0.19), transparent 36%),
    radial-gradient(circle at 18% 100%, rgba(82, 219, 171, 0.12), transparent 40%),
    rgba(13, 16, 26, 0.76);
}

.app-shell .boss-cost-total {
  border-left-color: rgba(255, 255, 255, 0.11);
}

.app-shell .boss-cost-total strong {
  color: #ffffff;
  text-shadow: 0 0 28px rgba(97, 221, 176, 0.2);
}

.app-shell .report-text {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(4, 7, 12, 0.84);
  color: #dce5ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-shell .submission-notice {
  border-left-color: #79baff;
  background: rgba(80, 156, 255, 0.11);
  color: #b9d9ff;
}

.app-shell .development-products {
  border-color: rgba(255, 255, 255, 0.09);
}

.app-shell .development-product {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(8, 11, 18, 0.62);
}

.app-shell .development-product:hover {
  background: rgba(255, 255, 255, 0.04);
}

.app-shell .development-product.is-selected {
  background: rgba(76, 159, 255, 0.11);
  box-shadow: inset 3px 0 0 #79baff;
}

.app-shell .development-product-owner {
  color: #8f9baa !important;
}

.app-shell .development-check {
  border-color: rgba(255, 255, 255, 0.21);
  background: rgba(255, 255, 255, 0.035);
}

.app-shell .submission-paste-zone {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.035);
}

.app-shell .submission-paste-zone:hover,
.app-shell .submission-paste-zone.is-active {
  border-color: rgba(119, 190, 255, 0.55);
  background: rgba(73, 151, 239, 0.11);
  color: #b7d9ff;
}

.app-shell .submission-item.is-unresolved {
  background: rgba(153, 99, 23, 0.13);
}

.app-shell .submission-item-copy input {
  background: rgba(255, 255, 255, 0.065);
  color: #dce3eb;
}

.app-shell .submission-item-copy input:focus {
  border-color: rgba(121, 186, 255, 0.52);
  background: rgba(5, 8, 14, 0.7);
}

.app-shell .submission-reference-thumb,
.app-shell .retry-reference-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.app-shell .submission-footer {
  background: rgba(10, 13, 21, 0.82);
}

body:has(.app-shell:not([hidden])) {
  background: #07080d;
}

body:has(.app-shell:not([hidden])) :is(.product-dialog, .revision-dialog) {
  --ink: #f5f7fb;
  --muted: #aab4c3;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --surface: rgba(12, 15, 24, 0.94);
  --soft: rgba(255, 255, 255, 0.065);
  --green: #61ddb0;
  --green-soft: rgba(65, 211, 157, 0.14);
  --blue: #79baff;
  --blue-soft: rgba(80, 156, 255, 0.14);
  --amber: #efc365;
  --amber-soft: rgba(239, 195, 101, 0.14);
  --coral: #ff879b;
  --coral-soft: rgba(255, 105, 134, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(11, 14, 23, 0.95);
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

body:has(.app-shell:not([hidden])) :is(.product-dialog, .revision-dialog)::backdrop,
body:has(.app-shell:not([hidden])) .retry-dialog::backdrop {
  background: rgba(3, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

body:has(.app-shell:not([hidden])) :is(.dialog-topbar, .revision-topbar, .revision-footer) {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(12, 15, 24, 0.88);
}

body:has(.app-shell:not([hidden])) .dialog-revision-action {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}

body:has(.app-shell:not([hidden])) .dialog-revision-icon {
  background: linear-gradient(135deg, rgba(76, 146, 255, 0.9), rgba(46, 194, 159, 0.9));
}

body:has(.app-shell:not([hidden])) :is(.product-dialog, .revision-dialog, .retry-dialog) .primary-button {
  border-color: rgba(143, 207, 255, 0.28);
  background: linear-gradient(115deg, rgba(73, 133, 255, 0.92), rgba(42, 190, 155, 0.9));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 26px rgba(33, 137, 191, 0.22);
}

body:has(.app-shell:not([hidden])) :is(.product-dialog, .revision-dialog, .retry-dialog) :is(.secondary-button, .icon-button) {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: #edf2f8;
}

body:has(.app-shell:not([hidden])) :is(.product-dialog, .revision-dialog, .retry-dialog) :is(.secondary-button, .icon-button):hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
}

body:has(.app-shell:not([hidden])) .dialog-facts {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
}

body:has(.app-shell:not([hidden])) .dialog-fact {
  background: rgba(255, 255, 255, 0.035);
}

body:has(.app-shell:not([hidden])) .revision-context {
  background:
    linear-gradient(125deg, rgba(76, 146, 255, 0.22), rgba(48, 196, 159, 0.10)),
    #0d111c;
}

body:has(.app-shell:not([hidden])) .revision-section {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

body:has(.app-shell:not([hidden])) .revision-section-heading > div > span {
  background: rgba(111, 182, 255, 0.12);
  color: #a8d1ff;
}

body:has(.app-shell:not([hidden])) .revision-slot {
  background: rgba(255, 255, 255, 0.055);
}

body:has(.app-shell:not([hidden])) .revision-slot.is-selected {
  border-color: #79baff;
  background: rgba(80, 156, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(80, 156, 255, 0.10);
}

body:has(.app-shell:not([hidden])) .revision-field > span {
  color: #c0c9d5;
}

body:has(.app-shell:not([hidden])) :is(.revision-field input, .revision-field textarea) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 14, 0.64);
  color: #f5f7fb;
}

body:has(.app-shell:not([hidden])) .revision-dropzone {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.04);
}

body:has(.app-shell:not([hidden])) .revision-dropzone:hover,
body:has(.app-shell:not([hidden])) .revision-dropzone.is-dragging {
  border-color: rgba(121, 186, 255, 0.65);
  background: rgba(80, 156, 255, 0.10);
}

body:has(.app-shell:not([hidden])) .revision-drop-icon,
body:has(.app-shell:not([hidden])) .revision-reference-item {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

body:has(.app-shell:not([hidden])) .revision-reference-item button {
  background: rgba(255, 255, 255, 0.075);
  color: #b7c2cf;
}

body:has(.app-shell:not([hidden])) .retry-dialog-shell {
  --ink: #f5f7fb;
  --muted: #aab4c3;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --surface: rgba(12, 15, 24, 0.95);
  --soft: rgba(255, 255, 255, 0.065);
  --coral: #ff879b;
  --coral-soft: rgba(255, 105, 134, 0.14);
  background: rgba(11, 14, 23, 0.96);
  color: var(--ink);
  color-scheme: dark;
}

body:has(.app-shell:not([hidden])) .retry-reason {
  background: rgba(255, 105, 134, 0.10);
}

body:has(.app-shell:not([hidden])) .retry-reason p {
  color: #d4b8bd;
}

body:has(.app-shell:not([hidden])) .revision-success-meta {
  background: rgba(255, 255, 255, 0.055);
}

body:has(.app-shell:not([hidden])) .toast {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 13, 21, 0.88);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

@keyframes app-aurora-flow {
  0% {
    background-position: 2% 8%, 96% 4%, 92% 94%, 7% 96%, 45% 52%;
  }
  45% {
    background-position: 12% 22%, 83% 12%, 98% 79%, 18% 85%, 58% 42%;
  }
  100% {
    background-position: 24% 10%, 72% 23%, 82% 91%, 4% 73%, 49% 64%;
  }
}

@media (max-width: 980px) {
  .app-shell::before {
    inset: -18vh -35vw;
    opacity: 0.86;
  }

  .app-shell .topbar {
    background: rgba(7, 9, 15, 0.82);
  }
}

@media (max-width: 700px) {
  .app-shell::after {
    background-size: auto, 36px 36px, 36px 36px, auto;
  }

  .app-shell .filter-band,
  .app-shell .submission-source-section,
  .app-shell .submission-selected-section,
  .app-shell .exception-section {
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before {
    animation: none;
  }

  .app-shell::after {
    transition: none;
  }
}

/* Match the secure login stage to the same aurora product language. */
.auth-shell {
  --ink: #f5f7fb;
  --muted: #aab4c3;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --surface: rgba(14, 17, 27, 0.72);
  --soft: rgba(255, 255, 255, 0.065);
  --green: #61ddb0;
  --blue: #79baff;
  --amber: #efc365;
  --coral: #ff879b;
  color: var(--ink);
  background-color: #07080d;
  background-image: none;
  color-scheme: dark;
}

.auth-shell::before {
  z-index: 0;
  inset: -20vh -16vw;
  opacity: 0.92;
  background:
    radial-gradient(ellipse 50% 40% at 12% 14%, rgba(255, 78, 137, 0.52), rgba(255, 78, 137, 0.10) 43%, transparent 69%),
    radial-gradient(ellipse 46% 40% at 88% 12%, rgba(83, 120, 255, 0.52), rgba(83, 120, 255, 0.10) 44%, transparent 70%),
    radial-gradient(ellipse 46% 40% at 83% 86%, rgba(37, 219, 179, 0.43), rgba(37, 219, 179, 0.09) 44%, transparent 70%),
    radial-gradient(ellipse 42% 36% at 18% 84%, rgba(255, 188, 76, 0.32), rgba(255, 188, 76, 0.06) 44%, transparent 69%),
    radial-gradient(ellipse 35% 32% at var(--glass-x) var(--glass-y), rgba(153, 91, 255, 0.31), rgba(153, 91, 255, 0.05) 48%, transparent 72%);
  background-position: 2% 8%, 96% 4%, 92% 94%, 7% 96%, 50% 50%;
  background-size: 165% 165%, 180% 170%, 175% 185%, 170% 180%, 150% 150%;
  transform: translate3d(var(--liquid-pan-x), var(--liquid-pan-y), 0) scale(1.02);
  filter: saturate(128%);
  will-change: background-position, transform;
  animation: auth-aurora-flow 24s ease-in-out infinite alternate;
}

.auth-shell::after {
  z-index: 1;
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.075), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3, 5, 9, 0.08), rgba(3, 5, 9, 0.42));
  background-size: auto, 44px 44px, 44px 44px, auto;
  box-shadow: none;
}

.auth-ambient {
  z-index: 1;
  opacity: 0.74;
}

.auth-liquid-ribbon {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -20px 42px rgba(0, 0, 0, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.12);
  filter: saturate(130%);
  opacity: 0.58;
}

.auth-liquid-ribbon::before {
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.16) 45%, transparent 72%);
}

.auth-liquid-ribbon-one {
  background: linear-gradient(90deg, rgba(35, 215, 197, 0.26), rgba(91, 118, 255, 0.27) 54%, rgba(255, 87, 147, 0.16));
}

.auth-liquid-ribbon-two {
  background: linear-gradient(90deg, rgba(255, 184, 72, 0.14), rgba(238, 74, 142, 0.25) 42%, rgba(47, 214, 172, 0.24));
}

.auth-liquid-ribbon-three {
  background: linear-gradient(90deg, rgba(68, 222, 180, 0.12), rgba(104, 128, 255, 0.22) 48%, rgba(246, 89, 151, 0.16));
  opacity: 0.48;
}

.auth-liquid-pane {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    rgba(8, 11, 18, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 90px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  opacity: 0.56;
}

.auth-liquid-pane::after {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(100, 190, 255, 0.07), transparent 36%, rgba(70, 220, 174, 0.045));
}

.auth-liquid-caustic {
  background: linear-gradient(90deg, transparent 12%, rgba(91, 157, 255, 0.18) 36%, rgba(79, 222, 177, 0.12) 52%, transparent 78%);
  filter: blur(22px);
  opacity: 0.46;
}

.auth-panel {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(10, 13, 22, 0.68);
  background-image:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.075), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 44%, rgba(77, 156, 255, 0.035));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 36px 100px rgba(0, 0, 0, 0.48),
    0 0 70px rgba(73, 138, 217, 0.08);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.auth-panel:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 42px 112px rgba(0, 0, 0, 0.52),
    0 0 82px rgba(75, 153, 222, 0.10);
}

.auth-panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

.auth-panel::after {
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.075), transparent 34%),
    linear-gradient(135deg, rgba(78, 162, 255, 0.055), transparent 36%, rgba(66, 218, 174, 0.04) 74%, transparent);
  opacity: 1;
}

.auth-brand-row {
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.auth-brand-row::after {
  background: linear-gradient(90deg, transparent, rgba(104, 187, 255, 0.78), rgba(79, 223, 177, 0.56), transparent);
}

.auth-brand-row strong,
.auth-heading h1 {
  color: #ffffff;
}

.auth-brand-row span:not(.brand-mark) {
  color: #9ca8b7;
}

.auth-signal::before {
  background: rgba(255, 255, 255, 0.10);
}

.auth-signal::after {
  background: linear-gradient(90deg, transparent, rgba(103, 179, 255, 0.82), rgba(78, 220, 176, 0.64), transparent);
}

.auth-heading-icon {
  border-color: rgba(126, 200, 255, 0.26);
  background: rgba(78, 160, 255, 0.12);
  color: #9ed2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(76, 160, 255, 0.10);
}

.auth-heading-icon::after {
  border-color: rgba(104, 186, 255, 0.20);
}

.auth-protocol-node {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: #a9c9e5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.17);
}

.auth-protocol-track {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.auth-protocol-track i {
  background: linear-gradient(90deg, transparent, rgba(111, 187, 255, 0.9), rgba(77, 222, 176, 0.75), transparent);
}

.feishu-login-button {
  border-color: rgba(139, 207, 255, 0.26);
  background:
    linear-gradient(115deg, rgba(73, 133, 255, 0.88), rgba(42, 190, 155, 0.84)),
    rgba(13, 17, 26, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(20, 105, 150, 0.26);
}

.feishu-login-button:hover {
  border-color: rgba(168, 220, 255, 0.42);
  background:
    linear-gradient(115deg, rgba(83, 150, 255, 0.96), rgba(49, 205, 165, 0.92)),
    rgba(16, 20, 30, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 42px rgba(20, 121, 159, 0.30);
}

.feishu-login-button::after {
  background: linear-gradient(90deg, #f1c766, #76baff, #56dfb0, #ff82a8);
}

.auth-security {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 14, 0.28);
  color: #8995a5;
}

.auth-security svg {
  color: #9ba8b8;
}

.auth-panel .form-error {
  color: #ff9dac;
}

@keyframes auth-aurora-flow {
  0% {
    background-position: 2% 8%, 96% 4%, 92% 94%, 7% 96%, 45% 52%;
  }
  45% {
    background-position: 12% 22%, 83% 12%, 98% 79%, 18% 85%, 58% 42%;
  }
  100% {
    background-position: 24% 10%, 72% 23%, 82% 91%, 4% 73%, 49% 64%;
  }
}

@media (max-width: 520px) {
  .auth-shell::before {
    inset: -12vh -52vw;
  }

  .auth-shell::after {
    background-size: auto, 36px 36px, 36px 36px, auto;
  }
}

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

/* React Bits-inspired aurora curtain, composited for a smoother dashboard. */
.app-shell::before,
.auth-shell::before {
  opacity: 0.9;
  background:
    radial-gradient(ellipse 58% 82% at 5% -4%, rgba(124, 255, 103, 0.78), rgba(124, 255, 103, 0.22) 38%, transparent 69%),
    radial-gradient(ellipse 52% 80% at 47% -10%, rgba(180, 151, 207, 0.68), rgba(180, 151, 207, 0.18) 42%, transparent 71%),
    radial-gradient(ellipse 60% 84% at 94% -5%, rgba(82, 39, 255, 0.86), rgba(82, 39, 255, 0.2) 43%, transparent 71%),
    linear-gradient(112deg, rgba(60, 232, 166, 0.24), rgba(105, 70, 255, 0.34) 58%, rgba(41, 112, 255, 0.3));
  background-position: center;
  background-size: 100% 100%;
  clip-path: none;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 29%, rgba(0, 0, 0, 0.9) 49%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 29%, rgba(0, 0, 0, 0.9) 49%, transparent 90%);
  transform-origin: 50% 0;
  will-change: transform, opacity;
  animation: aurora-curtain-drift 18s ease-in-out infinite alternate;
}

.app-shell::before {
  inset: -16vh -12vw 16vh;
}

.auth-shell::before {
  inset: -18vh -13vw 8vh;
}

.app-shell::after,
.auth-shell::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3, 4, 8, 0.07), rgba(3, 4, 8, 0.48));
  background-size: 44px 44px, 44px 44px, auto;
  transition: none;
}

.auth-ambient {
  display: none;
}

/* The still mark is immediate; video quietly takes over after its first frame is ready. */
.brand-video-mark,
.auth-brand-row .brand-video-mark {
  position: relative;
  isolation: isolate;
  background: #07090e;
}

.brand-logo-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: #b9f7ff;
  background:
    radial-gradient(circle at 28% 22%, rgba(111, 255, 204, 0.24), transparent 42%),
    linear-gradient(145deg, #101724, #07090e 62%);
  opacity: 1;
  transition: opacity 220ms ease;
}

.brand-logo-fallback::after {
  position: absolute;
  inset: -40% -85%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
  content: "";
  transform: translate3d(-34%, 0, 0);
  animation: brand-fallback-scan 1.8s ease-in-out infinite;
}

.brand-logo-fallback svg {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 0 7px rgba(77, 220, 255, 0.42));
  stroke-width: 1.7;
}

.brand-logo-video {
  position: relative;
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease;
}

.brand-video-mark.is-video-ready .brand-logo-video {
  opacity: 1;
}

.brand-video-mark.is-video-ready .brand-logo-fallback {
  opacity: 0;
}

.brand-video-mark.has-video-error .brand-logo-video {
  opacity: 0;
}

.brand-video-mark.has-video-error .brand-logo-fallback {
  opacity: 1;
}

/* Keep only large glass surfaces blurred; repeated cards stay GPU-light. */
.app-shell :is(
  .kpi-card,
  .overall-progress,
  .table-wrap,
  .activity-list,
  .gallery-card,
  .empty-state,
  .boss-owner-list,
  .issue-list,
  .submission-footer
) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.gallery-card {
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 360px 500px;
}

.gallery-set-media {
  contain: paint;
}

.app-shell .gallery-set-media {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.gallery-load-more {
  width: fit-content;
  min-height: 42px;
  margin: 24px auto 4px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(15, 19, 29, 0.76);
  color: #dce5ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.gallery-load-more[hidden] {
  display: none;
}

.gallery-load-more:hover {
  border-color: rgba(127, 211, 255, 0.38);
  background: rgba(24, 31, 46, 0.9);
  transform: translateY(-1px);
}

.gallery-load-more svg {
  width: 16px;
  height: 16px;
  color: #75dcb8;
}

@keyframes aurora-curtain-drift {
  0% {
    opacity: 0.8;
    transform: translate3d(-3%, -2%, 0) scale(1.055) rotate(0.2deg);
  }
  50% {
    opacity: 0.96;
    transform: translate3d(2%, 1%, 0) scale(1.085) rotate(-0.2deg);
  }
  100% {
    opacity: 0.86;
    transform: translate3d(-1%, 3%, 0) scale(1.065) rotate(0.15deg);
  }
}

@keyframes brand-fallback-scan {
  0%,
  34% {
    transform: translate3d(-34%, 0, 0);
  }
  72%,
  100% {
    transform: translate3d(34%, 0, 0);
  }
}

@media (max-width: 700px) {
  .app-shell::before {
    inset: -12vh -32vw 20vh;
  }

  .auth-shell::before {
    inset: -12vh -42vw 8vh;
  }

  .app-shell::after,
  .auth-shell::after {
    background-size: 36px 36px, 36px 36px, auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before,
  .auth-shell::before,
  .brand-logo-fallback::after {
    animation: none;
  }
}

/* V 7.1 Beta: responsive preview loading and smart workspace placeholders. */
.tab-button-beta {
  gap: 6px;
}

.tab-button-beta > small {
  position: absolute;
  top: 5px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(105, 86, 170, 0.13);
  color: #6855a7;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.smart-copy-view {
  min-height: min(680px, calc(100vh - 210px));
}

.smart-copy-placeholder {
  position: relative;
  min-height: min(600px, calc(100vh - 250px));
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 24px 70px rgba(55, 62, 89, 0.12);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}

.smart-copy-intro {
  display: grid;
  place-items: center;
  gap: 12px;
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.2, 0.74, 0.24, 1),
    filter 220ms ease;
}

.smart-copy-placeholder.is-bruce-active .smart-copy-intro {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  filter: blur(8px);
  pointer-events: none;
}

.smart-copy-intro > small {
  padding: 5px 10px;
  border: 1px solid rgba(89, 95, 150, 0.16);
  border-radius: 999px;
  color: #625b91;
  background: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 800;
}

.smart-copy-intro > h2 {
  margin: 0;
  color: #1d263b;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 760;
}

.beta-feature-view .smart-copy-intro {
  pointer-events: none;
}

/* Keep all ten workspace entries stable without squeezing their labels. */
.topbar-inner {
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: 12px;
}

.tabs {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  position: relative;
  isolation: isolate;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  z-index: 2;
  min-width: 92px;
  flex: 1 0 92px;
  padding-right: 8px;
  padding-left: 8px;
  white-space: nowrap;
}

.tabs-liquid-indicator {
  position: absolute;
  z-index: 1;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--tabs-liquid-width, 92px);
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 11px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(118deg, rgba(177, 239, 233, 0.56), rgba(205, 211, 253, 0.54) 47%, rgba(249, 204, 229, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(96, 116, 170, 0.13),
    0 7px 18px rgba(75, 87, 129, 0.13);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  backdrop-filter: blur(12px) saturate(165%);
  transform: translate3d(var(--tabs-liquid-x, 3px), 0, 0);
  transform-origin: center;
  transition:
    transform 540ms cubic-bezier(0.2, 0.88, 0.24, 1),
    width 500ms cubic-bezier(0.2, 0.88, 0.24, 1),
    border-radius 300ms ease,
    box-shadow 300ms ease;
  will-change: transform, width;
}

.tabs-liquid-indicator::before {
  position: absolute;
  top: 16%;
  bottom: 16%;
  width: 58%;
  border-radius: 999px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  filter: blur(5px);
  transition: opacity 180ms ease, transform 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tabs-liquid-indicator::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(106deg, transparent 12%, rgba(255, 255, 255, 0.54) 46%, transparent 67%);
  background-size: 220% 100%;
  opacity: 0.72;
  animation: tabs-liquid-sheen 4.8s ease-in-out infinite;
}

.tabs-liquid-indicator > i {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.tabs.is-liquid-static .tabs-liquid-indicator {
  transition: none;
}

.tabs.is-liquid-moving .tabs-liquid-indicator {
  border-radius: 15px 9px 15px 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(96, 116, 170, 0.1),
    0 9px 23px rgba(75, 87, 129, 0.17);
  animation: tabs-liquid-morph 600ms cubic-bezier(0.2, 0.82, 0.24, 1);
}

.tabs.is-liquid-moving .tabs-liquid-indicator::before {
  opacity: 0.9;
}

.tabs[data-liquid-direction="right"] .tabs-liquid-indicator::before {
  right: 54%;
  transform: translateX(-18%) scaleX(1.35);
}

.tabs[data-liquid-direction="left"] .tabs-liquid-indicator::before {
  left: 54%;
  transform: translateX(18%) scaleX(-1.35);
}

@keyframes tabs-liquid-morph {
  0%, 100% { border-radius: 11px; }
  42% { border-radius: 17px 9px 16px 10px; }
  72% { border-radius: 10px 15px 9px 16px; }
}

@keyframes tabs-liquid-sheen {
  0%, 18% { background-position: 150% 0; opacity: 0.28; }
  48% { opacity: 0.78; }
  78%, 100% { background-position: -90% 0; opacity: 0.32; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs-liquid-indicator,
  .tabs-liquid-indicator::before,
  .tabs-liquid-indicator::after {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1380px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: 16px;
    padding-left: 16px;
    gap: 10px;
  }

  .tab-button {
    min-width: 86px;
    flex-basis: 86px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .tab-button {
    min-width: 82px;
    flex: 0 0 82px;
  }
}

.bruce-nudge-button {
  min-width: 124px;
  height: 44px;
  margin-top: 8px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #24314a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 244, 251, 0.56)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 28px rgba(72, 83, 125, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.bruce-nudge-button:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 158, 181, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 34px rgba(61, 97, 126, 0.18);
}

.bruce-nudge-button:active {
  transform: translateY(0) scale(0.98);
}

.bruce-nudge-button svg {
  width: 17px;
  height: 17px;
}

.bruce-companion {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.bruce-companion[hidden] {
  display: none !important;
}

.bruce-companion.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bruce-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #44516b;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(67, 75, 110, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.bruce-close-button:hover {
  transform: rotate(6deg) scale(1.04);
  background: rgba(255, 255, 255, 0.74);
}

.bruce-close-button svg {
  width: 17px;
  height: 17px;
}

.bruce-floating-copy {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 5;
  width: min(560px, calc(100% - 72px));
  display: grid;
  justify-items: center;
  gap: 13px;
  transform: translateX(-50%);
}

.bruce-floating-copy > p {
  max-width: 100%;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #202c43;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(241, 246, 255, 0.5)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(63, 76, 114, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 780;
  line-height: 1.35;
  text-align: center;
}

.bruce-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bruce-actions button {
  min-height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: #33405b;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 22px rgba(57, 70, 105, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.bruce-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 151, 177, 0.42);
  color: #1f5f76;
  background: rgba(255, 255, 255, 0.7);
}

.bruce-actions button.is-selected {
  border-color: rgba(59, 139, 158, 0.42);
  color: #0f6270;
  background: rgba(219, 247, 246, 0.72);
}

.bruce-actions button svg {
  width: 15px;
  height: 15px;
}

.bruce-pet-button {
  position: absolute;
  left: 50%;
  bottom: -2%;
  z-index: 4;
  width: min(340px, 62vw);
  height: min(390px, 61%);
  padding: 0;
  display: grid;
  place-items: end center;
  border: 0;
  outline: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bruce-pet-button::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 5%;
  height: 13%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(41, 50, 79, 0.18);
  filter: blur(17px);
  transform: scaleX(0.86);
}

.bruce-aura {
  position: absolute;
  inset: 13% 3% 5%;
  z-index: -1;
  border-radius: 48% 52% 44% 56%;
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.72), rgba(199, 241, 242, 0.2) 46%, transparent 72%);
  filter: blur(8px);
  opacity: 0.86;
  animation: bruce-aura-breathe 3.4s ease-in-out infinite;
}

.bruce-pet-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgba(39, 47, 72, 0.2));
  user-select: none;
  pointer-events: none;
  animation: bruce-float 3.2s ease-in-out infinite;
  transition: filter 180ms ease;
}

.bruce-pet-button:focus-visible {
  outline: none;
}

.bruce-pet-button:focus-visible .bruce-aura {
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(83, 153, 179, 0.24),
    0 0 42px rgba(115, 191, 204, 0.3);
}

.bruce-companion[data-mood="angry"] .bruce-pet-button img {
  filter:
    saturate(1.1)
    drop-shadow(0 18px 19px rgba(83, 51, 54, 0.24));
  animation: bruce-angry-pulse 1.7s ease-in-out infinite;
}

.bruce-companion[data-mood="happy"] .bruce-pet-button img {
  filter:
    saturate(1.06)
    brightness(1.02)
    drop-shadow(0 18px 20px rgba(57, 86, 75, 0.2));
  animation: bruce-happy-bob 2.1s ease-in-out infinite;
}

.bruce-pet-button img.is-changing {
  animation: bruce-image-swap 330ms cubic-bezier(0.18, 0.78, 0.24, 1);
}

.bruce-pet-button.is-petted {
  animation: bruce-pet-tap 360ms cubic-bezier(0.2, 0.8, 0.28, 1);
}

@keyframes bruce-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.7deg);
  }
}

@keyframes bruce-aura-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes bruce-angry-pulse {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }
  45% {
    transform: translateX(-2px) scale(1.015);
  }
  55% {
    transform: translateX(2px) scale(1.015);
  }
}

@keyframes bruce-happy-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.8deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes bruce-image-swap {
  0% {
    opacity: 0.2;
    transform: translateY(8px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bruce-pet-tap {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  48% {
    transform: translateX(-50%) scale(0.94);
  }
}

@media (max-width: 680px) {
  .smart-copy-view,
  .smart-copy-placeholder {
    min-height: calc(100dvh - 186px);
  }

  .bruce-floating-copy {
    top: 12%;
    width: calc(100% - 28px);
  }

  .bruce-floating-copy > p {
    padding: 10px 15px;
  }

  .bruce-actions {
    gap: 7px;
  }

  .bruce-actions button {
    min-height: 38px;
    padding: 0 12px;
  }

  .bruce-pet-button {
    width: min(320px, 84vw);
    height: min(370px, 58%);
  }

  .bruce-close-button {
    top: 52px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-copy-intro,
  .bruce-companion,
  .bruce-nudge-button,
  .bruce-actions button,
  .bruce-pet-button,
  .bruce-pet-button img,
  .bruce-aura {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Community plaza */
.community-view {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.community-shell {
  min-width: 0;
}

.community-header,
.community-toolbar,
.community-compose,
.community-post,
.community-side-section {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(249, 252, 255, 0.78);
  box-shadow: 0 16px 42px rgba(57, 72, 98, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 24px;
  border-radius: 14px;
}

.community-kicker {
  color: #4f8f8b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.community-header h1 {
  margin: 6px 0 4px;
  color: #1d2f3c;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.community-header p,
.community-section-heading p,
.community-side-section p {
  margin: 0;
  color: #71808d;
  font-size: 13px;
  line-height: 1.6;
}

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
}

.community-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.community-category-tabs button,
.community-hot-topics button {
  border: 0;
  background: transparent;
  color: #72808d;
  font: inherit;
  cursor: pointer;
}

.community-category-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
}

.community-category-tabs button:hover,
.community-category-tabs button.is-active {
  color: #236f6d;
  background: rgba(182, 231, 224, 0.42);
}

.community-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(88, 121, 145, 0.18);
  border-radius: 8px;
  color: #6f8a9b;
  background: rgba(255, 255, 255, 0.58);
}

.community-search svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.community-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #283a49;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.community-main,
.community-sidebar {
  min-width: 0;
}

.community-compose,
.community-post,
.community-side-section {
  border-radius: 12px;
}

.community-compose {
  padding: 22px 24px 20px;
}

.community-section-heading > div,
.community-side-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.community-section-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #2b7b79;
  background: rgba(186, 235, 226, 0.52);
}

.community-section-icon svg {
  width: 18px;
  height: 18px;
}

.community-section-heading h2,
.community-side-heading h2,
.community-feed-heading h2 {
  margin: 0;
  color: #243643;
  font-size: 16px;
  line-height: 1.3;
}

.community-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin-top: 18px;
}

.community-compose label > span,
.community-body-field > span {
  display: block;
  margin-bottom: 6px;
  color: #657581;
  font-size: 11px;
  font-weight: 700;
}

.community-compose input,
.community-compose select,
.community-compose textarea,
.community-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(81, 120, 145, 0.2);
  border-radius: 8px;
  outline: 0;
  color: #263946;
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.community-compose input,
.community-compose select {
  min-height: 38px;
  padding: 0 11px;
}

.community-compose textarea,
.community-reply-form textarea {
  display: block;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.6;
}

.community-compose input:focus,
.community-compose select:focus,
.community-compose textarea:focus,
.community-reply-form textarea:focus {
  border-color: rgba(52, 143, 137, 0.66);
  box-shadow: 0 0 0 3px rgba(90, 191, 181, 0.13);
}

.community-body-field {
  display: block;
  margin-top: 12px;
}

.community-dropzone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px dashed rgba(62, 132, 139, 0.34);
  border-radius: 8px;
  outline: 0;
  color: #3c7d7d;
  background: rgba(235, 248, 248, 0.52);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.community-dropzone span {
  font-size: 12px;
  font-weight: 700;
}

.community-dropzone small {
  margin-left: auto;
  color: #8a999f;
  font-size: 10px;
}

.community-dropzone:hover,
.community-dropzone:focus-visible,
.community-dropzone.is-dragging {
  border-color: rgba(40, 137, 133, 0.78);
  background: rgba(204, 241, 235, 0.68);
  box-shadow: 0 0 0 3px rgba(71, 174, 165, 0.12);
}

.community-compose-footer,
.community-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.community-compose-footer {
  flex-wrap: wrap;
}

.community-file-tools,
.community-reply-file-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-file-tools {
  flex-wrap: wrap;
}

.community-publish-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  max-width: 100%;
}

.community-anonymous-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #385763;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.community-anonymous-option[hidden] {
  display: none;
}

.community-compose .community-anonymous-option input {
  appearance: auto;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  margin: 0;
  padding: 0;
  accent-color: #317677;
}

.community-compose .community-anonymous-option > span {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.community-real-author {
  display: block;
  color: #6e7886;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.community-real-author {
  color: #936025;
}

.community-file-button,
.community-reply-file-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(75, 126, 147, 0.22);
  border-radius: 8px;
  color: #317677;
  background: rgba(240, 250, 250, 0.7);
  cursor: pointer;
  font-size: 12px;
}

.community-file-button input,
.community-reply-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.community-file-hint,
#communityFileHint,
.community-reply-file-button span {
  color: #87939a;
  font-size: 11px;
}

.community-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.community-upload-preview > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 7px 5px 9px;
  border-radius: 6px;
  color: #53707b;
  background: rgba(226, 242, 244, 0.8);
  font-size: 11px;
}

.community-upload-preview > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-upload-preview button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.community-form-error {
  margin: 10px 0 0;
  color: #a2444a;
  font-size: 12px;
}

.community-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 2px 10px;
}

.community-feed-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.community-feed-heading > div > span {
  color: #87939a;
  font-size: 11px;
}

.community-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d8988;
  font-size: 11px;
}

.community-loading svg,
.community-empty > svg {
  animation: community-spin 1.1s linear infinite;
}

.community-feed {
  display: grid;
  gap: 12px;
}

.community-post {
  padding: 19px 21px 17px;
}

.community-post-header,
.community-post-author,
.community-post-footer,
.community-reply-meta {
  display: flex;
  align-items: center;
}

.community-post-header {
  justify-content: space-between;
  gap: 12px;
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.community-delete-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(173, 86, 91, 0.16);
  border-radius: 7px;
  color: #a55f62;
  background: rgba(255, 245, 245, 0.7);
  cursor: pointer;
}

.community-delete-button:hover {
  border-color: rgba(173, 86, 91, 0.34);
  color: #923f45;
  background: rgba(255, 231, 232, 0.84);
}

.community-delete-button:disabled {
  opacity: 0.48;
  cursor: wait;
}

.community-post-author {
  gap: 9px;
}

.community-avatar,
.community-reply-avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #2c7774;
  background: rgba(189, 234, 228, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.community-post-author strong,
.community-reply-meta strong {
  color: #405461;
  font-size: 12px;
}

.community-post-author time,
.community-reply-meta time {
  display: block;
  margin-top: 2px;
  color: #98a2a8;
  font-size: 10px;
}

.community-category {
  padding: 5px 8px;
  border-radius: 6px;
  color: #3e7b7a;
  background: rgba(205, 239, 234, 0.74);
  font-size: 10px;
  font-weight: 750;
}

.community-category.is-help { color: #9b5a3e; background: rgba(250, 231, 211, 0.82); }
.community-category.is-guide { color: #5d6997; background: rgba(224, 228, 248, 0.8); }
.community-category.is-notice { color: #876b38; background: rgba(246, 236, 201, 0.82); }
.community-category.is-recruitment { color: #92546a; background: rgba(247, 218, 228, 0.78); }
.community-category.is-event { color: #376f91; background: rgba(211, 234, 247, 0.82); }

.community-post h3 {
  margin: 15px 0 7px;
  color: #263b49;
  font-size: 17px;
  line-height: 1.4;
}

.community-post-content,
.community-reply-body p {
  margin: 0;
  color: #667985;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.75;
}

.community-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.community-attachment {
  overflow: hidden;
  border: 1px solid rgba(82, 127, 143, 0.16);
  border-radius: 7px;
  color: #367c7d;
  background: rgba(238, 248, 248, 0.65);
  text-decoration: none;
}

.community-attachment-image {
  width: 82px;
  height: 68px;
  padding: 0;
  cursor: zoom-in;
}

.community-attachment-image:focus-visible {
  outline: 2px solid #258b85;
  outline-offset: 2px;
}

.community-attachment-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-image-dialog[open] {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #f4f8fa;
  background: rgba(13, 25, 31, 0.96);
}

html:has(.community-image-dialog[open]) {
  overflow: hidden;
}

.community-image-dialog::backdrop {
  background: rgba(13, 25, 31, 0.78);
}

.community-image-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.community-image-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(231, 247, 249, 0.14);
}

.community-image-toolbar strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.community-image-toolbar > span {
  flex: 0 0 auto;
  color: #c5d3d8;
  font-size: 12px;
}

.community-image-tool {
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(227, 245, 247, 0.2);
  border-radius: 6px;
  color: #f4f8fa;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
}

.community-image-tool:hover,
.community-image-tool:focus-visible {
  color: #ffffff;
  background: rgba(101, 177, 174, 0.32);
}

.community-image-tool svg { width: 18px; height: 18px; }

.community-image-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  justify-items: center;
  gap: 8px;
  min-height: 0;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
}

.community-image-stage img {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.community-image-stage p {
  grid-column: 2;
  grid-row: 1;
  color: #f4f8fa;
  font-size: 13px;
}

.community-image-arrow:first-child { grid-column: 1; grid-row: 1; }
.community-image-arrow:last-child { grid-column: 3; grid-row: 1; }
.community-image-tool[hidden],
.community-image-stage img[hidden],
.community-image-stage p[hidden] { display: none; }

@media (max-width: 520px) {
  .community-image-toolbar { gap: 8px; padding: 8px 12px; }
  .community-image-tool { flex-basis: 36px; width: 36px; height: 36px; }
  .community-image-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; padding: 8px; }
}

.community-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  padding: 8px 10px;
  font-size: 11px;
}

.community-attachment-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-post-footer {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(84, 118, 131, 0.12);
  color: #8b989e;
  font-size: 11px;
}

.community-post-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.community-replies {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.community-reply {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 11px;
  border-left: 2px solid rgba(111, 183, 177, 0.46);
  background: rgba(242, 248, 249, 0.62);
}

.community-reply-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.community-reply-meta {
  gap: 8px;
}

.community-reply-meta time {
  display: inline;
  margin: 0;
}

.community-reply-body p {
  margin-top: 4px;
  font-size: 12px;
}

.community-no-replies {
  margin: 0;
  color: #98a5aa;
  font-size: 11px;
}

.community-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed rgba(84, 118, 131, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.community-reply-form.is-dragging {
  margin-right: -8px;
  margin-left: -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 8px;
  background: rgba(210, 242, 237, 0.58);
  box-shadow: 0 0 0 2px rgba(67, 159, 151, 0.18);
}

.community-reply-actions {
  margin-top: 0;
}

.community-reply-actions > small {
  margin-right: auto;
  color: #9aa5a9;
  font-size: 10px;
}

.community-clear-reply-files {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #8c777b;
  background: rgba(241, 229, 231, 0.66);
  cursor: pointer;
}

.community-reply-file-button {
  border: 0;
  background: transparent;
}

.community-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 66px 20px;
  border: 1px dashed rgba(73, 124, 138, 0.24);
  border-radius: 12px;
  color: #84959e;
  background: rgba(249, 252, 255, 0.56);
  text-align: center;
}

.community-empty > svg {
  width: 28px;
  height: 28px;
  color: #61aaa7;
  animation: none;
}

.community-empty.is-loading > svg { animation: community-spin 1.1s linear infinite; }
.community-empty strong { color: #405866; font-size: 14px; }
.community-empty span { font-size: 12px; }
.community-empty.is-error strong { color: #9f5557; }

.community-sidebar {
  display: grid;
  gap: 12px;
}

.community-side-section {
  padding: 19px 18px;
}

.community-side-heading {
  margin-bottom: 11px;
  color: #3a7e7c;
}

.community-side-heading h2 {
  font-size: 14px;
}

.community-side-section p {
  font-size: 12px;
}

.community-hot-topics {
  display: grid;
  gap: 4px;
}

.community-hot-topics button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  width: 100%;
  padding: 0 4px;
  text-align: left;
  font-size: 12px;
}

.community-hot-topics button:hover { color: #246e6d; }
.community-hot-topics strong { color: #8f9ca2; font-size: 11px; font-weight: 600; }
.community-hot-dot { width: 6px; height: 6px; border-radius: 50%; background: #79b8b2; }
.community-hot-dot.is-help { background: #d99b72; }
.community-hot-dot.is-guide { background: #9ba8df; }
.community-hot-dot.is-notice { background: #d2ad55; }
.community-hot-dot.is-recruitment { background: #d98595; }
.community-hot-dot.is-event { background: #6ba9ce; }

.community-ranking-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(224, 236, 240, 0.58);
}

.community-ranking-tabs button {
  min-height: 29px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  color: #77868e;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.community-ranking-tabs button.is-active {
  color: #286f6d;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px rgba(63, 89, 101, 0.08);
}

.community-ranking-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-ranking-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-bottom: 1px dashed rgba(94, 122, 133, 0.14);
  color: #637580;
  font-size: 11px;
}

.community-ranking-list li:last-child {
  border-bottom: 0;
}

.community-rank-index {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: #819097;
  background: rgba(224, 235, 239, 0.72);
  font-size: 10px;
  font-weight: 750;
}

.community-rank-index.is-1 { color: #8f681b; background: rgba(250, 226, 151, 0.72); }
.community-rank-index.is-2 { color: #60727b; background: rgba(219, 229, 234, 0.88); }
.community-rank-index.is-3 { color: #925f3f; background: rgba(239, 207, 183, 0.78); }
.community-rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-ranking-list strong { color: #4c8280; font-size: 10px; }
.community-ranking-list .community-ranking-empty { display: block; padding: 16px 0; color: #98a4a9; text-align: center; }

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

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

@media (max-width: 640px) {
  .community-view { width: min(100% - 20px, 1380px); padding-top: 10px; }
  .community-header { padding: 22px 18px 20px; }
  .community-toolbar { align-items: stretch; flex-direction: column; padding: 10px; }
  .community-search { width: 100%; }
  .community-category-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .community-category-tabs button { flex: 0 0 auto; }
  .community-layout { margin-top: 12px; }
  .community-compose, .community-post, .community-side-section { padding: 16px; }
  .community-form-grid { grid-template-columns: 1fr; }
  .community-compose-footer, .community-reply-actions { align-items: flex-start; flex-direction: column; }
  .community-compose-footer .primary-button, .community-reply-actions .secondary-button { width: 100%; justify-content: center; }
  .community-sidebar { grid-template-columns: 1fr; }
}

.revision-history-row {
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.revision-history-row.is-selected {
  border-color: rgba(50, 111, 157, 0.52);
  box-shadow:
    inset 3px 0 0 rgba(50, 111, 157, 0.9),
    0 8px 22px rgba(50, 111, 157, 0.09);
}

.revision-history-badges {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.revision-history-badges small {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.revision-history-badges .revision-history-selected {
  color: #315f8d;
  background: rgba(80, 139, 194, 0.13);
}

.revision-history-selected[hidden] {
  display: none;
}

.dialog-body,
.revision-form {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.primary-image-stage,
.revision-section,
.revision-history-row {
  contain: layout paint style;
}

.primary-image-stage img {
  transform: translateZ(0);
}

.primary-image-stage img.is-previewing {
  opacity: 0.96;
}

.primary-image-stage img.is-upgrading {
  opacity: 0.985;
}

.confirm-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.confirm-dialog[open] {
  display: block;
  animation: dialog-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-dialog::backdrop {
  background: rgba(29, 36, 50, 0.34);
  -webkit-backdrop-filter: blur(6px) saturate(112%);
  backdrop-filter: blur(6px) saturate(112%);
}

.confirm-dialog-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.9);
  box-shadow: 0 28px 80px rgba(25, 35, 57, 0.26);
}

.confirm-dialog-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid rgba(68, 84, 112, 0.12);
}

.confirm-dialog-header > div {
  min-width: 0;
}

.confirm-dialog-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.confirm-dialog-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68, 118, 153, 0.18);
  border-radius: 14px;
  color: #386f86;
  background: rgba(227, 244, 247, 0.72);
}

.confirm-dialog-icon svg {
  width: 20px;
  height: 20px;
}

.confirm-dialog-body {
  padding: 24px 24px 22px;
}

.confirm-dialog-body p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(68, 84, 112, 0.1);
}

.confirm-dialog-actions .primary-button,
.confirm-dialog-actions .secondary-button {
  min-height: 40px;
}

@media (max-width: 560px) {
  .confirm-dialog-header {
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    padding: 17px;
  }

  .confirm-dialog-icon {
    width: 42px;
    height: 42px;
  }

  .confirm-dialog-body {
    padding: 20px 18px;
  }

  .confirm-dialog-actions {
    padding: 13px 17px 17px;
  }
}

/* Patrol BOT Beta */
.tab-button[data-view="patrol"] {
  min-width: 96px;
  flex-basis: 96px;
}

.patrol-view {
  min-height: min(690px, calc(100vh - 190px));
}

.patrol-stage {
  width: 100%;
  min-height: min(620px, calc(100vh - 230px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 34px);
}

.patrol-unit {
  --bot-accent: #d5a23a;
  --bot-secondary: #70bfd2;
  --bot-shell: #d9a946;
  --bot-face: #263138;
  --bot-glow: rgba(211, 157, 44, 0.3);
  min-width: 0;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 249, 253, 0.46)),
    rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 54px rgba(46, 60, 91, 0.12);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.patrol-unit-z {
  --bot-accent: #55ccee;
  --bot-secondary: #7288f2;
  --bot-shell: #f6fbff;
  --bot-face: #172535;
  --bot-glow: rgba(71, 199, 236, 0.34);
}

.patrol-unit:hover,
.patrol-unit:focus-within {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 28px 62px rgba(46, 60, 91, 0.16),
    0 0 34px var(--bot-glow);
  transform: translateY(-2px);
}

.patrol-unit-header,
.patrol-unit-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.patrol-unit-header {
  border-bottom: 1px solid rgba(63, 78, 108, 0.1);
}

.patrol-unit-header > div {
  min-width: 0;
}

.patrol-unit-header .section-kicker {
  margin: 0 0 5px;
  color: #477687;
}

.patrol-unit-header h2 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
}

.patrol-status {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(67, 84, 116, 0.12);
  border-radius: 999px;
  color: #6a7281;
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.patrol-status > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ba3b2;
  box-shadow: 0 0 0 4px rgba(125, 137, 157, 0.1);
}

.patrol-unit[data-mode="patrol"] .patrol-status {
  color: #277f7d;
  border-color: color-mix(in srgb, var(--bot-accent) 38%, transparent);
  background: color-mix(in srgb, var(--bot-accent) 13%, rgba(255, 255, 255, 0.66));
}

.patrol-unit[data-mode="patrol"] .patrol-status > i {
  background: #42b99e;
  box-shadow: 0 0 0 4px rgba(66, 185, 158, 0.12), 0 0 14px rgba(66, 185, 158, 0.58);
  animation: patrol-status-pulse 1.7s ease-in-out infinite;
}

.patrol-unit[data-maintenance="true"] .patrol-status {
  color: #786327;
  border-color: rgba(183, 147, 50, 0.24);
  background: rgba(255, 249, 225, 0.68);
}

.patrol-unit[data-maintenance="true"] .patrol-status > i {
  background: #d2a735;
  box-shadow: 0 0 0 4px rgba(210, 167, 53, 0.12);
  animation: none;
}

.patrol-character {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 18px 20px 6px;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.patrol-character::before {
  position: absolute;
  width: min(72%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.5;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--bot-accent) 26%, transparent), transparent 66%);
  filter: blur(10px);
  transform: translateY(30px) scale(0.92);
  transition: opacity 260ms ease, transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.patrol-unit[data-mode="patrol"] .patrol-character::before,
.patrol-unit.is-hovering .patrol-character::before,
.patrol-unit.is-greeting .patrol-character::before {
  opacity: 0.82;
  transform: translateY(18px) scale(1.08);
}

.patrol-character:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bot-accent) 72%, #4e6fa6);
  outline-offset: -5px;
}

.patrol-robot {
  position: relative;
  z-index: 1;
  width: min(84%, 390px);
  max-height: 360px;
  overflow: visible;
  filter: drop-shadow(0 18px 18px rgba(38, 49, 72, 0.16));
}

.patrol-robot-figure {
  transform-box: view-box;
  transform-origin: 180px 300px;
  animation: patrol-doze 3.6s ease-in-out infinite;
}

.patrol-robot-shadow {
  fill: rgba(43, 54, 78, 0.14);
  filter: blur(3px);
  transform-box: fill-box;
  transform-origin: center;
  animation: patrol-shadow-breathe 3.6s ease-in-out infinite;
}

.patrol-head > rect:first-child,
.patrol-body > path:first-child,
.patrol-arm rect,
.patrol-arm circle,
.patrol-legs rect {
  fill: var(--bot-shell);
  stroke: rgba(68, 84, 113, 0.22);
  stroke-width: 2;
}

.patrol-face {
  fill: var(--bot-face);
  stroke: rgba(255, 255, 255, 0.36);
  stroke-width: 2;
}

.patrol-ear,
.patrol-neck,
.patrol-chest {
  fill: color-mix(in srgb, var(--bot-accent) 46%, white);
  stroke: color-mix(in srgb, var(--bot-accent) 60%, #587081);
  stroke-width: 2;
}

.patrol-antenna path {
  fill: none;
  stroke: color-mix(in srgb, var(--bot-accent) 56%, #5f7288);
  stroke-width: 6;
  stroke-linecap: round;
}

.patrol-antenna circle,
.patrol-core {
  fill: var(--bot-secondary);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--bot-glow));
}

.patrol-eyes-open ellipse {
  fill: color-mix(in srgb, var(--bot-accent) 78%, white);
  filter: drop-shadow(0 0 6px var(--bot-accent));
}

.patrol-eyes-open circle {
  fill: white;
}

.patrol-eyes-open {
  opacity: 0;
  transition: opacity 180ms ease;
}

.patrol-eyes-sleep {
  opacity: 1;
  transition: opacity 180ms ease;
}

.patrol-eyes-sleep path,
.patrol-mouth {
  fill: none;
  stroke: color-mix(in srgb, var(--bot-accent) 66%, white);
  stroke-width: 5;
  stroke-linecap: round;
}

.patrol-core-mark {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patrol-arm {
  transform-box: fill-box;
  transform-origin: 50% 12%;
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.patrol-arm-left {
  transform: rotate(7deg);
}

.patrol-arm-right {
  transform: rotate(-7deg);
}

.patrol-tool {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 88%;
  transform: translate(12px, 24px) rotate(13deg) scale(0.84);
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.patrol-tool rect {
  fill: color-mix(in srgb, var(--bot-face) 80%, #53647c);
}

.patrol-tool path {
  fill: var(--bot-accent);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
}

.patrol-tool circle {
  fill: var(--bot-secondary);
  stroke: white;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--bot-glow));
}

.patrol-unit[data-mode="patrol"] .patrol-robot-figure {
  animation: patrol-march 1.05s ease-in-out infinite;
}

.patrol-unit[data-mode="patrol"] .patrol-robot-shadow {
  animation: patrol-shadow-march 1.05s ease-in-out infinite;
}

.patrol-unit[data-mode="patrol"] .patrol-eyes-open,
.patrol-unit.is-hovering .patrol-eyes-open,
.patrol-unit.is-greeting .patrol-eyes-open {
  opacity: 1;
}

.patrol-unit[data-mode="patrol"] .patrol-eyes-sleep,
.patrol-unit.is-hovering .patrol-eyes-sleep,
.patrol-unit.is-greeting .patrol-eyes-sleep {
  opacity: 0;
}

.patrol-unit[data-mode="patrol"] .patrol-tool {
  opacity: 1;
  transform: translate(0, 0) rotate(4deg) scale(1);
}

.patrol-unit[data-mode="patrol"] .patrol-arm-right {
  transform: rotate(-24deg);
}

.patrol-unit.is-hovering .patrol-arm-left,
.patrol-unit.is-greeting .patrol-arm-left {
  animation: patrol-wave 720ms ease-in-out 2;
}

.patrol-unit.is-greeting .patrol-robot-figure {
  animation: patrol-greet-bounce 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* WALL·E / EVE character builds */
.patrol-unit-q .patrol-character {
  background:
    radial-gradient(circle at 50% 70%, rgba(224, 171, 65, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 249, 229, 0.1), transparent 58%);
}

.patrol-unit-z .patrol-character {
  background:
    radial-gradient(circle at 50% 68%, rgba(83, 205, 241, 0.14), transparent 43%),
    linear-gradient(180deg, rgba(227, 248, 255, 0.12), transparent 60%);
}

.patrol-robot-walle {
  width: min(91%, 420px);
}

.patrol-unit-q .walle-figure {
  animation: walle-doze 3.8s ease-in-out infinite;
}

.walle-head-rig,
.walle-eye-module,
.walle-pupil,
.walle-treads,
.eve-eyes-open,
.eve-cannon-core {
  transform-box: fill-box;
}

.walle-head-rig {
  transform-origin: 50% 92%;
  animation: walle-head-doze 3.8s ease-in-out infinite;
}

.walle-neck-rail {
  fill: none;
  stroke: #77766d;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walle-neck-joint {
  fill: #7e7e73;
  stroke: #4d504d;
  stroke-width: 3;
}

.walle-eye-bridge {
  fill: none;
  stroke: #766e55;
  stroke-width: 9;
  stroke-linecap: round;
}

.walle-eye-housing {
  fill: #c5a35f;
  stroke: #5c533e;
  stroke-width: 4;
}

.walle-lens-ring {
  fill: #2f393c;
  stroke: #8d835f;
  stroke-width: 5;
}

.walle-eyes-open .walle-lens {
  fill: #83b6c5;
  stroke: #1b252a;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(102, 201, 226, 0.6));
}

.walle-eyes-open .walle-pupil {
  fill: #0e171b;
  transform-origin: center;
}

.walle-eyes-open .walle-glint {
  fill: rgba(255, 255, 255, 0.92);
}

.walle-eyes-sleep path {
  stroke: #5e5137;
  stroke-width: 6;
}

.walle-track-shell {
  fill: #373b3a;
  stroke: #232827;
  stroke-width: 4;
}

.walle-track-wheel-set circle {
  fill: #666b68;
  stroke: #242a29;
  stroke-width: 6;
}

.walle-treads {
  fill: none;
  stroke: #9a9b91;
  stroke-width: 5;
  stroke-dasharray: 10 8;
  stroke-linecap: round;
}

.walle-body-shell {
  fill: #c7962e;
  stroke: #735b24;
  stroke-width: 4;
  filter: drop-shadow(0 8px 8px rgba(77, 60, 28, 0.18));
}

.walle-body-top {
  fill: #e1b956;
  stroke: #755f2e;
  stroke-width: 3;
}

.walle-front-panel {
  fill: #ac7d25;
  stroke: #6d5322;
  stroke-width: 3;
}

.walle-screen {
  fill: #2e3a3e;
  stroke: #736b4c;
  stroke-width: 2;
}

.walle-levels,
.walle-vent {
  fill: none;
  stroke: #88cad8;
  stroke-width: 4;
  stroke-linecap: round;
}

.walle-vent {
  stroke: rgba(57, 50, 32, 0.72);
  stroke-width: 3;
}

.walle-status-light {
  fill: #91c958;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(134, 207, 80, 0.74));
}

.walle-warning-stripe {
  fill: none;
  stroke: rgba(66, 57, 35, 0.55);
  stroke-width: 5;
}

.walle-arm {
  transform-origin: 50% 15%;
}

.walle-arm-left {
  transform: rotate(7deg);
}

.walle-arm-right {
  transform: rotate(-7deg);
}

.walle-arm .walle-shoulder,
.walle-arm .walle-elbow {
  fill: #73766f;
  stroke: #424845;
  stroke-width: 3;
}

.walle-arm-bar,
.walle-claw {
  fill: none;
  stroke: #85877f;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walle-claw {
  stroke: #686d69;
  stroke-width: 7;
}

.walle-tool rect {
  fill: #3f4648;
}

.walle-tool path {
  fill: #e7b53f;
}

.walle-tool circle {
  fill: #73cfe0;
}

.patrol-unit-q[data-mode="patrol"] .walle-figure {
  animation: walle-patrol-roll 1s ease-in-out infinite;
}

.patrol-unit-q[data-mode="patrol"] .walle-head-rig {
  animation: walle-lookout 2.8s ease-in-out infinite;
}

.patrol-unit-q[data-mode="patrol"] .walle-pupil {
  animation: walle-eye-scan 2.8s ease-in-out infinite;
}

.patrol-unit-q[data-mode="patrol"] .walle-treads {
  animation: walle-tread-roll 620ms linear infinite;
}

.patrol-unit-q[data-mode="patrol"] .walle-arm-right {
  transform: translate(2px, -8px) rotate(-24deg);
}

.patrol-unit-q.is-hovering .walle-head-rig {
  animation: walle-curious-head 1.15s ease-in-out infinite;
}

.patrol-unit-q.is-hovering .walle-arm-left {
  animation: walle-claw-wave 1.05s ease-in-out infinite;
}

.patrol-unit-q.is-greeting .walle-figure {
  animation: walle-greet-bounce 680ms cubic-bezier(0.2, 0.8, 0.2, 1) 2;
}

.patrol-unit-q.is-greeting .walle-head-rig {
  animation: walle-curious-head 780ms ease-in-out 3;
}

.patrol-unit-q.is-greeting .walle-arm-left {
  animation: walle-claw-wave 680ms ease-in-out 3;
}

.patrol-unit-q[data-mode="patrol"] .patrol-robot-shadow {
  animation: walle-shadow-roll 1s ease-in-out infinite;
}

.patrol-robot-eve {
  width: min(79%, 350px);
}

.patrol-unit-z .eve-figure {
  animation: eve-sleep-float 3.3s ease-in-out infinite;
}

.eve-torso-shell,
.eve-head-shell,
.eve-arm-shell,
.eve-cannon-shell {
  fill: #f7fbfe;
  stroke: #b6c4d0;
  stroke-width: 3;
}

.eve-torso-shell,
.eve-head-shell {
  filter: drop-shadow(0 8px 12px rgba(69, 96, 120, 0.16));
}

.eve-torso-shine,
.eve-head-shine {
  fill: rgba(255, 255, 255, 0.76);
}

.eve-visor {
  fill: #152332;
  stroke: rgba(119, 154, 179, 0.55);
  stroke-width: 2;
}

.eve-eyes-open {
  transform-origin: center;
}

.eve-eyes-open path {
  fill: #55d9ff;
  stroke: none;
  filter: drop-shadow(0 0 7px rgba(61, 210, 255, 0.92));
}

.eve-eyes-sleep path {
  stroke: #58caed;
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(61, 210, 255, 0.55));
}

.eve-core {
  fill: #dce8ed;
  stroke: #a9bcc8;
  stroke-width: 2;
}

.eve-core-leaf {
  fill: #71bb71;
  stroke: #4d9360;
  stroke-width: 1.5;
}

.eve-arm {
  transform-origin: 50% 12%;
}

.eve-arm-left {
  transform: translate(15px, 5px) rotate(-9deg);
}

.eve-arm-right {
  transform: translate(-15px, 5px) rotate(9deg);
}

.eve-arm-seam {
  fill: none;
  stroke: rgba(148, 168, 182, 0.64);
  stroke-width: 2;
  stroke-linecap: round;
}

.eve-cannon {
  transform-origin: 18% 50%;
  transform: translate(-22px, 14px) rotate(12deg) scale(0.78);
}

.eve-cannon .eve-cannon-shell {
  fill: #edf6fb;
}

.eve-cannon .eve-cannon-port {
  fill: #243645;
  stroke: #96adbd;
  stroke-width: 3;
}

.eve-cannon .eve-cannon-core {
  fill: #58e1ff;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(60, 218, 255, 0.9));
}

.eve-cannon .eve-scan-beam {
  fill: none;
  stroke: #5be0ff;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(71, 213, 255, 0.78));
}

.patrol-unit-z[data-mode="patrol"] .eve-figure {
  animation: eve-patrol-flight 1.25s ease-in-out infinite;
}

.patrol-unit-z[data-mode="patrol"] .eve-eyes-open {
  animation: eve-eye-focus 1.5s ease-in-out infinite;
}

.patrol-unit-z[data-mode="patrol"] .eve-arm-left {
  transform: translate(4px, -8px) rotate(-24deg);
}

.patrol-unit-z[data-mode="patrol"] .eve-arm-right {
  transform: translate(-3px, -12px) rotate(-35deg);
}

.patrol-unit-z[data-mode="patrol"] .eve-cannon {
  opacity: 1;
  transform: translate(0, 0) rotate(-4deg) scale(1);
  animation: eve-cannon-ready 1.5s ease-in-out infinite;
}

.patrol-unit-z[data-mode="patrol"] .eve-cannon-core {
  animation: eve-cannon-charge 900ms ease-in-out infinite;
}

.patrol-unit-z[data-mode="patrol"] .eve-scan-beam {
  animation: eve-scan-pulse 900ms ease-in-out infinite;
}

.patrol-unit-z.is-hovering .eve-figure {
  animation: eve-hello-float 1.2s ease-in-out infinite;
}

.patrol-unit-z.is-hovering .eve-arm-left {
  animation: eve-wave 1s ease-in-out infinite;
}

.patrol-unit-z.is-greeting .eve-figure {
  animation: eve-greet-sway 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 3;
}

.patrol-unit-z.is-greeting .eve-arm-left {
  animation: eve-wave 680ms ease-in-out 3;
}

.patrol-unit-z .patrol-robot-shadow {
  animation: eve-shadow-float 3.3s ease-in-out infinite;
}

.patrol-unit-z[data-mode="patrol"] .patrol-robot-shadow {
  animation: eve-shadow-patrol 1.25s ease-in-out infinite;
}

.patrol-zzz {
  position: absolute;
  z-index: 3;
  top: 18%;
  left: 64%;
  width: 70px;
  height: 96px;
  pointer-events: none;
  color: color-mix(in srgb, var(--bot-accent) 70%, #68748e);
  font-weight: 850;
}

.patrol-zzz i {
  position: absolute;
  font-style: normal;
  opacity: 0;
  animation: patrol-zzz 3s ease-in-out infinite;
}

.patrol-zzz i:nth-child(1) {
  bottom: 8px;
  left: 2px;
  font-size: 14px;
}

.patrol-zzz i:nth-child(2) {
  bottom: 35px;
  left: 22px;
  font-size: 18px;
  animation-delay: 0.7s;
}

.patrol-zzz i:nth-child(3) {
  bottom: 66px;
  left: 45px;
  font-size: 23px;
  animation-delay: 1.4s;
}

.patrol-unit[data-mode="patrol"] .patrol-zzz,
.patrol-unit.is-hovering .patrol-zzz,
.patrol-unit.is-greeting .patrol-zzz {
  opacity: 0;
}

.patrol-speech {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 50%;
  max-width: min(78%, 320px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(43, 55, 82, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.patrol-speech::after {
  position: absolute;
  bottom: -6px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  content: "";
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.patrol-unit.is-hovering .patrol-speech,
.patrol-unit.is-greeting .patrol-speech {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.patrol-unit-footer {
  min-height: 74px;
  padding-top: 14px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(63, 78, 108, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.patrol-unit-footer > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.patrol-mode-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--bot-accent) 36%, rgba(75, 91, 122, 0.2));
  border-radius: 8px;
  color: #314a62;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--bot-accent) 16%, white), color-mix(in srgb, var(--bot-secondary) 14%, white));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.patrol-mode-button:hover {
  border-color: color-mix(in srgb, var(--bot-accent) 62%, rgba(75, 91, 122, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 9px 20px var(--bot-glow);
  transform: translateY(-1px);
}

.patrol-mode-button:disabled,
.patrol-mode-button:disabled:hover,
.patrol-mode-button:disabled:active {
  color: #777c87;
  border-color: rgba(96, 104, 120, 0.14);
  background: rgba(239, 241, 245, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.patrol-mode-button:active {
  transform: translateY(0) scale(0.98);
}

.patrol-mode-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bot-accent) 72%, #4e6fa6);
  outline-offset: 2px;
}

.patrol-mode-button svg {
  width: 17px;
  height: 17px;
}

.patrol-unit[data-mode="patrol"] .patrol-mode-button {
  color: #5f4c64;
  background: rgba(255, 255, 255, 0.58);
}

@keyframes patrol-doze {
  0%, 100% { transform: translateY(5px) rotate(-1deg) scaleY(0.985); }
  50% { transform: translateY(-1px) rotate(1deg) scaleY(1); }
}

@keyframes patrol-shadow-breathe {
  0%, 100% { opacity: 0.14; transform: scaleX(1.02); }
  50% { opacity: 0.1; transform: scaleX(0.94); }
}

@keyframes patrol-march {
  0%, 100% { transform: translate(-4px, 0) rotate(-1.5deg); }
  50% { transform: translate(4px, -7px) rotate(1.5deg); }
}

@keyframes patrol-shadow-march {
  0%, 100% { opacity: 0.14; transform: translateX(-3px) scaleX(1); }
  50% { opacity: 0.09; transform: translateX(3px) scaleX(0.9); }
}

@keyframes patrol-wave {
  0%, 100% { transform: rotate(7deg); }
  45% { transform: translate(2px, -10px) rotate(122deg); }
  70% { transform: translate(2px, -8px) rotate(92deg); }
}

@keyframes patrol-greet-bounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.025); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes patrol-zzz {
  0% { opacity: 0; transform: translate(0, 5px) scale(0.8); }
  24%, 62% { opacity: 0.76; }
  100% { opacity: 0; transform: translate(10px, -13px) scale(1.12); }
}

@keyframes patrol-status-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

@keyframes walle-doze {
  0%, 100% { transform: translateY(7px) rotate(-1.2deg); }
  52% { transform: translateY(1px) rotate(0.8deg); }
}

@keyframes walle-head-doze {
  0%, 38%, 100% { transform: translateY(9px) rotate(-6deg); }
  47% { transform: translateY(2px) rotate(1deg); }
  56% { transform: translateY(10px) rotate(-7deg); }
}

@keyframes walle-patrol-roll {
  0%, 100% { transform: translate(-4px, 0) rotate(-0.7deg); }
  50% { transform: translate(4px, -3px) rotate(0.7deg); }
}

@keyframes walle-lookout {
  0%, 18%, 100% { transform: rotate(-7deg); }
  48%, 64% { transform: rotate(7deg); }
}

@keyframes walle-eye-scan {
  0%, 18%, 100% { transform: translateX(-4px); }
  48%, 64% { transform: translateX(4px); }
}

@keyframes walle-tread-roll {
  to { stroke-dashoffset: -36; }
}

@keyframes walle-curious-head {
  0%, 100% { transform: translateY(-2px) rotate(-8deg); }
  50% { transform: translateY(-7px) rotate(9deg); }
}

@keyframes walle-claw-wave {
  0%, 100% { transform: translate(0, 0) rotate(7deg); }
  45% { transform: translate(4px, -10px) rotate(42deg); }
  72% { transform: translate(1px, -6px) rotate(20deg); }
}

@keyframes walle-greet-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  48% { transform: translateY(-8px) scale(1.02); }
}

@keyframes walle-shadow-roll {
  0%, 100% { opacity: 0.14; transform: translateX(-3px) scaleX(1); }
  50% { opacity: 0.1; transform: translateX(3px) scaleX(0.94); }
}

@keyframes eve-sleep-float {
  0%, 100% { transform: translateY(7px) rotate(-0.8deg); }
  50% { transform: translateY(-5px) rotate(0.8deg); }
}

@keyframes eve-patrol-flight {
  0%, 100% { transform: translate(-5px, 0) rotate(-2deg); }
  50% { transform: translate(5px, -10px) rotate(2deg); }
}

@keyframes eve-eye-focus {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.88); opacity: 0.82; }
}

@keyframes eve-cannon-ready {
  0%, 100% { transform: translate(0, 0) rotate(-4deg) scale(1); }
  50% { transform: translate(2px, -2px) rotate(-1deg) scale(1.02); }
}

@keyframes eve-cannon-charge {
  0%, 100% { transform: scale(0.86); opacity: 0.65; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes eve-scan-pulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.35); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes eve-hello-float {
  0%, 100% { transform: translateY(-4px) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes eve-wave {
  0%, 100% { transform: translate(10px, -2px) rotate(-8deg); }
  45% { transform: translate(4px, -20px) rotate(-72deg); }
  72% { transform: translate(6px, -15px) rotate(-48deg); }
}

@keyframes eve-greet-sway {
  0%, 100% { transform: translateY(-4px) rotate(0deg) scale(1); }
  35% { transform: translate(-8px, -12px) rotate(-4deg) scale(1.02); }
  70% { transform: translate(8px, -9px) rotate(4deg) scale(1.02); }
}

@keyframes eve-shadow-float {
  0%, 100% { opacity: 0.13; transform: scaleX(1); }
  50% { opacity: 0.07; transform: scaleX(0.82); }
}

@keyframes eve-shadow-patrol {
  0%, 100% { opacity: 0.12; transform: translateX(-3px) scaleX(0.96); }
  50% { opacity: 0.05; transform: translateX(3px) scaleX(0.74); }
}

/* Store patrol audit */
.patrol-history-panel {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 45px rgba(46, 60, 91, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}

.patrol-history-header {
  min-height: 78px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(63, 78, 108, 0.1);
}

.patrol-history-header .section-kicker { margin: 0 0 3px; color: #477687; }
.patrol-history-header h2 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.2; }
.patrol-history-header .icon-button.is-loading svg { animation: spin 1s linear infinite; }

.patrol-audit-readiness {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 75, 91, 0.18);
  border-radius: 8px;
  color: #9b4354;
  background: rgba(255, 235, 239, 0.72);
  font-size: 11px;
}

.patrol-audit-history { display: grid; }

.patrol-history-row {
  min-width: 0;
  min-height: 84px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) minmax(120px, auto) 118px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(63, 78, 108, 0.09);
  background: rgba(255, 255, 255, 0.22);
}

.patrol-history-row:last-child { border-bottom: 0; }

.patrol-history-status {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68, 129, 146, 0.16);
  border-radius: 8px;
  color: #34798a;
  background: rgba(226, 246, 246, 0.68);
}

.patrol-history-status svg { width: 17px; height: 17px; }
.patrol-history-row:is([data-status="running"], [data-status="preparing"], [data-status="validating"]) .patrol-history-status svg { animation: patrol-status-pulse 1.7s ease-in-out infinite; }
.patrol-history-row[data-status="failed"] .patrol-history-status { color: #a54256; background: rgba(255, 232, 237, 0.72); }
.patrol-history-row[data-status="needs_human"] .patrol-history-status { color: #94631b; background: rgba(255, 243, 216, 0.72); }

.patrol-history-main,
.patrol-history-main > div { min-width: 0; }
.patrol-history-main > div { display: flex; align-items: center; gap: 8px; }
.patrol-history-main strong { min-width: 0; overflow: hidden; color: #233147; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.patrol-history-main p { margin: 5px 0 0; overflow: hidden; color: #67758a; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

.patrol-history-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(67, 132, 145, 0.14);
  border-radius: 999px;
  color: #477687;
  background: rgba(231, 247, 248, 0.72);
  font-size: 8px;
  font-weight: 760;
}

.patrol-history-meta { min-width: 0; display: grid; justify-items: end; gap: 4px; color: #6d798d; font-size: 10px; }
.patrol-history-meta span { overflow: hidden; max-width: 180px; text-overflow: ellipsis; white-space: nowrap; }
.patrol-history-meta small { color: #8993a4; font-size: 9px; }

.patrol-report-download {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(69, 144, 157, 0.25);
  border-radius: 8px;
  color: #2e6577;
  background: rgba(226, 247, 248, 0.74);
  font-size: 10px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.patrol-report-download:hover { transform: translateY(-1px); background: rgba(214, 244, 245, 0.92); }
.patrol-report-download svg { width: 15px; height: 15px; }
.patrol-report-pending { justify-self: center; color: #7b879a; font-size: 10px; white-space: nowrap; }

.patrol-history-empty {
  min-height: 116px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #778497;
  font-size: 11px;
  text-align: center;
}

.patrol-history-empty svg { width: 20px; height: 20px; color: #478a99; }
.patrol-history-empty.is-error { color: #9b4354; }

.patrol-audit-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.patrol-audit-dialog[open] { display: block; }
.patrol-audit-dialog::backdrop { background: rgba(31, 39, 58, 0.38); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.patrol-audit-dialog-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.82);
  box-shadow: 0 34px 90px rgba(25, 35, 57, 0.28);
  -webkit-backdrop-filter: blur(34px) saturate(155%);
  backdrop-filter: blur(34px) saturate(155%);
}

.patrol-audit-dialog-header {
  min-height: 118px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(70, 88, 120, 0.12);
}

.patrol-audit-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  color: #31788a;
  background: rgba(220, 245, 244, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 9px 22px rgba(53, 75, 106, 0.11);
}

.patrol-audit-dialog-icon svg { width: 22px; height: 22px; }
.patrol-audit-dialog-header h2 { margin: 3px 0 5px; color: #1f2b41; font-size: 25px; line-height: 1.12; }
.patrol-audit-dialog-header p { margin: 0; color: #647087; font-size: 11px; line-height: 1.55; }
.patrol-audit-form { padding: 20px 22px 0; }

.patrol-audit-active-notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(66, 153, 158, 0.18);
  border-radius: 8px;
  color: #356f79;
  background: rgba(220, 246, 245, 0.68);
  font-size: 11px;
}

.patrol-audit-active-notice svg { width: 16px; height: 16px; animation: spin 1.5s linear infinite; }
.patrol-audit-field { display: grid; gap: 9px; }
.patrol-audit-field > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.patrol-audit-field strong { color: #243248; font-size: 13px; }
.patrol-audit-field small { color: #758198; font-size: 10px; }

.patrol-audit-field textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid rgba(73, 91, 124, 0.18);
  border-radius: 8px;
  outline: 0;
  color: #263247;
  background: rgba(255, 255, 255, 0.66);
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.patrol-audit-field textarea:focus { border-color: rgba(58, 144, 158, 0.5); box-shadow: 0 0 0 3px rgba(67, 153, 166, 0.1); }

.patrol-audit-scope { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.patrol-audit-scope span { min-width: 0; min-height: 50px; padding: 9px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(70, 89, 120, 0.1); border-radius: 8px; color: #627085; background: rgba(255, 255, 255, 0.4); font-size: 9px; line-height: 1.45; }
.patrol-audit-scope svg { width: 16px; height: 16px; flex: 0 0 auto; color: #3d8290; }

.patrol-audit-form-error { margin: 13px 0 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(190, 75, 91, 0.18); border-radius: 8px; color: #a23d50; background: rgba(255, 235, 239, 0.72); font-size: 11px; }
.patrol-audit-form-error svg { width: 16px; height: 16px; flex: 0 0 auto; }

.patrol-audit-footer { margin: 20px -22px 0; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(73, 91, 124, 0.12); background: rgba(247, 250, 254, 0.7); }
.patrol-audit-footer > span { color: #6d798c; font-size: 10px; }
.patrol-audit-footer > div { display: flex; gap: 9px; }
.patrol-audit-submit-loader { display: none; }
.patrol-audit-form.is-submitting .patrol-audit-submit-icon { display: none; }
.patrol-audit-form.is-submitting .patrol-audit-submit-loader { display: inline-block; animation: spin 1s linear infinite; }

@media (max-width: 900px) {
  .patrol-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .patrol-unit {
    min-height: 520px;
  }

  .patrol-history-row { grid-template-columns: 38px minmax(0, 1fr) 110px; }
  .patrol-history-meta { display: none; }
}

@media (max-width: 560px) {
  .patrol-audit-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .patrol-audit-dialog-header { min-height: 108px; padding: 16px; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 10px; }
  .patrol-audit-dialog-icon { width: 40px; height: 40px; }
  .patrol-audit-dialog-header h2 { font-size: 21px; }
  .patrol-audit-form { max-height: calc(100dvh - 128px); padding: 16px 16px 0; overflow-y: auto; }
  .patrol-audit-scope { grid-template-columns: 1fr; }
  .patrol-audit-scope span { min-height: 40px; }
  .patrol-audit-footer { margin-right: -16px; margin-left: -16px; padding: 13px 16px; align-items: stretch; flex-direction: column; }
  .patrol-audit-footer > div,
  .patrol-audit-footer button { width: 100%; }
  .patrol-history-row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .patrol-report-download,
  .patrol-report-pending { grid-column: 2; justify-self: start; }
  .patrol-history-main > div { align-items: flex-start; flex-direction: column; gap: 4px; }

  .patrol-unit-header,
  .patrol-unit-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .patrol-unit-header {
    align-items: flex-start;
    gap: 10px;
  }

  .patrol-unit-header h2 {
    font-size: 20px;
  }

  .patrol-character {
    min-height: 340px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .patrol-robot {
    width: min(94%, 360px);
  }

  .patrol-unit-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .patrol-mode-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .patrol-unit,
  .patrol-character::before,
  .patrol-robot-figure,
  .patrol-robot-shadow,
  .patrol-arm,
  .patrol-tool,
  .walle-head-rig,
  .walle-pupil,
  .walle-treads,
  .eve-eyes-open,
  .eve-cannon-core,
  .eve-scan-beam,
  .patrol-zzz i,
  .patrol-status > i {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
