/* Rwenzori Hike admin. Forest sidebar, paper content, clay for actions; status colours carry meaning only. */
:root {
  --forest: #183F36; --forest-d: #102A24; --forest-l: #24574A; --gold: #B8924A; --clay: #A54C32; --clay-d: #8A3D26;
  --bg: #F4F6F3; --surface: #fff; --text: #1B2420; --muted: #5B6862; --line: #DDE2DE; --focus: #A54C32;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 8px; --side: 232px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--forest); line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0 0 10px; }
a { color: var(--forest-l); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.boot { padding: 2rem; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; }
[hidden] { display: none !important; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--forest); }
.btn:hover { border-color: var(--forest); }
.btn.primary { background: var(--clay); border-color: var(--clay); color: #fff; } .btn.primary:hover { background: var(--clay-d); border-color: var(--clay-d); }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #fff; } .btn.dark:hover { background: var(--forest-d); }
.btn.danger { color: #A33A2A; border-color: #E3B9B1; } .btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: 13px; }
.field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(24,63,54,.15); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; } .check input { width: auto; min-height: 0; accent-color: var(--forest); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--forest) 0%, var(--forest-d) 100%); }
.login .card { width: 100%; max-width: 400px; padding: 30px 28px; }
.login .brand { font-family: var(--serif); color: var(--forest); font-size: 22px; letter-spacing: .06em; margin-bottom: 4px; }
.login .sub { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.err-text { color: #A33A2A; font-weight: 700; font-size: 13.5px; min-height: 20px; margin: 4px 0 8px; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--forest); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { font-family: var(--serif); letter-spacing: .06em; font-size: 18px; padding: 4px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.16); margin-bottom: 10px; }
.side .brand small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 2px; }
.side a.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 6px; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav.on { background: rgba(255,255,255,.14); color: #fff; }
.side .pill { background: var(--gold); color: #1b2420; border-radius: 999px; font-size: 12px; padding: 0 8px; min-width: 22px; text-align: center; }
.side .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; }
.side .who b { display: block; font-size: 14px; } .side .who span { color: rgba(255,255,255,.65); }
.side .who a { color: rgba(255,255,255,.85); }
.main { padding: 24px 28px 60px; min-width: 0; }
.topbar { display: none; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pagehead p { margin: 2px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Cards, stats */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.card + .card { margin-top: 16px; }
.card h3 { margin-bottom: 10px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
a.stat:hover { border-color: var(--forest); }
.stat b { font-family: var(--serif); font-size: 30px; line-height: 1.1; display: block; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.warn b { color: var(--clay); }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #E8ECE9; color: #3a4a43; }
.b-new { background: #DCEBFA; color: #1C4F82; } .b-contacted { background: #E7E4F8; color: #4A3F92; } .b-proposal_sent { background: #FBF0D4; color: #7A5A0C; }
.b-follow_up { background: #FCE3D2; color: #9A4210; } .b-confirmed { background: #DDF1E5; color: #1D6B43; } .b-lost { background: #F6DEDA; color: #9B3526; } .b-archived { background: #ECEEED; color: #5B6862; }
.tag { display: inline-block; background: #EAF0EC; color: var(--forest); border-radius: 999px; padding: 1px 9px; font-size: 12px; margin: 0 4px 4px 0; }

/* Tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #F8FAF8; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: #F6F9F7; }
td .name { font-weight: 700; } td .sub { color: var(--muted); font-size: 12.5px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* Filters, tabs */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 140px; } .filters .field.grow { flex: 1; min-width: 200px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; color: var(--forest); }
.tab.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.tab em { font-style: normal; opacity: .7; margin-left: 4px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13.5px; }

/* Enquiry detail */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-size: 13px; padding-top: 1px; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.msg { white-space: pre-wrap; background: #F8FAF8; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-top: 8px; }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--forest-l); margin-top: 3px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--forest-l); }
.dot.system, .dot.status, .dot.assign { background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.dot.call { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); } .dot.email, .dot.whatsapp { background: var(--clay); box-shadow: 0 0 0 1.5px var(--clay); }
.timeline .meta { font-size: 12.5px; color: var(--muted); } .timeline .body { white-space: pre-wrap; }
.noteform { display: grid; gap: 8px; }
.noteform .row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* Dashboard bars and lists */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-top: 8px; }
.bars div { flex: 1; background: var(--forest-l); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.bars div.zero { background: var(--line); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; font-weight: 700; color: var(--forest); }
.rank { height: 6px; background: #E8ECE9; border-radius: 3px; margin-top: 4px; overflow: hidden; } .rank i { display: block; height: 100%; background: var(--gold); }
.notice { border: 1.5px solid #E5D3A3; background: #FBF4DD; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.notice.bad { border-color: #E3B9B1; background: #FAE9E5; }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(12,26,22,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 12px; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--forest); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 90vw; }
.toast.err { background: #A33A2A; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
.code { font-family: ui-monospace, Consolas, monospace; background: #F1F4F2; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.recovery { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: #F8FAF8; border: 1px solid var(--line); padding: 12px; border-radius: var(--r); }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 40; height: 100%; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(12,26,22,.5); }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
  .topbar .brand { font-family: var(--serif); letter-spacing: .06em; }
  .topbar button { background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
  .main { padding: 18px 16px 60px; }
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } .g-main, .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } .recovery { columns: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.shell > div { min-width: 0; }
.grid > * { min-width: 0; }

/* ================================================================== Site Studio */
.navhead { margin: 14px 10px 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; } .toolbar .tabs { margin: 0; } .toolbar input[type=search] { max-width: 280px; } .toolbar select { max-width: 220px; width: auto; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover td { background: #F6F9F7; } .tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.schip { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; background: #E8ECE9; color: #3a4a43; }
.schip.good { background: #DDF1E5; color: #1D6B43; } .schip.warn { background: #FCEFD0; color: #8A5A00; } .schip.bad { background: #F6DEDA; color: #9B3526; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; } button.stat { text-align: left; cursor: pointer; font: inherit; }
.stat.avg.good b { color: #1D6B43; } .stat.avg.warn b { color: #8A5A00; } .stat.avg.bad b { color: #9B3526; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.code, textarea.code { font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre; }
.flist { max-height: 280px; overflow: auto; font: 12.5px/1.6 ui-monospace, Consolas, monospace; } .flist.new div::before { content: "+ "; color: #1D6B43; } .flist.chg div::before { content: "~ "; color: #8A5A00; } .flist.del div::before { content: "- "; color: #9B3526; }
.pickl { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 4px 2px; }
.modal.xl { max-width: 980px; }
.sp { flex: 1; }
/* media */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; max-height: 60vh; overflow: auto; padding: 2px; }
main > .mgrid { max-height: none; }
.mtile { all: unset; cursor: pointer; display: block; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; position: relative; } .mtile:hover, .mtile.on, .mtile:focus-visible { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(165,76,50,.15); }
.mtile__img { display: grid; place-items: center; aspect-ratio: 4/3; background: #EEF1EF center/cover no-repeat; font-size: 28px; color: var(--muted); }
.mtile__name { display: block; padding: 6px 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile__play { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.drop { display: grid; gap: 2px; place-items: center; text-align: center; padding: 20px; border: 2px dashed #C5CEC9; border-radius: 10px; background: #FAFBFA; cursor: pointer; margin-bottom: 12px; } .drop.over, .drop:hover { border-color: var(--clay); background: #FDF6F3; } .drop span { color: var(--muted); font-size: 13px; }
.mprev { background: #EEF1EF; border-radius: 8px; overflow: hidden; margin-bottom: 10px; display: grid; place-items: center; } .mprev img, .mprev video { max-width: 100%; max-height: 260px; } .mprev iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
/* navigation editor */
.nitem { margin-bottom: 14px; } .nhead { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.llist { display: grid; gap: 8px; margin-bottom: 8px; } .lrow2 { display: grid; grid-template-columns: 1fr 1.4fr auto auto auto; gap: 6px; align-items: center; }
.lbtn { all: unset; cursor: pointer; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 6px; font-weight: 700; color: var(--forest); } .lbtn:hover { background: #E8ECE9; } .lbtn:focus-visible { outline: 3px solid var(--focus); }
.irow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
/* SEO */
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; } .seo-grid > div > .card + .card, .seo-grid > .card + .card { margin-top: 16px; }
.serp { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fff; font-family: Arial, sans-serif; } .serp .su { font-size: 12px; color: #4d5156; } .serp .st { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 2px 0 4px; } .serp .sd { font-size: 14px; color: #4d5156; line-height: 1.5; }
.cnt { font-weight: 700; } .cnt.good { color: #1D6B43; } .cnt.warn { color: #8A5A00; } .cnt.bad { color: #9B3526; }
.link-btn { all: unset; cursor: pointer; color: var(--forest-l); font-size: 12.5px; text-decoration: underline; } .link-btn:focus-visible { outline: 3px solid var(--focus); }
.scorebig { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .scorebig b { font: 600 38px var(--serif); } .scorebig.good b { color: #1D6B43; } .scorebig.warn b { color: #8A5A00; } .scorebig.bad b { color: #9B3526; }
.agroup h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .acheck { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid #EEF1EF; } .acheck i { font-style: normal; font-weight: 700; } .acheck small { display: block; color: var(--muted); font-size: 12.5px; }
.acheck.good i { color: #1D6B43; } .acheck.warn i { color: #C28A00; } .acheck.bad i { color: #B8402F; } .acheck.info i { color: var(--muted); }
.ogimg { height: 150px; border-radius: 8px; background: #EEF1EF center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.revs { display: grid; gap: 6px; } .rev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #EEF1EF; } .rev small { display: block; color: var(--muted); }
/* editor shell */
.ve-host, .ve-loading { position: fixed; inset: 0; background: #F0F2F0; z-index: 5; } .ve-loading p { padding: 40px; color: var(--muted); }
.ve-shell { display: grid; grid-template-rows: 54px 1fr; height: 100vh; }
.vbar { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.vtitle { display: grid; line-height: 1.2; min-width: 120px; max-width: 260px; } .vtitle b { font-family: var(--serif); color: var(--forest); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vtitle small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbtn { all: unset; cursor: pointer; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 16px; color: var(--forest); } .tbtn:hover { background: #E8ECE9; } .tbtn.on { background: var(--forest); color: #fff; } .tbtn[disabled] { opacity: .35; cursor: default; } .tbtn:focus-visible { outline: 3px solid var(--focus); }
.tgroup { display: flex; gap: 2px; padding: 0 6px; border-left: 1px solid var(--line); }
.vtabs { display: flex; gap: 2px; margin-left: 8px; } .vtab { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; } .vtab:hover { background: #F0F2F0; } .vtab.on { background: #E8F0EC; color: var(--forest); } .vtab:focus-visible { outline: 3px solid var(--focus); }
.vestat { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; } .vestat.warn { color: #8A5A00; } .vestat.ok { color: #1D6B43; }
.vbody { min-height: 0; position: relative; overflow: hidden; } .vbody > .vseo { height: 100%; overflow: auto; padding: 22px 28px 60px; background: var(--bg); }
.vvisual { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; height: 100%; } .vvisual[hidden] { display: none; }
.vleft, .vinsp { background: #fff; overflow: auto; border-right: 1px solid var(--line); } .vinsp { border-right: 0; border-left: 1px solid var(--line); padding: 14px; }
.vcenter { position: relative; background: #DDE2DE; min-width: 0; overflow: auto; } .vstage { min-height: 100%; display: flex; justify-content: center; padding: 14px 0 0; }
.vdevice { width: 100%; height: calc(100vh - 68px); transition: width .2s; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.15); } .vdevice[data-device=tablet] { width: 820px; } .vdevice[data-device=mobile] { width: 390px; }
.vframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.vhint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--forest); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; max-width: 80%; z-index: 4; }
.ltabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; } .ltab { all: unset; flex: 1; text-align: center; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; } .ltab.on { color: var(--forest); border-color: var(--clay); } .ltab:focus-visible { outline: 3px solid var(--focus); }
.vsearch { padding: 10px; } .vgroup { padding: 0 10px 8px; } .vgroup h4 { margin: 10px 2px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.vblock { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 9px 11px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: 8px; } .vblock:hover, .vblock:focus-visible { border-color: var(--clay); background: #FDF6F3; } .vblock b { display: block; font-size: 13.5px; color: var(--forest); } .vblock small { color: var(--muted); font-size: 12px; }
.vlayers { padding: 10px; } .lrow { display: flex; align-items: center; gap: 2px; border: 1px solid transparent; border-radius: 6px; } .lrow.on { background: #FDF0EB; border-color: #E9C2B3; } .lrow.off { opacity: .5; } .lname { all: unset; flex: 1; cursor: pointer; padding: 7px 8px; font-weight: 700; font-size: 13px; color: var(--forest); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lname small { color: var(--muted); font-weight: 400; }
/* inspector */
.ihead b { display: block; font: 600 17px var(--serif); color: var(--forest); margin-bottom: 6px; } .crumbs { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; } .crumb { all: unset; cursor: pointer; font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: #EEF1EF; color: var(--muted); text-transform: capitalize; } .crumb.on { background: var(--forest); color: #fff; }
.iactions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; } .iact { all: unset; cursor: pointer; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--forest); } .iact:hover { border-color: var(--forest); } .iact.danger { color: #A33A2A; } .iact:focus-visible { outline: 3px solid var(--focus); }
.igroup { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; } .igroup h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ipreview { height: 120px; border-radius: 8px; background: #EEF1EF center/cover no-repeat; margin-bottom: 8px; } .ihelp { color: var(--muted); } .ihelp h3 { margin-bottom: 8px; }
.ftb { position: fixed; z-index: 70; display: flex; gap: 2px; padding: 4px; background: #183F36; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3); } .ftb[hidden] { display: none; }
.fb { all: unset; cursor: pointer; min-width: 32px; height: 32px; padding: 0 8px; display: inline-grid; place-items: center; color: #fff; border-radius: 6px; font-weight: 700; font-size: 13.5px; } .fb:hover { background: rgba(255,255,255,.18); } .fb.i { font-style: italic; }
@media (max-width: 1100px) { .vvisual { grid-template-columns: 200px minmax(0, 1fr) 240px; } .seo-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .vvisual { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; } .vleft { max-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); } .vinsp { max-height: 220px; border-left: 0; border-top: 1px solid var(--line); } .fields2 { grid-template-columns: 1fr; } .lrow2 { grid-template-columns: 1fr auto auto auto; } .lrow2 input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* ================================================================== Theme refresh: colour, icons, clearer layout */
:root { --bg: #EAF0EC; --mist: #F3F7F4; --line: #D5DED8; --forest-m: #1F5246; --sand: #F1ECE0; --gold-l: #F3E7CC; }
body { background: var(--bg); }
.ic { display: inline-flex; vertical-align: middle; flex: none; } .ic svg { display: block; }
.btn .ic, .btn svg { margin: 0; } .btn { gap: 8px; }
.btn.lg { min-height: 46px; font-size: 15px; }
.btn.primary { box-shadow: 0 4px 12px -4px rgba(165,76,50,.55); }
.card { border-color: var(--line); box-shadow: 0 1px 2px rgba(24,63,54,.05); border-radius: 12px; }
.card h3 { display: flex; align-items: center; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea { border-color: #CBD6CF; background: #fff; }

/* ---- login */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; padding: 0; background: #fff; place-items: stretch; }
.login-art { position: relative; color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(10,28,23,.35) 0%, rgba(10,28,23,.82) 100%), url("../assets/login-art.jpg") center 30% / cover; }
.login-art__top { display: flex; align-items: baseline; gap: 12px; } .login-logo { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; } .login-tag { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #E8C9A0; }
.login-art blockquote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; margin: 0 0 22px; max-width: 520px; }
.login-points { display: flex; flex-wrap: wrap; gap: 8px; } .login-points span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.login-form { display: grid; place-items: center; padding: 40px 28px; background: linear-gradient(160deg, #F6F9F7 0%, #E6EEE9 100%); }
.login-box { width: min(400px, 100%); } .login-mark { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(24,63,54,.7); }
.login-box h1 { font-size: 28px; margin-bottom: 4px; } .login-box .sub { color: var(--muted); margin-bottom: 22px; }
.login-links { margin-top: 16px; text-align: center; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 44px; } .pw-eye { all: unset; cursor: pointer; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; } .pw-eye:hover { background: #EEF2EF; } .pw-eye:focus-visible { outline: 3px solid var(--focus); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { min-height: 180px; padding: 22px; } .login-art blockquote, .login-points { display: none; } }

/* ---- sidebar */
.shell { background: var(--bg); }
.side { background: linear-gradient(180deg, #123329 0%, #183F36 55%, #1B473D 100%); padding: 16px 12px 12px; gap: 0; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; border: 0; margin: 0; font-size: 16px; letter-spacing: .08em; color: #fff; text-decoration: none; }
.side .brand small { margin-top: 1px; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #E8C9A0; }
.pubbtn { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(135deg, #C45D3E, #A54C32); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.pubbtn:hover { filter: brightness(1.08); } .pubbtn span:nth-child(2) { flex: 1; }
.pubcount { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: #A54C32; font-size: 12.5px; display: inline-grid; place-items: center; }
.navlist { display: grid; gap: 2px; overflow-y: auto; flex: 1; padding-bottom: 8px; }
.navhead { margin: 16px 12px 5px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 700; justify-content: flex-start; }
.side a.nav .navlabel { flex: 1; } .side a.nav .ic { color: #E8C9A0; opacity: .9; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav.on { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 3px 0 0 #E8C9A0; }
.side .who { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.14); } .side .who > div { flex: 1; min-width: 0; } .side .who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side .who span { text-transform: capitalize; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E8C9A0; color: #183F36; font-weight: 700; font-size: 12.5px; flex: none; } .side .who a { color: rgba(255,255,255,.7); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; } .side .who a:hover { background: rgba(255,255,255,.1); color: #fff; }
.content { min-width: 0; }
.topbar { display: none; }
@media (max-width: 860px) { .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #183F36; color: #fff; position: sticky; top: 0; z-index: 20; } .topbar .brand { font-family: var(--serif); letter-spacing: .08em; } .topbar button { all: unset; cursor: pointer; padding: 6px; } }
.main { padding: 26px 32px 70px; }
.pagehead h1 { font-size: 28px; }

/* ---- website home */
.welcome { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 32px; border-radius: 16px; color: #fff; margin-bottom: 16px; background: linear-gradient(100deg, rgba(10,32,26,.9) 0%, rgba(10,32,26,.55) 60%, rgba(10,32,26,.25) 100%), url("../assets/welcome-art.jpg") center 40% / cover; box-shadow: 0 14px 30px -18px rgba(10,32,26,.7); }
.welcome h1 { color: #fff; font-size: clamp(24px, 3vw, 34px); max-width: 560px; margin-bottom: 8px; } .welcome p { color: rgba(255,255,255,.88); max-width: 520px; margin: 0; }
.welcome__stats { display: flex; gap: 10px; flex-wrap: wrap; } .welcome__stats div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); } .welcome__stats b { font: 600 22px var(--serif); } .welcome__stats span:last-child { grid-column: 1 / -1; font-size: 12px; color: rgba(255,255,255,.8); }
.callout { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; margin-bottom: 8px; border: 1.5px solid; } .callout > div { flex: 1; } .callout b { display: block; } .callout small { color: var(--muted); }
.callout.warn { background: #FFF6EC; border-color: #F0CBA6; } .callout.ok { background: #EAF6EE; border-color: #BFDFC9; } .callout__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; } .callout.warn .callout__ic { background: #F7DDBE; color: #A54C32; } .callout.ok .callout__ic { background: #CDEAD7; color: #1D6B43; }
.sechead { font: 600 19px var(--serif); margin: 26px 0 12px; color: var(--forest); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile2 { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; border: 1.5px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; } .tile2:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(24,63,54,.5); border-color: var(--forest-m); }
.tile2__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; color: #fff; } .tile2 b { font-size: 16px; color: var(--forest); } .tile2 small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.t-forest .tile2__ic { background: linear-gradient(135deg, #1F5246, #183F36); } .t-clay .tile2__ic { background: linear-gradient(135deg, #C45D3E, #A54C32); } .t-gold .tile2__ic { background: linear-gradient(135deg, #C9A257, #B8924A); } .t-ink .tile2__ic { background: linear-gradient(135deg, #34423D, #1D2824); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; } .chip2 { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--forest); } .chip2:hover { border-color: var(--forest); background: #F4F9F6; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; } .cols2 .card + .card { margin-top: 0; }
.rows2 { display: grid; } .row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; border-top: 1px solid #EEF2EF; text-decoration: none; color: inherit; } .row2:hover { background: #F6F9F7; } .row2 small { display: block; color: var(--muted); font-size: 12.5px; } .minihead { margin: 6px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; } .step3 { position: relative; display: grid; gap: 4px; padding: 20px 18px 18px; border-radius: 14px; background: #fff; border: 1.5px dashed #BCCBC3; } .step3__n { position: absolute; top: -12px; left: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; } .step3__ic { color: var(--forest-m); } .step3 small { color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } .main { padding: 18px 16px 60px; } }

/* ---- pages list */
.pname { display: flex; align-items: center; gap: 10px; } .pico { width: 34px; height: 34px; border-radius: 10px; background: #E6EFEA; color: var(--forest-m); display: grid; place-items: center; flex: none; }

/* ---- editor: blended colours instead of plain white */
.ve-host, .ve-loading { background: #DCE6E0; }
.vbar { background: linear-gradient(90deg, #123329, #1B473D); border-bottom: 0; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); position: relative; z-index: 6; }
.vbar .vtitle b { color: #fff; } .vbar .vtitle small { color: rgba(255,255,255,.7); }
.vbar .tbtn { color: #fff; } .vbar .tbtn:hover { background: rgba(255,255,255,.14); } .vbar .tbtn.on { background: #E8C9A0; color: #183F36; } .vbar .tbtn[disabled] { opacity: .4; }
.vbar .tgroup { border-color: rgba(255,255,255,.2); }
.vbar .vtab { color: rgba(255,255,255,.78); } .vbar .vtab:hover { background: rgba(255,255,255,.1); color: #fff; } .vbar .vtab.on { background: #fff; color: #183F36; }
.vbar .vestat { color: rgba(255,255,255,.8); } .vbar .vestat.warn { color: #F7D59A; } .vbar .vestat.ok { color: #A9E3BD; }
.vbar .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; } .vbar .btn:hover { background: rgba(255,255,255,.22); }
.vbar .btn.primary { background: #C45D3E; border-color: #C45D3E; } .vbar .btn.dark { background: #E8C9A0; border-color: #E8C9A0; color: #183F36; } .vbar .btn[disabled] { opacity: .5; }
.vbody > .vseo { background: var(--bg); }
.vleft { background: linear-gradient(180deg, #F3F7F4, #E9F0EC); border-right: 1px solid #C9D6CE; } .vinsp { background: linear-gradient(180deg, #F3F7F4, #E9F0EC); border-left: 1px solid #C9D6CE; }
.ltabs { background: #E1EAE5; } .ltab { color: #4C6058; } .ltab.on { background: #F3F7F4; color: var(--forest); }
.vsearch { padding: 10px; }
.vblock { display: flex; gap: 10px; align-items: center; background: #fff; border-color: #D2DDD6; } .vblock:hover, .vblock:focus-visible { border-color: var(--clay); background: #FFF7F3; transform: translateX(2px); }
.vblock .bic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #E3EDE7; color: var(--forest-m); display: grid; place-items: center; } .vblock .bt { display: grid; min-width: 0; }
.vcenter { background: radial-gradient(circle at 30% 10%, #E6EEE9 0%, #CBD9D1 100%); }
.vdevice { border-radius: 10px 10px 0 0; box-shadow: 0 10px 40px -8px rgba(10,32,26,.45); overflow: hidden; }
.vhint { background: #123329; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.igroup { background: #fff; border: 1px solid #D5DED8; border-radius: 12px; padding: 12px 12px 6px; margin: 12px 0 0; } .igroup h4 { color: var(--forest-m); display: flex; align-items: center; gap: 6px; }
.ihead { background: #fff; border: 1px solid #D5DED8; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ihelp { background: #fff; border: 1px solid #D5DED8; border-radius: 12px; padding: 16px; }
.ihelp ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; } .ihelp li { margin-bottom: 4px; }
.iact { background: #fff; display: inline-flex; align-items: center; gap: 5px; } .iact.on { background: var(--forest); color: #fff; border-color: var(--forest); }

/* swatches (colour palette) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.swatch { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #B9C7BF; position: relative; display: grid; place-items: center; color: #fff; } .swatch:hover { transform: scale(1.1); } .swatch.on { box-shadow: 0 0 0 3px var(--clay); } .swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatch.light { color: #183F36; } .swatch.none { background: repeating-linear-gradient(45deg, #fff, #fff 5px, #E9EEEB 5px, #E9EEEB 10px); color: #183F36; }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); } .swatch-custom input[type=color] { width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px #B9C7BF; background: none; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1.5px solid #C5D2CA; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #fff; } .seg button { all: unset; cursor: pointer; text-align: center; padding: 8px 4px; font-weight: 700; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; justify-items: center; } .seg button.on { background: var(--forest); color: #fff; } .seg button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.slidelist { display: grid; gap: 6px; margin-bottom: 8px; } .slide { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; padding: 5px; border: 1.5px solid #D5DED8; border-radius: 10px; background: #fff; } .slide__img { width: 56px; height: 40px; border-radius: 6px; background: #EEF1EF center/cover no-repeat; } .slide small { color: var(--muted); }
.vphotos { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .vphoto { all: unset; cursor: pointer; border: 2px solid #D2DDD6; border-radius: 10px; overflow: hidden; background: #fff; position: relative; display: block; } .vphoto:hover, .vphoto:focus-visible { border-color: var(--clay); } .vphoto i { display: block; aspect-ratio: 4/3; background: #EEF1EF center/cover no-repeat; } .vphoto span { position: absolute; left: 6px; bottom: 6px; background: rgba(18,51,41,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.vphotos-note { padding: 10px 12px 0; }

.ic.flip svg { transform: scaleX(-1); }
.stat { position: relative; padding-left: 64px; min-height: 76px; border-color: var(--line); border-radius: 12px; }
.stat__ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 12px; background: #E3EDE7; color: var(--forest-m); display: grid; place-items: center; }
.stat.warn .stat__ic { background: #F7DDD2; color: var(--clay); }
.stat span:not(.stat__ic) { display: block; }
.stats .stat { padding-left: 16px; } .stats .stat b { display: block; }
.pagehead h1 { display: flex; align-items: center; gap: 10px; }
.pw-eye.on { color: var(--clay); background: #F7E8E0; }
