/* Luxlink workspace: official blue identity, shared across every business view. */
:root {
  --brand-blue: #0075d4;
  --brand-hover: #0064b6;
  --brand-cyan: #01a4fc;
  --brand-navy: #10233e;
  --brand-tint: #edf5fd;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #172f4b;
  --body: #334b63;
  --muted: #62758a;
  --line: #dfe7ef;
  --green: var(--brand-blue);
  --green-soft: var(--brand-tint);
  --sidebar: var(--brand-navy);
  --sidebar-muted: #a9bfd5;
  --amber: #94671b;
  --shadow: 0 8px 28px #10233e0d;
}

body { background: var(--bg); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline-color: var(--brand-blue);
}
input[type="checkbox"] { accent-color: var(--brand-blue); }
.sidebar { padding-top: 26px; border-right: 1px solid #081b31; }
.brand {
  display: block;
  margin: 0 0 12px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #ffffff24;
  border-radius: 8px;
}
.brand-logo { display: block; width: 100%; height: auto; }
.brand-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 26px;
  color: #dce9f6;
  font-size: 11px;
  letter-spacing: .7px;
}
.brand-caption span { color: #a9bfd5; font-size: 8px; letter-spacing: .9px; }
.workspace-switch { background: #ffffff05; border-color: #ffffff17; margin-bottom: 28px; }
.workspace-avatar { color: #d9f0ff; font-size: 10px; font-weight: 650; background: #0075d429; }
.workspace-dot, .shared-dot { background: #50c5ff; }
.nav-caption { color: #a9bfd5; }
.nav-item { color: #c7d8e9; }
.nav-item:hover { background: #ffffff0d; }
.nav-item.active {
  background: #edf5ff;
  color: #0865af;
  box-shadow: inset 3px 0 var(--brand-cyan);
}
.nav-count { color: #bfd2e5; background: #ffffff0e; }
.nav-item.active .nav-count { color: #0865af; background: #0075d410; }
.sidebar-note strong { color: #d4e3f2; }
.sidebar-note p, .preview-label { color: #a9bfd5; }
.preview-label span { background: #50c5ff; }
.sidebar-bottom { border-color: #ffffff19; }
.topbar { border-top: 3px solid var(--brand-blue); }
.breadcrumb strong { color: var(--text); }
.global-search-button { color: #65798e; background: #f7f9fc; border-color: var(--line); }
.global-search-button:hover { border-color: #b3c9e0; }
.global-search-button kbd, .sharing-label { color: #62758a; }
.user-avatar { color: #0865af; background: #e7f2ff; border: 1px solid #cfe4fa; }
.user-button { display: flex; align-items: center; gap: 10px; text-align: right; border-radius: 7px; }
.user-greeting { display: grid; gap: 4px; color: var(--text); font-size: 13px; white-space: nowrap; }
.user-greeting small { color: var(--muted); font-size: 10px; font-weight: 400; }
.topbar-right { gap: 16px; }
@media (max-width: 1180px) {
  .sharing-label { display: none; }
  .global-search-button { width: 220px; }
}
@media (max-width: 700px) {
  .topbar { gap: 10px; }
  .topbar-right { margin-left: auto; min-width: 0; }
  .user-button { gap: 7px; min-width: 0; }
  .user-greeting { font-size: 12px; white-space: normal; max-width: 150px; overflow-wrap: anywhere; }
  .user-greeting small { font-size: 9px; }
  .user-avatar { flex-shrink: 0; }
}
.mobile-brand { display: none; }
.page-eyebrow { color: #54738e; font-weight: 500; }
.page-title { color: var(--text); letter-spacing: -.5px; }
.page-subtitle, .panel-subtitle { color: var(--muted); }
.button-primary { background: var(--brand-blue); border-color: var(--brand-blue); }
.button-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button-secondary { color: #36536f; border-color: #ccd9e5; }
.button-secondary:hover, .button-ghost:hover, .icon-button:hover { background: #edf4fb; }
.button-ghost, .icon-button { color: #58718a; }
.action-link, .entity-link, .file-link { color: #0868b1; }
.action-link:hover, .entity-link:hover, .file-link:hover { color: #004f90; }
.panel { box-shadow: 0 2px 4px #10233e02; }
.muted { color: var(--muted) !important; }
.entity-secondary, .person-card-meta, .detail-label, .timeline-meta,
.project-code, .project-next, .pc-project-code, .pc-history-source,
.form-field small, .form-control::placeholder { color: #667b91; }
.form-control, .detail-value, .record-notes, .detail-note { color: var(--body); }
.form-control:focus { border-color: var(--brand-blue); outline-color: #0075d425; }
.form-control:disabled { color: #62758a; background: #f1f5f9; }
.avatar, .related-icon, .file-type-icon { color: #0868b1; }
.avatar, .related-icon { background: #e9f3ff; }
.segmented { border-color: var(--line); background: #f1f5fa; }
.segmented .active { color: #0865af; background: #fff; box-shadow: 0 1px 4px #10233e12; }
.data-table th { color: #5c7289; background: #f4f7fb; }
.data-table td { color: #3b536b; }
.data-table tbody tr:hover { background: #f7faff; }
.status-pill, .badge { background: #eef3f8; color: #5a6f84; }
.status-pill[data-stage="quoted"], .status-pill[data-status="active"],
.status-pill[data-status="accepted"] { color: #0865af; background: #e8f3ff; }
.status-pill[data-stage="sourcing"], .status-pill[data-status="draft"] { color: #8b621c; background: #fcf3dd; }
.status-pill[data-stage="inquiry"], .status-pill[data-status="sent"] { color: #3c678c; background: #eaf2f9; }
.detail-plan, .timeline-next, .amount-summary, .stage-step.active,
.stage-step.current { color: #2f5d87; background: #edf5fd; }
.drawer { background: #fbfcfe; box-shadow: -12px 0 50px #10233e15; }
.drawer h2, .modal h2 { color: var(--text); }
.drawer-backdrop, .modal-backdrop { background: #10233e52; }
.toast { background: #153b61; }
.toast.error { background: #a65d4b; }
.workspace-footer { color: #667b91; }
.workspace-footer > span:first-child { color: #476681; font-weight: 500; letter-spacing: 1px; }
.footer-divider { color: #9eb1c4; margin: 0 7px; }

/* The chosen main task remains the first thing visible on the home page. */
.focus-panel {
  background: #eef6ff;
  border: 1px solid #ccdef1;
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 4px 16px #10233e04;
}
.focus-panel::after { border-color: #0075d40b; }
.focus-kicker { color: #386a99; }
.focus-live-dot { background: var(--brand-blue); }
.focus-project-name, .focus-panel-empty h2 { color: #153b61; font-weight: 600; }
.focus-project-name:hover { color: var(--brand-blue); }
.focus-project-code, .focus-step-label, .focus-setup-label { color: #5f7b96; }
.focus-project-meta, .focus-client-tier, .focus-meta-row { color: #4b6c8b; }
.focus-next-step { border-left-color: var(--brand-blue); }
.focus-next-step strong { color: #254f77; }
.focus-panel-empty p { color: #55718c; }
.task-project-title, .task-followup-body strong { color: #254f77; }
.task-project-next, .task-project-customer, .task-followup-body,
.task-followup-meta, .task-followup-body small, .home-work-scope { color: #60768c; }
.task-project-row, .task-followup-row { border-color: #e5edf5; }
.task-project-row:hover, .task-followup-row:hover { background: #f8fbff; }
.task-followup-dot { background: #288acf; }
.home-task-empty-mark { color: #5186b4; background: #edf5fd; }
.home-task-empty h3 { color: #446985; }
.home-task-empty p { color: #657a8f; }
.main-project-option { background: #f8fbff; border-color: #dce7f2; }
.main-project-option:hover, .main-project-option-current { background: #edf5ff; border-color: #88b9e4; }
.main-project-option strong { color: #254f77; }
.main-project-option small, .main-project-option .main-option-label,
.main-picker-info { color: #60768c; }
.tier-A, .pc-tier-a { color: #8a6018; background: #fbf0d7; }
.tier-B, .pc-tier-b { color: #0865af; background: #e5f2ff; }
.tier-unset, .pc-tier-none { color: #64748b; background: #eef1f5; }

/* Customer-led project center and its detail tabs. */
.pc-customer-card { border-color: #dfe7ef; background: #fff; }
.pc-customer-card:hover { border-color: #a8cae9; box-shadow: 0 8px 24px #10233e0a; }
.pc-customer-avatar { color: #0865af; background: #e7f3ff; }
.pc-customer-name, .pc-project-card-name { color: #254f77; }
.pc-customer-meta, .pc-customer-footer, .pc-customer-caption,
.pc-project-card-next, .pc-project-card-meta { color: #60768c; }
.pc-customer-enter, .pc-back-link { color: #0868b1; }
.pc-unlinked-label { color: #64748b; background: #eef1f5; }
.pc-main-toggle { color: #52718d; background: #f3f7fb; border-color: #cfdeeb; }
.pc-main-toggle.pc-is-main { color: #0865af; background: #e7f3ff; border-color: #a5c9e9; }
.pc-main-toggle.pc-is-main svg { fill: #0075d41a; }
.pc-main-row td { background: #f2f8ff; }
.pc-board .pc-project-card.pc-main-card { border-color: #8ebce4; }
.pc-tabs { border-color: #d9e5f0; }
.pc-tab { color: #60768c; }
.pc-tab:hover { color: #0865af; background: #eff6ff; }
.pc-tab.active { color: #0865af; border-bottom-color: var(--brand-blue); }
.pc-next-action { border-color: #d5e5f3; background: #edf5fd; }
.pc-next-action p { color: #315d84; }
.pc-history p { color: #445f79; }
.pc-history p.pc-history-source, .pc-history-next > span,
.pc-history-next small { color: #62758a; }
.pc-history-next { color: #3e6589; background: #edf5fd; }

.handoff-intro { background: #eef6ff; border-color: #ccdef1; border-top: 3px solid var(--brand-blue); }
.handoff-intro h2, .handoff-step h2, .handoff-actions h2 { color: #254f77; font-weight: 600; }
.handoff-intro p, .handoff-step p, .handoff-actions p { color: #526e89; }
.handoff-intro .handoff-note, .handoff-local-note { color: #62758a; }
.handoff-number { color: var(--brand-blue); font-weight: 600; }
.customer-quote { color: #263e57; }
.customer-quote header { border-bottom-color: var(--brand-blue); }
.customer-quote .quote-logo { display: block; width: 152px; height: auto; margin: 0 0 12px; }
.customer-quote small { color: #62758a; }
.customer-quote th { background: #edf5fd; }

@media (max-width: 1180px) {
  .brand { margin-left: 0; margin-right: 0; }
  .brand-caption { font-size: 10px; }
  .brand-caption span { font-size: 7px; }
}
@media (max-width: 950px) and (min-width: 701px) {
  .brand { padding: 12px 9px; }
  .brand-caption { justify-content: center; }
  .brand-caption span { display: none; }
}
@media (max-width: 700px) {
  .sidebar { padding-top: 26px; }
  .brand { padding: 12px 13px; }
  .brand-caption { font-size: 11px; justify-content: space-between; }
  .brand-caption span { display: inline; font-size: 8px; }
  .mobile-brand { display: block; flex-shrink: 0; width: 106px; }
  .mobile-brand img { display: block; width: 100%; height: auto; }
  .topbar .breadcrumb { display: none; }
  .topbar { border-top-width: 2px; }
  .page-header .header-actions .button-primary { padding-left: 12px; padding-right: 12px; }
  .focus-panel-empty h2 { font-size: 20px; }
}
@media (max-width: 700px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .global-search-button { width: 34px; min-width: 34px; height: 34px; padding: 9px; flex: 0 0 34px; margin-left: auto; }
  .global-search-button > span:not([data-icon]), .global-search-button kbd { display: none; }
  .topbar-right { flex-shrink: 0; margin-left: 0; }
  .user-greeting { white-space: nowrap; max-width: none; font-size: 12px; }
}
@media (max-width: 480px) {
  .user-avatar { display: none; }
  .mobile-brand { width: 100px; }
}

.home-page-header { align-items: flex-start; }
.home-heading { min-width: 0; }
.home-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.home-greeting { min-width: 0; overflow-wrap: anywhere; }
.home-title-topic { white-space: nowrap; }
.user-button-compact { min-width: 44px; min-height: 44px; justify-content: center; }
.user-button-compact .user-greeting { display: none; }
.user-button-compact .user-avatar { display: grid; }
@media (max-width: 700px) {
  .home-page-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .home-title { font-size: 22px; column-gap: 14px; }
  .home-page-header .header-actions { justify-content: flex-end; }
}
