:root {
  --bg: #f6fbff;
  --panel: #ffffff;
  --panel-soft: #eef6ff;
  --line: #cfe0f5;
  --text: #12304d;
  --muted: #5f7b99;
  --blue: #2d7ff9;
  --blue-deep: #1a5fc6;
  --accent: #78b8ff;
  --danger: #d95c5c;
  --success: #0d9f6e;
  --shadow: 0 24px 70px rgba(33, 90, 155, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(120, 184, 255, 0.28), transparent 35%),
    linear-gradient(180deg, #fafdff 0%, #eff7ff 100%);
}
body.admin-state,
body.admin-body {
  background:
    radial-gradient(circle at top left, rgba(255, 92, 92, 0.46), transparent 40%),
    linear-gradient(180deg, #fff0ef 0%, #ffc9c7 100%);
}
a { color: var(--blue-deep); }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--blue), #65b4ff);
  color: white;
  cursor: pointer;
}
button.ghost {
  background: white;
  color: var(--blue-deep);
  border: 1px solid var(--line);
}
button.danger {
  background: var(--danger);
}
button.ghost.danger {
  background: var(--danger);
  color: white;
  border-color: rgba(0, 0, 0, 0.04);
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: end;
}
.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.field-block {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
}
.field-block-icon {
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(120, 184, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #eef6ff 0%, #dcecff 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.14);
  min-height: 72px;
}
.field-block-icon svg {
  width: 2.7rem;
  height: 2.7rem;
  stroke: var(--blue-deep);
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-block-body {
  min-width: 0;
}
.field-block-title {
  font-weight: 600;
}
.file-picker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 600;
}
.file-picker-status {
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: white;
  color: var(--text);
}
.selection-emphasis {
  border: 2px solid #8ebeff;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  box-shadow: 0 0 0 3px rgba(120, 184, 255, 0.14);
}
.selection-emphasis:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.18);
}
.selection-emphasis:disabled {
  border-color: #c9d9eb;
  background: #f6f9fd;
  box-shadow: none;
}
.inline-field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.inline-field select {
  flex: 1 1 auto;
}
.icon-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-weight: 700;
}
.mini-btn {
  min-width: 24px;
  min-height: 24px;
  margin-left: 0.35rem;
  vertical-align: middle;
  font-size: 0.75rem;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.hidden { display: none !important; }
@media (max-width: 480px) {
  .field-block {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.7rem;
  }
  .field-block-icon {
    min-height: 56px;
    border-radius: 18px;
  }
  .field-block-icon svg {
    width: 2rem;
    height: 2rem;
  }
  #brandTitle {
    font-size: 1.55rem;
    line-height: 1.15;
  }
  #tutorHeroTitle {
    font-size: 1.55rem;
    line-height: 1.15;
  }
}
.shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px;
}
.topbar, .panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(207, 224, 245, 0.95);
  box-shadow: var(--shadow);
}
.topbar {
  position: relative;
  z-index: 40;
  border-radius: 32px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 420px;
  min-width: 0;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-lockup > div {
  min-width: 0;
}
.how-it-works-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}
#freeTestModeNote {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin: 0.35rem 0 0;
}
#freeTestModeNoteText {
  min-width: 0;
}
.free-badge {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(50% 0%, 59% 14%, 74% 4%, 77% 20%, 92% 12%, 88% 28%, 100% 33%, 90% 45%, 100% 58%, 85% 63%, 92% 79%, 76% 76%, 77% 93%, 61% 84%, 50% 100%, 39% 84%, 23% 93%, 24% 76%, 8% 79%, 15% 63%, 0% 58%, 10% 45%, 0% 33%, 12% 28%, 8% 12%, 23% 20%, 26% 4%, 41% 14%);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
  line-height: 1;
  flex: 0 0 auto;
}
.lang-switch {
  position: relative;
  z-index: 45;
}
.lang-menu-btn {
  min-width: 44px;
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 190px;
  max-width: min(260px, calc(100vw - 32px));
  padding: 0.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(20, 65, 116, 0.16);
  z-index: 60;
}
@media (max-width: 560px) {
  .lang-menu {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    min-width: 0;
    max-width: none;
  }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.lang-option:hover,
.lang-option:focus-visible {
  background: var(--panel-soft);
  outline: none;
}
.lang-option.active {
  background: linear-gradient(180deg, #eff6ff 0%, #dcebff 100%);
  color: var(--blue-deep);
}
.lang-flag {
  font-size: 1.1rem;
}
.lang-meta {
  display: grid;
  gap: 0.1rem;
}
.lang-meta strong {
  font-size: 0.95rem;
}
.lang-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}
.howto-panel {
  overflow: visible;
}
.howto-panel.collapsed .howto-head {
  margin-bottom: 0;
}
.howto-head {
  margin-bottom: 1.25rem;
}
.howto-head .meta {
  max-width: 68ch;
  margin-top: 0.5rem;
}
.howto-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.howto-step-card {
  position: relative;
  min-height: 220px;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(33, 90, 155, 0.08);
}
.howto-step-card.has-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #65b4ff 0%, var(--blue) 100%);
  box-shadow: 0 8px 18px rgba(20, 99, 255, 0.18);
  z-index: 2;
}
.howto-step-card.has-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 28px solid var(--blue);
  filter: drop-shadow(0 8px 18px rgba(20, 99, 255, 0.18));
  z-index: 2;
}
.howto-step-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f7cff 0%, #145df4 100%);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(20, 93, 244, 0.26);
}
.howto-step-visual {
  display: grid;
  place-items: center;
  height: 72px;
  margin: 6px 0 8px;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
}
.howto-step-image {
  max-width: min(100%, 150px);
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(20, 32, 51, 0.12));
}
.howto-step-title {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}
.howto-step-body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.4;
}
.howto-step-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.tutor-panel {
  gap: 1rem;
}
.tutor-copy-panel {
  gap: 1rem;
}
.tutor-video {
  width: 100%;
  max-height: 68vh;
  border-radius: 18px;
  background: #dceaf9;
}
.tutor-copy-head {
  margin-bottom: 0;
}
.tutor-copy {
  display: grid;
  gap: 1rem;
  line-height: 1.6;
}
.tutor-copy p {
  margin: 0;
}
.tutor-copy ul {
  margin: 0;
  padding-left: 1.3rem;
}
.tutor-copy li + li {
  margin-top: 0.45rem;
}
body.tutor-body .shell {
  max-width: 1100px;
  padding-top: 14px;
}
body.tutor-body .topbar {
  padding: 16px 22px;
}
body.tutor-body .layout {
  margin-top: 12px;
}
body.tutor-body .panel {
  padding: 16px;
}
body.tutor-body .section-head {
  margin-bottom: 10px;
}
.topbar h1, .panel h2, .panel h3, .card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}
.topbar h1 {
  overflow-wrap: anywhere;
}
.eyebrow, .kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}
.layout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 20px 0 8px;
  text-align: center;
  font-size: 0.9rem;
}
.panel {
  border-radius: 28px;
  padding: 22px;
}
.hero {
  display: grid;
  gap: 14px;
}
.subtle, .message, .meta, .empty, .muted {
  color: var(--muted);
}
.empty.error {
  color: var(--danger);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 18px;
}
.wizard-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.wizard-nav li {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 20px;
  padding: 0.8rem 1rem;
  color: var(--muted);
}
.wizard-nav li.active {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(45, 127, 249, 0.14), rgba(120, 184, 255, 0.22));
  color: var(--text);
}
.stack {
  display: grid;
  gap: 0.9rem;
}
.auth-card {
  max-width: 460px;
}
.auth-intro {
  gap: 0.35rem;
}
.auth-intro h3,
.auth-intro p {
  margin: 0;
}
.auth-support {
  min-height: 1.5rem;
}
.auth-support-text,
.auth-reset-head h3,
.auth-reset-head p {
  margin: 0;
}
.auth-reset {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  text-align: left;
}
.link-btn:hover {
  text-decoration: underline;
}
.auth-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  width: min(100%, 360px);
}
.wizard-toggle {
  width: min(100%, 420px);
}
.auth-toggle-btn {
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
button.auth-toggle-btn.active {
  background: linear-gradient(135deg, var(--blue), #65b4ff);
  color: white;
  border-color: transparent;
}
.grid-2, .grid-3, .filter-grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3, .filter-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-profile-create-form {
  grid-template-columns: minmax(150px, 0.7fr) minmax(420px, 1.9fr) auto;
  align-items: end;
}
.admin-profile-create-name {
  max-width: 260px;
}
.admin-profile-create-button {
  white-space: nowrap;
  padding-inline: 1rem;
  min-width: 0;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: var(--panel-soft);
}
.badge {
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.badge.admin-badge {
  background: linear-gradient(180deg, #fff1f1 0%, #ffdede 100%);
  border-color: #efb3b3;
  color: #7f1d1d;
}
.topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}
.file-list, .chat-list {
  display: grid;
  gap: 0.75rem;
}
.file-chip, .chat-item, .metric-card, .gallery-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 22px;
  padding: 1rem;
}
.gallery-grid {
  display: grid;
  gap: 1rem;
}
.gallery-card {
  display: grid;
  gap: 1rem;
}
.gallery-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.gallery-summary-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.gallery-summary-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.gallery-summary-main > div {
  min-width: 0;
}
.gallery-file-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gallery-summary-side {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.gallery-details {
  display: grid;
  gap: 1rem;
}
.gallery-retention-note {
  color: var(--muted);
}
.toggle-card {
  min-width: 120px;
  padding: 0.7rem 0.95rem;
}
.mini-preview,
.mini-placeholder,
.mini-ring {
  width: 96px;
  height: 72px;
  border-radius: 16px;
  background: #eaf3ff;
}
.mini-preview {
  object-fit: cover;
  display: block;
}
.mini-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: capitalize;
  border: 1px solid var(--line);
}
.mini-ring {
  --size: 72px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(from -90deg, #2d7ff9 calc(var(--progress) * 1%), #d5e7fb 0);
}
.mini-ring span {
  font-size: 0.82rem;
  color: var(--blue-deep);
  font-weight: 700;
}
.gallery-top, .row-wrap, .metric-grid {
  display: grid;
  gap: 1rem;
}
.gallery-top, .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.metric-grid.metric-grid-compact {
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
  align-items: start;
}
.preview-box {
  background: #eaf3ff;
  border-radius: 18px;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
  min-height: 0;
  align-content: start;
}
.preview-box video, .entropy-box img {
  width: 100%;
  border-radius: 16px;
  background: #dceaf9;
}
.preview-progress {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: 100%;
}
.progress-ring {
  --size: 190px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(from -90deg, #2d7ff9 calc(var(--progress) * 1%), #d5e7fb 0);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.55), 0 18px 40px rgba(45, 127, 249, 0.16);
}
.progress-ring-inner {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(207, 224, 245, 0.9);
}
.progress-ring-inner strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
.progress-ring-inner span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  text-transform: capitalize;
  color: var(--muted);
}
.entropy-box img {
  background: white;
  border: 1px solid var(--line);
}
.entropy-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.entropy-summary-row .small {
  margin: 0;
}
.actions-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.rating-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.stack-tight {
  display: grid;
  gap: 0.2rem;
}
.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.rating-star,
.rating-clear {
  min-width: 2.25rem;
}
.rating-star {
  color: #9fb5cf;
  font-size: 1.05rem;
}
.rating-star.active {
  color: #d78a00;
  background: #fff4d6;
  border-color: #f0c766;
}
.rating-clear.active {
  color: white;
  background: #2d7ff9;
  border-color: #2d7ff9;
}
.inline-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.field-title {
  font-weight: 700;
}
.message {
  min-height: 1.2rem;
}
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.progress-shell {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dceaf9;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #66b8ff, #2d7ff9);
}
.small {
  font-size: 0.86rem;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.admin-profiles-table {
  table-layout: fixed;
}
.admin-profiles-col-name {
  width: 18%;
}
.admin-profiles-col-command {
  width: 62%;
}
.admin-profiles-col-actions {
  width: 20%;
}
.admin-profile-name-input,
.admin-profile-command-input {
  width: 100%;
}
.admin-profile-command-input {
  min-width: 640px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}
.admin-rating-cell {
  display: grid;
  gap: 0.2rem;
}
.admin-user-email-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.admin-last-activity-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.admin-active-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #14b86a;
  box-shadow: 0 0 0 3px rgba(20, 184, 106, 0.16);
  flex: 0 0 auto;
}
.admin-help-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: #fff1cf;
  color: #9a5a00;
  font-size: 1.45rem;
  font-weight: 700;
}
.admin-rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}
.admin-rating-star {
  color: #b7c5d8;
}
.admin-rating-star.active {
  color: #d78a00;
}
.admin-traffic-cell {
  display: grid;
  gap: 0.3rem;
  min-width: 220px;
}
.admin-traffic-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dceaf9;
}
.admin-traffic-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66b8ff, #2d7ff9);
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.6rem;
  vertical-align: top;
}
.admin-stats, .metric-grid {
  display: grid;
  gap: 1rem;
}
.metric-card {
  padding: 0.8rem 0.9rem;
}
.metric-card.metric-card-compact {
  padding: 0.55rem 0.65rem;
  min-width: 0;
}
.metric-card.metric-card-compact > div:first-child {
  font-size: 0.74rem;
  white-space: nowrap;
}
.metric-card.metric-card-compact strong {
  font-size: 1.15rem;
}
@media (max-width: 980px) {
  .howto-steps-grid {
    grid-template-columns: 1fr;
  }
  .howto-step-card.has-arrow::after,
  .howto-step-card.has-arrow::before {
    display: none;
  }
  .howto-step-card {
    min-height: auto;
  }
  .metric-grid.metric-grid-compact {
    grid-template-columns: repeat(2, max-content);
  }
}
@media (max-width: 520px) {
  .metric-grid.metric-grid-compact {
    grid-template-columns: max-content;
  }
}
.metric-card > div:first-child {
  font-size: 0.84rem;
}
.metric-card strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 0.2rem;
  line-height: 1.1;
}
@media (max-width: 480px) {
  .shell { padding: 14px; }
  .topbar, .panel { border-radius: 24px; }
  .howto-step-card {
    padding: 16px 16px 12px;
  }
  .howto-step-title {
    font-size: 1rem;
  }
  .gallery-summary,
  .gallery-summary-main,
  .gallery-summary-side {
    flex-direction: column;
    align-items: start;
  }
}
