:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --ink: #14241f;
  --muted: #6b7d76;
  --quiet: #82918b;
  --line: #e6eeea;
  --surface: #ffffff;
  --app-bg: #fbfdfc;
  --green: #12a064;
  --green-dark: #0b7648;
  --green-soft: #e9f8f0;
  --danger: #b9533f;
  --warning: #a7651b;
  --amber-soft: #fff3dc;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  background:
    linear-gradient(135deg, #f4f8f5 0%, #eef5f1 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(18, 160, 100, 0.42);
  outline-offset: 2px;
}

.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;
}

.prototype-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(390px, 430px);
  justify-content: center;
  align-items: center;
  gap: 70px;
  padding: 36px;
}

.desktop-brief {
  max-width: 360px;
}

.brief-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #16a46a, #47c892);
  box-shadow: 0 14px 32px rgba(22, 164, 106, 0.22);
  font-size: 28px;
  font-weight: 860;
}

.brief-kicker {
  margin: 26px 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 760;
}

.desktop-brief h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.desktop-brief p {
  margin: 14px 0 0;
  color: #60726b;
  font-size: 16px;
  line-height: 1.7;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 12px 24px rgba(18, 160, 100, 0.18);
}

.brief-tests {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-tests span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #476057;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(46, 76, 65, 0.1);
  font-size: 13px;
  font-weight: 680;
}

.phone {
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(29, 44, 38, 0.16);
  box-shadow: 0 26px 70px rgba(24, 40, 34, 0.16);
  background: linear-gradient(180deg, #fbfdfc 0%, #f7fbf8 100%);
  position: relative;
}

.status-bar {
  height: 46px;
  padding: 14px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #13241f;
  font-size: 13px;
  font-weight: 760;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.battery {
  width: 25px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  position: relative;
  display: inline-block;
}

.battery::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 14px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 6px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.app-screen {
  height: calc(100% - 46px);
  padding: 0 22px;
  display: flex;
  flex-direction: column;
}

.app-screen[hidden] {
  display: none;
}

.app-header {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-button {
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(145deg, #16a46a, #47c892);
  box-shadow: 0 12px 24px rgba(22, 164, 106, 0.22);
  font-size: 22px;
  font-weight: 860;
}

.trust-pill,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.trust-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf8f2;
  color: #188455;
  font-size: 12px;
  font-weight: 760;
}

.hero {
  margin-top: 42px;
}

.hero h2 {
  margin: 0;
  max-width: 344px;
  color: #14241f;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 820;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.search-card {
  margin-top: 28px;
  height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 76px;
  align-items: center;
  gap: 4px;
  padding: 0 7px 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 67, 54, 0.1);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(26, 57, 48, 0.08);
}

.search-card:focus-within {
  border-color: rgba(18, 160, 100, 0.45);
  box-shadow: 0 14px 34px rgba(18, 160, 100, 0.13);
}

#searchInput {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: #1a2b26;
  background: transparent;
  font-size: 16px;
  font-weight: 650;
}

#searchInput::placeholder {
  color: #a2ada8;
  font-weight: 500;
}

.clear-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef3f0;
  color: #6a7a74;
  font-size: 22px;
  line-height: 28px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: 160ms ease;
}

.clear-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.search-button {
  width: 76px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #ffffff;
  font-size: 15px;
  font-weight: 790;
  transition: transform 140ms ease, background 140ms ease;
}

.search-button:active {
  transform: translateY(1px) scale(0.99);
}

.search-button:focus-visible {
  outline-offset: 3px;
}

.state-region {
  flex: 1;
  min-height: 0;
  margin-top: 26px;
}

.empty-state,
.notice-state {
  min-height: 286px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--quiet);
}

.empty-state h3,
.notice-state h3 {
  margin: 16px 0 0;
  color: #35463f;
  font-size: 19px;
  font-weight: 780;
}

.empty-state p,
.notice-state p {
  max-width: 270px;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.55;
}

.empty-mark,
.notice-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 29px;
  font-weight: 850;
}

.notice-state.is-sensitive .notice-mark {
  color: var(--warning);
  background: var(--amber-soft);
}

.notice-state.is-error .notice-mark {
  color: var(--danger);
  background: #fff0ec;
}

.retry-button {
  margin-top: 18px;
  min-width: 112px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 14px;
  font-weight: 780;
}

.loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid #dff1e8;
  border-top-color: var(--green);
  animation: spin 800ms linear infinite;
}

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #798a83;
  font-size: 12px;
  font-weight: 720;
}

.results {
  display: grid;
  gap: 13px;
  max-height: 352px;
  overflow: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.results::-webkit-scrollbar {
  display: none;
}

.result-card {
  border-radius: 20px;
  border: 1px solid rgba(28, 67, 54, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 44, 36, 0.09);
  padding: 18px;
}

.app-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.app-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #1cb978, #b5ecd2);
  font-size: 24px;
  font-weight: 840;
}

.app-name {
  margin: 0 0 6px;
  color: #192823;
  font-size: 20px;
  font-weight: 800;
}

.badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e3f7ed;
  color: #10844e;
  font-size: 12px;
  font-weight: 760;
}

.status-badge {
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  color: #14854c;
  background: rgba(20, 133, 76, 0.1);
  font-size: 11px;
  font-weight: 750;
}

.status-badge.is-invalid {
  color: #9d5f12;
  background: #fff1d9;
}

.link-panel {
  padding-top: 14px;
  border-top: 1px solid #edf2ef;
}

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

.link-row + .link-row {
  margin-top: 12px;
}

.link-title {
  margin: 0 0 4px;
  color: #22312d;
  font-size: 13px;
  font-weight: 740;
}

.link-url {
  margin: 0;
  color: #697973;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-row.is-invalid {
  opacity: 0.58;
}

.link-row.is-invalid .link-title {
  color: #7b8581;
}

.link-row.is-invalid .link-url {
  color: #9aa5a0;
}

.link-action {
  min-width: 54px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #0b7d4a;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 780;
}

.compliance-note {
  margin: 8px 0 17px;
  color: rgba(34, 53, 47, 0.52);
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.link-action[disabled] {
  cursor: not-allowed;
  color: #8b9691;
  background: #eef1ef;
}

.meta-line {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #768780;
  font-size: 12px;
}

.toast {
  position: absolute;
  left: 50%;
  top: 150px;
  z-index: 6;
  min-width: 190px;
  max-width: 310px;
  transform: translate(-50%, -8px);
  padding: 11px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 36, 31, 0.88);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-links {
  margin-top: auto;
  padding: 14px 0 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.legal-links button {
  border: 0;
  padding: 4px 0;
  color: rgba(34, 53, 47, 0.62);
  background: transparent;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.legal-screen {
  padding: 0 22px 24px;
}

.legal-topbar {
  height: 58px;
  margin-top: 2px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.legal-topbar strong {
  justify-self: center;
  font-size: 17px;
  font-weight: 800;
}

.back-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #edf8f2;
  color: var(--green-dark);
  font-size: 34px;
  line-height: 34px;
}

.legal-document {
  flex: 1;
  overflow: auto;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 67, 54, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(20, 44, 36, 0.08);
}

.legal-document h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-document p {
  margin: 0;
  color: #546760;
  font-size: 15px;
  line-height: 1.72;
}

.legal-document p + p {
  margin-top: 16px;
}

@media (min-width: 861px) {
  body {
    background: #f7faf8;
  }

  .prototype-shell {
    width: min(980px, 100%);
    min-height: 100vh;
    display: block;
    margin: 0 auto;
    padding: 46px clamp(22px, 4vw, 40px) 34px;
  }

  .desktop-brief {
    display: none;
  }

  .phone {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 80px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .status-bar {
    display: none;
  }

  .app-screen {
    min-height: calc(100vh - 80px);
    height: auto;
    padding: 0;
  }

  .app-header {
    margin-top: 0;
  }

  .brand-mark {
    box-shadow: none;
  }

  .trust-pill {
    min-height: 34px;
    background: #ffffff;
    border: 1px solid #e7efeb;
    color: #118653;
  }

  .hero {
    max-width: 760px;
    margin: 104px auto 0;
    text-align: center;
  }

  .hero h2 {
    max-width: none;
    font-size: 48px;
    line-height: 1.08;
  }

  .hero p {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
  }

  .search-card {
    width: min(760px, 100%);
    height: 66px;
    grid-template-columns: 1fr 36px 112px;
    margin: 34px auto 0;
    padding: 0 8px 0 22px;
    border-radius: 20px;
    border-color: #e4ece8;
    box-shadow: 0 16px 38px rgba(19, 42, 34, 0.08);
  }

  #searchInput {
    height: 48px;
    font-size: 17px;
  }

  .search-button {
    width: 112px;
    height: 50px;
    border-radius: 16px;
  }

  .state-region {
    width: min(860px, 100%);
    min-height: 300px;
    flex: initial;
    margin: 42px auto 0;
  }

  .empty-state,
  .notice-state {
    min-height: 250px;
  }

  .empty-mark,
  .notice-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 25px;
  }

  .empty-state h3,
  .notice-state h3 {
    font-size: 18px;
  }

  .empty-state p,
  .notice-state p {
    max-width: 420px;
  }

  .summary-row {
    font-size: 13px;
  }

  .results {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
    max-height: none;
    overflow: visible;
    gap: 16px;
    padding: 2px 2px 10px;
  }

  .result-card {
    min-height: 100%;
    border-color: #e7efeb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 44, 36, 0.06);
  }

  .meta-line {
    align-items: flex-start;
    gap: 12px;
  }

  .toast {
    top: 110px;
  }

  .legal-links {
    padding: 26px 0 0;
  }

  .compliance-note {
    margin-bottom: 0;
  }

  .legal-screen {
    width: min(820px, 100%);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 0 0 34px;
  }

  .legal-topbar {
    margin-top: 0;
  }

  .legal-document {
    border-color: #e7efeb;
    padding: 30px;
    box-shadow: none;
  }
}

.admin-page {
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(94, 177, 139, 0.16), transparent 26%),
    linear-gradient(135deg, #f6faf7 0%, #eef5f1 100%);
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 38px 24px 52px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 780;
}

.admin-header h1 {
  margin: 14px 0 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.admin-header p {
  margin: 10px 0 0;
  color: #60726b;
  font-size: 15px;
}

.admin-header a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.secondary-admin-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 760;
}

.admin-session {
  margin: 0;
  color: #60726b;
  font-size: 13px;
}

.admin-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-auth-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
}

.admin-content[hidden],
.admin-auth-shell[hidden] {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  border: 1px solid rgba(28, 67, 54, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 44, 36, 0.08);
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.panel-title button,
.row-actions button,
.import-actions button,
.file-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 760;
}

.app-form {
  display: grid;
  gap: 14px;
}

.app-form label,
.list-search {
  display: grid;
  gap: 7px;
}

.app-form label span,
.csv-help,
.list-title p {
  color: #6d7d77;
  font-size: 13px;
  line-height: 1.45;
}

.app-form input,
.list-search input,
.import-panel textarea,
.app-form textarea,
.app-form select {
  width: 100%;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  font-size: 15px;
}

.app-form input,
.list-search input,
.app-form select {
  height: 44px;
  padding: 0 13px;
}

.app-form input:focus,
.list-search input:focus,
.import-panel textarea:focus,
.app-form textarea:focus,
.app-form select:focus {
  border-color: rgba(18, 160, 100, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 160, 100, 0.08);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.app-form textarea {
  min-height: 98px;
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.55;
}

.primary-admin-button {
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.admin-message {
  min-height: 20px;
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.45;
}

.admin-message[data-type="error"] {
  color: var(--danger);
}

.admin-message[data-type="info"] {
  color: #6b735d;
}

.import-panel {
  display: grid;
  gap: 14px;
}

.admin-ops-grid {
  margin-top: 18px;
}

.ops-panel,
.backup-panel {
  display: grid;
  gap: 14px;
}

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

.ops-card {
  border: 1px solid #e5eee9;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.ops-card-label {
  color: #71817a;
  font-size: 12px;
  line-height: 1.4;
}

.ops-card-value {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.ops-card-helper {
  margin: 0;
  color: #6e7d77;
  font-size: 12px;
  line-height: 1.45;
}

.audit-log {
  display: grid;
  gap: 10px;
}

.audit-item {
  border: 1px solid #e5eee9;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 7px;
}

.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-item-head strong {
  font-size: 14px;
  color: var(--ink);
}

.audit-item-head span,
.audit-item-meta,
.audit-item-detail {
  margin: 0;
  color: #6e7d77;
  font-size: 12px;
  line-height: 1.5;
}

.import-panel textarea {
  min-height: 178px;
  resize: vertical;
  padding: 13px;
  line-height: 1.55;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.list-panel {
  margin-top: 18px;
}

.list-title {
  align-items: flex-start;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.list-search {
  width: min(360px, 42vw);
}

.app-table {
  display: grid;
  gap: 10px;
}

.admin-app-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5eee9;
  border-radius: 18px;
  background: #ffffff;
}

.admin-app-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #1cb978, #b5ecd2);
  font-size: 22px;
  font-weight: 840;
}

.admin-app-main {
  min-width: 0;
}

.admin-app-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-app-head strong {
  font-size: 17px;
}

.admin-app-head span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #66766f;
  background: #f1f5f3;
  font-size: 12px;
  font-weight: 720;
}

.admin-app-head .admin-valid {
  color: #10844e;
  background: #e3f7ed;
}

.admin-app-head .admin-invalid {
  color: #9d5f12;
  background: #fff1d9;
}

.admin-app-head .admin-review-approved {
  color: #10844e;
  background: #e3f7ed;
}

.admin-app-head .admin-review-rejected {
  color: var(--danger);
  background: #fff0ec;
}

.admin-app-head .admin-review-pending {
  color: #866015;
  background: #fff3dc;
}

.admin-app-main p {
  margin: 5px 0 0;
  color: #6e7d77;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.row-actions button[data-action="delete"] {
  color: var(--danger);
  background: #fff0ec;
}

.admin-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #788982;
  border: 1px dashed #d4e1db;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

@media (min-width: 861px) {
  .admin-page {
    background: #f7faf8;
  }

  .admin-shell {
    width: min(1280px, 100%);
    padding: 30px clamp(24px, 3vw, 40px) 44px;
  }

  .admin-header {
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4ece8;
  }

  .admin-kicker {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0;
  }

  .admin-header h1 {
    margin-top: 8px;
    font-size: 32px;
  }

  .admin-header p {
    margin-top: 8px;
  }

  .admin-header a,
  .secondary-admin-button,
  .panel-title button,
  .row-actions button,
  .import-actions button,
  .file-button {
    border-radius: 8px;
    box-shadow: none;
  }

  .admin-header a {
    background: #159a62;
  }

  .secondary-admin-button,
  .panel-title button,
  .row-actions button,
  .import-actions button,
  .file-button {
    background: #eef6f2;
  }

  .admin-grid {
    grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.86fr);
    gap: 16px;
  }

  .admin-panel {
    border-color: #e4ece8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    padding: 18px;
  }

  .panel-title {
    margin-bottom: 16px;
  }

  .panel-title h2 {
    font-size: 18px;
  }

  .app-form {
    gap: 12px;
  }

  .app-form input,
  .list-search input,
  .import-panel textarea,
  .app-form textarea,
  .app-form select {
    border-radius: 8px;
    border-color: #dce7e2;
  }

  .primary-admin-button {
    border-radius: 8px;
  }

  .import-panel textarea {
    min-height: 164px;
  }

  .admin-ops-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    margin-top: 16px;
  }

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

  .ops-card,
  .audit-item,
  .admin-app-row,
  .admin-empty {
    border-color: #e4ece8;
    border-radius: 8px;
  }

  .ops-card {
    padding: 12px;
  }

  .ops-card-value {
    font-size: 22px;
  }

  .audit-log {
    max-height: 282px;
    overflow: auto;
    padding-right: 2px;
  }

  .list-panel {
    margin-top: 16px;
  }

  .list-toolbar {
    align-items: center;
  }

  .list-search {
    width: min(420px, 42vw);
  }

  .app-table {
    gap: 8px;
  }

  .admin-app-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .admin-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 20px;
  }

  .admin-app-head strong {
    font-size: 16px;
  }

  .admin-app-head span {
    border-radius: 6px;
  }
}

@media (max-width: 860px) {
  body {
    background: var(--app-bg);
  }

  .prototype-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .desktop-brief {
    display: none;
  }

  .phone {
    width: 100vw;
    min-width: 320px;
    height: 100vh;
    min-height: 720px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-page {
    background: #f6faf7;
  }

  .admin-shell {
    padding: 22px 14px 36px;
  }

  .admin-header {
    display: block;
  }

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

  .admin-header a {
    margin-top: 16px;
  }

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

  .ops-cards {
    grid-template-columns: 1fr 1fr;
  }

  .list-title {
    display: grid;
  }

  .list-search {
    width: 100%;
  }

  .admin-app-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 360px) {
  .ops-cards {
    grid-template-columns: 1fr;
  }

  .app-screen {
    padding: 0 16px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .search-card {
    grid-template-columns: 1fr 30px 72px;
    padding-left: 14px;
  }

  .search-button {
    width: 72px;
  }
}
