/* مُستدام — Light visual direction (v4) overrides */
/* ===================== Light visual direction (v4) =====================
   Component system: كود المنصات (bundle.css) — unchanged APIs.
   This layer only sets the light, airy surface treatment for مُستدام. */
body {
  background: var(--bg);
}
/* chrome */
.demo-bar {
  background: var(--surface-muted);
  border-bottom-color: var(--line);
}
.demo-bar .ms-seg {
  background: var(--surface);
  border-color: var(--line);
}
.demo-bar .ms-seg button.is-active {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.demo-count {
  background: var(--brand);
}
.app-topnav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--line);
}
.ms-navlink.is-active {
  color: var(--brand-ink);
}
.app-body {
  background: var(--surface-muted);
}
.app-sidebar {
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
}
.ms-sidebar__item {
  border-radius: var(--radius-md);
}
.ms-sidebar__item.is-active {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.ms-sidebar__item.is-active::before {
  display: none;
}
.app-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}
/* soft white surfaces */
.ms-figures {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.ms-figure + .ms-figure {
  border-color: var(--line);
}
.ms-figure__value {
  color: var(--ink-strong);
}
.ms-table-wrap,
.docv-list,
.memo__panel,
.decision__panel,
.permit-row,
.reply,
.msg,
.acct-type,
.demo-accounts button,
.ms-card,
.ms-file {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.ms-table-wrap {
  border-radius: var(--radius-lg);
}
.ms-table th {
  background: var(--surface-muted);
  color: var(--ink-subtle);
  font-weight: 500;
  border-bottom-color: var(--line);
}
.ms-table td {
  border-bottom-color: var(--line);
}
.ms-table tbody tr:hover td {
  background: var(--brand-tint);
}
.app-main .ms-section {
  border-top-color: var(--line);
}
.ms-divider {
  background: var(--line);
}
/* status: calm soft pills (same StatusIndicator, softer rendering) */
.ms-status {
  height: 26px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--gray-100);
  color: var(--ink-muted);
  white-space: nowrap;
}
.ms-status::before {
  width: 6px;
  height: 6px;
}
.ms-status--submitted {
  background: var(--info-soft);
  color: var(--info);
}
.ms-status--review {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.ms-status--returned {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.ms-status--approved {
  background: var(--success-soft);
  color: var(--success);
}
.ms-status--published {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.ms-status--published::before {
  box-shadow: none;
}
.ms-status--rejected {
  background: var(--danger-soft);
  color: var(--danger);
}
.ms-status--closed {
  background: var(--gray-100);
  color: var(--ink-subtle);
}
.ms-status--closed::before {
  background: var(--ink-subtle);
}
.ms-badge {
  border-color: var(--line);
}
.ms-alert {
  border-radius: var(--radius-md);
}
/* public */
.hero {
  background: var(--grad-wash);
  margin-top: calc(var(--space-8) * -1);
  padding-top: var(--space-16);
}
.hero__title {
  color: var(--ink-strong);
}
.hero__search {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.hero__search .ms-control {
  background: var(--surface-muted);
}
.hero__memo {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.hero__memo:hover {
  box-shadow: var(--shadow-lift);
}
.hero__tag svg {
  color: var(--gold);
}
.app-opp {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.app-opp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.band {
  background: var(--brand-tint);
  box-shadow: 0 0 0 100vmax var(--brand-tint);
  clip-path: inset(0 -100vmax);
  border-top: 0 !important;
}
.band + .ms-section {
  border-top: 0;
}
.band .region-map {
  background: var(--surface);
}
.region-bar i,
.bars__track i,
.ms-progress > span {
  background: var(--grad-bar) !important;
}
.region-bar,
.bars__track {
  background: var(--gray-200);
}
.how__steps li {
  border-top-color: var(--green-400);
}
.type-row {
  border-color: var(--line) !important;
}
.type-row:hover {
  background: var(--brand-tint);
}
.searchbar {
  border-color: var(--line);
}
.market__filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5, 20px);
  box-shadow: var(--shadow-soft);
}
.filter-chip {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
  color: var(--brand-ink);
}
.memo__panel {
  border-radius: var(--radius-lg);
}
.memo__image {
  border: 1px solid var(--line);
}
.locked {
  background: var(--support-soft);
  border-color: var(--teal-200);
}
.locked__icon {
  color: var(--support);
}
.checklist li,
.permit-list li {
  border-color: var(--line);
}
.checklist li.ok .checklist__mark {
  background: var(--success-soft);
  color: var(--success);
}
.ms-condition {
  border-color: var(--line);
}
/* illustrations */
.parcel .p-ground {
  fill: #f6f1e6;
}
.parcel .p-bld {
  fill: #e4ddcf;
}
.parcel .p-bld2 {
  fill: #ddd3bf;
}
.parcel .p-road {
  fill: #ffffff;
}
.parcel .p-lot {
  fill: var(--green-50);
}
.parcel .p-line {
  stroke: var(--green-500);
  stroke-width: 2;
}
.parcel .p-hatch {
  stroke: var(--green-300);
  stroke-opacity: 0.5;
}
.parcel .p-arch {
  fill: var(--gold-300);
}
.ksamap .m-sea {
  fill: var(--surface);
}
.ksamap .m-land {
  fill: var(--green-50);
  stroke: var(--green-200);
}
.ksamap .m-dot {
  fill: var(--green-300);
  opacity: 0.45;
}
.ksamap .m-pin-core {
  fill: var(--brand);
}
.ksamap .m-pin-halo {
  fill: var(--green-400);
  opacity: 0.22;
}
.region-map,
.loc-map {
  border-color: var(--line);
}
/* forms & wizard */
.ms-control {
  background: var(--surface);
}
.wiz__stepper {
  border-color: var(--line);
}
.wiz__foot {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-color: var(--line);
  box-shadow: 0 -4px 20px rgba(26, 36, 32, 0.04);
}
.ms-form-section {
  border-color: var(--line);
}
.ms-drop {
  background: var(--brand-tint);
  border-color: var(--green-200);
}
.ms-drop:hover,
.ms-drop.is-over {
  border-color: var(--brand);
  background: var(--green-50);
}
.chip span {
  border-color: var(--line-strong);
}
.chip input:checked + span {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}
.ms-choice-card {
  border-color: var(--line-strong);
}
.ms-choice-card.is-checked {
  background: var(--brand-tint);
  border-color: var(--brand);
}
.lifecycle__s i {
  background: var(--gray-200);
}
.lifecycle__s.done i {
  background: var(--green-400);
}
.lifecycle__s.cur i {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.review .ms-summary-head {
  border-bottom: 1px solid var(--line);
}
.docv__icon {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.decision__panel {
  border-top: 3px solid var(--brand);
}
/* auth */
.auth {
  background: var(--grad-wash);
  margin-top: calc(var(--space-8) * -1);
  padding-top: var(--space-12);
}
.auth__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-10, 40px);
  box-shadow: var(--shadow-soft);
}
/* overlays */
.app-drawer {
  box-shadow: var(--shadow-lift);
}
.ms-dialog {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  border-radius: var(--radius-lg);
}
.app-toast {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.app-toast--success svg {
  color: var(--success);
}
.app-toast--danger svg {
  color: var(--danger);
}
.app-toast--info svg {
  color: var(--info);
}
.subnav {
  border-color: var(--line);
}
@media (max-width: 680px) {
  .hero {
    margin-top: calc(var(--space-4) * -1);
    padding-top: var(--space-8);
  }
  .auth {
    margin-top: calc(var(--space-4) * -1);
    padding-top: var(--space-6);
  }
  .auth__card {
    padding: var(--space-6);
  }
  .market__filters {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .app-table .ms-table tr {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
  }
  .app-body {
    background: var(--surface-muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-opp:hover {
    transform: none;
  }
}
.ms-error[hidden] {
  display: none !important;
}

/* ===== Top section: demo bar, nav, hero (v5) ===== */
.demo-bar { background: var(--surface); border-bottom: 1px solid var(--line); justify-content: flex-start; padding: 10px var(--space-6); gap: 10px; }
.demo-bar__label { color: var(--ink-strong); font-weight: 600; }
.demo-bar .ms-seg { background: transparent; border: 0; padding: 0; gap: 8px; }
.demo-bar .ms-seg button { height: 34px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-strong); font-size: 13px; }
.demo-bar .ms-seg button:hover { border-color: var(--brand); }
.demo-bar .ms-seg button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.demo-bar .ms-btn--ghost { border-radius: 999px; border: 1px solid var(--line); }

.hero { position: relative; overflow: hidden; background: #134e39; color: #fff; margin-top: calc(var(--space-8) * -1); padding: 0; min-height: 560px; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #134e39 url("../assets/hero-bg.webp") left center / auto 100% no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(19,78,57,0) 0%, rgba(19,78,57,.55) 40%, #134e39 62%); }
.hero__grid { display: block; width: 100%; padding-block: 72px; }
.hero__copy { max-width: 680px; margin-inline-start: 0; }
.hero__pill { display: inline-block; padding: 4px 14px; border: 1px solid rgba(208,153,69,.7); border-radius: 999px; color: var(--gold); font-size: 12px; margin-bottom: 22px; }
.hero__title { color: #fff; font-size: 64px; line-height: 1.2; }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__sub { color: rgba(255,255,255,.88); font-size: 19px; line-height: 34px; max-width: 560px; margin-top: 20px; }
.hero__cta { margin-top: 36px; gap: 14px; }
.hero__btn { height: 50px; padding: 0 28px; border-radius: 10px; font-size: 16px; font-weight: 600; }
.hero__btn--gold { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
.hero__btn--gold:hover { background: #bd8838; }
.hero__btn--line { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.hero__btn--line:hover { background: rgba(255,255,255,.1); }
.hero__stats { display: flex; gap: 56px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__stats b { display: block; color: var(--gold); font-size: 28px; font-weight: 600; line-height: 1.2; }
.hero__stats b small { font-size: 18px; }
.hero__stats span { font-size: 14px; color: rgba(255,255,255,.9); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__grid { padding-block: 48px; }
  .hero__title { font-size: 38px; }
  .hero__sub { font-size: 16px; line-height: 28px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stats b { font-size: 22px; }
  .hero::after { background: rgba(19,78,57,.8); }
}

/* ===== Platform-wide harmony with the hero (v6) ===== */
body { background: var(--bg); }
/* top nav */
.app-topnav { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(19,78,57,.04); }
.ms-brandmark { color: var(--brand); }
.brand-mark--new { width: 46px; height: 46px; object-fit: contain; }
.ms-brandmark small { color: var(--ink-muted); }
.ms-navlink { color: var(--ink-strong); font-weight: 500; }
.ms-navlink:hover { color: var(--brand); }
.ms-navlink.is-active { color: var(--brand); }
.ms-navlink.is-active::after { background: var(--gold); height: 3px; }
.nav-login { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 8px; }
.nav-login:hover { background: var(--brand-hover); }
.nav-signup { background: transparent; border: 1px solid var(--gold); color: var(--brand); border-radius: 8px; }
.nav-signup:hover { background: var(--gold); color: #fff; }
.ms-btn--primary { border-radius: 8px; }
.ms-btn--outline { border-color: var(--brand); color: var(--brand); border-radius: 8px; }
.ms-btn--outline:hover { background: var(--brand-tint); }
.app-area { color: var(--gold); font-weight: 600; border-inline-start-color: var(--gold); }
.ms-avatar { background: var(--brand); color: #fff; }

/* page headers = green band like the hero */
header.ms-pagehead, .list-head { background: #134e39; color: #fff; border: 0; border-radius: 16px; padding: 28px 32px; position: relative; overflow: hidden; isolation: isolate; }
header.ms-pagehead::before, .list-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/hero-bg.webp") left center / auto 220% no-repeat; opacity: .35; -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); }
.ms-pagehead .ms-pagehead__title, .list-head .ms-pagehead__title { color: #fff; }
.ms-pagehead .ms-pagehead__desc, .ms-pagehead__meta, .list-head .ms-pagehead__desc { color: rgba(255,255,255,.85); }
.ms-pagehead__meta b { color: var(--gold); }
.ms-pagehead .ms-crumbs, .list-head .ms-crumbs, .ms-pagehead .ms-crumbs, .list-head .ms-crumbs a, .ms-pagehead .ms-crumbs, .list-head .ms-crumbs li { color: rgba(255,255,255,.75); }
.ms-pagehead .ms-crumbs, .list-head .ms-crumbs [aria-current] { color: var(--gold); }
.ms-pagehead .ms-btn--primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.ms-pagehead .ms-btn--outline, .ms-pagehead .ms-btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.ms-pagehead .ms-btn--outline:hover, .ms-pagehead .ms-btn--ghost:hover { background: rgba(255,255,255,.12); }
.ms-pagehead .ms-status { background: rgba(255,255,255,.14); color: #fff; }

/* sidebar */
.app-sidebar { background: #134e39; border-inline-start: 0; }
.app-sidebar .ms-sidebar__group { color: var(--gold); }
.app-sidebar .ms-sidebar__item { color: rgba(255,255,255,.88); }
.app-sidebar .ms-sidebar__item svg { color: var(--gold); }
.app-sidebar .ms-sidebar__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .ms-sidebar__item.is-active { background: rgba(208,153,69,.18); color: #fff; box-shadow: inset -3px 0 0 var(--gold); }
.app-sidebar .ms-sidebar__item .count { background: var(--gold); color: #fff; }
.app-body { background: var(--bg); }

/* figures / cards / sections */
.ms-figures { border-top: 3px solid var(--gold); }
.ms-figure__value { color: var(--brand); }
.ms-section__title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 8px; }
.app-main .ms-section .ms-section__title::after { width: 32px; }
.ms-tag, .ms-chip { border-color: var(--gold); }
.ms-seg button.is-active { color: var(--brand); }
.region-bar i { background: var(--gold); }
.how__n { background: var(--gold); color: #fff; }
a.ms-btn--ghost { color: var(--brand); }
.ms-table thead th { background: var(--brand-tint); color: var(--brand); }

/* footer */
.app-footer { background: #134e39; color: #fff; border-top: 3px solid var(--gold); }

.app-footer .ms-muted, .app-footer p { color: rgba(255,255,255,.78) !important; }
.app-footer__grid b { color: var(--gold); }
.app-footer__grid a { color: rgba(255,255,255,.85); }
.app-footer__grid a:hover { color: var(--gold); }
.app-footer .ms-divider { background: rgba(255,255,255,.2); }

/* sign-in pages */
.auth { background: #134e39 url("../assets/hero-bg.webp") left center / auto 100% no-repeat; position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(19,78,57,.2), #134e39 75%); pointer-events: none; }
.auth > * { position: relative; }
.auth__card { border-top: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
@media (max-width: 760px) { .ms-pagehead { padding: 20px; border-radius: 12px; } }

.nav-signup { border-style: solid !important; }
.list-head { margin-bottom: 24px; display:block; }
.ms-tab.is-active, .ms-tabs .is-active { color: var(--brand); }
.ms-tab.is-active::after, .ms-tabs .is-active::after { background: var(--gold) !important; }

/* page backgrounds = #F7F2E8 */
html, body, .app-body, .app-main, .app-public, .app-topnav, #app { background: #f7f2e8; }
.app-topnav { border-bottom-color: #e4ddcf; }

/* home: map card & band close to page background */
.band { background: #f7f2e8; box-shadow: 0 0 0 100vmax #f7f2e8; }
.band .region-map { background: #f3ecdd; border-color: #e4ddcf; }
.band .ksamap .m-sea { fill: #f3ecdd; }
.band .ksamap .m-land { fill: #ece3d0; stroke: #cdbf9f; }

/* ===== Home page (reference layout) ===== */
.hfeat { background: #fdfaf4; padding: 48px 0 56px; }
.hfeat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hfeat__card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e4ddcf; border-radius: 14px; padding: 20px 22px; text-decoration: none; position: relative; transition: box-shadow .2s, transform .2s; }
.hfeat__card:hover { box-shadow: 0 8px 24px rgba(19,78,57,.1); transform: translateY(-2px); }
.hfeat__ic { align-self: flex-start; color: var(--gold); margin-bottom: 6px; }
.hfeat__ic svg { width: 26px; height: 26px; }
.hfeat__card b { color: var(--ink-strong); font-size: 17px; }
.hfeat__card > span:last-child { color: var(--ink-muted); font-size: 13.5px; line-height: 22px; }
.hsoon { background-color: #f7f2e8; background-image: radial-gradient(rgba(208,153,69,.28) 1px, transparent 1.2px); background-size: 16px 16px; border-block: 1px solid #e4ddcf; padding: 52px 0 60px; }
.hsoon__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.hsoon__head h2, .htypes h2 { font-size: 28px; font-weight: 700; color: var(--ink-strong); margin: 0; }
.hsoon__head p { color: var(--ink-muted); margin: 6px 0 0; font-size: 14px; }
.hsoon__all { color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.hsoon__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #e4ddcf; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.hcard:hover { box-shadow: 0 8px 24px rgba(19,78,57,.12); transform: translateY(-2px); }
.hcard__top { display: flex; justify-content: space-between; align-items: center; }
.hcard__type { background: #f4e6cc; color: #8a5b14; border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 600; }
.hcard__state { color: var(--success); font-size: 12px; font-weight: 600; }
.hcard h3 { margin: 4px 0 2px; font-size: 17px; line-height: 26px; color: var(--ink-strong); }
.hcard__line { display: flex; gap: 6px; align-items: center; color: var(--ink-muted); font-size: 13px; }
.hcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px solid #e4ddcf; margin-top: 8px; padding-top: 12px; }
.hcard__foot small { display: block; color: var(--ink-muted); font-size: 12px; }
.hcard__foot b { color: var(--ink-strong); font-size: 16px; }
.hcard__end { color: #c62828; font-size: 13px; font-weight: 600; }
.hcard__time { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-muted); font-size: 13px; }
.htypes { background: #fdfaf4; padding: 56px 0 28px; }
.htypes h2 { margin-bottom: 22px; }
.htypes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.htypes__card { background: #fff; border: 1px solid #e4ddcf; border-radius: 12px; padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.htypes__card b { color: var(--brand); font-size: 18px; font-weight: 500; }
.htypes__card span { color: var(--ink-muted); font-size: 12.5px; }
.htypes__card:hover { border-color: var(--gold); }
.app-public:has(.hero) { background: #fdfaf4; }
.app-public:has(.hero) .band, .app-public:has(.hero) .band { background: #fdfaf4; box-shadow: 0 0 0 100vmax #fdfaf4; }
.app-public:has(.hero) .hero { margin-bottom: 0; }
/* compact footer */
.app-footer { padding: 36px 0; }
.app-footer__row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; align-items: start; }
.app-footer__name { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 24px; font-weight: 700; }
.app-footer__sq { display: grid; place-items: center; width: 52px; height: 52px; background: #fdfaf4; border-radius: 12px; }
.app-footer__sq img { width: 38px; height: 38px; object-fit: contain; }
.app-footer__brand p { color: rgba(255,255,255,.85); font-size: 13.5px; line-height: 24px; margin: 10px 0 0; max-width: 420px; }
.app-footer__links b { display: block; color: #fff; font-size: 14px; margin-bottom: 8px; }
.app-footer__links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13.5px; }
.app-footer__links a:hover { color: var(--gold); }
.app-footer__links span { line-height: 26px; }
.app-footer__copy { color: rgba(255,255,255,.85); font-size: 12.5px; padding-top: 4px; }
@media (max-width: 900px) {
  .hfeat__grid, .htypes__grid { grid-template-columns: repeat(2, 1fr); }
  .hsoon__grid { grid-template-columns: 1fr 1fr; }
  .app-footer__row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .hsoon__grid { grid-template-columns: 1fr; }
}

/* staff management */
.staff-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.staff-legend > div { background: #fff; border: 1px solid #e4ddcf; border-radius: 12px; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-muted); }
.staff-level { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; }
.staff-level:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.staff-level small { display: block; color: var(--ink-muted); font-size: 12px; line-height: 18px; margin-top: 2px; }
@media (max-width: 760px) { .staff-legend { grid-template-columns: 1fr; } }
.hsoon__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #fff; border: 1px dashed #d9cfb8; border-radius: 14px; padding: 36px 20px; color: var(--ink-muted); }
.hsoon__empty svg { width: 30px; height: 30px; color: var(--gold); }
.hsoon__empty b { color: var(--ink-strong); font-size: 17px; }
.region-empty { color: var(--ink-muted); padding: 16px 0; }
.ms-pagehead .ms-crumbs a, .ms-pagehead .ms-crumbs li, .list-head .ms-crumbs a, .list-head .ms-crumbs li { color: rgba(255,255,255,.78) !important; }
.ms-pagehead .ms-crumbs [aria-current], .list-head .ms-crumbs [aria-current] { color: var(--gold) !important; }
.ms-pagehead .ms-crumbs .sep { color: rgba(255,255,255,.5); }
.auth__logo.brand-full { width: 150px; height: auto; margin-inline: auto; }

/* logo meaning strip */
.hmean { background: #f7f2e8; border-top: 1px solid #e4ddcf; padding: 44px 0 52px; }
.hmean__title { font-size: 26px; font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.hmean__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 8px; }
.hmean__grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); margin-top: 26px; }
.hmean__intro { margin: 0; padding-inline-end: 28px; font-size: 16px; line-height: 34px; color: var(--ink); align-self: center; text-align: justify; }
.hmean__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 16px; border-inline-start: 1px solid #ddd3bd; }
.hmean__ic svg { width: 64px; height: 64px; display: block; }
.hmean__item b { color: var(--brand); font-size: 16px; }
.hmean__item > span:last-child { color: var(--ink-muted); font-size: 13px; line-height: 24px; }
@media (max-width: 980px) { .hmean__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } .hmean__intro { grid-column: 1 / -1; padding: 0 0 8px; } .hmean__item { border-inline-start: 0; } }
.app-public:has(.hero) { padding-bottom: 0; }
