/* 7 Under admin portal (WP-16). Loaded after the app's app.css, which deploy.py
   copies in with the fonts, so buttons, fields and toasts look as they do in the app. */

/* Portal layout: a dark green menu down the left on wide screens, a scrolling
   strip across the top on narrow ones. */
.admin-portal { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.admin-nav {
  display: flex; gap: 2px; padding: 8px; overflow-x: auto; flex-shrink: 0;
  background: var(--green-900);
}
.admin-nav__group { display: contents; }
.admin-nav__heading { display: none; }
.admin-nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 8px;
  text-decoration: none; color: rgba(255,255,255,.68); white-space: nowrap;
}
.admin-nav__item:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-nav__item.is-active { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav__icon { display: inline-flex; font-size: 18px; flex-shrink: 0; }
.admin-nav__icon svg { width: 1em; height: 1em; }
.admin-content { flex: 1; overflow-y: auto; padding: 16px; }
@media (min-width: 860px) {
  .admin-portal { flex-direction: row; }
  .admin-nav {
    flex-direction: column; width: 210px; padding: 8px 10px 24px;
    overflow-x: unset; overflow-y: auto;
  }
  .admin-nav__group { display: block; margin-top: 14px; }
  .admin-nav__heading {
    display: block; padding: 0 12px 6px; font-size: 10.5px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  }
  .admin-nav__item { margin-bottom: 2px; }
  .admin-content { padding: 24px; }
}

.admin-view { max-width: 1400px; }
.admin-h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.admin-h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.admin-section { margin: 24px 0; }
.admin-section--danger { border-top: 2px solid var(--danger); padding-top: 16px; }
.admin-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.admin-prompt { width: 100%; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; margin-bottom: 12px; }
.admin-tone { margin-bottom: 12px; }
.admin-tone p { margin: 4px 0 0; font-size: 14px; max-width: 760px; }

/* KPI cards */
.admin-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; min-width: 110px;
}
.admin-kpi__value { font-size: 22px; font-weight: 700; color: var(--green-900); }
.admin-kpi__label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-kpi__sub   { font-size: 11px; color: var(--muted); }

/* Toolbar (search + filters) */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }

/* Data table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th {
  text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 2px solid var(--line); background: var(--cream);
  position: sticky; top: 0; z-index: 1;
}
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr:hover { background: var(--cream); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Pagination */
.admin-pagination { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Action rows */
.admin-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Budget / confirm inputs */
.admin-confirm { margin-top: 8px; }
.admin-confirm__label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.admin-confirm__row { display: flex; gap: 8px; align-items: center; }

/* Config read-only display */
.admin-cfg { background: var(--cream); border-radius: 8px; padding: 12px; }
.admin-cfg-row { display: flex; gap: 16px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-cfg-row:last-child { border-bottom: none; }
.admin-cfg-key { font-family: monospace; font-size: 12px; color: var(--muted); min-width: 180px; }
.admin-cfg-val { font-weight: 600; color: var(--ink); }

/* Shell: top bar, sign-in card. */
body { margin: 0; background: var(--cream); }
.portal-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--green-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.portal-bar__title { font-weight: 800; letter-spacing: .04em; margin-right: auto; }
.portal-bar__who { font-size: 13px; opacity: .85; }
.portal-bar .btn { color: #fff; border-color: rgba(255,255,255,.4); }
.portal-main { min-height: calc(100vh - 52px); display: flex; }
.portal-main > .admin-portal { width: 100%; }
.login { display: flex; min-height: 100vh; background: var(--green-900); }
.login__panel {
  flex: 0 0 33.333%; min-width: 380px; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 48px 56px; color: #fff;
}
.login__logo { width: 150px; height: auto; }
.login__form { margin: auto 0; padding: 48px 0; max-width: 340px; }
.login__eyebrow {
  margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.login__title { margin: 0 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.login__note { margin: 0 0 32px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.72); }
/* With no message (a first visit) the note is empty and the form follows the title. */
.login__note:empty { display: none; }
.login__note:empty + .login__label { margin-top: 32px; }
.login__label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.login__input {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 16px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px; outline: none;
  transition: border-color .15s, background .15s;
}
.login__input::placeholder { color: rgba(255,255,255,.38); }
.login__input:focus { border-color: var(--accent); background: rgba(255,255,255,.11); }
.login__input:disabled { opacity: .6; }
.login__input[hidden] { display: none; }
.login__code { font-size: 26px; font-weight: 700; letter-spacing: .5em; text-align: center; padding: 16px; }
.login__btn {
  width: 100%; margin-top: 8px; padding: 15px 18px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; color: var(--green-900); background: var(--accent);
  transition: filter .15s, transform .05s;
}
.login__btn:hover { filter: brightness(1.06); }
.login__btn:active { transform: translateY(1px); }
.login__btn:disabled { opacity: .6; cursor: default; }
.login__foot { margin: 0; font-size: 12px; color: rgba(255,255,255,.45); }
.login__photo {
  flex: 1; background:
    linear-gradient(90deg, rgba(30,58,52,.55) 0, rgba(30,58,52,0) 22%),
    url('/img/login.jpg') 22% 60% / cover no-repeat;
}

/* Phone and narrow windows: the photograph behind the form, darkened enough to read. */
@media (max-width: 860px) {
  .login {
    background:
      linear-gradient(rgba(30,58,52,.82), rgba(30,58,52,.92)),
      url('/img/login.jpg') 25% 60% / cover no-repeat;
  }
  .login__panel { flex: 1; min-width: 0; padding: 32px 24px; }
  .login__form { max-width: 420px; width: 100%; margin: auto; padding: 32px 0; }
  .login__photo { display: none; }
}
@media (max-width: 600px) { .portal-bar__who { display: none; } }

/* Business dashboard. */
.dash__head { display: flex; align-items: center; gap: 12px; }
.dash__head .admin-h2 { margin: 0; }
.dash__demo {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #8A5A00; background: #FFF1D6; border: 1px solid #F0D9A8; border-radius: 999px; padding: 4px 10px;
}
.dash > .admin-note { margin: 6px 0 20px; }
.dash__attention {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 20px;
  padding: 14px 18px; border-radius: 12px; background: #FFF6EC; border: 1px solid #F3D7B5; font-size: 14px;
}
.dash__attention b { color: #8A4B08; }
.dash__attention a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #E8BE8C; text-underline-offset: 3px; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.dash__kpi, .dash__card, .dash__mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dash__kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.dash__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.dash__value { display: flex; align-items: baseline; gap: 10px; font-size: 30px; font-weight: 800; color: var(--green-900); letter-spacing: -.01em; }
.dash__value--sm { font-size: 20px; }
.dash__delta { font-size: 13px; font-weight: 700; color: var(--muted); }
.dash__delta.is-good { color: #2F7D5A; }
.dash__delta.is-bad { color: #B42318; }
.dash__sub { font-size: 12px; color: var(--muted); }
.dash__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dash__card { padding: 18px 20px; }
.dash__h { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.dash__months { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.chart__line--mrr { stroke: var(--green-900); stroke-width: 2.5; }
.chart__fill--mrr { fill: rgba(47,125,90,.10); stroke: none; }
.chart__line--payers { stroke: var(--accent); }
.chart__line--signups { stroke: var(--green-500); }
.chart__line--paid { stroke: var(--green-900); stroke-width: 2.5; }
.chart__swatch--mrr, .chart__swatch--paid { color: var(--green-900); }
.chart__swatch--payers { color: var(--accent); }
.chart__swatch--signups { color: var(--green-500); }
.dash__more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.dash__mini { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.dash__lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash__list { list-style: none; margin: 0; padding: 0; }
.dash__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.dash__list li:first-child { border-top: 0; }
.dash__list span { color: var(--ink); text-align: right; }
.dash__list small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) {
  .dash__kpis, .dash__more { grid-template-columns: repeat(2, 1fr); }
  .dash__charts, .dash__lists { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portal design system (14 Oct 2026)
   The views were written against the app's styles, where fields are styled
   per screen and .btn--ghost is the red log-out button, so the portal showed
   browser-default search boxes and red Filter buttons. One set of rules here,
   scoped to the portal, makes every control the same height and look.
   ========================================================================== */

.portal-main { font-size: 14px; color: var(--ink); background: #F4F5F1; }
.admin-content { background: #F4F5F1; }
.admin-view { max-width: 1320px; }

/* Type */
.admin-h2 { font-size: 26px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 18px; color: var(--green-900); }
.admin-h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.admin-note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Sections are cards */
.admin-section {
  margin: 0 0 16px; padding: 20px 22px; background: var(--surface);
  border: 1px solid #E4E6E1; border-radius: 14px;
}
.admin-section--danger { border-color: #F2C9C4; box-shadow: inset 4px 0 0 #D9534A; }

/* Fields: inputs, selects, textareas all alike */
/* :where keeps this rule weak, so the search and select variants below can add an
   icon and padding without fighting it. */
.portal-main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  box-sizing: border-box; height: 40px; padding: 0 12px; margin: 0;
  font: inherit; font-size: 14px; color: var(--ink);
  background-color: #fff; border: 1px solid #D5D9D2; border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.portal-main textarea { height: auto; padding: 12px; line-height: 1.5; }
.portal-main select {
  padding-right: 34px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
}
.portal-main input::placeholder, .portal-main textarea::placeholder { color: #9AA0A6; }
.portal-main input:focus, .portal-main select:focus, .portal-main textarea:focus {
  border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(47,125,90,.15);
}
.portal-main input[type="search"], .portal-main .admin-toolbar input[type="text"] {
  padding-left: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") 11px center / 16px no-repeat;
}
.portal-main .field { margin: 0 0 14px; }
.portal-main .field__label, .portal-main .field-label, .portal-main .settings-row__label {
  display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.portal-main .field input, .portal-main .field select { width: 100%; max-width: 420px; }

/* Buttons: one height, three kinds */
.portal-main .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; margin: 0; padding: 0 16px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.portal-main .btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.portal-main .btn--primary { background: var(--green-700); color: #fff; border: 1px solid var(--green-700); }
.portal-main .btn--primary:hover { background: var(--green-900); border-color: var(--green-900); }
.portal-main .btn--ghost { background: #fff; color: var(--ink); border: 1px solid #D5D9D2; }
.portal-main .btn--ghost:hover { background: #F4F5F1; border-color: #BFC5BC; }
.portal-main .btn--danger { background: #fff; color: #B42318; border: 1px solid #F2C9C4; }
.portal-main .btn--danger:hover { background: #FEF3F2; }
.portal-main .btn:disabled { opacity: .5; cursor: default; }
.portal-main .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Toolbars and action rows line up on one baseline */
.admin-toolbar, .admin-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-toolbar { margin: 0 0 14px; }
.admin-toolbar .btn, .admin-action-row .btn { height: 40px; }
.admin-toolbar input[type="text"], .admin-toolbar input[type="search"] { min-width: 260px; }
.admin-toolbar .btn--primary { margin-left: auto; }

/* Tables: a white card, quiet header, roomy rows */
.admin-table-wrap {
  background: var(--surface); border: 1px solid #E4E6E1; border-radius: 14px; overflow: auto;
}
.admin-section .admin-table-wrap { border: 0; border-radius: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  position: sticky; top: 0; z-index: 1; padding: 11px 14px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #6B7280; background: #FAFAF8; border-bottom: 1px solid #E4E6E1;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #EEF0EC; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #F7F9F6; }
.admin-table code { font-size: 12px; color: #6B7280; background: #F4F5F1; padding: 2px 6px; border-radius: 6px; }

.admin-pagination { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* KPI tiles (Health and the user page) */
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-kpi { background: var(--surface); border: 1px solid #E4E6E1; border-radius: 14px; padding: 16px 18px; }
.admin-kpi__value { font-size: 24px; font-weight: 800; color: var(--green-900); letter-spacing: -.01em; }
.admin-kpi__label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }

/* Rows borrowed from the app's settings screens (importer, Caddie) */
.portal-main .settings-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF0EC; }
.portal-main .settings-row:last-child { border-bottom: 0; }
.portal-main .card { background: var(--surface); border: 1px solid #E4E6E1; border-radius: 14px; padding: 18px 20px; }

/* The dashboard cards match */
.dash__kpi, .dash__card, .dash__mini { border-color: #E4E6E1; }

/* ==========================================================================
   Boards (Monday style)
   ========================================================================== */
.board { max-width: 1400px; }
.board__tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid #E4E6E1; }
.board__tab {
  padding: 9px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.board__tab:hover { color: var(--ink); }
.board__tab.is-on { color: var(--green-900); border-bottom-color: var(--green-700); }
.board__tab--new { color: var(--green-700); font-weight: 600; }
.board__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.board__head .admin-h2 { margin: 0; cursor: text; }
.board__head .btn { margin-left: auto; }
.board__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.board__chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #D5D9D2; background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.board__chip.is-on { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.board__addGroup { margin-top: 4px; }

.bg { margin: 0 0 22px; }
.bg__head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.bg__caret { border: 0; background: none; cursor: pointer; font-size: 14px; width: 22px; padding: 0; }
.bg__name { font-size: 17px; font-weight: 800; cursor: text; }
.bg__count { font-size: 12px; color: var(--muted); }
.bg__menu { margin-left: 4px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); padding: 0 6px; border-radius: 6px; }
.bg__menu:hover { background: #E9ECE6; }

.bt {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;
  background: #fff; border: 1px solid #E4E6E1; border-radius: 12px; overflow: hidden; font-size: 14px;
}
.bt th {
  padding: 9px 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  background: #FAFAF8; border-bottom: 1px solid #E4E6E1;
}
.bt th:first-child { text-align: left; padding-left: 16px; }
.bt th:nth-child(2) { width: 110px; } .bt th:nth-child(3) { width: 150px; }
.bt th:nth-child(4) { width: 120px; } .bt th:nth-child(5) { width: 140px; } .bt th:nth-child(6) { width: 56px; }
.bt td { height: 42px; padding: 0 10px; border-bottom: 1px solid #EEF0EC; border-left: 1px solid #F1F2EE; text-align: center; }
.bt td:first-child { border-left: 0; }
.bt tbody tr:last-child td { border-bottom: 0; }
.bt tbody tr:hover td { background: #F8FAF7; }
.bt__title { text-align: left !important; padding-left: 16px !important; }
.bt__title { display: table-cell; }
.bt__titleText { cursor: text; }
.bt__open {
  visibility: hidden; margin-left: 10px; padding: 2px 8px; border-radius: 6px; border: 1px solid #D5D9D2;
  background: #fff; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
}
.bt__row:hover .bt__open { visibility: visible; }
.bt__row.is-done .bt__titleText { color: var(--muted); text-decoration: line-through; text-decoration-color: #C4C7CC; }
.bt__pill { color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; border-left-color: #fff !important; }
.bt tbody tr:hover td.bt__pill { filter: brightness(1.04); }
.bt__pill.is-empty { color: transparent; }
.bt__owner { cursor: pointer; }
.bt__date { height: 32px !important; width: 100%; border-color: transparent !important; background: transparent !important; text-align: center; font-size: 13px !important; padding: 0 4px !important; }
.bt__date:hover { border-color: #D5D9D2 !important; }
.bt__date.is-late { color: #B42318 !important; font-weight: 700; }
.bt__talk { position: relative; border: 0; background: none; cursor: pointer; color: #B7BCB4; font-size: 20px; line-height: 0; }
.bt__talk svg { width: 1em; height: 1em; }
.bt__talk.has { color: var(--green-700); }
.bt__talk b {
  position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--green-700); color: #fff; font-size: 10px; line-height: 16px; font-weight: 800;
}
.bt tfoot td { text-align: left; padding: 0 8px 0 16px; background: #fff; }
.bt__add { width: 100%; height: 38px !important; border-color: transparent !important; padding: 0 !important; background: transparent !important; }
.bt__add:focus { box-shadow: none !important; }

.bav {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 800; border: 2px solid #fff; flex-shrink: 0;
}
.bavs { display: inline-flex; }
.bavs .bav + .bav { margin-left: -8px; }
.bav--empty { background: #EEF0EC; color: #9AA0A6; border-style: dashed; border-color: #C4C7CC; }

.binline { height: 32px !important; width: 100%; }
.binline--group { width: 280px; font-weight: 800 !important; }
.binline--title { font-size: 22px !important; font-weight: 800 !important; height: 42px !important; width: 360px; }

.bpop {
  position: fixed; z-index: 1000; min-width: 190px; padding: 6px; background: #fff;
  border: 1px solid #E4E6E1; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,30,25,.16);
  display: flex; flex-direction: column; gap: 2px;
}
.bpop__opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); text-align: left;
}
.bpop__opt:hover { background: #F4F5F1; }
.bpop__opt.is-on { background: #EAF3EE; font-weight: 700; }
.bpop__sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }

.bdrawer { position: fixed; inset: 0; z-index: 900; }
.bd__backdrop { position: absolute; inset: 0; background: rgba(16,28,24,.32); animation: bdFade .18s ease-out; }
.bd__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); overflow-y: auto;
  background: #fff; box-shadow: -24px 0 60px rgba(16,28,24,.18); padding: 22px 30px 40px;
  display: flex; flex-direction: column; gap: 18px; animation: bdSlide .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes bdSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bdFade { from { opacity: 0; } to { opacity: 1; } }
.bd__top { display: flex; align-items: center; justify-content: space-between; }
.bd__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bd__crumb i { font-style: normal; color: #C4C7CC; }
.bd__close {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); cursor: pointer;
}
.bd__close svg { width: 18px; height: 18px; }
.bd__close:hover { background: #F4F5F1; color: var(--ink); }
.bd__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--green-900); letter-spacing: -.01em; cursor: text; }
.binline--drawer { font-size: 20px !important; font-weight: 800 !important; height: 44px !important; }

.bd__grid {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; row-gap: 4px;
  padding: 10px 0; border-top: 1px solid #EEF0EC; border-bottom: 1px solid #EEF0EC;
}
.bd__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.bd__value { min-height: 38px; display: flex; align-items: center; padding: 0 8px; border-radius: 8px; font-size: 14px; }
.bd__value.is-edit { cursor: pointer; }
.bd__value.is-edit:hover { background: #F4F5F1; }
.bd__pill { display: inline-block; min-width: 104px; text-align: center; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.bd__people { display: flex; flex-wrap: wrap; gap: 10px; }
.bd__person { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bd__person .bav { width: 26px; height: 26px; font-size: 10px; }
.bd__muted { color: #9AA0A6; }
.portal-main .bd__date { height: 34px; border-color: transparent; background-color: transparent; padding: 0 4px; }
.portal-main .bd__date:hover { border-color: #D5D9D2; }

.bd__section { display: flex; flex-direction: column; gap: 10px; }
.bd__h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.bd__saved { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--green-700); }
.bd__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #EAF3EE; color: var(--green-700); font-size: 11px; line-height: 20px; text-align: center; letter-spacing: 0; }
.bd__count:empty { display: none; }
.portal-main .bd__notes { width: 100%; min-height: 96px; resize: vertical; }

.bd__composer { border: 1px solid #D5D9D2; border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.bd__composer:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(47,125,90,.15); }
.portal-main .bd__write { width: 100%; border: 0; border-radius: 0; box-shadow: none; resize: none; min-height: 76px; }
.portal-main .bd__write:focus { box-shadow: none; }
.bd__composerBar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: #FAFAF8; border-top: 1px solid #EEF0EC; }
.bd__hint { font-size: 12px; color: #9AA0A6; }
.bd__feed { display: flex; flex-direction: column; gap: 10px; }
.bd__update { border: 1px solid #EEF0EC; border-radius: 12px; padding: 12px 14px; background: #fff; }
.bd__update header { display: flex; align-items: center; gap: 8px; }
.bd__update header .bav { width: 28px; height: 28px; font-size: 10px; }
.bd__update header b { font-size: 14px; }
.bd__update time { margin-left: auto; font-size: 12px; color: #9AA0A6; }
.bd__update p { margin: 8px 0 0 36px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.bd__mention { color: var(--green-700); background: #EAF3EE; border-radius: 5px; padding: 0 3px; }
.bd__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1px dashed #D5D9D2; border-radius: 12px; text-align: center; }
.bd__empty b { font-size: 14px; }
.bd__empty span { font-size: 13px; color: var(--muted); }
.bd__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #EEF0EC; }
.bd__delete { border: 0; background: none; color: #B42318; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 0; }
.bd__delete:hover { text-decoration: underline; }

/* Drag and drop on boards */
.bt__handle {
  display: inline-block; width: 14px; margin: 0 6px 0 -8px; color: #B7BCB4; cursor: grab;
  font-size: 13px; letter-spacing: -3px; visibility: hidden; user-select: none;
}
.bt__row:hover .bt__handle { visibility: visible; }
.bt__row.is-dragging td { opacity: .35; }
.bt__row.is-drop-before td { box-shadow: inset 0 2px 0 var(--green-700); }
.bt__row.is-drop-after td { box-shadow: inset 0 -2px 0 var(--green-700); }
.bt__row.is-drop-before td.bt__title, .bt__row.is-drop-after td.bt__title { box-shadow: none; }
.bg__head.is-drop-into, tr.is-drop-into td { background: #EAF3EE; border-radius: 8px; }

/* Subitems: indented under their item, a shade quieter, with a corner that says
   which item they belong to. */
.bt__row--sub td { background: #FBFCFA; height: 36px; font-size: 13px; }
.bt td.bt__title--sub { padding-left: 44px !important; position: relative; }
.bt td.bt__title--sub::before {
  content: ''; position: absolute; left: 26px; top: 0; height: 50%; width: 10px;
  border-left: 1.5px solid #D5D9D2; border-bottom: 1.5px solid #D5D9D2; border-bottom-left-radius: 6px;
}
.bt__subAdd .bt__add { height: 34px !important; font-size: 13px; }
.bt__subs {
  margin-left: 10px; padding: 1px 7px; border-radius: 6px; border: 1px solid #D5D9D2;
  background: #fff; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.bt__subs.is-open, .bt__subs:hover { border-color: var(--green-700); color: var(--green-700); }

/* Subitems in the item panel: a short checklist. */
.bd__subs { display: grid; gap: 2px; }
.bd__sub { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; }
.bd__sub:hover { background: #F6F7F4; }
.bd__subStatus { width: 14px; height: 14px; flex: none; border: 0; border-radius: 4px; cursor: pointer; padding: 0; }
.bd__subTitle {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bd__subTitle:hover { text-decoration: underline; }
.bd__sub.is-done .bd__subTitle { color: var(--muted); text-decoration: line-through; text-decoration-color: #C4C7CC; }
.bd__sub .bav { width: 22px; height: 22px; font-size: 9px; }
.bd__subDue { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd__subAdd { width: 100%; height: 34px; font-size: 13px; }
.bd__crumbLink {
  border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bd__crumbLink:hover { text-decoration: underline; }

/* Boards Home: my work on the left, every board on the right. */
.board__tab--home { margin-right: 6px; }
.bh__head { margin-bottom: 18px; }
.bh__head .admin-h2 { margin: 0 0 4px; }
.bh__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .bh__grid { grid-template-columns: 1fr; } }
.bh__h { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); }
.bh__bucket { margin: 0 0 18px; }
.bh__bucketName { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.bh__bucketName b {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: #EEF0EC; color: var(--muted); font-size: 12px;
}
.bh__bucketName.is-late { color: #B42318; }
.bh__list { background: #fff; border: 1px solid #E4E6E1; border-radius: 12px; overflow: hidden; }
.bh__task { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-bottom: 1px solid #EEF0EC; }
.bh__task:last-child { border-bottom: 0; }
.bh__task:hover { background: #F8FAF7; }
.bh__status {
  width: 120px; flex: none; height: 32px; border: 0; border-radius: 6px; cursor: pointer;
  color: #fff; font: inherit; font-size: 12px; font-weight: 700;
}
.bh__status:disabled { cursor: default; }
.bh__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bh__title {
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bh__title:hover { text-decoration: underline; }
.bh__where { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.bh__where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh__dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.bh__parent::before { content: '\00B7'; margin-right: 6px; }
.bh__prio { flex: none; padding: 3px 8px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; }
.bh__due { flex: none; width: 52px; text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bh__due.is-late { color: #B42318; font-weight: 800; }
.bh__empty { display: grid; gap: 4px; padding: 28px 20px; background: #fff; border: 1px dashed #D5D9D2; border-radius: 12px; text-align: center; }
.bh__empty span { font-size: 13px; color: var(--muted); }
.bh__boards { display: grid; gap: 10px; }
.bh__board {
  display: grid; gap: 8px; text-align: left; cursor: pointer; font: inherit;
  padding: 14px 16px; background: #fff; border: 1px solid #E4E6E1; border-radius: 12px;
}
.bh__board:hover { border-color: var(--green-700); }
.bh__boardName { font-size: 15px; color: var(--ink); }
.bh__bar { display: block; height: 6px; border-radius: 3px; background: #EEF0EC; overflow: hidden; }
.bh__bar i { display: block; height: 100%; background: #00C875; border-radius: 3px; }
.bh__boardFacts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.bh__mine { color: var(--green-700); font-weight: 700; }
.bh__stuck { color: #E2445C; font-weight: 700; }
.bh__launch { margin: 0 0 28px; }
.bh__launchHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bh__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.bh__wp { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #EEF0EC; }
.bh__wp:last-child { border-bottom: 0; }
.bh__wp:hover { background: #F8FAF7; }
.bh__wp.is-done .bh__title { color: var(--muted); text-decoration: line-through; }
.bh__wpDue { flex: none; width: 56px; font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bh__wpDue.is-late { color: #B42318; font-weight: 800; }
.bh__wpStatus { flex: none; width: 104px; padding: 4px 0; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.bh__wpSubs { flex: none; display: flex; align-items: center; gap: 8px; width: 110px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bh__wpSubs .bh__bar { flex: 1; }
.bh__launchTools { display: flex; align-items: center; gap: 14px; }
.bh__views { display: flex; gap: 6px; }
.bh__wpDone { flex: none; width: 78px; font-size: 12px; font-weight: 700; color: #00A36C; }
.bh__wpDone.is-late { color: #B42318; }
/* Timeline (Gantt) of the work packages */
.gt { background: #fff; border: 1px solid #E4E6E1; border-radius: 12px; padding: 10px 14px 12px; overflow-x: auto; }
.gt__body { position: relative; min-width: 720px; --label: 230px; }
.gt__overlay { position: absolute; top: 0; bottom: 0; left: var(--label); right: 0; pointer-events: none; }
.gt__line { position: absolute; top: 0; bottom: 0; width: 1px; background: #EEF0EC; }
.gt__today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #E2445C; z-index: 2; }
.gt__row { position: relative; display: flex; align-items: center; height: 30px; }
.gt__row--head { height: 26px; font-size: 11px; font-weight: 700; color: var(--muted); }
.gt__label { flex: none; width: var(--label); padding: 0 10px 0 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.gt__row--head .gt__label { cursor: default; }
.gt__label:hover { text-decoration: underline; }
.gt__row.is-done .gt__label { color: var(--muted); text-decoration: line-through; }
.gt__track { position: relative; flex: 1; height: 100%; }
.gt__week { position: absolute; top: 6px; padding-left: 4px; white-space: nowrap; }
.gt__todayTag { position: absolute; top: 6px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: #E2445C; color: #fff; z-index: 3; }
.gt__bar { position: absolute; top: 8px; height: 14px; padding: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 35%, #fff); overflow: hidden; cursor: pointer; }
.gt__bar i { display: block; height: 100%; background: var(--c); }
.gt__bar.is-late { outline: 2px solid #E2445C; outline-offset: 1px; }
.gt__row.is-done .gt__bar { background: #00C875; }
.gt__done { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: #00A36C; border: 2px solid #fff; box-shadow: 0 0 0 1px #00A36C; z-index: 3; }
.gt__done.is-late { background: #B42318; box-shadow: 0 0 0 1px #B42318; }
.gt__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.gt__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.gt__lgBar { width: 22px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #FDAB3D 50%, #FEDDB1 50%); }
.gt__lgDone { width: 9px; height: 9px; transform: rotate(45deg); background: #00A36C; }
.gt__lgDone.is-late { background: #B42318; }
.gt__lgToday { width: 2px; height: 14px; background: #E2445C; }
@media (max-width: 600px) { .gt__body { --label: 150px; } }
@media (max-width: 600px) { .bh__wpDone:empty { display: none; } .bh__wpStatus { width: auto; padding: 4px 8px; } .bh__wpSubs { width: 64px; } .bh__wpSubs .bh__bar { display: none; } }

/* Courses: the list and the page per course. */
.crs__sub { font-size: 12px; color: var(--muted); }
.crs__tick { color: #C4C7CC; font-weight: 700; }
.crs__tick.is-on { color: var(--green-700); }
.crs__back { border: 0; background: none; padding: 0; margin: 0 0 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--green-700); cursor: pointer; }
.crs__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.crs__head .admin-h2 { margin: 0 0 4px; }
.crs__lead { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.crs__warn { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; font-size: 13px; font-weight: 600; }
.crs__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.crs__field { display: grid; gap: 6px; margin-bottom: 12px; }
.crs__field > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.crs__field input, .crs__field textarea { width: 100%; }
.crs__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.crs__photo { margin: 0; background: #fff; border: 1px solid #E4E6E1; border-radius: 12px; overflow: hidden; }
.crs__photo.is-lead { border-color: var(--green-700); box-shadow: 0 0 0 2px var(--green-700); }
.crs__photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.crs__photo figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; font-size: 12px; }
.crs__badge { color: var(--green-700); }
.crs__credit { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crs__dim { color: #9AA0A6; font-variant-numeric: tabular-nums; }
.crs__mini { border: 1px solid #D5D9D2; background: #fff; border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.crs__mini--danger { color: #B42318; border-color: #F2C9C4; }
.crs__upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crs__upload input[type="text"] { flex: 1; min-width: 260px; }
.crs__pick { position: relative; overflow: hidden; cursor: pointer; margin: 0; }
.crs__pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crs__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; font-size: 14px; }
.crs__facts dt { color: var(--muted); font-weight: 600; }
.crs__facts dd { margin: 0; }
.crs__report { margin-top: 14px; padding: 16px; border: 1px solid #E4E6E1; border-radius: 12px; background: #FAFAF8; }
.crs__tee { display: inline-flex; align-items: center; gap: 8px; }
.crs__tee i { width: 12px; height: 12px; border-radius: 50%; background: #EEF0EC; border: 1px solid rgba(0,0,0,.15); }
.crs__missing { color: #B42318; font-weight: 700; }
.crs__details summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.crs__raw { max-height: 420px; overflow: auto; margin: 8px 0 0; padding: 12px; border-radius: 10px; background: #16191D; color: #E6E8EA; font-size: 12px; line-height: 1.45; }
.crs__raw:empty { display: none; }
.crs__mapBtn { margin-left: auto; }
.crs__h3row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.crs__h3row .admin-h3 { margin: 0; }

/* The course on the map: a panel from the right. */
.cmap { position: fixed; inset: 0; z-index: 1000; }
.cmap__backdrop { position: absolute; inset: 0; background: rgba(22,25,29,.45); opacity: 0; transition: opacity .25s ease; }
.cmap__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1180px, 94vw);
  display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.3);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.cmap.is-in .cmap__backdrop { opacity: 1; }
.cmap.is-in .cmap__panel { transform: none; }
.cmap__head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #E4E6E1; }
.cmap__head > div:first-child { display: grid; gap: 2px; min-width: 0; }
.cmap__head small { font-size: 12px; color: var(--muted); }
.cmap__tees { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.cmap__tee {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1.5px solid #D5D9D2; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.cmap__tee.is-on { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.cmap__tee i { width: 10px; height: 10px; border-radius: 50%; background: #EEF0EC; border: 1px solid rgba(0,0,0,.2); }
.cmap__tee small { font-weight: 600; opacity: .8; }
.cmap__close { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #F4F6F8; cursor: pointer; font-size: 15px; }
.cmap__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px 1fr; }
.cmap__list { overflow-y: auto; border-right: 1px solid #E4E6E1; padding: 8px; display: grid; align-content: start; gap: 4px; }
.cmap__row {
  display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 2px 8px; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; cursor: pointer;
}
.cmap__row:hover { background: #F6F7F4; }
.cmap__row.is-on { background: #EAF3EE; }
.cmap__row b { font-size: 14px; }
.cmap__row small { font-size: 12px; color: var(--muted); }
.cmap__row--all { grid-template-columns: 1fr; }
.cmap__row .cmap__issue { grid-column: 2 / -1; }
.cmap__dot { width: 10px; height: 10px; border-radius: 50%; }
.cmap__dot.is-ok { background: #00C875; }
.cmap__dot.is-warn { background: #FDAB3D; }
.cmap__dot.is-error { background: #E2445C; }
.cmap__issue { font-size: 12px; margin: 0; }
.cmap__issue.is-warn { color: #8A4B00; }
.cmap__issue.is-error { color: #B42318; font-weight: 700; }
.cmap__courseIssue { margin: 0 4px; padding: 6px 10px; border-radius: 8px; background: #FFF4E5; color: #8A4B00; font-size: 12px; font-weight: 600; }
.cmap__stage { position: relative; min-height: 0; background: #1a1a1a; }
.cmap__map { position: absolute; inset: 0; }
.cmap__map .leaflet-pane, .cmap__map .leaflet-control { z-index: 1; }
.cmap__bar {
  position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 14px;
  background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.3); white-space: nowrap;
}
.cmap__bar > div, .cmap__bar > b { display: grid; text-align: center; padding: 0 6px; }
.cmap__bar span { font-size: 12px; color: var(--muted); }
.cmap__nav { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4F6F8; font-size: 20px; cursor: pointer; }
.cmap__info {
  position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 6px;
  padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.cmap__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 600; }
.cmap__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.cmap__planBtns { display: flex; gap: 6px; margin-left: auto; }
.cmap__hint { margin: 0; font-size: 12px; color: var(--muted); }
.cmap__warn { margin: 0; font-size: 13px; font-weight: 700; color: #B42318; }
.cmap__num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #16191D; color: #fff; font-size: 12px; font-weight: 800; border: 2px solid #fff; cursor: pointer;
}
.cmap__num.is-warn { background: #B4741B; }
.cmap__num.is-error { background: #B42318; }
.cmap__leg {
  display: inline-block; padding: 1px 6px; border-radius: 6px; background: rgba(20,24,28,.75);
  color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
@media (max-width: 800px) { .cmap__body { grid-template-columns: 1fr; grid-template-rows: 40% 60%; } .cmap__list { border-right: 0; border-bottom: 1px solid #E4E6E1; } }
.admin-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.admin-sort:hover, .admin-sort.is-on { color: var(--ink); }
.admin-sort__arrow { font-size: 10px; }
.crs__stale { color: #B4741B; font-weight: 700; }
.crs__adminTag { font-size: 11px; font-weight: 700; color: #B4741B; }

/* Albert & AI settings (WP-25) */
.ais-row { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid #EEF0EC; align-items: start; }
.ais-row:first-of-type { border-top: 0; }
.ais-label { display: grid; gap: 2px; }
.ais-label span, .ais-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ais-seg { display: inline-flex; background: #EEF0EC; border-radius: 8px; padding: 3px; }
.ais-seg__btn { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ais-seg__btn.is-on { background: #fff; color: var(--green-900); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ais-quote { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); background: #FAFAF8; border-left: 3px solid var(--green-700); padding: 8px 12px; border-radius: 4px; }
.ais-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ais-inline input[type="number"], .ais-num { width: 110px; }
.ais select { min-width: 190px; }

/* Drill library (WP-27) */
.drl-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.drl-status--draft { background: #FFF6E5; color: #8A5A00; }
.drl-status--approved { background: #E6F4EA; color: #1E6B34; }
.drl-status--retired { background: #F0F1EE; color: #6B7068; }
.drl-form { display: grid; gap: 14px; }
.drl-field { display: grid; gap: 4px; }
.drl-field > span { font-weight: 600; font-size: 13px; }
.drl-field textarea, .drl-field input[type="text"] { width: 100%; }
.drl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .drl-row { grid-template-columns: 1fr; } }

/* AI costs and projections (WP-24) */
.cst .admin-toolbar .admin-h2 { margin: 0 8px 0 0; }
.cst-bars { display: grid; gap: 6px; }
.cst-bar { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.cst-bar__track { height: 12px; background: #F0F1EE; border-radius: 3px; overflow: hidden; }
.cst-bar__fill { display: block; height: 100%; background: var(--green-700); }
.cst-bar__value { color: var(--muted, #6B7068); white-space: nowrap; }
.cst-assume { margin-top: 14px; }
.cst-assume summary { cursor: pointer; font-weight: 600; }
.cst-assume__grid, .cst-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.cst-assume__grid .field, .cst-inputs .field { display: grid; gap: 4px; }
.cst-assume__grid .field > span, .cst-inputs .field > span { font-size: 13px; font-weight: 600; }
.cst-neg { color: #B42318; }
.chart__line--revenue { stroke: var(--green-900); stroke-width: 2.5; }
.chart__line--cost { stroke: var(--accent); }
.chart__swatch--revenue { color: var(--green-900); }
.chart__swatch--cost { color: var(--accent); }
@media (max-width: 600px) { .cst-bar { grid-template-columns: 52px 1fr; } .cst-bar__value { grid-column: 1 / -1; } }

/* Try on every model (AI settings) */
.ais-try__text { width: 100%; margin: 4px 0 8px; }
.ais-try__samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.ais-try__sample { border: 1px solid #D5D9D2; background: #fff; border-radius: 4px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
.ais-try__sample:hover { background: #F4F5F1; }
.ais-try__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.ais-try__card { border: 1px solid #E2E5DF; border-radius: 6px; padding: 12px; background: #fff; }
.ais-try__card.is-current { border-color: var(--green-700); box-shadow: 0 0 0 1px var(--green-700) inset; }
.ais-try__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 6px; }
.ais-try__badge { font-size: 11px; font-weight: 600; color: var(--green-700); }
.ais-try__table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.ais-try__table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
.ais-try__table td { padding: 3px 4px; border-top: 1px solid #F0F1EE; }
.ais-try__err { color: #B42318; font-size: 13px; margin: 4px 0; }
.ais-try__said { font-size: 12px; color: #8A5A00; background: #FFF6E5; padding: 6px 8px; border-radius: 4px; }
.ais-try__meta { margin-top: 6px; }
.ais-try__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ais-try__field { display: grid; gap: 4px; }
.ais-try__field > span { font-size: 12px; font-weight: 600; text-transform: capitalize; }
.ais-try__checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; text-transform: capitalize; }
.ais-try__inputs { margin-bottom: 8px; }
.ais-try__reply { white-space: pre-wrap; font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.ais-try__note { font-size: 13px; font-style: italic; background: #F4F5F1; padding: 6px 8px; border-radius: 4px; }
.ais-try__block { border-top: 1px solid #F0F1EE; padding: 6px 0; font-size: 13px; }
.ais-try__drill { font-size: 13px; padding: 3px 0; }
.ais-try__steps { font-size: 13px; padding-left: 18px; margin: 6px 0; }
.portal-main .ais-try__field { border: 0; padding: 0; background: none; box-shadow: none; min-width: 0; }
.portal-main .ais-try__field select, .portal-main .ais-try__field input[type="text"], .portal-main .ais-try__field input[type="number"] { width: 100%; max-width: none; min-width: 0; }
.ais-try__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F0F1EE; }
.ais-try__stat { display: grid; gap: 1px; font-size: 13px; }
.ais-try__statLabel { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.ais-try__stat .ais-sub { font-size: 11px; }
.ais-try__summary { margin-top: 14px; }
.ais-try__sumtable tr.is-current td { background: #F2F8F4; }
.ais-try__best { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #1E6B34; background: #E6F4EA; padding: 1px 6px; border-radius: 3px; }
.ais-try__okay { font-size: 12px; font-weight: 600; color: #1E6B34; }
/* In use now: unmistakable on cards and in the summary */
.ais-try__pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--green-700); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.ais-try__card.is-current { border: 2px solid var(--green-700); box-shadow: 0 2px 10px rgba(30,107,52,.15); background: #F6FBF7; padding: 11px; }
.ais-try__sumtable tr.is-current td { background: #E6F4EA; font-weight: 600; }
.ais-try__sumtable tr.is-current td:first-child { box-shadow: inset 4px 0 0 var(--green-700); }
.drl-how { background: #fff; border: 1px solid #E2E5DF; border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; max-width: 860px; }
.drl-how summary { cursor: pointer; font-weight: 700; }
.drl-how ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.drl-how__body { font-size: 14px; line-height: 1.55; max-width: 820px; }
.drl-how__body h4 { margin: 14px 0 6px; font-size: 14px; }
.drl-how__body p { margin: 0 0 8px; }
.drl-places { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; padding-top: 6px; }

/* Drill coverage (WP-29) */
.cov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cov-table td, .cov-table th { text-align: center; }
.cov-table td:first-child, .cov-table th:first-child { text-align: left; }
.cov-cell { border-radius: 4px; font-size: 13px; }
td.cov-cell { padding: 6px 4px; }
.cov-cell.is-good { background: #E6F4EA; color: #1E6B34; }
.cov-cell.is-thin { background: #FFF6E5; color: #8A5A00; }
.cov-cell.is-draft { background: #F0F1EE; color: #6B7068; }
.cov-cell.is-empty { background: #FEF3F2; color: #B42318; }
.cov-draft { font-size: 11px; font-weight: 400; opacity: .8; }
.cov-key { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cov-key .cov-cell { padding: 3px 10px; font-size: 12px; }
.cov-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cov-place { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.cov-place b { font-size: 20px; }
.cov-place.is-good { background: #E6F4EA; color: #1E6B34; }
.cov-place.is-thin { background: #FFF6E5; color: #8A5A00; }
.cov-place.is-empty { background: #FEF3F2; color: #B42318; }
.drl-source { border-top: 1px solid #E2E5DF; padding-top: 12px; display: grid; gap: 8px; }
.drl-source p { margin: 0; }

/* Drill editor over the full width: plain fields, not boxed cards. */
.portal-main .drl-field { border: 0; padding: 0; background: none; box-shadow: none; min-width: 0; margin: 0; }
.portal-main .drl-field input[type="text"], .portal-main .drl-field input[type="url"], .portal-main .drl-field input[type="number"],
.portal-main .drl-field select, .portal-main .drl-field textarea { width: 100%; max-width: none; min-width: 0; }
.drl-places { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; }
.drl-places label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.portal-main .drl-places input[type="checkbox"] { width: auto; max-width: none; margin: 0; }
.admin-view.drl, .admin-view.cov, .admin-view.ais { width: 100%; box-sizing: border-box; }
/* Spider charts (Drill coverage) */
.cov-radar { width: 100%; max-width: 340px; height: auto; display: block; overflow: visible; }
.cov-radar__ring { fill: none; stroke: #E4E6E1; stroke-width: 1; }
.cov-radar__axis { stroke: #E4E6E1; stroke-width: 1; }
.cov-radar__label { fill: #4A524C; font-family: inherit; }
.cov-radar__total { fill: rgba(107,112,104,.12); stroke: #A3A8A0; stroke-width: 1.5; stroke-dasharray: 4 3; }
.cov-radar__approved { fill: rgba(47,125,90,.28); stroke: var(--green-700); stroke-width: 2; }
.cov-overview__chart { display: flex; justify-content: center; }
.cov-overview__chart .cov-radar { max-width: 460px; }
.cov-legend { display: flex; justify-content: center; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cov-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }
.cov-legend__approved::before { background: rgba(47,125,90,.28); border: 2px solid var(--green-700); }
.cov-legend__total::before { background: rgba(107,112,104,.12); border: 1.5px dashed #A3A8A0; }
.cov-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 900px) { .cov-split { grid-template-columns: 1fr; } .cov-split .cov-radar { margin: 0 auto; } }
/* Balance and places side by side, same height (Drill coverage) */
.cov-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.cov-top > .admin-section { margin: 0; display: flex; flex-direction: column; }
.cov-top .cov-overview__chart { flex: 1; align-items: center; }
.cov-placesBox .cov-places { flex: 1; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.cov-placesBox .cov-place { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; }
.cov-placesBox .cov-place b { font-size: 28px; line-height: 1.1; }
@media (max-width: 1000px) { .cov-top { grid-template-columns: 1fr; } }
.cov-radar__badge { fill: var(--green-700); stroke: #fff; stroke-width: 2; }
.cov-radar__badge.is-zero { fill: #D9534A; }
.cov-radar__count { fill: #fff; font-weight: 700; font-family: inherit; }

/* Drill setup (WP-30) and page intros */
.admin-view.dst { width: 100%; box-sizing: border-box; }
.dst-intro { background: #fff; border: 1px solid #E2E5DF; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.dst-intro p { margin: 0 0 6px; }
.dst-intro p:last-child { margin: 0; }
.dst-cat { border-top: 1px solid #EEF0EC; padding: 12px 0; }
.dst-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr) 80px 70px auto; gap: 12px; align-items: center; padding: 4px 0; }
.dst-row.is-hidden { opacity: .55; }
.dst-main { display: grid; gap: 2px; }
.dst-main input { width: 100%; font-weight: 600; }
.dst-key { font-size: 11px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.dst-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.dst-chips { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.dst-chips label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.portal-main .dst-chips input[type="checkbox"], .portal-main .dst-inline input[type="checkbox"] { width: auto; margin: 0; }
.dst-used { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dst-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dst-icon { border: 1px solid #D5D9D2; background: #fff; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; }
.dst-icon:disabled { opacity: .35; cursor: default; }
.dst-skills { margin: 6px 0 0 24px; padding-left: 14px; border-left: 2px solid #EEF0EC; }
.dst-skills .dst-row { grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr) 80px 70px auto; }
.dst-hcp { display: flex; align-items: center; gap: 8px; }
.dst-hcp .dst-label { margin: 0 6px 0 0; }
.portal-main .dst-hcp input { width: 90px; }
.dst-add { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.dst-add input { flex: 1; }
.dst-place { margin: 6px 0 0 24px; display: grid; gap: 8px; }
.dst-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.dst-golfer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.portal-main .dst-golfer input { width: 100%; max-width: none; }
@media (max-width: 1100px) { .dst-row, .dst-skills .dst-row { grid-template-columns: 1fr 1fr; } .dst-golfer { grid-template-columns: 1fr 1fr; } }

/* Real dashboard (WP-31): each figure links to its page */
a.dash__kpi--link { color: inherit; text-decoration: none; transition: box-shadow .12s ease; }
a.dash__kpi--link:hover { box-shadow: 0 0 0 2px rgba(47,125,90,.25); }
.admin-view.rev, .admin-view.cst, .admin-view.dash { width: 100%; box-sizing: border-box; }
.dash .dash__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash__list a, .rev .admin-table a, .cst .admin-table a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #C9CEC6; }
.dash__list a:hover, .rev .admin-table a:hover, .cst .admin-table a:hover { color: var(--green-700); border-bottom-color: var(--green-700); }
.reorg-pre { white-space: pre-wrap; font: 12.5px/1.55 ui-monospace, Menlo, monospace; background: #F7F8F6; border: 1px solid #E2E5DF; border-radius: 8px; padding: 12px 14px; overflow-x: auto; }

/* Pamela, the advisor on Boards: a panel on the right that stays while you browse. */
.board__tab--pamela { order: 99; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-weight: 700; }
.pm {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 800; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: #fff; border-left: 1px solid #E4E6E1;
  box-shadow: -18px 0 50px rgba(16,28,24,.12); animation: bdSlide .22s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 1280px) { body.has-pamela .admin-content { padding-right: 456px; } }
.pm__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid #EEF0EC; }
.pm__avatar {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #A25DDC, #E2445C); color: #fff; font-weight: 800; font-size: 15px;
}
.pm__avatar--sm { width: 22px; height: 22px; font-size: 11px; }
.pm__who { flex: 1; display: grid; line-height: 1.25; }
.pm__who b { font-size: 15px; color: var(--ink); }
.pm__who span { font-size: 12px; color: var(--muted); }
.pm__clear { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pm__clear:hover { background: #F4F5F1; color: var(--ink); }
.pm__feed { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #FAFBF9; }
.pm__hello { display: grid; gap: 8px; font-size: 14px; color: var(--ink); }
.pm__hello p { margin: 0; color: var(--muted); line-height: 1.5; }
.pm__starters { display: grid; gap: 6px; margin-top: 6px; }
.pm__starter { text-align: left; padding: 10px 12px; border: 1px solid #E4E6E1; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.pm__starter:hover { border-color: var(--green-700); }
.pm__msg { max-width: 92%; font-size: 14px; line-height: 1.5; }
.pm__msg--me { align-self: flex-end; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--green-700); color: #fff; white-space: pre-wrap; }
.pm__msg--her { align-self: flex-start; display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid #E4E6E1; color: var(--ink); }
.pm__text p { margin: 0 0 8px; }
.pm__text p:last-child { margin-bottom: 0; }
.pm__text ul, .pm__text ol { margin: 0 0 8px; padding-left: 20px; }
.pm__text li { margin: 2px 0; }
.pm__note { margin: 0; font-size: 12px; color: #B42318; }
.pm__thinking { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.pm__thinking i { width: 6px; height: 6px; border-radius: 50%; background: #A25DDC; animation: pmDot 1.2s infinite ease-in-out; }
.pm__thinking i:nth-child(2) { animation-delay: .15s; }
.pm__thinking i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes pmDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.pm__card { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #E4E6E1; border-left: 3px solid #579BFC; border-radius: 10px; background: #F8FAF7; font-size: 13px; }
.pm__card--add { border-left-color: #00C875; }
.pm__card--comment { border-left-color: #A25DDC; }
.pm__cardTop { display: flex; gap: 8px; align-items: baseline; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pm__verb { color: var(--ink); }
.pm__where { text-transform: none; letter-spacing: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm__cardTitle { font-size: 14px; color: var(--ink); }
.pm__fact { color: var(--ink); }
.pm__why { color: var(--muted); font-style: italic; }
.pm__cardBtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.pm__apply { margin: 0; padding: 6px 14px; font-size: 13px; }
.pm__skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pm__state { justify-self: end; font-size: 12px; font-weight: 800; }
.pm__state.is-applied { color: #00A36C; }
.pm__state.is-skipped { color: var(--muted); }
.pm__compose { padding: 12px 14px 14px; border-top: 1px solid #EEF0EC; display: grid; gap: 8px; }
.pm__input { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; padding: 10px 12px; border: 1px solid #D5D9D2; border-radius: 10px; font: inherit; font-size: 14px; }
.pm__input:focus { outline: 2px solid var(--green-700); outline-offset: -1px; }
.pm__composeRow { display: flex; align-items: center; justify-content: space-between; }
.pm__composeRow .btn { margin: 0; padding: 8px 18px; }
.pm__hint { font-size: 12px; color: var(--muted); }

/* Plans and pricing (WP-36) */
.pln-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #E6F6EE; color: #00764A; font-size: 11px; font-weight: 800; vertical-align: 1px; }
