@charset "UTF-8";
:root {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #25364b; background: #f4f6f9; font-synthesis: none; text-rendering: optimizeLegibility;
  --navy: #172c48; --navy-light: #223e61; --blue: #2864d7; --blue-soft: #edf3ff;
  /* Brand green is reserved for navigation and login branding; content keeps its neutral/blue palette. */
  --brand-surface: #073f39; --brand-hover: #104f46; --brand-active: #146653; --brand-accent: #80c8a7;
  --brand-text: #d5e5dd; --brand-muted: #aecbbd; --brand-scroll: #527d6e;
  --muted: #748095; --line: #e4e9f0; --sidebar: 244px; --topbar: 80px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { color: #1b2b41; font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.7px; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 600; }
svg { flex-shrink: 0; stroke-width: 1.7; vertical-align: middle; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #82aeff; outline-offset: 3px; }
input { min-width: 0; width: 100%; color: #25364b; outline: none; background: white; border: 1px solid #cfd7e3; border-radius: 7px; padding: 11px 12px; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #2864d714; }
input[aria-invalid="true"] { border-color: #c9414b; }
input::placeholder { color: #8994a4; }
kbd { font: 11px "Segoe UI", sans-serif; white-space: nowrap; border: 1px solid #dce2ea; border-radius: 4px; background: #f7f9fc; color: #7c8797; padding: 2px 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 15px; color: #435369; background: #fff; border: 1px solid #d7dfea; border-radius: 7px; font-weight: 600; font-size: 13px; }
.button:hover:not(:disabled) { background: #f7f9fc; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover:not(:disabled) { background: #2055bc; }
.icon-button { background: transparent; color: #718096; border: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 8px; }
.icon-button:hover { background: #edf2f8; color: var(--navy); }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 600; padding: 4px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.eyebrow { display: block; text-transform: uppercase; font-size: 13px; font-weight: 650; letter-spacing: 1.7px; color: #7287a3; }
.error-banner, .info-banner { padding: 12px 15px; border: 1px solid #f3ced0; border-radius: 7px; background: #fff2f3; color: #a7333f; font-size: 13px; margin-bottom: 18px; }
.info-banner { background: #f0f5fe; border-color: #dbe7fc; color: #4a648d; }
.badge { border-radius: 5px; display: inline-flex; padding: 3px 9px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.neutral { color: #788498; background: #f0f3f7; }
.badge.green { color: #297961; background: #e9f5ef; }
.badge.blue { color: #4774b6; background: #eaf1fd; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 4px #26395403; overflow: hidden; }
.card-heading { padding: 21px 23px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sidebar-collapsed .app-shell { --sidebar: 76px; }
.sidebar { background: var(--brand-surface); color: #fff; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; z-index: 30; transition: width .18s ease; }
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: var(--brand-accent); }
.brand { height: var(--topbar); flex-shrink: 0; display: flex; align-items: center; padding: 0 23px; gap: 12px; color: white; border-bottom: 1px solid #ffffff0d; }
.brand-mark { width: 34px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-text); flex-shrink: 0; }
.brand-name strong { display: block; font-size: 23px; line-height: 1.1; letter-spacing: -.5px; font-weight: 700; }
.brand-name small { font-size: 13px; color: var(--brand-text); letter-spacing: .2px; }
.navigation { padding: 15px 12px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--brand-scroll) transparent; }
.nav-section + .nav-section { border-top: 1px solid #ffffff12; margin-top: 20px; padding-top: 14px; }
.nav-heading { font-size: 13px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--brand-muted); margin: 1px 14px 10px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; height: 37px; padding: 0 13px; font-size: 13px; font-weight: 450; color: var(--brand-text); border: 0; background: transparent; border-radius: 6px; text-align: left; white-space: nowrap; margin-bottom: 3px; }
.nav-item.active { color: #fff; background: var(--brand-active); box-shadow: inset 3px 0 0 var(--brand-accent); }
.nav-item:not(.planned):hover { background: var(--brand-hover); color: white; }
.nav-item.planned { color: var(--brand-muted); cursor: default; }
.planned-dot { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-scroll); }
.sidebar-bottom { padding: 10px 12px 17px; border-top: 1px solid #ffffff10; }
.sidebar-help { display: flex; gap: 9px; color: var(--brand-muted); font-size: 13px; padding: 6px 12px 17px; line-height: 1.7; }
.collapse-button { display: flex; align-items: center; gap: 12px; padding: 10px 13px; color: var(--brand-text); border: 0; background: #ffffff06; border-radius: 6px; width: 100%; font-size: 13px; white-space: nowrap; }
.collapse-button:hover { background: #ffffff12; }
.sidebar-collapsed .sidebar .brand { padding: 0 21px; }
.sidebar-collapsed .sidebar .nav-item, .sidebar-collapsed .sidebar .collapse-button { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar .nav-section + .nav-section { margin-top: 17px; }
.sidebar-collapsed .sidebar .collapse-button { height: 38px; }
.topbar { position: fixed; inset: 0 0 auto var(--sidebar); z-index: 20; height: var(--topbar); background: #ffffffed; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 25px; transition: left .18s ease; }
.global-search { display: flex; align-items: center; gap: 12px; max-width: 630px; width: 100%; padding: 10px 13px; border: 1px solid #e1e6ee; border-radius: 7px; background: #f8fafc; color: #8691a2; text-align: left; font-size: 13px; }
.global-search kbd { margin-left: auto; }
.user-block { display: flex; margin-left: auto; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e7eef9; color: #42668c; font-size: 13px; font-weight: 600; }
.user-description strong { display: block; color: #35465b; font-size: 13px; font-weight: 600; }
.user-description small { display: block; color: #7e8c9e; font-size: 13px; margin-top: 1px; }
.logout { margin-left: 7px; }
.main-content { margin-left: var(--sidebar); padding: 103px 30px 0; transition: margin-left .18s ease; min-height: 100vh; outline: none; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #9aa5b4; font-size: 13px; margin-bottom: 21px; }
.breadcrumb span:last-child { color: #64748b; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading p { margin-top: 7px; color: #7a8697; font-size: 13px; }
.date-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #8591a1; white-space: nowrap; align-self: flex-start; padding-top: 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-bottom: 23px; }
.kpi-card { padding: 20px 21px 17px; }
.kpi-title { display: flex; gap: 10px; justify-content: space-between; align-items: center; color: #59697e; font-size: 13px; }
.kpi-title svg { color: #90a4c0; }
.kpi-value { font-size: 29px; color: #34475f; display: block; margin: 11px 0 4px; line-height: 1.2; font-weight: 550; }
.kpi-note { color: #99a4b3; font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 21px; }
.table-head-preview { background: #f8fafc; padding: 11px 24px; display: grid; grid-template-columns: 2fr 1.2fr 1fr; color: #8d99a8; font-size: 13px; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.empty-state { text-align: center; padding: 34px 18px; display: flex; flex-direction: column; align-items: center; }
.empty-icon { width: 62px; height: 62px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; background: #f0f4fa; color: #99acc5; margin-bottom: 17px; }
.empty-icon.small { width: 48px; height: 48px; border-radius: 13px; }
.empty-state h3 { font-size: 13px; color: #63748a; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: #8f9aac; line-height: 1.9; }
.process-empty { padding: 37px 20px 32px; }
.subtle-badge { border: 1px solid #e9edf4; border-radius: 5px; font-size: 13px; color: #93a0b3; padding: 5px 9px; margin-top: 19px; }
.card-footnote { padding: 12px 22px; border-top: 1px solid #edf0f5; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #80928f; }
.card-footnote svg { color: #6f9e91; }
.tasks-card { display: flex; flex-direction: column; }
.tasks-card .empty-state { margin: auto 0; }
.upcoming-note { margin: 0 22px; border-top: 1px solid #edf0f5; padding: 15px 0; font-size: 13px; color: #a39376; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.status-dot.amber { background: #d6af61; }
.activity-empty { display: flex; align-items: center; gap: 17px; padding: 5px 23px 30px; }
.activity-empty .empty-icon { margin: 0; flex-shrink: 0; }
.activity-empty h3 { color: #6c7b90; font-size: 13px; }
.activity-empty p { color: #909bad; font-size: 13px; margin-top: 5px; }
.card-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 23px; font-size: 13px; border-top: 1px solid #edf0f5; }
.workspace-note { background: #edf3fc; border: 1px solid #e0e9f7; border-radius: 10px; padding: 23px; position: relative; }
.workspace-note .note-icon { float: right; color: #7e9dc5; }
.workspace-note h2 { font-size: 15px; color: #446389; padding-right: 28px; }
.workspace-note p { font-size: 13px; color: #7b92af; line-height: 1.85; margin: 9px 0 13px; }
.page-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 30px; padding: 17px 0 22px; color: #98a4b4; font-size: 13px; }
.skip-link { position: fixed; top: -80px; left: 280px; z-index: 100; padding: 10px; background: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.search-dialog { width: min(830px, calc(100vw - 40px)); max-height: 84vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; margin: 100px auto auto; color: #33465f; box-shadow: 0 22px 80px #13243e30; }
.search-dialog::backdrop { background: #15253d66; }
.dialog-heading { padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { margin-top: 5px; font-size: 20px; }
.search-input-wrap { margin: 0 24px 20px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #b8cdec; border-radius: 8px; color: #7796bc; }
.search-input-wrap input { border: 0; padding: 13px 0; font-size: 13px; box-shadow: none; }
.search-input-wrap:focus-within { outline: 2px solid #c8daff; }
.search-content { border-top: 1px solid #edf0f5; padding: 22px 24px; }
.search-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; padding: 10px 0; }
.search-groups h3 { font-size: 13px; margin-bottom: 8px; }
.search-groups p { font-size: 13px; }
.count { margin-left: 5px; color: #9ba7b6; font-weight: 400; }
.dialog-footer { display: flex; justify-content: space-between; gap: 10px; padding: 13px 24px; border-top: 1px solid var(--line); color: #8895a6; font-size: 13px; background: #fafbfd; }
.login-page { display: grid; grid-template-columns: 46% 54%; min-height: 100vh; background: #fff; }
.login-story { background: var(--brand-surface); color: white; padding: 42px 55px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story .eyebrow { color: var(--brand-muted); }
.login-story::after { content: ''; position: absolute; width: 510px; height: 510px; border: 1px solid #ffffff09; border-radius: 50%; right: -220px; bottom: -120px; box-shadow: 0 0 0 65px #ffffff02, 0 0 0 130px #ffffff02; pointer-events: none; }
.login-brand { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.login-intro { margin: auto 0; padding: 90px 0; position: relative; z-index: 1; }
.login-intro h1 { color: #f5f8fd; font-size: clamp(32px,3.4vw,49px); line-height: 1.25; letter-spacing: -1.5px; margin: 21px 0; font-weight: 500; }
.login-intro p { color: var(--brand-text); font-size: 15px; line-height: 1.8; }
.story-line { width: 43px; height: 3px; background: var(--brand-accent); margin: 36px 0 20px; }
.story-caption { font-size: 13px; letter-spacing: 1.6px; color: var(--brand-muted); }
.login-story-footer { font-size: 13px; color: var(--brand-muted); }
.login-form-area { position: relative; display: flex; align-items: center; justify-content: center; padding: 65px 30px 85px; }
.login-form { width: 360px; max-width: 100%; }
.login-symbol { display: inline-flex; background: #f0f5fc; color: #6b8db8; padding: 11px; border-radius: 12px; margin-bottom: 28px; }
.login-form h2 { color: #233951; font-size: 28px; font-weight: 600; margin-top: 9px; letter-spacing: -.5px; }
.login-description { font-size: 13px; color: #8a96a6; margin: 9px 0 30px; }
.field { margin-bottom: 19px; }
.field label { display: block; font-size: 13px; color: #54657a; font-weight: 600; margin-bottom: 8px; }
.field label span { color: #929dac; }
.field input { font-size: 13px; height: 44px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.password-wrap .icon-button { position: absolute; right: 4px; top: 4px; }
.field-error { color: #b63846; margin-top: 6px; font-size: 13px; }
.login-submit { width: 100%; height: 43px; margin-top: 6px; justify-content: space-between; padding: 0 15px; }
.button.primary.login-submit { background: var(--brand-active); border-color: var(--brand-active); }
.button.primary.login-submit:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
.button.primary.login-submit:focus-visible { outline-color: var(--brand-active); }
.login-help { text-align: center; font-size: 13px; color: #909dad; margin: 25px 0 0; line-height: 1.9; }
.login-legal { position: absolute; bottom: 30px; font-size: 13px; color: #a0aab9; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { position: sticky; top: 0; padding: 12px 22px; color: #78869a; font-size: 13px; font-weight: 500; background: #f8fafc; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 15px 22px; border-bottom: 1px solid #edf0f5; color: #5a6b81; }
td strong { font-weight: 550; color: #3c5069; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 15px 20px; color: #8793a4; font-size: 13px; }
.roles-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.role-card { padding: 24px; }
.role-card p { font-size: 13px; color: #8b97a8; margin: 8px 0 15px; }
.role-card summary { font-size: 13px; color: var(--blue); cursor: pointer; }
.permission-list { padding-left: 15px; font-size: 13px; color: #7d8da4; overflow-wrap: anywhere; }
.page-note { margin-top: 22px; font-size: 13px; }
.loading-panel { padding: 30px; color: #7e8da0; }
.notice { padding: 70px 25px; gap: 10px; }
.notice p { margin-bottom: 20px; }
@media (min-width: 1700px) { .main-content { padding-left: 44px; padding-right: 44px; } .topbar { padding: 0 44px; } .dashboard-grid { grid-template-columns: 2fr 1fr; } }
@media (max-width: 1190px) { .date-label { display: none; } .topbar { gap: 15px; padding: 0 24px; } .main-content { padding-left: 24px; padding-right: 24px; } .global-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .kpi-title { font-size: 13px; } .kpi-card { padding: 17px; } .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); } }
@media (max-width: 760px) {
  :root { --topbar: 68px; --sidebar: 220px; }
  html:not(.sidebar-collapsed) .app-shell .sidebar { box-shadow: 8px 0 30px #18283f28; }
  html:not(.sidebar-collapsed) .app-shell .topbar { left: 76px; }
  html:not(.sidebar-collapsed) .app-shell .main-content { margin-left: 76px; }
  .user-description, .global-search kbd { display: none; }
  .topbar { padding: 0 15px; gap: 10px; }
  .global-search { width: 40px; height: 37px; padding: 0; justify-content: center; }
  .global-search span { display: none; }
  .main-content { padding: 85px 17px 0; }
  h1 { font-size: 23px; }
  .page-heading { align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .dashboard-grid, .roles-grid { grid-template-columns: minmax(0,1fr); }
  .card-heading { padding: 19px; }
  .page-footer span:last-child { display: none; }
  .search-dialog { margin-top: 25px; max-height: calc(100vh - 50px); }
  .search-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dialog-footer span:first-child { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { padding: 25px; }
  .login-intro, .login-story-footer { display: none; }
  .login-form-area { min-height: calc(100vh - 88px); padding-top: 35px; }
  .brand { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Blade / progressive enhancement; these files are served directly without a build. */
[hidden] { display: none !important; }
.sidebar-collapsed .sidebar .brand-name,
.sidebar-collapsed .sidebar .nav-label,
.sidebar-collapsed .sidebar .nav-heading,
.sidebar-collapsed .sidebar .planned-dot,
.sidebar-collapsed .sidebar .sidebar-help { display: none; }
.sidebar-collapsed .sidebar .collapse-button svg { transform: rotate(180deg); }
.button[aria-disabled="true"] { opacity: .48; cursor: default; }
.search-page { padding-top: 24px; }
.search-page-label { display: block; margin: 0 24px 8px; font-weight: 600; }
.search-input-wrap .text-button { flex-shrink: 0; }
.error-page { max-width: 780px; margin: 9vh auto; padding: 24px; }
.error-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--navy); font-weight: 600; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.notice h1 { margin: 10px 0; }
.notice form { margin-top: 12px; }
/* Master data: server-rendered forms and lists, no frontend build. */
select, textarea { font: inherit; width: 100%; min-width: 0; color: #25364b; background: #fff; border: 1px solid #cfd7e3; border-radius: 7px; padding: 10px 12px; }
textarea { resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 3px solid #82aeff; outline-offset: 2px; }
select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c9414b; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 13px; }
.catalog-note { color: #63748a; margin-bottom: 20px; max-width: 900px; line-height: 1.8; }
.master-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.master-filters > div { flex: 1 1 135px; }
.master-filters .filter-search { flex: 3 1 300px; }
.master-filters .filter-sort { flex: 1 1 200px; }
.master-filters .filter-count { flex: 0 1 100px; }
.master-filters .filter-actions { flex: 0 0 auto; }
.master-filters label { display: block; font-size: 12px; color: #63748a; margin-bottom: 6px; }
.master-filters input, .master-filters select { height: 40px; font-size: 13px; padding: 8px 10px; }
.filter-actions { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.master-form { max-width: 980px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 26px; }
.full-width { grid-column: 1 / -1; }
.field-hint { color: #718096; font-size: 12px; margin-top: 7px; }
.form-actions { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 6px; }
.detail-tabs { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.detail-tabs a { color: #63748a; padding: 10px 0 13px; border-bottom: 3px solid transparent; }
.detail-tabs a[aria-current="page"] { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 35px; margin: 0; padding: 3px 24px 26px; }
.detail-grid dt { color: #748095; font-size: 12px; margin-bottom: 4px; }
.detail-grid dd { margin: 0; color: #34475f; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.record-metadata { padding: 16px 24px; font-size: 12px; color: #748095; border-top: 1px solid var(--line); }
.history-entry + .history-entry { border-top: 1px solid var(--line); }
.history-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 22px; color: #63748a; font-size: 13px; }
.master-history td { max-width: 420px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .form-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); } .master-form { padding: 20px; } .master-filters { padding: 16px; } .detail-tabs { gap: 16px; } .master-filters .filter-search { flex-basis: 100%; } }
@media (max-width: 760px) {
  .app-shell:not(.js-enabled) { --sidebar: 76px; }
  .app-shell:not(.js-enabled) .brand-name,
  .app-shell:not(.js-enabled) .nav-label,
  .app-shell:not(.js-enabled) .nav-heading,
  .app-shell:not(.js-enabled) .sidebar-help,
  .app-shell:not(.js-enabled) .planned-dot { display: none; }
  .skip-link { left: 85px; }
  .search-input-wrap { gap: 7px; margin-left: 16px; margin-right: 16px; }
  .search-input-wrap kbd { display: none; }
  .page-heading { flex-wrap: wrap; }
}



/* Partner overview and contextual contact creation. */
.form-section { border: 0; border-top: 1px solid var(--line); padding: 23px 0 0; margin: 18px 0 22px; min-width: 0; }
.form-section legend { font-size: 16px; font-weight: 650; padding: 0 12px 0 0; }
.section-help { font-size: 13px; color: #63748a; margin: 0 0 18px; line-height: 1.7; }
.partner-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; margin-bottom: 22px; }
.partner-metric { padding: 18px 20px; }
.metric-label { display: flex; align-items: flex-start; gap: 9px; color: #63748a; }
.metric-label h2 { font-size: 13px; color: #435369; overflow-wrap: anywhere; }
.metric-value { display: flex; align-items: center; gap: 14px; margin: 10px 0 5px; }
.metric-value strong { font-size: 27px; font-weight: 600; color: #7b8798; }
.partner-metric p { font-size: 12px; color: #748095; }
.partner-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.partner-overview > *, .partner-metrics > * { min-width: 0; }
.overview-card { display: flex; flex-direction: column; }
.overview-card .card-heading { align-items: flex-start; }
.overview-card .card-heading > svg { color: #8c9cb1; }
.overview-card-body { padding: 0 23px 22px; overflow-wrap: anywhere; }
.overview-card-footer { margin-top: auto; padding: 15px 23px; border-top: 1px solid var(--line); font-size: 13px; }
.overview-card-footer a, .overview-link { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.summary-data { margin: 0; padding: 0 23px 23px; }
.summary-data > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; margin-bottom: 12px; }
.summary-data dt { color: #748095; font-size: 12px; }
.summary-data dd { margin: 0; overflow-wrap: anywhere; }
.contact-identity { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; overflow-wrap: anywhere; }
.contact-identity > div { min-width: 0; }
.contact-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 18px; }
.contact-channels { margin-bottom: 18px; font-size: 13px; }
.contact-channels p + p { margin-top: 7px; }
.contact-channels span { color: #748095; margin-right: 8px; }
.overview-link { font-size: 13px; }
.activity-list { display: flex; flex-direction: column; gap: 17px; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #4e9c7b; }
.activity-item small { display: block; color: #748095; margin-top: 4px; }
.overview-sites, .overview-notes { grid-column: 1 / -1; }
.overview-sites .card-heading { flex-wrap: wrap; }
.overview-sites .card-heading p { font-size: 12px; margin-top: 4px; }
.site-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 23px 22px; }
.site-preview { padding: 17px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.site-preview-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.site-preview p { color: #63748a; font-size: 13px; }
.site-contact { display: flex; gap: 8px; align-items: center; margin-top: 13px; font-size: 13px; }
.overview-empty { grid-column: 1 / -1; }
.assigned-contact { margin-top: 20px; }
.assigned-contact .section-help { margin-top: 18px; margin-bottom: 0; }
.cell-subtitle { display: block; color: #748095; margin-top: 3px; }
.contact-assignments a { display: block; margin-top: 6px; }
.contact-assignments { max-width: 290px; white-space: normal; }
.page-heading h1 { overflow-wrap: anywhere; }
@media (max-width: 1200px) { .partner-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .partner-overview { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .partner-overview, .site-preview-grid { grid-template-columns: minmax(0,1fr); } .partner-metrics { gap: 10px; } .partner-metric { padding: 14px; } .metric-label { flex-direction: column; } .metric-value { flex-wrap: wrap; gap: 4px 10px; } .summary-data > div { grid-template-columns: minmax(0,1fr); gap: 3px; } }
@media (max-width: 480px) { .partner-metrics { grid-template-columns: minmax(0,1fr); } .metric-label { flex-direction: row; } }

/* Continuous partner workspace: quiet header, local actions, separate form mode. */
.partner-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.partner-heading-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.partner-heading h1 { max-width: 100%; font-size: 25px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.partner-heading-text > .badge { flex-shrink: 0; }
.section-heading, .form-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 19px; overflow-wrap: anywhere; }
.section-heading p { font-size: 12px; margin-top: 4px; }
.form-heading h1 { font-size: 25px; margin-bottom: 5px; }
.form-heading p { color: #748095; overflow-wrap: anywhere; }
.form-heading > div, .child-title > div { min-width: 0; }
.child-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.child-title .eyebrow { font-size: 11px; }
.record-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.record-action { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--blue); }
.record-action:hover { background: var(--blue-soft); }
.record-open { background: #e8f4ef; border-color: #cbe4d8; color: #22684e; }
.record-open:hover { background: #d5ebdf; color: #164e3b; }
.record-action:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button.compact { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.billing-summary { padding: 0 24px 24px; font-size: 13px; overflow-wrap: anywhere; }
.overview-card .card-heading h2 { min-width: 0; }
.site-preview-title .record-actions { flex-wrap: wrap; justify-content: flex-end; }
.form-actions { position: sticky; bottom: 12px; background: #fff; padding: 14px 0; z-index: 2; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .partner-heading h1, .form-heading h1 { font-size: 21px; }
  .section-heading { flex-wrap: wrap; }
  .child-heading .record-actions { margin-left: 46px; }
  .site-preview-title { flex-wrap: wrap; }
  .overview-card .card-heading { flex-wrap: wrap; gap: 12px; }
}

td:last-child .record-actions { justify-content: flex-end; flex-wrap: nowrap; }

.summary-data dt { overflow-wrap: anywhere; }
/* Phase 3: restrained condition views, using the existing office palette. */
.condition-filters, .condition-notice { padding: 20px 24px; margin-bottom: 20px; }
.condition-filters .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.condition-notice summary { cursor: pointer; font-weight: 600; }
.condition-notice p, .condition-notice ul { margin-top: 12px; }
.condition-notice li { margin: 8px 0; }
.condition-notice .field { max-width: 320px; margin-top: 14px; }
.condition-preview { margin-top: 22px; }
.condition-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.condition-table td { min-width: 125px; }
.condition-table td:last-child { min-width: 90px; }
[data-condition-form] select { width: 100%; min-width: 0; max-width: 100%; }
[data-condition-form] small { display: block; color: var(--text-muted, #66778c); margin-top: 6px; }
@media (max-width: 900px) { .condition-filters .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .condition-filters .form-grid { grid-template-columns: minmax(0, 1fr); } .condition-notice, .condition-filters { padding: 16px; } }
.condition-filters .form-actions { position: static; flex-wrap: wrap; padding-bottom: 0; }
.condition-sort summary { cursor: pointer; color: #54657a; font-size: 13px; margin: 4px 0 16px; }

/* Compact condition workspace and optional viewing mode for customer conversations. */
.detail-toolbar { display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; position: relative; }
.detail-toolbar .detail-tabs { flex: 1; min-width: 0; margin: 0; border: 0; gap: 18px; }
.condition-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 0; flex-shrink: 0; }
.condition-tools .record-action { width: 34px; height: 34px; font-size: 19px; font-weight: 650; cursor: pointer; }
.condition-visibility[aria-pressed="true"] { color: var(--brand-surface); background: #e6f2ed; border-color: #b8d6c9; }
.condition-visibility[aria-pressed="true"] span { text-decoration: line-through; }
.condition-hints summary { list-style: none; font-family: Georgia, serif; }
.condition-hints summary::-webkit-details-marker { display: none; }
.condition-hints[open] summary { background: #edf3fb; border-color: #bdcde2; }
.condition-hint-panel { position: absolute; z-index: 35; top: 100%; right: 0; width: min(560px, 100%); margin-top: 8px; box-shadow: 0 10px 28px #18283f24; }
.condition-hint-panel h2 { font-size: 15px; }
.condition-hint-panel p, .condition-hint-panel li { font-size: 13px; line-height: 1.65; }
.condition-hint-panel ul { padding-left: 20px; margin: 12px 0; }
.page-heading:has(> .condition-tools) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.condition-filter-panel { margin-bottom: 14px; }
.condition-filter-panel > summary { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 12px 18px; font-size: 13px; font-weight: 600; list-style: none; }
.condition-filter-panel > summary::-webkit-details-marker { display: none; }
.condition-filter-panel > summary::after { content: '+'; font-size: 18px; color: #63748a; }
.condition-filter-panel[open] > summary::after { content: '−'; }
.filter-toggle-label { margin-left: auto; font-size: 12px; color: #748095; font-weight: 400; }
.condition-filter-panel .condition-filters { margin: 0; padding: 8px 18px 16px; }
.condition-filters .form-grid { gap: 2px 18px; }
.condition-filters .field { margin-bottom: 10px; }
.condition-filters input, .condition-filters select { padding: 7px 10px; font-size: 13px; }
.condition-table { font-size: 13px; }
.condition-table th, .condition-table td { padding: 10px 12px; }
.condition-table td { min-width: 105px; }
.condition-table td:first-child { min-width: 170px; }
.condition-table .cell-subtitle { font-size: 11px; margin-top: 3px; }
.condition-unit { font-size: 11px; color: #748095; }
.site-conditions-link { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 16px 22px; margin: 18px 0; }
.site-conditions-link h2 { font-size: 15px; margin-bottom: 4px; }
.site-conditions-link p { font-size: 13px; color: #63748a; }
.commercial-hidden [data-commercial], .commercial-hidden .condition-hint-panel { display: none !important; }
.commercial-hidden .condition-hints summary { opacity: .5; }
@media (max-width: 600px) {
  .detail-toolbar { gap: 8px; }
  .detail-toolbar .detail-tabs { gap: 7px 14px; font-size: 13px; }
  .condition-hint-panel { width: 100%; }
  .filter-toggle-label { display: none; }
  .condition-filter-panel > summary::after { margin-left: auto; }
  .condition-table th, .condition-table td { padding: 10px; }
}

.commercial-hidden-message { display: none; }
.commercial-hidden .commercial-hidden-message { display: block; }

/* Local condition history; technical IDs remain in URLs only. */
.condition-version-history { margin: 18px 0; }
.condition-version-history .card-heading p { font-size: 12px; margin-top: 5px; }
.condition-versions { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 6px; }
.condition-versions a { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: #63748a; }
.condition-versions a strong { color: var(--blue); }
.condition-versions a[aria-current="page"] { background: #f1f6fd; border-color: #c4d6ee; }
.condition-versions a:hover { border-color: #a8c3e7; }
.condition-versions a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.condition-versions .version-selection, .condition-versions svg { margin-left: auto; }
.version-selection { font-size: 11px; }
.condition-audit > summary { cursor: pointer; padding: 17px 22px; font-size: 14px; font-weight: 600; }
