:root {
  --ink: #0b0c0f;
  --lime: #c9ff37;
  --paper: #f7fae9;
  --line: #dfe6ca;
  --muted: #73796d;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 255, 55, .22), transparent 26rem),
    var(--paper);
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.brand-logo-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.brand-name {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.brand i {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 8px;
  background: var(--ink);
  border: 3px solid var(--lime);
  position: relative;
}

.brand i::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%, 38% 50%);
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.tagline {
  max-width: none;
  margin: 18px 0 0;
  font-size: 500px;
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 900;
  font-family: "Noto Sans SC", "Noto Sans", "Microsoft YaHei", Arial, sans-serif;
  white-space: nowrap;
}

.tagline-english {
  text-transform: none;
}

.service-tagline {
  margin: 20px 0 0;
  font-family: "Noto Sans SC", "Noto Sans", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tagline + .tagline {
  margin-top: 6px;
}

h1 {
  max-width: 720px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.download-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(26, 34, 8, .09);
}

.download-card {
  padding: 34px;
}

.download-card h2 {
  margin: 10px 0 4px;
  font-size: 30px;
}

.version-meta {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.version-meta div {
  padding: 14px;
  background: var(--paper);
}

.version-meta small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
}

.hash {
  margin-top: 16px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.admin-login-view[hidden],
.admin-app[hidden] {
  display: none !important;
}

.admin-login-view {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 255, 55, .28), transparent 22rem),
    radial-gradient(circle at 86% 82%, rgba(201, 255, 55, .14), transparent 26rem),
    #0b0c0f;
}

.admin-login-view::before,
.admin-login-view::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(201, 255, 55, .28);
  transform: rotate(45deg);
  pointer-events: none;
}

.admin-login-view::before {
  top: -150px;
  right: 8%;
}

.admin-login-view::after {
  bottom: -175px;
  left: 5%;
}

.admin-login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid rgba(201, 255, 55, .72);
  border-top: 8px solid var(--lime);
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .42), 0 0 54px rgba(201, 255, 55, .12);
}

.admin-login-brand {
  margin-bottom: 34px;
}

.admin-login-card .eyebrow {
  color: #687058;
}

.admin-login-card h1 {
  max-width: none;
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.admin-login-copy {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.admin-login-card .admin-login-field input {
  min-height: 52px;
  border: 2px solid var(--ink);
  background: #fbfff2;
  padding: 12px 14px;
  outline: none;
}

.admin-login-card .admin-login-field input:focus {
  border-color: #819f20;
  box-shadow: 0 0 0 4px rgba(201, 255, 55, .3);
}

.button.admin-login-button {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.admin-login-button:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-login-status {
  margin-bottom: 0;
  text-align: center;
}

.admin-app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--lime);
  background: rgba(11, 12, 15, .97);
  box-shadow: 0 10px 30px rgba(11, 12, 15, .16);
  backdrop-filter: blur(16px);
}

.admin-app .shell {
  width: min(1600px, calc(100% - 32px));
}

.admin-app-toolbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-app-brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
}

.admin-app-brand i {
  background: #fff;
}

.admin-system-tabs {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-system-tab {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #45494e;
  background: #17191d;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-system-tab.active {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(201, 255, 55, .2);
}

.admin-system-tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.admin-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.admin-status-chip {
  max-width: 190px;
  overflow: hidden;
  color: #cbd0c1;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button.admin-header-button,
.admin-header-actions a.button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-color: #53575c;
  background: #17191d;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.button.admin-header-button:hover,
.admin-header-actions a.button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.admin-layout {
  padding: 18px 0 48px;
}

.admin-dashboard {
  display: block;
}

.admin-app .panel {
  border-top: 3px solid var(--lime);
}

.admin-app .field input:focus,
.admin-app .field textarea:focus,
.admin-app .field select:focus {
  border-color: #819f20;
  outline: 3px solid rgba(201, 255, 55, .22);
}

.apk-admin-panel {
  width: min(720px, 100%);
  margin: 0 auto;
}

.apk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.apk-panel-head h2 {
  margin: 0;
}

.apk-current-release {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 250px;
  padding: 9px 12px;
  border: 1px solid #819f20;
  background: #11180b;
  color: #fff;
}

.apk-current-release span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.apk-current-release strong {
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
}

.apk-current-release small {
  color: #cbd3be;
  font-size: 11px;
  white-space: nowrap;
}

.apk-current-release b {
  color: var(--lime);
}

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

.apk-version-grid input[readonly] {
  border-color: #b8c28f;
  background: #f1f4e8;
  color: var(--ink);
  cursor: default;
}

.apk-inspect-status {
  margin: -2px 0 8px;
}

.apk-inspect-status.is-success {
  color: #536d00;
  font-weight: 800;
}

.apk-inspect-status.is-error {
  color: #bc2f2f;
  font-weight: 800;
}

.apk-release-history {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.apk-release-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.apk-release-history-head h3 {
  margin: 3px 0 0;
}

.apk-release-history-list {
  display: grid;
  gap: 9px;
}

.apk-release-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.apk-release-record.is-active {
  border-color: #1a80b6;
  box-shadow: inset 3px 0 0 #1a80b6;
}

.apk-release-record-main {
  min-width: 0;
}

.apk-release-record-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.apk-release-record-title strong {
  font-size: 15px;
}

.apk-release-badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.apk-release-badge.is-active {
  border-color: #1a80b6;
  color: #1a80b6;
}

.apk-release-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.apk-release-record-main p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.apk-release-record-action {
  flex: 0 0 auto;
}

.upload-progress.is-success .upload-progress-fill {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(201, 255, 55, .55);
}

.upload-progress.is-error .upload-progress-fill {
  background: #bc2f2f;
  box-shadow: none;
}

.admin-system-panel[hidden] {
  display: none;
}

.admin-system-panel {
  min-width: 0;
  scroll-margin-top: 96px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
}

.panel {
  padding: 16px;
}

.panel h2 {
  margin: 0 0 18px;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--ink);
  background: #fff;
  min-height: 36px;
  padding: 6px 12px;
  font-weight: 800;
}

.button.primary-button {
  background: var(--lime);
}

.button.danger {
  border-color: #bc2f2f;
  color: #bc2f2f;
}

.status-line {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.order-customers-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.order-customers-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

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

.order-customers-head h3 {
  margin: 2px 0 0;
}

.order-customers-count {
  min-width: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  font-weight: 900;
}

.customer-list {
  display: grid;
  gap: 8px;
  max-height: 660px;
  overflow: auto;
}

.customer-list-item {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-list-item:hover,
.customer-list-item:focus-visible,
.customer-list-item.is-selected {
  border-color: #1a80b6;
  box-shadow: inset 3px 0 0 #1a80b6;
}

.customer-list-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.customer-list-item-head strong {
  overflow-wrap: anywhere;
}

.customer-list-item-head b {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 5px;
  background: var(--lime);
  color: #071820;
  text-align: center;
  font-size: 11px;
}

.customer-list-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.customer-list-address {
  line-height: 1.35;
}

.order-workflow-panel {
  min-width: 0;
}

.selected-customer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.selected-customer-summary strong {
  font-size: 14px;
}

.selected-customer-summary span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.order-board {
  display: flex;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.order-board-column {
  flex: 0 0 300px;
  min-height: 250px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px;
}

.order-column-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.order-column-title small {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.order-column-list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.order {
  border: 1px solid var(--line);
  padding: 11px;
  background: #fff;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order h3 {
  margin: 0 0 5px;
}

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

.badge {
  align-self: flex-start;
  padding: 6px 9px;
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.customer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #deded8;
  background: #fafaf8;
  font-size: 13px;
}

.customer-meta strong,
.customer-address {
  grid-column: 1 / -1;
}

.customer-meta span {
  overflow-wrap: anywhere;
}

.workflow-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfdf4;
}

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

.workflow-card h4 {
  margin: 3px 0 0;
  font-size: 18px;
}

.workflow-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.workflow-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.review-card {
  border-left: 4px solid #e4b21f;
  background: #fffaf0;
}

.review-actions {
  margin-top: 4px;
}

.compact-field {
  max-width: 220px;
}

.production-plan-card {
  border-left: 4px solid var(--lime);
}

.production-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.production-summary div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  background: #fff;
}

.production-summary span,
.production-summary strong {
  display: block;
}

.production-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.production-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

.production-plan-fields {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 760px) {
  .customer-meta {
    grid-template-columns: 1fr;
  }

  .customer-meta strong,
  .customer-address {
    grid-column: auto;
  }

  .workflow-card-head,
  .review-actions {
    align-items: stretch;
  }

  .workflow-card-head {
    flex-direction: column;
  }

  .workflow-state {
    align-self: flex-start;
  }

  .production-summary,
  .production-plan-fields {
    grid-template-columns: 1fr;
  }

  .compact-field {
    max-width: none;
  }

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

.order-meta span {
  padding: 9px;
  background: var(--paper);
  font-size: 12px;
}

.order-detail-grid {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.order-detail-grid span {
  padding: 8px 7px;
  background: #fbfdf4;
  font-size: 12px;
}

.order-customer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #deded8;
  background: #fafaf8;
  font-size: 12px;
}

.order-customer-info strong,
.order-customer-info .customer-address {
  grid-column: 1 / -1;
}

.order-upload-progress {
  margin-top: 10px;
}

.upload-progress {
  display: grid;
  gap: 4px;
}

.upload-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border: 1px solid var(--line);
  background: #ebefde;
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
}

.upload-progress-text {
  color: var(--muted);
  font-size: 11px;
}

.logistics-fields {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.logistics-fields input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.progress-fields {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.progress-fields textarea {
  min-height: 82px;
}

.photo-field input {
  padding: 8px;
  background: #fff;
}

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

.selected-photo-grid figure {
  min-width: 0;
  margin: 0;
}

.selected-photo-grid img,
.progress-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.selected-photo-grid figcaption {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-history {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.progress-history h4 {
  margin: 0 0 12px;
}

.progress-history ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-history li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
}

.progress-history li > i {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.progress-history time {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.progress-history p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.empty {
  color: var(--muted);
  padding: 50px 0;
  text-align: center;
}

@media (max-width: 820px) {
  .hero,
  .admin-grid,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0;
  }

  .order-meta {
    grid-template-columns: 1fr;
  }

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

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

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.content-admin-panel {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 2px;
}

.content-panel-head,
.content-section-head,
.content-history-head,
.content-history-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.content-panel-head h2,
.content-section-head h3,
.content-history-head h3 {
  margin: 3px 0 0;
}

.content-panel-head > div > p {
  max-width: 670px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.content-panel-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.content-state-badge {
  flex: 0 0 auto;
  min-width: 94px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.content-state-badge.is-published {
  border-color: #96b624;
  background: var(--lime);
}

.content-state-badge.is-dirty {
  border-color: #d6a51e;
  background: #fff8d9;
}

.content-state-badge.is-draft {
  border-color: #c29a1c;
  color: #6e5600;
  background: #fff4bf;
}

.content-state-badge.is-archived {
  border-color: #7c858c;
  color: #4e565c;
  background: #eef1f2;
}

.content-state-badge.is-error {
  border-color: #bc2f2f;
  color: #bc2f2f;
  background: #fff6f6;
}

.content-state-badge.is-loading {
  background: var(--paper);
}

.content-release-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.content-release-summary > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.content-release-summary span,
.content-release-summary strong {
  display: block;
}

.content-release-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.content-release-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

.content-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .65fr);
  gap: 12px;
  align-items: start;
}

#contentForm,
.content-editor {
  min-width: 0;
}

.content-editor {
  padding: 0;
  margin: 0;
  border: 0;
}

.content-form-section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

#contentForm > .content-form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.content-mode-bar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.content-mode-tabs-head {
  max-width: 720px;
  margin-top: 13px;
}

.content-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  flex: 1 1 auto;
  gap: 6px;
}

.content-mode-tabs button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.content-mode-tabs button.active {
  border-color: #91b121;
  background: var(--lime);
}

.content-mode-utility {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.content-mode-panel[hidden] {
  display: none !important;
}

.content-mode-panel {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.content-selector-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.content-selector-row .field {
  margin: 0;
}

.content-selector-row .button {
  min-height: 44px;
}

.content-selector-row-archived {
  grid-template-columns: minmax(260px, 1fr);
}

.content-mode-empty-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.content-mode-empty-action div {
  display: grid;
  gap: 4px;
}

.content-mode-empty-action strong {
  font-size: 14px;
}

.content-mode-empty-action span {
  color: var(--muted);
  font-size: 12px;
}

.content-autosave-status {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.content-autosave-status.is-pending,
.content-autosave-status.is-saving {
  border-color: #91b121;
  background: rgba(201, 255, 55, 0.14);
  color: var(--ink);
}

.content-autosave-status.is-saved {
  border-color: #91b121;
  color: #446500;
}

.content-autosave-status.is-error {
  border-color: #dc6b6b;
  background: #fff1f1;
  color: #9d2525;
}

.content-load-status {
  margin: 10px 0 0;
}

.content-section-head {
  margin-bottom: 10px;
}

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

.content-translate-actions .button {
  min-width: 108px;
  border-color: var(--ink);
}

.content-translate-actions .button:not(:disabled):hover,
.content-translate-actions .button:not(:disabled):focus-visible {
  background: var(--lime);
}

.content-translate-hint {
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-translate-status {
  margin: 0 0 8px;
}

.content-translate-status.is-working {
  color: var(--ink);
}

.content-translate-status.is-success {
  color: #2e6f12;
}

.content-translate-status.is-error {
  color: #a21f1f;
}

.content-section-head h3,
.content-history-head h3 {
  font-size: 18px;
}

.content-section-head > small,
.content-section-head > div + small {
  max-width: 50%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

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

.content-settings-grid .field {
  margin-bottom: 0;
}

.content-new-product-section {
  margin-bottom: 4px;
  padding: 16px !important;
  scroll-margin-top: 96px;
  border: 1px solid #9fbe32;
  border-top: 6px solid var(--lime);
  background: linear-gradient(135deg, rgba(201, 255, 55, .13), #fff 38%);
  box-shadow: 0 12px 30px rgba(26, 34, 8, .07);
}

.content-new-product-section[hidden],
.content-new-size-panel[hidden],
[data-content-new-scene-config][hidden] {
  display: none !important;
}

.content-new-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.content-new-product-grid .field,
.content-new-size-panel .field {
  margin-bottom: 0;
}

.content-new-id-field {
  grid-column: span 2;
}

.content-new-id-field input[readonly] {
  color: #596164;
  background: #edf0f1;
  cursor: not-allowed;
}

.content-choice-field {
  min-width: 0;
  margin: 0;
  padding: 9px 10px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-choice-field legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.content-choice-field label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 12px 2px 0;
  font-size: 12px;
  white-space: nowrap;
}

.content-choice-field input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #91b121;
}

.content-face-choice {
  grid-column: span 2;
}

.content-new-size-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border-left: 4px solid var(--lime);
  background: var(--paper);
}

.content-new-product-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-new-product-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-new-product-head-actions small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.content-new-product-head-actions .button {
  min-height: 38px;
  padding: 7px 14px;
}

.content-readonly-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--lime);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.content-locale-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.content-locale-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.content-locale-tabs button.active {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.content-locale-panels {
  padding-top: 16px;
}

.content-locale-panel[hidden] {
  display: none;
}

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

.content-wide-field {
  grid-column: 1 / -1;
}

.field.is-unavailable {
  opacity: .52;
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  background: #f2f3ed;
}

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

.content-upload-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px dashed #b9c29f;
  background: var(--paper);
}

.content-upload-field > span {
  font-size: 13px;
  font-weight: 900;
}

.content-upload-field > small {
  color: var(--muted);
  font-size: 11px;
}

.content-upload-field input {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  font-size: 12px;
}

.content-cover-preview {
  margin: 12px 0;
}

.content-cover-preview figure {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-cover-preview img {
  width: 104px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper);
  object-fit: cover;
}

.content-cover-preview figcaption span,
.content-cover-preview figcaption small {
  display: block;
}

.content-cover-preview figcaption span {
  margin-bottom: 5px;
  font-weight: 900;
}

.content-cover-preview figcaption small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

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

.content-image-card {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-image-card.is-cover {
  border-color: #96b624;
  box-shadow: inset 0 0 0 1px var(--lime);
}

.content-image-visual {
  position: relative;
}

.content-image-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper);
  object-fit: cover;
}

.content-image-visual b {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 4px 6px;
  background: var(--lime);
  font-size: 10px;
}

.content-image-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 0;
  font-size: 10px;
}

.content-image-card figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-image-card figcaption small {
  flex: 0 0 auto;
  color: var(--muted);
}

.content-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.content-image-actions .button {
  min-height: 32px;
  padding: 5px 6px;
  font-size: 10px;
}

.content-image-empty {
  grid-column: 1 / -1;
  padding: 30px 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.content-publish-section {
  padding-bottom: 0;
}

.content-publish-section > p:not(.status-line) {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-notice-mode {
  max-width: 260px;
}

.content-history-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.content-history-head {
  align-items: center;
  margin-bottom: 12px;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}

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

.content-history-list .empty {
  padding: 28px 0;
}

.content-history-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-history-item.is-current {
  border-left: 4px solid var(--lime);
}

.content-history-title strong,
.content-history-title small {
  display: block;
  overflow-wrap: anywhere;
}

.content-history-title strong {
  font-size: 13px;
}

.content-history-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.content-history-title > span {
  flex: 0 0 auto;
  padding: 4px 6px;
  background: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.content-history-item > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content-history-item dl {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.content-history-item dl > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 7px;
  font-size: 10px;
}

.content-history-item dt {
  color: var(--muted);
}

.content-history-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.content-history-item > .button {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}

.admin-app .upload-progress-track {
  border-color: #a8ba75;
  background: #182015;
}

.admin-app .upload-progress-fill {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(201, 255, 55, .46);
}

@media (max-width: 1080px) {
  .admin-app-toolbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .admin-system-tabs {
    order: 3;
    flex-basis: 100%;
  }

  .admin-system-tab {
    flex: 1 1 0;
  }

  .admin-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .content-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-history-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .admin-login-card {
    padding: 30px 24px;
  }

  .admin-login-card h1 {
    font-size: 30px;
  }

  .admin-app-toolbar {
    gap: 10px;
  }

  .admin-app-brand {
    width: 100%;
  }

  .admin-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .admin-status-chip {
    flex: 1 1 auto;
    max-width: none;
  }

  .admin-system-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-system-tab {
    min-width: max-content;
  }

  .content-panel-head,
  .content-section-head {
    flex-direction: column;
  }

  .content-state-badge {
    align-self: flex-start;
  }

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

  .content-settings-grid,
  .content-copy-grid,
  .content-upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-wide-field {
    grid-column: auto;
  }

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

@media (max-width: 480px) {
  .admin-header-actions a.button {
    display: none;
  }

  .admin-status-chip {
    max-width: 128px;
  }

  .content-selector-row,
  .content-release-summary,
  .content-image-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-cover-preview figure {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .content-cover-preview img {
    width: 82px;
  }
}

/* GlenSignage backend theme, derived from app-logo.svg. */
body.admin-login-mode,
body.admin-signed-in {
  --ink: #112936;
  --lime: #1a80b6;
  --paper: #f1f7fa;
  --line: #c7dce7;
  --muted: #58717e;
  color: var(--ink);
}

body.admin-signed-in {
  background:
    radial-gradient(circle at 88% 10%, rgba(26, 128, 182, .17), transparent 30rem),
    linear-gradient(180deg, #f7fbfd 0, var(--paper) 100%);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
}

.admin-login-brand .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.admin-login-view {
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 128, 182, .34), transparent 23rem),
    radial-gradient(circle at 86% 82%, rgba(26, 128, 182, .2), transparent 28rem),
    #112936;
}

.admin-login-view::before,
.admin-login-view::after {
  border-color: rgba(26, 128, 182, .48);
}

.admin-login-card {
  border-color: rgba(26, 128, 182, .76);
  border-top-color: #1a80b6;
  background: #fff;
  box-shadow: 0 32px 90px rgba(5, 24, 35, .48), 0 0 56px rgba(26, 128, 182, .18);
}

.admin-login-card .eyebrow {
  color: #547482;
}

.admin-login-card .admin-login-field input {
  background: #f5fafc;
}

.admin-login-card .admin-login-field input:focus,
.admin-app .field input:focus,
.admin-app .field textarea:focus,
.admin-app .field select:focus {
  border-color: #1a80b6;
  outline-color: rgba(26, 128, 182, .24);
  box-shadow: 0 0 0 4px rgba(26, 128, 182, .2);
}

.button.admin-login-button,
.admin-app .button.primary-button {
  border-color: #112936;
  background: #176f9f;
  color: #fff;
}

.button.admin-login-button {
  box-shadow: 5px 5px 0 #112936;
}

.button.admin-login-button:active {
  box-shadow: 3px 3px 0 #112936;
}

.admin-app-header {
  border-bottom-color: #1a80b6;
  background: rgba(17, 41, 54, .98);
  box-shadow: 0 10px 30px rgba(17, 41, 54, .22);
}

.admin-app-brand,
.admin-system-tab,
.button.admin-header-button,
.admin-header-actions a.button {
  color: #fff;
}

.admin-system-tab {
  border-color: #315363;
  background: #163543;
}

.admin-system-tab.active {
  border-color: #1a80b6;
  background: #176f9f;
  color: #fff;
  box-shadow: 0 0 22px rgba(26, 128, 182, .32);
}

.admin-system-tab:focus-visible {
  outline-color: #60b5df;
}

.admin-status-chip,
.apk-current-release small {
  color: #c9dce5;
}

.button.admin-header-button,
.admin-header-actions a.button {
  border-color: #3c6172;
  background: #163543;
}

.button.admin-header-button:hover,
.admin-header-actions a.button:hover {
  border-color: #60b5df;
  color: #a9ddf5;
}

.admin-app .panel {
  border-top-color: #1a80b6;
}

.apk-current-release {
  border-color: #1a80b6;
  background: #112936;
}

.apk-current-release span,
.apk-current-release b {
  color: #65bce5;
}

.apk-version-grid input[readonly] {
  border-color: #a7c7d7;
  background: #edf6fa;
}

.apk-inspect-status.is-success,
.content-autosave-status.is-saved,
.content-translate-status.is-success {
  color: #12658f;
}

.admin-app .upload-progress-track {
  border-color: #5d91aa;
  background: #112936;
}

.admin-app .upload-progress-fill,
.admin-app .upload-progress.is-success .upload-progress-fill {
  background: #1a80b6;
  box-shadow: 0 0 12px rgba(26, 128, 182, .5);
}

.admin-app .badge,
.admin-app .content-state-badge.is-published,
.admin-app .content-mode-tabs button.active,
.admin-app .content-locale-tabs button.active,
.admin-app .content-image-visual b,
.admin-app .content-history-title > span {
  border-color: #1a80b6;
  background: #176f9f;
  color: #fff;
}

.admin-app .content-translate-actions .button:not(:disabled):hover,
.admin-app .content-translate-actions .button:not(:disabled):focus-visible {
  background: #176f9f;
  color: #fff;
}

.admin-app .content-autosave-status.is-pending,
.admin-app .content-autosave-status.is-saving {
  border-color: #1a80b6;
  background: rgba(26, 128, 182, .12);
}

.admin-app .content-autosave-status.is-saved {
  border-color: #1a80b6;
}

.admin-app .content-new-product-section {
  border-color: #1a80b6;
  border-top-color: #1a80b6;
  background: linear-gradient(135deg, rgba(26, 128, 182, .12), #fff 40%);
  box-shadow: 0 12px 30px rgba(17, 41, 54, .08);
}

.admin-app .content-choice-field input {
  accent-color: #1a80b6;
}

.admin-app .content-image-card.is-cover {
  border-color: #1a80b6;
  box-shadow: inset 0 0 0 1px #1a80b6;
}

.admin-app .content-upload-field {
  border-color: #91b7ca;
  background: #f7fbfd;
}

.admin-app .customer-meta,
.admin-app .order-customer-info {
  border-color: #c7dce7;
  background: #f5f9fb;
}

.admin-app .workflow-card,
.admin-app .order-detail-grid span {
  background: #f5f9fb;
}

.admin-app .field input:disabled,
.admin-app .field textarea:disabled,
.admin-app .field select:disabled {
  background: #edf6fa;
}

/* Fixed GlenSignage logo palette for every backend surface. */
html:root {
  background: #071820;
}

body.admin-login-mode,
body.admin-signed-in {
  --ink: #edf8fd;
  --lime: #1a80b6;
  --paper: #0b202b;
  --line: #315467;
  --muted: #a9c1cc;
  color: var(--ink);
  color-scheme: dark;
}

body.admin-login-mode .admin-login-view {
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 128, 182, .26), transparent 24rem),
    radial-gradient(circle at 86% 82%, rgba(26, 128, 182, .15), transparent 30rem),
    #071820;
}

body.admin-login-mode .admin-login-card {
  border-color: rgba(61, 162, 210, .7);
  border-top-color: #1a80b6;
  background: #112936;
  color: #f2f9fc;
  box-shadow: 0 34px 96px rgba(0, 8, 13, .66), 0 0 64px rgba(26, 128, 182, .13);
}

body.admin-login-mode .admin-login-card .eyebrow,
body.admin-login-mode .admin-login-copy,
body.admin-login-mode .admin-login-field > span,
body.admin-login-mode .admin-login-status {
  color: #a9c5d2;
}

body.admin-login-mode .admin-login-card .admin-login-field input {
  border-color: #4d91af;
  background: #071b25;
  color: #f4fbff;
  caret-color: #65bce5;
}

body.admin-login-mode .admin-login-card .admin-login-field input::placeholder {
  color: #7797a6;
}

body.admin-login-mode .admin-login-card .admin-login-field input:focus {
  border-color: #65bce5;
  box-shadow: 0 0 0 4px rgba(26, 128, 182, .28);
}

body.admin-login-mode .button.admin-login-button {
  border-color: #65bce5;
  background: #176f9f;
  color: #fff;
  box-shadow: 5px 5px 0 #06141c;
}

body.admin-signed-in {
  background:
    radial-gradient(circle at 88% 8%, rgba(26, 128, 182, .16), transparent 32rem),
    #071820;
}

.admin-app {
  color: #edf8fd;
}

.admin-app .panel {
  border-color: #315467;
  border-top-color: #1a80b6;
  background: #112936;
  box-shadow: 0 20px 54px rgba(0, 8, 13, .2);
}

.admin-app .field input,
.admin-app .field textarea,
.admin-app .field select,
.admin-app .photo-field input,
.admin-app .content-mode-tabs button,
.admin-app .content-locale-tabs button {
  border-color: #3c6172;
  background: #081b25;
  color: #edf8fd;
}

.admin-app .field input::placeholder,
.admin-app .field textarea::placeholder {
  color: #7693a1;
}

.admin-app .field input:disabled,
.admin-app .field textarea:disabled,
.admin-app .field select:disabled,
.admin-app .content-new-id-field input[readonly],
.admin-app .apk-version-grid input[readonly] {
  border-color: #294a5a;
  background: #102b39;
  color: #91acb8;
}

.admin-app .button {
  border-color: #4a7183;
  background: #112f3e;
  color: #edf8fd;
}

.admin-app .button:not(:disabled):hover,
.admin-app .button:not(:disabled):focus-visible {
  border-color: #65bce5;
  background: #19475d;
}

.admin-app .button.primary-button {
  border-color: #65bce5;
  background: #176f9f;
  color: #fff;
}

.admin-app .button.danger {
  border-color: #d95e6a;
  background: #321923;
  color: #ffb7bf;
}

.admin-app .order-board-column,
.admin-app .order,
.admin-app .apk-release-record,
.admin-app .order-customers-panel,
.admin-app .customer-list-item,
.admin-app .selected-customer-summary,
.admin-app .workflow-state,
.admin-app .production-summary div,
.admin-app .content-state-badge,
.admin-app .content-autosave-status,
.admin-app .content-choice-field,
.admin-app .content-cover-preview figure,
.admin-app .content-image-card,
.admin-app .content-history-item {
  border-color: #315467;
  background: #112936;
  color: #edf8fd;
}

.admin-app .order-column-title small,
.admin-app .customer-meta,
.admin-app .apk-release-badge,
.admin-app .order-customers-count,
.admin-app .workflow-card,
.admin-app .order-meta span,
.admin-app .order-detail-grid span,
.admin-app .order-customer-info,
.admin-app .progress-fields,
.admin-app .content-release-summary > div,
.admin-app .content-mode-panel,
.admin-app .content-new-size-panel,
.admin-app .content-readonly-note,
.admin-app .content-upload-field,
.admin-app .content-history-panel {
  border-color: #315467;
  background: #0b202b;
  color: #edf8fd;
}

.admin-app .review-card {
  border-color: #b88b27;
  background: #33290f;
}

.admin-app .content-new-product-section {
  border-color: #1a80b6;
  border-top-color: #1a80b6;
  background: linear-gradient(135deg, rgba(26, 128, 182, .2), #112936 42%);
  box-shadow: 0 16px 34px rgba(0, 8, 13, .22);
}

.admin-app .content-state-badge.is-published,
.admin-app .content-mode-tabs button.active,
.admin-app .content-locale-tabs button.active,
.admin-app .badge,
.admin-app .content-image-visual b,
.admin-app .content-history-title > span {
  border-color: #1a80b6;
  background: #176f9f;
  color: #fff;
}

.admin-app .content-state-badge.is-dirty,
.admin-app .content-state-badge.is-draft {
  border-color: #c79b32;
  background: #3a3014;
  color: #ffe29a;
}

.admin-app .content-state-badge.is-archived {
  border-color: #718c9a;
  background: #263b46;
  color: #d6e7ee;
}

.admin-app .content-state-badge.is-error,
.admin-app .content-autosave-status.is-error {
  border-color: #d95e6a;
  background: #401d27;
  color: #ffb7bf;
}

.admin-app .content-state-badge.is-loading,
.admin-app .content-autosave-status.is-pending,
.admin-app .content-autosave-status.is-saving {
  border-color: #1a80b6;
  background: rgba(26, 128, 182, .16);
  color: #dff5ff;
}

.admin-app .apk-inspect-status.is-success,
.admin-app .content-autosave-status.is-saved,
.admin-app .content-translate-status.is-success {
  color: #75d1f5;
}

.admin-app .selected-photo-grid img,
.admin-app .progress-photo-grid img,
.admin-app .content-cover-preview img,
.admin-app .content-image-visual img {
  border-color: #315467;
  background: #081b25;
}

.admin-app .empty,
.admin-app .status-line,
.admin-app .field span,
.admin-app .content-panel-head > div > p,
.admin-app .content-new-product-head-actions small,
.admin-app .content-new-product-hint,
.admin-app .content-upload-field > small,
.admin-app .content-history-item dt,
.admin-app .content-history-item > p {
  color: #a9c1cc;
}

/* Keep native controls from reintroducing bright white surfaces. */
.admin-app .logistics-fields input,
.admin-app input[type="file"] {
  border-color: #3c6172;
  background: #081b25;
  color: #edf8fd;
}

.admin-app input[type="file"]::file-selector-button {
  margin: -.2rem .7rem -.2rem -.35rem;
  border: 1px solid #4a7183;
  background: #112936;
  color: #edf8fd;
  cursor: pointer;
}

.admin-app select option {
  background: #081b25;
  color: #edf8fd;
}

body.admin-login-mode input:-webkit-autofill,
body.admin-login-mode input:-webkit-autofill:hover,
body.admin-login-mode input:-webkit-autofill:focus,
.admin-app input:-webkit-autofill,
.admin-app input:-webkit-autofill:hover,
.admin-app input:-webkit-autofill:focus {
  -webkit-text-fill-color: #edf8fd;
  box-shadow: inset 0 0 0 1000px #081b25;
  caret-color: #edf8fd;
}

body.admin-login-mode,
body.admin-signed-in,
.admin-app {
  scrollbar-color: #1a80b6 #081b25;
}

.admin-app-brand i {
  background: #1a80b6;
}

body.admin-dialog-open {
  overflow: hidden;
}

.admin-dialog-layer[hidden] {
  display: none;
}

.admin-dialog-layer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 8, 13, .78);
  backdrop-filter: blur(8px);
}

.admin-dialog {
  width: min(34rem, 100%);
  border: 1px solid #4d91af;
  border-top: 5px solid #1a80b6;
  border-radius: 1rem;
  padding: 1.6rem;
  background: #112936;
  color: #edf8fd;
  box-shadow: 0 30px 90px rgba(0, 8, 13, .7);
}

.admin-dialog-kicker {
  color: #75d1f5;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.admin-dialog h2 {
  margin: .45rem 0 .65rem;
  color: #f5fbff;
  font-size: 1.45rem;
}

.admin-dialog p {
  margin: 0;
  color: #b9ced8;
  line-height: 1.7;
  white-space: pre-line;
}

.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.4rem;
}

.admin-dialog .button {
  border-color: #4a7183;
  background: #0b202b;
  color: #edf8fd;
}

.admin-dialog .button.primary-button {
  border-color: #65bce5;
  background: #176f9f;
  color: #fff;
}

.admin-dialog .button.danger {
  border-color: #d95e6a;
  background: #401d27;
  color: #ffccd2;
}

.admin-dialog .button:focus-visible {
  outline: 3px solid rgba(101, 188, 229, .55);
  outline-offset: 3px;
}
