:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --blue: #1579ef;
  --green: #18b763;
  --gold: #c69a00;
  --teal: #0f9f95;
  --rose: #d83f62;
  --shadow: 0 18px 55px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, .07);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 54%, #f3f8fb 100%);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(221, 227, 234, .8);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .05);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.site-language {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #eef6f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-language button {
  min-width: 38px;
  min-height: 30px;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.site-language button.active {
  color: #fff;
  background: var(--blue);
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"],
.back-link:hover {
  color: var(--blue);
  border-color: rgba(21, 121, 239, .35);
}

.android-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 10px 10px, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 22px 10px, #fff 0 2px, transparent 3px),
    linear-gradient(180deg, #61db35, #12a63f);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08);
}

.view {
  display: none;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 82px;
}

#home,
.view:target {
  display: block;
}

body.has-js-route .view {
  display: none;
}

body.has-js-route .view.is-route-active {
  display: block;
}

body.has-js-route #home.view {
  display: none;
}

body.has-js-route #home.view.is-route-active {
  display: block;
}

body:has(.view:target) #home {
  display: none;
}

body:has(#home:target) #home {
  display: block;
}

.hero {
  display: grid;
  gap: 16px;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.home-view > .hero,
.page-block-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(42px, 7vw, 78px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(241, 248, 255, .97) 48%, rgba(236, 250, 246, .98) 100%);
  border: 1px solid rgba(204, 225, 244, .95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-block-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(360px, 42%);
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--rose));
}

.page-block-hero .lead,
.home-view > .hero .lead {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.page-block-text,
.page-block-faq,
.page-block-apps {
  display: grid;
  gap: 12px;
}

.page-block h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.16;
}

.page-block p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
}

.page-block.align-center {
  text-align: center;
  justify-items: center;
}

.page-block.align-right {
  text-align: right;
  justify-items: end;
}

.page-block.align-center p,
.page-block.align-right p {
  margin-right: 0;
  margin-left: 0;
}

.page-block-image {
  display: block;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.page-block-image.image-small,
.page-block.image-small .page-block-image {
  width: min(360px, 100%);
}

.page-block-image.image-medium,
.page-block.image-medium .page-block-image {
  width: min(620px, 100%);
}

.page-block-image.image-large,
.page-block.image-large .page-block-image {
  width: min(860px, 100%);
}

.page-block.image-full .page-block-image {
  width: 100%;
}

.page-block.align-center .page-block-image {
  margin-right: auto;
  margin-left: auto;
}

.page-block.align-right .page-block-image {
  margin-left: auto;
}

.page-block-divider {
  padding: 20px 0;
}

.page-block-divider hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-block-divider.divider-small {
  padding: 12px 0;
}

.page-block-divider.divider-large {
  padding: 34px 0;
}

.page-block-section {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.page-block-section.section-soft {
  background: #f8fafc;
}

.page-block-section.section-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(237, 247, 255, .98));
  border-color: rgba(21, 121, 239, .28);
}

.page-card-grid,
.page-columns {
  display: grid;
  gap: 14px;
}

.page-block-cards.cards-2 .page-card-grid,
.page-block-columns2 .page-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-block-cards.cards-3 .page-card-grid,
.page-block-columns3 .page-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-block-cards.cards-4 .page-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-card,
.page-column {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.page-card h3,
.page-column h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.page-card p,
.page-column p {
  margin-bottom: 0;
}

.page-block-contact {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.page-embed-content,
.page-embed-content iframe,
.page-embed-content img {
  max-width: 100%;
}

.page-embed-content iframe {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-block-faq details {
  max-width: 760px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.page-block-faq summary {
  cursor: pointer;
  font-weight: 900;
  list-style-position: outside;
}

.page-block-faq details p {
  margin-top: 10px;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.cms-page-view > .page-block:first-child:not(.page-block-hero) {
  padding-top: 18px;
}

.cms-page-view .page-block-text {
  max-width: 860px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 24px 0 44px;
  border-bottom: 1px solid var(--line);
}

.app-card {
  display: grid;
  gap: 13px;
  min-height: 250px;
  padding: 22px 20px 20px;
  align-content: start;
  justify-items: start;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 121, 239, .35);
  box-shadow: var(--shadow);
}

.app-card img {
  width: 72px;
  aspect-ratio: 1;
  object-fit: contain;
}

.app-card span {
  font-weight: 900;
}

.status-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  white-space: pre-wrap;
}

.public-app-card {
  align-content: start;
  justify-items: start;
}

.public-app-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.public-app-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.public-app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.public-app-link,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}

.public-app-link.primary,
.admin-button.primary,
.admin-button.active {
  color: #fff;
  background: linear-gradient(135deg, #1579ef, #0f9f95);
  border-color: transparent;
}

.public-app-link.secondary {
  color: var(--ink);
  background: #eef6f5;
  border-color: rgba(15, 159, 149, .28);
}

.public-app-link.outline {
  color: var(--blue);
  background: transparent;
  border-color: rgba(21, 121, 239, .45);
}

.public-app-link:hover {
  border-color: rgba(21, 121, 239, .42);
  box-shadow: 0 8px 20px rgba(21, 121, 239, .12);
}

.app-detail-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.app-detail-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 96px;
  height: 96px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-detail-icon img,
.app-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f7fbff, #edf4fb);
}

.app-detail-icon .app-image-fallback {
  font-size: 2.4rem;
}

.app-detail-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.app-detail-view .page-block {
  padding: 32px 0;
}

.app-detail-view .page-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.app-detail-view .lead,
.app-detail-view .page-block p {
  max-width: 760px;
}

.app-screenshot-gallery {
  overflow: hidden;
}

.app-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}

.app-screenshot-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(300px, 36vw, 410px);
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  cursor: zoom-in;
}

.app-screenshot-grid img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.app-screenshot-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.app-screenshot-fallback[hidden],
.app-screenshot-grid img[hidden],
.admin-image-fallback[hidden],
.screenshot-preview img[hidden],
.image-preview img[hidden] {
  display: none !important;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 13, 22, .78);
}

.screenshot-lightbox img {
  max-width: min(100%, 980px);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.screenshot-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  cursor: pointer;
}

.app-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.app-feature-list li {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cms-app-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.public-app-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 22px;
}

.public-app-card .app-image {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.public-app-card h2 {
  width: 100%;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
}

.app-card-description {
  display: -webkit-box;
  min-height: 4.35em;
  max-height: 4.35em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app-card-action-group {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.app-card-main-actions,
.app-card-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.app-card-main-actions .public-app-link {
  flex: 1 1 128px;
}

.app-card-secondary-links .public-app-link {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: .8rem;
  background: #f8fafc;
}

.app-detail-view {
  display: grid;
  gap: 28px;
}

.app-detail-hero {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  padding: clamp(24px, 5vw, 44px);
}

.app-detail-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.app-detail-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.app-detail-view .page-block {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.app-detail-view .page-block p {
  color: #243244;
  line-height: 1.7;
}

.app-screenshot-gallery {
  padding-bottom: 30px;
}

.app-screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.app-screenshot-button {
  height: 360px;
  padding: 10px;
  background: #f8fafc;
}

.app-screenshot-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.app-feature-card {
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-detail-view .page-block-faq {
  display: grid;
  gap: 12px;
}

.app-detail-view .page-block-faq details {
  padding: 16px 18px;
  background: #f8fafc;
}

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

.repeat-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.repeat-row:not(.faq-editor-row) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.app-public-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  padding: 34px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, #0f172a, #102033);
  color: #dbe4f0;
}

.site-footer-inner {
  display: flex;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer p {
  margin: 0;
  color: #dbe4f0;
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer-links a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  opacity: .92;
}

.site-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-editor {
  display: grid;
  gap: 12px;
}

.footer-link-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(170px, auto);
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.navigation-editor-list,
.navigation-footer-form,
.preview-grid {
  display: grid;
  gap: 14px;
}

.navigation-editor-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.navigation-editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.navigation-editor-main h4,
.preview-card h4 {
  margin: 0 0 6px;
}

.navigation-editor-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(150px, auto));
  gap: 10px;
  align-items: end;
}

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

.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.preview-card {
  min-width: 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.menu-preview-separator {
  color: var(--muted);
  font-weight: 700;
}

.footer-preview {
  display: grid;
  gap: 10px;
}

.footer-preview p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.footer-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-preview-links span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--ink);
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer-preview-links small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-button.danger {
  color: #b42318;
  border-color: #f3b8b3;
}

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

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
}

.banner {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: center;
  padding: 38px;
  background:
    radial-gradient(circle at 77% 18%, rgba(255, 255, 255, .5) 0 16px, transparent 17px),
    radial-gradient(circle at 92% 58%, rgba(255, 255, 255, .38) 0 12px, transparent 13px),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 46%, #2388ff 100%);
  border: 1px solid #d8e7f7;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.banner::before {
  content: "";
  position: absolute;
  inset: -35% 30% auto -12%;
  height: 92%;
  background: rgba(255, 255, 255, .72);
  border-radius: 0 0 60% 0;
  transform: rotate(5deg);
}

.banner > * {
  position: relative;
}

.banner-icon {
  width: 122px;
  filter: drop-shadow(0 12px 18px rgba(13, 34, 64, .18));
}

.banner h2 {
  margin-bottom: 2px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1;
}

.banner p:not(.eyebrow) {
  max-width: 440px;
  color: #314052;
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin-top: 28px;
}

.feature-row span {
  display: grid;
  min-height: 52px;
  align-items: center;
  padding: 8px;
  color: #203148;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
}

.phone-preview {
  width: 178px;
  min-height: 286px;
  padding: 28px 13px 16px;
  background: #0d1424;
  border-radius: 32px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .24);
  transform: rotate(8deg);
}

.phone-top {
  width: 62px;
  height: 8px;
  margin: -14px auto 16px;
  background: #050814;
  border-radius: 999px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 16px 10px;
  background: #f8fbff;
  border-radius: 16px;
}

.calendar-grid span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  border-radius: 6px;
}

.calendar-grid span:nth-child(5n+1) { background: #1479ef; }
.calendar-grid span:nth-child(5n+2) { background: #35bd35; }
.calendar-grid span:nth-child(5n+3) { background: #ffbd1d; }
.calendar-grid span:nth-child(5n+4) { background: #ef3a38; }
.calendar-grid span:nth-child(5n) { background: #1ec4bd; }

.download-panel {
  display: grid;
  gap: 18px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, #8245ff, #1579ef 68%, #0838a5);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 121, 239, .28);
}

.download-button::before {
  content: "\2193";
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
}

.screen-card {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.mini-screen {
  width: 168px;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(rgba(10, 17, 28, .45), rgba(10, 17, 28, .45)),
    linear-gradient(180deg, #dff4ff, #ffffff 34%, #087b6f 35%, #ffffff 36%, #f4efe7 100%);
  border: 10px solid #26313d;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.dots {
  display: flex;
  gap: 9px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #cbd2da;
  border-radius: 50%;
}

.dots .active {
  background: var(--gold);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 46px;
  margin-top: 34px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.content h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.content h4 {
  margin: 26px 0 10px;
}

.content p,
.content li {
  color: #283445;
}

.policy {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy a {
  color: var(--blue);
  font-weight: 800;
}

.simple-app-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.simple-app-header img {
  width: 112px;
}

.simple-app-header h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.compact-app .content {
  display: block;
}

.app-image,
.app-icon-slot,
.banner-image,
.carousel-slide {
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.app-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 88px;
  height: 88px;
  padding: 6px;
  object-fit: contain;
  border-radius: 20px;
  background-color: #fff;
  border: 1px solid #d6dee8;
}

.app-image.has-image {
  background-color: #fff;
  border-color: var(--line);
}

.app-card img {
  display: none;
}

.app-card .app-image img {
  display: block;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px) auto;
  gap: 28px;
  align-items: center;
  min-height: 340px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 247, 255, .94)),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 48%, #dcefff 100%);
  border: 1px solid #d8e7f7;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-hero.simple {
  min-height: 300px;
}

.app-hero-copy {
  min-width: 0;
}

.app-icon-slot {
  width: 96px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, .72);
  border: 1px dashed #cdd8e4;
}

.app-icon-slot.has-image {
  background-color: transparent;
  border-color: transparent;
  filter: drop-shadow(0 12px 18px rgba(13, 34, 64, .12));
}

.app-hero h2 {
  margin-bottom: 6px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.app-hero p:not(.eyebrow) {
  max-width: 560px;
  color: #314052;
  font-size: 1.05rem;
}

.banner-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, .72);
  border: 1px dashed #cdd8e4;
  border-radius: 8px;
}

.banner-image.has-image {
  background-size: cover;
  border-style: solid;
  border-color: rgba(216, 231, 247, .9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.gallery-wrap {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.carousel {
  display: grid;
  gap: 14px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #f7fafc;
  border: 1px dashed #d6dee8;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  height: 100%;
  min-height: 360px;
  transition: transform .32s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 360px;
  background-size: contain;
}

.carousel-slide:not(.has-image) {
  display: none;
}

.carousel:has(.carousel-slide.has-image) .carousel-viewport {
  background: #0f172a;
  border-style: solid;
  border-color: #d6dee8;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(15, 23, 42, .62);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-control:disabled {
  display: none;
}

.carousel-control.prev {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  min-height: 14px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #cbd2da;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--gold);
}

.content.policy-only {
  display: block;
}

.app-description {
  max-width: 780px;
  margin-top: 18px;
  padding: 0 8px;
  color: #1f2933;
  font-size: 1.05rem;
  line-height: 1.72;
}

.app-description p {
  margin-bottom: 16px;
}

.app-description ul {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding-left: 18px;
}

.language-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.language-switch button {
  padding: 0;
  color: #111827;
  font: inherit;
  font-weight: 900;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.language-switch button:not(.active) {
  color: var(--muted);
  font-weight: 700;
}

.language-panel {
  display: none;
}

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

.policy-link-button {
  display: inline-flex;
  margin-top: 6px;
  color: #111827;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-link-button:hover {
  color: var(--blue);
}

.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 38px 0 28px;
  color: #111827;
  font-size: 16px;
  line-height: 1.7;
}

.policy-page > h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.policy-page .back-link {
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-page h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.policy-page h3 {
  margin: 30px 0 10px;
  font-size: 1.08rem;
}

.policy-page p {
  max-width: 820px;
  margin: 0 0 16px;
}

.policy-page a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-page .page-block-faq {
  padding: 26px 0 0;
  border-bottom: 0;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: start;
}

.detail-banner {
  min-height: 370px;
  aspect-ratio: 2.05 / 1;
  background-color: #ffffff;
  border: 1px dashed #cdd8e4;
  border-radius: 0;
}

.detail-banner.has-image {
  background-size: cover;
  border-style: solid;
  border-color: #d8dee7;
  box-shadow: none;
}

.side-preview {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.side-preview .download-button {
  width: 100%;
  max-width: 178px;
  min-height: 46px;
}

.phone-carousel {
  width: 176px;
  gap: 18px;
}

.phone-carousel .carousel-viewport,
.phone-carousel .carousel-track,
.phone-carousel .carousel-slide {
  min-height: 354px;
}

.phone-carousel .carousel-viewport {
  width: 176px;
  background: #f7fafc;
  border: 1px dashed #cdd8e4;
  border-radius: 0;
}

.phone-carousel .carousel-slide {
  background-size: contain;
}

.phone-carousel:has(.carousel-slide.has-image) .carousel-viewport {
  background: transparent;
  border: 0;
}

.phone-carousel .carousel-control {
  width: 44px;
  height: 44px;
  background: rgba(60, 60, 60, .72);
}

.phone-carousel .carousel-control.prev {
  left: -8px;
}

.phone-carousel .carousel-control.next {
  right: -8px;
}

.phone-carousel .carousel-dots {
  gap: 9px;
}

.admin-body {
  background: #f7fafc;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.admin-panel,
.admin-dashboard {
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.admin-panel {
  padding: 28px;
}

.admin-panel h1,
.admin-dashboard h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-panel h2 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.admin-dashboard {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 234, .9);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.admin-heading-actions,
.form-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-tab {
  min-height: 42px;
  padding: 0 16px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.admin-tab.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.admin-heading-actions {
  justify-content: flex-end;
  align-content: start;
}

.admin-user {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-hero,
.dashboard-section {
  min-width: 0;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.dashboard-hero h3,
.dashboard-section h3 {
  margin: 0 0 8px;
}

.dashboard-public-actions {
  justify-content: flex-end;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-stat-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-stat-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.dashboard-stat-card strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.dashboard-stat-card.ok {
  border-color: #bce7cc;
  background: #f0fbf4;
}

.dashboard-stat-card.warning {
  border-color: #f4d36d;
  background: #fff9e8;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.dashboard-actions .admin-button {
  width: 100%;
}

.dashboard-warning-list,
.dashboard-recent-list,
.dashboard-file-status {
  display: grid;
  gap: 10px;
}

.dashboard-warning,
.dashboard-recent-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.dashboard-warning.ok {
  background: #f0fbf4;
  border-color: #bce7cc;
}

.dashboard-warning span,
.dashboard-recent-item span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}

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

.dashboard-recent-item {
  background: #fff;
  border-color: var(--line);
}

.audit-dashboard-item {
  border-color: #dbeafe;
  background: #f8fbff;
}

.audit-dashboard-item strong {
  overflow-wrap: anywhere;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px;
  align-items: start;
}

.app-overview-panel {
  grid-column: 1 / -1;
}

.app-overview-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.app-overview-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-overview-stat span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.app-overview-stat strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.app-overview-stat.ok {
  background: #ecfdf3;
  border-color: #abefc6;
}

.app-overview-stat.warning {
  background: #fff9e8;
  border-color: #f4d36d;
}

.app-overview-stat.error {
  background: #fff1f3;
  border-color: #fecdd3;
}

.app-overview-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, auto) minmax(170px, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.app-overview-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.app-overview-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.app-overview-table th {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.app-overview-table td {
  padding: 10px;
  font-size: .86rem;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.app-overview-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.app-overview-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.app-overview-slug {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.overview-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #475467;
  font-size: .72rem;
  font-weight: 950;
  background: #eef2f6;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  white-space: nowrap;
}

.overview-badge.ok {
  color: #067647;
  background: #dcfae6;
  border-color: #abefc6;
}

.overview-badge.warning {
  color: #8a5b00;
  background: #fef0c7;
  border-color: #f4d36d;
}

.overview-badge.error {
  color: #b42318;
  background: #ffe4e8;
  border-color: #fecdd3;
}

.overview-badge.empty {
  color: #475467;
  background: #f1f5f9;
}

.overview-badge.archived {
  color: #6941c6;
  background: #f4f3ff;
  border-color: #d9d6fe;
}

.archived-row {
  background: #fbfaff;
}

.archived-row td {
  color: #53389e;
}

.archive-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.app-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.overview-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.overview-mini-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.app-overview-actions .admin-button {
  min-height: 32px;
  padding: 0 9px;
  font-size: .78rem;
}

.page-status-badges,
.page-draft-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.page-save-actions .draft-action {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff;
}

.page-overview-table {
  min-width: 1260px;
}

.draft-preview-panel {
  border-color: #b2ddff;
  background: #f8fbff;
}

.draft-preview-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.draft-preview-heading,
.draft-preview-block {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draft-preview-heading h2,
.draft-preview-block h1,
.draft-preview-block h3,
.draft-preview-card p {
  margin-top: 0;
}

.draft-preview-block h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.draft-preview-block p,
.draft-preview-card {
  overflow-wrap: anywhere;
}

.draft-preview-card {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draft-preview-card p:last-child,
.draft-preview-block p:last-child {
  margin-bottom: 0;
}

.app-status-badges {
  margin: 4px 0 12px;
}

.app-draft-preview-panel {
  margin-top: 12px;
  border-color: #b2ddff;
  background: #f8fbff;
}

.app-draft-preview-content,
.app-draft-preview-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.app-draft-preview-grid {
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  align-items: start;
}

.app-draft-preview-content h5 {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 950;
}

.app-draft-preview-content ul {
  margin: 0;
  padding-left: 18px;
}

.app-draft-preview-content details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.app-draft-card-preview {
  position: sticky;
  top: 12px;
}

.audit-log-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) minmax(180px, auto);
}

.audit-log-table {
  min-width: 980px;
}

.audit-log-table td {
  overflow-wrap: anywhere;
}

.audit-action-badge {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff;
}

.page-builder,
.block-editor,
.block-list {
  display: grid;
  gap: 18px;
}

.page-empty-state {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.large-action {
  width: fit-content;
  min-height: 48px;
  padding: 0 20px;
  font-size: .96rem;
}

.block-editor {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  align-items: start;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.block-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.block-widget-button {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 900;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.block-widget-button:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 121, 239, .35);
  box-shadow: var(--shadow-soft);
}

.section-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.section-template-button {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.section-template-button:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 121, 239, .35);
  box-shadow: var(--shadow-soft);
}

.section-template-button strong {
  font-size: .95rem;
  font-weight: 900;
}

.section-template-button span {
  color: #526274;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
}

.block-list-card {
  gap: 10px;
  border-left: 4px solid rgba(21, 121, 239, .32);
}

.block-list-card h3 {
  margin-bottom: 0;
}

.block-card-summary {
  color: #405064;
  font-weight: 750;
}

.media-manager {
  display: grid;
  gap: 18px;
}

.media-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(140px, auto)) auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

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

.media-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-card h3 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.android-mark.has-logo {
  overflow: hidden;
  background: transparent;
}

.android-mark.has-logo::before,
.android-mark.has-logo::after {
  display: none;
}

.android-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.global-settings-panel {
  display: grid;
  gap: 18px;
}

.branding-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.branding-preview-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 950;
  background: #eef6ff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.branding-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.branding-preview strong,
.branding-preview p {
  margin: 0;
  overflow-wrap: anywhere;
}

.media-usage-badge {
  justify-self: start;
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 950;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.media-usage-badge.used {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abefc6;
}

.media-usage-badge.unused {
  color: #344054;
  background: #f2f4f7;
  border-color: #d0d5dd;
}

.media-usage-badge.draft-only {
  color: #8a5b00;
  background: #fff9e8;
  border-color: #f4d36d;
}

.media-usage-badge.archived-only {
  color: #6941c6;
  background: #f4f3ff;
  border-color: #d9d6fe;
}

.media-usage-badge.unknown {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff;
}

.media-usage-details {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-usage-details strong {
  color: var(--ink);
  font-size: .82rem;
  text-transform: uppercase;
}

.media-usage-details ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.media-usage-details p {
  margin: 0;
  overflow-wrap: anywhere;
}

.media-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .62);
}

.media-picker-panel {
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.media-picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.page-settings-panel {
  grid-column: 1 / -1;
}

.page-builder-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.page-publish-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-toggle {
  width: fit-content;
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-save-actions {
  justify-content: flex-end;
  min-width: 260px;
}

.nested-panel {
  box-shadow: none;
}

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

.block-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.block-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.block-preview-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.block-preview {
  display: grid;
  gap: 10px;
}

.block-preview .page-block-image {
  max-height: 220px;
  object-fit: contain;
}

.faq-editor {
  display: grid;
  gap: 12px;
}

.faq-editor-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-repeat-row h4 {
  margin: 0;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #283445;
  font-weight: 900;
}

.field-help {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-tools select,
.admin-app-picker select,
.admin-card-actions select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
}

.admin-form textarea {
  resize: vertical;
}

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

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.image-preview {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.icon-preview-frame,
.screenshot-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-preview-frame {
  width: 96px;
  aspect-ratio: 1;
}

.image-preview img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: contain;
}

.admin-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f7fbff, #edf4fb);
}

.image-preview-status {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.screenshot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.screenshot-item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-preview {
  width: 100%;
  height: 300px;
}

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

.content-template-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fffdf5;
  border: 1px solid rgba(198, 154, 0, .28);
  border-radius: 8px;
}

.content-template-panel h3,
.content-template-panel h4 {
  margin-bottom: 4px;
}

.content-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-template-advanced {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(198, 154, 0, .24);
}

.app-editor-tabs {
  position: sticky;
  top: 76px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.app-editor-tab {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.app-editor-tab.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.app-editor-panels,
.app-editor-panel,
.app-editor-helper-panel {
  min-width: 0;
}

.app-editor-panel {
  display: grid;
  gap: 16px;
}

.app-editor-panel > h3 {
  margin-bottom: 0;
}

.app-editor-helper-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-unsaved-indicator {
  width: fit-content;
  margin: 0 0 12px;
  color: #92400e !important;
  background: #fffbeb;
  border-color: #fcd34d;
}

.quality-check-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.quality-check-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.quality-check-header h3,
.quality-check-grid h4 {
  margin: 0 0 4px;
}

.quality-status-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #334155;
  font-size: .82rem;
  font-weight: 950;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  white-space: nowrap;
}

.quality-status-badge.ok {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.quality-status-badge.warning {
  color: #8a5b00;
  background: #fff9e8;
  border-color: #f4d36d;
}

.quality-status-badge.error {
  color: #b42318;
  background: #fff1f3;
  border-color: #fecdd3;
}

.quality-status-badge.empty {
  color: #475467;
  background: #f8fafc;
}

.quality-publish-guard {
  margin: 0;
  padding: 10px 12px;
  color: #b42318;
  font-weight: 900;
  background: #fff1f3;
  border: 1px solid #fecdd3;
  border-radius: 8px;
}

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

.quality-check-grid section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quality-check-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quality-check-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #475467;
  font-size: .72rem;
  font-weight: 950;
  background: #f1f5f9;
  border-radius: 999px;
}

.quality-check-row.ok .quality-check-state {
  color: #067647;
  background: #dcfae6;
}

.quality-check-row.warning .quality-check-state {
  color: #8a5b00;
  background: #fef0c7;
}

.quality-check-row.error .quality-check-state {
  color: #b42318;
  background: #ffe4e8;
}

.quality-check-label,
.quality-check-hint,
.quality-url-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quality-check-label {
  font-size: .88rem;
  font-weight: 850;
}

.quality-check-hint {
  grid-column: 2;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.quality-url-list,
.quality-url-actions {
  display: grid;
  gap: 8px;
}

.quality-url-list span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.char-count {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
}

.char-count.warning {
  color: #8a5b00;
}

.char-count.error {
  color: #b42318;
}

.app-editor-warning-list {
  display: grid;
  gap: 8px;
}

.app-editor-warning {
  margin: 0;
  padding: 9px 11px;
  color: #8a5b00;
  font-size: .9rem;
  font-weight: 800;
  background: #fff9e8;
  border: 1px solid #f4d36d;
  border-radius: 8px;
}

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

.seo-snippet-preview,
.social-snippet-preview,
.admin-app-preview-card,
.admin-detail-preview {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-snippet-preview {
  display: grid;
  gap: 4px;
}

.seo-snippet-preview span,
.social-snippet-preview span {
  color: #188038;
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.seo-snippet-preview strong {
  color: #1a0dab;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
}

.seo-snippet-preview p,
.social-snippet-preview p,
.admin-app-preview-card p,
.admin-detail-preview p {
  margin: 0;
  color: #3c4043;
  font-size: .9rem;
  line-height: 1.45;
}

.social-snippet-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.social-snippet-icon,
.admin-preview-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 950;
  background: #eef6ff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.social-snippet-icon img,
.admin-preview-icon img,
.admin-preview-screenshots img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-preview-icon.large {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}

.admin-app-preview-card,
.admin-detail-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-app-preview-card h4,
.admin-detail-preview h4 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-detail-preview-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-preview-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}

.admin-preview-screenshots img {
  height: 150px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cms-backup-import {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.cms-backup-note {
  padding: 12px 14px;
  color: #8a5b00;
  font-weight: 800;
  background: #fff9e8;
  border: 1px solid #f4d36d;
  border-radius: 8px;
}

.backup-import-mode {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.backup-import-mode legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 950;
}

.cms-backup-summary {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.cms-backup-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.cms-backup-summary-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cms-backup-summary-grid span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-backup-summary-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.cms-backup-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
}

.cms-backup-list h4,
.cms-backup-list p {
  margin: 0;
}

.cms-backup-list.warning {
  color: #7a4b00;
  background: #fff9e8;
  border: 1px solid #f4d36d;
}

.cms-backup-list.error {
  color: #9f1b14;
  background: #fff0ed;
  border: 1px solid #f4b7ae;
}

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

.single-import-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.single-import-mode {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.single-import-mode legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 950;
}

.single-import-summary {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.single-import-summary h4 {
  margin: 4px 0 -4px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 950;
}

.single-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.single-import-summary-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.single-import-summary-grid span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.single-import-summary-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.single-import-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
}

.single-import-list h4,
.single-import-list p {
  margin: 0;
}

.single-import-list.warning {
  color: #7a4b00;
  background: #fff9e8;
  border: 1px solid #f4d36d;
}

.single-import-list.error {
  color: #9f1b14;
  background: #fff0ed;
  border: 1px solid #f4b7ae;
}

.preflight-panel {
  display: grid;
  gap: 18px;
}

.gsc-panel {
  display: grid;
  gap: 18px;
}

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

.gsc-output {
  min-height: 280px;
}

.gsc-instructions {
  display: grid;
  gap: 12px;
}

.cms-health-panel {
  display: grid;
  gap: 18px;
}

.cms-health-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.cms-health-score-card strong {
  display: block;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  color: #10243f;
}

.cms-health-score-card span {
  color: #52637a;
  font-weight: 700;
}

.cms-health-progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8f6;
}

.cms-health-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  transition: width 0.2s ease;
}

.cms-health-summary-grid,
.cms-health-grid {
  display: grid;
  gap: 14px;
}

.cms-health-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

.cms-health-actions-card {
  grid-column: 1 / -1;
}

.cms-health-action-list {
  display: grid;
  gap: 10px;
}

.cms-health-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d7e3f4;
  border-radius: 10px;
  background: #fff;
}

.cms-health-action strong {
  display: block;
  color: #10243f;
}

.cms-health-action span {
  display: block;
  margin-top: 4px;
  color: #52637a;
}

.cms-health-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #24466d;
  font-size: 0.78rem;
  font-weight: 800;
}

.seo-quick-fix-panel {
  display: grid;
  gap: 16px;
}

.seo-quick-fix-groups {
  display: grid;
  gap: 16px;
}

.seo-quick-fix-list {
  display: grid;
  gap: 12px;
}

.seo-fix-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e3f4;
  border-radius: 10px;
  background: #fff;
}

.seo-fix-card-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.seo-fix-card-header h4 {
  margin: 0;
}

.seo-fix-meta,
.seo-fix-warning-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-fix-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #24466d;
  font-size: 0.78rem;
  font-weight: 800;
}

.seo-fix-badge.warning {
  background: #fff7df;
  color: #8a5b00;
}

.seo-fix-badge.error {
  background: #ffe7e2;
  color: #9f1f13;
}

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

.seo-fix-column {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.seo-fix-field {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #f8fbff;
}

.seo-fix-field strong {
  color: #10243f;
  font-size: 0.84rem;
}

.seo-fix-field span {
  color: #52637a;
  overflow-wrap: anywhere;
}

.seo-fix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.preflight-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preflight-summary span {
  padding: 8px 12px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preflight-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preflight-card h4 {
  margin: 0;
}

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

.preflight-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
}

.preflight-item.ok {
  border-left-color: var(--green);
}

.preflight-item.warning {
  border-left-color: var(--gold);
}

.preflight-item.error {
  border-left-color: #d92d20;
}

.preflight-item span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.preflight-file-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.production-security-card {
  border-color: #f4d36d;
  background: #fffdf5;
}

.production-status-list {
  display: grid;
  gap: 10px;
}

.production-status-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.production-status-item strong,
.production-status-item span {
  overflow-wrap: anywhere;
}

.production-status-item.ok {
  color: #176b43;
  background: #f0fbf4;
  border-color: #bce7cc;
}

.production-status-item.warning {
  color: #7a4b00;
  background: #fff9e8;
  border-color: #f4d36d;
}

.production-status-item.error {
  color: #9f1b14;
  background: #fff0ed;
  border-color: #f4b7ae;
}

.sensitive-file-list li {
  overflow-wrap: anywhere;
}

.production-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.production-link-grid .admin-button {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.preflight-sitemap-output {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font-family: Consolas, Monaco, monospace;
  font-size: .86rem;
  line-height: 1.45;
}

.seo-recommendations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-weight: 750;
}

.seo-url-output {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  resize: vertical;
  overflow: auto;
  white-space: pre;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.seo-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.seo-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.seo-card h4,
.seo-card h5 {
  margin: 0;
}

.seo-meta-list {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: .88rem;
  font-weight: 700;
}

.seo-status-badge {
  padding: 5px 9px;
  font-size: .76rem;
  font-weight: 950;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.seo-status-ok {
  color: #176b43;
  background: #e9f8ef;
  border-color: #bce7cc;
}

.seo-status-warning {
  color: #8a5b00;
  background: #fff7df;
  border-color: #f4d36d;
}

.seo-status-error {
  color: #b42318;
  background: #fff0ed;
  border-color: #f4b7ae;
}

.seo-status-info {
  color: #1d4ed8;
  background: #eef4ff;
  border-color: #bfdbfe;
}

.google-preview,
.social-preview {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.google-preview-title {
  color: #1a0dab;
  font-size: 1rem;
  font-weight: 500;
}

.google-preview-url {
  color: #0b8043;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.google-preview-description,
.social-preview-description {
  color: #4b5563;
  font-size: .88rem;
  line-height: 1.45;
}

.social-preview {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.social-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-preview-domain {
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.social-preview-title,
.social-preview-domain {
  overflow-wrap: anywhere;
}

.social-preview-title {
  color: var(--ink);
  font-weight: 950;
}

.publish-check-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-check-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.publish-check-header h3 {
  margin-bottom: 4px;
}

.publish-check-list {
  display: grid;
  gap: 8px;
}

.publish-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-check-icon {
  font-weight: 900;
}

.publish-check-label {
  color: var(--ink);
  font-weight: 800;
}

.publish-check-state {
  justify-self: end;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.publish-check-item.is-ok {
  border-color: rgba(24, 183, 99, .28);
}

.publish-check-item.is-missing {
  border-color: rgba(216, 63, 98, .32);
}

.publish-check-item.is-recommended {
  border-color: rgba(198, 154, 0, .34);
}

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

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-tools label,
.admin-app-picker label {
  display: grid;
  gap: 7px;
  color: #283445;
  font-weight: 900;
}

.admin-debug {
  margin: 0 0 16px;
  padding: 12px;
  overflow: auto;
  color: #314155;
  font: 700 .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

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

.admin-table th {
  color: var(--ink);
  font-weight: 900;
  background: #f8fafc;
}

.admin-app-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-app-picker,
.admin-selected-app {
  display: grid;
  gap: 14px;
}

.admin-app-card h3 {
  margin-bottom: 4px;
}

.admin-app-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.admin-app-meta {
  font-size: .86rem;
  font-weight: 800;
}

.publish-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px !important;
  padding: 0 9px;
  color: #7a2e0e !important;
  font-size: .78rem;
  font-weight: 900;
  background: #fff4e5;
  border: 1px solid #ffd6a8;
  border-radius: 999px;
}

.publish-status.published {
  color: #067647 !important;
  background: #ecfdf3;
  border-color: #abefc6;
}

[data-page-unsaved] {
  width: fit-content;
  margin: 10px 0 0;
  color: #92400e !important;
  background: #fffbeb;
  border-color: #fcd34d;
}

.hidden,
.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .app-grid,
  .showcase,
  .content,
  .app-hero,
  .detail-top,
  .admin-layout,
  .block-editor,
  .app-detail-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-recent-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-public-actions {
    justify-content: flex-start;
  }

  .admin-heading {
    display: grid;
  }

  .topbar,
  .site-footer-inner {
    align-items: flex-start;
  }

  .nav,
  .site-footer-inner {
    flex-wrap: wrap;
  }

  .page-builder-heading,
  .page-publish-bar {
    display: grid;
  }

  .page-save-actions {
    justify-content: start;
    min-width: 0;
  }

  .banner {
    grid-template-columns: 88px 1fr;
  }

  .banner-icon {
    width: 88px;
  }

  .phone-preview {
    display: none;
  }

  .download-panel {
    justify-items: start;
  }

  .simple-app-header {
    grid-template-columns: 86px 1fr;
  }

  .simple-app-header .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-hero .download-button {
    width: 100%;
  }

  .side-preview {
    justify-items: start;
  }

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

  .repeat-row:not(.faq-editor-row) {
    grid-template-columns: 1fr;
  }

  .phone-carousel {
    width: min(220px, 100%);
  }

  .phone-carousel .carousel-viewport {
    width: min(220px, 100%);
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px 12px;
  }

  .brand {
    grid-column: 1;
    max-width: calc(100vw - 132px);
    gap: 10px;
    font-size: 1rem;
  }

  .android-mark {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
  }

  .nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
    align-items: stretch;
    overflow: visible;
    padding-top: 0;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
    color: #2f3b4c;
    font-size: .88rem;
    line-height: 1.15;
    text-align: center;
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(221, 227, 234, .92);
    border-radius: 8px;
    white-space: normal;
  }

  .site-language {
    position: absolute;
    top: 12px;
    right: 12px;
    flex: 0 0 auto;
  }

  .site-language button {
    min-width: 36px;
    min-height: 32px;
  }

  .view {
    width: min(calc(100% - 24px), 1120px);
    padding: 20px 0 48px;
  }

  .hero {
    gap: 12px;
    padding: 24px 0 22px;
  }

  .home-view > .hero,
  .page-block-hero {
    margin-bottom: 8px;
    padding: 22px 16px 24px;
    border-radius: 8px;
  }

  .home-view > .hero h1,
  .page-block-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.07;
  }

  .app-detail-hero h1,
  .policy-page > h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.08;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: .72rem;
    line-height: 1.35;
  }

  .lead,
  .page-block-hero .lead,
  .home-view > .hero .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .page-block {
    padding: 22px 0;
  }

  .page-block-section,
  .page-block-contact {
    padding: 18px;
  }

  .page-card-grid,
  .page-columns,
  .page-block-cards.cards-2 .page-card-grid,
  .page-block-cards.cards-3 .page-card-grid,
  .page-block-cards.cards-4 .page-card-grid,
  .page-block-columns2 .page-columns,
  .page-block-columns3 .page-columns {
    grid-template-columns: 1fr;
  }

  .page-card,
  .page-column {
    padding: 15px;
  }

  .page-block-image,
  .page-block.image-small .page-block-image,
  .page-block.image-medium .page-block-image,
  .page-block.image-large .page-block-image {
    width: 100%;
  }

  .media-toolbar {
    grid-template-columns: 1fr;
  }

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

  .app-overview-table-wrap {
    overflow-x: visible;
  }

  .app-overview-table {
    min-width: 0;
    border-spacing: 0 10px;
  }

  .app-overview-table thead {
    display: none;
  }

  .app-overview-table,
  .app-overview-table tbody,
  .app-overview-table tr,
  .app-overview-table td {
    display: block;
    width: 100%;
  }

  .app-overview-table tr {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .app-overview-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    background: transparent;
    border: 0;
  }

  .app-overview-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .app-overview-table td:first-child,
  .app-overview-table td:last-child {
    border: 0;
    border-radius: 0;
  }

  .app-overview-actions {
    min-width: 0;
  }

  .app-draft-preview-grid {
    grid-template-columns: 1fr;
  }

  .app-draft-card-preview {
    position: static;
  }

  .media-grid,
  .media-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .media-picker-modal {
    padding: 10px;
  }

  .media-picker-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .page-embed-content iframe {
    min-height: 220px;
  }

  .page-block h2,
  .app-detail-view .page-block h2 {
    font-size: 1.45rem;
  }

  .page-block p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .publish-check-header,
  .publish-check-item {
    grid-template-columns: 1fr;
  }

  .publish-check-header {
    display: grid;
  }

  .publish-check-state {
    justify-self: start;
  }

  .app-editor-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
  }

  .app-editor-tab {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: .82rem;
    line-height: 1.15;
    white-space: normal;
  }

  .quality-check-card {
    padding: 12px;
  }

  .quality-check-header,
  .quality-check-grid,
  .quality-url-actions {
    grid-template-columns: 1fr;
  }

  .quality-status-badge {
    width: fit-content;
    white-space: normal;
  }

  .quality-check-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .quality-check-hint {
    grid-column: 1 / -1;
  }

  .app-editor-helper-panel,
  .seo-snippet-preview,
  .social-snippet-preview,
  .admin-app-preview-card,
  .admin-detail-preview {
    padding: 12px;
  }

  .seo-preview-grid,
  .app-editor-preview-grid,
  .social-snippet-preview,
  .admin-detail-preview-header {
    grid-template-columns: 1fr;
  }

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

  .app-preview-actions .admin-button {
    flex: 1 1 100%;
  }

  .seo-snippet-preview,
  .social-snippet-preview,
  .admin-app-preview-card,
  .admin-detail-preview,
  .app-editor-warning,
  .field-help {
    overflow-wrap: anywhere;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0 30px;
  }

  .app-card {
    min-height: 0;
    padding: 16px;
    gap: 10px;
  }

  .public-app-card {
    min-height: 0;
  }

  .public-app-card .app-image {
    width: 64px;
    height: 64px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 15px;
  }

  .app-card > img {
    margin-right: auto;
    margin-left: auto;
  }

  .public-app-card h2,
  .app-card-description {
    min-height: auto;
  }

  .public-app-card h2 {
    font-size: 1.12rem;
  }

  .app-card-description {
    display: block;
    max-height: none;
    color: #405064;
    font-size: .96rem;
    line-height: 1.5;
  }

  .app-card-action-group {
    gap: 8px;
  }

  .app-card-main-actions,
  .app-card-secondary-links,
  .app-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-card-main-actions .public-app-link,
  .public-app-link {
    min-height: 42px;
  }

  .app-card-secondary-links {
    gap: 5px;
  }

  .app-card-secondary-links .public-app-link {
    min-height: 36px;
    color: #607086;
    font-size: .82rem;
    font-weight: 800;
    background: transparent;
    border-color: rgba(221, 227, 234, .75);
  }

  .app-detail-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .app-detail-icon {
    width: 82px;
    height: 82px;
    padding: 6px;
    border-radius: 18px;
  }

  .app-detail-view {
    gap: 18px;
  }

  .app-detail-view .lead {
    margin-bottom: 14px;
  }

  .app-feature-grid,
  .app-feature-list {
    grid-template-columns: 1fr;
  }

  .app-feature-card,
  .app-feature-list li {
    padding: 14px;
    font-size: .96rem;
    line-height: 1.5;
  }

  .app-screenshot-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-screenshot-button {
    width: 100%;
    height: min(72vh, 420px);
    min-height: 300px;
    padding: 8px;
  }

  .app-detail-view .page-block {
    padding: 18px;
  }

  .app-detail-view .page-block-faq details,
  .page-block-faq details {
    max-width: 100%;
    padding: 14px;
  }

  .app-detail-view .page-block-faq summary,
  .page-block-faq summary {
    line-height: 1.35;
  }

  .policy-page {
    max-width: 100%;
    padding: 20px 0 12px;
    font-size: 1rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .policy-page h2 {
    font-size: 1.1rem;
  }

  .policy-section {
    padding: 16px 0;
  }

  .screenshot-preview {
    height: 260px;
  }

  .banner,
  .content,
  .simple-app-header,
  .app-hero,
  .gallery-wrap,
  .admin-panel,
  .admin-heading {
    padding: 22px;
  }

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

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

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

  .carousel-viewport,
  .carousel-track,
  .carousel-slide {
    min-height: 300px;
  }

  .detail-banner {
    min-height: 190px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    padding: 26px 18px;
  }

  .site-footer-inner {
    display: grid;
    justify-items: start;
    gap: 12px;
  }

  .site-footer p {
    font-size: .95rem;
    line-height: 1.5;
  }

  .site-footer-links {
    gap: 8px 14px;
  }

  .site-footer-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  .policy-page {
    padding-top: 24px;
  }

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

  .seo-card {
    padding: 14px;
  }

  .dashboard-hero,
  .dashboard-section {
    padding: 14px;
  }

  .dashboard-stat-grid,
  .dashboard-actions,
  .cms-backup-summary-grid,
  .single-import-summary-grid,
  .cms-health-score-card,
  .cms-health-grid,
  .gsc-grid,
  .production-link-grid {
    grid-template-columns: 1fr;
  }

  .cms-health-action {
    grid-template-columns: 1fr;
  }

  .seo-fix-comparison {
    grid-template-columns: 1fr;
  }

  .single-import-controls,
  .single-import-mode,
  .single-import-summary,
  .single-import-list {
    width: 100%;
    min-width: 0;
  }

  .dashboard-actions .admin-button,
  .dashboard-public-actions .admin-button {
    width: 100%;
    min-height: 44px;
  }

  .backup-import-mode,
  .cms-backup-list {
    padding: 12px;
  }

  .navigation-editor-card {
    padding: 14px;
  }

  .navigation-editor-main,
  .navigation-editor-fields,
  .preview-grid,
  .footer-link-row.navigation-footer-link-row {
    grid-template-columns: 1fr;
  }

  .navigation-editor-actions,
  .navigation-footer-link-row .admin-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .navigation-editor-actions .admin-button,
  .navigation-footer-link-row .admin-button {
    width: 100%;
    min-width: 0;
  }

  .menu-preview {
    gap: 6px;
    font-size: .92rem;
  }

  .footer-preview-links {
    display: grid;
  }

  .footer-preview-links span {
    min-width: 0;
  }

  .social-preview {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .social-preview img {
    width: 56px;
    height: 56px;
  }

  .seo-url-output,
  .preflight-sitemap-output {
    max-width: 100%;
  }
}
