:root {
  color-scheme: light;
  --ink: #24180b;
  --muted: #755f40;
  --line: #ead39c;
  --paper: #fff8e8;
  --panel: #ffffff;
  --brand: #c6a166;
  --brand-dark: #6a4618;
  --accent: #e6b75f;
  --soft: #fff0ba;
  --danger: #ba3d17;
  --gold-deep: #c77a00;
  --gold-light: #fff3b0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 203, 143, 0.42), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255, 246, 220, 0.7), transparent 28%),
    var(--paper);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(154, 88, 0, 0.18);
}

.admin-shell {
  width: min(100%, 960px);
}

.card-profile {
  position: relative;
  padding: 0 20px 22px;
  overflow: hidden;
}

.cover {
  position: relative;
  height: 260px;
  margin: 0 -20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 242, 212, 0.38), transparent 34%),
    linear-gradient(135deg, #efe2c6, #c7a46f 56%, #8e6d42);
}

.cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.05);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.36), rgba(70, 47, 24, 0.22)),
    linear-gradient(90deg, rgba(255, 246, 220, 0.72), rgba(121, 82, 38, 0.18));
}

.hero-brand-lockup {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 24px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  padding: 0;
  color: #3e2b13;
}

.hero-brand-lockup::before {
  content: none;
}

.hero-symbol {
  position: relative;
  z-index: 1;
  display: block;
  width: 116px;
  height: 116px;
  object-fit: contain;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.hero-brand-lockup strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #7a5526;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(255, 247, 226, 0.72);
}

.hero-brand-lockup small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #4e371b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  white-space: pre-line;
}

.profile-head {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
  align-items: center;
  margin-top: -54px;
  padding: 14px;
  border: 1px solid rgba(220, 181, 112, 0.74);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 18px 38px rgba(102, 67, 22, 0.14);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4d2, #d5ae6b 54%, #9d7134);
  color: #452600;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
  box-shadow: 0 16px 32px rgba(181, 105, 0, 0.32);
}

.avatar-mark {
  overflow: hidden;
}

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

.staff-photo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d1d0d, #8c6935);
  color: #f4dfb2;
  font-size: 13px;
  font-weight: 900;
}

.brand-name-line {
  margin: 0 0 5px;
  color: #9b6a21;
  font-size: 14px;
  font-weight: 900;
}

.company-name {
  margin: 0 0 4px;
  color: #6d512b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

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

h1 {
  margin-bottom: 3px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.role {
  margin: 0;
  color: #7a6040;
  font-size: 14px;
  line-height: 1.45;
}

.intro {
  margin: 18px 0;
  color: #4b3515;
  font-size: 15px;
  line-height: 1.7;
}

[data-profile="intro"],
[data-profile="companyDescription"],
[data-profile="companyName"],
[data-profile="brandSubtitle"] {
  white-space: pre-line;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.action {
  min-width: 0;
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid #f0c85a;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf5, #fff4c8);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(198, 122, 0, 0.12);
}

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

.action[hidden],
.action.is-disabled {
  display: none;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf34, #ff8a1d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(255, 250, 230, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.compact-field {
  min-width: 180px;
  gap: 4px;
  margin: 0;
}

.compact-field input {
  min-height: 40px;
}

.tab {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.15;
}

.tab span,
h2 span,
h3 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tab.is-active {
  background: linear-gradient(135deg, #ffcb26, #ff7a1a);
  color: #3d2300;
  box-shadow: 0 8px 18px rgba(198, 122, 0, 0.2);
}

.panel {
  display: none;
  padding: 24px 20px 32px;
}

.panel.is-active {
  display: block;
}

.admin-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 24px 24px;
  background:
    linear-gradient(135deg, rgba(255, 207, 36, 0.94), rgba(255, 122, 26, 0.88)),
    #f5b400;
  color: #3d2300;
}

.admin-hero h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.admin-hero p:last-child {
  margin-bottom: 0;
  color: #5f3700;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(95, 55, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: #3d2300;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-panel {
  display: block;
  padding: 24px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-summary article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff4c8);
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.08);
}

.admin-summary span,
.owner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff0ba;
  color: #9a5800;
  font-size: 12px;
  font-weight: 900;
}

.admin-summary strong {
  display: block;
  color: #3d2300;
  font-size: 15px;
  line-height: 1.45;
}

.admin-entry-grid {
  align-items: stretch;
}

.admin-entry-card {
  display: block;
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff4c8);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.08);
}

.admin-entry-card.company-owned,
.admin-entry-card.personal-owned {
  border-left-width: 5px;
}

.admin-entry-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-entry-card:hover {
  transform: translateY(-1px);
}

.section-head {
  margin-bottom: 16px;
}

.eyebrow {
  margin-bottom: 6px;
  color: #d46d00;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

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

.metrics div,
.stat-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff9e8);
}

.metrics div {
  padding: 14px 10px;
  box-shadow: 0 12px 24px rgba(198, 122, 0, 0.08);
}

.metrics strong {
  display: block;
  color: #b86500;
  font-size: 22px;
  line-height: 1.1;
}

.metrics span,
.stat-box span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.body-copy,
.product-card p,
.qr-dialog p {
  color: var(--muted);
  line-height: 1.7;
}

.scope-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

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

.scope-grid article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf4, #fff1bd);
  box-shadow: 0 12px 24px rgba(198, 122, 0, 0.08);
}

.scope-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.scope-grid strong {
  display: block;
  color: #9a5800;
  font-size: 14px;
  line-height: 1.45;
}

.trust-section-head {
  margin-top: 24px;
}

.video-section-head {
  margin-top: 24px;
}

.company-video,
.company-video-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf7, #fff4d9);
  box-shadow: 0 14px 30px rgba(124, 82, 24, 0.1);
}

.company-video video,
.company-video-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f160c;
  object-fit: cover;
}

.company-video-empty,
.company-video-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.company-video-empty strong,
.company-video-placeholder strong {
  color: #7a5526;
  font-size: 16px;
}

.company-video-empty span,
.company-video-placeholder span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
}

.company-video-admin {
  display: grid;
  gap: 12px;
}

.video-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

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

.trust-card,
.trust-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8df);
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.1);
}

.trust-card {
  display: grid;
  gap: 14px;
  padding: 12px;
}

.trust-card img,
.trust-image-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
}

.trust-image-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-weight: 900;
}

.trust-card span {
  display: block;
  margin-bottom: 5px;
  color: #b86500;
  font-size: 12px;
  font-weight: 900;
}

.trust-card h3,
.trust-empty h3 {
  margin-bottom: 6px;
}

.trust-card p,
.trust-empty p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trust-empty {
  padding: 16px;
}

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

.catalog-download {
  margin-bottom: 14px;
}

.catalog-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7d6, #ffffff);
  color: #5c3a10;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.1);
}

.catalog-card span {
  color: #9a5800;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card strong {
  word-break: break-all;
}

.product-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 10px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8df);
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.1);
}

.product-card img {
  width: 112px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.product-image-fallback {
  display: grid;
  place-items: center;
  width: 112px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-size: 12px;
  font-weight: 900;
}

.product-empty {
  padding: 18px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8df);
  color: var(--muted);
  line-height: 1.65;
}

.product-empty h3 {
  margin-bottom: 6px;
  color: var(--ink);
}

.product-empty h3 span {
  display: block;
  color: #9a5800;
  font-size: 12px;
  text-transform: uppercase;
}

.lead-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.lead-form label,
.admin-form .field {
  display: grid;
  gap: 7px;
  color: #4b3515;
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.field select {
  width: 100%;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.field select:focus {
  border-color: #ff9f1a;
  box-shadow: 0 0 0 3px rgba(255, 178, 0, 0.22);
}

.form-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8df);
  box-shadow: 0 14px 30px rgba(198, 122, 0, 0.08);
}

.company-owned {
  border-left: 5px solid #ffbf00;
}

.personal-owned {
  border-left: 5px solid #ff7a1a;
}

.staff-owned {
  border-left: 5px solid #d6a100;
}

.form-block-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3d99b;
}

.form-block-head h3 {
  margin-bottom: 0;
  color: #9a5800;
  font-size: 20px;
}

.form-block-head p {
  width: min(100%, 360px);
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.owner-badge {
  margin-bottom: 8px;
}

.owner-badge.personal {
  background: #ffe0bf;
  color: #b94d00;
}

.owner-badge.staff {
  background: #fff0ba;
  color: #7d5b00;
}

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

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

.field span {
  color: #5c3a10;
  font-size: 13px;
  font-weight: 900;
}

.photo-upload {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px dashed #e1b04e;
  border-radius: 8px;
  background: #fffaf0;
}

.photo-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(181, 105, 0, 0.18);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-photo-preview {
  width: 120px;
  height: 88px;
}

.photo-upload p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.field-title {
  display: block;
  color: #5c3a10;
  font-size: 13px;
  font-weight: 900;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-right: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffcf24, #ff7a1a);
  color: #3d2300;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.trust-editor {
  display: grid;
  gap: 14px;
}

.trust-admin-list {
  display: grid;
  gap: 8px;
}

.trust-admin-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: #fffaf0;
}

.trust-admin-thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.trust-admin-thumb-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-size: 12px;
  font-weight: 900;
}

.trust-admin-item strong {
  display: block;
  color: #3d2300;
}

.trust-admin-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.trust-admin-item button {
  min-height: 34px;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  background: #fff9e8;
  color: #9a5800;
  font-weight: 800;
}

.catalog-admin {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px dashed #e1b04e;
  border-radius: 8px;
  background: #fffaf0;
}

.catalog-admin strong {
  display: block;
  color: #3d2300;
  word-break: break-all;
}

.catalog-admin-list {
  display: grid;
  gap: 8px;
}

.catalog-admin-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: #fffaf0;
}

.catalog-admin-item strong,
.catalog-admin-item span {
  display: block;
}

.catalog-admin-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-admin-item button {
  min-height: 34px;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  background: #fff9e8;
  color: #9a5800;
  font-weight: 800;
}

.product-editor {
  display: grid;
  gap: 14px;
}

.product-admin-list {
  display: grid;
  gap: 8px;
}

.product-admin-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0d79b;
  border-radius: 8px;
  background: #fffaf0;
}

.product-admin-thumb {
  width: 84px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.product-admin-thumb-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-size: 12px;
  font-weight: 900;
}

.product-admin-item strong,
.product-admin-item span {
  display: block;
}

.product-admin-item strong {
  color: #3d2300;
}

.product-admin-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-admin-item button {
  min-height: 34px;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  background: #fff9e8;
  color: #9a5800;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.secondary-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  background: #fff9e8;
  color: #6e4d20;
  font-weight: 800;
}

.admin-section-head {
  margin-top: 28px;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 500;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.primary-button {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffcf24, #ff7a1a);
  color: #3d2300;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.28);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: #9a5800;
  font-weight: 700;
}

.section-note a {
  color: #9a5800;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  padding: 16px;
}

.stat-box strong {
  display: block;
  margin-top: 8px;
  color: #b86500;
  font-size: 28px;
}

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

.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  background: #fff;
}

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

.lead-table th {
  color: var(--muted);
  background: #fff0ba;
}

.staff-context {
  margin-bottom: 14px;
}

.employee-admin-list {
  display: grid;
  gap: 10px;
}

.employee-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8df);
  box-shadow: 0 12px 24px rgba(198, 122, 0, 0.08);
}

.employee-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffef76, #ffb000 45%, #ff7a1a);
  color: #452600;
  font-weight: 900;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-row strong,
.employee-row span,
.employee-row code {
  display: block;
}

.employee-row strong {
  color: #3d2300;
  font-size: 16px;
}

.employee-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.employee-row code {
  margin-top: 6px;
  color: #9a5800;
  font-size: 12px;
  white-space: normal;
  word-break: break-all;
}

.employee-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.employee-row-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e7c36c;
  border-radius: 8px;
  background: #fff9e8;
  color: #9a5800;
  font-weight: 800;
}

.qr-dialog {
  width: min(88vw, 340px);
  border: 0;
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(154, 88, 0, 0.28);
}

.qr-dialog::backdrop {
  background: rgba(78, 44, 0, 0.46);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 22px;
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 180px;
  height: 180px;
  margin: 16px auto;
  padding: 16px;
  border: 8px solid #fff;
  background: #fff5ca;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-code span {
  background: #9a5800;
}

.qr-code span:nth-child(2n),
.qr-code span:nth-child(7),
.qr-code span:nth-child(13) {
  background: transparent;
}

@media (min-width: 860px) {
  body {
    padding: 32px;
  }

  .app-shell {
    border-radius: 18px;
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .admin-hero {
    display: grid;
    padding: 24px 20px;
  }

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

  .admin-panel {
    padding: 20px;
  }

  .admin-summary,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-block-head {
    display: grid;
  }

  .form-block-head p {
    width: auto;
  }

  .admin-actions {
    display: grid;
  }

  .photo-upload {
    grid-template-columns: 1fr;
  }

  .employee-row {
    grid-template-columns: 48px 1fr;
  }

  .employee-avatar {
    width: 48px;
    height: 48px;
  }

  .employee-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .trust-admin-item {
    grid-template-columns: 64px 1fr;
  }

  .trust-admin-thumb,
  .product-admin-thumb {
    width: 64px;
    height: 52px;
  }

  .catalog-admin {
    display: grid;
  }

  .product-admin-item {
    grid-template-columns: 64px 1fr;
  }

  .trust-admin-item button,
  .product-admin-item button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .product-card {
    grid-template-columns: 1fr;
  }

  .trust-card {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .product-image-fallback {
    width: 100%;
    height: 150px;
  }
}
