:root {
  --red: #d71920;
  --red-strong: #b3141a;
  --red-active: #e3242b;
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --line: #e6e6e6;
  --tan: #e3c089;
  --tan-ink: #3a2a10;
  --note-bg: #fbf1de;
  --note-line: #efd9ad;
  --proto: #1a56b0;
  --ok-bg: #e7f4ea;
  --ok-line: #9fd0aa;
  --ok-ink: #14532d;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Roboto, system-ui, sans-serif; color: var(--ink); background: #e9e7e3; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prototype bar */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.proto { background: #fff; border-bottom: 1px solid #d9dde3; padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.proto-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.proto-title { font-size: 14px; color: #2b3440; }
.proto-title strong { color: var(--proto); }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg-label { font-size: 13px; color: #4b5563; margin-right: 4px; }
.seg-b { font-size: 13px; padding: 8px 14px; border: 1px solid #c5ccd6; background: #fff; color: #1f2a37; border-radius: 999px; cursor: pointer; min-height: 36px; }
.seg-b.on { background: var(--proto); border-color: var(--proto); color: #fff; }
.tour { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; background: #eef3fb; border-radius: 8px; padding: 10px 14px; }
.tour-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--proto); padding-top: 3px; }
.tour-list { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1 1 600px; margin: 0; padding: 0; list-style: none; }
.tour-step { font-size: 13px; color: #24303f; display: inline-flex; gap: 6px; align-items: flex-start; }
.tour-n { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--proto); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.link-btn { font-size: 13px; background: none; border: none; color: var(--proto); text-decoration: underline; cursor: pointer; padding: 0; }

/* CMS chrome */
.cms { flex: 1; display: flex; flex-direction: column; margin: 16px; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: #efeeec; }
.topbar { background: var(--red); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { font-weight: 700; font-size: 16px; }
.area-pill { background: #fff; color: var(--red-strong); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 3px; }
.spacer { flex: 1; }
.who { font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #f5a300; color: #3a2600; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.body { display: flex; flex-wrap: wrap; flex: 1; }

.side { flex: 1 1 230px; background: #0d0d0d; color: #e8e8e8; padding: 12px 10px 24px; display: flex; flex-direction: column; gap: 2px; }
.area-card { background: var(--red); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; color: #fff; }
.area-card-k { font-size: 10px; letter-spacing: .08em; }
.area-card-n { font-size: 15px; font-weight: 700; }
.area-card-s { font-size: 12px; }
.nav-h { font-size: 11px; letter-spacing: .08em; color: #a3a3a3; padding: 14px 10px 6px; border-top: 1px solid #2a2a2a; margin-top: 8px; }
.nav-i { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 13px; text-align: left; background: none; border: none; color: #e8e8e8; padding: 7px 10px; border-radius: 4px; min-height: 32px; }
button.nav-i { cursor: pointer; }
button.nav-i:hover { background: #262626; }
.nav-i.on, .nav-i.on:hover { background: var(--red-active); color: #fff; }
.l1 { padding-left: 24px; }
.l2 { padding-left: 40px; }
.grp { font-weight: 500; color: #fff; }
.dim { color: #8f8f8f; }
.code-tag { font-size: 10px; font-weight: 700; background: #e3c089; color: var(--tan-ink); padding: 1px 4px; border-radius: 2px; }

.main { flex: 999 1 560px; min-width: 0; padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ph-left { display: flex; align-items: center; gap: 8px; }
.h1 { font-size: 26px; font-weight: 400; margin: 0; }
.h2 { font-size: 15px; font-weight: 500; margin: 0; }
.h3 { font-size: 14px; font-weight: 500; margin: 0; }
.badge { border: 1px solid var(--red); color: var(--red-strong); font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.crumb { font-size: 12px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; }
.tab { font-size: 12px; font-weight: 700; padding: 10px 14px; border: none; cursor: pointer; background: var(--tan); color: var(--tan-ink); min-height: 40px; }
.tab.on { background: var(--red); color: #fff; }

.card { background: #fff; border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.card-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bar-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel { font-size: 13px; padding: 8px; border: 1px solid #c8c8c8; border-radius: 3px; min-height: 36px; background: #fff; }
.btn { font-size: 13px; border: none; padding: 9px 16px; border-radius: 3px; cursor: pointer; min-height: 38px; }
.btn-dark { background: #111; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #c8c8c8; color: var(--ink); }

.note { display: flex; align-items: stretch; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 3px; font-size: 13px; }
.note-tag { background: var(--red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 8px 12px; display: flex; align-items: center; }
.note-t { padding: 8px 12px; color: #4a3a1a; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: 12px; padding: 6px 10px; border: 1px solid #c8c8c8; background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; min-height: 32px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-note { font-size: 12px; color: var(--muted); margin-left: 4px; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; background: #f6f6f6; font-weight: 500; font-size: 12px; color: #3d3d3d; padding: 10px 12px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.img-ph { width: 96px; height: 52px; background: repeating-linear-gradient(45deg, #e2e2e2 0 6px, #f1f1f1 6px 12px); border-radius: 2px; }
.muted { color: var(--muted); }

.sw { width: 38px; height: 22px; border-radius: 999px; background: #bdbdbd; border: none; position: relative; cursor: pointer; padding: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--red); }
.sw.on::after { left: 19px; }
.sw:disabled { opacity: .45; cursor: not-allowed; }
.act { display: flex; gap: 6px; }
.ib { width: 32px; height: 32px; border: none; border-radius: 3px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ib-edit { background: var(--tan); color: var(--tan-ink); }
.ib-del { background: var(--red); color: #fff; }
.empty, .hint { font-size: 12px; color: var(--muted); margin: 0; }
.empty { font-size: 13px; padding: 12px; }

.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); padding: 10px 14px; border-radius: 4px; font-size: 13px; }
.toast-x { background: none; border: none; color: var(--ok-ink); cursor: pointer; font-size: 18px; line-height: 1; width: 32px; height: 32px; }

/* Forms */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 12px; font-weight: 500; color: #3d3d3d; }
.inp { font-size: 14px; padding: 9px 10px; border: 1px solid #c8c8c8; border-radius: 3px; min-height: 40px; width: 100%; }
.drop { border: 1px dashed #b5b5b5; border-radius: 4px; padding: 18px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.cgrid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ck input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.locked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f6f6f6; border: 1px solid #e1e1e1; border-radius: 4px; padding: 10px 12px; font-size: 13px; color: #3d3d3d; }
.locked-chip { background: var(--red); color: #fff; font-weight: 500; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.err { color: var(--red-strong); font-size: 13px; margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eee; padding-top: 14px; }
.pubnote { font-size: 13px; color: var(--ok-ink); display: flex; align-items: center; gap: 6px; }

/* Role tree */
.tree { border: 1px solid #e4e4e4; border-radius: 4px; overflow-x: auto; }
.trow { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid #ececec; min-width: 900px; font-size: 13px; min-height: 40px; }
.trow.t0 { background: #f3f3f3; }
.trow.t1 { background: #f3f3f3; padding-left: 32px; }
.trow.area { background: #fdf3f3; padding-left: 40px; }
.trow.mod { padding-left: 96px; background: #fff; }
.trow.mod .caret { margin-left: -34px; }
.trow.sub { padding-left: 132px; background: #fafafa; }
.trow.sub .tname { font-weight: 400; }
.caret { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 13px; color: var(--ink); padding: 0; }
.tname { font-weight: 500; }
.trow.mod .tname { font-weight: 400; }
.tsub { color: var(--muted); font-size: 12px; }
.new { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 2px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.pill-off { background: #fde2e2; color: #9b1c1c; }
.pill-on { background: #e3f1e6; color: var(--ok-ink); }
.perms { margin-left: auto; display: flex; }
.perms .ck { width: 88px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.steps-note { font-size: 13px; color: #3d3d3d; margin: 0; }

.narrow { align-items: flex-start; max-width: 640px; }
.code { font-size: 12px; font-weight: 700; color: var(--red-strong); letter-spacing: .06em; }
.p { font-size: 14px; margin: 0; line-height: 1.5; }

/* SEO */
.small { font-size: 12px; }
.url { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.seo-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 24px; align-items: start; }
.seo-fields { display: flex; flex-direction: column; gap: 14px; }
.seo-fields .h3 { padding-top: 4px; border-top: 1px solid #eee; padding-top: 12px; }
.seo-fields .h3:first-child { border-top: none; padding-top: 0; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.counter { font-size: 12px; color: var(--muted); }
.counter.over { color: var(--red-strong); font-weight: 500; }
.ta { resize: vertical; min-height: 0; line-height: 1.4; }
.serp-wrap { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.serp { border: 1px solid #e1e1e1; border-radius: 8px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.serp-url { font-size: 12px; color: #1e6b34; word-break: break-all; }
.serp-title { font-size: 18px; color: #1a0dab; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.serp-desc { font-size: 13px; color: #4d5156; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .seo-grid { grid-template-columns: minmax(0, 1fr); }
  .serp-wrap { position: static; }
}

@media (max-width: 640px) {
  .fgrid, .twocol { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .cms { margin: 8px; }
  .main { padding: 16px; }
}

/* ===== Live CMS look (cms.b2cuat.stardreamcruises.com, measured 18/11/2026) ===== */
:root {
  --cms-red: #d7182a;      /* header, active tabs, delete */
  --cms-nav-on: #ff0000;   /* active menu item */
  --cms-top: #262626;      /* top-level menu groups */
  --cms-tan: #e5bf83;      /* inactive tabs, edit buttons */
  --cms-bg: #f5f3f2;       /* content background */
  --cms-line: #dee2e6;     /* table borders */
  --cms-foot: #b3b3b3;     /* footer bar */
  --ink: rgba(0, 0, 0, .87);
}
body { color: var(--ink); letter-spacing: .15px; }

.cms { margin: 0; border-radius: 0; box-shadow: none; flex-direction: row; background: var(--cms-bg); min-height: 0; }
.right { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Sidebar */
.side { flex: 0 0 270px; width: 270px; padding: 0; gap: 0; background: #000; color: #fff; display: flex; flex-direction: column; }
.cms.mini .side { flex-basis: 64px; width: 64px; overflow: hidden; }
.cms.mini .side .nav-t, .cms.mini .side .nav-chev, .cms.mini .side .nav-new, .cms.mini .side-logo img, .cms.mini .area-card { display: none; }
.side-logo { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.25); flex: 0 0 auto; }
.side-logo img { display: block; height: 51px; width: auto; }
.logo-fallback { font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.side-collapse { background: none; border: none; color: #fff; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.side-scroll { flex: 1; overflow-y: auto; padding: 10px 0 24px; }
.side .area-card { margin: 0 10px 10px; }
.nav-ul { list-style: none; margin: 0; padding: 0 0 0 10px; }
.nav-li { margin: 0 0 5px calc(var(--d) * 8px); width: 246px; border-radius: 5px; }
.nav-li.top { background: var(--cms-top); }
.nav-li.on { background: var(--cms-nav-on); }
.nav-b { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 8px 12px 8px 20px; background: none; border: none; color: #fff; font-size: 16px; text-align: left; cursor: pointer; border-radius: 5px; }
.nav-b:hover { background: rgba(255,255,255,.06); }
.nav-li.on .nav-b:hover { background: transparent; }
.nav-ic { flex: 0 0 auto; }
.nav-t { flex: 1; min-width: 0; line-height: 1.4; }
.nav-chev { display: flex; flex: 0 0 auto; }
.nav-new { font-size: 10px; font-weight: 700; background: #fff; color: var(--cms-red); padding: 1px 5px; border-radius: 3px; }

/* Header and footer */
.topbar { background: var(--cms-red); height: 64px; min-height: 64px; padding: 0 24px 0 22px; gap: 12px; box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12); position: relative; z-index: 1; }
.brand { font-size: 18px; font-weight: 500; }
.avatar { width: 40px; height: 40px; }
.main { flex: 1; padding: 20px 16px 24px; gap: 16px; background: var(--cms-bg); }
.foot { background: var(--cms-foot); color: var(--ink); text-align: center; font-size: 16px; padding: 12px 16px; }

/* Page header */
.page-head { align-items: center; }
.back-btn { width: 40px; height: 40px; border-radius: 100px; border: 2px solid var(--cms-nav-on); background: #efefef; color: var(--cms-nav-on); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-right: 6px; }
.h1 { font-size: 28px; font-weight: 500; }
.crumb { font-size: 16px; color: var(--ink); display: flex; gap: 8px; }
.crumb-home { color: var(--cms-red); }
.crumb-sep { color: var(--ink); }

/* Tabs (module tabs and country tabs share one style) */
.tabs { gap: 0; }
.tab { font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 10px 15px; min-height: 41px; background: var(--cms-tan); color: #000; border-radius: 0; }
.tab.on { background: var(--cms-red); color: #fff; }

/* Card */
.card { padding: 0 0 20px; gap: 16px; border-radius: 4px; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.card > * { margin-inline: 20px; }
.card > .card-bar { margin: 0; padding: 12px 20px; min-height: 65px; border-bottom: 1px solid rgba(0,0,0,.125); }
.card > :first-child:not(.card-bar) { margin-top: 20px; }
.h2 { font-size: 17.6px; font-weight: 700; }
.btn-dark { background: #000; border-radius: 0; font-size: 15px; min-width: 200px; min-height: 37px; padding: 6px 12px; }
.sel { min-height: 40px; width: 200px; font-size: 16px; border-radius: 4px; border-color: rgba(0,0,0,.23); }
.search-row { display: flex; justify-content: flex-end; }
.search { width: 164px; height: 31px; padding: 4px 8px; font-size: 14px; border: 1px solid #ced4da; border-radius: 3.2px; color: #495057; }

/* Table */
.tbl { font-size: 16px; border: 1px solid var(--cms-line); }
.tbl th { background: #fff; font-weight: 700; font-size: 16px; color: var(--ink); padding: 12px; border: 1px solid var(--cms-line); border-bottom-width: 2px; }
.tbl td { padding: 12px; border: 1px solid var(--cms-line); vertical-align: top; }
.tbl tbody tr:nth-child(odd) { background: rgba(0,0,0,.05); }
.img-ph { width: 90px; height: 72px; }
.ib { width: 26px; height: 26px; border-radius: 0; }
.ib svg { width: 13px; height: 13px; }
.ib-edit { background: var(--cms-tan); color: #000; }
.ib-del { background: var(--cms-red); }
.act { gap: 4px; }

/* Bootstrap-style switch */
.sw { width: 26px; height: 14px; background: #fff; border: 1px solid rgba(0,0,0,.35); }
.sw::after { width: 8px; height: 8px; top: 2px; left: 2px; background: rgba(0,0,0,.35); }
.sw.on { background: var(--cms-red); border-color: var(--cms-red); }
.sw.on::after { left: 14px; background: #fff; }

/* Pages copied from the live CMS */
.ib-view { background: #1976d2; color: #fff; }
.live-fields { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tbl td .act { flex-wrap: nowrap; }

/* ===== Phase 1: Homepage screens (forms, timeline) as on the live CMS ===== */
.req { color: var(--cms-red); }
.c { text-align: center; }
.tbl-ann td.c { text-align: center; }
.sort { color: #999; font-weight: 400; letter-spacing: -2px; }
.img-ph.tall { width: 90px; height: 72px; }
.vdate { display: inline-flex; align-items: center; gap: 22px; padding: 4px 8px; }
.vdate svg { color: #333; }

/* Form card */
.fcard { padding: 0; gap: 0; }
.fcard > * { margin: 0; }
.fbody { padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.card-footer { background: rgba(0,0,0,.03); padding: 12px 20px; display: flex; justify-content: flex-end; border-radius: 0 0 4px 4px; }
.main_submit { background: var(--cms-red); color: #fff; font-size: 15px; padding: 6px 12px; min-height: 36px; border-radius: 0; }
.btn-green { background: #198019; color: #fff; font-size: 15px; padding: 6px 12px; border-radius: 0; }
.pub-row { display: flex; justify-content: flex-end; }
.fg { display: grid; gap: 14px; align-items: start; }
.fg4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ff { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f_label { font-size: 14px; font-weight: 700; color: #54574e; padding-top: 2px; }
.f_input { font-size: 16px; font-weight: 500; color: #000; border: 1px solid #ddd; border-radius: 3px; padding: 10px 15px 11px; min-height: 47px; width: 100%; background: #fff; }
.f_ta { min-height: 106px; resize: vertical; font-weight: 400; line-height: 1.4; }
.f_sel { appearance: auto; }
.f_check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin: 6px 0; }
.f_check input { width: 16px; height: 16px; accent-color: var(--cms-red); margin: 0; }
.f_check.sm { font-size: 14px; color: #444; margin: 4px 0 0; }
.dt-wrap .f_input { color: #333; }

/* Upload tile */
.up-tile { border: 1px dashed #bbb; border-radius: 2px; min-height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; color: #444; font-size: 14px; cursor: pointer; padding: 14px; }
.up-tile svg { color: #4a4a4a; margin-bottom: 6px; }
.up-tile:hover { border-color: #888; }
.up-tile.wide { min-height: 134px; }
.vid-prev { width: 180px; height: 84px; margin-top: 18px; border: 4px solid #fff; box-shadow: 0 0 0 1px #e5e5e5; background: linear-gradient(160deg, #22445e, #0d2236); color: #fff; display: flex; align-items: flex-end; gap: 8px; padding: 8px; }
.vid-bar { flex: 1; height: 3px; background: rgba(255,255,255,.4); margin-bottom: 7px; }

/* Rich text (Quill-style) */
.ql-box { border: 1px solid #ccc; }
.ql-toolbar { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-bottom: 1px solid #ccc; font-size: 13px; color: #444; }
.ql-row { display: inline-flex; gap: 12px; align-items: center; }
.ql-pick b { font-size: 10px; margin-left: 4px; }
.ql-editor { min-height: 40px; padding: 10px 12px; font-size: 14px; outline: none; }
.ql-editor:focus { box-shadow: inset 0 0 0 2px rgba(215,24,42,.25); }

/* Display Location multi-select */
.ms-wrap { position: relative; }
.ms-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; width: 100%; padding: 5px 34px 5px 10px; border: 1px solid rgba(0,0,0,.23); border-radius: 4px; background: #fff; cursor: pointer; position: relative; text-align: left; }
.ms-box:hover { border-color: rgba(0,0,0,.87); }
.ms-caret { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: #666; display: flex; }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cms-red); color: #fff; font-size: 13px; font-weight: 500; padding: 3px 4px 3px 10px; border-radius: 4px; }
.ms-x { display: flex; color: #fff; opacity: .85; }
.ms-x:hover { opacity: 1; }
.ms-menu { position: absolute; z-index: 5; top: 64px; left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12); padding: 6px 0; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-size: 15px; cursor: pointer; }
.ms-opt:hover { background: rgba(0,0,0,.04); }
.ms-opt.on { background: rgba(215,24,42,.08); }
.ms-opt input { accent-color: var(--cms-red); }
.locked-ms { cursor: default; background: #f6f6f6; }
.ms-lock { font-size: 12px; color: var(--muted); }

/* MUI-style switch (Preview / Preview All) */
.mui-sw { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.mui-sw.top { margin: 4px 0; }
.mui-sw input { position: absolute; opacity: 0; }
.mui-track { width: 34px; height: 14px; border-radius: 7px; background: #bdbdbd; position: relative; }
.mui-track::after { content: ''; position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fafafa; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: left .15s; }
.mui-sw input:checked + .mui-track { background: rgba(215,24,42,.5); }
.mui-sw input:checked + .mui-track::after { left: 16px; background: var(--cms-red); }
.mui-sw input:focus-visible + .mui-track { outline: 2px solid var(--cms-red); outline-offset: 3px; }

/* History logs timeline */
.tl { list-style: none; margin: 0 0 0 60px; padding: 0; }
.tl-i { display: grid; grid-template-columns: 140px 22px 1fr; column-gap: 8px; min-height: 84px; }
.tl-when { display: flex; flex-direction: column; text-align: right; font-size: 16px; color: #555; line-height: 1.4; }
.tl-dot { position: relative; justify-self: center; width: 10px; }
.tl-dot::before { content: ''; position: absolute; top: 6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #198019; }
.tl-dot.off::before { background: #000; }
.tl-dot::after { content: ''; position: absolute; top: 22px; bottom: 4px; left: 4.5px; width: 1px; background: #888; }
.tl-body { display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; padding-bottom: 12px; }
.tl-act { color: #198019; }
.tl-act.off { color: #000; }
.tl-c { color: #198019; }

.crumb-link { background: none; border: none; padding: 0; color: var(--cms-red); font-size: 16px; cursor: pointer; }
.pubnote svg { flex: 0 0 auto; }

@media (max-width: 900px) {
  .fg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg3 { grid-template-columns: minmax(0, 1fr); }
  .tl { margin-left: 0; }
  .tl-i { grid-template-columns: 110px 22px 1fr; }
}

/* ===== Phase 2: Crisis page, Packages, Promo Index ===== */
.up-extra { font-size: 13px; color: #666; }
.fg-dv { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); }
.logo-ph { width: 80px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #f4f6fb; border: 1px solid #e3e7ef; }
.logo-ph span { font-size: 10px; color: #1a3d8f; font-weight: 700; text-align: center; line-height: 1.2; padding: 4px; }
.pop-host { position: relative; justify-content: center; }
.popc { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 6; width: 190px; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.12), 0 3px 6px -4px rgba(0,0,0,.18), 0 9px 28px 8px rgba(0,0,0,.05); padding: 12px; text-align: left; font-size: 14px; }
.popc-t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.popc-i { width: 14px; height: 14px; border-radius: 50%; background: #faad14; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.popc-m { margin: 4px 0 10px 22px; color: rgba(0,0,0,.88); }
.popc-b { display: flex; justify-content: flex-end; gap: 8px; }
.popc-no, .popc-yes { font-size: 13px; padding: 2px 8px; border-radius: 4px; cursor: pointer; }
.popc-no { background: #fff; border: 1px solid #d9d9d9; }
.popc-yes { background: #1677ff; border: 1px solid #1677ff; color: #fff; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 4px 0; }
.pg-b { min-width: 30px; height: 30px; border: 1px solid transparent; background: none; border-radius: 6px; font-size: 14px; cursor: pointer; color: rgba(0,0,0,.88); }
.pg-b.on { border-color: #1677ff; color: #1677ff; font-weight: 500; }
.pg-b:disabled { color: rgba(0,0,0,.25); cursor: not-allowed; }
.pg-gap { color: rgba(0,0,0,.25); letter-spacing: 2px; }
.pg-size { border: 1px solid #d9d9d9; border-radius: 6px; padding: 3px 10px; font-size: 13px; color: rgba(0,0,0,.88); }
.filters-bar { justify-content: flex-end; }
.filters-bar .sel { width: 196px; font-size: 13px; }
.pk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.refresh-all { background: #e0e0e0; color: #9e9e9e; font-size: 12px; min-width: 276px; min-height: 30px; padding: 6px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0; }
.refresh-all:not(:disabled) { background: #000; color: #fff; }
.spin { width: 12px; height: 12px; border: 2px solid #bbb; border-top-color: transparent; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.pk-pct { font-size: 12px; color: #555; min-width: 24px; }
.pk-total { background: #000; color: #fff; font-size: 12px; font-weight: 500; padding: 8px 12px; letter-spacing: .3px; }
.pk-bar .search { margin-left: auto; }
.pk-tbl { min-width: 980px; }
.pk-tbl .refresh-btn { min-width: 150px; }
.pk-tbl td { font-size: 14px; }
.itin-tag { display: inline-block; background: #555; color: #fff; font-size: 11px; padding: 3px 6px; line-height: 1.6; max-width: 140px; word-break: break-all; }
.tiny-note { display: block; font-size: 12px; color: #757575; margin-top: 8px; }
.cid-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 12px; }
.cid-tag { background: #555; color: #fff; font-size: 11px; padding: 2px 5px; }
.refresh-btn { background: var(--cms-red); color: #fff; font-size: 13px; font-weight: 500; min-width: 184px; min-height: 30px; padding: 4px 12px; border-radius: 4px; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 1px 5px rgba(0,0,0,.12); }
.no-rec { padding: 18px !important; }
.h3c { font-size: 16px; font-weight: 500; margin: 0; }
.f_label.ro { font-weight: 400; color: #555; font-size: 13px; }
.ro-v { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ro-box { background: #e0e0e0; padding: 4px 6px; font-size: 13px; word-break: break-all; }
.cid-chip { background: #e0e0e0; font-size: 12px; padding: 3px 8px; border-radius: 3px; }
.itin-btn { align-self: flex-start; font-size: 13px; }
.itin-tbl th { background: var(--cms-tan); font-weight: 500; font-size: 15px; }
.itin-tbl td { padding: 6px; }
.f_input.sm { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.mdl-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mdl { background: #fff; border-radius: 6px; border: 2px solid #1976d2; width: min(1220px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.mdl-h { font-size: 22px; font-weight: 500; margin: 0; }
.mdl-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 60px; }
@media (max-width: 900px) { .fg-dv { grid-template-columns: minmax(0, 1fr); } }

/* ===== Phase 3: Special Pages, Newsletter ===== */
.fg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-ck { width: 15px; height: 15px; accent-color: var(--cms-red); }
.copy-url { background: #000; color: #fff; border: none; font-size: 12px; padding: 4px 12px; cursor: pointer; min-height: 26px; }
.sp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.sp-col { display: flex; flex-direction: column; gap: 10px; }
.sp-h { font-size: 17px; font-weight: 500; margin: 6px 0 0; }
.sp-promo { display: flex; max-width: 400px; }
.sp-promo .f_input { min-height: 34px; padding: 6px 10px; border-radius: 0; }
.add-more { white-space: nowrap; flex: 0 0 auto; background: #f6c97a; color: #000; font-size: 13px; font-weight: 500; border-radius: 0; min-height: 34px; padding: 6px 12px; }
.swal { background: #fff; border-radius: 5px; width: min(420px, 100%); padding: 30px 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.swal-x { width: 70px; height: 70px; border: 4px solid #f27474; border-radius: 50%; color: #f27474; font-size: 52px; line-height: 58px; }
.swal-h { font-size: 28px; font-weight: 600; color: #595959; margin: 4px 0 0; }
.swal p { margin: 0; color: #545454; font-size: 15px; }
.swal-ok { background: #7066e0; color: #fff; border: none; border-radius: 4px; padding: 9px 18px; font-size: 15px; cursor: pointer; margin-top: 8px; }
.nf403 { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; }
.nf-art { width: 200px; height: 200px; border-radius: 50%; background: #e3e8f6; position: relative; }
.nf-lock { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border-radius: 50%; background: #9b6be8; color: #fff; display: flex; align-items: center; justify-content: center; }
.nf-code { font-size: 24px; font-weight: 400; margin: 18px 0 0; color: rgba(0,0,0,.88); }
.nf-msg { margin: 0; font-size: 14px; color: rgba(0,0,0,.45); }
.nf-btn { background: #1677ff; color: #fff; border: none; border-radius: 6px; padding: 6px 15px; font-size: 14px; cursor: pointer; margin-top: 10px; }
@media (max-width: 900px) { .sp-two { grid-template-columns: minmax(0, 1fr); } }
.export-btn { background: #f6c97a; color: #000; font-size: 15px; border-radius: 0; min-height: 37px; padding: 6px 14px; }
.pg-total { font-size: 14px; color: rgba(0,0,0,.88); margin-right: 8px; }

/* ---------- Phase 4: Masters ---------- */
.fg.ms-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-img { width: 80px; height: 62px; margin: 0 auto; background: linear-gradient(160deg, #c9d6e3 0%, #e9eef3 45%, #b8a58c 46%, #d9cbb8 100%); border-radius: 2px; }
.anc-tbl td, .anc-tbl th { text-align: left; vertical-align: top; }
.anc-tbl .ms-img { margin: 0; }
.fg4 > div > .ms-img { width: 172px; height: 112px; margin: 0; }
.cm-tbl td { vertical-align: top; }
@media (max-width: 760px) { .fg.ms-g3 { grid-template-columns: 1fr; } }

/* ---------- Phase 5: Bookings ---------- */
.bk-bar { flex-wrap: wrap; gap: 10px; align-items: center; }
.bk-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bk-filters .sel, .bk-badges .sel { width: auto; min-width: 126px; font-size: 13px; }
.bk-date { min-width: 0 !important; width: 140px !important; }
.bk-range { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,.23); border-radius: 4px; padding: 0 6px; background: #fff; }
.bk-range .bk-date { border: none; width: 128px !important; }
.bk-reset { background: #d7182a; color: #fff; border-radius: 3px; font-size: 13px; min-height: 34px; }
.bk-green { background: #12b31a; color: #fff; border-radius: 3px; font-size: 13px; min-height: 34px; }
.bk-badges { display: flex; align-items: center; gap: 14px; padding: 4px 16px 12px; flex-wrap: wrap; }
.bk-badges .search { margin-left: auto; }
.bk-badge { display: inline-flex; align-items: center; gap: 10px; color: #fff; padding: 8px 12px; border-radius: 2px; font-size: 14px; }
.bk-badge.ok { background: #12b31a; }
.bk-badge.pend { background: #ee6b6b; }
.bk-ring { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; }
.bk-count { background: #000; color: #fff; padding: 8px 12px; font-size: 12px; letter-spacing: .02em; border-radius: 3px; }
.bk-wrap { border-top: 8px solid #e5e5e5; }
.bk-tbl { min-width: 3600px; }
.bk-tbl th, .bk-tbl td { white-space: normal; font-size: 13px; }
.bk-chip { background: #12b31a; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 2px; }
.bk-chip.wait { background: #e2a400; }
.bk-dl { background: #12b31a; color: #fff; }
.bk-faded { opacity: .65; }
.bk-attach { background: #000; color: #fff; font-size: 12px; min-height: 30px; padding: 4px 12px; border-radius: 3px; }
.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; padding: 18px 16px 22px; }
.bk-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bk-info span { color: #54574e; }
.bk-info strong { font-weight: 500; color: #000; }
.bk-code { color: #12a01a; font-size: 13px; }
.bk-link { color: #1a3dd8; }
.bk-red { color: #d7182a !important; }
.bk-terms { list-style: none; margin: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.bk-terms li { padding-left: 26px; position: relative; }
.bk-terms li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: #12a01a; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.bk-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 22px 16px 26px; }
.bk-step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #54574e; position: relative; }
.bk-step + .bk-step::before { content: ''; position: absolute; top: 9px; right: 50%; width: 100%; height: 1px; background: #ddd; z-index: 0; }
.bk-dot { width: 20px; height: 20px; border-radius: 50%; background: #bbb; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.bk-step.done .bk-dot, .bk-step.cur .bk-dot { background: #111; }
.bk-step.bad .bk-dot { background: #d7182a; }
@media (max-width: 760px) { .bk-grid, .bk-steps { grid-template-columns: 1fr; } .bk-step + .bk-step::before { display: none; } }

/* ---------- Phase 6: Loyalty ---------- */
.ly-card { width: 172px; height: 112px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #3a0d0d; margin: 4px 0 6px; }
.ly-card span { opacity: .85; }
.ly-classic { background: #e43a3a; }
.ly-silver { background: linear-gradient(135deg, #d9dde1, #a7adb3); }
.ly-gold { background: linear-gradient(135deg, #f1d38a, #c9a24b); }
.ly-platinum { background: linear-gradient(135deg, #5d6066, #2b2d31); color: #eee; }
.ly-point-picker, .ly-temp { background: #f0e6dc; }
.ly-json { max-width: 220px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 3px solid #111; padding-right: 2px; }
.ly-json:focus, .ly-json:hover { white-space: normal; overflow: visible; border-right: none; }

/* ---------- Phase 7: Blog, Vlog, Popup ---------- */
.wp-right { display: flex; justify-content: flex-end; }
.wp-right.top { justify-content: flex-start; margin: 4px 0 10px; }
.wp-prev { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #333; }
.sw.sm { transform: scale(.85); }
.wp-submit { display: flex; justify-content: flex-end; margin: 12px 0 4px; }
.wp-thumb { width: 56px; height: 38px; margin: 0 auto; }
.wp-pop { width: 172px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 11px; font-family: Georgia, serif; }
.wp-pop b { font-size: 16px; letter-spacing: .04em; }
.wp-pop.sm { width: 84px; height: 44px; margin: 0 auto; gap: 2px; font-size: 9px; }
.wp-pop.sm b { font-size: 11px; }
.wp-pop.navy { background: #2a3a8f; }
.wp-pop.teal { background: #148a9c; }
.bl-tools { display: flex; align-items: center; justify-content: space-between; }
.bl-move { display: inline-flex; gap: 4px; }
.bl-arrow { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; background: none; font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bl-arrow.up { color: #d7182a; }
.bl-arrow.down { color: #12a01a; }
.bl-arrow:disabled { opacity: .35; cursor: default; }
.bl-del { background: none; border: none; color: #888; cursor: pointer; margin-right: 8px; }
.bl-del:disabled { opacity: .3; cursor: default; }
.bl-more { align-self: flex-start; }
.lf-1 .fg4 > :not(:nth-child(2)), .lf-2 .fg4 > :not(:nth-child(3)), .lf-3 .fg4 > :not(:nth-child(4)) { opacity: .4; }
.seo-sec { border-top: 1px solid #e3e3e3; padding-top: 14px; margin-top: 4px; }
.seo-h { font-size: 15px; font-weight: 400; color: #222; margin: 0 0 8px; }
.seo-hint { margin: 0 16px 8px; }

/* ---------- Phase 9: Webpages page editor ---------- */
.pg-card .fbody { gap: 14px; }
.pg-card .ql-editor { white-space: pre-wrap; }
.pg-h { font-size: 15px; font-weight: 500; margin: 0; }
.pg-thumb { width: 172px; height: 112px; border-radius: 2px; background: linear-gradient(160deg, #c9d6e3 0%, #e9eef3 45%, #b8a58c 46%, #d9cbb8 100%); }
.pg-pub { display: flex; justify-content: flex-end; }
.pg-publish { background: #0f7d16; color: #fff; border-radius: 2px; min-height: 34px; padding: 6px 14px; font-size: 13px; }
.pg-list { display: flex; flex-direction: column; gap: 6px; }
.pg-acc { border: 1px solid #e3e3e3; border-radius: 2px; background: #fff; }
.pg-acc.d1, .pg-acc.d2 { background: #fafafa; }
.pg-acc-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; position: relative; }
.pg-acc-t { flex: 1; font-size: 14px; font-weight: 500; color: #222; }
.pg-acc-tools { display: inline-flex; gap: 6px; align-items: center; }
.pg-ib { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; background: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.pg-ib:disabled { opacity: .3; cursor: default; }
.pg-chev { color: #222; transition: transform .15s; }
.pg-chev.open { transform: rotate(180deg); }
.pg-up { color: #d7182a; }
.pg-down { color: #12a01a; }
.pg-plus { color: #1e6fd9; margin-left: 10px; font-size: 16px; }
.pg-trash { color: #888; border: none; }
.pg-acc-h .popc { right: 0; top: 36px; }
.pg-acc-b { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #eee; }
.pg-acc-save { display: flex; justify-content: flex-end; }
.pg-outline { border: 1px solid #d7182a; color: #d7182a; background: #fff; border-radius: 2px; font-size: 13px; min-height: 32px; padding: 4px 12px; }
.pg-add-row { display: flex; justify-content: flex-end; gap: 16px; padding: 6px 2px; }
.pg-add { background: none; border: none; color: #d7182a; font-size: 13px; cursor: pointer; }
.lg-tbl td { vertical-align: middle; }
.lg-thumb { width: 112px; height: 72px; margin: 0 auto; border-radius: 2px; position: relative; overflow: hidden; background: #1d2a6b; }
.lg-thumb span { position: absolute; left: 0; right: 0; top: 0; height: 58%; }
.lg-family span { background: linear-gradient(135deg, #8fb7d9, #e8c2a8); }
.lg-couple span { background: linear-gradient(135deg, #e9b9a3, #a3c3de); }
.lg-perks span { background: linear-gradient(90deg, #f4d7c0 0 60%, #d7182a 60% 75%, #e5bf83 75%); }
.lg-table { background: #1d2a6b; }
.lg-table span { height: 14%; background: #d7182a; }
.fg4 .lg-thumb { margin: 8px 0 0; }

/* ---------- Roles: Global countries + full module tree ---------- */
.gc-box { margin: 6px 0 10px 28px; padding: 12px 14px; border: 1px solid #e5bf83; background: #fffaf2; border-radius: 4px; display: flex; flex-direction: column; gap: 10px; }
.gc-h { display: flex; flex-direction: column; gap: 2px; }
.gc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ccc; border-radius: 16px; padding: 4px 12px 4px 8px; font-size: 13px; cursor: pointer; background: #fff; }
.gc-chip.on { border-color: #d7182a; background: #fdecee; }
.gc-chip input { accent-color: #d7182a; }
.gc-warn { margin: 0; font-size: 13px; color: #8a4b00; background: #fff3dc; border-left: 3px solid #e2a400; padding: 8px 10px; }
.tree-sub { margin-left: 28px; }
.trow.gl { padding-left: calc(var(--d) * 22px + 8px); }
.trow.gl.tgrp .tname { font-weight: 600; }
.trow.area.hl { background: #fff6f6; border-left: 3px solid #d7182a; }
.trow.sect { margin-top: 10px; background: #f5f3f2; }

/* ---------- Roles: country versions of website pages ---------- */
.trow.cp-head { background: #fafafa; }
.trow.cp-grp, .trow.cp-leaf { padding-left: calc(120px + var(--d) * 22px); }
.trow.cp-grp .tname { font-weight: 600; }
.vtag { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.vtag.own { background: #e5f4e4; color: #136b16; }
.vtag.glob { background: #f0efec; color: #6b6b6b; }
.trow.cp-leaf.nover .perms { opacity: .45; }
.vbtn { margin-left: auto; margin-right: 10px; border: 1px solid #136b16; color: #136b16; background: #fff; border-radius: 3px; font-size: 12px; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.vlink { margin-left: auto; margin-right: 10px; border: none; background: none; color: #d7182a; font-size: 12px; cursor: pointer; white-space: nowrap; }
.vtag.core { background: #fdecee; color: #a3121f; }

/* ---------- Settings > Country Access grid ---------- */
.ca-tbl th, .ca-tbl td { vertical-align: middle; }
.ca-col { text-align: center; white-space: nowrap; }
.ca-country { text-align: left; white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ca-st { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 400; }
.ca-st.own { background: #e5f4e4; color: #136b16; }
.ca-st.glob { background: #f0efec; color: #6b6b6b; }
.ca-tbl tr.ca-own > th { box-shadow: inset 3px 0 0 #d7182a; }
.ca-pages { border: 1px solid #ccc; background: #fff; border-radius: 3px; font-size: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.ca-pages.on { border-color: #136b16; color: #136b16; }
.ca-pg-row > td { background: #fafafa; }
.ca-pg-box { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; text-align: left; }
.ca-pg-grp strong { font-size: 13px; display: block; margin-bottom: 6px; }
.ca-pg-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ca-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ca-pg.on span { color: #136b16; font-weight: 500; }

/* ---------- Settings: Roles editor (live CMS tree of boxed rows) ---------- */
.rt { display: flex; flex-direction: column; gap: 5px; }
.rt-row { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e3e3; border-radius: 4px; padding: 7px 10px; margin-left: calc(var(--d) * 12px); background: #fff; font-size: 13px; min-height: 40px; }
.rt-caret { border: none; background: none; cursor: pointer; font-size: 10px; width: 16px; padding: 0; color: #222; }
.rt-name { flex: 1; color: #222; }
.rt-row.rgrp .rt-name { font-weight: 500; }
.rt-row .perms { gap: 10px; }
.rt-row .perms .ck { font-size: 11px; gap: 3px; }
.rt-row .perms .ck input { width: 12px; height: 12px; }
.rt-hint { font-size: 12px; color: #6b6b6b; margin-right: auto; }
.rt-tag { font-size: 11px; color: #6b6b6b; background: #f0efec; border-radius: 10px; padding: 1px 8px; }

/* ---------- Settings: User Management ---------- */
.um-role { width: 190px; font-size: 13px; text-align: center; }
.um-bg { min-height: 560px; border-radius: 4px; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)), linear-gradient(160deg, #5c6f82 0%, #a9b7c3 35%, #d9c7a7 55%, #6f8aa0 75%, #2f4a63 100%); }
.um-card { width: 100%; max-width: 330px; background: rgba(235,235,235,.92); padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; border-radius: 2px; }
.um-logo { height: 74px; background: #233a8f; display: flex; align-items: center; justify-content: center; }
.um-logo span { color: #fff; font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.um-h { text-align: center; font-size: 18px; font-weight: 500; margin: 4px 0; }
.um-in { display: flex; }
.um-in .f_input { flex: 1; border-radius: 0; }
.um-ic { width: 34px; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; }
.um-btns { display: flex; gap: 10px; }

/* ---------- Settings: My Profile ---------- */
.mp-card { overflow: hidden; padding: 0 0 12px; }
.mp-banner { height: 76px; background: linear-gradient(180deg, #9fc3e3 0%, #d8e7f3 55%, #6d8aa6 56%, #b9c6d2 100%); }
.mp-who { display: flex; flex-direction: column; align-items: center; margin-top: -36px; gap: 4px; }
.mp-av { width: 72px; height: 72px; border-radius: 50%; background: #f4b400; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; border: 3px solid #fff; }
.mp-name { font-size: 20px; font-weight: 500; margin: 4px 0 0; }
.mp-role { color: #d7182a; font-size: 13px; }
.mp-mail { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #eee; margin-top: 10px; font-size: 13px; }
.mp-tbl td:first-child { white-space: nowrap; }
.mp-yes { color: #fff; background: #12a01a; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.mp-no { color: #bbb; }
