:root { --gold: #998961; --bronze: #817455; --slate: #406472; --ink: #1f2a30; }
body { background: #f3f1ec; color: var(--ink); }
.gw-top { background: var(--gold); }
.gw-top .navbar-brand, .gw-top .nav-link { color: #fff !important; }
.gw-card { border: 0; border-top: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.btn-gold { background: var(--gold); border-color: var(--bronze); color: #fff; }
.btn-gold:hover, .btn-gold:focus { background: var(--bronze); color: #fff; }
.gw-hero h1 { font-weight: 700; }
.gw-logo { max-height: 64px; }
.gw-foot { color: #6c757d; font-size: .85rem; }
.sub-suffix { direction: ltr; }
.admin-side { background: var(--slate); min-height: 100vh; }
.admin-side a { color: #e9eef0; text-decoration: none; display: block; padding: .5rem 1rem; border-inline-start: 3px solid transparent; }
.admin-side a:hover, .admin-side a.active { background: #1e282c; border-inline-start-color: var(--gold); color: #fff; }
.admin-brand { background: #817455; color: #fff; padding: .9rem 1rem; font-weight: 600; }
.badge-status-pending { background: #f39c12; }
.badge-status-failed { background: #dd4b39; }
.badge-status-active { background: #00a65a; }
.badge-status-suspended { background: #6c757d; }
.badge-status-rejected { background: #343a40; }
code.wrap { word-break: break-all; }

/* Home page (2026-11-29). Gold trim only, as on the landing page. */
.gw-nav-logo { height: 28px; background: #fff; border-radius: 4px; padding: 2px 4px; }
.gw-top .navbar-toggler-icon { filter: invert(1); }
.gw-hero { background: linear-gradient(135deg, #fbf8f1 0%, #efe8d6 100%); border-bottom: 1px solid #e4dcc6; }
.gw-hero h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.gw-hero h1 .gold { color: var(--bronze); }
.gw-eyebrow { color: var(--bronze); font-weight: 600; letter-spacing: .02em; }
.gw-shot { border-radius: 10px; box-shadow: 0 18px 48px rgba(31,42,48,.18); border: 1px solid #ddd; max-width: 100%; height: auto; }
.gw-section { padding: 4.5rem 0; }
.gw-section.alt { background: #fff; }
.gw-section h2 { font-weight: 700; }
.gw-feat { border: 0; border-top: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(0,0,0,.06); height: 100%; }
.gw-feat img { border-bottom: 1px solid #eee; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.gw-step { position: relative; padding-inline-start: 3.2rem; }
.gw-step .n { position: absolute; inset-inline-start: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gw-plan { border: 1px solid #e4dcc6; border-radius: 10px; background: #fff; height: 100%; }
.gw-plan .price { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.gw-plan ul { padding-inline-start: 1.1rem; }
.gw-pay { background: #fbf8f1; border: 1px dashed var(--gold); border-radius: 10px; white-space: pre-line; }
.gw-footer { background: #fff; border-top: 1px solid #e4dcc6; }
.gw-foot a { color: var(--bronze); }
@media (max-width: 991px) { .gw-top .navbar-nav .btn { margin: .4rem 0; } }

/* "Open an account": the call to action, not a text link (2026-11-29).
   Gold gradient with a slow sheen across it and an arrow that leans forward on
   hover. Gold trim only, like the landing page. Still under reduced motion. */
.gw-or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 .9rem; color: #6c757d; font-size: .9rem; }
.gw-or::before, .gw-or::after { content: ""; flex: 1; border-top: 1px solid #e4dcc6; }
.gw-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  color: #fff; font-weight: 700; letter-spacing: .01em; border: 0;
  padding: .8rem 1.4rem; border-radius: .6rem;
  background: linear-gradient(135deg, #b5a47a 0%, var(--gold) 45%, var(--bronze) 100%);
  background-size: 200% 200%;
  box-shadow: 0 6px 18px rgba(129,116,85,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease, background-position .6s ease;
  animation: gw-cta-glow 3.2s ease-in-out infinite;
}
.gw-cta::after {                     /* the sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: gw-cta-sheen 3.2s ease-in-out infinite;
}
.gw-cta:hover, .gw-cta:focus-visible {
  color: #fff; transform: translateY(-2px); background-position: 100% 50%;
  box-shadow: 0 10px 26px rgba(129,116,85,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.gw-cta:active { transform: translateY(0); }
.gw-cta:focus-visible { outline: 3px solid rgba(153,137,97,.45); outline-offset: 2px; }
.gw-cta-arrow { display: inline-block; transition: transform .2s ease; }
.gw-cta:hover .gw-cta-arrow { transform: translateX(4px); }
[dir="rtl"] .gw-cta-arrow { transform: scaleX(-1); }
[dir="rtl"] .gw-cta:hover .gw-cta-arrow { transform: scaleX(-1) translateX(4px); }
@keyframes gw-cta-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes gw-cta-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(129,116,85,.35), inset 0 1px 0 rgba(255,255,255,.25); }
  50% { box-shadow: 0 8px 26px rgba(153,137,97,.55), inset 0 1px 0 rgba(255,255,255,.25); }
}
@media (prefers-reduced-motion: reduce) {
  .gw-cta, .gw-cta::after { animation: none; }
  .gw-cta { transition: none; }
}

/* Admin sidebar: the Updates group and its sub-items (2026-11-29). */
.admin-sub { background: #34525e; }
.admin-sub a { padding-inline-start: 1.75rem; font-size: .92rem; }
.admin-sub a.admin-sub2 { padding-inline-start: 2.5rem; font-size: .86rem; }
.admin-sub-label { color: #a7c0cb; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .5rem 1rem .2rem 1.75rem; }
.admin-caret { width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s; margin-top: .45rem; }
.admin-side a[aria-expanded="true"] .admin-caret { transform: rotate(45deg); }
.state-published { background: #00a65a; } .state-draft { background: #f39c12; color: #212529; } .state-paused { background: #6c757d; }
tr.row-draft td { background: #fff8e6; } tr.row-paused td { background: #f1f1f1; color: #6c757d; }
.upd-status-live { border-top-color: #00a65a !important; } .upd-status-testing { border-top-color: #f39c12 !important; } .upd-status-paused { border-top-color: #dd4b39 !important; }
pre.preview { max-height: 22rem; overflow: auto; background: #1f2a30; color: #e9eef0; padding: 1rem; border-radius: .4rem; font-size: .8rem; white-space: pre-wrap; }

/* Servers */
.srv-ready { background: #198754; }
.srv-needs_setup { background: #f39c12; color: #212529; }
.srv-problem { background: #dc3545; }
.srv-new { background: #6c757d; }
.srv-retired { background: #343a40; }
.chk-ok { background: #198754; }
.chk-warn { background: #f39c12; color: #212529; }
.chk-missing { background: #6c757d; }
.chk-fail { background: #dc3545; }
.srv-steps li { margin-bottom: .35rem; }
.srv-steps li.done { color: #198754; }

/* Plans and site content */
.plan-box.plan-hidden { background: #f4f4f2; border-style: dashed !important; }
.plan-box.plan-hidden input:not(.js-plan-visible), .plan-box.plan-hidden textarea { opacity: .6; }
.site-preview { position: sticky; top: 1rem; }
.site-preview-stage { position: relative; height: 75vh; overflow: hidden; border: 1px solid #dcdcdc; border-radius: 4px; background: #f4f4f2; }
.site-preview-frame { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; }

/* "i" explainer bubbles */
.gw-info { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: #e9e4d6; color: #6d6145; font: 700 .7rem/1 Georgia, serif; font-style: italic;
  text-decoration: none; vertical-align: .1em; margin-inline-start: .3rem; cursor: help; }
.gw-info:hover, .gw-info:focus { background: #998961; color: #fff; outline: none; }
.popover { max-width: 22rem; font-size: .85rem; }
.upd-kind { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #817455; font-weight: 700; }

/* Wide tables that scroll sideways, first column kept in view */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wide th, .table-wide td { white-space: nowrap; }
.table-wide .sticky-col { position: sticky; inset-inline-start: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 #e6e2d8; }
.table-wide thead .sticky-col { z-index: 2; }

/* Folding side menu */
.admin-side { width: 230px; transition: margin .2s ease; }
.menu-folded .admin-side { margin-inline-start: -230px; }
.admin-fold { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 4px;
  width: 1.8rem; height: 1.8rem; line-height: 1; font-size: 1rem; padding: 0; }
.admin-fold:hover { background: rgba(255,255,255,.15); }
.admin-unfold { display: none; align-items: center; gap: .5rem; background: var(--slate); color: #fff; border: 0; border-radius: 4px;
  padding: .4rem .75rem; margin: -.5rem 0 1rem -.5rem; font-size: .9rem; }
.admin-unfold:hover { background: #2f4b57; }
/* Three bars drawn with borders and a shadow: no icon font needed. */
.admin-bars { display: inline-block; width: 1rem; height: 2px; background: #fff; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; }
.menu-folded .admin-unfold { display: flex; }
/* On a phone the open menu lies over the page instead of squeezing it. */
@media (max-width: 991.98px) {
  .admin-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1040; overflow-y: auto; box-shadow: 0 0 24px rgba(0,0,0,.3); }
  .menu-folded .admin-side { box-shadow: none; }
}

/* List rows: read as text, edited one row at a time */
.list-table td.v { white-space: normal; min-width: 5rem; }
.list-table td.v.wide { min-width: 14rem; max-width: 22rem; }
.list-table .edit-cell { display: none; }
.list-table tr.editing .edit-cell { display: table-cell; }
.list-table tr.editing .view-cell { display: none; }
.list-table tr.editing { background: #fdf9ec; }
.list-table .edit-cell input { min-width: 7rem; }
.list-table .edit-cell.wide input, .list-table .edit-cell.wide textarea { min-width: 16rem; resize: vertical; }
.list-table .edit-cell input[type=date] { min-width: 9.5rem; }

/* The row's buttons stay at the right edge while a wide table scrolls. */
.list-table .row-actions { position: sticky; inset-inline-end: 0; background: #fff; box-shadow: -1px 0 0 #e6e2d8; z-index: 1; }
.list-table tr.editing .row-actions { background: #fdf9ec; }

/* gw-table (public/js/gw-table.js) */
.gw-table-top, .gw-table-bottom { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .6rem .75rem; }
.gw-table-top label { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; color: #6c757d; }
.gw-table-search input { width: 16rem; max-width: 60vw; }
.gw-table-size select { width: auto; }
th.gw-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.gw-sortable::after { content: ""; display: inline-block; margin-inline-start: .35rem; border: 4px solid transparent; border-top-color: #b9b2a0; vertical-align: -.15em; }
th.gw-sortable[aria-sort="ascending"]::after { border-top-color: transparent; border-bottom-color: #817455; vertical-align: .15em; }
th.gw-sortable[aria-sort="descending"]::after { border-top-color: #817455; }
th.gw-sortable:focus { outline: 2px solid #998961; outline-offset: -2px; }
.tenant-actions .btn { white-space: nowrap; }
