/* Operate surfaces: quiet studio light, ink navigation, amber task accent. */
body { font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; }
::selection { background: #f4d68e; color: #252d27; }
input, textarea { caret-color: var(--md-primary); }
:focus-visible { outline: 3px solid var(--md-primary); outline-offset: 3px; }
h1 { font-size: 32px; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 16px; font-weight: 650; }
.text-muted, .card-meta, .card-address { color: var(--md-on-surface-variant); }
.sidebar { width: 240px; padding-top: 32px; background: var(--studio-nav); border: 0; color: var(--studio-nav-text); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #546050 transparent; }
.brand { color: #fff; padding: 0 24px 28px; font-size: 23px; letter-spacing: -.04em; }
.brand-mark { background: var(--accent); color: #282d22; border-radius: 12px; }
.brand small { color: #b5c0b3; letter-spacing: .02em; font-size: 11px; }
.nav-caption { color: #a8b5a5; font-size: 10px; padding: 12px 24px 8px; }
.sidebar-menu { padding: 8px 14px; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu li a { min-height: 44px; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--studio-nav-text); }
.sidebar-menu li a:hover { background: #354035; color: #fff; }
.sidebar-menu li a.active { background: #f4bb50; color: #2c291b; font-weight: 650; }
.sidebar-menu .icon { width: 19px; height: 19px; }
.sidebar-footer { padding: 18px 24px; border-color: #445043; }
.sidebar-footer p, .sidebar-footer p span { color: #a8b5a5; font-size: 11px; }
.catalog-nav { min-height: 42px; font-size: 12px; color: var(--studio-nav-text); text-decoration: none; }
.catalog-nav:hover { color: #fff; }
.catalog-nav .icon { width: 17px; height: 17px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #9cc5a2; border-radius: 50%; margin-right: 6px; }
.main-content { margin-left: 240px; width: calc(100% - 240px); padding: 0 36px 24px; max-width: 1760px; }
.workspace-bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); color: var(--md-on-surface-variant); font-size: 12px; margin-bottom: 32px; }
.workspace-bar a { text-decoration: none; }
.workspace-date { text-transform: capitalize; }
.workspace-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--md-on-surface-variant); }
.workspace-footer a { text-decoration: none; }
.workspace-label { display: none; }
.page-header { margin-bottom: 26px; align-items: center; gap: 20px; }
.page-header p { margin-top: 8px; max-width: 65ch; font-size: 14px; }
.btn { min-height: 44px; padding: 10px 17px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: none; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.btn-primary { background: var(--accent); color: #30220b; border: 1px solid #d89a29; }
.btn-primary:hover { background: #edac30; color: #30220b; }
.btn-outline { background: var(--md-surface-container-low); border: 1px solid #ced4c7; color: var(--md-on-surface); }
.btn-outline:hover { background: #f0f3eb; border-color: #aab4a4; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.icon-button { width: 44px; height: 44px; min-width: 44px; border-radius: 8px; }
button:disabled { cursor: not-allowed; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--md-surface-container-low); padding: 24px; margin-bottom: 24px; box-shadow: none; }
.panel > .text-muted { margin-top: 8px; margin-bottom: 18px; max-width: 75ch; }
.section-title { margin-bottom: 20px; }
.section-title a { color: var(--studio-green); font-size: 12px; font-weight: 600; text-decoration: none; }
.welcome-strip { position: relative; background: #eeeede; border: 1px solid #dfe2d0; border-radius: 12px; min-height: 150px; padding: 26px 28px; margin-bottom: 24px; overflow: hidden; }
.welcome-strip h2 { font-size: 23px; max-width: 550px; margin: 6px 0; }
.welcome-strip p { max-width: 64ch; color: #535d49; font-size: 13px; }
#todayLabel { color: #546344; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.welcome-strip .btn { flex-shrink: 0; background: transparent; border-color: #b5be9d; }
.metric-grid { gap: 0; margin-bottom: 28px; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.metric { background: transparent; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 22px 24px; min-height: 132px; }
.metric:last-child { border-right: 0; }
.metric .icon { color: #78816c; width: 18px; height: 18px; }
.metric-label { color: #596251; font-size: 12px; }
.metric-value { font-size: 32px; line-height: 1.3; margin: 8px 0 4px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric-note { color: #626b5b; font-size: 11px; }
.dashboard-columns { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; }
.dashboard-columns > * { min-width: 0; }
.dashboard-priority .panel { min-height: 260px; }
.schedule-row { background: #fff; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 0; }
.schedule-row:hover { background: #f7f8f3; }
.date-tile { background: #f3ead6; border-radius: 8px; font-variant-numeric: tabular-nums; }
.attention-links { gap: 0; }
.attention-links a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.attention-links a:hover { color: var(--md-primary); }
.stage-overview { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--border); }
.stage-overview a { padding: 16px 12px; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; font-size: 12px; min-height: 90px; color: #535d49; }
.stage-overview a strong { font-size: 23px; color: #2e392b; font-variant-numeric: tabular-nums; }
.stage-overview a:hover { background: #f6f7ef; }
.action-grid { gap: 0; }
.action-grid > * { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); padding: 16px 8px; min-height: 100px; background: transparent; }
.action-grid strong { font-size: 13px; }
.action-grid span { font-size: 11px; color: #626b5b; }
.action-grid .icon { color: #677c58; }
.recent-grid { grid-template-columns: 1fr; gap: 0; }
.recent-card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 0; background: transparent; }
.recent-card strong { font-size: 13px; }
.toolbar { gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; align-items: end; }
.toolbar label, .form-grid label { color: #535d49; font-size: 12px; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { border: 1px solid #cbd1c5; background: #fff; color: var(--md-on-surface); border-radius: 7px; min-height: 42px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #6c7465; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--md-primary); box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--md-primary); width: 18px; height: 18px; }
.chip { border: 1px solid #d7ddcf; background: #fff; color: #515d48; min-height: 36px; border-radius: 7px; font-size: 12px; }
.chip.active { color: #fff; background: #465e39; border-color: #465e39; }
.client-card, .order-card, .work-card, .team-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: none; padding: 22px; }
.client-card:hover, .work-card:hover { border-color: #b8c3ac; box-shadow: 0 5px 16px rgb(33 43 28 / 4%); }
.card-labels { gap: 6px; }
.badge { border-radius: 5px; background: #f0f2eb; color: #526047; font-size: 11px; font-weight: 500; padding: 4px 8px; }
.badge.current, .badge.upcoming, .badge.selected { background: #f8e9c7; color: #6c480e; }
.badge.worked, .badge.completed { background: #e6efe5; color: #31583a; }
.badge.past { background: #f0f1ec; color: #626c5b; }
.card-actions { padding-top: 14px; border-top: 1px solid var(--border); margin-top: 18px; }
.work-facts { background: #f6f7f2; border-radius: 8px; }
.stage-strip { background: #eef2e7; border-radius: 7px; }
.data-table { font-size: 13px; }
.data-table th { background: #f2f4ed; font-size: 12px; color: #515d48; font-weight: 600; padding: 14px 16px; }
.data-table td { padding: 14px 16px; border-color: var(--border); font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: #f8f9f4; }
dialog { border: 1px solid #d9ded0; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgb(14 27 12 / 20%); }
dialog::backdrop { background: var(--veil); }
.dialog-bar { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.eyebrow, .workspace-label, .dialog-bar > .eyebrow { display: none; }
.dialog-actions { border-top: 1px solid var(--border); padding-top: 18px; }
.notice { background: #f5f0df; border: 1px solid #e4d9b8; border-radius: 10px; padding: 18px; color: #5e512f; }
.notice h2 { font-size: 16px; }
.notice p { max-width: 75ch; }
.empty-state { background: #fafbf7; border: 1px dashed #cbd3c0; border-radius: 9px; min-height: 140px; padding: 28px 20px; color: #626e57; }
.empty-state .icon { color: #7d8c6d; }
.pagination { padding: 20px 0; font-variant-numeric: tabular-nums; }
.toast { background: #2e3d29; color: #fff; border: 1px solid #556a49; border-radius: 10px; box-shadow: var(--shadow); }
.review-actionbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 0 20px; }
.review-actionbar label { display: flex; align-items: center; gap: 8px; }
.review-actionbar > span { margin-right: auto; font-size: 12px; color: #626e57; }
.review-list { margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.review-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 150px auto; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: 0; }
.review-main .text-link { font-weight: 650; text-align: left; }
.review-main p { margin-top: 6px; font-size: 12px; }
.confidence { display: flex; flex-direction: column; gap: 2px; }
.confidence strong { color: #5e703f; font-size: 23px; font-variant-numeric: tabular-nums; }
.confidence small { font-size: 11px; color: #626e57; font-weight: 400; }
.confidence span { font-size: 11px; color: #626e57; }
.backup-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.backup-row > div { margin-right: auto; min-width: 0; }
.backup-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.backup-row small { display: block; color: #626e57; font-size: 11px; margin-top: 3px; }
.source-form { border-top: 1px solid var(--border); padding: 20px 0; }
.source-form h3 { margin-bottom: 8px; }
.audit-row { border-bottom: 1px solid var(--border); }
.audit-row summary { display: flex; gap: 16px; padding: 16px 0; cursor: pointer; font-size: 12px; flex-wrap: wrap; }
.audit-row summary time { margin-left: auto; color: #626e57; }
.audit-detail { padding: 16px; background: #f5f7f0; font-size: 12px; overflow-wrap: anywhere; }
.audit-detail dl > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; padding: 5px 0; }
.audit-detail del { color: #7d6257; }
.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 24px; background: #e9ede2; }
.login-panel { width: min(100%,460px); padding: 44px; border: 1px solid #d4ddc8; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.login-brand { display: block; color: #52683f; font-size: 22px; font-weight: 700; text-decoration: none; margin-bottom: 44px; }
.login-panel h1 { font-size: 28px; }
.login-panel > p { margin: 12px 0 28px; color: #626e57; font-size: 13px; }
.mobile-header { background: #fff; border-color: var(--border); }
.search-field { flex: 1; }
@media (min-width: 1800px) { .main-content { padding-left: 56px; padding-right: 56px; } }
@media (max-width: 1100px) {
  .main-content { padding-left: 24px; padding-right: 24px; }
  .stage-overview { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-priority .panel { min-height: 0; }
  .review-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 12px; }
  .confidence { grid-column: 2; }
}
@media (max-width: 768px) {
  .sidebar { width: 260px; }
  .main-content { margin-left: 0; width: 100%; padding: 0 20px 24px; }
  .workspace-bar { min-height: 48px; margin-bottom: 24px; }
  .workspace-bar a { display: none; }
  .workspace-date { font-size: 11px; }
  h1 { font-size: 26px; }
  .page-header { align-items: flex-start; }
  .welcome-strip { padding: 22px; }
  .welcome-strip h2 { font-size: 20px; }
  .metric { padding: 18px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metric-value { font-size: 27px; }
  .panel { padding: 20px; }
  .stage-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .toolbar { padding: 16px; }
  .backup-row { flex-wrap: wrap; }
  .backup-row > div { flex-basis: 100%; }
  .review-row { padding: 18px 14px; }
  .review-row > .btn { grid-column: 3; grid-row: 2; }
  .confidence { flex-direction: row; align-items: center; gap: 10px; }
  .confidence span { max-width: 100px; }
  .audit-detail dl > div { grid-template-columns: 1fr; gap: 0; }
  .workspace-footer { font-size: 10px; }
}
@media (max-width: 480px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .page-header { gap: 16px; }
  .page-header > .btn { align-self: flex-start; }
  .stage-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome-strip .btn { width: 100%; }
  .review-actionbar { gap: 10px; }
  .review-actionbar .btn { flex: 1; }
  .review-actionbar > span { margin-left: auto; margin-right: 0; }
  .login-panel { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
