/* Luna Lighting's website identity, adapted for an everyday employee workspace. */
.optional-lead-details { border-top: 1px solid var(--border); margin-top: 23px; padding-top: 17px; }
.optional-lead-details summary { cursor: pointer; color: var(--gold-light); font-size: 13px; font-weight: 500; }
.optional-lead-details summary span { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 8px; }
.optional-lead-details[open] summary { margin-bottom: 14px; }
.optional-lead-details .form-hint { margin-bottom: 17px; }
@font-face {
  font-family: 'Cormorant SC';
  src: url('/assets/cormorant-sc-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant SC';
  src: url('/assets/cormorant-sc-semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gold: #c9a45c;
  --gold-light: #e1c589;
  --ivory: #f5f3ee;
  --surface: #1c1b18;
  --surface-raised: #24221d;
  --surface-field: #141411;
  --border: #3c3629;
  --muted: #b5aea0;
  --text: #ece7dd;
  --bg: #141411;
  --blue: #d1b372;
  --blue-hover: #e4c587;
  --red: #ed9b91;
  --radius: 8px;
  font-family: 'Segoe UI', Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
body { background: var(--bg); }
::selection { color: #16140f; background: #dfc58c; }
a { color: var(--gold-light); }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline-color: #e1c589;
  outline-width: 2px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #c9a45c1f;
}
.skip-link { color: var(--ivory); background: #2a261d; }
.wordmark { font-family: 'Cormorant SC', Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: 1.8px; color: var(--ivory); line-height: 1.1; }
.brand { gap: 16px; }
.brand-logo { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.brand-tag { display: block; border: 0; padding: 0; font-size: 9px; font-weight: 500; letter-spacing: 2.4px; color: var(--gold); }
.app-header { display: block; padding: 0; height: auto; background: #11110ff5; border-bottom: 1px solid #725c34; backdrop-filter: blur(14px); }
.header-content { display: flex; align-items: center; justify-content: space-between; max-width: 1640px; margin: 0 auto; padding: 16px 36px; gap: 24px; min-height: 98px; }
.header-right { gap: 30px; align-self: center; }
.workspace-label { color: #a59c8a; font-size: 10px; letter-spacing: 1.35px; text-transform: uppercase; padding-right: 28px; border-right: 1px solid #3a3325; }
.account summary { gap: 11px; }
.avatar { width: 36px; height: 36px; background: #342d1e; border: 1px solid #5c4b2e; color: #dfc58d; }
.account-name { display: block; font-size: 12px; max-width: 145px; color: #ebe4d7; }
.account-role { display: block; color: #b4a891; font-size: 10px; margin-top: 4px; }
.account summary>svg { color: #a99b81; width: 14px; }
.account-menu { top: 49px; background: #23211b; border-color: #5a4a2c; box-shadow: 0 14px 36px #0006; }
.account-menu .menu-email { color: #beb39e; font-size: 12px; border-color: #443a29; }
.account-menu button { color: #dbd2c3; font-size: 12px; }
.account-menu button:hover { color: var(--ivory); background: #373021; }
.navigation-rail { border-top: 1px solid #ffffff09; }
.main-nav { display: flex; gap: 12px; max-width: 1640px; margin: 0 auto; padding: 0 36px; overflow: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link { min-height: 49px; padding: 0 15px; border-bottom: 2px solid transparent; color: #b4ac9c; font-size: 12px; gap: 9px; }
.nav-link:first-child { margin-left: -15px; }
.nav-link:hover { color: var(--ivory); background: #c9a45c08; }
.nav-link.active { color: var(--gold-light); border-bottom-color: var(--gold); background: linear-gradient(0deg, #c9a45c13, transparent); }
.nav-link svg { width: 15px; height: 15px; }
.main { max-width: 1640px; min-height: calc(100vh - 225px); margin: 0 auto; padding: 33px 36px 44px; }
.page-heading { align-items: center; margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid #c9a45c24; }
.page-heading h1 { font-family: 'Cormorant SC', Georgia, serif; font-weight: 600; font-size: 35px; letter-spacing: 1.2px; line-height: 1.1; color: var(--ivory); margin-bottom: 10px; }
.page-heading p { font-size: 12px; color: #b3aa99; line-height: 1.6; }
.page-eyebrow { display: block; font-size: 9px; font-weight: 600; letter-spacing: 2.3px; line-height: 1.6; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.dashboard-heading { min-height: 153px; padding: 26px 29px; border: 1px solid #5a492b; border-radius: var(--radius); background: linear-gradient(90deg, #1c1b18 25%, #1c1b18eb 58%, #1c1b185c 100%), url('/assets/luna-lighting-hero.jpg') right 48% / 640px auto no-repeat; }
.dashboard-heading h1 { font-size: 40px; margin-bottom: 8px; }
.dashboard-heading .heading-actions { padding: 0; }
.heading-actions { padding-top: 0; }
.btn { color: #d7ccb6; border-color: #625133; background: #252219; border-radius: 5px; min-height: 38px; padding: 10px 15px; font-size: 12px; font-weight: 550; letter-spacing: .1px; }
.btn:hover { background: #352e20; color: #f6ead0; border-color: #a58952; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17140d; box-shadow: 0 2px 5px #0002; }
.btn.primary:hover { color: #100e09; background: #dec083; border-color: #dec083; }
.btn.danger { color: #efaaa0; border-color: #815046; background: #35231e; }
.btn.danger:hover { color: #ffd3cb; border-color: #b87567; background: #4a2d25; }
.btn.small { min-height: 31px; font-size: 11px; padding: 7px 11px; }
.quiet-link { color: #d6b978; font-size: 12px; }
.quiet-link:hover { color: #f0d599; }
.icon-button { color: #b8a57d; }
.icon-button:hover { color: #e8ce99; background: #40351f; }
.metrics { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 32px; }
.metric { min-height: 133px; background: linear-gradient(145deg, #22211c, #1b1a17); border-color: #49402e; border-radius: 7px; padding: 19px 20px; box-shadow: 0 3px 8px #00000012; }
.metric:hover { border-color: #aa8950; background: #2b271e; box-shadow: 0 5px 15px #0003; }
.metric-top { margin-bottom: 9px; }
.metric-label { font-size: 12px; font-weight: 500; color: #d1c7b4; }
.metric-icon { color: #b1945d; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-value { font-size: 31px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.4px; color: #f0e6d0; }
.metric-footer { font-size: 11px; color: #aaa18f; margin-top: 10px; line-height: 1.4; }
.metric.alert { background: linear-gradient(145deg, #2b221d, #211c17); border-color: #6a4435; }
.metric.alert .metric-value,.metric.alert .metric-icon { color: #e9a58e; }
.section-head { margin-bottom: 15px; }
.section-title { color: var(--ivory); font-family: 'Cormorant SC', Georgia, serif; font-size: 23px; font-weight: 600; letter-spacing: .8px; gap: 10px; }
.section-title svg { color: #c2a467; width: 17px; height: 17px; }
.count-pill { font-family: 'Segoe UI', Arial, sans-serif; background: #302a1e; color: #d6bf8d; border: 1px solid #4c402a; font-size: 10px; padding: 3px 7px; min-width: 24px; border-radius: 4px; line-height: 1.2; }
.page-heading .count-pill { font-size: 12px; vertical-align: middle; margin-left: 7px; letter-spacing: 0; }
.attention-section { margin-bottom: 34px; }
.card { background: #1e1d19; border-color: #443b2c; border-radius: 7px; box-shadow: 0 3px 8px #00000010; overflow: hidden; }
.data-table { font-size: 12px; }
.data-table thead { background: #27241c; color: #c4b392; }
.data-table th { border-color: #4b402c; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: #c4b392; height: 42px; padding: 11px 17px; }
.data-table td { height: 59px; border-color: #363025; padding: 13px 17px; color: #c5bdad; }
.data-table tbody tr[data-lead-id]:hover { background: #2a261c; }
.customer-name { font-size: 13px; font-weight: 550; color: #f0e8d8; }
.customer-sub { font-size: 11px; color: #a99f8c; line-height: 1.5; }
.status-badge { font-size: 10px; border: 1px solid color-mix(in srgb, var(--status-color) 20%, transparent); padding: 4px 8px; border-radius: 4px; }
.date-overdue { color: #e8a192!important; }
.date-today { color: #e0c281!important; }
.due-meta { font-size: 10px; }
.table-bottom { color: #a69b87; border-color: #403726; font-size: 11px; padding: 14px 17px; background: #1b1a16; }
.lead-id { color: #b8a88a; font-size: 11px; }
.pipeline-subtitle { color: #a99e89; font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.pipeline-scroll { scrollbar-color: #6a5834 #1c1b16; padding-bottom: 15px; }
.pipeline-board { grid-template-columns: repeat(9,minmax(180px,1fr)); gap: 12px; min-width: 1730px; }
.pipeline-column { min-height: 253px; border-color: #443927; border-radius: 6px; padding: 12px; background: #1c1b16; }
.pipeline-column-head { margin-bottom: 9px; }
.pipeline-name { color: #d6c9af; font-size: 10px; font-weight: 500; }
.pipeline-total { color: #a99a7d; font-size: 11px; margin-bottom: 15px; }
.pipeline-card { border-color: #55462c; background: #2b271e; border-radius: 5px; padding: 14px 12px; margin-bottom: 11px; box-shadow: 0 3px 6px #0002; }
.pipeline-card:hover { background: #342e21; border-color: #a1834a; }
.pipeline-card-title { font-size: 13px; font-weight: 550; color: #f2e7d1; margin-bottom: 9px; }
.pipeline-assignee { color: #b9ab8e; font-size: 11px; margin-bottom: 12px; }
.pipeline-action { color: #c4b798; font-size: 11px; margin-bottom: 13px; }
.pipeline-price { color: #e0c58e; font-size: 12px; }
.pipeline-date { color: #c0af8b; font-size: 10px; }
.pipeline-empty { border-color: #3c3324; color: #9e9178; padding: 28px 5px; font-size: 11px; }
.list-toolbar { border: 1px solid #403725; border-radius: 7px; background: #1c1b17; padding: 17px; margin-bottom: 18px; }
.quick-filters { gap: 7px; margin-bottom: 17px; scrollbar-color: #6a5834 transparent; }
.filter-chip { background: #242118; border-color: #4a3e29; color: #beb198; padding: 8px 11px; font-size: 11px; border-radius: 4px; }
.filter-chip:hover { color: #e8d2a6; border-color: #8e7441; }
.filter-chip.active { background: #493d25; border-color: #ac8c4e; color: #f2dba9; }
.filter-chip .filter-count { color: #c7b893; background: #38301f; font-size: 10px; }
.filter-chip.active .filter-count { color: #f4ddb0; background: #675333; }
.search-field { max-width: 460px; }
.search-field svg { top: 12px; color: #a3916d; }
.input,select,textarea { background: #151511; border-color: #53462f; color: #e8ddc9; border-radius: 5px; min-height: 39px; font-size: 12px; padding: 10px 11px; }
input::placeholder,textarea::placeholder { color: #968a73; opacity: 1; }
input[readonly] { color: #b6ac98; border-color: #3e3628; background: #201e17; }
select option { background: #252117; color: #e8ddc9; }
.filter-controls select { font-size: 11px; }
.clear-filters { color: #ccb37d; }
.empty-state { color: #b3a68b; padding: 42px 24px; }
.empty-icon { background: #30291b; color: #bca06a; border: 1px solid #4c3f26; }
.empty-state h3 { font-size: 14px; font-weight: 500; color: #e1d3b8; }
.empty-state p { color: #b4a58a; font-size: 12px; line-height: 1.8; }
.compact-empty { font-size: 12px; color: #b1a38b; padding: 25px; }
.error-banner,.form-error { background: #34211d; border-color: #815347; color: #f0b3a6; }
.notice { background: #2a261a; border-color: #6c5832; color: #d1bd92; font-size: 12px; }
.notice strong { color: #e8cf99; }
.page-back { color: #c0aa7d; font-size: 11px; }
.page-back:hover { color: #f1d494; }
.detail-heading h1 { text-transform: none; font-size: 35px; }
.detail-heading .status-badge { font-family: 'Segoe UI', Arial, sans-serif; font-size: 10px; letter-spacing: 0; }
.detail-id { font-size: 11px; color: #b5a78b; }
.detail-grid { grid-template-columns: minmax(0,1.55fr) minmax(310px,1fr); gap: 22px; }
.detail-card { margin-bottom: 21px; }
.card-head { border-color: #483d28; background: #25221a; padding: 17px 21px; min-height: 60px; }
.card-head h2 { font-family: 'Cormorant SC', Georgia, serif; color: #e7d7b5; font-size: 21px; font-weight: 600; letter-spacing: .5px; }
.card-head h2 svg { color: #b89c63; }
.card-body { padding: 23px 21px; }
.info-grid { gap: 23px 27px; }
.info-item label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #ad9d7b; margin-bottom: 8px; }
.info-item p { color: #e1d6c0; font-size: 13px; line-height: 1.7; }
.form-field>span,.form-field>label { color: #cebea0; font-size: 12px; font-weight: 500; }
.form-field .required { color: #d4ad78; }
.form-section-label { color: #beaa80; border-color: #463b28; }
.form-hint,.form-inline-note { color: #b6a78b; font-size: 11px; }
.notes-form textarea { background: #151511; font-size: 12px; min-height: 97px; }
.notes-list { border-color: #453923; padding: 0 21px; }
.note { border-color: #3c3324; padding: 19px 0; }
.note-author { color: #d5c299; font-size: 11px; }
.note-time { color: #a99a7d; font-size: 10px; }
.note-body { color: #d0c1a5; font-size: 12px; line-height: 1.8; }
.note .avatar { border-color: #695536; background: #342b1b; }
.activity-list { padding: 9px 21px 16px; }
.activity-item { font-size: 11px; }
.activity-icon { background: #352d1d; color: #c5aa70; }
.activity-item:not(:last-child):before { background: #4e4027; }
.activity-description { color: #d0bea0; }
.activity-time { color: #a99a7d; font-size: 10px; }
.subtle { color: #afa085; }
.audit-changes { color: #c4b496; line-height: 1.7; font-size: 11px; }
.audit-changes strong { color: #e0c897; }
.audit-before { color: #bd958a; }
.tabs { border-color: #4a3c24; }
.tab { color: #b5a589; }
.tab.active { color: #dec18c; border-color: #c9a45c; }
.request-card { padding: 22px; }
.request-header h3 { color: #e4d2ae; font-size: 14px; }
.request-meta { color: #b3a285; font-size: 11px; }
.request-reason { color: #d3c3a4; font-size: 12px; line-height: 1.8; }
.changes-table { font-size: 12px; }
.changes-table th { background: #282319; color: #c4ad7f; border-bottom: 1px solid #564428; }
.changes-table td { border-color: #453822; color: #d5c5a7; }
.changes-table td:first-child { color: #bfad89; }
.role-badge { color: #d4bb8c; border-color: #605033; background: #302819; font-size: 10px; }
.role-badge.owner { color: #e7c985; border-color: #806330; background: #3a2f1a; }
.role-badge.manager { color: #d5c3a0; border-color: #605338; background: #302a1d; }
.user-status { color: #b7c5a2; }
.user-status.inactive { color: #b0a28c; }
.role-description { font-size: 11px; color: #b3a58a; }
.inactive-row { opacity: .74; }
.audit-list .activity-item:not(:last-child) { border-color: #413621; }
.audit-list .activity-description { font-size: 12px; }
.readonly-value { color: #b7aa91; background: #242016; border-color: #493b23; }
dialog { color: var(--text); background: #1c1b17; border: 1px solid #8a6d38; border-radius: 9px; box-shadow: 0 28px 110px #000b; }
dialog::backdrop { background: #050504b0; backdrop-filter: blur(5px); }
.modal-head { background: #242119; border-color: #66502c; padding: 24px 27px 20px; }
.modal-head h2 { font-family: 'Cormorant SC', Georgia, serif; font-weight: 600; font-size: 28px; letter-spacing: .6px; color: #f1dfbc; margin-bottom: 7px; }
.modal-head p { color: #bdad8e; font-size: 12px; }
.modal-body { padding: 25px 27px; }
.modal-form-footer { background: #232016; border-color: #564427; margin: 25px -27px -25px; padding: 17px 27px; }
.toast { color: #dfd0af; background: #2b281e; border-color: #81704b; box-shadow: 0 8px 32px #0005; }
.toast svg { color: #c7bb85; }
.toast.error { color: #edb7a7; border-color: #9a6250; background: #38261f; }
.boot-screen { background: #151411; gap: 18px; }
.boot-logo { width: 110px; height: 110px; border-radius: 50%; }
.boot-screen p { color: #b6a27a; }
.loading-line { background: #443821; border-radius: 2px; }
.loading-line:after { background: #c9a45c; }
.loading-content { color: #bfac85; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding: 19px 36px; max-width: 1568px; margin: 0 auto; border-top: 1px solid #c9a45c23; color: #92866c; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }

.auth-shell { background: #11110e; grid-template-rows: auto 1fr auto; position: relative; }
.auth-shell:before { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg,#11110e33,#11110e44 45%,#11110eed 78%), url('/assets/luna-lighting-hero.jpg') 8% center / auto 100% no-repeat; opacity: .6; }
.auth-header,.auth-main,.auth-footer { position: relative; z-index: 1; }
.auth-header { max-width: 1500px; margin: 0 auto; width: 100%; padding: 24px 46px; }
.auth-header-brand { display: flex; gap: 14px; align-items: center; }
.auth-header .brand-logo { width: 57px; height: 57px; }
.auth-header .wordmark { font-size: 27px; }
.auth-label { color: #bba16b; font-size: 9px; letter-spacing: 2px; }
.auth-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; width: min(1130px,calc(100% - 90px)); margin: 28px auto 42px; }
.auth-brand-panel { padding: 25px 0; }
.auth-brand-panel .page-eyebrow { font-size: 10px; letter-spacing: 2.7px; margin-bottom: 20px; }
.auth-brand-panel h2 { color: #eee1c2; font-family: 'Cormorant SC', Georgia, serif; font-weight: 400; font-size: clamp(44px,4.8vw,70px); line-height: 1.09; letter-spacing: 1px; margin: 0 0 27px; }
.brand-rule { height: 1px; background: #bc9854; width: 83px; margin-bottom: 24px; }
.auth-brand-panel p { color: #bdad8e; font-size: 13px; line-height: 1.9; margin-bottom: 28px; }
.auth-seal { width: 138px; height: 138px; border-radius: 50%; opacity: .94; }
.auth-content { width: 100%; max-width: 465px; margin: 0 0 0 auto; padding: 38px 35px 29px; border: 1px solid #715a32; border-radius: 8px; background: #1b1a16f0; box-shadow: 0 20px 70px #0005; }
.auth-symbol { width: 39px; height: 39px; border-radius: 7px; border-color: #6f5932; background: #2c2619; color: #d4b576; margin-bottom: 22px; }
.auth-content .page-eyebrow { font-size: 9px; margin-bottom: 8px; }
.auth-content h1 { font-family: 'Cormorant SC', Georgia, serif; color: #f1e4c8; font-size: 36px; font-weight: 600; letter-spacing: .5px; margin-bottom: 12px; }
.auth-content>p { color: #baaa8c; font-size: 12px; line-height: 1.85; margin-bottom: 26px; }
.auth-content .form-field { gap: 9px; }
.auth-content input { height: 44px; }
.auth-content .btn.primary { min-height: 44px; }
.auth-footnote { color: #b1a184!important; font-size: 11px!important; line-height: 1.8!important; margin-top: 23px!important; }
.auth-success { color: #d4c7a5; border-color: #74603c; background: #302b1d; font-size: 12px; }
.dev-preview-button { color: #c4aa77; font-size: 11px; padding-top: 18px; }
.dev-preview-button:hover { color: #eed29b; }
.auth-footer { border-top: 1px solid #c9a45c27; margin: 0 46px; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; color: #9d8a65; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.auth-footer span { color: #8b806b; }
.outbox-item { background: #242017; border-color: #62502d; padding: 18px; }
.outbox-item h3 { color: #e4cc9d; font-size: 13px; }
.outbox-item p { color: #beab88; font-size: 12px; }
.sync-status { display: inline-flex; gap: 12px; align-items: center; }
.sync-status .quiet-link { font-size: 10px; text-transform: none; letter-spacing: 0; }
.audit-filters { padding: 18px; margin-bottom: 20px; overflow: visible; }
.audit-filter-fields { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.audit-filter-fields select { max-width: none; }
.audit-filter-actions { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.audit-filter-actions .form-hint { margin-right: auto; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; font-size: 12px; color: #b8a17a; }
.audit-pagination>div { display: flex; gap: 9px; }
.audit-pagination button:disabled { cursor: default; }
.conflict-review { padding: 16px; border: 1px solid #9b7437; background: #30271b; border-radius: 6px; margin: 15px 0 20px; }
.conflict-review h3 { font-size: 14px; color: #eed4a3; line-height: 1.5; margin-bottom: 14px; }
.conflict-review p { font-size: 12px; color: #d0b68c; line-height: 1.8; margin: 14px 0; }
.conflict-review .changes-table { min-width: 450px; font-size: 11px; }
.conflict-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
form[inert] { opacity: .8; }
.form-grid[inert],.optional-lead-details[inert] { opacity: .65; }
@media(max-width:1000px) {
  .audit-filter-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:560px) {
  .audit-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-filter-actions { flex-wrap: wrap; }
  .audit-filter-actions .form-hint { flex-basis: 100%; }
  .audit-pagination { font-size: 11px; }
  .workspace-footer { align-items: center; }
  .sync-status { gap: 7px; letter-spacing: 0; }
}

/* My Day keeps daily work separate from the broader dashboard overview. */
.day-heading { margin-bottom: 20px; }
.day-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.day-toolbar>div:first-child { display: flex; align-items: baseline; gap: 12px; }
.day-scope-label { font-size: 13px; font-weight: 550; color: #e3d5b8; }
.day-scope-count,.day-assignment-note { font-size: 11px; color: #b3a181; }
.day-scope-control { display: flex; padding: 3px; border: 1px solid #5a482a; border-radius: 6px; background: #201d15; }
.day-scope-control button { background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; color: #b9a886; font-size: 11px; }
.day-scope-control button svg { width: 14px; height: 14px; }
.day-scope-control button:hover { color: #eed6a5; background: #2c2619; }
.day-scope-control button.active { color: #edd29a; border-color: #7b6033; background: #453820; }
.day-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 27px; }
.day-summary-item { border: 1px solid #50412a; border-radius: 7px; background: #222019; padding: 18px; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 87px; color: #c1a779; }
.day-summary-item:hover { border-color: #a1834a; background: #2a251a; }
.day-summary-item:disabled { opacity: 1; cursor: default; }
.day-summary-item:disabled:hover { border-color: #50412a; background: #222019; }
.day-summary-item:disabled>svg { visibility: hidden; }
.day-summary-icon { width: 34px; height: 34px; border-radius: 6px; background: #372e1c; color: #ccb078; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.day-summary-icon svg { width: 17px; height: 17px; }
.day-summary-content { display: grid; gap: 6px; flex: 1; }
.day-summary-value { font-size: 24px; font-weight: 500; line-height: 1; color: #f0dfbd; font-variant-numeric: tabular-nums; }
.day-summary-label { font-size: 11px; color: #c3b18e; }
.day-summary-item>svg { width: 14px; height: 14px; color: #8f794f; }
.day-summary-item.has-overdue { border-color: #79503b; background: #2b2119; }
.day-summary-item.has-overdue .day-summary-icon { background: #493024; color: #e5a78b; }
.day-summary-item.has-overdue .day-summary-value { color: #ecb29a; }
.day-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.day-work-grid.single-section { grid-template-columns: 1fr; }
.day-section { scroll-margin-top: 175px; }
.day-section-head { padding: 19px 21px 17px; background: #252118; border-bottom: 1px solid #524128; }
.day-section-head h2 { font-family: 'Cormorant SC', Georgia, serif; font-size: 23px; font-weight: 600; letter-spacing: .4px; color: #ecdbb5; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.day-section-head h2>svg { color: #b79a60; width: 17px; height: 17px; }
.day-section-head h2 .count-pill { margin-left: auto; }
.day-section-head p { font-size: 11px; color: #b5a281; line-height: 1.7; margin: 0; }
.day-overdue-section .day-section-head h2>svg { color: #d79d7d; }
.day-task { border: 0; border-bottom: 1px solid #41341f; background: #1e1c16; padding: 18px 20px; color: #dfcdab; width: 100%; display: flex; align-items: center; gap: 15px; text-align: left; }
.day-task:last-child { border-bottom: 0; }
.day-task:hover { background: #2b2519; }
.day-task-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day-task-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #f2e4c8; font-weight: 550; line-height: 1.6; }
.day-task-title .status-badge { font-size: 9px; font-weight: 400; padding: 3px 6px; }
.day-task-action { font-size: 12px; color: #c6b18b; line-height: 1.7; overflow-wrap: anywhere; }
.day-task-assignee { display: flex; align-items: center; gap: 5px; color: #a99671; font-size: 10px; }
.day-task-assignee svg { width: 12px; height: 12px; }
.day-task-timing { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; font-size: 11px; color: #d6bd8a; white-space: nowrap; }
.day-task-timing small { font-size: 10px; color: #a89570; font-weight: 400; }
.day-task-timing.date-overdue small { color: #ca9e83; }
.day-task-arrow { color: #ad8c4f; }
.day-task-arrow svg { width: 14px; height: 14px; }
.day-section-empty { display: flex; align-items: flex-start; gap: 13px; padding: 26px 21px 28px; }
.day-section-empty>svg { width: 20px; height: 20px; color: #b39d69; margin-top: 1px; }
.day-section-empty h3 { color: #d5c198; font-size: 12px; font-weight: 500; margin: 0 0 8px; }
.day-section-empty p { color: #ac9873; font-size: 11px; line-height: 1.7; margin: 0; }
.day-empty .empty-state { padding: 42px 25px; }
@media(max-width:1100px) {
  .day-summary { gap: 11px; }
  .day-summary-item { padding: 16px 13px; gap: 9px; }
  .day-summary-item>svg { display: none; }
  .day-task { padding: 17px; gap: 10px; }
  .day-task-timing { font-size: 10px; }
  .day-task-title { font-size: 12px; }
  .day-task-arrow { display: none; }
}
@media(max-width:800px) {
  .day-work-grid { grid-template-columns: 1fr; gap: 20px; }
  .day-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .day-summary-item { padding: 17px; }
  .day-summary-item>svg { display: block; }
  .day-section { scroll-margin-top: 160px; }
  .day-task-timing { font-size: 11px; }
  .day-task-title { font-size: 13px; }
  .day-task-arrow { display: block; }
}
@media(max-width:560px) {
  .day-heading { flex-wrap: wrap; align-items: flex-start; }
  .day-heading .heading-actions { width: 100%; }
  .day-toolbar { flex-wrap: wrap; gap: 14px; }
  .day-toolbar>div:first-child { flex: 1; flex-wrap: wrap; gap: 5px; flex-direction: column; }
  .day-scope-label { font-size: 12px; }
  .day-scope-count { font-size: 10px; }
  .day-scope-control button { padding: 8px 9px; font-size: 10px; }
  .day-scope-control button svg { width: 12px; height: 12px; }
  .day-summary { gap: 10px; }
  .day-summary-item { padding: 15px 11px; gap: 9px; }
  .day-summary-icon { width: 29px; height: 29px; }
  .day-summary-value { font-size: 23px; }
  .day-summary-label { font-size: 10px; line-height: 1.5; }
  .day-summary-item>svg { display: none; }
  .day-section-head { padding: 18px 17px 16px; }
  .day-section-head h2 { font-size: 22px; }
  .day-task { padding: 17px; gap: 11px; }
  .day-task-title { font-size: 12px; }
  .day-task-action { font-size: 11px; }
  .day-task-timing { white-space: normal; width: 100px; flex-shrink: 0; text-align: right; font-size: 10px; line-height: 1.5; }
  .day-task-timing small { font-size: 9px; }
  .day-task-arrow { display: none; }
  .day-section-empty { padding: 24px 17px; }
}

@media(min-width:1800px) {
  .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(max-width:1100px) {
  .header-content { padding: 14px 27px; }
  .main-nav { padding: 0 27px; }
  .main { padding: 27px 27px 36px; }
  .workspace-label { display: none; }
  .metrics { gap: 11px; }
  .metric { padding: 18px 16px; }
  .detail-grid { grid-template-columns: minmax(0,1.2fr) minmax(300px,1fr); gap: 18px; }
  .auth-main { gap: 38px; width: calc(100% - 70px); }
  .auth-content { padding: 31px 28px 26px; }
  .auth-brand-panel h2 { font-size: 51px; }
}
@media(max-width:800px) {
  .header-content { padding: 13px 21px; min-height: 87px; }
  .brand-logo { width: 55px; height: 55px; }
  .wordmark { font-size: 27px; }
  .brand-tag { display: block; font-size: 8px; letter-spacing: 1.8px; }
  .main-nav { padding: 0 21px; gap: 2px; flex-wrap: nowrap; }
  .nav-link { min-height: 46px; padding: 0 12px; font-size: 11px; gap: 7px; }
  .nav-link:first-child { margin-left: -12px; }
  .main { padding: 24px 21px 32px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .metric { min-height: 124px; padding: 17px 19px; }
  .metric-value { font-size: 29px; }
  .metric-footer { font-size: 11px; }
  .detail-grid { grid-template-columns: 1fr; }
  .dashboard-heading { padding: 25px; min-height: 151px; background-size: auto, 460px auto; }
  .dashboard-heading h1 { font-size: 36px; }
  .page-heading h1 { font-size: 33px; }
  .section-title { font-size: 22px; }
  .pipeline-subtitle { display: none; }
  .auth-header { padding: 22px 27px; }
  .auth-main { grid-template-columns: 1fr; width: min(480px,calc(100% - 40px)); margin: 22px auto 43px; gap: 0; }
  .auth-brand-panel { display: none; }
  .auth-content { max-width: none; margin: 0; padding: 35px 31px 29px; }
  .auth-shell:before { background-position: center; opacity: .38; }
  .auth-footer { margin: 0 27px; }
  .workspace-footer { margin: 0 21px; padding: 19px 0; }
}
@media(max-width:560px) {
  .header-content { min-height: 82px; padding: 12px 17px; gap: 10px; }
  .brand { gap: 11px; }
  .brand-logo { width: 49px; height: 49px; }
  .wordmark { font-size: 24px; letter-spacing: 1px; }
  .brand-tag { font-size: 7px; letter-spacing: 1.8px; }
  .brand-copy { gap: 6px; }
  .account-name,.account-role,.account summary>svg { display: none; }
  .header-right { gap: 0; }
  .avatar { width: 33px; height: 33px; font-size: 10px; }
  .main-nav { padding: 0 17px; }
  .nav-link { font-size: 10px; padding: 0 11px; min-height: 43px; }
  .nav-link svg { width: 13px; height: 13px; }
  .main { padding: 21px 16px 32px; }
  .dashboard-heading { align-items: flex-start; gap: 17px; flex-direction: column; padding: 21px; background-position: center,right center; }
  .dashboard-heading .heading-actions { align-self: flex-start; }
  .dashboard-heading h1 { font-size: 36px; }
  .page-heading { padding-bottom: 20px; margin-bottom: 21px; gap: 13px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { font-size: 11px; }
  .page-eyebrow { font-size: 8px; letter-spacing: 2px; }
  .heading-actions .btn { font-size: 11px; padding: 9px 11px; }
  .metrics { gap: 10px; margin-bottom: 28px; }
  .metric { padding: 16px 13px; min-height: 126px; }
  .metric-label { font-size: 11px; }
  .metric-icon svg { width: 15px; height: 15px; }
  .metric-value { font-size: 27px; }
  .metric-footer { font-size: 10px; line-height: 1.55; margin-top: 10px; }
  .section-title { font-size: 21px; letter-spacing: .4px; }
  .section-title svg { width: 15px; height: 15px; }
  .section-head .quiet-link { font-size: 11px; }
  .list-toolbar { padding: 13px; }
  .filter-controls { gap: 8px; }
  .filter-controls select { min-width: calc(50% - 4px); font-size: 10px; }
  .detail-heading { align-items: flex-start; }
  .detail-heading h1 { font-size: 32px; }
  .card-head { padding: 16px 17px; }
  .card-head h2 { font-size: 20px; }
  .card-body { padding: 21px 17px; }
  .info-grid { gap: 21px 17px; }
  .info-item label { font-size: 9px; }
  .info-item p { font-size: 12px; }
  .note-time { font-size: 9px; }
  .notes-list { padding: 0 17px; }
  .modal-head { padding: 20px; }
  .modal-head h2 { font-size: 26px; }
  .modal-head p { font-size: 11px; }
  .modal-body { padding: 22px 20px; }
  .modal-form-footer { margin: 24px -20px -22px; padding: 16px 20px; }
  .auth-header { padding: 19px 21px; }
  .auth-header .brand-logo { width: 44px; height: 44px; }
  .auth-header-brand { gap: 10px; }
  .auth-header .wordmark { font-size: 23px; }
  .auth-label { display: none; }
  .auth-main { margin-top: 24px; }
  .auth-content { padding: 29px 23px 25px; }
  .auth-content h1 { font-size: 33px; }
  .auth-footer { margin: 0 21px; font-size: 8px; }
  .workspace-footer { font-size: 9px; margin: 0 16px; }
}
