/* ==========================================================================
   DiDo Design System — Strict implementation of DESIGN.md
   High-density flat 2D CPA practice-management ledger UI (Zero drop shadows)
   ========================================================================== */

:root {
  --surface-moss: #E6ECE6;
  --surface-stone: #F6F8F9;
  --surface-bluegrey: #DDE4EA;
  --border-stone: #C3CDD6;

  --chrome-slate: #232D36;
  --chrome-text: #F6F8F9;
  --chrome-muted: #9FB0BE;

  --action-stoneblue: #3B5B78;
  --action-stoneblue-hover: #2F4A63;
  --brand-terracotta: #D95338;

  --ink-primary: #1C252C;
  --ink-secondary: #556370;

  /* Semantic Badges */
  --badge-critical-bg: #F5D6D2;
  --badge-critical-fg: #8A241B;

  --badge-target-bg: #D6E4F0;
  --badge-target-fg: #234869;

  --badge-review-bg: #DCEAF2;
  --badge-review-fg: #24526B;

  --badge-filed-bg: #D6E8DC;
  --badge-filed-fg: #1F5432;

  --badge-pending-bg: #F2E6CE;
  --badge-pending-fg: #6E4E16;

  --badge-unread-bg: #FCE8E4;
  --badge-unread-fg: #9E2F1B;

  --badge-neutral-bg: #DDE4EA;
  --badge-neutral-fg: #556370;

  --font-header: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  box-shadow: none !important; /* Strict flat 2D rule: zero drop shadows */
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--surface-moss);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--action-stoneblue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mono,
.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular-ui {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-secondary);
}

/* ==========================================================================
   Top Global Chrome (48px) & Pinned Context Strip (36px)
   ========================================================================== */

.top-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 48px;
  background-color: #C8D3DC;
  color: var(--ink-primary);
  border-bottom: 1px solid #AEBCC8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
}

.top-chrome-left {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-primary);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 48px;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-tab:hover {
  background-color: #B8C6D2;
  text-decoration: none;
}

.nav-tab.is-active {
  border-bottom: 2px solid var(--brand-terracotta);
  font-weight: 600;
}

.nav-tab.is-disabled {
  color: #475563;
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
  gap: 6px;
}

.nav-tab.is-disabled:hover {
  background-color: transparent;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 4px;
  border: 1px solid #9EB0BE;
  border-radius: 2px;
  background-color: #DDE4EA;
  color: #475563;
}

.top-chrome-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Global Instant Search */
.global-search-wrap {
  position: relative;
  width: clamp(160px, 20vw, 260px);
}

.global-search-input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  border: 1px solid #9EB0BE;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  outline: none;
}

.global-search-input::placeholder {
  color: var(--ink-secondary);
}

.global-search-input:focus {
  border-color: var(--action-stoneblue);
  background-color: #FFFFFF;
}

.search-dropdown {
  position: absolute;
  top: 34px;
  right: 0;
  left: auto;
  min-width: 360px;
  max-width: min(440px, calc(100vw - 32px));
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  color: var(--ink-primary);
  z-index: 60;
}

.search-dropdown[hidden] {
  display: none;
}

.search-section-header {
  padding: 6px 10px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-stone);
  color: var(--ink-primary);
  font-size: 12.5px;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

.search-empty {
  padding: 12px 10px;
  color: var(--ink-secondary);
  font-size: 12px;
}

/* Staff User Switcher */
.staff-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.staff-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475563;
}

.staff-select {
  height: 30px;
  padding: 0 8px;
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  border: 1px solid #9EB0BE;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.staff-select:focus {
  outline: none;
  border-color: var(--action-stoneblue);
  background-color: #FFFFFF;
}

/* Pinned Context Strip (36px) */
.context-strip {
  position: sticky;
  top: 48px;
  z-index: 35;
  height: 36px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.context-strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-strip-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   Page Container & Panels
   ========================================================================== */

.page-shell {
  padding: 20px 24px 32px 24px;
  max-width: 1640px;
  margin: 0 auto;
}

.panel {
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
}

.panel-title {
  margin: 0;
  font-family: var(--font-header);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.panel-body {
  padding: 12px;
}

/* ==========================================================================
   Buttons & Inputs (Flat 2D)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--action-stoneblue);
  border-color: var(--action-stoneblue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--action-stoneblue-hover);
  border-color: var(--action-stoneblue-hover);
  color: #FFFFFF;
}

.btn-danger-outline {
  background-color: var(--badge-critical-bg);
  border-color: #D7A59F;
  color: var(--badge-critical-fg);
}

.btn-danger-outline:hover {
  background-color: #EDC5BF;
}

.btn-sm {
  height: 24px;
  padding: 0 8px;
  font-size: 11.5px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 6px 8px;
  background-color: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 13px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--action-stoneblue);
}

.form-textarea {
  resize: vertical;
  min-height: 68px;
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Semantic Status Badges (Color + Explicit Uppercase Text)
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-critical,
.badge-blocked {
  background-color: var(--badge-critical-bg);
  color: var(--badge-critical-fg);
}

.badge-target {
  background-color: var(--badge-target-bg);
  color: var(--badge-target-fg);
}

.badge-review {
  background-color: var(--badge-review-bg);
  color: var(--badge-review-fg);
}

.badge-filed {
  background-color: var(--badge-filed-bg);
  color: var(--badge-filed-fg);
}

.badge-pending {
  background-color: var(--badge-pending-bg);
  color: var(--badge-pending-fg);
}

.badge-unread {
  background-color: var(--badge-unread-bg);
  color: var(--badge-unread-fg);
  border: 1px solid #E9B9B0;
}

.badge-neutral {
  background-color: var(--badge-neutral-bg);
  color: var(--badge-neutral-fg);
}

/* ==========================================================================
   Home Work Queue Controls & 38px Dense Ledger Table
   ========================================================================== */

.queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  border-bottom: none;
}

.sub-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 12.5px;
  text-decoration: none;
}

.sub-tab:hover {
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

.sub-tab.is-active {
  background-color: var(--action-stoneblue);
  border-color: var(--action-stoneblue);
  color: #FFFFFF;
}

.tab-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  background-color: var(--surface-bluegrey);
  color: var(--ink-primary);
}

.sub-tab.is-active .tab-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  background-color: var(--surface-stone);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.filter-pill:hover {
  background-color: var(--surface-bluegrey);
  color: var(--ink-primary);
  text-decoration: none;
}

.filter-pill.is-active {
  background-color: var(--surface-bluegrey);
  border-color: var(--action-stoneblue);
  color: var(--ink-primary);
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.ledger-table thead th {
  height: 34px;
  padding: 0 8px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  border-right: 1px solid var(--border-stone);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.ledger-table thead th:last-child {
  border-right: none;
}

.ledger-table tbody tr {
  height: 38px; /* Fixed high-density 38px row height per DESIGN.md */
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

.ledger-table tbody tr:last-child {
  border-bottom: none;
}

.ledger-table tbody tr.row-clickable {
  cursor: pointer;
}

.ledger-table tbody tr:hover {
  background-color: var(--surface-bluegrey);
}

.ledger-table tbody tr.is-unread td {
  font-weight: 700;
  color: var(--ink-primary);
}

.ledger-table tbody td {
  height: 38px;
  padding: 0 8px;
  border-right: 1px solid var(--border-stone);
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13px;
}

.ledger-table tbody td:last-child {
  border-right: none;
}

.cell-snippet {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-secondary);
  font-weight: 400 !important;
}

.priority-pill {
  display: inline-block;
  width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 0;
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  background-color: var(--surface-bluegrey);
  color: var(--ink-primary);
}

.priority-pill.p-1 {
  background-color: var(--badge-critical-bg);
  border-color: #D7A59F;
  color: var(--badge-critical-fg);
}

.date-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 13px;
}

/* ==========================================================================
   Engagement Split Workspace (38% Left / 62% Right)
   ========================================================================== */

.split-workspace {
  display: grid;
  grid-template-columns: 38% minmax(0, 62%);
  gap: 12px;
  align-items: start;
}

@media (max-width: 1024px) {
  .split-workspace {
    grid-template-columns: 1fr;
  }
}

.pane-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.panel-table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* Work & Reference Notes */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-card {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

.note-card:last-child {
  border-bottom: none;
}

.note-card.note-needs-ack {
  background-color: #FDF7F6;
  border-left: 3px solid var(--brand-terracotta);
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.note-author {
  font-weight: 700;
  color: var(--ink-primary);
}

.note-body {
  margin: 0 0 8px 0;
  color: var(--ink-primary);
  white-space: pre-wrap;
  line-height: 1.45;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.note-compose {
  padding: 10px 12px;
  background-color: #EEF2F5;
  border-top: 1px solid var(--border-stone);
}

.note-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-primary);
  cursor: pointer;
}

.reference-box {
  background-color: #F4F6F1;
  border-left: 3px solid var(--action-stoneblue);
}

/* 6-Step Horizontal Milestone Bar */
.milestone-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

.milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 6px;
  border: none;
  border-right: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
  color: var(--ink-secondary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.milestone-step:last-child {
  border-right: none;
}

.milestone-step:hover:not(:disabled) {
  background-color: var(--surface-bluegrey);
  color: var(--ink-primary);
}

.milestone-step.is-completed {
  background-color: var(--badge-filed-bg);
  color: var(--badge-filed-fg);
  font-weight: 600;
}

.milestone-step.is-current {
  background-color: var(--action-stoneblue);
  color: #FFFFFF;
  font-weight: 700;
}

.milestone-num {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.8;
}

/* Engagement Summary Meta Strip */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-stone);
}

.meta-cell {
  padding: 8px 12px;
  border-right: 1px solid var(--border-stone);
  border-bottom: 1px solid var(--border-stone);
}

.meta-cell:nth-child(4n) {
  border-right: none;
}

.meta-key {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  margin-bottom: 3px;
}

.meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Document Registry Tabs */
.doc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-bluegrey);
}

.doc-tab {
  padding: 8px 14px;
  border: none;
  border-right: 1px solid var(--border-stone);
  background-color: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.doc-tab.is-active {
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  border-bottom: 2px solid var(--action-stoneblue);
  margin-bottom: -1px;
}

.doc-add-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background-color: #EEF2F5;
  border-top: 1px solid var(--border-stone);
}

/* Closure Gate & Action Bar */
.closure-gate-panel {
  border: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

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

.closure-blocker-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-stone);
  background-color: #FCF4F3;
  font-size: 12.5px;
}

.closure-blocker-item:last-child {
  border-bottom: none;
}

.closure-ready-banner {
  padding: 9px 12px;
  background-color: var(--badge-filed-bg);
  color: var(--badge-filed-fg);
  font-weight: 600;
  font-size: 12.5px;
}

.workspace-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background-color: var(--surface-bluegrey);
  border-top: 1px solid var(--border-stone);
}

/* ==========================================================================
   Client Master Header & Cards
   ========================================================================== */

.client-header-card {
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  margin-bottom: 12px;
}

.client-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
}

.client-title {
  margin: 0;
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Flat 2D Modals & Inline Alerts
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 37, 44, 0.45);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  background-color: var(--surface-stone);
  border: 1px solid #8E9CA8;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--chrome-slate);
  color: var(--chrome-text);
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--chrome-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--surface-bluegrey);
  border-top: 1px solid var(--border-stone);
}

.inline-alert {
  padding: 8px 12px;
  border: 1px solid var(--border-stone);
  font-size: 12.5px;
  margin-bottom: 10px;
}

.inline-alert[hidden] {
  display: none;
}

.inline-alert.is-error {
  background-color: var(--badge-critical-bg);
  border-color: #D7A59F;
  color: var(--badge-critical-fg);
}

.inline-alert.is-success {
  background-color: var(--badge-filed-bg);
  border-color: #A7CBB3;
  color: var(--badge-filed-fg);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Progressive Disclosure: Context Strip Controls, Unified Notes Card,
   Dropdown Menu, Closure Modal & Audit Slide-Over Drawer
   ========================================================================== */

.context-strip-pill {
  font-size: 11.5px;
  color: var(--ink-secondary);
  padding: 2px 7px;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  border-radius: 2px;
}

/* Flat 2D Dropdown */
.dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  z-index: 65;
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: none;
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

/* Unified Full-Height Tabbed Notes Card (Left Pane 38%) */
.notes-unified-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 118px);
}

.notes-card-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  padding-right: 10px;
  flex-wrap: wrap;
}

.panel-tabs {
  display: flex;
  align-items: stretch;
}

.panel-tab {
  padding: 9px 12px;
  border: none;
  border-right: 1px solid var(--border-stone);
  background-color: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-header);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.panel-tab:hover {
  color: var(--ink-primary);
  background-color: #D2DCE4;
}

.panel-tab.is-active {
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  border-bottom: 2px solid var(--action-stoneblue);
  margin-bottom: -1px;
  font-weight: 700;
}

.notes-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
}

.notes-tab-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.notes-tab-body[hidden] {
  display: none;
}

.reference-note-card {
  background-color: #F4F6F1;
  border-left: 3px solid var(--action-stoneblue);
}

/* Closure Gate Modal Helpers */
.modal-dialog-wide {
  max-width: 600px;
}

.wip-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background-color: var(--surface-bluegrey);
  border: 1px solid var(--border-stone);
  font-size: 12px;
  color: var(--ink-primary);
}

/* Flat 2D Slide-Over Audit Trail Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 37, 44, 0.42);
  z-index: 85;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-panel {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--surface-stone);
  border-left: 1px solid #8E9CA8;
  display: flex;
  flex-direction: column;
}

.drawer-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  font-size: 12px;
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

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

.audit-feed-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

.audit-feed-item:hover {
  background-color: var(--surface-bluegrey);
}

.audit-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.audit-feed-summary {
  font-size: 12.5px;
  color: var(--ink-primary);
  line-height: 1.45;
}

/* ==========================================================================
   Phase 2: Time & Billing Workspace (/time-billing)
   ========================================================================== */

.workspace-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding: 0 2px;
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.billing-section-gap {
  margin-bottom: 24px;
}

.timer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.timer-clock-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-primary);
}

.timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ink-secondary);
}

.timer-clock-box.is-running {
  background-color: var(--badge-unread-bg);
  border-color: #E2A99E;
  color: var(--badge-unread-fg);
}

.timer-clock-box.is-running .timer-dot {
  background-color: var(--brand-terracotta);
}

.timer-select {
  width: 260px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.timer-desc-input {
  width: 210px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.week-range-label {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
}

.week-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr) 1.5fr;
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

@media (max-width: 960px) {
  .week-summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.week-day-cell {
  padding: 8px 10px;
  border-right: 1px solid var(--border-stone);
}

.week-day-cell:last-child {
  border-right: none;
}

.week-day-cell.is-today {
  background-color: #EBF1F6;
  border-top: 2px solid var(--action-stoneblue);
}

.week-day-cell.is-total {
  background-color: var(--surface-bluegrey);
  border-left: 1px solid var(--border-stone);
}

.week-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
  margin-bottom: 3px;
}

.week-day-hours {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.week-hrs-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-secondary);
}

.week-day-cell.is-zero .week-day-hours,
.week-day-cell.is-zero .week-hrs-unit {
  color: #8A96A3;
  font-weight: 500;
}

/* Timesheet Row-State Differentiation & Numeric Hierarchy */
#timesheetTable tbody tr.row-standard:nth-child(even) {
  background-color: #F2F5F7;
}

#timesheetTable tbody tr.row-standard:hover {
  background-color: var(--surface-bluegrey);
}

#timesheetTable tbody tr.row-unassigned {
  background-color: #FAF6EC;
}

#timesheetTable tbody tr.row-unassigned td:first-child {
  border-left: 3px solid #C89B3C;
  padding-left: 7px;
}

#timesheetTable tbody tr.row-unassigned:hover {
  background-color: #F3ECDC;
}

#timesheetTable tbody tr.row-muted {
  background-color: #F1F4F6;
  color: var(--ink-secondary);
}

#timesheetTable tbody tr.row-muted td,
#timesheetTable tbody tr.row-muted a,
#timesheetTable tbody tr.row-muted .money-primary {
  color: var(--ink-secondary);
}

#timesheetTable tbody tr.row-muted:hover {
  background-color: #E6ECF0;
}

.cell-client-eng {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-eng-link {
  font-weight: 600;
  color: var(--action-stoneblue);
}

.unassigned-label {
  color: #6E4E16;
  font-style: italic;
  font-weight: 500;
}

.money-primary {
  font-weight: 700;
  color: var(--ink-primary);
}

.money-secondary {
  font-weight: 400;
  color: var(--ink-secondary);
}

/* Calm Ghost Delete Action (only shifts to clay-red on hover) */
.btn-ghost-danger {
  background-color: transparent;
  border-color: #D2DBE2;
  color: var(--ink-secondary);
}

.btn-ghost-danger:hover {
  background-color: var(--badge-critical-bg);
  border-color: #D7A59F;
  color: var(--badge-critical-fg);
}

/* Bottom Section: WIP Billing Builder (68% / 32%) */
.billing-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 68%) minmax(260px, 32%);
  align-items: start;
}

@media (max-width: 1024px) {
  .billing-builder-layout {
    grid-template-columns: 1fr;
  }
}

.billing-wip-list {
  border-right: 1px solid var(--border-stone);
  min-width: 0;
}

.wip-group-block {
  border-bottom: 1px solid var(--border-stone);
}

.wip-group-block:last-child {
  border-bottom: none;
}

.wip-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background-color: #EBF0F4;
  border-bottom: 1px solid var(--border-stone);
  font-size: 12.5px;
}

.billing-summary-card {
  position: sticky;
  top: 62px;
  background-color: var(--surface-stone);
}

.billing-summary-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-stone);
}

.summary-line.is-total {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  border-bottom: none;
  padding-top: 2px;
}

.summary-note {
  font-size: 11px;
  line-height: 1.4;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 10px;
}

.audit-warning-banner {
  padding: 9px 11px;
  background-color: var(--badge-pending-bg);
  border: 1px solid #D8C294;
  color: var(--badge-pending-fg);
  font-size: 12px;
  line-height: 1.45;
}

/* ==========================================================================
   Phase 3: Reconciled AR Ledger, Receipts & Bookkeeping Check-Off (/receipts)
   ========================================================================== */

.ar-recon-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1.15fr auto;
  align-items: stretch;
  background-color: var(--surface-stone);
  border-bottom: 1px solid var(--border-stone);
}

@media (max-width: 1100px) {
  .ar-recon-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .ar-recon-op {
    display: none;
  }
}

.ar-recon-cell {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.ar-recon-cell.is-close {
  background-color: var(--surface-bluegrey);
  border-left: 1px solid var(--border-stone);
  border-right: 1px solid var(--border-stone);
}

.ar-recon-op {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.ar-recon-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.ar-recon-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.ar-recon-status {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background-color: var(--surface-stone);
}

#arInvoicesTable tbody tr.row-standard:nth-child(even) {
  background-color: #F2F5F7;
}

#arInvoicesTable tbody tr.row-standard:hover {
  background-color: var(--surface-bluegrey);
}

#arInvoicesTable tbody tr.row-muted {
  background-color: #F1F4F6;
  color: var(--ink-secondary);
}

#arInvoicesTable tbody tr.row-muted td,
#arInvoicesTable tbody tr.row-muted a,
#arInvoicesTable tbody tr.row-muted .money-primary {
  color: var(--ink-secondary);
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 3px;
  padding: 3px 8px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.badge-btn:hover {
  border-color: var(--action-stoneblue);
}

.rcpt-alloc-box {
  border: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
  max-height: 220px;
  overflow-y: auto;
}

.rcpt-alloc-input {
  width: 100px;
  height: 26px;
  padding: 0 6px;
  text-align: right;
  font-size: 12px;
}

/* ==========================================================================
   3-Tab Module Navigation, Partner Scope Segmented Control & AR Aging Strip
   ========================================================================== */

.module-tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
  border-bottom: 1px solid var(--border-stone);
  margin-bottom: 12px;
  padding: 0 8px;
}

.module-tab {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  color: var(--ink-secondary);
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  white-space: nowrap;
}

.module-tab:hover {
  color: var(--ink-primary);
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

.module-tab.is-active {
  color: var(--ink-primary);
  border-bottom: 2px solid var(--brand-terracotta);
  font-weight: 700;
}

.partner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
}

.segmented-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  background-color: var(--surface-stone);
  overflow: hidden;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-right: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.seg-btn:last-child {
  border-right: none;
}

.seg-btn:hover {
  background-color: var(--surface-bluegrey);
  color: var(--ink-primary);
  text-decoration: none;
}

.seg-btn.is-active {
  background-color: var(--action-stoneblue);
  color: #FFFFFF;
  font-weight: 600;
}

/* AR Aging Breakdown Strip (4 clickable buckets) */
.ar-aging-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-stone);
  background-color: #F2F5F7;
}

@media (max-width: 900px) {
  .ar-aging-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ar-aging-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border-right: 1px solid var(--border-stone);
  color: var(--ink-primary);
  text-decoration: none;
}

.ar-aging-cell:last-child {
  border-right: none;
}

.ar-aging-cell:hover {
  background-color: var(--surface-bluegrey);
  text-decoration: none;
}

.ar-aging-cell.is-alert {
  background-color: var(--badge-critical-bg);
  color: var(--badge-critical-fg);
}

.ar-aging-cell.is-alert:hover {
  background-color: #EDC5BF;
}

.ar-aging-cell.is-alert .ar-aging-label,
.ar-aging-cell.is-alert .ar-aging-amt,
.ar-aging-cell.is-alert .ar-aging-pct {
  color: var(--badge-critical-fg);
}

.ar-aging-cell.is-selected {
  outline: 2px solid var(--action-stoneblue);
  outline-offset: -2px;
}

.ar-aging-top,
.ar-aging-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ar-aging-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
}

.ar-aging-pct {
  font-size: 11px;
  color: var(--ink-secondary);
}

.ar-aging-amt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.ar-aging-amt.is-zero {
  color: #8A96A3;
  font-weight: 500;
}

.age-critical {
  color: var(--badge-critical-fg);
  font-weight: 700;
}

.client-ar-summary-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  background-color: var(--surface-stone);
}

@media (max-width: 1024px) {
  .client-ar-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-ar-summary-grid .ar-recon-cell {
  border-right: 1px solid var(--border-stone);
}

.client-ar-summary-grid .ar-recon-cell:last-child {
  border-right: none;
}

.meta-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.meta-grid-5 .meta-cell:nth-child(4n) {
  border-right: 1px solid var(--border-stone);
}

.meta-grid-5 .meta-cell:nth-child(5n) {
  border-right: none;
}

/* ==========================================================================
   Clean Desk & Progressive Disclosure Patterns
   ========================================================================== */

.tab-pill-count {
  margin-left: 7px;
  padding: 1px 5px;
  border-radius: 2px;
  background-color: var(--surface-bluegrey);
  color: var(--ink-secondary);
  font-size: 10.5px;
  font-weight: 600;
}

.module-tab.is-active .tab-pill-count {
  background-color: #FCE8E4;
  color: #9E2F1B;
}

.meta-quiet {
  color: #768390 !important;
  font-size: 12px;
  font-weight: 400 !important;
}

/* Hover-Reveal & Softened Secondary Row Actions (keyboard focus-within preserved) */
.row-hover-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.ledger-table tbody tr:hover .row-hover-actions,
.ledger-table tbody tr:focus-within .row-hover-actions {
  opacity: 1;
}

.row-soft-action {
  display: inline-flex;
  align-items: center;
  opacity: 0.52;
  transition: opacity 0.12s ease;
}

.ledger-table tbody tr:hover .row-soft-action,
.ledger-table tbody tr:focus-within .row-soft-action {
  opacity: 1;
}

/* Intentional Clean Desk Empty States & Centered Client Lookup Card */
.clean-desk-empty,
.clean-desk-lookup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background-color: var(--surface-stone);
}

.clean-desk-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.clean-desk-title {
  margin: 0 0 6px 0;
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.clean-desk-sub {
  margin: 0 0 18px 0;
  max-width: 480px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.clean-desk-picker-wrap {
  width: 100%;
  max-width: 520px;
  margin-bottom: 18px;
}

.clean-desk-select {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.clean-desk-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Collapsed-by-Default Expandable WIP Accordion List */
.wip-list-colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background-color: var(--surface-bluegrey);
  border-bottom: 1px solid var(--border-stone);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.wip-accordion-item {
  border-bottom: 1px solid var(--border-stone);
  background-color: var(--surface-stone);
}

.wip-accordion-item:last-child {
  border-bottom: none;
}

.wip-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  cursor: pointer;
  background-color: var(--surface-stone);
  user-select: none;
}

.wip-accordion-summary:hover {
  background-color: var(--surface-bluegrey);
}

.wip-accordion-item.is-expanded > .wip-accordion-summary {
  background-color: #EBF0F4;
  border-bottom: 1px solid var(--border-stone);
}

.wip-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.wip-summary-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wip-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-secondary);
  transition: transform 0.12s ease;
  width: 12px;
  text-align: center;
}

.wip-accordion-item.is-expanded .wip-chevron {
  transform: rotate(90deg);
  color: var(--ink-primary);
}

.wip-eng-link {
  color: var(--action-stoneblue);
  font-weight: 500;
}

.wip-accordion-detail[hidden] {
  display: none;
}

/* ==========================================================================
   Office-Readiness: Top-Right Icon Buttons, PIN Login Page & Admin Controls
   ========================================================================== */

.chrome-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background-color: var(--surface-stone);
  color: var(--ink-primary);
  border: 1px solid #9EB0BE;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}

.chrome-icon-btn:hover {
  background-color: #B8C6D2;
  color: var(--ink-primary);
  text-decoration: none;
}

.chrome-icon-btn.is-active {
  background-color: var(--action-stoneblue);
  border-color: var(--action-stoneblue);
  color: #FFFFFF;
}

/* Clean Desk PIN Login Screen */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--surface-moss);
}

.login-shell {
  width: 100%;
  max-width: 380px;
}

.login-card {
  background-color: var(--surface-stone);
  border: 1px solid var(--border-stone);
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background-color: #C8D3DC;
  border-bottom: 1px solid #AEBCC8;
}

.login-brand-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1.1;
}

.login-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-pin-input {
  height: 38px;
  font-size: 18px;
  letter-spacing: 0.35em;
  text-align: center;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pin-key {
  height: 40px;
  background-color: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid var(--border-stone);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pin-key:hover {
  background-color: var(--surface-bluegrey);
}

.pin-key-util {
  background-color: var(--surface-bluegrey);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 700;
}

.login-foot {
  text-align: center;
  font-size: 11.5px;
  padding-top: 4px;
}
