/* Peace Technologies ecosystem UI layer.
   Loaded last: one visual contract across public, customer and staff surfaces. */
:root {
  --eco-navy: #082f3a;
  --eco-teal: #087f8c;
  --eco-cyan: #0aa7b8;
  --eco-sky: #dff7f8;
  --eco-gold: #d6a928;
  --eco-ink: #132f36;
  --eco-muted: #5b7278;
  --eco-canvas: #f7faf9;
  --eco-surface: #ffffff;
  --eco-border: #d9e7e9;
  --eco-success: #16794c;
  --eco-warning: #9a680d;
  --eco-danger: #b63b31;
  --eco-radius-sm: 8px;
  --eco-radius: 14px;
  --eco-radius-lg: 24px;
  --eco-shadow-sm: 0 2px 8px rgba(8, 47, 58, .07);
  --eco-shadow: 0 14px 36px rgba(8, 47, 58, .08);
  --eco-content: 1180px;
}

/* ------------------------------------------------------------------
   Legacy token aliases.

   The pt-* and console-* component rules below predate this file and
   are still referenced by a lot of markup, so the rules stay. What
   changed is where their VALUES come from: every --pt-* name now
   resolves to an --eco-* token, which is why those components render
   in ecosystem navy/teal rather than the old cyan. There is exactly
   one palette in this codebase and it is the :root block above.

   Do not add new --pt-* names. New work uses --eco-* directly.
   ------------------------------------------------------------------ */
:root {
  --pt-primary: var(--eco-teal);
  --pt-primary-dark: var(--eco-navy);
  --pt-primary-deep: var(--eco-navy);
  --pt-gold: var(--eco-gold);
  --pt-gold-dark: #b8901f;
  --pt-ink: var(--eco-ink);
  --pt-muted: var(--eco-muted);
  --pt-bg: var(--eco-canvas);
  --pt-line: var(--eco-border);
  --pt-radius: var(--eco-radius-sm);
  --pt-shadow: var(--eco-shadow-sm);
  --pt-shadow-lift: var(--eco-shadow);

  /* Status chips express state, never brand. */
  --pt-status-active-bg: #e3f6ea;
  --pt-status-active-fg: var(--eco-success);
  --pt-status-pending-bg: #fdf1da;
  --pt-status-pending-fg: var(--eco-warning);
  --pt-status-danger-bg: #fbe4e1;
  --pt-status-danger-fg: var(--eco-danger);
  --pt-status-neutral-bg: #eef2f3;
  --pt-status-neutral-fg: var(--eco-muted);

  --console-sidebar-w: 240px;
  --console-topbar-h: 60px;
}

/* ==================================================================
   Merged from pt.css.
   Order matters: these load before the ecosystem rules below,
   exactly as when pt.css was a separate file loaded first.
   ================================================================== */
html, body, h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Keep anchor jumps clear of the fixed nav. */
html {
  scroll-padding-top: 84px;
}

body {
  background: var(--pt-bg);
  color: var(--pt-ink);
}

/* ---------- Top navigation ---------- */
.pt-nav {
  background: #fff;
  box-shadow: 0 1px 4px rgba(38, 50, 56, .14);
}

.pt-nav .pt-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-primary-dark) !important;
  letter-spacing: .2px;
}

.pt-nav .pt-brand img {
  height: 30px;
  vertical-align: middle;
  margin-right: 8px;
}

.pt-nav a.pt-nav-link {
  color: var(--pt-ink) !important;
  border-bottom: 3px solid transparent;
  padding-top: 14px !important;
  padding-bottom: 11px !important;
}

.pt-nav a.pt-nav-link:hover {
  color: var(--pt-primary) !important;
  background: #e9f7f9 !important;
}

.pt-nav a.pt-nav-link.pt-active {
  color: var(--pt-primary-dark) !important;
  border-bottom-color: var(--pt-gold);
  font-weight: 600;
}

/* ---------- Hero band (section pages) ---------- */
.pt-hero {
  background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
  border-radius: var(--pt-radius);
  margin: 16px 8px 24px;
  padding: 40px 16px 32px;
}

.pt-hero h1 {
  margin: 8px 0 4px;
}

.pt-hero .pt-hero-icon {
  display: inline-block;
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--pt-primary);
  font-size: 28px;
  box-shadow: var(--pt-shadow);
}

/* ---------- Section titles ---------- */
.pt-section-title {
  display: block;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--pt-ink);
  margin: 8px 0 6px;
}

.pt-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--pt-primary), var(--pt-gold));
}

.pt-section-sub {
  text-align: center;
  color: var(--pt-muted);
  margin-bottom: 24px;
}

/* ---------- Card rows: flex so unequal heights wrap cleanly ---------- */
.pt-flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.pt-flex-row > [class*="w3-col"],
.pt-flex-row > .w3-third {
  float: none;
  display: flex;
  flex-direction: column;
}

.pt-flex-row .pt-card,
.pt-flex-row .pt-plan {
  flex: 1;
}

/* ---------- Cards ---------- */
.pt-card {
  background: #fff;
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-line);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  height: 100%;
}

.pt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pt-shadow-lift);
}

.pt-card .pt-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.pt-card .pt-card-img-placeholder {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eceff1, #e0f7fa);
  color: #90a4ae;
  font-size: 44px;
}

.pt-accent-1 { border-top: 4px solid var(--pt-primary); }
.pt-accent-2 { border-top: 4px solid var(--pt-gold); }
.pt-accent-3 { border-top: 4px solid var(--pt-primary-dark); }
.pt-accent-4 { border-top: 4px solid var(--pt-primary-deep); }

.pt-icon-badge {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 50%;
  background: #e0f7fa;
  color: var(--pt-primary-dark);
  font-size: 20px;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.pt-btn {
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark)) !important;
  color: #fff !important;
  border-radius: 24px !important;
  padding: 10px 26px !important;
  border: none;
  box-shadow: var(--pt-shadow);
  transition: box-shadow .18s ease, transform .18s ease;
}

.pt-btn:hover {
  box-shadow: var(--pt-shadow-lift);
  transform: translateY(-1px);
}

.pt-btn-outline {
  background: #fff !important;
  color: var(--pt-primary-dark) !important;
  border: 2px solid var(--pt-primary) !important;
  border-radius: 24px !important;
  padding: 8px 24px !important;
}

.pt-btn-outline:hover {
  background: #e0f7fa !important;
}

/* ---------- Category chips (shop) ---------- */
.pt-chip {
  display: inline-block;
  padding: 8px 18px;
  margin: 4px;
  border-radius: 20px;
  border: 1px solid var(--pt-line);
  background: #fff;
  color: var(--pt-ink) !important;
  box-shadow: var(--pt-shadow);
  text-decoration: none !important;
}

.pt-chip:hover {
  border-color: var(--pt-primary);
  color: var(--pt-primary-dark) !important;
}

.pt-chip.pt-chip-active {
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark));
  color: #fff !important;
  border-color: transparent;
  font-weight: 600;
}

/* ---------- Price ---------- */
.pt-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-primary-dark);
}

.pt-price .pt-currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-muted);
  margin-right: 2px;
}

/* ---------- Plan cards ---------- */
.pt-plan {
  background: #fff;
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-line);
  box-shadow: var(--pt-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pt-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--pt-shadow-lift);
}

.pt-plan .pt-plan-head {
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 26px 12px;
}

.pt-plan li {
  border-color: var(--pt-line) !important;
}

/* ---------- Forms ---------- */
.pt-form .w3-input,
.pt-form .w3-select {
  border: 1px solid var(--pt-line) !important;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pt-form .w3-input:focus,
.pt-form .w3-select:focus {
  border-color: var(--pt-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 172, 193, .18);
  outline: none;
}

.pt-form label {
  font-weight: 600;
  color: var(--pt-ink);
  display: inline-block;
  margin-bottom: 4px;
}

.pt-form-card {
  background: #fff;
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-line);
  padding: 24px;
}

/* ---------- Payment method selector ---------- */
.pt-pay-methods {
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.pt-pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pt-line);
  cursor: pointer;
}

.pt-pay-method:last-child {
  border-bottom: none;
}

.pt-pay-method input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pt-primary);
  flex-shrink: 0;
}

.pt-pay-method-label {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--pt-ink);
}

.pt-pay-method-mark {
  flex-shrink: 0;
  color: var(--pt-primary-dark);
  font-size: 20px;
}

.pt-pay-method.is-disabled {
  cursor: not-allowed;
  background: #fafcfc;
}

.pt-pay-method.is-disabled .pt-pay-method-label,
.pt-pay-method.is-disabled .pt-pay-method-mark {
  color: #a9bcbf;
}

.pt-pay-method-soon {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--pt-gold-dark);
  background: #fbf6e8;
  border: 1px solid #ecdca4;
  border-radius: 999px;
  padding: 3px 9px;
}

.pt-pay-methods--compact {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pt-pay-methods--compact .pt-pay-method {
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  padding: 4px 10px;
  gap: 6px;
  font-size: 12px;
}

.pt-pay-methods--compact .pt-pay-method input[type="radio"] {
  width: 14px;
  height: 14px;
}

.pt-pay-methods--compact .pt-pay-method-mark {
  font-size: 14px;
}

.pt-pay-methods--compact .pt-pay-method-soon {
  font-size: 9px;
  padding: 1px 6px;
}

/* ---------- Tables ---------- */
.pt-table {
  background: #fff;
  border-radius: var(--pt-radius);
  overflow: hidden;
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-line) !important;
}

.pt-table th {
  background: var(--pt-primary-dark);
  color: #fff;
  font-weight: 600;
}

.pt-table tr:nth-child(even) {
  background: #f7fafa;
}

/* ---------- CTA panel ---------- */
.pt-cta {
  background: linear-gradient(135deg, var(--pt-primary-deep), var(--pt-primary));
  color: #fff;
  border-radius: var(--pt-radius);
  padding: 28px 24px;
  box-shadow: var(--pt-shadow);
}

.pt-cta h3 {
  margin-top: 0;
  color: #fff;
}

.pt-cta a.pt-btn {
  background: #fff !important;
  color: var(--pt-primary-dark) !important;
}

.pt-cta a.pt-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, .7) !important;
  border-radius: 24px !important;
  padding: 8px 24px !important;
}

.pt-cta a.pt-btn-ghost:hover {
  background: rgba(255, 255, 255, .12) !important;
}

/* ---------- Info panel (light) ---------- */
.pt-panel-light {
  background: #e0f7fa;
  border-left: 5px solid var(--pt-primary);
  border-radius: 0 var(--pt-radius) var(--pt-radius) 0;
  padding: 20px 24px;
}

/* ---------- Pagination ---------- */
.pt-pagination a {
  border-radius: 20px !important;
  margin: 0 4px;
  border: 1px solid var(--pt-line);
  background: #fff !important;
  color: var(--pt-ink) !important;
}

.pt-pagination a:hover {
  border-color: var(--pt-primary);
  color: var(--pt-primary-dark) !important;
}

.pt-pagination .pt-page-info {
  color: var(--pt-muted);
}

/* ---------- Footer ---------- */
.pt-footer {
  background: var(--pt-primary-deep);
  color: #d2f0f4;
  border-radius: var(--pt-radius) var(--pt-radius) 0 0;
  margin-top: 40px;
}

.pt-footer h2, .pt-footer h3 {
  color: #eceff1;
}

.pt-footer a {
  color: #80deea;
}

.pt-footer a:hover {
  color: #fff;
}

.pt-footer .pt-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #80deea;
  margin-right: 8px;
  font-size: 18px;
}

.pt-footer .pt-social a:hover {
  background: var(--pt-primary);
  color: #fff;
}

.pt-footer .pt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 14px 8px;
  font-size: 13px;
  color: #90a4ae;
}

/* ---------- Slideshow (home) ---------- */
.pt-slides {
  border-radius: var(--pt-radius);
  overflow: hidden;
  box-shadow: var(--pt-shadow);
}

.pt-slides .pt-slide-caption {
  background: rgba(38, 50, 56, .78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}

.pt-slides .pt-slide-nav {
  background: #fff;
  color: var(--pt-primary-dark);
  padding: 10px 16px;
}

/* ---------- Search (home) ---------- */
.pt-search {
  display: flex;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--pt-shadow);
}

.pt-search input {
  border: none !important;
  flex: 1;
  padding: 10px 18px;
  outline: none;
}

.pt-search button {
  border: none;
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark));
  color: #fff;
  padding: 0 22px;
  cursor: pointer;
}

/* ---------- Search (nav bar) ---------- */
.pt-nav-search {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 6px;
  height: 34px;
}

.pt-nav-search input {
  border: none !important;
  outline: none;
  padding: 0 12px;
  width: 130px;
  font-size: 13px;
}

.pt-nav-search button {
  border: none;
  background: transparent;
  color: var(--pt-primary-dark);
  padding: 0 12px;
  height: 100%;
  cursor: pointer;
}

.pt-nav-search-small {
  margin: 8px 16px;
  width: calc(100% - 32px);
}

.pt-nav-search-small input {
  width: 100%;
}

/* ---------- Misc ---------- */
.pt-quote-mark {
  color: var(--pt-primary);
  font-size: 26px;
}

.pt-muted { color: var(--pt-muted); }
.pt-text-gold { color: var(--pt-gold); }

/* ==================================================================
   Merged from console.css.
   Scoped to .console-* (plus one checkbox id), so carrying them
   site-wide is inert outside the portal and staff console.
   ================================================================== */
/* ---------- Shell ---------- */
html.console-html, body.console-body {
  height: 100%;
}
body.console-body {
  background: var(--pt-bg);
  margin: 0;
}

.console-sidebar-toggle { display: none; }
#console-sidebar-check { display: none; }

.console-shell {
  display: grid;
  grid-template-columns: var(--console-sidebar-w) 1fr;
  min-height: 100vh;
}

.console-sidebar {
  background: #fff;
  border-right: 1px solid var(--pt-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--pt-line);
  text-decoration: none !important;
  color: var(--pt-ink) !important;
}
.console-brand span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark));
  color: #fff;
  font-size: 15px;
}
.console-brand strong { font-size: 14.5px; }
.console-brand small { display: block; font-size: 10.5px; color: var(--pt-muted); letter-spacing: .03em; }

.console-nav { flex: 1; padding: 10px 10px 16px; }
.console-nav-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--pt-muted);
  padding: 14px 10px 6px;
}
.console-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--pt-ink) !important;
  text-decoration: none !important;
  margin-bottom: 2px;
  transition: background .12s ease;
}
.console-nav-link i { width: 16px; text-align: center; color: var(--pt-muted); }
.console-nav-link:hover { background: var(--pt-bg); }
.console-nav-link.active {
  background: linear-gradient(135deg, var(--pt-primary), var(--pt-primary-dark));
  color: #fff !important;
}
.console-nav-link.active i { color: #fff; }

.console-sidebar-footer {
  border-top: 1px solid var(--pt-line);
  padding: 12px 18px;
  font-size: 11px;
  color: var(--pt-muted);
}

.console-topbar {
  height: var(--console-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--pt-line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.console-topbar-title { font-size: 14px; font-weight: 600; color: var(--pt-ink); }
.console-topbar-title small { display: block; font-size: 10.5px; font-weight: 400; color: var(--pt-muted); }
.console-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--pt-muted);
}
.console-topbar-user .console-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pt-bg);
  color: var(--pt-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.console-topbar-user a { color: var(--pt-muted) !important; text-decoration: none !important; }
.console-topbar-user a:hover { color: var(--pt-primary-dark) !important; }

.console-main {
  padding: 22px;
  max-width: 1180px;
}

/* Mobile: collapse sidebar behind a toggle */
@media (max-width: 900px) {
  .console-shell { grid-template-columns: 1fr; }
  .console-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--pt-shadow-lift);
  }
  .console-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--pt-line);
    background: #fff;
    margin-right: 10px;
  }
  #console-sidebar-check:checked ~ .console-shell .console-sidebar {
    transform: translateX(0);
  }
}

/* ---------- Panels ---------- */
.console-panel {
  background: #fff;
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-line);
  margin-bottom: 18px;
  overflow: hidden;
}
.console-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pt-line);
}
.console-panel-header h2, .console-panel-header h3 { margin: 0; font-size: 15px; }
.console-panel-header p { margin: 3px 0 0; font-size: 12px; color: var(--pt-muted); }
.console-panel-header a { font-size: 12px; }
.console-panel-body { padding: 18px; }

/* ---------- Metrics ---------- */
.console-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.console-metric {
  background: #fff;
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-line);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.console-metric:hover {
  box-shadow: var(--pt-shadow-lift);
  transform: translateY(-2px);
}
.console-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--pt-bg);
  color: var(--pt-primary-dark);
  flex-shrink: 0;
}
.console-metric-icon.gold { background: #fbf3e2; color: var(--pt-gold-dark); }
.console-metric small { display: block; font-size: 11px; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .03em; }
.console-metric strong { display: block; font-size: 22px; line-height: 1.3; color: var(--pt-ink); font-variant-numeric: tabular-nums; }
.console-metric a, .console-metric span.console-metric-note { font-size: 11.5px; color: var(--pt-muted); text-decoration: none; }
.console-metric a:hover { color: var(--pt-primary-dark); }

/* ---------- Status chips ---------- */
.console-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--pt-status-neutral-bg);
  color: var(--pt-status-neutral-fg);
}
.console-status.is-active { background: var(--pt-status-active-bg); color: var(--pt-status-active-fg); }
.console-status.is-pending { background: var(--pt-status-pending-bg); color: var(--pt-status-pending-fg); }
.console-status.is-danger { background: var(--pt-status-danger-bg); color: var(--pt-status-danger-fg); }

/* ---------- Tables ---------- */
.console-main table.w3-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--pt-muted);
  font-weight: 700;
  padding-top: 8px;
  padding-bottom: 8px;
}
.console-main table.w3-table td {
  font-size: 12.5px;
  vertical-align: middle;
}
.console-main table.w3-table.w3-striped tbody tr:hover {
  background: var(--pt-bg);
}

/* ---------- Flash ---------- */
.console-flash {
  padding: 12px 16px;
  border-radius: var(--pt-radius);
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 4px solid transparent;
}
.console-flash.ok { background: var(--pt-status-active-bg); color: var(--pt-status-active-fg); border-left-color: var(--pt-status-active-fg); }
.console-flash.err { background: var(--pt-status-danger-bg); color: var(--pt-status-danger-fg); border-left-color: var(--pt-status-danger-fg); }

/* ==================================================================
   Merged from ecosystem.css.
   The ecosystem rules themselves. Last, so they still win ties.
   ================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--eco-canvas);
  color: var(--eco-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--eco-teal); text-underline-offset: 3px; }
a:hover { color: var(--eco-navy); }
:focus-visible { outline: 3px solid rgba(214, 169, 40, .85); outline-offset: 3px; }

.eco-skip {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  background: var(--eco-navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--eco-radius-sm) var(--eco-radius-sm);
}
.eco-skip:focus { top: 0; color: #fff; }

/* Public shell */
.pt-nav {
  z-index: 1000;
  border-bottom: 1px solid var(--eco-border);
  box-shadow: 0 4px 18px rgba(8,47,58,.06);
}
.pt-nav > .w3-bar { display: flex; align-items: center; min-height: 72px; }
.pt-nav .pt-brand { display: inline-flex; align-items: center; color: var(--eco-navy) !important; white-space: nowrap; }
.pt-nav .pt-brand img { width: 38px; height: 38px; object-fit: contain; }
.pt-nav .w3-right { margin-left: auto; display: flex; align-items: center; }
.pt-nav a.pt-nav-link { border: 0; border-radius: 999px; padding: 9px 13px !important; margin: 0 1px; font-size: 14px; }
.pt-nav a.pt-nav-link.pt-active { background: var(--eco-sky) !important; color: var(--eco-navy) !important; }
.pt-nav a.pt-nav-account { margin-left:8px; padding-left:16px !important; padding-right:16px !important; border:1px solid var(--eco-border); }
.pt-nav-search { display: flex; align-items: center; min-width: 190px; padding: 0 8px !important; }
.pt-nav-search input { width: 100%; min-height: 38px; border: 1px solid var(--eco-border); border-right: 0; border-radius: 999px 0 0 999px; padding: 8px 12px; background: #f8fbfb; }
.pt-nav-search button { min-height: 38px; border: 0; border-radius: 0 999px 999px 0; padding: 0 13px; background: var(--eco-navy); color: #fff; }
.eco-page { display: flow-root; max-width: var(--eco-content); margin: 72px auto 0; padding: 0 20px; }

/* Shared public-page composition */
.pt-hero {
  position:relative; margin:30px 0 48px; padding:52px 56px; border:1px solid #dceceb;
  border-radius:26px; overflow:hidden; background:linear-gradient(135deg,#eefafa,#fafdfc 78%);
  text-align:left !important; box-shadow:0 8px 26px rgba(8,47,58,.045);
}
.pt-hero::after { content:""; position:absolute; width:250px; height:250px; right:-90px; top:-110px; border-radius:50%; background:rgba(196,235,232,.35); }
.pt-hero > * { position:relative; z-index:1; }
.pt-hero .pt-hero-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  box-sizing:border-box;
  line-height:1;
  text-align:center;
  vertical-align:top;
  border-radius:13px;
  box-shadow:none;
  font-size:18px;
  background:#dff3f1;
}
.pt-hero .pt-hero-icon i { display:block; line-height:1; }
.pt-hero h1 { margin:18px 0 8px; color:var(--eco-navy); font-size:clamp(34px,4vw,48px); line-height:1.1; letter-spacing:-.035em; }
.pt-hero h1 b { font-weight:600; }
.pt-hero .w3-large { margin:0; font-size:17px !important; line-height:1.6; }
.pt-hero p[style*="max-width"] { margin:14px 0 0 !important; color:var(--eco-muted); font-size:15px; line-height:1.7; }
.pt-hero > p:last-child a { margin-top:8px; }

.eco-page > .w3-container:not(.pt-hero) { padding-left:16px; padding-right:16px; }
.pt-card { padding:0; }
.pt-card > .w3-container, .pt-card.w3-container { padding:24px !important; }
.pt-card h3, .pt-card h4 { color:var(--eco-navy); letter-spacing:-.015em; }
.pt-card p { color:#49656c; line-height:1.65; }
.pt-accent-1, .pt-accent-2, .pt-accent-3, .pt-accent-4 { border-top:1px solid var(--eco-border); }
.pt-icon-badge { width:42px; height:42px; line-height:42px; border-radius:12px; }
.pt-btn, .pt-btn-outline { border-radius:10px !important; padding:10px 18px !important; }
.pt-chip { box-shadow:none; }
.pt-form-card, .pt-panel-light, .pt-cta { border:1px solid var(--eco-border); border-radius:18px; background:#fff; box-shadow:var(--eco-shadow-sm); padding:30px; }
.pt-panel-light { background:#f1f8f7; box-shadow:none; }
.pt-form-card { max-width:720px; }
.pt-form-card .pt-form { max-width:none; }
.pt-form label { margin-top:14px; }
.pt-form button[type="submit"] { min-width:140px; margin-top:8px; }
.w3-panel { border-radius:10px; }
.w3-table-all, .w3-table { border:1px solid var(--eco-border); border-radius:12px; overflow:hidden; }
.w3-table-all th, .w3-table th { background:#edf5f4; color:var(--eco-navy); }
.w3-table-all td, .w3-table td, .w3-table-all th, .w3-table th { padding:12px 14px; border-color:var(--eco-border); }
details { border:1px solid var(--eco-border); border-radius:10px; padding:12px 14px; background:#fbfdfd; }
details summary { color:var(--eco-navy); font-weight:700; cursor:pointer; }

/* Catalogue and commerce */
.pt-page-shop .pt-hero { display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:24px; }
.pt-page-shop .pt-hero .pt-hero-icon, .pt-page-shop .pt-hero h1, .pt-page-shop .pt-hero .w3-large { grid-column:1; }
.pt-page-shop .pt-hero > p:last-child { grid-column:2; grid-row:1 / span 3; }
.pt-page-shop .pt-card-img, .pt-page-shop .pt-card-img-placeholder { height:210px; }
.pt-page-shop .pt-card-img-placeholder { background:#edf6f5; }
.pt-page-shop .pt-card h4 { min-height:48px; font-size:17px; }
.pt-page-shop .pt-card .pt-price { font-size:19px; }
.pt-page-shop .pt-card form { margin-top:auto; }
.pt-page-shop .pt-flex-row > [class*="w3-col"] .pt-card { display:flex; flex-direction:column; }
.pt-page-shop .pt-flex-row > [class*="w3-col"] .pt-card > .w3-container { display:flex; flex:1; flex-direction:column; }

/* Authentication and contact */
.pt-page-accounts .pt-hero, .pt-page-account .pt-hero { padding-bottom:86px; }
.pt-page-accounts .pt-form-card, .pt-page-account .pt-form-card { position:relative; margin-top:-76px; }
.pt-page-contact .pt-form-card, .pt-page-contact .pt-panel-light { min-height:100%; }

/* Operational surfaces */
.console-main .pt-section-title { text-align:left; font-size:23px; letter-spacing:-.02em; margin-top:4px; }
.console-main .pt-section-title::after { display:none; }
.console-main .pt-section-sub { text-align:left; margin:2px 0 20px; }
.console-metric { padding:19px 20px; }
.console-metric strong { font-size:26px; }
.console-panel-header h2, .console-panel-header h3 { color:var(--eco-navy); font-size:16px; }
.console-main .pt-btn, .console-main .pt-btn-outline { border-radius:8px !important; }

.eco-home-hero {
  margin: 30px 0 48px; border: 1px solid #dceceb; border-radius: 30px; overflow: hidden;
  background: linear-gradient(135deg, #f0fbfa 0%, #fbfdfc 70%);
  color: var(--eco-ink); display: grid; grid-template-columns: 1.08fr .92fr; min-height: 480px;
  box-shadow: 0 10px 30px rgba(8,47,58,.055);
}
.eco-home-copy { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.eco-eyebrow { letter-spacing: .045em; font-size: 13px; font-weight: 750; color: var(--eco-teal); }
.eco-home-copy h1 { max-width: 620px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.09; letter-spacing: -.035em; margin: 14px 0 20px; color: var(--eco-navy); }
.eco-home-copy p { max-width: 570px; color: var(--eco-muted); font-size: 18px; line-height: 1.7; }
.eco-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.eco-btn-primary, .eco-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.eco-btn-primary { background: var(--eco-teal); color: #fff; box-shadow: 0 6px 16px rgba(8,127,140,.16); }
.eco-btn-primary:hover { color: #fff; background: #076d78; transform: translateY(-1px); }
.eco-btn-secondary { border: 1px solid #b7d5d8; color: var(--eco-navy); background: rgba(255,255,255,.72); }
.eco-btn-secondary:hover { color: var(--eco-navy); background: #fff; }
.eco-home-visual { position: relative; margin: 24px 24px 24px 0; min-height: 400px; border-radius: 22px; overflow: hidden; padding: 34px; background: linear-gradient(145deg,#dff5f2,#eaf7ef); display:flex; flex-direction:column; justify-content:center; }
.eco-home-visual::before, .eco-home-visual::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.38); }
.eco-home-visual::before { width:260px; height:260px; right:-90px; top:-100px; }
.eco-home-visual::after { width:180px; height:180px; left:-70px; bottom:-90px; }
.eco-visual-note, .eco-visual-grid { position:relative; z-index:1; }
.eco-visual-note { margin-bottom:22px; }
.eco-visual-note span { display:block; color:var(--eco-teal); font-size:12px; font-weight:750; letter-spacing:.04em; }
.eco-visual-note strong { display:block; max-width:340px; margin-top:5px; color:var(--eco-navy); font-size:21px; line-height:1.35; }
.eco-visual-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.eco-visual-grid a { min-height:106px; padding:16px; border:1px solid rgba(8,127,140,.13); border-radius:16px; background:rgba(255,255,255,.76); color:var(--eco-ink); text-decoration:none; display:flex; align-items:center; gap:12px; box-shadow:0 5px 15px rgba(8,47,58,.035); }
.eco-visual-grid a:hover { background:#fff; transform:translateY(-1px); }
.eco-visual-grid i { width:38px; height:38px; border-radius:12px; background:#e2f4f2; color:var(--eco-teal); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.eco-visual-grid strong { display:block; color:var(--eco-navy); font-size:15px; }
.eco-visual-grid span { color:var(--eco-muted); font-size:12px; line-height:1.4; }
.eco-trust { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:36px; padding-top:22px; border-top:1px solid #d9e9e9; color:var(--eco-muted); font-size:12px; line-height:1.4; }
.eco-trust strong { display:block; margin-bottom:3px; color:var(--eco-ink); font-size:14px; }

/* Homepage editorial system */
.eco-section { padding: 88px 0; }
.eco-section + .eco-section { border-top: 1px solid var(--eco-border); }
.eco-section-intro { max-width: 720px; margin-bottom: 46px; }
.eco-kicker { display:block; margin-bottom:10px; color:var(--eco-teal); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.eco-section-intro h2, .eco-final-cta h2 { margin:0; color:var(--eco-navy); font-size:clamp(30px,3.4vw,46px); line-height:1.14; letter-spacing:-.035em; }
.eco-section-intro > p { max-width:650px; margin:18px 0 0; color:var(--eco-muted); font-size:17px; line-height:1.75; }
.eco-service-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--eco-border); }
.eco-service-list article { display:grid; grid-template-columns:46px 1fr; gap:16px; padding:34px 34px 36px 0; border-bottom:1px solid var(--eco-border); }
.eco-service-list article:nth-child(odd) { padding-right:52px; border-right:1px solid var(--eco-border); }
.eco-service-list article:nth-child(even) { padding-left:40px; }
.eco-service-list article > span { color:#91aaae; font:700 12px/1.5 "Segoe UI",sans-serif; letter-spacing:.08em; }
.eco-service-list h3 { margin:0 0 10px; color:var(--eco-navy); font-size:21px; letter-spacing:-.015em; }
.eco-service-list p { min-height:54px; margin:0 0 18px; color:var(--eco-muted); font-size:14px; line-height:1.65; }
.eco-service-list a { font-size:13px; font-weight:750; text-decoration:none; }
.eco-service-list a i { margin-left:6px; transition:transform .15s ease; }
.eco-service-list a:hover i { transform:translateX(3px); }

.eco-plans { margin-left:-20px; margin-right:-20px; padding-left:40px; padding-right:40px; border:0 !important; border-radius:28px; background:#eef7f5; }
.eco-section-intro-row { max-width:none; display:flex; align-items:end; justify-content:space-between; gap:50px; }
.eco-section-intro-row > p { max-width:470px; margin:0 0 5px; }
/* The homepage plan cards were removed when the plans block moved to the
   shared views/site/_plan-tiers.php fragment: the free tier is a panel, not
   a priced column. Styling now lives with .pt-free-tier / .pt-tier-table. */

.eco-explore-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.eco-explore-grid > a { min-height:240px; padding:26px; border:1px solid var(--eco-border); border-radius:18px; background:#fff; color:var(--eco-ink); text-decoration:none; display:flex; flex-direction:column; }
.eco-explore-grid > a:hover { border-color:#b9d8d8; box-shadow:0 12px 28px rgba(8,47,58,.06); }
.eco-explore-grid i { width:42px; height:42px; margin-bottom:auto; border-radius:13px; background:#e9f6f4; color:var(--eco-teal); display:flex; align-items:center; justify-content:center; }
.eco-explore-grid span { margin-top:28px; color:var(--eco-muted); font-size:13px; line-height:1.55; }
.eco-explore-grid strong { display:block; margin-bottom:6px; color:var(--eco-navy); font-size:18px; }
.eco-explore-grid em { margin-top:18px; color:var(--eco-teal); font-size:12px; font-style:normal; font-weight:800; }

.eco-final-cta { margin:28px 0 80px; padding:54px 58px; border-radius:26px; background:var(--eco-navy); color:#fff; display:flex; align-items:center; justify-content:space-between; gap:48px; }
.eco-final-cta > div:first-child { max-width:650px; }
.eco-final-cta .eco-kicker { color:#8ed9dc; }
.eco-final-cta h2 { color:#fff; font-size:clamp(30px,3.2vw,44px); }
.eco-final-cta p { margin:14px 0 0; color:#c7dadd; }
.eco-final-cta .eco-actions { min-width:220px; flex-direction:column; align-items:flex-start; }
.eco-final-cta .eco-btn-primary { background:#fff; color:var(--eco-navy); box-shadow:none; }
.eco-final-cta .eco-btn-primary:hover { background:#e9f6f4; color:var(--eco-navy); }
.eco-text-link { color:#d7e9eb; font-size:13px; font-weight:700; text-decoration:none; }
.eco-text-link:hover { color:#fff; }

.pt-card, .pt-plan, .console-panel, .console-metric { border-color: var(--eco-border); border-radius: var(--eco-radius); box-shadow: var(--eco-shadow-sm); }
.pt-card:hover, .pt-plan:hover, a.console-metric:hover { box-shadow: 0 10px 26px rgba(8,47,58,.08); transform: translateY(-2px); }
.pt-icon-badge { background: var(--eco-sky); color: var(--eco-teal); }
.pt-section-title { color: var(--eco-navy); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.pt-section-sub, .pt-muted { color: var(--eco-muted) !important; }
.pt-btn { background: var(--eco-navy) !important; box-shadow: none; font-weight: 700; }
.pt-btn:hover { background: var(--eco-teal) !important; }
.pt-btn-outline { border-color: var(--eco-teal) !important; color: var(--eco-teal) !important; font-weight: 700; }
.pt-plan .pt-plan-head { background: var(--eco-navy); }
/* Public footer: a deliberate close to every ecosystem page. */
.pt-footer {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  padding: 0;
  border: 1px solid rgba(8, 127, 140, .32);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--eco-navy);
  color: #bfd1d5;
  box-shadow: 0 -12px 34px rgba(8, 47, 58, .08);
}

.pt-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--eco-cyan), var(--eco-teal) 68%, var(--eco-gold));
}

.pt-footer-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.pt-footer-lead {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(300px, 1fr) auto;
  gap: 38px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pt-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff !important;
  text-decoration: none;
}

.pt-footer-logo {
  display: flex;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.pt-footer-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pt-footer-brand-name {
  min-width: 0;
}

.pt-footer-brand-name strong {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.pt-footer-brand-name strong b {
  font-weight: 800;
}

.pt-footer-brand-name small {
  display: block;
  margin-top: 6px;
  color: #8fb0b6;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pt-footer-lead-copy p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.pt-footer-lead-copy span {
  display: block;
  margin-top: 5px;
  color: #96b1b6;
  font-size: 12px;
  line-height: 1.5;
}

.pt-footer-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #fff;
  border-radius: var(--eco-radius-sm);
  background: #fff;
  color: var(--eco-navy) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.pt-footer-cta:hover {
  border-color: var(--eco-sky);
  background: var(--eco-sky);
  transform: translateY(-1px);
}

.pt-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.35fr) minmax(0, 1fr);
  gap: 58px;
  padding: 48px 0 46px;
}

.pt-footer h2 {
  margin: 0 0 20px;
  color: #62c5ce;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pt-footer-about p {
  margin: 0;
  color: #bfd1d5;
  font-size: 13px;
  line-height: 1.75;
}

.pt-footer .pt-social {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.pt-footer .pt-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
  color: #dff6f7;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.pt-footer .pt-social a:hover {
  border-color: var(--eco-cyan);
  background: var(--eco-teal);
  color: #fff;
}

.pt-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e7e9;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.pt-footer-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4aaeb8;
}

.pt-footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.pt-footer-contact address {
  display: grid;
  gap: 17px;
  margin: 0;
  color: #bfd1d5;
  font-size: 12px;
  font-style: normal;
  line-height: 1.65;
}

.pt-footer-contact-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.pt-footer-contact-row i {
  padding-top: 4px;
  color: #62c5ce;
  text-align: center;
}

.pt-footer-contact a {
  color: #e3eef0;
  text-decoration: none;
}

.pt-footer-contact a:hover {
  color: #fff;
}

.pt-footer .pt-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #77979d;
  font-size: 11px;
  letter-spacing: .015em;
}

.pt-footer a:focus-visible {
  outline: 3px solid var(--eco-cyan);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .pt-footer-lead {
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 24px;
  }

  .pt-footer-lead-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pt-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 52px;
  }

  .pt-footer-about {
    grid-column: 1 / -1;
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .pt-footer-shell {
    padding: 0 24px;
  }

  .pt-footer-lead {
    grid-template-columns: 1fr;
    padding: 30px 0 32px;
  }

  .pt-footer-lead-copy,
  .pt-footer-cta {
    grid-column: auto;
    grid-row: auto;
  }

  .pt-footer-cta {
    width: 100%;
  }

  .pt-footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 40px 0;
  }

  .pt-footer-about {
    grid-column: auto;
  }

  .pt-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 460px) {
  .pt-footer-links {
    grid-template-columns: 1fr;
  }
}

/* Forms and feedback */
.pt-form label, .console-main label { display: block; color: var(--eco-ink); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.pt-form input:not([type=checkbox]), .pt-form select, .pt-form textarea,
.console-main input:not([type=checkbox]), .console-main select, .console-main textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--eco-border) !important;
  border-radius: var(--eco-radius-sm); background: #fff; padding: 10px 12px;
}
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus,
.console-main input:focus, .console-main select:focus, .console-main textarea:focus {
  border-color: var(--eco-teal) !important; box-shadow: 0 0 0 4px rgba(8,127,140,.12); outline: 0;
}
.console-flash { border-radius: var(--eco-radius-sm); border-left: 4px solid currentColor; }

/* Customer and staff shells */
.console-body { background: var(--eco-canvas); }
.console-shell { grid-template-columns: 256px minmax(0,1fr); }
.console-sidebar { background: #123f48; border: 0; color: #d7e7e9; }
.console-brand { border-color: rgba(255,255,255,.1); color: #fff !important; }
.console-brand small, .console-nav-label { color: #9ab8bd; }
.console-nav-link { color: #d7e7e9 !important; }
.console-nav-link i { color: #8fb1b6; }
.console-nav-link:hover { background: rgba(255,255,255,.07); }
.console-nav-link.active { background: #fff; color: var(--eco-navy) !important; box-shadow: none; }
.console-nav-link.active i { color: var(--eco-teal); }
.console-sidebar-footer { border-color: rgba(255,255,255,.1); }
.console-sidebar-footer a { color: #d7e7e9; }
.console-topbar { min-height: 68px; height: auto; border-color: var(--eco-border); }
.console-topbar-user > span:nth-child(2) { display:flex; flex-direction:column; color:var(--eco-ink); line-height:1.25; }
.console-topbar-user > span:nth-child(2) small { color:var(--eco-muted); font-size:10px; }
.console-main { max-width: 1280px; padding: 28px clamp(18px,3vw,38px); }
.console-panel-header { padding: 18px 20px; }
.console-panel-body { padding: 20px; }
.console-main table { min-width: 680px; }
.console-panel:has(table) { overflow-x: auto; }

@media (max-width: 1080px) {
  .pt-nav-search { display:none !important; }
  .pt-nav a.pt-nav-link { padding-left:10px !important; padding-right:10px !important; }
}
@media (max-width: 900px) {
  .eco-home-hero { grid-template-columns:1fr; }
  .eco-home-visual { min-height:280px; margin:0 24px 24px; }
  .eco-home-copy { padding:42px 28px; }
  .console-shell { grid-template-columns:1fr; }
  .eco-service-list, .eco-explore-grid { grid-template-columns:1fr; }
  .eco-service-list article, .eco-service-list article:nth-child(odd), .eco-service-list article:nth-child(even) { padding:28px 0; border-right:0; }
  .eco-section-intro-row, .eco-final-cta { align-items:flex-start; flex-direction:column; }
  .eco-plans { margin-left:0; margin-right:0; padding-left:24px; padding-right:24px; }
}
@media (max-width: 600px) {
  .eco-page { padding:0 12px; }
  .eco-home-hero { margin-top:16px; border-radius:22px; }
  .eco-home-copy { padding:38px 28px 30px; }
  .eco-home-copy h1 { font-size:38px; }
  .eco-home-visual { min-height:210px; }
  .eco-home-visual { padding:24px; }
  .eco-visual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .eco-visual-grid a { min-height:82px; padding:12px; gap:8px; }
  .eco-visual-grid i { width:32px; height:32px; }
  .eco-section { padding:64px 8px; }
  .eco-section-intro { margin-bottom:32px; }
  .eco-service-list { display:block; }
  .eco-plans { padding:56px 18px; border-radius:20px; }
  .eco-explore-grid > a { min-height:210px; }
  .eco-final-cta { margin-bottom:56px; padding:38px 28px; }
  .eco-trust { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:28px; padding-top:18px; }
  .eco-trust strong { font-size:12px; }
  .eco-trust span { font-size:10px; }
  .pt-footer { border-radius:18px 18px 0 0; }
  .pt-hero { margin-top:18px; padding:36px 28px; border-radius:20px; }
  .pt-page-shop .pt-hero { display:block; }
  .pt-page-accounts .pt-hero, .pt-page-account .pt-hero { padding-bottom:70px; }
  .pt-page-accounts .pt-form-card, .pt-page-account .pt-form-card { margin-top:-58px; padding:24px; }
  .pt-form-card, .pt-panel-light, .pt-cta { padding:24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ==================================================================
   Section pages: feature panel, banded grids, product cards.
   Introduced for the products/ rework — eight identical cards in a
   four-across grid gave a suite of eight sub-systems the same weight
   as a single product, and every card ended in the same two buttons.
   ================================================================== */

/* ---------- Featured card ---------- */
.pt-feature {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--eco-navy), var(--eco-teal));
  color: #fff;
  border-radius: var(--eco-radius-lg);
  padding: 32px;
  margin-bottom: 12px;
  box-shadow: var(--eco-shadow);
}

.pt-feature-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 28px;
  color: var(--eco-gold);
}

.pt-feature-body { flex: 1 1 auto; min-width: 0; }

.pt-feature h2 {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.pt-feature p {
  margin: 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, .88);
}

/* On a dark panel the outline button needs a light border to stay visible. */
.pt-feature .pt-btn,
.pt-feature .pt-btn-outline {
  background: #fff !important;
  color: var(--eco-navy) !important;
  border: 1px solid #fff !important;
}

.pt-feature .pt-quiet-link { color: rgba(255, 255, 255, .82); }
.pt-feature .pt-quiet-link:hover { color: #fff; }

@media (max-width: 600px) {
  .pt-feature { flex-direction: column; padding: 24px; gap: 16px; }
}

/* ---------- Band heading ---------- */
.pt-band-title {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eco-muted);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--eco-gold);
}

/* ---------- Product card ---------- */
.pt-card-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: none;
}

.pt-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--eco-radius-sm);
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 20px;
  margin-bottom: 4px;
}

.pt-card-product h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.pt-card-product p {
  color: var(--eco-muted);
  /* Push the actions to the bottom so buttons align across a row. */
  flex: 1 1 auto;
}

/* ---------- Card actions ---------- */
.pt-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 0;
}

/* The demo ask repeats on every card; a quiet link keeps one clear
   primary action per card instead of three competing buttons. */
.pt-quiet-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--eco-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pt-quiet-link:hover {
  color: var(--eco-navy);
  border-bottom-color: var(--eco-gold);
}

/* ---------- Product plan tiers ---------- */
.pt-free-tier {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--eco-sky);
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  padding: 20px 24px;
  margin: 16px 0 24px;
}

.pt-free-tier p { margin: 8px 0 0; max-width: 70ch; }

.pt-free-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--eco-success);
  border-radius: 999px;
  padding: 4px 12px;
}

.pt-tier-table {
  background: var(--eco-surface);
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  overflow: hidden;
  min-width: 520px;
}

.pt-tier-table th {
  background: var(--eco-navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
}

.pt-tier-table td { padding: 11px 14px; border-top: 1px solid var(--eco-border); }
.pt-tier-table tbody tr:nth-child(even) { background: #f7fafa; }

.pt-tier-price {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--eco-gold);
}

/* The buy row. Without it the table describes plans a visitor then has to
   go and find somewhere else to purchase. */
.pt-tier-actions td { padding: 16px 14px; border-top: 1px solid var(--eco-border); background: #f7fafa; }
.pt-tier-actions .w3-button { width: 100%; max-width: 220px; }

/* The plans block is the one place the homepage's rounded section shell and
   the product page's plain container meet. Keep the table breathing inside
   both without a second copy of the markup. */
.eco-plans .pt-free-tier { margin: 0 0 20px; }
.eco-plans .pt-tier-table { min-width: 460px; }
.eco-plans .pt-section-title { display: none; }

@media (max-width: 600px) {
  .pt-tier-actions td { padding: 12px 8px; }
  .pt-tier-actions .w3-button { padding: 8px 10px !important; font-size: 12px; }
}

.pt-tier-price small { font-weight: 400; opacity: .8; }

/* ==================================================================
   Product / service pitch pages (messaging strategy sections 15-16).
   ================================================================== */

.pt-promise {
  font-size: 20px;
  font-weight: 600;
  color: var(--eco-teal);
  max-width: 60ch;
  margin: 10px auto 0;
}

.pt-btn-lg { padding: 12px 26px !important; font-size: 16px !important; }

/* Reading column: long-form pitch copy needs a measure, not full width. */
.pt-doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

.pt-lede { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }

.pt-doc-h {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--eco-muted);
  margin: 28px 0 10px;
}

.pt-audience {
  background: var(--eco-sky);
  border-left: 3px solid var(--eco-teal);
  border-radius: 0 var(--eco-radius-sm) var(--eco-radius-sm) 0;
  padding: 12px 16px;
  margin: 20px 0;
}

/* ---------- Problem / solution pair ---------- */
.pt-problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 8px;
}

@media (max-width: 700px) {
  .pt-problem-solution { grid-template-columns: 1fr; }
}

.pt-ps-card {
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  padding: 20px;
  background: var(--eco-surface);
}

.pt-ps-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.pt-ps-card p { margin: 0; color: var(--eco-muted); }
.pt-ps-problem { border-top: 3px solid var(--eco-warning); }
.pt-ps-problem h3 { color: var(--eco-warning); }
.pt-ps-solution { border-top: 3px solid var(--eco-success); }
.pt-ps-solution h3 { color: var(--eco-success); }

/* ---------- Tick lists ---------- */
.pt-tick-list { list-style: none; padding: 0; margin: 0; }

.pt-tick-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-bottom: 1px solid var(--eco-border);
}

.pt-tick-list li:last-child { border-bottom: none; }

.pt-tick-list li::before {
  content: "\f00c"; /* fa-check */
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--eco-teal);
  font-size: 13px;
}

/* ---------- Support note ---------- */
.pt-support-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  background: var(--eco-surface);
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  padding: 20px 24px;
}

.pt-support-note > .fa { font-size: 22px; color: var(--eco-gold); margin-top: 2px; }
.pt-support-note p { margin: 0; color: var(--eco-muted); }

/* ==================================================================
   Free business documents — print-first output.
   The document must survive being printed from any browser, so the
   sheet carries its own typography and does not rely on site chrome.
   ================================================================== */

.doc-sheet-wrap { padding: 24px 16px; }

.doc-sheet {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  padding: 40px 44px;
  box-shadow: var(--eco-shadow-sm);
  font-size: 14px;
  line-height: 1.5;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 2px solid #111;
  padding-bottom: 14px;
}

.doc-issuer h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }

.doc-meta { text-align: right; flex: 0 0 auto; }

.doc-type {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 6px;
}

.doc-meta table { border-collapse: collapse; margin-left: auto; }
.doc-meta th { text-align: left; font-weight: 400; color: #555; padding: 1px 10px 1px 0; }
.doc-meta td { text-align: right; font-weight: 600; padding: 1px 0; }

.doc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 3px;
}

.doc-party { margin: 18px 0 22px; }
.doc-party p { margin: 0; font-size: 15px; font-weight: 600; }

.doc-items { width: 100%; border-collapse: collapse; margin-top: 8px; }

.doc-items thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #444;
  border-bottom: 1px solid #111;
  padding: 7px 8px;
}

.doc-items td { padding: 8px; border-bottom: 1px solid #e3e3e3; vertical-align: top; }
.doc-items .doc-num { text-align: right; white-space: nowrap; }
.doc-items .doc-col-n { width: 30px; color: #888; }

.doc-items tfoot td {
  border-bottom: none;
  border-top: 2px solid #111;
  padding-top: 10px;
  font-weight: 700;
}

.doc-total-label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.doc-total { font-size: 17px; }

.doc-notes { margin-top: 22px; }
.doc-notes p { margin: 0; }

.doc-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 11px;
  color: #777;
}

/* ---------- Upgrade panel (screen only) ---------- */
.doc-upsell {
  background: var(--eco-sky);
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.doc-upsell h3 { margin: 0 0 6px; font-size: 18px; }
.doc-upsell > div > p { color: var(--eco-muted); margin: 0 0 12px; }

/* On phones the screen preview behaves like a compact document, while the
   print rules below retain the full A4 table and letterhead. */
@media (max-width: 600px) {
  .doc-sheet-wrap { padding: 12px 8px; }
  .doc-sheet { padding: 24px 16px; font-size: 12px; }
  .doc-head { flex-direction: column; gap: 14px; }
  .doc-issuer h1 { font-size: 21px; }
  .doc-meta { width: 100%; text-align: left; }
  .doc-meta table { margin-left: 0; }
  .doc-items { table-layout: fixed; font-size: 10px; }
  .doc-items th, .doc-items td { padding: 6px 3px; }
  .doc-items .doc-col-n { display: none; }
  .doc-items th:nth-child(2), .doc-items td:nth-child(2) { width: 50%; overflow-wrap: anywhere; }
  .doc-items th:nth-child(3), .doc-items td:nth-child(3) { width: 15%; }
  .doc-items th:nth-child(4), .doc-items td:nth-child(4) { display: none; }
  .doc-items th:nth-child(5), .doc-items td:nth-child(5) { width: 35%; }
  .doc-items .doc-num { white-space: nowrap; }
  .doc-items tfoot tr { display: flex; justify-content: flex-end; }
  .doc-items tfoot td:first-child { flex: 1 1 auto; }
  .doc-items tfoot .doc-total { flex: 0 0 auto; width: auto; }
  .doc-total { font-size: 14px; }
  .doc-foot { flex-direction: column; gap: 4px; }
  .bss-document-actions .w3-button { display: block; width: 100%; margin: 0 0 8px; }
}

/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 12mm; }

  body { background: #fff !important; }

  /* .eco-page's 72px top margin exists only to clear the fixed navbar, and
     print hides that navbar — so it was leaving a ~19mm empty band at the
     top of every printed page, on top of the @page margin. Its side padding
     and max-width are screen concerns too: the paper is the container. */
  .eco-page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Site chrome never belongs on an issued document.
     Scoped to direct children of body: the document uses its own
     <header class="doc-head"> and <footer class="doc-foot">, and bare
     element selectors here hid the letterhead — business name, document
     type, number and date — from every printed page. */
  body > header, body > nav, body > footer,
  .pt-footer, .w3-top,
  .pt-no-print, .doc-upsell { display: none !important; }

  /* Belt and braces: the document's own parts always print. */
  .doc-head, .doc-foot { display: flex !important; flex-direction: row !important; }

  .doc-sheet-wrap { padding: 0; }

  .doc-sheet {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    font-size: 11pt;
  }

  .doc-items { table-layout: auto; font-size: 11pt; }
  .doc-items thead { display: table-header-group; }
  .doc-items tr { break-inside: avoid; }
  .doc-items .doc-col-n,
  .doc-items th:nth-child(4),
  .doc-items td:nth-child(4) { display: table-cell !important; }
  .doc-items th:nth-child(n),
  .doc-items td:nth-child(n) { width: auto; }
  .doc-items tfoot tr { display: table-row; }
  .doc-items tfoot td { display: table-cell; }
}

.doc-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--eco-sky);
  border: 1px solid var(--eco-border);
  border-left: 3px solid var(--eco-teal);
  border-radius: var(--eco-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.doc-notice > .fa { color: var(--eco-teal); font-size: 18px; margin-top: 2px; }

/* ==================================================================
   Code 128 barcode tags.

   Barcode128::render() emits one <div class="b128"> per module pair: the
   left border is the black bar, the width is the white gap that follows.
   Both come from inline styles, so without a border *style* and a height
   here every bar is invisible — which is exactly what the public tool was
   doing, drawing 31 correct but unpainted divs.
   ================================================================== */

.b128 {
  display: block;
  height: 38px;
  border-left: 1px solid #000;
  /* The renderer sets width = the white gap and border-left-width = the
     black bar, so the two must ADD. The site-wide `* { box-sizing:
     border-box }` made the bar eat into its own gap instead, shrinking a
     112-module symbol to 73px and distorting every ratio. Bars were still
     drawn, so it looked plausible and would not have scanned. */
  box-sizing: content-box;
}

/* The renderer wraps the bars in a table and captions it with the value.
   The padding is the quiet zone — a scanner needs clear space either side
   of the symbol or it will not read it. */
.barcode {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
}

.barcode table { margin: 0 auto; border-spacing: 0; }
.barcode td { padding: 0; vertical-align: top; }

.barcode tr:last-child td {
  padding-top: 5px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #000;
}

@media print {
  /* Some browsers drop borders and backgrounds when printing; bars that do
     not print are tags that do not scan. */
  .b128, .barcode { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==================================================================
   pr/ — Public Relations & Strategic Communication practice.
   ================================================================== */

.pr-hero {
  margin: 30px 0 40px;
  padding: 54px 48px;
  border-radius: var(--eco-radius);
  background: linear-gradient(135deg, var(--eco-navy) 0%, #0d4453 100%);
  color: #fff;
}

.pr-hero .eco-kicker { color: var(--eco-gold); }
.pr-hero h1 { margin: 10px 0 16px; max-width: 22ch; font-size: 40px; line-height: 1.15; letter-spacing: -.02em; }
.pr-hero-lead { max-width: 62ch; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.65; }
.pr-strapline { margin-top: 26px; color: var(--eco-gold); font-style: italic; }

/* Buttons on a dark hero.
   The site defaults are built for light backgrounds: .pt-btn is navy, which
   vanishes into this hero, and .pt-btn-outline has a white background — an
   earlier override here set its text to white too, which made it a blank
   white slab. Both are restated in full rather than patched a property at a
   time, because that is how the blank button happened. */

.pr-hero .pt-btn {
  /* Gold is the brand's accent and the only colour on this hero that is not
     already carrying text, so it reads as the one thing to press. */
  background: var(--eco-gold) !important;
  color: var(--eco-navy) !important;
  border: 2px solid var(--eco-gold) !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.pr-hero .pt-btn:hover {
  background: #e6bb3a !important;
  border-color: #e6bb3a !important;
  transform: translateY(-1px);
}

.pr-hero .pt-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, .7) !important;
  font-weight: 700;
}

.pr-hero .pt-btn-outline:hover {
  background: rgba(255, 255, 255, .12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* Keyboard users need to see the focus ring against the dark too. */
.pr-hero .pt-btn:focus-visible,
.pr-hero .pt-btn-outline:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pr-positioning {
  max-width: 78ch;
  margin: 0 auto 34px;
  padding: 26px 30px;
  border-left: 3px solid var(--eco-teal);
  background: var(--eco-sky);
  border-radius: 0 var(--eco-radius) var(--eco-radius) 0;
}

.pr-positioning p:first-child { margin-top: 0; color: var(--eco-navy); font-size: 17px; line-height: 1.65; }

/* Who we serve */
.pr-audience-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
}

.pt-flex-row .pr-audience-card { flex: 1; }
.pr-audience-card:hover { border-color: #b9d8d8; box-shadow: var(--eco-shadow-sm); }
.pr-audience-card h3 { margin: 0 0 8px; color: var(--eco-navy); font-size: 17px; }
.pr-audience-card p { flex: 1; color: var(--eco-muted); font-size: 14px; line-height: 1.6; }

.pr-audience-icon {
  width: 44px; height: 44px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 19px;
  flex: 0 0 auto;
}

.pr-audience-head { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 24px; }
.pr-audience-head h1 { margin: 0 0 6px; color: var(--eco-navy); }
.pr-audience-services { column-count: 2; column-gap: 30px; }
.pr-audience-services li { break-inside: avoid; }
.pr-audience-note { margin-top: 20px; border-left-color: var(--eco-gold); }

/* Service pillars */
.pr-service {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
}

.pt-flex-row .pr-service { flex: 1; }
.pr-service h3 { margin: 0 0 8px; color: var(--eco-navy); font-size: 17px; }
.pr-service h3 i { color: var(--eco-teal); margin-right: 7px; }
.pr-service p { color: var(--eco-muted); font-size: 14px; line-height: 1.6; }
.pr-service details { margin-top: 12px; }

/* The method */
.pr-process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.pr-process li { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--eco-border); border-radius: var(--eco-radius-sm); background: #fff; }
.pr-process strong { display: block; color: var(--eco-navy); }
.pr-process p { margin: 4px 0 0; color: var(--eco-muted); font-size: 13px; line-height: 1.55; }

.pr-process-n {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--eco-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Engagement models */
.pr-engagement { height: 100%; padding: 22px; border: 1px solid var(--eco-border); border-radius: var(--eco-radius); background: #fff; }
.pt-flex-row .pr-engagement { flex: 1; }
.pr-engagement > i { color: var(--eco-gold); font-size: 20px; }
.pr-engagement h3 { margin: 10px 0 8px; color: var(--eco-navy); font-size: 16px; }
.pr-engagement p { color: var(--eco-muted); font-size: 13px; line-height: 1.6; }

/* Principles — the part a serious client reads first. */
.pr-principles {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  margin: 40px 0;
  padding: 40px;
  border-radius: var(--eco-radius);
  background: var(--eco-navy);
  color: #fff;
}

.pr-principles .eco-kicker { color: var(--eco-gold); }
.pr-principles h2 { margin: 8px 0 16px; color: #fff; }
.pr-principles h4 { margin: 0 0 12px; color: var(--eco-gold); font-size: 14px; }
.pr-principles .pt-tick-list li { color: rgba(255,255,255,.9); }
.pr-principles .pt-tick-list li::before { color: var(--eco-gold); }
.pr-principles .pt-muted { color: rgba(255,255,255,.6) !important; }
.pr-promise { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.95); }
.pr-principles-lists { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.pr-refusals { list-style: none; margin: 0; padding: 0; }
.pr-refusals li { padding: 5px 0; color: rgba(255,255,255,.9); font-size: 14px; }
.pr-refusals i { color: var(--eco-gold); margin-right: 8px; }

/* Insights */
.pr-insight { height: 100%; padding: 24px; border: 1px solid var(--eco-border); border-radius: var(--eco-radius); background: #fff; }
.pt-flex-row .pr-insight { flex: 1; }
.pr-insight h3 { margin: 0 0 8px; color: var(--eco-navy); font-size: 17px; line-height: 1.35; }
.pr-insight p { color: var(--eco-muted); font-size: 14px; line-height: 1.6; }
.pr-insight-body { margin-top: 10px; color: var(--eco-ink); font-size: 14px; line-height: 1.75; }

/* Brief form */
.pr-confidential {
  padding: 26px;
  border: 1px solid var(--eco-border);
  border-left: 3px solid var(--eco-teal);
  border-radius: var(--eco-radius);
  background: var(--eco-sky);
}

.pr-confidential h3 { margin: 0 0 12px; color: var(--eco-navy); font-size: 16px; }
.pr-confidential h3 i { color: var(--eco-teal); margin-right: 7px; }
.pr-confidential p { font-size: 14px; line-height: 1.65; }
.pr-next-steps { margin: 0; padding-left: 20px; color: var(--eco-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 992px) {
  .pr-process { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pr-principles { grid-template-columns: 1fr; padding: 30px; }
}

@media (max-width: 700px) {
  .pr-hero { padding: 38px 26px; }
  .pr-hero h1 { font-size: 29px; }
  .pr-process { grid-template-columns: 1fr; }
  .pr-principles-lists { grid-template-columns: 1fr; }
  .pr-audience-services { column-count: 1; }
  .pr-audience-head { flex-direction: column; gap: 12px; }
}

/* ==================================================================
   free/ — the Freemium landing page.
   ================================================================== */

.free-tool {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.free-tool:hover { border-color: #b9d8d8; box-shadow: var(--eco-shadow-sm); }
.pt-flex-row .free-tool { flex: 1; }

.free-tool-icon {
  width: 48px; height: 48px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 21px;
}

.free-tool h3 { margin: 0 0 8px; color: var(--eco-navy); font-size: 19px; }
.free-tool p { color: var(--eco-muted); font-size: 14px; line-height: 1.6; }
.free-tool .pt-chip { align-self: flex-start; margin-bottom: 16px; }
.free-tool-actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.free-group-head {
  display: flex; align-items: center; gap: 9px;
  margin: 26px 0 10px;
  color: var(--eco-navy);
  font-size: 15px;
}

.free-group-head i { color: var(--eco-teal); }

.free-list { border: 1px solid var(--eco-border); border-radius: var(--eco-radius); overflow: hidden; background: #fff; }

.free-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--eco-border);
}

.free-row:last-child { border-bottom: 0; }
.free-row:nth-child(even) { background: #f7fafa; }
.free-row p { margin: 3px 0 0; }
.free-row-action { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Two honest columns: what free gives you, and what it withholds. */
.free-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.free-compare-col {
  padding: 26px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
}

.free-compare-col-alt { background: var(--eco-sky); }
.free-compare-col h3 { margin: 0 0 14px; color: var(--eco-navy); font-size: 17px; }
.free-compare-col h3 i { color: var(--eco-teal); margin-right: 7px; }

@media (max-width: 800px) {
  .free-compare { grid-template-columns: 1fr; }
  .free-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==================================================================
   services/ — installation setups and their bills of materials.
   ================================================================== */

.setup-band { margin: 0 0 44px; }

.setup-band-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--eco-border);
}

.setup-band-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 19px;
}

.setup-band-head h2 { margin: 0; color: var(--eco-navy); font-size: 21px; }
.setup-band-head p { margin: 5px 0 0; color: var(--eco-muted); font-size: 14px; }

.setup-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius);
  background: #fff;
}

.setup-card:hover { border-color: #b9d8d8; box-shadow: var(--eco-shadow-sm); }
.setup-card h3 { margin: 0 0 8px; color: var(--eco-navy); font-size: 18px; }
.setup-card p { color: var(--eco-muted); font-size: 14px; }
.setup-card .w3-button { margin-top: auto; align-self: flex-start; }

.setup-chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.setup-meta { margin: 12px 0 18px; padding: 0; list-style: none; }
.setup-meta li { color: var(--eco-muted); font-size: 13px; padding: 2px 0; }
.setup-meta i { width: 16px; color: var(--eco-teal); }

.setup-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.setup-head h1 { margin: 4px 0 6px; color: var(--eco-navy); }
.setup-head-meta { text-align: right; }

/* The bill of materials editor. Wider than the documents line editor
   because an item carries a specification as well as a name. */
.setup-line {
  display: grid;
  grid-template-columns: 1fr 90px 130px 40px;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.setup-line-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.setup-line-spec { font-size: 13px !important; color: var(--eco-muted); }

.setup-line-head {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--eco-muted);
}

.setup-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--eco-navy);
}

.setup-total span { color: var(--eco-navy); font-weight: 700; }
.setup-total strong { color: var(--eco-navy); font-size: 26px; letter-spacing: -.02em; }

.setup-form { max-width: none; }

/* control/ item editor — one row per item, all seven fields inline. */
.setup-admin-line {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 70px 70px 110px 80px 40px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.setup-admin-line input, .setup-admin-line select { font-size: 13px !important; padding: 6px 8px !important; }

.setup-admin-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--eco-muted);
}

@media (max-width: 900px) {
  .setup-admin-line { grid-template-columns: 1fr 1fr 60px 40px; }
  .setup-admin-line .admin-name, .setup-admin-line .admin-spec { grid-column: span 2; }
  .setup-admin-head { display: none; }
}

@media (max-width: 700px) {
  .setup-line { grid-template-columns: 1fr 1fr 40px; }
  .setup-line-item { grid-column: 1 / -1; }
  .setup-line-head { display: none; }
  .setup-head-meta { text-align: left; }
}

/* ---------- Builder layout ----------
   The letterhead is typed once and then ignored; the item lines are where
   the work happens. Side by side, so a 1140px container is not 720px of
   form and 404px of nothing. */
.doc-builder {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Thirty lines is a tall column — keep the letterhead in view beside it. */
.doc-builder-side > .pt-form-card { position: sticky; top: 20px; }

/* Both cards fill their own column; the global 720px cap is for a
   single centred form, which this no longer is. */
.doc-builder .pt-form-card { max-width: none; padding: 24px; }
.doc-builder-title { margin: 0 0 4px; color: var(--eco-navy); }
.doc-builder-side .pt-form-card > p:first-of-type { margin-top: 0; }
.doc-builder label { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.doc-builder-side label { margin-top: 10px; }

@media (max-width: 900px) {
  .doc-builder { grid-template-columns: 1fr; gap: 18px; }
  .doc-builder-side > .pt-form-card { position: static; }
}

/* ---------- Document line editor ---------- */
.doc-line {
  display: grid;
  grid-template-columns: 1fr 110px 140px 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Labels the three columns once instead of repeating placeholder text
   down every row. Hidden from assistive tech — each input keeps its own
   label/aria-label, so this would only duplicate them. */
.doc-line-head {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--eco-muted);
}

@media (max-width: 600px) {
  .doc-line { grid-template-columns: 1fr 1fr 40px; }
  .doc-line-name { grid-column: 1 / -1; }
  .doc-line-head { display: none; }
}

.doc-line-remove {
  border: 1px solid var(--eco-border);
  background: var(--eco-surface);
  color: var(--eco-muted);
  border-radius: var(--eco-radius-sm);
  height: 40px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.doc-line-remove:hover:not(:disabled) {
  color: var(--eco-danger);
  border-color: var(--eco-danger);
}

.doc-line-remove:disabled { opacity: .3; cursor: not-allowed; }

/* Paid BSS uses the Freemium document language inside the customer portal. */
.bss-doc-builder {
  max-width: 900px;
  margin: 0 auto 28px;
}

.bss-doc-builder .pt-form-card {
  max-width: none;
  padding: 26px;
}

.bss-doc-builder label {
  display: block;
  margin: 12px 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.bss-document-meta-row { margin: 8px -16px 18px; }
.bss-document-actions { max-width: 900px; margin: 0 auto; }
.bss-saved-note h3 i { color: var(--eco-teal); margin-right: 7px; }

@media (max-width: 600px) {
  .bss-doc-builder .pt-form-card { padding: 20px 16px; }
  .bss-document-types .w3-button { width: 100%; margin-right: 0 !important; }
}

/* ==================================================================
   80mm thermal receipt.
   A receipt roll is ~72mm printable with no fixed page height, so this
   is a single monospaced column with dashed rules — thermal heads print
   solid fills slowly and unevenly.
   ================================================================== */

.rcpt-stage { display: flex; justify-content: center; padding: 24px 16px; }

.rcpt {
  width: 72mm;
  background: #fff;
  color: #000;
  font-family: "Consolas", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 6mm 4mm;
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius-sm);
  box-shadow: var(--eco-shadow-sm);
}

.rcpt-head { text-align: center; }
.rcpt-biz { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.rcpt-type { font-size: 12px; letter-spacing: .18em; margin-top: 2px; }

.rcpt-rule { border-top: 1px dashed #000; margin: 6px 0; }
.rcpt-rule-double { border-top-style: double; border-top-width: 3px; }

.rcpt-meta > div,
.rcpt-item-calc,
.rcpt-total,
.rcpt-foot > div { display: flex; justify-content: space-between; gap: 8px; }

.rcpt-meta > div > span:first-child { color: #333; }
.rcpt-meta > div > span:last-child { text-align: right; font-weight: 600; }

.rcpt-item { margin-bottom: 4px; }
.rcpt-item-name { word-break: break-word; }
.rcpt-item-calc { padding-left: 8px; }

.rcpt-total { font-size: 14px; font-weight: 700; }

.rcpt-notes { font-size: 11px; word-break: break-word; }

.rcpt-foot { text-align: center; font-size: 11px; margin-top: 4px; }
.rcpt-foot > div { justify-content: center; }

@media print {
  .rcpt-stage { padding: 0; display: block; }

  .rcpt {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    /* Thermal output is 1-bit: pure black on white beats any grey. */
    font-size: 11pt;
    color: #000;
  }

  .rcpt-meta > div > span:first-child { color: #000; }
  .rcpt-item { break-inside: avoid; }
}

/* ---------- Issuer letterhead lines ---------- */
.doc-issuer-line {
  margin: 3px 0 0;
  font-size: 12px;
  color: #444;
  max-width: 46ch;
}

.doc-fieldset {
  border: 1px solid var(--eco-border);
  border-radius: var(--eco-radius-sm);
  padding: 16px 18px;
  margin: 0 0 18px;
}

.doc-fieldset legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eco-muted);
}

.rcpt-sub { font-size: 11px; line-height: 1.35; }
.rcpt-head .rcpt-type { margin-top: 5px; }

@media print {
  .doc-issuer-line { color: #000; }
}

/* ---------------------------------------------------------------------------
   404 / 403 — the one error page, rendered by PT\Site\StatusPage.
   Lives in the global sheet on purpose: an error can be served from anywhere,
   and a page-specific stylesheet is the one thing a controller forgets.
   --------------------------------------------------------------------------- */
.status-page {
  max-width: 640px;
  margin: 50px auto 70px;
  padding: 48px 40px;
  border: 1px solid var(--eco-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(8, 47, 58, .05);
  text-align: center;
}

.status-page-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #d8edee;
  border-radius: 17px;
  background: var(--eco-sky);
  color: var(--eco-teal);
  font-size: 23px;
}

.status-page h1 {
  margin: 0 0 12px;
  color: var(--eco-navy);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.status-page-message {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--eco-muted);
  font-size: 15px;
  line-height: 1.7;
}

.status-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
}

.status-page-actions .w3-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--eco-radius-sm);
}

.status-page a:focus-visible {
  outline: 3px solid var(--eco-cyan);
  outline-offset: 3px;
}

.status-page-chips {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--eco-border);
}

.status-page-chips p {
  margin: 0 0 12px;
  color: var(--eco-muted);
  font-size: 13px;
}

.status-page-chips ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-page-chips a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--eco-border);
  border-radius: 999px;
  color: #3f5c63;
  font-size: 13px;
  text-decoration: none;
}

.status-page-chips a:hover {
  border-color: #abd4d8;
  color: var(--eco-teal);
}

@media (max-width: 720px) {
  .status-page {
    margin: 24px auto 50px;
    padding: 34px 24px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .status-page-actions .w3-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------------
   Workspace dashboard (accounts/). Ordered by what needs the customer first:
   alerts, then account state, then the services they run.
   --------------------------------------------------------------------------- */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.dash-eyebrow {
  margin: 0 0 6px;
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dash-head h1 {
  margin: 0;
  color: var(--pt-ink);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.dash-greet {
  margin: 6px 0 0;
  color: var(--pt-muted);
  font-size: 13px;
}

.dash-head-action {
  border-radius: var(--pt-radius);
}

.dash-section-title {
  margin: 0 0 12px;
  color: var(--pt-ink);
  font-size: 15px;
  letter-spacing: -.01em;
}

/* Alerts -------------------------------------------------------------------- */
.dash-alerts {
  margin-bottom: 24px;
}

.dash-alert {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--pt-line);
  border-left-width: 4px;
  border-radius: var(--pt-radius);
  background: #fff;
}

.dash-alert + .dash-alert {
  margin-top: 10px;
}

.dash-alert.is-warn  { border-left-color: #b7791f; }
.dash-alert.is-danger{ border-left-color: #c53030; }
.dash-alert.is-warn i  { color: #b7791f; }
.dash-alert.is-danger i{ color: #c53030; }

.dash-alert strong {
  color: var(--pt-ink);
  font-size: 14px;
}

.dash-alert p {
  margin: 3px 0 0;
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dash-alert-action {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  color: var(--pt-primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dash-alert-action:hover {
  border-color: var(--pt-primary);
}

.dash-allclear {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 13px 18px;
  border: 1px solid #cde9d6;
  border-radius: var(--pt-radius);
  background: #f2fbf5;
  color: #256b3e;
  font-size: 14px;
}

/* Tiles --------------------------------------------------------------------- */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.dash-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: #fff;
  box-shadow: var(--pt-shadow);
}

.dash-tile-label {
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dash-tile-value {
  color: var(--pt-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.dash-tile-value.is-owing { color: #c53030; }
.dash-muted { color: var(--pt-muted) !important; }

.dash-of {
  margin-left: 4px;
  color: var(--pt-muted);
  font-size: 14px;
  font-weight: 650;
}

.dash-tile-note {
  color: var(--pt-muted);
  font-size: 12px;
  line-height: 1.5;
}

.dash-tile-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--pt-primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Status pills -------------------------------------------------------------- */
.dash-status {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.dash-status.is-ok   { background: #e6f6ec; color: #256b3e; }
.dash-status.is-warn { background: #fdf3e2; color: #8a5a12; }
.dash-status.is-bad  { background: #fdeaea; color: #a52a2a; }

/* Panels -------------------------------------------------------------------- */
.dash-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  /* Each panel is as tall as its own content. Stretching the shorter one to
     match its neighbour padded it with dead space inside the card, which read
     as a panel that had failed to load rather than one with less to say. */
  align-items: start;
}

.dash-panel {
  padding: 20px 22px;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: #fff;
  box-shadow: var(--pt-shadow);
}

.dash-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-panel h2 {
  margin: 0;
  color: var(--pt-ink);
  font-size: 15px;
  letter-spacing: -.01em;
}

.dash-panel > header a {
  color: var(--pt-primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef2f3;
}

.dash-list li:first-child { border-top: 0; }

.dash-list-name {
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 650;
}

.dash-list-meta {
  margin-left: auto;
  color: var(--pt-muted);
  font-size: 12px;
}

.dash-empty {
  margin: 0;
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.6;
}

.dash-empty a { color: var(--pt-primary-dark); font-weight: 650; }

@media (max-width: 1000px) {
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .dash-tiles { grid-template-columns: minmax(0, 1fr); }

  .dash-alert {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .dash-alert-action {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Dashboard: allowance bars and the SMS wallet figure. */
.dash-usage {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-usage li + li {
  margin-top: 14px;
}

.dash-usage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.dash-usage-count {
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 700;
}

.dash-bar {
  height: 6px;
  border-radius: 999px;
  background: #eef2f3;
  overflow: hidden;
}

.dash-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pt-primary);
}

.dash-bar span.is-high { background: #d69e2e; }
.dash-bar span.is-full { background: #c53030; }

.dash-wallet {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
}

.dash-wallet-value {
  color: var(--pt-ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.dash-wallet-unit {
  color: var(--pt-muted);
  font-size: 13px;
}

/* Dashboard quick actions — the things a customer opens the page to do. */
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.dash-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: #fff;
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--pt-shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dash-action i { color: var(--pt-primary); }

.dash-action:hover {
  border-color: var(--pt-primary);
  box-shadow: var(--pt-shadow-lift);
  transform: translateY(-1px);
}

.dash-action:focus-visible {
  outline: 3px solid var(--pt-primary);
  outline-offset: 2px;
}

/* An invoice number means little without its date. */
.dash-list-name small {
  display: block;
  margin-top: 2px;
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .dash-action { transition: none; }
  .dash-action:hover { transform: none; }
}
