:root {
  --ink: #f1eee8;
  --dark: #0f1012;
  --green: #b49a70;
  --green-dark: #826a49;
  --mint: #2a2620;
  --paper: #15171a;
  --white: #1c1e20;
  --line: #34373b;
  --muted: #aaa59d;
  --orange: #e6b073;
  --orange-bg: #2e2418;
  --red: #ff8f8f;
  --red-bg: #3a1f1f;
  --blue: #93b6dc;
  --blue-bg: #1b2533;
  --shadow: 0 8px 32px #0000004d;
  --radius: 14px;
  --raised: #34373b;
  --on-accent: #17150f;
  --sidebar: #121416;
  --topbar: #15171ae6;
  --danger-line: #8f3b3b;
  --danger-track: #4a2626;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.hidden,
[hidden] {
  display: none !important;
}
.full {
  width: 100%;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--green);
  margin-bottom: 14px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  background: var(--green);
  color: var(--on-accent);
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 22px;
  letter-spacing: -2px;
  padding-right: 2px;
}
.brand-sub {
  display: block;
  font-size: 7px;
  letter-spacing: 1.7px;
  margin-top: 4px;
  font-weight: 650;
  color: var(--muted);
}
.button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 11px 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  min-height: 41px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--white);
}
.button.primary {
  color: var(--on-accent);
  background: var(--green);
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.secondary {
  background: var(--mint);
  border-color: transparent;
  color: var(--green);
}
.button.danger {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--line);
}
.button.small {
  padding: 7px 11px;
  min-height: 32px;
  font-size: 12px;
}
.text-button {
  background: none;
  border: none;
  padding: 5px 0;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 23px;
  padding: 5px 8px;
  border-radius: 5px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--white);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 20px;
  z-index: 20;
  overflow-y: auto;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 750;
  margin: 41px 12px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin: 3px 0;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
}
.nav-link:hover {
  background: var(--paper);
  color: var(--green);
}
.nav-link.active {
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
}
.nav-icon {
  width: 20px;
  display: inline-grid;
  place-content: center;
  font-size: 17px;
}
.nav-group-label {
  display: block;
  margin: 25px 13px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.company-payday {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 13px 11px;
  border-radius: 9px;
  margin-bottom: 22px;
}
.tiny-icon {
  font-size: 24px;
  color: var(--muted);
}
.company-payday strong {
  font-size: 11px;
  display: block;
}
.company-payday small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.account-chip {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  color: var(--ink);
}
.account-chip strong {
  display: block;
  font-size: 12px;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-chip small {
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}
.account-chip > span:last-child {
  margin-left: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  background: var(--raised);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  display: grid;
  place-content: center;
  border-radius: 50%;
}
.logout {
  margin: 14px 0 0 43px;
  font-size: 11px;
  color: var(--muted);
}
.main-shell {
  margin-left: 238px;
  width: calc(100% - 238px);
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  gap: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 550;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
}
.workspace-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.menu-toggle {
  display: none;
}
#content {
  padding: 38px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.page-heading h1 {
  font-size: 29px;
}
.page-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.app-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 38px;
  color: var(--muted);
  font-size: 10px;
}
.notice {
  border-radius: 9px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.notice.warning {
  color: var(--green);
  background: var(--orange-bg);
  border-color: var(--line);
}
.notice.error {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--line);
}
.notice.info {
  background: var(--blue-bg);
  border-color: var(--line);
  color: var(--green);
}
.notice strong {
  font-weight: 650;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.card-header h2,
.card-header h3 {
  margin: 0;
}
.card-body {
  padding: 24px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 23px;
  position: relative;
  min-height: 140px;
}
.metric .metric-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 22px;
}
.metric .metric-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
  display: block;
  line-height: 1.2;
}
.metric .metric-foot {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.5;
}
.metric .metric-icon {
  position: absolute;
  right: 20px;
  top: 19px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 8px;
  width: 27px;
  height: 27px;
  display: grid;
  place-content: center;
}
.metric.highlight {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--ink);
}
.metric.highlight .metric-label,
.metric.highlight .metric-foot {
  color: var(--ink);
}
.metric.highlight .metric-icon {
  background: var(--mint);
  color: var(--muted);
}
.metric .metric-value.compact {
  font-size: 20px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.dashboard-grid.equal {
  grid-template-columns: 1fr 1fr;
}
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-symbol {
  display: grid;
  place-content: center;
  margin: 0 auto 16px;
  width: 46px;
  height: 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 23px;
}
.empty-state h3 {
  font-size: 14px;
  margin-bottom: 7px;
  color: var(--ink);
}
.empty-state p {
  font-size: 12px;
  max-width: 350px;
  margin: 0 auto 18px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 550;
  font-size: 10px;
  letter-spacing: 0.3px;
  background: var(--white);
  padding: 12px 20px;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td .muted {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
tbody tr:hover {
  background: var(--white);
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--white);
  color: var(--muted);
}
.badge.active,
.badge.completed,
.badge.approved,
.badge.paid,
.badge.happy {
  background: var(--mint);
  color: var(--green);
}
.badge.in_progress,
.badge.in_review,
.badge.issued {
  background: var(--blue-bg);
  color: var(--blue);
}
.badge.blocked,
.badge.unhappy,
.badge.overdue,
.badge.offboarded {
  background: var(--red-bg);
  color: var(--red);
}
.badge.pending,
.badge.onboarding,
.badge.partially_paid {
  background: var(--orange-bg);
  color: var(--orange);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-input {
  max-width: 320px;
}
.toolbar input,
.toolbar select {
  min-height: 36px;
  padding: 8px 11px;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow: auto;
}
.tab {
  white-space: nowrap;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 650;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 24px;
}
.form-main {
  min-width: 0;
}
.form-section {
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.section-number {
  display: grid;
  place-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  font-size: 11px;
  color: var(--green);
  font-weight: 650;
}
.section-title h2 {
  font-size: 16px;
  margin: 0;
}
.section-title p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field label,
.field legend {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.required {
  color: var(--green);
  margin-left: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  padding: 10px 11px;
  min-height: 40px;
  color: var(--ink);
  transition: border-color 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--line);
}
input:disabled,
textarea:disabled,
select:disabled {
  background: var(--paper);
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-size: 12px;
}
.field-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
  margin-top: 6px;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  display: flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 11px !important;
  font-weight: 450 !important;
  margin: 0 !important;
  background: var(--white);
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--line);
  background: var(--white);
  color: var(--green);
}
.choice input {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
  accent-color: var(--green);
}
.choice:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.form-status {
  font-size: 11px;
  color: var(--muted);
}
.export-card {
  position: sticky;
  top: 24px;
}
.export-card .card-header {
  padding: 20px;
}
.export-card h2 {
  font-size: 15px;
}
.export-card .card-body {
  padding: 20px;
}
.export-card p {
  font-size: 11px;
  margin-bottom: 15px;
}
.export-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.export-tabs button {
  flex: 1;
}
.export-preview {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.7;
  padding: 12px;
  max-height: 340px;
  overflow: auto;
  min-height: 80px;
  margin: 0 0 14px;
}
.export-card .button {
  font-size: 11px;
  padding: 9px;
  min-height: 35px;
}
.export-card .button-row {
  margin-top: 8px;
}
.nda {
  background: var(--white);
  border: 1px dashed var(--line);
  padding: 18px;
  border-radius: 9px;
}
.nda-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
}
.nda h3 {
  font-size: 13px;
  margin: 0;
}
.nda p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.nda .choice {
  border: 0;
  padding: 0;
  background: none;
}
.estimate {
  padding: 16px;
  background: var(--mint);
  border-radius: 8px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 15px;
}
.estimate strong {
  display: block;
  font-size: 19px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.detail-item dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-item dd {
  font-size: 13px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-item.wide {
  grid-column: 1/-1;
}
.event {
  border-left: 2px solid var(--line);
  padding: 0 0 20px 20px;
  position: relative;
}
.event:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  position: absolute;
  left: -5px;
  top: 4px;
}
.event strong {
  font-size: 12px;
}
.event p {
  font-size: 12px;
  margin: 5px 0;
  color: var(--muted);
}
.event time {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
}
.filters select,
.filters input {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 10px;
  max-width: 170px;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-strip .card {
  padding: 18px;
}
.stat-strip strong {
  display: block;
  font-size: 23px;
  margin: 10px 0;
}
.stat-strip span {
  font-size: 10px;
  color: var(--muted);
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 160px;
  padding-top: 18px;
}
.bar-column {
  display: flex;
  align-items: center;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 30px;
}
.bar-pair {
  display: flex;
  gap: 4px;
  height: 110px;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}
.bar {
  background: var(--green);
  border-radius: 4px 4px 0 0;
  width: 20px;
  min-height: 2px;
}
.bar.secondary {
  background: var(--line);
}
.bar-label {
  font-size: 9px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.chart-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
  margin-right: 5px;
}
.chart-legend .secondary {
  background: var(--line);
}
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.status-line:last-child {
  border: 0;
}
.progress-track {
  height: 6px;
  background: var(--paper);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--line);
  border-radius: 4px;
}
.loading-card {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 7px 25px #00000029;
  z-index: 100;
  max-width: 440px;
  font-size: 12px;
  line-height: 1.6;
}
.toast.error {
  background: var(--mint);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  max-width: 650px;
  width: calc(100% - 30px);
  box-shadow: 0 30px 100px #00000033;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #b49a7066;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading .icon-button {
  font-size: 28px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--dark);
  color: white;
  padding: 42px 55px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.wordmark.light {
  color: white;
}
.wordmark.light .brand-mark {
  background: #ffffff16;
  border: 1px solid #ffffff35;
}
.wordmark.light .brand-sub {
  color: var(--muted);
}
.login-message {
  margin: auto 0;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.login-message .eyebrow {
  color: var(--muted);
}
.login-message h1 {
  font-size: 51px;
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -2px;
  margin-bottom: 23px;
}
.login-message > p:not(.eyebrow) {
  color: var(--ink);
  font-size: 15px;
  max-width: 320px;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  left: 190px;
  top: 240px;
  box-shadow:
    0 0 0 80px #ffffff03,
    0 0 0 160px #ffffff02;
  pointer-events: none;
}
.decorative-board {
  margin-top: 40px;
  max-width: 340px;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  padding: 9px 18px;
  background: #ffffff05;
}
.decorative-board > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff13;
}
.decorative-board > div:last-child {
  border: 0;
}
.decorative-board i {
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 50%;
}
.decorative-board span {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  background: #ffffff0c;
  padding: 5px 7px;
  border-radius: 4px;
}
.login-footer {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 50px 38px;
}
.login-card {
  width: 100%;
  max-width: 350px;
}
.login-card h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 13px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 32px;
}
.login-card .field {
  margin-bottom: 20px;
}
.login-card .button {
  margin-top: 8px;
  justify-content: space-between;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
}
.auth-links .text-button {
  font-size: 11px;
}
.auth-fineprint {
  margin-top: 31px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.login-help {
  font-size: 10px;
  margin: 45px 0 0;
}
.line-editor {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  margin: 12px 0;
}
.line-editor .form-grid {
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.line-editor .field label {
  font-size: 10px;
}
.line-editor input {
  font-size: 12px;
}
.line-editor .remove-line {
  font-size: 10px;
  color: var(--red);
  margin-top: 10px;
}
.readonly-box {
  font-size: 12px;
  color: var(--muted);
  padding: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.state-hint {
  font-size: 11px;
  line-height: 1.7;
  padding: 15px;
  background: var(--paper);
  border-radius: 8px;
  margin-bottom: 18px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.edit-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.switcher {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--white);
  border-radius: 8px;
}
.switcher button {
  border: none;
  background: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.switcher button.active {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 1px 3px #0000000a;
}
.list-title {
  font-weight: 600;
  color: var(--ink);
}
.list-title:hover {
  color: var(--green);
  text-decoration: underline;
}
.meter-row {
  display: grid;
  grid-template-columns: 95px 1fr 75px;
  gap: 12px;
  align-items: center;
  margin: 17px 0;
  font-size: 11px;
}
.meter-row .progress-track {
  height: 14px;
  margin: 0;
}
.meter-row .progress-fill {
  background: var(--green);
}
.meter-row:nth-child(2) .progress-fill {
  background: var(--line);
}
.meter-value {
  text-align: right;
  font-size: 10px;
}
.currency-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.currency-stack span {
  white-space: nowrap;
}
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (min-width: 1600px) {
  #content {
    padding: 44px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .main-shell {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  #content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .card-body {
    padding: 20px;
  }
  .metric {
    padding: 19px;
  }
  .metrics {
    gap: 12px;
  }
  .metric .metric-value {
    font-size: 23px;
  }
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1000px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .export-card {
    position: static;
  }
  .export-preview {
    max-height: 220px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid.equal {
    grid-template-columns: 1fr;
  }
  .topbar-right .workspace-indicator {
    display: none;
  }
  .login-story {
    padding: 35px;
  }
  .login-message h1 {
    font-size: 43px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 5px 0 25px #00000010;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .menu-toggle {
    display: block;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .topbar-right {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  #content {
    padding: 25px 18px;
  }
  .page-heading {
    flex-direction: column;
    margin-bottom: 23px;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .button-row {
    width: 100%;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    min-height: 130px;
    padding: 18px;
  }
  .metric .metric-label {
    font-size: 10px;
    max-width: 90%;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .metric .metric-icon {
    display: none;
  }
  .metric .metric-value {
    font-size: 24px;
  }
  .metric .metric-value.compact {
    font-size: 16px;
  }
  .card-header {
    padding: 19px;
  }
  .card-body {
    padding: 19px;
  }
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .stat-strip .card {
    padding: 13px;
  }
  .stat-strip span {
    font-size: 9px;
  }
  .stat-strip strong {
    font-size: 21px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .field.wide,
  .detail-item.wide {
    grid-column: auto;
  }
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-actions .button-row {
    width: 100%;
  }
  .app-footer {
    padding: 20px 18px;
    gap: 10px;
    font-size: 9px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 28px;
  }
  .login-message,
  .login-footer {
    display: none;
  }
  .login-panel {
    min-height: calc(100vh - 89px);
    padding: 40px 28px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .login-help {
    text-align: center;
    line-height: 1.5;
  }
  .line-editor .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .line-editor .field:first-child {
    grid-column: 1/-1;
  }
  .toolbar {
    padding: 14px;
  }
  .toolbar .search-input {
    max-width: 100%;
  }
  .topbar-right #today-label {
    display: none;
  }
  .toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
  .filters {
    flex-wrap: wrap;
  }
  .detail-grid {
    gap: 0;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .app-footer,
  .page-heading .button-row,
  .form-actions,
  .export-card,
  .toolbar,
  .toast,
  .tabs {
    display: none !important;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  #content {
    padding: 0;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  .form-layout {
    display: block;
  }
  body {
    background: white;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.history-title {
  margin-top: 27px;
  margin-bottom: 20px;
}
.mini-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  gap: 12px;
}
.mini-metrics h2 {
  margin-top: 10px;
  font-size: 20px;
}
.dashboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: -5px 0 25px;
  flex-wrap: wrap;
}
.dashboard-controls label {
  font-size: 10px;
  color: var(--muted);
}
.section-gap {
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 35px 0 22px;
  gap: 20px;
}
.section-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.section-heading h2 {
  margin: 0;
}
.chart-note {
  font-size: 10px;
  margin: 22px 0 0;
}
.weekly-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 150px;
}
.donut-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}
.donut {
  width: 140px;
  flex-shrink: 0;
}
.donut-legend {
  flex: 1;
}
.donut-legend .status-line {
  font-size: 10px;
  gap: 12px;
}
progress {
  display: block;
  width: 100%;
  height: 15px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  accent-color: var(--green);
}
progress::-webkit-progress-bar {
  background: var(--paper);
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 4px;
}
.meter-row:nth-child(2) progress::-webkit-progress-value {
  background: var(--line);
}
.record-heading {
  margin-top: 32px;
}
.financial-history {
  margin-top: 25px;
}
details summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--green);
}
@media (max-width: 760px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dashboard-controls {
    margin-top: 0;
  }
  .filters label {
    width: auto;
  }
  .mini-metrics h2 {
    font-size: 15px;
  }
  .donut-layout {
    gap: 10px;
  }
  .donut {
    width: 105px;
  }
  .meter-row {
    grid-template-columns: 60px 1fr 85px;
  }
}
.security-actions {
  margin-top: 20px;
}
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.action-export {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.action-export summary {
  font-size: 12px;
}
.clipboard-helper {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

/* Department workspace, scoped task cards and accessible account setup. */
.password-toggle { align-self: flex-start; padding: 6px 0; font-size: 12px; }
.setup-layout { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.setup-card { width: 100%; max-width: 610px; }
.setup-card .card-body { padding: clamp(24px, 5vw, 44px); }
.setup-card form > .field { margin: 20px 0; }
.task-links-editor { width: 100%; min-width: 0; }
.task-link-row { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 16px 0; min-width: 0; }
.task-link-row legend { padding: 0 6px; font-size: 12px; font-weight: 600; }
.task-link-row .form-grid { margin-bottom: 14px; }
.task-links { list-style: none; margin: 12px 0; padding: 0; }
.task-links li { margin: 12px 0; overflow-wrap: anywhere; }
.task-links a { text-decoration: underline; text-underline-offset: 3px; }
.link-purpose { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.task-link-detail { margin-top: 24px; }
.job-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0 12px; }
.job-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; flex: 1 1 190px; }
.job-filters label:first-child { flex-grow: 2; }
.department-jobs { margin: 22px 0 30px; }
.department-job-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 0 4px 10px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.department-job-heading h3 { margin-bottom: 7px; }
.department-job-heading p { margin-bottom: 6px; }
.job-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.job-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); overflow-wrap: anywhere; min-width: 0; }
.job-card[draggable] { cursor: grab; }
.job-card[draggable]:active { cursor: grabbing; }
.job-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.job-card-top .eyebrow { font-size: 10px; margin: 0; }
.job-card h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.job-card h3 a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.job-reference { font-size: 10px; color: var(--muted); margin: 14px 0; }
.job-meta { margin: 0 0 12px; }
.job-meta > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.job-meta dt { color: var(--muted); }
.job-meta dd { margin: 0; }
.job-instructions { border-top: 1px solid var(--line); margin-bottom: 14px; }
.job-instructions summary { font-size: 13px; font-weight: 600; }
.job-instructions .pre-wrap { max-height: 240px; overflow: auto; line-height: 1.6; font-size: 13px; margin-bottom: 10px; }
.job-action-row { display: flex; gap: 8px; margin-top: 8px; }
.job-action-row select { min-width: 0; width: 100%; font-size: 12px; }
.kanban-scroll { overflow-x: auto; padding-bottom: 16px; }
.kanban-board { display: grid; grid-template-columns: repeat(7, minmax(290px, 1fr)); gap: 14px; min-width: 2110px; }
.kanban-column { background: var(--white); padding: 12px; border-radius: 12px; border: 1px solid var(--line); min-height: 180px; }
.kanban-column h4 { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px; margin-bottom: 14px; }
.kanban-column h4 span { color: var(--muted); }
.kanban-column .job-card { padding: 16px; margin-bottom: 12px; }
.kanban-empty { padding: 20px 6px; }
#new-invitation-link { width: 100%; margin: 10px 0; }
#account-invitations .card-header { flex-wrap: wrap; gap: 14px; }
@media (max-width: 760px) {
  .job-card { padding: 18px; }
  .job-filters { padding: 14px; }
  .job-filters label { flex-basis: 100%; }
  .department-job-heading { gap: 12px; }
  .kanban-board { grid-template-columns: repeat(7, 280px); min-width: 2044px; }
}

/* Prevent the wide Kanban track from expanding the page on narrow screens. */
.main-shell, .department-jobs { min-width: 0; }
.kanban-scroll { max-width: 100%; }

.pending-content { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.pending-content h4 { margin: 16px 0 8px; }

/* ── EB Operation: collapsed sidebar on every screen size ─────────────── */
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  width: min(280px, 86vw) !important;
  box-shadow: 14px 0 48px #00000080;
  z-index: 40;
}
.sidebar.open {
  transform: translateX(0);
}
.main-shell {
  margin-left: 0 !important;
  width: 100% !important;
}
.menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ── EB Operation: Task Manager ───────────────────────────────────────── */
.task-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.task-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.task-stat b { display: block; font-size: 24px; color: var(--ink); }
.task-stat span { color: var(--muted); font-size: 12px; }
.task-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.task-toolbar .search-input { flex: 1 1 240px; }
.task-toolbar select {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.task-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.task-card.tone-overdue { border-color: var(--danger-line); }
.task-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-card h3 { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.task-title { color: var(--ink); text-align: left; font-weight: 650; padding: 0; }
.task-title:hover { color: var(--green); }
.task-meta { margin: 0; color: var(--muted); font-size: 12px; }
.priority-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.priority-chip.p-high { color: var(--on-accent); background: var(--green); border-color: var(--green); }
.priority-chip.p-low { opacity: 0.8; }
.time-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.time-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e0583a 0%, #e0a43a 45%, #4caf7a 100%);
  background-repeat: no-repeat;
  transition: width 0.3s ease;
}
.tone-done .time-bar span, .tone-none .time-bar span { background: var(--green-dark); }
.time-label { margin: 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.time-label strong { color: var(--ink); }
.tone-overdue .time-label strong, .tone-danger .time-label strong { color: var(--red); }
.tone-warn .time-label strong { color: var(--orange); }
.time-label span { color: var(--muted); }
.task-checklist summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.task-checklist ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.task-checklist label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.task-checklist input { accent-color: var(--green); margin-top: 2px; }
.task-checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.task-card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: auto; padding-top: 4px; }
.task-card-actions .button { white-space: nowrap; }
.task-card-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; border-top: 1px solid var(--line, #e7e1d6); padding-top: 8px; font-size: 0.85rem; }
.task-card-tools .text-button { white-space: nowrap; color: var(--muted, #6b6457); }
.task-card-tools .text-button:hover { color: var(--ink, #1f1b16); }
.task-card-tools .danger-text:hover { color: #b42318; }
.task-sheet { padding: 20px; display: grid; gap: 16px; margin-top: 16px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sheet-title { display: flex; align-items: flex-start; gap: 8px; }
.sheet-title h2 { margin: 0; font-size: 1.35rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sheet-grid { grid-template-columns: 1fr; } }
.sheet-section { border: 1px solid var(--line, #e7e1d6); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.sheet-section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet-section-head h3 { margin: 0; font-size: 0.95rem; }
.sheet-section p { margin: 0; }
.sheet-big { font-size: 1.05rem; font-weight: 600; }
.sheet-edit { background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; padding: 2px 6px; font-size: 0.95rem; line-height: 1.4; }
.sheet-edit:hover, .sheet-edit:focus-visible { border-color: var(--line, #e7e1d6); background: var(--soft, #f6f2ea); }
.sheet-checklist, .sheet-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sheet-history li { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line, #e7e1d6); padding-top: 8px; }
.sheet-history li:first-child { border-top: 0; padding-top: 0; }
.sheet-history p { margin: 2px 0 0; overflow-wrap: anywhere; }
.sheet-empty { border-style: dashed; padding: 8px 14px; }
.sheet-links { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sheet-links a { overflow-wrap: anywhere; }
.biz-switch { padding: 0 14px 10px; }
.biz-switch .seg-toggle { width: 100%; display: flex; }
.biz-switch .seg-toggle button { flex: 1; font-size: 0.78rem; padding: 6px 8px; }
.biz-table td.num, .biz-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.biz-table td .badge { white-space: nowrap; }
.biz-draft td { background: color-mix(in srgb, #f3c969 12%, transparent); }
.biz-in { color: #1f7a4d; }
.biz-out { color: #b42318; }
.biz-statement { width: 100%; max-width: 640px; border-collapse: collapse; }
.biz-statement td { padding: 6px 8px; border-bottom: 1px solid var(--line, #e7e1d6); }
.biz-statement td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.biz-statement tr.total td { font-weight: 700; border-top: 2px solid var(--line, #e7e1d6); }
.biz-statement tr.sub td:first-child { padding-left: 24px; color: var(--muted, #6b6457); }
.biz-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.biz-chip { margin-left: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; background: var(--soft, #f6f2ea); border: 1px solid var(--line, #e7e1d6); }
.biz-chip.biz-rb { background: #1f1b16; color: #f3e6c8; border-color: #1f1b16; }
.ana-card { margin-bottom: 16px; }
.ana-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ana-head h3 { margin: 0 0 2px; }
.ana-head .biz-toolbar { margin: 0; }
.ana-date { min-width: 140px; padding: 4px 6px; font-size: 0.85rem; }
.ana-proj th.past, .ana-proj td.past { color: var(--muted, #6b6457); background: color-mix(in srgb, var(--soft, #f6f2ea) 60%, transparent); }
.ana-proj th.now, .ana-proj td.now { background: color-mix(in srgb, #f3c969 18%, transparent); font-weight: 600; }
.biz-table tr.total td { font-weight: 700; border-top: 2px solid var(--line, #e7e1d6); }
.biz-table tr.is-inactive td { opacity: 0.6; }
.task-note { background: var(--soft, #f6f2ea); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; }
.task-note-head { display: block; color: var(--muted, #6b6457); font-size: 0.78rem; margin-bottom: 2px; }
.task-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .task-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-grid { grid-template-columns: 1fr; }
}
.task-toolbar select { width: auto; min-width: 160px; flex: 0 0 auto; }
.task-toolbar .search-input { max-width: none; }
.tone-overdue .time-bar { background: var(--danger-track); }
.task-checklist label { justify-content: flex-start; text-align: left; margin: 0; font-weight: 400; color: var(--ink); }
.task-checklist input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 2px 0 0; flex: 0 0 16px; }
.task-checklist label span { flex: 1; min-width: 0; }

/* ── EB Operation: Finance summary ────────────────────────────────────── */
.finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.finance-card .status-line { padding: 7px 0; }
.finance-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.finance-total strong { color: var(--green); font-size: 16px; }
.finance-gap { margin-top: 22px; }
.finance-settings { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.finance-settings label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.finance-settings input { width: 160px; }
#finance-month { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 760px) { .finance-grid { grid-template-columns: 1fr; } }

/* ── EB Operation: Google Drive view ──────────────────────────────────── */
.drive-tree, .drive-tree ul { list-style: none; margin: 0; padding-left: 0; }
.drive-tree ul { padding-left: 20px; border-left: 1px solid var(--line); margin-left: 8px; }
.drive-tree li { margin: 4px 0; }
.drive-tree summary { cursor: pointer; font-weight: 650; padding: 6px 0; color: var(--ink); }
.drive-tree summary::before { content: "📁 "; }
.drive-link { display: inline-flex; gap: 6px; padding: 5px 8px; border-radius: 8px; color: var(--ink); overflow-wrap: anywhere; }
.drive-link:hover { background: var(--mint); color: var(--green); }
details > .drive-link { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ── EB Operation: round portraits, team & client cards ───────────────── */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.person-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px 16px; color: var(--ink); min-width: 0;
}
.person-card:hover { border-color: var(--green); }
.person-card strong { font-size: 14px; overflow-wrap: anywhere; }
.person-card .muted { font-size: 12px; overflow-wrap: anywhere; }
.portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-dark); background: var(--raised); flex: 0 0 auto; }
.portrait.initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; color: var(--green); }
.portrait.large { width: 112px; height: 112px; }
.photo-panel { margin-top: 18px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 28px; }
.photo-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ── EB Operation: day mode (white). Night mode = the :root defaults. ──── */
:root[data-theme="light"] {
  --ink: #1d1f22;
  --dark: #1d1f22;
  --green: #8f744a;
  --green-dark: #6f5a38;
  --mint: #f4ede1;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e2ddd2;
  --muted: #6c675f;
  --orange: #9a5a16;
  --orange-bg: #fbefe0;
  --red: #b3261e;
  --red-bg: #fbe9e7;
  --blue: #2f5f8a;
  --blue-bg: #e8f0f8;
  --shadow: 0 8px 28px #1d1f2214;
  --raised: #efebe3;
  --on-accent: #ffffff;
  --sidebar: #ffffff;
  --topbar: #ffffffe6;
  --danger-line: #e3a5a0;
  --danger-track: #f6dcd9;
  color-scheme: light;
}
:root[data-theme="light"] .sidebar { box-shadow: 14px 0 48px #1d1f2226; }

/* Day/night switch in the top bar */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 17px; line-height: 1; padding: 0;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }

/* Logo instead of the small "eb" letters */
.brand-logo { width: 40px; height: 40px; display: block; flex: 0 0 40px; }
.wordmark .brand-logo + span { line-height: 1.15; }

/* EB Operation: billing parts editor */
.billing-parts-editor { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.billing-part-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 10px; }
.billing-part-total { margin: 4px 0 10px; font-weight: 650; color: var(--green); }
@media (max-width: 760px) { .billing-part-row { grid-template-columns: 1fr; } }

.total-row td { border-top: 2px solid var(--line); }
.finance-basis { margin: -6px 0 16px; }

/* Generic picture + inactive people */
.portrait.generic { border-color: var(--line); }
.person-card.is-inactive { opacity: 0.55; }
.person-card.is-inactive:hover { opacity: 0.85; }

/* Task KPIs panel */
.kpi-panel { margin-bottom: 16px; padding: 12px 16px; }
.kpi-panel summary { cursor: pointer; }
.kpi-body { margin-top: 12px; }
.kpi-controls { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.kpi-controls input { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.task-stat small { display: block; margin-top: 4px; font-size: 11px; }

/* ── Billing dashboard + cost KPIs (donut drawn with SVG attributes; CSP-safe) ── */
:root { --seg-paid: #6fbf8b; --seg-partial: #b49a70; --seg-unpaid: #93b6dc; --seg-overdue: #ff8f8f; --seg-hold: #8e8a83; --seg-draft: #4a4d52; --seg-team: #e6b073; }
:root[data-theme="light"] { --seg-paid: #2e8b57; --seg-partial: #8f744a; --seg-unpaid: #2f5f8a; --seg-overdue: #b3261e; --seg-hold: #9b958b; --seg-draft: #d6d0c4; --seg-team: #c47a1f; }
.money-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
@media (max-width: 760px) { .money-grid { grid-template-columns: 1fr; } }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut { width: 190px; height: 190px; }
.donut-track { stroke: var(--raised); }
.donut-seg { transition: opacity .15s; }
.donut-seg:hover { opacity: .8; }
.donut-big { font-size: 5.2px; font-weight: 700; fill: var(--ink); }
.donut-small { font-size: 2.8px; fill: var(--muted); }
.donut-legend { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 6px; font-size: 13px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.donut-legend small { min-width: 18px; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.seg-paid { stroke: var(--seg-paid); } .dot.seg-paid { background: var(--seg-paid); }
.seg-partial { stroke: var(--seg-partial); } .dot.seg-partial { background: var(--seg-partial); }
.seg-unpaid { stroke: var(--seg-unpaid); } .dot.seg-unpaid { background: var(--seg-unpaid); }
.seg-overdue { stroke: var(--seg-overdue); } .dot.seg-overdue { background: var(--seg-overdue); }
.seg-on_hold { stroke: var(--seg-hold); } .dot.seg-on_hold { background: var(--seg-hold); }
.seg-draft { stroke: var(--seg-draft); } .dot.seg-draft { background: var(--seg-draft); }
.seg-team { stroke: var(--seg-team); } .dot.seg-team { background: var(--seg-team); }
.seg-c0 { stroke: var(--seg-partial); } .dot.seg-c0 { background: var(--seg-partial); }
.seg-c1 { stroke: var(--seg-unpaid); } .dot.seg-c1 { background: var(--seg-unpaid); }
.seg-c2 { stroke: var(--seg-paid); } .dot.seg-c2 { background: var(--seg-paid); }
.seg-c3 { stroke: var(--seg-hold); } .dot.seg-c3 { background: var(--seg-hold); }
.seg-c4 { stroke: var(--seg-overdue); } .dot.seg-c4 { background: var(--seg-overdue); }
.seg-c5 { stroke: var(--seg-draft); } .dot.seg-c5 { background: var(--seg-draft); }
.task-stat.stat-good b { color: var(--seg-paid); }
.task-stat.stat-bad b { color: var(--red); }
.money-panel .task-stats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.money-panel .task-stat small { display: block; margin-top: 2px; }
.money-panel .task-stat b { font-size: 19px; overflow-wrap: anywhere; }
:root { --seg-offerings: #b48ce6; --seg-left: #6fbf8b; }
:root[data-theme="light"] { --seg-offerings: #7b4fbf; --seg-left: #2e8b57; }
.seg-offerings { stroke: var(--seg-offerings); } .dot.seg-offerings { background: var(--seg-offerings); }
.seg-left { stroke: var(--seg-left); } .dot.seg-left { background: var(--seg-left); }
/* Gross → Net → Offerings → Kept statement */
.statement td.num, .statement th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.statement tr.st-gross td { font-weight: 700; }
.statement tr.st-net td, .statement tr.st-kept td { font-weight: 700; border-top: 2px solid var(--ink); }
.statement tr.st-net td:first-child, .statement tr.st-kept td:first-child { color: var(--seg-left); }
.statement tr.st-offerings td:first-child { color: var(--seg-offerings); font-weight: 600; }
.statement tr.st-kept td { font-size: 1.05em; }

/* ── Finance by date range ── */
.range-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 16px; }
.range-bar label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.range-bar select, .range-bar input { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 150px; }
.range-card { margin-bottom: 16px; }
.range-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.range-tiles .task-stat b { font-size: 22px; }
.range-tiles .task-stat small { display: block; margin-top: 2px; }
.range-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin: 8px 0 16px; align-items: start; }
@media (max-width: 900px) { .range-grid { grid-template-columns: 1fr; } }
.mini-h { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.line-chart { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-axis { fill: var(--muted); font-size: 11px; }
.lc-line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lc-line.lc-exp { stroke: var(--seg-unpaid); stroke-dasharray: 6 5; }
.lc-line.lc-got { stroke: var(--seg-partial); }
.lc-line.lc-cost { stroke: var(--seg-overdue); }
.lc-line.lc-kept { stroke: var(--seg-left); }
.lc-dot.lc-exp { fill: var(--seg-unpaid); } .lc-dot.lc-got { fill: var(--seg-partial); } .lc-dot.lc-cost { fill: var(--seg-overdue); } .lc-dot.lc-kept { fill: var(--seg-left); }
.lc-hit { fill: transparent; }
.lc-hit:hover { fill: var(--raised); fill-opacity: .35; }
.lc-legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.lc-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lc-key.lc-exp { background: var(--seg-unpaid); } .lc-key.lc-got { background: var(--seg-partial); } .lc-key.lc-cost { background: var(--seg-overdue); } .lc-key.lc-kept { background: var(--seg-left); }
.bar-pair { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .bar-pair { grid-template-columns: 1fr; } }
.bar-label { font-size: 13px; }
.bar-svg { width: 100%; height: 18px; }
.bp-exp { fill: var(--seg-unpaid); fill-opacity: .45; }
.bp-got { fill: var(--seg-partial); }
.bp-got-t { font-weight: 700; color: var(--ink); }
.share-list { list-style: none; padding: 0; margin: 0 0 14px; }
.share-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.range-lists { display: grid; gap: 4px; }
.finance-details { padding: 12px 16px; margin-bottom: 16px; }
.finance-details > summary { cursor: pointer; }
.finance-details #finance-body { margin-top: 14px; }

/* Task cards: code + who is handling it */
.task-code { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green); background: var(--mint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 8px 0 2px; }
.task-owner { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.task-owner strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.2; }
.task-owner .task-meta { display: block; margin-top: 2px; }
.task-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-dark); background: var(--raised); flex: 0 0 auto; }
.task-face.generic { border-color: var(--line); }

/* Finance: USD/PHP switch, chart cards, column + client bars */
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); gap: 2px; }
.seg-toggle button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-toggle button.active { background: var(--green); color: var(--on-accent); }
.range-grid.charts { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
@media (max-width: 900px) { .range-grid.charts { grid-template-columns: 1fr; } }
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.chart-card.wide { margin: 0 0 16px; }
.chart-card .donut-wrap { gap: 14px; }
.chart-card .donut { width: 200px; height: 200px; }
.lc-area.lc-got { fill: var(--seg-partial); fill-opacity: .12; stroke: none; }
.col-chart { width: 100%; height: auto; display: block; }
.col-got { fill: var(--seg-partial); }
.col-cost { fill: var(--seg-overdue); fill-opacity: .85; }
.col-hit { fill: transparent; }
.col-hit:hover { fill: var(--raised); fill-opacity: .4; }
.client-bars { width: 100%; height: auto; display: block; }
.cb-name { fill: var(--ink); font-size: 13px; font-weight: 600; }
.cb-val { fill: var(--muted); font-size: 12px; }
.cb-track { fill: var(--raised); }
.cb-exp { fill: var(--seg-unpaid); fill-opacity: .35; }
.cb-got { fill: var(--seg-partial); }
.lc-key.lc-exp-soft { background: var(--seg-unpaid); opacity: .45; height: 8px; }

/* ── Notifications: bell + lower-right pop-ups ── */
.bell-wrap { position: relative; display: inline-flex; }
.bell { position: relative; border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; margin-right: 8px; }
.bell:hover { border-color: var(--green); }
.bell-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-panel { position: absolute; right: 8px; top: 44px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
.bell-list { list-style: none; margin: 0; padding: 4px 0; }
.bell-list li button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 10px 14px; cursor: pointer; }
.bell-list li button:hover { background: var(--raised); }
.bell-list li.unread button { background: var(--mint); }
.bell-icon { font-size: 18px; line-height: 1.2; }
.bell-body { display: grid; gap: 2px; min-width: 0; }
.bell-body b { font-size: 13px; }
.bell-body span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-body small { font-size: 11px; color: var(--muted); }
.bell-empty { padding: 14px; margin: 0; }
.notify-stack { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 80; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.notify-card { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 12px 12px 14px; cursor: pointer; animation: notify-in .25s ease-out; transition: opacity .5s, transform .5s; }
.notify-card.area-money { border-left-color: var(--seg-paid); }
.notify-card.leaving { opacity: 0; transform: translateX(24px); }
.notify-icon { font-size: 20px; line-height: 1.2; }
.notify-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.notify-body b { font-size: 14px; }
.notify-body span { font-size: 13px; color: var(--muted); }
.notify-body small { font-size: 11px; color: var(--muted); }
.notify-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
@keyframes notify-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notify-card { animation: none; transition: none; } }
.button.revision { border-color: var(--orange); color: var(--orange); }

/* RB Solutions attendance (Yvonne, 2026-11-16) */
.att-label { margin: 0 6px; }
.att-wrap { overflow-x: auto; }
.att-table { border-collapse: collapse; min-width: 100%; font-size: 0.85rem; }
.att-table th, .att-table td { border-bottom: 1px solid var(--line, #e7e1d6); padding: 4px; text-align: center; }
.att-table .att-name { text-align: left; min-width: 180px; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.att-day span { display: block; font-size: 0.7rem; color: var(--muted, #6b6457); font-weight: 400; }
.att-day.today { background: color-mix(in srgb, #f3c969 22%, transparent); }
.att-all { display: block; font-size: 0.68rem; margin: 2px auto 0; }
.att-cell button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line, #e7e1d6); background: transparent; cursor: pointer; font-weight: 700; }
.att-present button { background: #1f7a4d; color: #fff; border-color: #1f7a4d; }
.att-half button { background: #f3c969; color: #1f1b16; border-color: #e0b24a; }
.att-absent button { background: #fbe4e1; color: #b42318; border-color: #f2b8b0; }
.att-future { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--line, #e7e1d6) 60%, transparent) 4px 5px); }
.att-table .num { text-align: right; white-space: nowrap; }
.card-pay { width: 100%; margin-top: 8px; border-top: 1px solid var(--line, #e7e1d6); padding-top: 8px; display: grid; gap: 4px; font-size: 0.8rem; text-align: left; }
.card-pay-rate, .card-pay-row { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; }
.card-pay-rate small, .card-pay-row small { grid-column: 1 / -1; color: var(--muted, #6b6457); font-size: 0.72rem; }
.card-pay-rate b { color: var(--ink, #1f1b16); }
.card-pay-row.now b { color: #1f7a4d; }

/* RB Solutions shift attendance (2026-11-16) */
.shift-tabs { margin-bottom: 12px; }
.shift-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; background: var(--soft, #f6f2ea); }
.sb-whole_day { background: #d9f2e4; color: #1f7a4d; }
.sb-late, .sb-half_day { background: #fdf0cf; color: #8a6100; }
.sb-absent, .sb-incomplete, .sb-missing_sign_out, .sb-no_qualifying_sign_in { background: #fbe4e1; color: #b42318; }
.sb-pending { background: #e7eefc; color: #2a4f9c; }
.shift-online { font-size: 0.78rem; white-space: nowrap; margin-right: 10px; }
.shift-online.on { color: #1f7a4d; }
.shift-online.off { color: var(--muted, #6b6457); }
.shift-online-row { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.shift-review td { background: color-mix(in srgb, #f3c969 12%, transparent); }
.shift-pay { margin-top: 12px; }
.shift-pay-total { text-align: right; display: grid; }
.shift-pay-total b { font-size: 1.15rem; }
.bad-text { color: #b42318; }
.person-card .button.small[data-card-attendance] { margin-top: 8px; }

/* RB Solutions clock in / out (2026-11-16) */
.clock-widget { display: inline-flex; }
.clock-box { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 20px; border: 1px solid var(--line, #e7e1d6); border-radius: 12px; background: var(--white); }
.clock-time { display: grid; line-height: 1.1; }
.clock-time b { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.clock-time small { font-size: 0.72rem; color: var(--muted, #6b6457); }
.clock-dot { display: none; }
.clock-box.running { border-color: #1f7a4d; }
.clock-box.running .clock-time b { color: #1f7a4d; }
.clock-box.running .clock-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f7a4d; animation: clock-pulse 1.4s ease-in-out infinite; position: absolute; left: 7px; top: calc(50% - 4px); }
@keyframes clock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.clock-out { border-color: #b42318; color: #b42318; }
@media (max-width: 760px) { .clock-widget { width: 100%; } .clock-box { width: 100%; justify-content: space-between; } }

/* Business logos: light-coloured logos get a dark-ink twin in light mode (2026-11-16). */
.brand-logo.logo-for-light { display: none; }
:root[data-theme="light"] .brand-logo.logo-for-dark { display: none; }
:root[data-theme="light"] .brand-logo.logo-for-light { display: block; }

/* Who's in now (RB, 2026-11-18) */
.whos-in { padding: 14px 16px; margin: 12px 0; }
.whos-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.whos-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.whos-pill { font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2, #f1efe8); color: var(--muted, #6b6457); }
.whos-pill.in { background: #eaf3de; color: #27500a; }
.whos-pill.on { background: #e6f1fb; color: #0c447c; }
.whos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.whos-p { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, #e7e1d6); border-radius: 10px; }
.whos-p.clocked_in { border-color: #97c459; }
.whos-face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.whos-dot { position: absolute; left: 36px; top: 34px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--paper); background: #b4b2a9; }
.whos-p.clocked_in .whos-dot { background: #639922; }
.whos-p.online .whos-dot { background: #378add; }
.whos-p.away { opacity: 0.8; }
.whos-n { margin: 0; font-weight: 600; font-size: 0.88rem; line-height: 1.2; }
.whos-s { margin: 2px 0 0; font-size: 0.76rem; line-height: 1.25; color: var(--muted, #6b6457); }
.whos-p.clocked_in .whos-s { color: #3b6d11; }
.whos-p.online .whos-s { color: #185fa5; }
.whos-timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.whos-report { margin-top: 12px; border-top: 1px solid var(--line, #e7e1d6); padding-top: 10px; }
.whos-report > summary, .whos-person > summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.whos-report-body { margin-top: 10px; }
.whos-person { margin-top: 8px; }
:root[data-theme="dark"] .whos-pill.in { background: #27500a; color: #eaf3de; }
:root[data-theme="dark"] .whos-pill.on { background: #0c447c; color: #e6f1fb; }
:root[data-theme="dark"] .whos-p.clocked_in .whos-s { color: #97c459; }
:root[data-theme="dark"] .whos-p.online .whos-s { color: #85b7eb; }

/* EOD reports (2026-11-18) */
.eod-form { display: grid; gap: 10px; }
.eod-form textarea { width: 100%; min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.eod-send { margin-bottom: 14px; }
.eod-bar { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--line, #e7e1d6); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.eod-bar span { display: block; height: 100%; background: #8f744a; }
.eod-sections { display: flex; flex-wrap: wrap; gap: 6px; }
.eod-chip { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line, #e7e1d6); }
.eod-text pre { white-space: pre-wrap; max-height: 360px; overflow: auto; font-size: 0.8rem; background: var(--paper); padding: 10px; border-radius: 8px; margin: 6px 0; min-width: 260px; }
.eod-text summary { cursor: pointer; color: #8f744a; font-weight: 600; }
.good-text { color: #2e7d4f; }

/* Attendance / compliance / productivity graphs (2026-11-18) */
.rep-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0; }
.rep-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line, #e7e1d6); border-radius: 12px; }
.rep-donut { width: 84px; height: 84px; flex: 0 0 84px; }
.rep-track { stroke: var(--line, #e7e1d6); }
.rep-centre { font-size: 8.5px; font-weight: 700; fill: currentColor; }
.rep-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.76rem; color: var(--muted, #6b6457); margin-top: 4px; }
.rep-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.rep-card .rep-legend { display: grid; gap: 2px; }
.rep-panel { padding: 12px; border: 1px solid var(--line, #e7e1d6); border-radius: 12px; margin: 10px 0; }
.rep-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 150px; gap: 8px; align-items: center; font-size: 0.8rem; margin: 7px 0; }
.rep-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line); }
.rep-bar span { display: block; height: 100%; }
@media (max-width: 640px) { .rep-row { grid-template-columns: 64px minmax(0, 1fr); } .rep-row > span:last-child { grid-column: 2; } }

/* Night mode: JBL-style particles behind see-through panels (E, 2026-11-18).
   Light mode is untouched. Panels are ~70% transparent with a soft blur so
   the particles show through while text stays readable. */
#bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
:root[data-theme="dark"] {
  /* --panel-a = panel opacity set by E on the Design page (default 0.3). */
  --white: rgba(28, 30, 32, var(--panel-a, 0.3));
  --mint: rgba(42, 38, 32, min(1, calc(var(--panel-a, 0.3) + 0.15)));
  --sidebar: rgba(18, 20, 22, min(1, calc(var(--panel-a, 0.3) + 0.25)));
  --topbar: rgba(21, 23, 26, min(1, calc(var(--panel-a, 0.3) + 0.2)));
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(212, 163, 70, 0.16), transparent 70%),
    radial-gradient(40% 50% at 0% 40%, rgba(180, 154, 112, 0.08), transparent 70%),
    radial-gradient(40% 50% at 100% 40%, rgba(94, 163, 201, 0.08), transparent 70%),
    #0b0c0e;
  background-attachment: fixed;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .job-card,
:root[data-theme="dark"] .task-card { border-color: rgba(180, 154, 112, 0.25); }
:root[data-theme="dark"] body { background: transparent; }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .job-card,
:root[data-theme="dark"] .task-card,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:root[data-theme="dark"] dialog { background: #1c1e20; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { background-color: rgba(21, 23, 26, 0.75); }

/* My account: own photo (2026-11-18) */
.me-photo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.me-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green, #b49a70); flex: 0 0 96px; }
.me-photo-row label.button { cursor: pointer; }

/* Task KPIs graphics (2026-11-18) */
.kpi-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.kpi-hero-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.kpi-hero-card .rep-donut { width: 104px; height: 104px; flex: 0 0 104px; }
.kpi-legend { display: grid; gap: 3px; }
.kpi-legend-line { margin: 2px 0 8px; }
.kpi-mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi-mini-tiles > div { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.kpi-mini-tiles b { font-size: 1.35rem; line-height: 1.1; }
.kpi-mini-tiles span { font-size: 0.74rem; color: var(--muted); }
.kpi-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi-person { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-align: center; transition: transform 0.15s ease, border-color 0.15s ease; }
.kpi-person:hover { transform: translateY(-2px); border-color: #b49a70; }
.kpi-person.has-overdue { border-color: rgba(226, 75, 74, 0.55); }
.kpi-person-ring { position: relative; width: 76px; height: 76px; }
.kpi-person-ring .kpi-ring { position: absolute; inset: 0; }
.kpi-person-ring .kpi-ring .rep-centre { display: none; }
.kpi-face { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; object-fit: cover; }
.kpi-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }
.kpi-chips .chip { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.kpi-chips .chip.bad { background: rgba(226, 75, 74, 0.15); color: #e24b4a; }
.kpi-chips .chip.warn { background: rgba(239, 159, 39, 0.15); color: #c47a1f; }
.kpi-chips .chip.good { background: rgba(99, 153, 34, 0.15); color: #3b6d11; }
:root[data-theme="dark"] .kpi-chips .chip.good { color: #97c459; }
:root[data-theme="dark"] .kpi-chips .chip.warn { color: #ef9f27; }
.kpi-table { margin-top: 12px; }
.kpi-table > summary { cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--green); }

/* Attendance player cards (design A, 2026-11-18) */
.player-grid { margin: 10px 0 6px; }
.kpi-person.player { position: relative; }
.player-pct { position: absolute; right: -6px; bottom: -2px; font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #d4a346; color: #17150f; }
.player-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; width: 100%; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.player-stats > div { display: grid; }
.player-stats b { font-size: 1rem; }
.player-stats span { font-size: 0.68rem; color: var(--muted); }

/* EOD button + Daily report (2026-11-18) */
.eod-btn { white-space: nowrap; }
.eod-btn.sent { border-color: #639922; color: #3b6d11; }
:root[data-theme="dark"] .eod-btn.sent { color: #97c459; }
.daily-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.daily-title { margin: 0 0 6px; font-size: 1.3rem; }
.daily-hero .rep-cards { margin-top: 6px; }
.kpi-chips.left { justify-content: flex-start; margin-top: 6px; }
.daily-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.daily-person { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.daily-person .kpi-face { position: static; margin: 0; width: 38px; height: 38px; flex: 0 0 38px; }
.daily-person > div { display: grid; flex: 1; min-width: 0; }
.daily-person.ok { border-color: rgba(99, 153, 34, 0.55); }
.daily-person.late { border-color: rgba(239, 159, 39, 0.6); }
.daily-person.absent { border-color: rgba(226, 75, 74, 0.5); }
.daily-person .chip { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; }
.daily-person .chip.good { background: rgba(99, 153, 34, 0.15); color: #3b6d11; }
.daily-person .chip.warn { background: rgba(239, 159, 39, 0.15); color: #c47a1f; }
.daily-person .chip.bad { background: rgba(226, 75, 74, 0.15); color: #e24b4a; }
.daily-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.daily-list { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 0.86rem; }
.daily-live { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: rgba(239, 159, 39, 0.15); color: #c47a1f; vertical-align: middle; }
/* Pop-overs on the top layer and solid in night mode (2026-11-18): the
   blurred, see-through panels each form their own layer, so the top bar (which
   holds the notification panel) is lifted above the page content. */
.topbar { position: relative; z-index: 50; }
.bell-panel { z-index: 70; }
:root[data-theme="dark"] .bell-panel,
:root[data-theme="dark"] .notify-card { background: #1c1e20; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-theme="dark"] .bell-panel { box-shadow: 0 18px 48px #000000a6; border-color: rgba(180, 154, 112, 0.3); }
.sidebar { z-index: 60; }

/* Daily checklists (2026-11-18) */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dl-card { padding: 14px; }
.dl-card.on { border-color: rgba(212, 163, 70, 0.6); }
.dl-form { display: grid; gap: 10px; }
.dl-head { display: flex; align-items: center; gap: 10px; }
.dl-head .kpi-face { position: static; margin: 0; width: 40px; height: 40px; flex: 0 0 40px; }
.dl-head > div { display: grid; flex: 1; }
.dl-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.dl-form textarea { width: 100%; }
.dl-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dl-row button { margin-left: auto; }
.daily-chip { margin-left: 6px; font-size: 0.68rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #3c3489; color: #cecbf6; }

/* Crowns: glowing ring + crown on top (design from E's picture, 2026-11-18) */
#eb-crown-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.crowned { position: relative; display: inline-block; line-height: 0; flex: 0 0 auto; }
.crowned > img { border-radius: 50%; }
.crowned .crown-ico { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; overflow: visible; }
.crowned.s-sm .crown-ico { width: 34px; height: 20px; top: -16px; }
.crowned.s-md .crown-ico { width: 44px; height: 26px; top: -21px; }
@keyframes crown-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.c-gold > img { box-shadow: 0 0 0 2.5px #ffb347, 0 0 12px 3px rgba(255, 179, 71, 0.7); animation: crown-glow 2.6s ease-in-out infinite; }
.c-silver > img { box-shadow: 0 0 0 2.5px #dfe6f0, 0 0 11px 3px rgba(223, 230, 240, 0.6); }
.c-bronze > img { box-shadow: 0 0 0 2.5px #e08a4a, 0 0 11px 3px rgba(224, 138, 74, 0.55); }
.c-participant > img { box-shadow: 0 0 0 1.5px #b49a70; }
.c-absent > img { filter: grayscale(1) brightness(0.5); outline: 1.5px dashed #8a857a; outline-offset: 2px; }
.c-gold .crown-ico, .player-crown { fill: url(#ebcG); stroke: #9a6a10; stroke-width: 1.1; }
.c-silver .crown-ico, .pc-silver .player-crown { fill: url(#ebcS); stroke: #6c737e; stroke-width: 1.1; }
.c-bronze .crown-ico, .pc-bronze .player-crown { fill: url(#ebcB); stroke: #7a4520; stroke-width: 1.1; }
.c-participant .crown-ico, .pc-participant .player-crown { fill: #2a2620; stroke: #d4a346; stroke-width: 2.2; }
.c-participant.s-sm .crown-ico { width: 22px; height: 12px; top: -9px; }
.c-participant.s-md .crown-ico { width: 28px; height: 15px; top: -11px; }
.kpi-person.player { padding-top: 22px; }
.player-crown { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 52px; height: 31px; overflow: visible; filter: drop-shadow(0 0 4px rgba(255, 190, 90, 0.55)); }
.pc-participant .player-crown { width: 30px; height: 16px; top: 8px; }
.pc-gold { border-color: #ffb347 !important; box-shadow: 0 0 18px rgba(255, 179, 71, 0.28); }
.pc-silver { border-color: #c9d0da !important; }
.pc-bronze { border-color: #e08a4a !important; }
.pc-absent .kpi-face { filter: grayscale(1) brightness(0.5); }
.crown-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; margin-left: auto; margin-right: 8px; }
.crown-toggle button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; cursor: pointer; }
.crown-toggle button[aria-pressed="true"] { background: #d4a346; border-color: #d4a346; color: #17150f; font-weight: 700; }
.whos-p .crowned { margin-right: 2px; }
.whos-p { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .c-gold > img { animation: none; } }
.whos-p { padding-top: 12px; }
.task-owner .crowned { margin-top: 10px; }
.c-gold .crown-ico { filter: drop-shadow(0 0 3px rgba(255, 190, 90, 0.7)); }
.c-silver .crown-ico { filter: drop-shadow(0 0 3px rgba(223, 230, 240, 0.6)); }
.c-bronze .crown-ico { filter: drop-shadow(0 0 3px rgba(224, 138, 74, 0.6)); }
.kpi-person.player { padding-top: 28px; }
/* Crown A (arched base): sizes so the arch sits on the top of the round photo. */
.crowned.s-sm .crown-ico { width: 36px; height: 21px; top: -14px; }
.crowned.s-md .crown-ico { width: 46px; height: 27px; top: -18px; }
.c-participant.s-sm .crown-ico { width: 24px; height: 14px; top: -9px; }
.c-participant.s-md .crown-ico { width: 30px; height: 18px; top: -12px; }
.player-crown { width: 56px; height: 33px; top: 2px; }
.pc-participant .player-crown { width: 36px; height: 21px; top: 12px; }
/* Who's in tiles: room above the photo for the crown (2026-11-18). */
.whos-grid { gap: 10px; margin-top: 14px; }
.whos-p { align-items: center; min-height: 82px; padding: 26px 12px 12px; }
.whos-face { width: 44px; height: 44px; flex: 0 0 44px; }
.whos-dot { left: 46px; top: auto; bottom: 12px; }
.whos-p .crowned.s-sm .crown-ico { width: 42px; height: 24px; top: -17px; }
.whos-p .c-participant.s-sm .crown-ico { width: 28px; height: 16px; top: -11px; }
/* Orbiting border light, like the Featured card on qes.jbl.business (E, 2026-11-18):
   a conic-gradient light travels around the border every 6 s, with a blurred glow
   copy. Gold for 1st, silver for 2nd, bronze for 3rd. */
@property --eb-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes eb-orbit { to { --eb-ang: 360deg; } }
.orbit { position: relative; }
.orbit::before, .orbit::after,
.crowned.c-gold::before, .crowned.c-silver::before, .crowned.c-bronze::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--eb-ang), transparent 0deg, transparent 210deg, var(--o1) 250deg, var(--o2) 290deg, var(--o3) 318deg, var(--o2) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: eb-orbit 6s linear infinite; z-index: 1;
}
.orbit::after { filter: blur(7px); opacity: 0.75; padding: 3px; }
.o-gold, .crowned.c-gold { --o1: rgba(138, 90, 28, 0.6); --o2: #d4a346; --o3: #f6dfa0; }
.o-silver, .crowned.c-silver { --o1: rgba(110, 118, 130, 0.6); --o2: #c9d0da; --o3: #ffffff; }
.o-bronze, .crowned.c-bronze { --o1: rgba(120, 65, 25, 0.6); --o2: #c8915a; --o3: #f6c49a; }
/* Around the round photo: a thicker orbiting ring. */
.crowned.c-gold::before, .crowned.c-silver::before, .crowned.c-bronze::before { inset: -4px; border-radius: 50%; padding: 2.5px; }
.whos-p.orbit, .kpi-person.orbit { border-color: rgba(180, 154, 112, 0.25) !important; }
@media (prefers-reduced-motion: reduce) {
  .orbit::before, .orbit::after, .crowned::before { animation: none; --eb-ang: 300deg; }
}
.crowned .crown-ico { z-index: 2; }
/* Orbit lights: own speed per person (set from script) and 50% opacity (E, 2026-11-18). */
.orbit::before, .crowned.c-gold::before, .crowned.c-silver::before, .crowned.c-bronze::before {
  animation-duration: var(--orbit-dur, 6s); animation-delay: var(--orbit-delay, 0s); opacity: 0.5;
}
.orbit::after { animation-duration: var(--orbit-dur, 6s); animation-delay: var(--orbit-delay, 0s); opacity: 0.375; }
/* Crown placement, one rule for every photo (E, 2026-11-18): the crown is sized
   from the photo (80% of its width; participants 55%) and sits ON TOP of it —
   only the arched base touches the photo's top edge, never the face. */
.crowned .crown-ico {
  width: 80% !important; height: auto !important; aspect-ratio: 88 / 51;
  top: auto !important; bottom: calc(100% - 3px) !important; left: 50%; transform: translateX(-50%);
}
.crowned.c-participant .crown-ico { width: 55% !important; bottom: calc(100% - 2px) !important; }
/* Room above the photo for the crown wherever it appears. */
.whos-p { padding-top: 30px; }
.task-owner { padding-top: 6px; }
.task-owner .crowned { margin-top: 18px; }
/* Curved crown (E, 2026-11-18): the base curves down at both ends and follows
   the round photo. Sized from the photo; the middle of the band rests on the
   top of the photo and the ends wrap down its sides. */
.crowned .crown-ico { aspect-ratio: 88 / 56; bottom: calc(84.5% - 1px) !important; }
.crowned.c-participant .crown-ico { bottom: calc(89.4% - 1px) !important; }
.player-crown { width: 54px !important; height: auto !important; aspect-ratio: 88 / 56; top: 8px !important; }
.pc-participant .player-crown { width: 37px !important; top: 15px !important; }
/* Silver and bronze cards glow in their own metal, like gold. */
.pc-gold { box-shadow: 0 0 22px rgba(255, 179, 71, 0.32), inset 0 0 18px rgba(255, 179, 71, 0.06); }
.pc-silver { border-color: #dfe6f0 !important; box-shadow: 0 0 22px rgba(223, 230, 240, 0.28), inset 0 0 18px rgba(223, 230, 240, 0.06); }
.pc-bronze { border-color: #e08a4a !important; box-shadow: 0 0 22px rgba(224, 138, 74, 0.3), inset 0 0 18px rgba(224, 138, 74, 0.06); }
.pc-gold .kpi-ring { filter: drop-shadow(0 0 5px rgba(255, 179, 71, 0.55)); }
.pc-silver .kpi-ring { filter: drop-shadow(0 0 5px rgba(223, 230, 240, 0.5)); }
.pc-bronze .kpi-ring { filter: drop-shadow(0 0 5px rgba(224, 138, 74, 0.5)); }
.pc-silver .player-pct { background: #c9d0da; }
.pc-bronze .player-pct { background: #c8915a; }
/* Day mode stays formal and light on the graphics card (E, 2026-11-18):
   crowns, glows, moving border lights and particles appear in night mode only. */
:root[data-theme="light"] .crown-ico,
:root[data-theme="light"] .player-crown,
:root[data-theme="light"] .crown-toggle,
:root[data-theme="light"] #bg-particles { display: none !important; }
:root[data-theme="light"] .orbit::before, :root[data-theme="light"] .orbit::after,
:root[data-theme="light"] .crowned::before { content: none !important; animation: none !important; }
:root[data-theme="light"] .crowned > img { box-shadow: none !important; animation: none !important; filter: none !important; outline: none !important; }
:root[data-theme="light"] .kpi-person.player { box-shadow: none !important; border-color: var(--line) !important; padding-top: 14px; }
:root[data-theme="light"] .kpi-person.player.has-overdue { border-color: rgba(226, 75, 74, 0.55) !important; }
:root[data-theme="light"] .kpi-person .kpi-ring { filter: none !important; }
:root[data-theme="light"] .whos-p { padding-top: 12px; min-height: 0; }
:root[data-theme="light"] .whos-p.orbit, :root[data-theme="light"] .whos-p.clocked_in { border-color: #97c459 !important; }
:root[data-theme="light"] .task-owner .crowned { margin-top: 0; }
:root[data-theme="light"] .kpi-person.player .kpi-ring circle:not(.rep-track) { stroke: #d4a346; }
:root[data-theme="light"] .player-pct { background: #d4a346 !important; }
/* Travelling glow (E, 2026-11-18): a brighter blurred glow moves with the border
   light, while a soft glow stays around the whole card. Night mode only. */
.orbit::after { inset: -9px; padding: 10px; filter: blur(12px); opacity: 0.7; }
.whos-p.orbit.o-gold { box-shadow: 0 0 16px rgba(255, 179, 71, 0.18); }
.whos-p.orbit.o-silver { box-shadow: 0 0 16px rgba(223, 230, 240, 0.15); }
.whos-p.orbit.o-bronze { box-shadow: 0 0 16px rgba(224, 138, 74, 0.16); }
:root[data-theme="light"] .whos-p.orbit { box-shadow: none !important; }
/* Glow C "subtle" (E, 2026-11-18): thin layered glow that fades out naturally,
   short reach, and more room between cards so glows never spill onto a neighbour. */
.kpi-people.player-grid { gap: 22px; }
.whos-grid { gap: 22px; }
.pc-gold { box-shadow: 0 0 3px rgba(255, 179, 71, 0.22), 0 0 8px rgba(255, 179, 71, 0.07) !important; }
.pc-silver { box-shadow: 0 0 3px rgba(223, 230, 240, 0.22), 0 0 8px rgba(223, 230, 240, 0.07) !important; }
.pc-bronze { box-shadow: 0 0 3px rgba(224, 138, 74, 0.22), 0 0 8px rgba(224, 138, 74, 0.07) !important; }
.whos-p.orbit.o-gold { box-shadow: 0 0 3px rgba(255, 179, 71, 0.22), 0 0 8px rgba(255, 179, 71, 0.07); }
.whos-p.orbit.o-silver { box-shadow: 0 0 3px rgba(223, 230, 240, 0.22), 0 0 8px rgba(223, 230, 240, 0.07); }
.whos-p.orbit.o-bronze { box-shadow: 0 0 3px rgba(224, 138, 74, 0.22), 0 0 8px rgba(224, 138, 74, 0.07); }
.orbit::after { inset: -3px; padding: 4px; filter: blur(5px); opacity: 0.4; }
:root[data-theme="light"] .pc-gold, :root[data-theme="light"] .pc-silver, :root[data-theme="light"] .pc-bronze { box-shadow: none !important; }
/* Glow B "soft and tight" (E, 2026-11-18, replaces C): three thin layers that
   fade out gradually, reaching about 12 px; cards stay 22 px apart. */
.pc-gold { box-shadow: 0 0 2px rgba(255, 179, 71, 0.35), 0 0 6px rgba(255, 179, 71, 0.18), 0 0 12px rgba(255, 179, 71, 0.08) !important; }
.pc-silver { box-shadow: 0 0 2px rgba(223, 230, 240, 0.35), 0 0 6px rgba(223, 230, 240, 0.18), 0 0 12px rgba(223, 230, 240, 0.08) !important; }
.pc-bronze { box-shadow: 0 0 2px rgba(224, 138, 74, 0.35), 0 0 6px rgba(224, 138, 74, 0.18), 0 0 12px rgba(224, 138, 74, 0.08) !important; }
.whos-p.orbit.o-gold { box-shadow: 0 0 2px rgba(255, 179, 71, 0.35), 0 0 6px rgba(255, 179, 71, 0.18), 0 0 12px rgba(255, 179, 71, 0.08); }
.whos-p.orbit.o-silver { box-shadow: 0 0 2px rgba(223, 230, 240, 0.35), 0 0 6px rgba(223, 230, 240, 0.18), 0 0 12px rgba(223, 230, 240, 0.08); }
.whos-p.orbit.o-bronze { box-shadow: 0 0 2px rgba(224, 138, 74, 0.35), 0 0 6px rgba(224, 138, 74, 0.18), 0 0 12px rgba(224, 138, 74, 0.08); }
.orbit::after { inset: -4px; padding: 5px; filter: blur(6px); opacity: 0.55; }
:root[data-theme="light"] .pc-gold, :root[data-theme="light"] .pc-silver, :root[data-theme="light"] .pc-bronze { box-shadow: none !important; }
/* EB Alerts card (2026-11-18) */
.alerts-steps { display: grid; gap: 10px; padding-left: 20px; }
.alerts-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; padding: 12px 14px; border: 1px dashed #d4a346; border-radius: 12px; }
.alerts-code b { font-size: 1.9rem; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; color: #8f744a; }
:root[data-theme="dark"] .alerts-code b { color: #f6dfa0; }
.alerts-devices { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.alerts-devices li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
/* Private tasks (E, 2026-11-18): black redaction like a top-secret document. */
.redact { background: #111; color: #111; border-radius: 1px; padding: 0 1px; letter-spacing: -0.12em; user-select: none; word-break: break-all; }
:root[data-theme="dark"] .redact { background: #000; color: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.redacted-title { line-height: 1.7; }
.private-stamp { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; color: #a32d2d; border: 1.5px solid #a32d2d; border-radius: 4px; padding: 0 5px; margin-left: 6px; transform: rotate(-4deg); vertical-align: 2px; }
:root[data-theme="dark"] .private-stamp { color: #ff8f8f; border-color: #ff8f8f; }
.redacted-details { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.redacted-details .redact { font-size: 0.75rem; }
.privacy-chip { margin-left: 6px; margin-right: auto; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: default; }
button.privacy-chip { cursor: pointer; }
.privacy-chip.on { background: #2a2620; color: #f6dfa0; border-color: #8f744a; }
:root[data-theme="light"] .privacy-chip.on { background: #1d1f22; color: #fff; }
/* Crown sits a little higher and BEHIND the photo circle (E, 2026-11-18):
   the photo and its ring are drawn over the crown's base on every icon. */
.crowned > img { position: relative; z-index: 2; }
.crowned::before { z-index: 3 !important; }
.crowned .crown-ico { z-index: 1 !important; bottom: calc(91% - 1px) !important; }
.crowned.c-participant .crown-ico { bottom: calc(93% - 1px) !important; }
.kpi-person-ring { z-index: 2; }
.player-crown { z-index: 1; top: 3px !important; }
.pc-participant .player-crown { top: 11px !important; }
/* Daily login brief: in front of the blurred website until "Got it". */
#brief-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 18, 14, 0.45); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); overflow-y: auto; }
body.brief-open { overflow: hidden; }
.brief-box { width: min(460px, 100%); background: var(--paper, #fff); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border: 1px solid var(--line); }
:root[data-theme="light"] .brief-box { background: #fff; }
.brief-head { background: linear-gradient(135deg, #2a1d07, #4a3410); padding: 16px 18px; }
.brief-head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.brief-head p { margin: 4px 0 0; font-size: 0.8rem; color: #e8d6a8; }
.brief-body { padding: 14px 18px; display: grid; gap: 8px; }
.brief-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.brief-stats > div { display: grid; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.brief-stats b { font-size: 1rem; }
.brief-stats span { font-size: 0.7rem; color: var(--muted); }
.brief-row { display: flex; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 0.84rem; }
.brief-row b { display: block; }
.brief-row small { display: block; opacity: 0.88; margin-top: 2px; }
.brief-row ul { margin: 4px 0 0; padding-left: 16px; font-size: 0.8rem; }
.brief-row.bad { background: #fcebeb; color: #791f1f; }
.brief-row.warn { background: #faeeda; color: #633806; }
.brief-row.ok { background: #eaf3de; color: #27500a; }
.brief-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; text-align: center; }
.brief-foot .button { width: 100%; justify-content: center; padding: 12px; font-size: 0.95rem; }

/* KPI score on player cards (2026-11-18) */
.player-kpi { width: 100%; margin-top: 6px; display: grid; gap: 3px; justify-items: center; }
.player-kpi-score { font-size: 0.8rem; color: var(--muted); }
.player-kpi-score b { font-size: 1.05rem; color: var(--ink, inherit); }
.player-kpi-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: 0.68rem; color: var(--muted); }
.player-kpi-parts b { color: var(--ink, inherit); font-weight: 600; }

/* Team performance panel (2026-11-18) */
.perf-sec { margin: 14px 0 4px; font-size: 0.78rem; color: var(--muted); text-transform: none; }
.player-tasks { width: 100%; display: grid; gap: 2px; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--soft, rgba(127,127,127,.08)); font-size: 0.7rem; color: var(--muted); text-align: center; }
.player-tasks b { color: var(--ink, inherit); font-weight: 600; }
#perf-panel .kpi-table { margin-top: 10px; }

/* Landscape player cards (E picked B, 2026-11-18) */
.kpi-people.player-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.kpi-person.player.land { grid-template-columns: 112px minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 14px; text-align: left; padding: 16px !important; }
.player-left { position: relative; display: grid; justify-items: center; gap: 3px; padding-top: 30px; text-align: center; }
.player-left .player-kpi-score { margin-top: 2px; }
.player-left .player-kpi-score b { font-size: 1.35rem; }
.player-right { display: grid; gap: 7px; min-width: 0; }
.player-right .kpi-chips { justify-content: flex-start; margin: 0; }
.player-right .player-tasks { margin: 0; text-align: left; }
.player-right .player-stats { margin: 0; }
.kpi-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.kpi-boxes > div { display: grid; justify-items: center; padding: 6px 2px; border-radius: 8px; background: var(--soft, rgba(127,127,127,.08)); }
.kpi-boxes b { font-size: 1.05rem; color: var(--ink, inherit); }
.kpi-boxes span { font-size: 0.66rem; color: var(--muted); }
:root[data-theme="light"] .player-left { padding-top: 6px; }
@media (max-width: 420px) {
  .kpi-people.player-grid { grid-template-columns: 1fr; }
  .kpi-person.player.land { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 12px !important; }
}
@media (max-width: 380px) {
  .kpi-person.player.land { grid-template-columns: 1fr; }
  .player-right .kpi-chips { justify-content: center; }
}

/* Design page (2026-11-18) */
.design-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.design-head h2 { margin: 0; }
.design-row { display: grid; gap: 10px; margin-top: 14px; max-width: 640px; }
.design-label { display: flex; justify-content: space-between; align-items: baseline; }
.design-label b { font-size: 1.3rem; }
.design-slider { display: flex; align-items: center; gap: 10px; }
.design-slider input { flex: 1; accent-color: #d4a346; }
.design-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Crown sits lower, base tucked behind the ring (E, 2026-11-18). The photo and
   ring are drawn over the crown, so only the crown's top shows above them. */
.player-left .player-crown { z-index: 1; top: calc(12px - var(--crown-lift, 0px)) !important; }
.player-left .pc-participant .player-crown, .pc-participant .player-left .player-crown { top: calc(18px - var(--crown-lift, 0px)) !important; }
.player-left .kpi-person-ring { position: relative; z-index: 2; }
.crowned .crown-ico { bottom: calc(84% + 4.5px + var(--crown-lift, 0px)) !important; }
.crowned.c-participant .crown-ico { bottom: calc(85% + 3px + var(--crown-lift, 0px)) !important; }

/* Crown height preview on the Design page (2026-11-18) */
.design-row + .design-row { padding-top: 14px; border-top: 1px solid var(--line); }
.design-preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.design-crown { display: grid; justify-items: center; gap: 8px; }
.design-who { padding-top: 26px; line-height: 0; }

/* Approve all button (2026-11-19) */
.button.approve-all { background: #2f7d32; border-color: #2f7d32; color: #fff; }
.button.approve-all:hover { background: #256528; }

/* AI task creator (2026-11-19) */
#ai-task-panel { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: min(440px, calc(100vw - 24px)); max-height: min(82vh, 720px); display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper, #fff); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); overflow: hidden; }
:root[data-theme="dark"] #ai-task-panel { background: #17191c; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ai-head .small { flex: 1; }
.ai-msgs { display: grid; align-content: start; gap: 8px; padding: 12px 14px; overflow-y: auto; min-height: 160px; }
.ai-msg { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.me { justify-self: end; background: var(--green); color: var(--on-accent); }
.ai-msg.bot { justify-self: start; background: var(--soft, rgba(127, 127, 127, 0.12)); }
.ai-msg.err { color: #e24b4a; }
.ai-drafts { display: grid; gap: 6px; }
.ai-card { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.86rem; }
.ai-card.bad { border-color: rgba(226, 75, 74, 0.6); }
.ai-card small { font-size: 0.76rem; }
.ai-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: end; }
.ai-input textarea { width: 100%; resize: none; }
.ai-buttons { display: flex; gap: 6px; }
#ai-mic.recording { background: #e24b4a; border-color: #e24b4a; color: #fff; }
@media (max-width: 520px) { #ai-task-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 86vh; } }
.ai-card .icon-button { width: 26px; height: 26px; min-width: 26px; font-size: 0.8rem; }

/* AI task button in the site's palette, paired under New task (2026-11-19) */
.new-task-pair { display: inline-grid; gap: 8px; align-self: flex-start; }
.new-task-pair .button { width: 100%; justify-content: center; }
.button.ai-task { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.button.ai-task:hover { background: var(--mint); }
:root[data-theme="light"] .button.ai-task { color: var(--green-dark); border-color: var(--green-dark); background: #fffaf0; }
/* Recording: live voice wave, timer, Stop */
.ai-rec { border-top: 1px solid var(--line); background: var(--orange-bg); }
.ai-rec-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px 4px; }
.ai-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #d64b3a; animation: ai-rec-blink 1s infinite; }
@keyframes ai-rec-blink { 50% { opacity: 0.25; } }
#ai-wave { width: 100%; height: 40px; display: block; min-width: 0; }
.ai-rec-time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--green); }
.button.ai-rec-stop { background: #d64b3a; border-color: #d64b3a; color: #fff; }
.ai-rec-hint { margin: 0; padding: 0 14px 10px; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ai-rec-dot { animation: none; } }
.page-heading .button-row:has(.new-task-pair) { align-items: flex-start; }

/* Social media per client (2026-11-20) */
.soc-setup summary { cursor: pointer; padding: 12px 16px; }
.soc-ready { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; align-items: end; margin: 8px 0; }
.soc-grid label { display: grid; gap: 4px; }
.soc-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.soc-pill.ok { color: var(--green); border-color: var(--green); }
.soc-pill.warn { color: var(--muted); }
.soc-client { margin-top: 14px; }
.soc-table td { vertical-align: middle; }
.soc-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--soc, #888); color: #fff; font-size: 12px; font-weight: 700; }
.soc-spark { width: 120px; height: 30px; color: var(--green); display: block; }
.soc-delta.up { color: #2e9e5b; font-weight: 600; }
.soc-delta.down { color: #d64b3a; font-weight: 600; }
.soc-err { color: #d64b3a; }
.soc-add, .soc-report { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 12px; }
.soc-add input { flex: 1 1 260px; min-width: 0; }
.soc-report label { display: grid; gap: 4px; }
.soc-report .dl-switch { display: flex; align-items: center; gap: 6px; }
.soc-setup code { font-size: 12px; overflow-wrap: anywhere; }

/* Connect buttons per client (2026-11-20) */
.soc-connect-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.button.soc-connect { display: inline-flex; align-items: center; gap: 8px; }
.button.soc-connect.on { border-color: var(--green); color: var(--green); }
.soc-cicon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--line); font-size: 11px; font-weight: 700; }
.button.soc-connect.on .soc-cicon { background: var(--green); color: var(--on-accent, #fff); }
.soc-msg { margin: 0 0 12px; }

/* Auto-posting per client (2026-11-21) */
.pst-google { margin-top: 12px; }
.pst-google-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pst-client { margin-top: 14px; }
.pst-client .card-header > span { display: inline-flex; gap: 8px; align-items: center; }
.pst-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pst-kpi { padding: 10px 12px; display: grid; gap: 2px; }
.pst-kpi b { font-size: 1.35rem; }
.pst-kpi span { font-size: 12px; color: var(--muted); }
.pst-h { margin: 18px 0 8px; font-size: 0.95rem; }
.pst-next { padding: 10px 12px; }
.pst-plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pst-plat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.pst-plat.on { border-color: var(--green); }
.pst-table td { vertical-align: top; }
.pst-actions { white-space: nowrap; }
.pst-actions .button { margin: 0 4px 4px 0; }
.pst-captions { margin-top: 6px; }
.pst-captions summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.pst-cap-form { display: grid; gap: 8px; margin-top: 8px; min-width: min(420px, 70vw); }
.pst-cap-form label { display: grid; gap: 4px; }
.pst-settings { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.pst-settings summary { cursor: pointer; padding: 6px 0; }
.pst-wide { grid-column: 1 / -1; }
.pst-form label.dl-switch { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; margin-right: 14px; }
.pst-form label.dl-switch input { width: auto; height: auto; margin: 0; }
.pst-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.pst-pick > span { margin-right: 12px; }
.pst-plat { align-content: start; }
.pst-plat .soc-pill { justify-self: start; }
.pst-cap-form .button { justify-self: start; }

/* CLRITY demo copy: role picker on the sign-in page. */
.demo-picker { display: grid; gap: 10px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.demo-picker h2 { margin: 0; }
.demo-role { display: grid; gap: 2px; text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.demo-role:first-of-type { background: var(--green); color: var(--on-accent); border-color: var(--green); }
.demo-role span { font-size: 13px; opacity: 0.8; }
.demo-role:hover:not(:disabled) { border-color: var(--green); }
.demo-role:disabled { opacity: 0.6; cursor: wait; }
