:root {
  color-scheme: light;
  --blue: #1a4db3;
  --blue-deep: #0f3a8f;
  --blue-soft: #e8f0ff;
  --ink: #142033;
  --muted: #5c687a;
  --line: #dce2ec;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-raised: #fbfcfe;
  --danger: #a72d24;
  --danger-soft: #fff0ed;
  --warning: #825300;
  --warning-soft: #fff5d9;
  --success: #17633a;
  --success-soft: #e8f7ee;
  --radius: 10px;
  --shadow: 0 18px 50px rgb(15 58 143 / 0.12);
  font-family:
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--surface-soft);
  color: var(--ink);
}

body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  background: var(--surface-soft);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(26 77 179 / 0.26);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.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 {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button-primary {
  background: var(--blue);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-secondary {
  border-color: #c8d1df;
  background: #ffffff;
  color: #24324a;
}

.button-secondary:hover {
  border-color: #9eabc0;
  background: #f8faff;
}

.text-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.login-view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(135deg, rgb(232 240 255 / 0.72), transparent 48%),
    var(--surface-soft);
}

.login-panel {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.ops-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.ops-brand span:last-child {
  display: grid;
  gap: 1px;
}

.ops-brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.ops-brand small {
  color: var(--muted);
  font-size: 12px;
}

.login-brand {
  margin-bottom: 42px;
}

.section-label {
  margin: 0 0 6px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.2;
}

.login-copy > p:last-child {
  max-width: 36ch;
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 18px;
}

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.field label,
fieldset legend {
  color: #2b3850;
  font-size: 13px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b8c3d3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.field input,
.field select {
  min-height: 42px;
  padding: 0.62rem 0.72rem;
}

.field textarea {
  resize: vertical;
  padding: 0.72rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d7889;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.login-submit {
  width: 100%;
  margin-top: 2px;
}

.security-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-error {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.ops-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  background: var(--surface);
}

.ops-sidebar .ops-brand {
  padding: 0 8px;
}

.ops-nav {
  display: grid;
  gap: 4px;
  margin-top: 38px;
}

.ops-nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0.64rem 0.78rem;
  background: transparent;
  color: #48546a;
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
}

.ops-nav-item:hover {
  background: #f2f5fa;
  color: var(--ink);
}

.ops-nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
}

.sidebar-note {
  margin: auto 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.ops-workspace {
  min-width: 0;
}

.ops-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(20px, 4vw, 40px);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
}

.ops-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ops-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-user > span {
  max-width: 280px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) 56px;
}

.ops-section {
  min-width: 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.section-heading p {
  max-width: 65ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.metric strong {
  margin: 12px 0 8px;
  color: var(--blue-deep);
  font-size: 36px;
  line-height: 1;
}

.metric small {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

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

.data-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.panel-heading {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 16px;
}

.overview-list {
  display: grid;
}

.overview-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e7ebf1;
}

.overview-row:last-child {
  border-bottom: 0;
}

.overview-row strong,
.overview-row span {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-row span {
  color: var(--muted);
}

.panel-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.compact-field {
  width: min(320px, 100%);
}

.compact-field + .compact-field {
  width: min(220px, 100%);
}

.table-frame {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7ebf1;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f7f9fc;
  color: #4d5a70;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

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

tbody tr:hover {
  background: #fbfcff;
}

.table-product {
  min-width: 240px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.table-product img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f8;
}

.table-product-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.table-product-copy strong,
.table-product-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-product-copy strong {
  font-size: 13px;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  background: #edf0f5;
  color: #445169;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.status-badge.is-success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.is-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.table-action {
  min-height: 36px;
  border: 1px solid #c8d1df;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: #ffffff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.table-action:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.standalone-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.inventory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.summary-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: var(--surface);
  color: #46536a;
  font-size: 12px;
  font-weight: 680;
}

.audit-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.audit-row {
  display: grid;
  grid-template-columns: 170px minmax(180px, 0.8fr) minmax(180px, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #e7ebf1;
  font-size: 12px;
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-row time,
.audit-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgb(15 28 50 / 0.24);
}

.ops-dialog::backdrop {
  background: rgb(21 31 48 / 0.54);
  backdrop-filter: blur(2px);
}

.dialog-shell {
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
}

.dialog-shell-small {
  width: min(620px, 100%);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.dialog-header {
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
}

.dialog-close {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dialog-body {
  overflow-y: auto;
  padding: 22px;
}

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

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

fieldset {
  min-width: 0;
  margin: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
}

fieldset legend {
  padding: 0 12px 0 0;
  background: var(--surface);
}

.dialog-body > .form-error {
  margin-top: 18px;
}

.field-map-banner {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #f5f7fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sync-guide {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.sync-guide h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.sync-guide ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.sync-guide a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sync-guide-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sync-preview {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed #c9d3e4;
  border-radius: 10px;
  background: #f8fafc;
}

.sync-preview .section-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sync-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sync-preview-note {
  color: #9a5b2f;
  font-size: 12px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

a.table-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

a.table-action-link:hover {
  background: #f3f6fb;
}

fieldset .field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fafbfe;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(380px, calc(100% - 40px));
  border: 1px solid #b9c7dd;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
}

.toast.is-error {
  border-color: #e3b8b2;
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 1099px) {
  .ops-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .audit-row {
    grid-template-columns: 150px minmax(160px, 0.8fr) minmax(0, 1fr);
  }

  .audit-row span:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 899px) {
  .ops-shell {
    display: block;
  }

  .ops-sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
  }

  .ops-sidebar .ops-brand {
    padding: 0;
  }

  .ops-nav {
    min-width: 0;
    display: flex;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .ops-nav-item {
    flex: 0 0 auto;
    padding-inline: 0.78rem;
    text-align: center;
    white-space: nowrap;
  }

  .sidebar-note {
    display: none;
  }

  .ops-header {
    top: 0;
  }

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

  .metric:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 639px) {
  .login-view {
    padding: 16px;
  }

  .login-panel {
    padding: 24px 20px;
  }

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

  .ops-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .ops-sidebar .ops-brand {
    justify-self: start;
  }

  .ops-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .ops-user {
    min-width: 0;
  }

  .ops-user > span {
    display: none;
  }

  .ops-main {
    padding: 22px 16px 44px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading > .button {
    align-self: flex-start;
  }

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

  .metric:last-child {
    grid-column: auto;
  }

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

  .compact-field,
  .compact-field + .compact-field {
    width: 100%;
  }

  .audit-list {
    overflow-x: auto;
  }

  .audit-row {
    min-width: 620px;
  }

  .ops-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  .dialog-header,
  .dialog-actions,
  .dialog-body {
    padding: 16px;
  }

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

  .field-span-2 {
    grid-column: auto;
  }

  .dialog-actions .button {
    flex: 1 1 auto;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

.ops-nav-group {
  margin: 1rem 0 0.35rem;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #6e6e6e);
}

.ops-header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-search {
  position: relative;
  min-width: min(280px, 100%);
}

.global-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line, #e6e6e6);
  background: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
}

.global-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line, #e6e6e6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
}

.search-group-label {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6e6e6e);
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.35rem;
  font: inherit;
}

.search-result:hover {
  background: #f4f4f4;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border: 1px solid var(--line, #e6e6e6);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6e6e6e);
}

.env-pill[data-env="production"] {
  color: #141414;
  border-color: #141414;
}

.ops-user small {
  display: block;
  color: var(--muted, #6e6e6e);
  font-size: 0.75rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.media-card {
  border: 1px solid var(--line, #e6e6e6);
  background: #fff;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f0f0f0;
}

.media-card span,
.media-file {
  font-size: 0.78rem;
  color: var(--muted, #6e6e6e);
  word-break: break-all;
}

.entity-image-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong, #d0d0d0);
  background: #f7f7f7;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.entity-image-drop:hover,
.entity-image-drop:focus-visible {
  border-color: #141414;
  outline: none;
}

.entity-image-drop.is-dragover {
  border-color: #141414;
  background: #efefef;
}

.entity-image-drop.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.entity-image-drop.has-image {
  border-style: solid;
  background: #ececec;
}

.entity-image-drop img {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.entity-image-drop-empty {
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted, #6e6e6e);
  pointer-events: none;
}

.entity-image-drop-empty strong {
  color: #141414;
  font-weight: 500;
  font-size: 0.95rem;
}

.entity-image-drop-empty span {
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 auto;
}

.entity-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.button-compact {
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}

.content-form,
.team-form {
  border: 1px solid var(--line, #e6e6e6);
  background: #fff;
  padding: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
