:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #272a2c;
  background: #f1f2f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #4b4f52;
  --navy-dark: #292c2e;
  --blue: #686d70;
  --blue-soft: #eceeef;
  --orange: #e37532;
  --green: #3f7458;
  --ink: #272a2c;
  --muted: #6d7275;
  --line: #dcdfe1;
  --panel: #ffffff;
  --background: #f1f2f3;
  --danger: #a33a3a;
  --shadow: 0 16px 45px rgba(35, 38, 40, 0.09);
}
.people-kind-tabs { display:flex; gap:.45rem; flex-wrap:wrap; margin-bottom:1rem; }
.people-kind-tabs button { display:flex; align-items:center; gap:.55rem; border:1px solid #d8d9d7; border-radius:999px; background:#fff; padding:.55rem .85rem; color:#434744; }
.people-kind-tabs button.active { background:#3f4441; color:#fff; border-color:#3f4441; }
.people-kind-tabs small { opacity:.72; }
.person-profile-notes { margin:0 1.1rem 1.1rem; padding:.8rem; background:#f4f5f4; border-radius:8px; white-space:pre-wrap; }
.company-dashboard { display:grid; gap:1rem; }
.company-dashboard:has(.overview-group) { gap:1.65rem; }
.overview-group { min-width:0; padding:1rem; border:1px solid #e0e5e2; border-radius:15px; background:#f7f9f8; }
.overview-group-heading { display:flex; align-items:baseline; justify-content:space-between; gap:.4rem 1rem; flex-wrap:wrap; margin:0 0 .9rem; }
.overview-group-heading h2 { margin:0; color:#283b32; font-size:1.05rem; font-weight:750; }
.overview-group-heading p { margin:0; color:#65716a; font-size:.75rem; }
.overview-attention { background:#f5f7f6; border-color:#dfe5e1; }
.overview-attention .overview-group-heading h2 { color:#485c51; }
.overview-attention-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.overview-planning { background:#f3f7fa; border-color:#dce5eb; }
.overview-planning .overview-group-heading h2 { color:#36566a; }
.overview-recent { background:transparent; }
.company-dashboard .overview-group .dashboard-panel { min-width:0; box-shadow:none; }
.company-dashboard .expense-table > div > span { display:flex; justify-content:space-between; gap:.2rem .5rem; flex-wrap:wrap; }
.company-dashboard .expense-table > div > span > b { float:none; margin-left:auto; }
.overview-attention .dashboard-panel > p { font-size:.76rem; line-height:1.45; }
.overview-attention .dashboard-activity > p { margin:.65rem 0 0; font-size:.8rem; }
@media(max-width:800px) {
  .overview-attention-grid { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .overview-group { padding:.7rem; border-radius:12px; }
  .company-dashboard:has(.overview-group) { gap:1.25rem; }
  .company-dashboard .dashboard-panel > header { flex-wrap:wrap; gap:.4rem; }
  .company-dashboard .dashboard-panel > header > span { flex-basis:100%; }
}
.dashboard-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.8rem; }
.dashboard-metrics article { background:#fff; border:1px solid #dedfdd; border-radius:14px; padding:1rem; box-shadow:0 3px 14px rgba(35,39,36,.04); }
.dashboard-metrics span { display:block; color:#707572; font-size:.78rem; }
.dashboard-metrics strong { display:block; font-size:1.35rem; margin:.35rem 0; }
.dashboard-metrics small { color:#858a87; }
.dashboard-metrics .positive strong { color:#2c7b4d; }
.dashboard-metrics .muted { background:#f4f4f3; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); gap:1rem; }
.dashboard-panel { background:#fff; border:1px solid #dedfdd; border-radius:14px; padding:1rem; }
.dashboard-panel > header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.dashboard-panel h2 { margin:.2rem 0; }
.dashboard-panel header > span { color:#7b807d; font-size:.78rem; }
.expense-table { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-top:1rem; }
.expense-table > div { background:#f6f6f5; border-radius:10px; padding:.8rem; }
.expense-table span,.expense-table small { display:block; margin-top:.4rem; color:#656a67; }
.expense-table span b { float:right; color:#292d2a; }
.dashboard-activity { display:grid; gap:.5rem; margin-top:1rem; }
.dashboard-activity > div { display:flex; justify-content:space-between; gap:1rem; border-bottom:1px solid #ececea; padding:.55rem 0; }
.dashboard-activity small { color:#7b807d; }
@media (max-width:1100px) { .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-columns { grid-template-columns:1fr; } }
@media (max-width:700px) { .dashboard-metrics,.expense-table { grid-template-columns:1fr; } }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
code { background: #edf2f5; border-radius: 5px; padding: 0.12rem 0.3rem; }
.centered-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle at top left, #fff 0, #f1f2f3 45%, #e2e4e5 100%);
}
.setup-card {
  width: min(560px, 100%);
  padding: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.setup-card h1 { margin: 0.3rem 0 1rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.setup-card p { color: var(--muted); line-height: 1.65; }
.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 8px;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loading-logo {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(55, 58, 60, 0.2); } }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.78fr) 1.22fr; background: white; }
.login-panel { align-self: center; width: min(440px, calc(100% - 4rem)); margin: 0 auto; padding: 3rem 0; }
.brand-lockup { display: flex; align-items: center; gap: 1rem; }
.brand-lockup h1 { margin: 0.1rem 0 0; font-size: 1.75rem; line-height: 1.04; }
.brand-lockup.compact strong { display: block; margin-top: 0.2rem; color: white; font-size: 0.78rem; line-height: 1.12; }
.brand-lockup.compact .eyebrow { color: #bfc2c4; }
.login-intro { margin: 2rem 0; color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 1.15rem; }
.login-form label, .job-form label { display: grid; gap: 0.42rem; color: #40515e; font-size: 0.82rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd6dc;
  border-radius: 9px;
  padding: 0.72rem 0.78rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(104, 109, 112, 0.14); }
textarea { resize: vertical; }
.primary-button, .secondary-button {
  border: 0;
  border-radius: 9px;
  padding: 0.78rem 1rem;
  font-weight: 800;
}
.primary-button { color: white; background: var(--orange); box-shadow: 0 7px 18px rgba(227, 117, 50, 0.2); }
.primary-button:hover:not(:disabled) { background: #ca6428; }
.secondary-button { color: var(--navy); background: var(--blue-soft); }
.security-note { margin-top: 1.25rem; color: #89959d; font-size: 0.78rem; }
.form-error, .form-success { margin: 0; padding: 0.72rem; border-radius: 8px; font-size: 0.84rem; }
.form-error { color: #842f2f; background: #fdeaea; }
.form-success { color: #235b3d; background: #e6f4eb; }
.login-art { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--navy-dark), var(--navy) 58%, #707477); }
.art-message { position: absolute; left: 11%; bottom: 13%; display: grid; gap: 1rem; color: white; }
.art-message span { color: #d0d2d3; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; }
.art-message strong { font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.art-message .brand-byline { margin-top: 0.5rem; color: #d0d2d3; font-size: 0.85rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 1.35rem; color: white; background: linear-gradient(180deg, var(--navy-dark), var(--navy)); }
.sidebar .brand-logo { width: 50px; height: 50px; border-radius: 7px; }
.side-nav { display: grid; gap: 0.28rem; margin-top: 1.45rem; }
.side-nav button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; padding: 0.65rem 0.78rem; color: #d5d7d8; text-align: left; border: 0; border-radius: 9px; background: transparent; }
.side-nav button.active { color: white; background: rgba(255,255,255,0.12); }
.side-nav button em { color: #afb2b4; font-size: 0.64rem; font-style: normal; text-transform: uppercase; }
.nav-group-label { margin: 0.8rem 0.75rem 0.18rem; color: #979b9e; font-size: 0.6rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.nav-group-label:first-child { margin-top: 0; }
.sidebar-footer { display: grid; gap: 0.22rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.13); }
.sidebar-footer small { overflow: hidden; color: #b4b7b9; text-overflow: ellipsis; }
.sidebar-footer button { width: max-content; margin-top: 0.7rem; padding: 0; color: #e3b79b; border: 0; background: transparent; }
.sidebar-footer-actions { display: flex; align-items: center; gap: 0.9rem; }
.sidebar-footer-actions button:first-child { color: #d7d9da; }
.workspace { min-width: 0; padding: 2rem clamp(1.2rem, 3vw, 3.2rem); }
.workspace-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.workspace-header h1 { margin: 0.25rem 0 0.35rem; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -0.035em; }
.workspace-header p:last-child { margin: 0; color: var(--muted); }
.header-actions { display: flex; gap: 0.65rem; }
.schedule-panel { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.schedule-toolbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem; border-bottom: 1px solid var(--line); }
.search-field { position: relative; flex: 1; }
.search-field span { position: absolute; top: 50%; left: 0.75rem; transform: translateY(-50%); color: #84929a; font-size: 1.15rem; }
.search-field input { padding-left: 2.25rem; }
.schedule-toolbar select { width: 180px; }
.result-count { min-width: 65px; color: var(--muted); font-size: 0.75rem; text-align: right; }
.schedule-table-wrap { overflow: auto; }
.schedule-table { width: 100%; min-width: 1240px; border-collapse: collapse; }
.schedule-table th { position: sticky; top: 0; z-index: 1; padding: 0.72rem 0.65rem; color: #62727c; background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 0.68rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.schedule-table td { max-width: 220px; padding: 0.7rem 0.65rem; border-bottom: 1px solid #e7edf0; font-size: 0.8rem; vertical-align: middle; }
.schedule-table th:nth-child(1), .schedule-table td:nth-child(1) { position: sticky; left: 0; z-index: 2; width: 165px; min-width: 165px; background: white; }
.schedule-table th:nth-child(2), .schedule-table td:nth-child(2) { position: sticky; left: 165px; z-index: 2; width: 245px; min-width: 245px; background: white; box-shadow: 5px 0 8px rgba(34, 42, 46, 0.05); }
.schedule-table th:nth-child(1), .schedule-table th:nth-child(2) { z-index: 4; background: #f7f9fa; }
.schedule-table tr.is-overdue td:nth-child(1), .schedule-table tr.is-overdue td:nth-child(2) { background: #fff0ef; }
.schedule-table tbody tr:hover td:nth-child(1), .schedule-table tbody tr:hover td:nth-child(2) { background: #f8fbfc; }
.schedule-table tbody tr.is-overdue:hover td:nth-child(1), .schedule-table tbody tr.is-overdue:hover td:nth-child(2) { background: #ffe7e5; }
.schedule-table tbody tr { transition: opacity 0.15s, background 0.15s; }
.schedule-table tbody tr:hover { background: #f8fbfc; }
.schedule-table tbody tr.is-saving { opacity: 0.58; }
.schedule-table tbody tr.is-overdue { background: #fff0ef; box-shadow: inset 4px 0 0 #c94d43; }
.schedule-table tbody tr.is-overdue:hover { background: #ffe7e5; }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table td strong, .client-name { display: block; font-weight: 750; }
.cell-subtitle, .job-number { display: block; margin-top: 0.2rem; color: #7c8991; font-size: 0.69rem; }
.job-number { color: var(--blue); font-weight: 700; }
.number-cell { text-align: right !important; font-variant-numeric: tabular-nums; }
.table-control, .status-select { min-width: 128px; padding: 0.46rem 0.5rem; border-radius: 7px; font-size: 0.75rem; }
.date-control { min-width: 132px; }
.status-select { color: #264a38; background: #edf6f0; border-color: #cce1d3; font-weight: 750; }
.notes-cell { min-width: 210px; }
.notes-control { width: 100%; min-width: 190px; min-height: 52px; padding: 0.46rem 0.5rem; border-radius: 7px; color: #465861; font-size: 0.75rem; line-height: 1.3; resize: vertical; }
.register-panel { overflow: hidden; margin-top: 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.register-toolbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem; border-bottom: 1px solid var(--line); }
.register-table-wrap { overflow: auto; }
.register-table { width: 100%; border-collapse: collapse; }
.register-table { min-width: 1020px; }
.register-table th { padding: 0.72rem 0.65rem; color: #62727c; background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 0.68rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.register-table td { padding: 0.72rem 0.65rem; border-bottom: 1px solid #e7edf0; font-size: 0.8rem; vertical-align: middle; }
.register-table tr.is-saving { opacity: 0.58; }
.register-table td strong { display: block; }
.record-link { width: 100%; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.record-link:hover strong { color: var(--blue); text-decoration: underline; }
.overdue-badge { display: inline-flex; width: fit-content; margin-top: 0.35rem; padding: 0.22rem 0.42rem; color: #8e302a; background: #ffdeda; border-radius: 999px; font-size: 0.62rem; font-weight: 900; }
.compact-button { padding: 0.55rem 0.7rem; font-size: 0.75rem; white-space: nowrap; }
.record-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.record-actions { min-width: 150px; }
.job-stage-menu { min-width: 175px; min-height: 42px; padding: 0.78rem 1rem; color: #34464f; background: white; border: 1px solid #cbd3d6; border-radius: 9px; font-size: 0.76rem; font-weight: 800; }
.record-workspace-actions .job-stage-menu { height: 42px; color: var(--navy); background: var(--blue-soft); border: 0; }
.field-help { color: var(--muted); font-size: 0.74rem; font-weight: 500; }
.directory-panel { margin-top: 1.4rem; }
.directory-toolbar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; padding: 0.75rem; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 18px rgba(35,38,40,0.04); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 0.85rem; }
.directory-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 1rem; color: var(--ink); text-align: left; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 18px rgba(35,38,40,0.04); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
button.directory-card:hover { transform: translateY(-1px); border-color: #b9bdc0; box-shadow: 0 9px 24px rgba(35,38,40,0.08); }
.directory-avatar { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: #676c6f; border-radius: 12px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.02em; }
.record-workspace { width: min(1280px, 100%); height: min(900px, 96vh); overflow: hidden; background: var(--background); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,0.3); }
.record-workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem; color: white; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.record-workspace-header h2 { margin: 0.2rem 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.record-workspace-header > div > span { color: #b3cfdd; font-size: 0.8rem; }
.record-workspace-actions { display: flex; align-items: center; gap: 0.65rem; }
.record-workspace-body { height: calc(100% - 140px); overflow: auto; padding: 1.35rem; }
.overview-detail-section { overflow:hidden; background:#fff; border:1px solid #dfe3e1; border-radius:13px; }
.overview-detail-section > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1rem; background:#f6f7f6; border-bottom:1px solid #e6e8e7; }
.overview-detail-section > header h3 { margin:.08rem 0 0; color:var(--navy); font-size:.95rem; }
.overview-detail-section > header > span { max-width:48%; color:var(--muted); font-size:.66rem; line-height:1.4; text-align:right; }
.workspace-content-card { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 6px 20px rgba(35,38,40,0.05); }
.workspace-content-card h3 { margin: 0.3rem 0 0.8rem; font-size: 1.25rem; }
.workspace-content-card > p:not(.eyebrow):not(.field-help) { color: var(--muted); line-height: 1.55; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.72rem 0.82rem; background: #f2f5f5; border: 1px solid var(--line); border-radius: 9px; }
.document-actions { display: flex; justify-content: flex-end; gap: 0.55rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line); }
.document-toolbar .compact-button { padding: 0.5rem 0.65rem; }
.activity-list { display: grid; gap: 0.6rem; }
.activity-list article { display: grid; gap: 0.3rem; padding: 0.8rem; background: #f5f8f9; border-radius: 9px; }
.activity-list article strong { font-size: 0.76rem; }
.activity-list article span { color: var(--muted); font-size: 0.76rem; }
.empty-state { display: grid; justify-items: center; gap: 0.4rem; padding: 3rem 1rem; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(11, 32, 47, 0.42); backdrop-filter: blur(2px); }
.job-drawer { width: min(610px, 100%); height: 100%; overflow: auto; padding: 1.5rem; background: white; box-shadow: -20px 0 55px rgba(10, 29, 42, 0.2); }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0.15rem 0 0; font-size: 1.7rem; }
.icon-button { width: 38px; height: 38px; color: var(--muted); background: #eef3f5; border: 0; border-radius: 50%; font-size: 1.5rem; }
.job-form { padding: 1.25rem 0; }
.wide-field { grid-column: 1 / -1; }
.job-form h3 { margin: 0 0 0.85rem; font-size: 0.95rem; }
.brand-byline { display:block; margin-top:.22rem; color:#bfc2c4; font-size:.62rem; font-style:italic; letter-spacing:.015em; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 1rem; padding: 0.9rem 1rem; }
  .side-nav { display: flex; overflow: auto; margin: 0 0 0 auto; }
  .side-nav button { grid-template-columns: auto auto; white-space: nowrap; }
  .side-nav button em { display: none; }
  .nav-group-label { display: none; }
  .sidebar-footer { display: none; }
  .directory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .overview-detail-section > header { align-items: flex-start; flex-direction: column; }
  .overview-detail-section > header > span { max-width: none; text-align: left; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { width: min(440px, calc(100% - 2rem)); }
  .sidebar .brand-lockup > div:last-child { display: none; }
  .workspace { padding: 1.2rem 0.8rem; }
  .workspace-header { align-items: stretch; flex-direction: column; gap: 1rem; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .schedule-toolbar { align-items: stretch; flex-direction: column; }
  .register-toolbar { align-items: stretch; flex-direction: column; }
  .schedule-toolbar select { width: 100%; }
  .result-count { width: 100%; text-align: left; }
  .wide-field { grid-column: auto; }
  .record-workspace { width: 100%; height: 100vh; border-radius: 0; }
  .record-workspace-header { align-items: flex-start; }
  .record-workspace-actions { flex-wrap: wrap; }
  .record-workspace-body { height: calc(100% - 138px); padding: 0.8rem; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .directory-toolbar .result-count { width: 100%; text-align: left; }
  .document-toolbar { align-items: flex-start; flex-direction: column; }
  .document-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
.workspace{padding:1.35rem clamp(1rem,2.2vw,2.4rem)}
.workspace-header{gap:1rem}.workspace-header h1{margin:.15rem 0 .2rem;font-size:clamp(1.5rem,2.4vw,2rem)}.workspace-header>div>p:last-child{font-size:.82rem}
.primary-button,.secondary-button{min-height:34px;padding:.52rem .72rem}
.schedule-panel,.register-panel{border-radius:11px}.schedule-table th,.register-table th{padding:.52rem .55rem}.schedule-table td,.register-table td{padding:.5rem .55rem}
.record-actions{justify-content:flex-end}
.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.dashboard-metrics article{padding:.72rem .8rem;border-radius:10px}.dashboard-metrics strong{margin:.22rem 0;font-size:1.12rem}.dashboard-metrics span{font-size:.7rem}.dashboard-panel{padding:.78rem;border-radius:11px}.dashboard-panel h2{font-size:1.05rem}
.directory-grid{grid-template-columns:1fr;gap:.4rem}.directory-card{grid-template-columns:36px minmax(0,1fr) auto;gap:.65rem;min-height:58px;padding:.55rem .7rem;border-radius:9px;box-shadow:none}.directory-avatar{width:36px;height:36px;border-radius:9px;font-size:.64rem}.directory-toolbar{margin-bottom:.65rem;padding:.55rem;border-radius:9px;box-shadow:none}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.record-workspace-header h2{margin:.08rem 0;font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.15}.record-workspace-header .eyebrow{margin:0 0 .05rem;font-size:.58rem}.record-workspace-actions{gap:.4rem}.record-workspace-actions .secondary-button,.record-workspace-actions .primary-button{min-height:32px;padding:.38rem .65rem}.overview-read-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:.7rem;border-bottom:1px solid var(--line)}.overview-read-heading h3{margin:.08rem 0 0;font-size:1.05rem}.overview-read-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:.35rem 0 0}.overview-read-grid>div{min-width:0;padding:.65rem .75rem;border-bottom:1px solid #edf0f1}.overview-read-grid dt{color:#718088;font-size:.62rem;font-weight:850;letter-spacing:.055em;text-transform:uppercase}.overview-read-grid dd{margin:.18rem 0 0;color:var(--navy);font-size:.86rem;font-weight:750;overflow-wrap:anywhere}.overview-read-grid dd small{display:block;margin-top:.16rem;color:#718088;font-size:.66rem;font-weight:600}
@media(max-width:900px){.overview-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.record-actions{min-width:54px;justify-content:center}.schedule-toolbar{flex-wrap:wrap}.schedule-toolbar .result-count{margin-left:auto}
.overview-inline-actions{display:flex;align-items:center;gap:.4rem}
.office-mobile-header,.office-mobile-backdrop,.office-mobile-drawer-close{display:none}
@media (max-width:767px){
  .app-shell{display:block;min-width:0;overflow-x:hidden}
  .app-shell>.office-mobile-header{position:sticky;top:0;z-index:90;display:grid;grid-template-columns:44px 34px minmax(0,1fr) auto auto;align-items:center;gap:.45rem;min-height:58px;padding:max(.4rem,env(safe-area-inset-top)) max(.55rem,env(safe-area-inset-right)) .4rem max(.55rem,env(safe-area-inset-left));color:#fff;background:#303538;border-bottom:1px solid #454b4e;box-shadow:0 3px 12px rgba(17,22,20,.2)}
  .office-mobile-header .brand-logo{width:32px;height:32px;border-radius:5px}
  .office-mobile-header>div{display:grid;min-width:0;line-height:1.1}.office-mobile-header small{overflow:hidden;color:#c5cbcd;font-size:.56rem;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.office-mobile-header strong{overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
  .office-mobile-menu{min-width:44px;min-height:44px;padding:0;color:#fff;background:transparent;border:0;border-radius:8px;font-weight:850}.office-mobile-menu{font-size:1.25rem}
  .app-shell>.office-mobile-backdrop{position:fixed;inset:0;z-index:98;display:block;visibility:hidden;padding:0;background:rgba(12,16,15,.5);border:0;opacity:0;transition:opacity .18s ease,visibility .18s}.app-shell>.office-mobile-backdrop.visible{visibility:visible;opacity:1}
  .app-shell>.sidebar{position:fixed;inset:0 auto 0 0;z-index:99;width:min(86vw,330px);height:100dvh;display:flex;align-items:stretch;flex-direction:column;gap:.7rem;overflow-y:auto;padding:max(1rem,env(safe-area-inset-top)) .8rem max(1rem,env(safe-area-inset-bottom)) max(.8rem,env(safe-area-inset-left));transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 28px rgba(0,0,0,.25)}
  .app-shell>.sidebar.mobile-open{transform:translateX(0)}
  .app-shell>.sidebar .brand-lockup>div:last-child{display:block}.app-shell>.sidebar .brand-logo{width:44px;height:44px}.app-shell>.sidebar .side-nav{display:grid;width:100%;margin:0;overflow:visible}.app-shell>.sidebar .side-nav .nav-group-label{display:block;margin:.6rem .6rem .1rem}.app-shell>.sidebar .side-nav button{width:100%;min-height:44px;grid-template-columns:1fr auto;white-space:normal}.app-shell>.sidebar .side-nav button em{display:inline-flex}
  .app-shell>.sidebar .sidebar-footer{display:grid;margin-top:auto;padding-top:1rem}.app-shell>.sidebar .sidebar-footer-actions{display:grid;gap:.35rem;margin-top:.45rem}.app-shell>.sidebar .sidebar-footer-actions button{min-height:44px;margin:0;text-align:left}.app-shell>.sidebar .sidebar-footer-actions button:last-child{margin-top:.5rem;padding-top:.7rem;border-top:1px solid rgba(255,255,255,.13);color:#e3b79b}
  .office-mobile-drawer-close{position:absolute;top:max(.65rem,env(safe-area-inset-top));right:.65rem;display:block;width:44px;height:44px;color:#fff;background:transparent;border:0;border-radius:8px;font-size:1.5rem}
  .app-shell>.workspace{min-width:0;padding:.75rem .65rem calc(1.2rem + env(safe-area-inset-bottom))}
  .app-shell .workspace-header{gap:.6rem;margin-bottom:.75rem}.app-shell .workspace-header h1{font-size:1.45rem}.app-shell .workspace-header>div>p:last-child{font-size:.76rem;line-height:1.4}.app-shell .header-actions{display:flex;flex-wrap:wrap;gap:.4rem}.app-shell .header-actions>*{min-height:44px;flex:1 1 145px}.app-shell button,.app-shell summary,.app-shell select,.app-shell input[type=checkbox]{touch-action:manipulation}
  .app-shell .schedule-toolbar,.app-shell .register-toolbar,.app-shell .directory-toolbar{gap:.45rem}.app-shell .schedule-toolbar>*,.app-shell .register-toolbar>*,.app-shell .directory-toolbar>*{min-height:44px}.app-shell .result-count{min-height:0}
  .app-shell .schedule-table-wrap,.app-shell .register-table-wrap{overflow:visible}.app-shell .schedule-table,.app-shell .register-table{display:block;min-width:0}.app-shell .schedule-table thead,.app-shell .register-table thead{display:none}.app-shell .schedule-table tbody,.app-shell .register-table tbody{display:grid;gap:.6rem;padding:.55rem}.app-shell .schedule-table tr,.app-shell .register-table tr{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.75rem;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 8px rgba(28,35,32,.05)}.app-shell .schedule-table td,.app-shell .register-table td{display:block;min-width:0;padding:0;border:0}.app-shell .schedule-table td:before,.app-shell .register-table td:before{display:block;margin-bottom:.15rem;color:#74807b;font-size:.56rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.app-shell .schedule-table td:nth-child(1),.app-shell .schedule-table td:nth-child(2),.app-shell .schedule-table td:nth-child(9),.app-shell .register-table td:nth-child(1),.app-shell .register-table td:nth-child(2){grid-column:1/-1}.app-shell .schedule-table td:nth-child(1):before{content:'Client'}.app-shell .schedule-table td:nth-child(2):before{content:'Job'}.app-shell .schedule-table td:nth-child(3):before{content:'Allocated to'}.app-shell .schedule-table td:nth-child(4):before{}.app-shell .schedule-table td:nth-child(5):before{content:'Start'}.app-shell .schedule-table td:nth-child(6):before{content:'Finish'}.app-shell .schedule-table td:nth-child(7):before{content:'Project manager'}.app-shell .schedule-table td:nth-child(8):before{content:'Status'}.app-shell .schedule-table td:nth-child(9):before{content:'Notes'}.app-shell .register-table td:nth-child(1):before{content:'Client'}.app-shell .register-table td:nth-child(2):before{content:'Record'}.app-shell .register-table td:nth-child(3):before{content:'Type / size'}.app-shell .register-table td:nth-child(4):before{content:'Status'}.app-shell .register-table td:nth-child(5):before{content:'PO / updated'}.app-shell .register-table td:nth-child(6){position:absolute;right:.5rem;top:.5rem}.app-shell .register-table td:nth-child(6):before{display:none}.app-shell .schedule-table input,.app-shell .schedule-table select,.app-shell .schedule-table textarea,.app-shell .register-table select{width:100%;max-width:none;min-height:44px}.app-shell .record-link{width:100%;padding-right:2.5rem}.app-shell .record-workspace-header h2{font-size:1rem}.app-shell .record-workspace-header>div>span{display:block;max-width:58vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-shell .record-workspace-actions{gap:.25rem}.app-shell .record-workspace-body{padding:.65rem}
  .app-shell .directory-grid{grid-template-columns:1fr;gap:.5rem}.app-shell .directory-card{min-height:72px;padding:.65rem}.app-shell input,.app-shell select,.app-shell textarea{font-size:16px}
}
@media (max-width:380px){.app-shell .schedule-table tr,.app-shell .register-table tr{grid-template-columns:1fr}.app-shell .schedule-table td{grid-column:1!important}.app-shell .office-mobile-header{grid-template-columns:44px 30px minmax(0,1fr) auto}}
.login-page{background:radial-gradient(ellipse at 12% 5%,#fff5e9,transparent 50%),#f4f6f6}.login-panel{padding:2.5rem 0}.login-page .brand-lockup{padding-bottom:1.5rem;border-bottom:1px solid #dbe1e2}.login-page .login-form{padding:1.75rem;background:#ffffffc9;border:1px solid #e2e6e8;border-radius:18px;box-shadow:0 12px 35px #24354008}.login-page .login-art{background:radial-gradient(ellipse at 85% 12%,#9a593a70,transparent 58%),linear-gradient(140deg,#20282c,#39464b 70%,#5c6668)}.login-art::after{content:"";position:absolute;right:-18%;top:-12%;width:75%;height:120%;border-left:1px solid #ffffff25;transform:rotate(28deg);background:linear-gradient(90deg,#ffffff08,transparent)}.login-page .art-message{z-index:1;gap:1.75rem}.login-page .art-message>span{border-left:3px solid #ff812d;padding-left:12px;letter-spacing:.12em}.login-page .security-note{line-height:1.6}@media(max-width:600px){.login-page .login-panel{width:calc(100% - 36px)}.login-page .login-form{padding:1.25rem}}
.drawer-backdrop:has(#new-job-title) { z-index:120; }.workspace-header{padding-right:70px}.workspace-header{padding-right:0}
@media(max-width:767px){
  .app-shell>.office-mobile-header{position:relative;top:auto;z-index:auto;grid-template-columns:44px 32px minmax(0,1fr) auto auto;}
  .app-shell>.workspace{padding-bottom:calc(1.2rem + env(safe-area-inset-bottom));}
  .app-shell .record-workspace-header>div>span{white-space:normal;max-width:none;}
  .app-shell>.sidebar{overscroll-behavior:contain;}
  .app-shell>.sidebar .sidebar-footer{flex-shrink:0;}
}
@media (min-width:768px) and (max-width:1100px) and (orientation:portrait){
 .app-shell{display:block;min-width:0}
  .app-shell>.office-mobile-header{position:sticky;top:0;z-index:90;display:grid;grid-template-columns:44px 34px minmax(0,1fr) auto auto;align-items:center;gap:.45rem;min-height:58px;padding:max(.4rem,env(safe-area-inset-top)) max(.55rem,env(safe-area-inset-right)) .4rem max(.55rem,env(safe-area-inset-left));color:#fff;background:#303538;border-bottom:1px solid #454b4e;box-shadow:0 3px 12px rgba(17,22,20,.2)}
  .office-mobile-header .brand-logo{width:32px;height:32px;border-radius:5px}
  .office-mobile-header>div{display:grid;min-width:0;line-height:1.1}.office-mobile-header small{overflow:hidden;color:#c5cbcd;font-size:.56rem;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.office-mobile-header strong{overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
  .office-mobile-menu{min-width:44px;min-height:44px;padding:0;color:#fff;background:transparent;border:0;border-radius:8px;font-weight:850}.office-mobile-menu{font-size:1.25rem}
  .app-shell>.office-mobile-backdrop{position:fixed;inset:0;z-index:98;display:block;visibility:hidden;padding:0;background:rgba(12,16,15,.5);border:0;opacity:0;transition:opacity .18s ease,visibility .18s}.app-shell>.office-mobile-backdrop.visible{visibility:visible;opacity:1}
  .app-shell>.sidebar{position:fixed;inset:0 auto 0 0;z-index:99;width:min(86vw,330px);height:100dvh;display:flex;align-items:stretch;flex-direction:column;gap:.7rem;overflow-y:auto;padding:max(1rem,env(safe-area-inset-top)) .8rem max(1rem,env(safe-area-inset-bottom)) max(.8rem,env(safe-area-inset-left));transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 28px rgba(0,0,0,.25)}
  .app-shell>.sidebar.mobile-open{transform:translateX(0)}
  .app-shell>.sidebar .brand-lockup>div:last-child{display:block}.app-shell>.sidebar .brand-logo{width:44px;height:44px}.app-shell>.sidebar .side-nav{display:grid;width:100%;margin:0;overflow:visible}.app-shell>.sidebar .side-nav .nav-group-label{display:block;margin:.6rem .6rem .1rem}.app-shell>.sidebar .side-nav button{width:100%;min-height:44px;grid-template-columns:1fr auto;white-space:normal}.app-shell>.sidebar .side-nav button em{display:inline-flex}
  .app-shell>.sidebar .sidebar-footer{display:grid;margin-top:auto;padding-top:1rem}.app-shell>.sidebar .sidebar-footer-actions{display:grid;gap:.35rem;margin-top:.45rem}.app-shell>.sidebar .sidebar-footer-actions button{min-height:44px;margin:0;text-align:left}.app-shell>.sidebar .sidebar-footer-actions button:last-child{margin-top:.5rem;padding-top:.7rem;border-top:1px solid rgba(255,255,255,.13);color:#e3b79b}
  .office-mobile-drawer-close{position:absolute;top:max(.65rem,env(safe-area-inset-top));right:.65rem;display:block;width:44px;height:44px;color:#fff;background:transparent;border:0;border-radius:8px;font-size:1.5rem}
 .app-shell>.office-mobile-header{position:relative;top:auto}
 .app-shell>.workspace{min-width:0;padding:1rem}
 .app-shell .workspace-header{margin-bottom:1rem}
}
@media(max-width:767px){
  .app-shell .schedule-panel{margin-inline:-.65rem;border-radius:0}
  .app-shell .schedule-panel .schedule-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:.55rem;gap:.4rem}
  .app-shell .schedule-panel .schedule-toolbar .search-field{grid-column:1/-1;min-width:0}
  .app-shell .schedule-panel .schedule-toolbar select{width:100%;min-width:0}
  .app-shell .schedule-panel .schedule-toolbar .result-count{grid-column:1;margin:0;align-self:center;font-size:.68rem}
  .app-shell .schedule-panel .schedule-toolbar .compact-button{grid-column:2;grid-row:2/4}
  .app-shell .schedule-panel .schedule-table-wrap{overflow:visible}
}
@media (max-width:767px) {
  .app-shell > .office-mobile-header {
    position: relative;
    top: auto;
    z-index: auto;
  }
}
