:root {
  color-scheme: light;
  --bg: #eef5fb;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --text: #172033;
  --muted: #657287;
  --blue: #1476d4;
  --blue-dark: #0f5cab;
  --green: #2f8f63;
  --amber: #bb7a12;
  --border: #d9e2ee;
  --shadow: 0 18px 45px rgba(22, 34, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

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

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 92px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand-name {
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue);
  font-size: 22px;
}

.topbar .icon-button {
  position: absolute;
  right: 20px;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.auth-view,
.dashboard-view {
  display: grid;
  gap: 18px;
}

.intro-panel,
.panel,
.workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel {
  min-height: 260px;
  display: grid;
  padding: 34px;
}

.intro-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
}

.brand-logo-large {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
}

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

h1 {
  font-size: 32px;
  line-height: 1.18;
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 18px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.lead {
  font-size: 18px;
  color: #34425a;
}

.product-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 30px 34px;
  align-items: center;
}

.hero-brandmark {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: fit-content;
  margin: 0 auto 2px;
  padding: 0 18px 6px;
}

.hero-brand-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.hero-brand-name {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.hero-brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.hero-copy {
  text-align: left;
}

.hero-copy .intro-logo {
  margin: 0 0 12px;
}

.hero-media {
  display: grid;
  align-items: center;
  justify-items: stretch;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}

.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.primary-link {
  background: var(--blue);
  color: #fff;
}

.secondary-link {
  background: #e8eef6;
  color: var(--text);
  border: 1px solid var(--border);
}

.feature-list {
  margin: 18px 0;
  padding-left: 22px;
  color: #34425a;
  line-height: 1.55;
}

.feature-list li + li {
  margin-top: 6px;
}

.care-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #bdd7f3;
  border-radius: 8px;
  background: #f1f8ff;
  color: #27445f;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface-2);
  color: #34425a;
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-section h2 {
  margin-bottom: 0;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.service-summary {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.feature-card-grid,
.channel-grid {
  display: grid;
  gap: 12px;
}

.feature-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.channel-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.channel-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.feature-card strong,
.channel-card strong {
  font-size: 17px;
}

.feature-card p,
.channel-card p {
  margin-bottom: 0;
}

.channel-card a {
  align-self: end;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.channel-card a:hover {
  color: var(--blue-dark);
}

.pricing-section {
  gap: 22px;
}

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

.pricing-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.pricing-card.featured {
  border-color: #9fc5ee;
  background: #f1f8ff;
}

.pricing-card div {
  display: grid;
  gap: 5px;
}

.pricing-card strong {
  font-size: 22px;
}

.pricing-card span {
  color: var(--blue);
  font-weight: 900;
}

.pricing-card p {
  margin-bottom: 0;
}

.pricing-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #34425a;
  line-height: 1.45;
}

.legal-price-note {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.service-flow {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  align-items: center;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: #34425a;
  line-height: 1.5;
}

.step-list li::marker {
  color: var(--blue);
  font-weight: 800;
}

.flow-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.safety-section {
  border-color: #f2d49c;
  background: #fffaf0;
}

.safety-section p {
  color: #61400e;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 23, 38, 0.42);
}

.auth-card {
  width: min(980px, 100%);
  max-height: min(840px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(11, 23, 38, 0.26);
  padding: 24px;
}

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

.auth-card-head h2 {
  margin-bottom: 8px;
}

.auth-card-head p {
  margin-bottom: 0;
}

.panel {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-2);
}

textarea {
  padding-top: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(20, 118, 212, 0.22);
  border-color: var(--blue);
}

.primary-button,
.secondary-button,
.messenger-button,
.action-tile {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

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

.secondary-button {
  background: #e8eef6;
  color: var(--text);
  font-weight: 800;
  padding: 0 18px;
}

.secondary-button:hover {
  background: #dde7f3;
}

.compact {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
}

.danger-text {
  color: #b42318;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.followup-card {
  align-items: start;
}

.due-followups {
  margin-top: 16px;
}

.result-box + .care-note {
  margin-top: 12px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.auth-options {
  display: grid;
  align-content: start;
  gap: 12px;
}

.messenger-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text);
  text-decoration: none;
}

.messenger-button:hover {
  border-color: var(--blue);
}

.messenger-button[disabled] {
  cursor: not-allowed;
  opacity: 0.78;
  border-color: var(--border);
}

.messenger-button span {
  font-weight: 800;
}

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

.hint {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
}

.hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hint-actions a,
.hint-actions button {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hint-actions button {
  cursor: pointer;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-label {
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-tile {
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.action-tile:hover {
  border-color: var(--blue);
}

.tile-icon {
  font-size: 30px;
}

.workspace {
  padding: 22px;
  min-height: 170px;
  scroll-margin-top: 88px;
}

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

.workspace-head h2,
.workspace-head p {
  margin-bottom: 6px;
}

.summary-grid,
.detail-grid {
  display: grid;
  gap: 12px;
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
}

.summary-card,
.profile-card,
.item-card,
.result-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.summary-card {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.summary-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.summary-card span,
.item-card small,
.meta-row span {
  color: var(--muted);
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.guide-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.guide-copy p:last-child {
  margin-bottom: 0;
}

.guide-steps {
  display: grid;
  gap: 10px;
}

.guide-step {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.guide-step:hover {
  border-color: var(--blue);
  background: #f1f8ff;
}

.guide-step strong {
  font-size: 16px;
}

.guide-step span {
  color: var(--muted);
  line-height: 1.4;
}

.profile-card {
  padding: 16px;
  margin-bottom: 16px;
}

.visual-strip {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  margin-bottom: 16px;
}

.visual-strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.visual-strip .visual-logo {
  width: min(180px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  padding: 12px;
}

.visual-strip h3 {
  margin: 0 0 8px;
}

.visual-strip p {
  margin-bottom: 0;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.empty-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.empty-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty-card p {
  margin-bottom: 10px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 24px;
}

.empty-state img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.profile-card h3,
.item-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.detail-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.list-stack {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.item-card p {
  margin-bottom: 4px;
}

.knowledge-results {
  margin-top: 18px;
}

.knowledge-results h3 {
  margin: 0 0 12px;
}

.knowledge-card {
  display: grid;
  align-items: start;
  justify-content: stretch;
}

.knowledge-card details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.knowledge-card summary {
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.knowledge-card details p {
  margin: 10px 0 0;
}

.knowledge-card ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: #34425a;
  line-height: 1.45;
}

.compact-note {
  margin-top: 10px;
  padding: 10px 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.form-grid h3,
.form-grid .primary-button,
.form-grid.one-column,
.full-row {
  grid-column: 1 / -1;
}

.one-column {
  grid-template-columns: 1fr;
}

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

.checkbox-row input {
  width: 20px;
  min-height: 20px;
}

.legal-consent {
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: #34425a;
  font-size: 13px;
  line-height: 1.45;
}

.legal-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.inline-legal-link {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.next-actions .primary-button,
.next-actions .secondary-button {
  width: auto;
  margin-top: 0;
}

.event-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.event-list span {
  color: var(--muted);
  white-space: nowrap;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
}

.result-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.5;
}

.danger {
  background: #fff2f1;
  border-color: #f2b8b5;
  color: #7a271a;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e8;
  color: #61400e;
  border: 1px solid #f2d49c;
}

.notice.danger {
  background: #fff2f1;
  border-color: #f2b8b5;
  color: #7a271a;
}

.legal-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px 34px;
  color: var(--muted);
}

.legal-footer > div {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.legal-footer strong {
  color: var(--text);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.legal-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.legal-footer button:hover,
.inline-legal-link:hover {
  color: var(--blue-dark);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 23, 38, 0.48);
}

.legal-card {
  width: min(920px, 100%);
  max-height: min(840px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(11, 23, 38, 0.28);
}

.legal-card-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.legal-card-head h2 {
  margin: 0;
}

.legal-content {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.legal-content section {
  display: grid;
  gap: 8px;
}

.legal-content h3 {
  margin: 0;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: #34425a;
  line-height: 1.55;
}

.legal-content p {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  margin: 0;
  padding-left: 22px;
}

.legal-meta {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 65px rgba(11, 23, 38, 0.22);
}

.cookie-banner p {
  margin: 6px 0 0;
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-actions .primary-button,
.cookie-actions .secondary-button {
  width: auto;
}

.admin-view {
  width: min(1280px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.admin-login-panel {
  display: grid;
  place-items: center;
  min-height: 56vh;
}

.admin-login-card {
  width: min(520px, 100%);
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.admin-generated {
  color: var(--muted);
  font-weight: 700;
}

.admin-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

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

.admin-status {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.admin-status strong {
  display: block;
  margin-bottom: 4px;
}

.admin-status.ok strong {
  color: var(--green);
}

.admin-status.warn strong {
  color: #b42318;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.admin-table td {
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 86px;
    padding: 10px 62px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 14px;
  }

  .topbar .icon-button {
    right: 12px;
  }

  main {
    padding: 16px 12px 32px;
  }

  .intro-panel {
    min-height: auto;
    padding: 20px;
  }

  .hero-brandmark {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 0 4px;
    text-align: center;
  }

  .hero-brand-logo {
    width: 92px;
    height: 92px;
  }

  .hero-brand-name {
    font-size: 30px;
  }

  .hero-brand-subtitle {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .primary-link,
  .hero-actions .secondary-link {
    width: 100%;
  }

  .product-hero,
  .service-summary,
  .feature-card-grid,
  .service-flow,
  .pricing-grid,
  .channel-grid,
  .auth-grid,
  .summary-grid,
  .admin-summary,
  .admin-status-grid,
  .guide-panel,
  .detail-grid,
  .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 20px;
  }

  .hero-media img {
    max-height: 330px;
    padding: 6px;
  }

  .feature-card,
  .pricing-card,
  .channel-card {
    min-height: auto;
  }

  .auth-dialog {
    align-items: start;
    padding: 12px;
  }

  .auth-card {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .legal-modal {
    align-items: start;
    padding: 12px;
  }

  .legal-card {
    max-height: calc(100vh - 24px);
  }

  .legal-card-head,
  .legal-content {
    padding: 16px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-actions,
  .cookie-actions .primary-button,
  .cookie-actions .secondary-button {
    width: 100%;
  }

  .auth-card-head {
    gap: 12px;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    align-items: flex-start;
  }

  .workspace-head,
  .item-card,
  .event-list li,
  .visual-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .visual-strip {
    grid-template-columns: 1fr;
  }

  .visual-strip img {
    max-height: 260px;
  }

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

  .action-tile {
    min-height: 86px;
  }

  .next-actions .primary-button,
  .next-actions .secondary-button {
    width: 100%;
  }

  .empty-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .empty-icon {
    width: 48px;
    height: 48px;
  }
}
