@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #17233b;
  --navy-2: #223253;
  --blue: #3157c8;
  --blue-dark: #2446ad;
  --blue-soft: #edf2ff;
  --ink: #172033;
  --muted: #697386;
  --line: #e5e9f0;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --green: #198b62;
  --green-soft: #e8f7f0;
  --amber: #b86a08;
  --amber-soft: #fff4df;
  --red: #c13a4a;
  --red-soft: #fdecef;
  --shadow: 0 4px 18px rgba(27, 39, 65, .06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 var(--font-sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 250px; flex-direction: column; color: #d7ddeb; background: var(--navy); }
.brand { display: flex; min-height: 118px; align-items: center; justify-content: center; gap: 4px; padding: 13px 22px 11px; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--navy); }
.brand-logo-full { display: block; width: 156px; height: auto; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgba(4, 14, 32, .18); }
.brand-logo-symbol { display: none; width: 46px; height: 46px; padding: 5px; border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgba(4, 14, 32, .18); object-fit: contain; }
.brand-product { display: grid; justify-items: center; gap: 1px; color: #aeb9cc; line-height: 1.15; text-align: center; white-space: nowrap; }
.brand-product strong { color: #fff; font-size: 10px; letter-spacing: .06em; }
.brand-product small { color: #aeb9cc; font-size: 8px; }
.brand-product i { display: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; flex: none; color: white; border-radius: 10px; background: linear-gradient(145deg, #587be1, #3157c8); font-size: 12px; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 5px 15px rgba(31, 74, 193, .35); }
.brand strong { display: block; color: white; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: #99a6bd; font-size: 11px; }
.brand .brand-product strong { color: #fff; font-size: 10px; }
.brand .brand-product small { color: #aeb9cc; font-size: 8px; }
.sidebar-collapse { position: absolute; z-index: 2; top: 103px; right: -14px; display: grid; width: 29px; height: 29px; place-items: center; padding: 0; color: #506176; border: 1px solid #dce4ec; border-radius: 9px; background: #fff; box-shadow: 0 5px 15px rgba(18, 35, 57, .13); cursor: pointer; transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.sidebar-collapse:hover { color: #0871b9; border-color: #a9ccdf; transform: translateX(-1px); }
.sidebar-collapse svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.main-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 26px 14px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 8px; color: #b6c0d3; font-size: 13px; font-weight: 600; transition: .15s ease; }
.main-nav a span { width: 20px; text-align: center; font-size: 17px; }
.main-nav a .nav-notification-icon { display: grid; place-items: center; }
.nav-notification-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav a .nav-count { display: grid; width: 19px; height: 19px; place-items: center; margin-left: auto; border-radius: 10px; color: white; background: var(--red); font-size: 8px; }
.main-nav .nav-section { margin: 20px 13px 4px; color: #72809a; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.main-nav a.nav-pending { opacity: .55; pointer-events: none; }
.main-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.main-nav a.active { color: white; background: rgb(0, 105, 173); box-shadow: 0 5px 18px rgba(0, 72, 119, .28); }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; }
.user-card strong, .user-card small { display: block; overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }
.user-card strong { color: white; font-size: 12px; }
.user-card small { color: #929eb4; font-size: 10px; }
.avatar { display: grid; width: 33px; height: 33px; place-items: center; flex: none; border-radius: 50%; color: white; background: #4867bd; font-size: 11px; font-weight: 800; }
.logout-link { width: 100%; padding: 7px; color: #9eabc0; border: 0; background: transparent; cursor: pointer; font-size: 11px; text-align: left; }
.logout-link:hover { color: white; }
.app-main { min-height: 100vh; margin-left: 250px; padding: 42px clamp(24px, 4vw, 58px) 60px; }
.sidebar, .app-main { transition: width .2s ease, margin-left .2s ease; }
.sidebar-collapsed .sidebar { width: 74px; }
.sidebar-collapsed .app-main { margin-left: 74px; }
.sidebar-collapsed .brand { align-items: center; justify-content: center; padding-inline: 12px; }
.sidebar-collapsed .brand-logo-full, .sidebar-collapsed .brand-product, .sidebar-collapsed .main-nav .nav-section, .sidebar-collapsed .user-card > span:last-child { display: none; }
.sidebar-collapsed .brand-logo-symbol { display: block; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .main-nav { padding-inline: 9px; }
.sidebar-collapsed .main-nav a { justify-content: center; gap: 0; overflow: hidden; font-size: 0; }
.sidebar-collapsed .main-nav a span { width: auto; font-size: 17px; }
.sidebar-collapsed .main-nav a .nav-count { position: absolute; margin: -22px 0 0 22px; font-size: 7px; }
.sidebar-collapsed .user-card { justify-content: center; }
.sidebar-collapsed .logout-link { overflow: hidden; font-size: 0; text-align: center; }
.sidebar-collapsed .logout-link::before { content: "↪"; font-size: 17px; }
.mobile-menu { display: none; }
.mobile-menu-icon { position: relative; display: block; width: 18px; height: 14px; flex: none; }
.mobile-menu-icon i { position: absolute; left: 0; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: top .18s ease, opacity .14s ease, transform .18s ease; }
.mobile-menu-icon i:nth-child(1) { top: 0; }
.mobile-menu-icon i:nth-child(2) { top: 6px; }
.mobile-menu-icon i:nth-child(3) { top: 12px; }
.mobile-menu[aria-expanded="true"] .mobile-menu-icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mobile-menu[aria-expanded="true"] .mobile-menu-icon i:nth-child(2) { opacity: 0; }
.mobile-menu[aria-expanded="true"] .mobile-menu-icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.topbar { display: flex; min-height: 42px; align-items: center; justify-content: space-between; margin: -22px 0 28px; padding-bottom: 12px; color: #8a93a3; border-bottom: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.topbar span i { margin: 0 7px; color: #c2c8d1; font-style: normal; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a { color: #566176; font-weight: 700; }
.topbar nav b { padding: 2px 5px; color: white; border-radius: 8px; background: var(--red); font-size: 7px; }
.messages { position: fixed; z-index: 50; top: 18px; right: 24px; width: min(400px, calc(100% - 48px)); }
.message { margin-bottom: 8px; padding: 13px 16px; border: 1px solid #bde5d4; border-radius: 9px; color: #116143; background: #f1fbf6; box-shadow: var(--shadow); }
.message.error { color: #8f2633; border-color: #f1c9ce; background: #fff6f7; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.page-header h1 { margin: 1px 0 4px; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.muted { margin: 0; color: var(--muted); }
.header-actions { display: flex; gap: 9px; }
.btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 750; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 5px 12px rgba(49,87,200,.2); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { color: #354054; border-color: #dce1e9; background: white; }
.btn-dark { color: white; background: var(--navy); }
.btn-block { width: 100%; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { display: flex; min-height: 126px; align-items: center; gap: 17px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.stat-card .stat-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: none; border-radius: 10px; font-size: 18px; font-weight: 700; }
.stat-card p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-card strong { display: block; margin: 1px 0 -1px; font-size: 28px; line-height: 1.25; }
.stat-card small { color: #9099a8; font-size: 10px; }
.dashboard-inner-stat { min-height: 141px; border: 0; box-shadow: none; }
.accent-blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.accent-green .stat-icon { color: var(--green); background: var(--green-soft); }
.accent-amber .stat-icon { color: var(--amber); background: var(--amber-soft); }
.accent-red .stat-icon { color: var(--red); background: var(--red-soft); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.chart-panel { overflow: hidden; }
.bar-chart { padding: 14px 20px 18px; }
.bar-row { display: grid; grid-template-columns: minmax(100px, 165px) 1fr 24px; align-items: center; gap: 10px; min-height: 30px; }
.bar-row > span { display: flex; overflow: hidden; align-items: center; gap: 6px; color: #586276; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bar-row > div { height: 7px; overflow: hidden; border-radius: 7px; background: #edf0f4; }
.bar-row > div i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3157c8, #6682d5); }
.bar-row > strong { font-size: 10px; text-align: right; }
.trend-chart { display: flex; height: 190px; align-items: flex-end; justify-content: space-around; gap: 7px; padding: 18px 20px; }
.trend-chart > div { display: flex; height: 100%; align-items: center; flex: 1; flex-direction: column; justify-content: flex-end; }
.trend-chart > div > span { position: relative; width: min(34px, 75%); height: 125px; overflow: hidden; border-radius: 5px 5px 2px 2px; background: #eef1f6; }
.trend-chart > div > span i { position: absolute; right: 0; bottom: 0; left: 0; height: max(var(--height), 3px); border-radius: inherit; background: linear-gradient(180deg, #6984d8, #3157c8); }
.trend-chart strong { margin-top: 4px; font-size: 9px; }
.trend-chart small { color: var(--muted); font-size: 7px; }
.critical-strip { display: flex; overflow-x: auto; align-items: center; gap: 14px; margin-bottom: 20px; padding: 16px 20px; border-left: 3px solid var(--red); }
.critical-strip > div { min-width: 165px; }
.critical-strip > div strong { font-size: 11px; }
.critical-strip > a { display: grid; min-width: 190px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; }
.critical-strip > a span { color: var(--red); font-size: 8px; font-weight: 800; }
.critical-strip > a strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.critical-strip > a small { color: var(--muted); font-size: 8px; }
.admin-links { align-items: stretch; }
.admin-link { display: grid; grid-template-columns: 1fr auto; padding: 20px; }
.admin-link strong, .admin-link span { display: block; grid-column: 1; }
.admin-link span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-link i { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue); font-style: normal; }
.panel-heading { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.panel-heading > a { color: var(--blue); font-size: 11px; font-weight: 700; }
.status-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.status-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 17px 20px; background: white; }
.status-summary:hover { background: #fafbfc; }
.status-summary span:nth-child(2) { color: #465066; font-size: 12px; }
.status-summary strong { font-size: 18px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a5adba; }
.status-not_started { background: #97a0af; }
.status-draft { background: #7c8594; }
.status-assigned { background: #6682d5; }
.status-in_progress { background: var(--blue); }
.status-blocked { background: var(--red); }
.status-waiting { background: var(--amber); }
.status-to_validate { background: #9162c7; }
.status-completed { background: var(--green); }
.status-cancelled { background: #777f8c; }
.phase-list { padding: 5px 20px 11px; }
.phase-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 45px; border-bottom: 1px solid #f0f2f5; color: #465066; font-size: 12px; }
.phase-row:last-child { border: 0; }
.phase-row:hover span:nth-child(2) { color: var(--blue); }
.phase-color, .phase-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--phase-color); }
.phase-row strong { color: var(--ink); }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 18px; color: #778196; background: #fafbfc; font-size: 9px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
td { padding: 14px 18px; border-top: 1px solid #eef0f4; color: #414b5e; font-size: 11px; vertical-align: middle; }
tbody tr:hover { background: #fbfcff; }
td strong { color: var(--ink); font-size: 11px; }
.table-subtitle { display: block; margin-top: 2px; color: #8b94a4; font-size: 9px; }
.reference { color: var(--blue); font-weight: 800; }
.person { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.person i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: rgb(0, 105, 173); font-size: 8px; font-style: normal; font-weight: 800; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.badge-not_started, .badge-draft { color: #687386; background: #edf0f4; }
.badge-assigned { color: #244bb7; background: #eaf0ff; }
.badge-in_progress { color: #244bb7; background: #eaf0ff; }
.badge-blocked, .badge-overdue { color: #a72e3d; background: var(--red-soft); }
.badge-waiting { color: #985b0b; background: var(--amber-soft); }
.badge-to_validate { color: #7043a4; background: #f2ebfa; }
.badge-completed { color: #13714e; background: var(--green-soft); }
.badge-archived { color: #4f5d73; background: #e9edf3; }
.role-badge { border: 1px solid transparent; letter-spacing: .02em; }
.role-badge-super-admin { color: #7137a8; background: #f3eaff; border-color: #dfc8f4; }
.role-badge-plan-manager { color: #2455b6; background: #eaf1ff; border-color: #cbdcff; }
.role-badge-contributor { color: #0c6e5d; background: #e4f7f2; border-color: #bce8dd; }
.role-badge-auditor { color: #89530a; background: #fff2d8; border-color: #f2d49a; }
.role-badge-default { color: #586273; background: #eef1f5; border-color: #d9dfe7; }
.badge-cancelled { color: #747d8b; background: #edeff2; text-decoration: line-through; }
.progress-cell { display: flex; min-width: 100px; align-items: center; gap: 8px; }
.progress-cell > span { width: 70px; height: 5px; overflow: hidden; border-radius: 6px; background: #e6eaf0; }
.progress-cell > span i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--blue); }
.progress-cell small { color: #70798b; font-size: 9px; }
.action-progress { min-width: 132px; }
.action-progress > span { width: 92px; height: 7px; }
.action-progress small { min-width: 30px; font-weight: 700; }
.action-progress.progress-low > span i { background: var(--red); }
.action-progress.progress-low small { color: var(--red); }
.action-progress.progress-medium > span i { background: var(--amber); }
.action-progress.progress-medium small { color: var(--amber); }
.action-progress.progress-high > span i { background: var(--blue); }
.action-progress.progress-high small { color: var(--blue); }
.action-progress.progress-complete > span i { background: var(--green); }
.action-progress.progress-complete small { color: var(--green); }
.empty-state { padding: 36px !important; color: var(--muted); text-align: center; }

.filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.filter-bar select, .filter-bar input { min-height: 40px; padding: 8px 12px; border: 1px solid #dfe4eb; border-radius: 8px; color: #465066; background: white; outline: none; font-size: 11px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: #8099df; box-shadow: 0 0 0 3px #edf2ff; }
.search-field { position: relative; flex: 1; max-width: 390px; }
.search-field span { position: absolute; top: 8px; left: 12px; color: #8e98a8; font-size: 16px; }
.search-field input { width: 100%; padding-left: 34px; }
.check-filter { display: flex; align-items: center; gap: 5px; color: #606a7c; font-size: 11px; white-space: nowrap; }
.check-filter input { min-height: auto; }
.clear-filter { color: var(--blue); font-size: 10px; }
.table-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: var(--muted); font-size: 10px; }
.table-meta strong { color: var(--ink); font-size: 11px; }
.action-title { display: block; min-width: 180px; color: var(--ink); font-weight: 400; }
.action-title:hover { color: var(--blue); }
.deliverable-preview { display: flex; max-width: 240px; align-items: center; gap: 5px; margin-top: 5px; color: #667185; font-size: 9px; }
.deliverable-preview > i { flex: none; color: var(--amber); font-style: normal; }
.deliverable-preview > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliverable-preview > b { flex: none; padding: 1px 5px; color: #8a5a0b; border-radius: 9px; background: var(--amber-soft); font-size: 8px; }
.compact { margin-top: 7px; }
.compact > span { width: 80px; height: 3px; }
.phase-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.phase-label i { display: inline-block; flex: none; }
.action-table .dependency-column { width: 128px; min-width: 128px; max-width: 128px; padding-right: 12px; padding-left: 12px; }
.dependency-list { display: flex; gap: 4px; }
.action-table .dependency-list { width: 104px; flex-wrap: wrap; }
.dependency-list a { padding: 2px 5px; color: #4d5a70; border: 1px solid #dfe4eb; border-radius: 4px; background: #f9fafb; font-size: 8px; font-weight: 700; }
.date-overdue, .danger { color: var(--red) !important; font-weight: 700; }
.row-overdue { box-shadow: inset 3px 0 var(--red); }
.row-link { color: #8b94a3; font-size: 15px; }
.row-link:hover { color: var(--blue); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination a { color: var(--blue); font-weight: 700; }

.breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.breadcrumb a { color: var(--blue); }
.detail-header h1 { margin-top: 10px; }
.title-line { display: flex; align-items: center; gap: 8px; }
.reference-chip { padding: 4px 8px; color: var(--blue); border: 1px solid #cfd9f5; border-radius: 5px; background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 20px; }
.detail-panel { overflow: hidden; }
.description { min-height: 90px; padding: 22px; color: #465066; }
.description p { margin-top: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fafbfc; }
.metric-grid > div { min-height: 98px; padding: 18px 22px; border-right: 1px solid var(--line); }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid small { display: block; color: #8992a1; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.metric-grid strong { display: block; margin: 4px 0 9px; font-size: 18px; }
.dependency-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 20px; }
.dependency-columns h3 { margin: 0 0 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.dependency-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-bottom: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.dependency-card:hover { border-color: #b9c6eb; }
.dependency-card > span { color: var(--blue); font-size: 9px; font-weight: 800; }
.dependency-card strong, .dependency-card small { display: block; }
.dependency-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dependency-card small { color: var(--muted); font-size: 8px; }
.dependency-card > i { color: #9099a8; font-style: normal; }
.empty-inline { color: var(--muted); font-size: 11px; }
.comment-form { display: flex; align-items: flex-end; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.comment-form textarea { flex: 1; min-height: 66px; resize: vertical; }
.comment-form > div { flex: 1; }
.comment-file { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.timeline { padding: 20px; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 18px; }
.timeline-item p { margin: 0 0 3px; font-size: 10px; }
.timeline-item time { margin-left: 7px; color: var(--muted); font-size: 8px; }
.timeline-item div div { color: #4d5668; font-size: 11px; }
.facts-card { position: sticky; top: 24px; overflow: hidden; }
.facts-card h2 { margin: 0; padding: 19px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts-card dl { margin: 0; padding: 5px 20px 14px; }
.facts-card dl > div { padding: 13px 0; border-bottom: 1px solid #eef0f3; }
.facts-card dl > div:last-child { border: 0; }
.facts-card dt { margin-bottom: 4px; color: #8a94a3; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.facts-card dd { margin: 0; color: #394357; font-size: 11px; font-weight: 600; }
.facts-deliverable-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.facts-deliverable-list li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; overflow-wrap: anywhere; }
.facts-deliverable-list li > span { flex: none; color: var(--amber); font-size: 9px; }
.critical-mark { margin-left: 6px; padding: 2px 5px; color: var(--red); border-radius: 4px; background: var(--red-soft); font-size: 8px; }

.entity-form { padding: 0; overflow: hidden; }
.entity-form fieldset { margin: 0; padding: 24px; border: 0; border-bottom: 1px solid var(--line); }
.entity-form legend { float: left; width: 100%; margin: 0 0 18px; color: var(--ink); font-size: 14px; font-weight: 750; }
.form-grid { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 17px; clear: both; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.field-group label { display: block; margin-bottom: 6px; color: #465066; font-size: 10px; font-weight: 700; }
.field-group small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.form-control, .stack-form input { width: 100%; min-height: 41px; padding: 9px 11px; color: var(--ink); border: 1px solid #dce1e8; border-radius: 7px; background: white; outline: none; font-size: 12px; }
.form-control:focus, .stack-form input:focus { border-color: #7992db; box-shadow: 0 0 0 3px #eef2fe; }
textarea.form-control { min-height: 90px; }
select[multiple].form-control { min-height: 130px; }
.checkbox-choice-list { display: grid; max-height: 220px; margin: 0; padding: 9px; overflow-y: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; border: 1px solid #dce1e8; border-radius: 8px; background: #fbfcfe; list-style: none; }
.checkbox-choice-list:focus-within { border-color: #7992db; box-shadow: 0 0 0 3px #eef2fe; }
.checkbox-choice-list li { display: flex; min-width: 0; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #e5e9ef; border-radius: 7px; background: white; transition: border-color .15s ease, background .15s ease; }
.checkbox-choice-list li:hover { border-color: #b9c6eb; background: #f7f9ff; }
.checkbox-choice-list li:has(input:checked) { border-color: #8da4e7; background: #eef2fe; }
.checkbox-choice-list input[type=checkbox] { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.checkbox-choice-list label { margin: 0; flex: 1; color: #465066; font-size: 10px; font-weight: 650; line-height: 1.4; cursor: pointer; }
.dependency-checklist .checkbox-choice-list { max-height: 300px; }
.errorlist { margin: 5px 0 0; padding: 0; color: var(--red); font-size: 9px; list-style: none; }
.form-alert { margin-bottom: 15px; padding: 11px 13px; color: #9d2c3a; border: 1px solid #f1c9ce; border-radius: 7px; background: #fff6f7; font-size: 11px; }
.form-alert .errorlist { margin: 0; font-size: inherit; }
.form-global-alert { margin: 18px 24px 0; }
.check-stack { display: flex; justify-content: center; flex-direction: column; gap: 8px; }
.check-stack label { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 24px; background: #fafbfc; }
.admin-form { max-width: 980px; }
.profile-help { clear: both; margin-bottom: 17px; }
.boolean-label { display: flex !important; align-items: center; gap: 7px; min-height: 41px; }

.error-report { margin-top: 20px; padding: 22px; border-color: #f1c9ce; }
.error-report h2 { margin: 0; color: var(--red); font-size: 15px; }
.error-report p, .error-report li { color: #697386; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.priority-critical { color: #a72e3d; background: var(--red-soft); }
.priority-high { color: #9a5a08; background: var(--amber-soft); }
.priority-normal { color: #244bb7; background: #eaf0ff; }
.priority-low { color: #687386; background: #edf0f4; }
.action-controls { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; }
.action-controls form { display: grid; min-width: 0; align-items: center; gap: 8px; }
.status-update-form { grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) auto; }
.progress-update-form { grid-template-columns: minmax(260px, 440px) auto; justify-content: start; padding-top: 14px; border-top: 1px solid var(--line); }
.action-controls .form-control { min-width: 0; min-height: 44px; }
.action-controls textarea { min-height: 44px; max-height: 72px; resize: vertical; }
.action-controls form > .btn { align-self: center; white-space: nowrap; }
.progress-range-field { display: flex; min-width: 0; min-height: 64px; box-sizing: border-box; flex-direction: column; justify-content: center; padding: 5px 9px 3px; border: 1px solid #dce1e8; border-radius: 8px; background: #fff; --progress-color: var(--blue); --progress-soft: var(--blue-soft); }
.progress-range-field.progress-low { --progress-color: var(--red); --progress-soft: var(--red-soft); }
.progress-range-field.progress-medium { --progress-color: var(--amber); --progress-soft: var(--amber-soft); }
.progress-range-field.progress-high { --progress-color: var(--blue); --progress-soft: var(--blue-soft); }
.progress-range-field.progress-complete { --progress-color: var(--green); --progress-soft: var(--green-soft); }
.progress-range-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.progress-range-heading label { color: #606a7c; font-size: 9px; font-weight: 750; }
.progress-range-heading output { min-width: 41px; padding: 2px 6px; color: var(--progress-color); border-radius: 10px; background: var(--progress-soft); font-size: 10px; font-weight: 800; text-align: center; }
.progress-range { width: 100%; height: 8px; margin: 4px 0; padding: 0; border: 0; border-radius: 8px; appearance: none; background: linear-gradient(to right, var(--progress-color) 0 var(--progress), #e6eaf0 var(--progress) 100%); cursor: pointer; outline: none; }
.progress-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: transparent; }
.progress-range::-webkit-slider-thumb { width: 19px; height: 19px; margin-top: -5px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: var(--progress-color); box-shadow: 0 1px 5px rgba(25, 36, 57, .28); }
.progress-range::-moz-range-track { height: 8px; border-radius: 8px; background: transparent; }
.progress-range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--progress-color); }
.progress-range::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: var(--progress-color); box-shadow: 0 1px 5px rgba(25, 36, 57, .28); }
.progress-range:focus-visible { box-shadow: 0 0 0 3px var(--progress-soft); }
.progress-range-scale { display: flex; justify-content: space-between; color: #929bab; font-size: 7px; }
.progress-rule-message { margin: 5px 0 1px; color: var(--red); font-size: 9px; font-weight: 650; line-height: 1.35; }
.inline-upload { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sharepoint-link-form { display: block; }
.sharepoint-link-form .field-group { flex: 1; }
.sharepoint-link-form input[type=url] { width: 100%; }
.sharepoint-input-row { display: flex; align-items: stretch; gap: 12px; }
.sharepoint-input-row .btn { min-width: 78px; flex: none; }
.file-list { padding: 8px 20px 16px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border: 0; }
.file-row strong, .file-row small { display: block; }
.file-row strong { font-size: 11px; }
.file-row small { color: var(--muted); font-size: 9px; }
.file-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 800; }
.file-actions { display: flex; gap: 6px; }
.delay-panel { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px; border-left: 3px solid var(--red); }
.delay-panel h2 { margin: 0; font-size: 14px; }
.delay-panel p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.delay-panel form { display: flex; align-items: flex-end; gap: 10px; }
.delay-panel textarea { min-height: 70px; resize: vertical; }
.history-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history-row > .status-dot { margin-top: 5px; flex: none; }
.history-row strong, .history-row small { display: block; }
.history-row strong { font-size: 10px; }
.history-row small { color: var(--muted); font-size: 8px; }
.history-row p { margin: 4px 0 0; color: #586276; font-size: 10px; }
.notification-list { overflow: hidden; }
.notification-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 15px; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); background: white; transition: background .18s ease, box-shadow .18s ease; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #f9fbfc; }
.notification-item.unread { background: #f3fbf7; box-shadow: inset 4px 0 #22a967; }
.notification-item.unread:hover { background: #ecf8f1; }
.notification-item:focus-within { z-index: 1; box-shadow: inset 0 0 0 2px rgba(34, 169, 103, .35); }
.notification-icon { position: relative; display: grid; width: 42px; height: 42px; place-items: center; color: #168657; border: 1px solid #cdebdc; border-radius: 13px; background: #eaf8f1; }
.notification-item.unread .notification-icon { color: white; border-color: #1d9d61; background: linear-gradient(145deg, #2ab773, #148b53); box-shadow: 0 7px 16px rgba(24, 143, 87, .19); }
.notification-icon > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-state-mark { position: absolute; right: -4px; bottom: -4px; display: grid; width: 18px; height: 18px; place-items: center; color: #168657; border: 2px solid white; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(24, 55, 42, .16); }
.notification-state-mark svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.notification-state-mark > span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #20aa67; }
.notification-item button { min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.notification-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.notification-heading strong { overflow: hidden; color: #16233b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notification-item.is-read .notification-heading strong { font-weight: 650; }
.notification-state { display: inline-flex !important; min-height: 25px; align-items: center; padding: 4px 10px; flex: none; color: #31705a !important; border: 1px solid #d4e9df; border-radius: 999px; background: #f0f8f4; font-size: .6875rem !important; font-weight: 750; }
.notification-item.unread .notification-state { color: #b42332 !important; border-color: #f0bdc4; background: #fff0f2; }
.notification-item.unread .notification-state-mark > span { background: #d92d45; }
.notification-message { display: block; margin-top: 3px; color: #596478; font-size: 10px; line-height: 1.45; }
.notification-date { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 8px; }
.notification-date svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gantt-panel { overflow-x: auto; }
.gantt-header, .gantt-row { display: grid; min-width: 900px; grid-template-columns: 300px minmax(600px, 1fr); }
.gantt-header { min-height: 54px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.gantt-header > div:first-child { display: flex; align-items: center; padding: 0 18px; }
.gantt-scale, .gantt-track { position: relative; }
.gantt-scale span { position: absolute; top: 17px; left: var(--left); color: #6d7789; font-size: 8px; transform: translateX(4px); }
.gantt-row { min-height: 62px; border-bottom: 1px solid #eef0f4; }
.gantt-row:last-child { border: 0; }
.gantt-label { display: flex; overflow: hidden; align-items: center; padding: 9px 18px; border-right: 1px solid var(--line); }
.gantt-label strong, .gantt-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-label strong { font-size: 10px; }
.gantt-label small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.gantt-label small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--phase-color); }
.gantt-gridline { position: absolute; top: 0; bottom: 0; left: var(--left); border-left: 1px dashed #e2e6ec; }
.gantt-bar { position: absolute; top: 20px; left: var(--left); width: var(--width); min-width: 12px; height: 22px; overflow: hidden; border-radius: 5px; box-shadow: 0 2px 5px rgba(20,30,50,.13); }
.gantt-bar > i { display: block; width: var(--progress); height: 100%; background: rgba(255,255,255,.2); }
.gantt-bar > span { position: absolute; inset: 4px 5px auto auto; color: white; font-size: 7px; font-weight: 800; }
.status-bg-not_started, .status-bg-draft, .status-bg-assigned { background: #9aa4b2; }
.status-bg-in_progress { background: var(--blue); }
.status-bg-blocked { background: var(--red); }
.status-bg-waiting, .status-bg-to_validate { background: #bf780f; }
.status-bg-completed { background: var(--green); }
.status-bg-cancelled { background: #777f8c; }
.gantt-milestone { position: absolute; top: 20px; left: var(--left); width: 19px; height: 19px; background: #9162c7; transform: rotate(45deg); box-shadow: 0 2px 6px rgba(60,30,90,.25); }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 17px; padding: 14px 4px; color: var(--muted); font-size: 9px; }
.gantt-legend span { display: flex; align-items: center; gap: 5px; }
.gantt-legend i { width: 12px; height: 7px; border-radius: 2px; }
.gantt-legend .legend-milestone { width: 9px; height: 9px; border-radius: 0; background: #9162c7; transform: rotate(45deg); }

.auth-main { display: flex; min-height: 100vh; align-items: center; padding: 24px; background: radial-gradient(circle at 8% 8%, rgba(8, 113, 185, .09), transparent 29%), radial-gradient(circle at 92% 90%, rgba(230, 185, 75, .12), transparent 24%), #eef3f8; }
.login-shell { display: grid; width: min(1180px, 100%); min-height: clamp(640px, calc(100vh - 48px), 760px); margin: auto; grid-template-columns: minmax(440px, 45%) 1fr; overflow: hidden; border: 1px solid rgba(19, 43, 74, .08); border-radius: 24px; background: white; box-shadow: 0 30px 90px rgba(20, 41, 71, .16); }
.login-panel { display: flex; min-width: 0; padding: 43px clamp(42px, 5vw, 68px) 38px; flex-direction: column; background: #fff; }
.login-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-brand img { display: block; width: 166px; height: auto; }
.login-product { padding: 7px 11px; color: #0769ad; border: 1px solid #d6e8f3; border-radius: 8px; background: #f3f9fc; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.login-content { width: min(100%, 400px); margin: auto 0; padding: 42px 0 18px; }
.login-intro .eyebrow { margin-bottom: 10px; color: #0871b9; font-size: 9px; letter-spacing: .17em; }
.login-intro h1 { margin: 0 0 10px; color: #142840; font-size: clamp(31px, 3.1vw, 39px); line-height: 1.1; letter-spacing: -.045em; }
.login-intro > p:last-child { max-width: 370px; margin: 0; color: #6b7888; font-size: 13px; line-height: 1.65; }
.stack-form.login-form { margin-top: 28px; }
.login-form .field-group { margin-bottom: 18px; }
.login-form .field-group > label { margin-bottom: 8px; color: #263a51; font-size: 11px; font-weight: 750; }
.login-input-wrap { position: relative; }
.login-input-wrap .login-input { width: 100%; min-height: 51px; padding: 12px 46px; color: #162a42; border: 1px solid #d5dee8; border-radius: 10px; background: #fbfcfe; outline: none; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.login-input-wrap .login-input::placeholder { color: #9aa6b3; }
.login-input-wrap .login-input:hover { border-color: #b5c4d3; }
.login-input-wrap .login-input:focus { border-color: #0871b9; background: #fff; box-shadow: 0 0 0 4px rgba(8, 113, 185, .11); }
.login-input-wrap .login-password { padding-right: 48px; }
.login-input-icon { position: absolute; z-index: 1; top: 50%; left: 16px; width: 18px; height: 18px; fill: none; stroke: #7c8b9c; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transform: translateY(-50%); }
.login-input-wrap:focus-within .login-input-icon { stroke: #0871b9; }
.password-toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; color: #748497; border: 0; border-radius: 7px; background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: #0871b9; background: #edf6fb; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-form .has-error .login-input { border-color: #c13a4a; background: #fffafb; }
.login-form .field-group small { margin: 6px 0 0 2px; font-size: 10px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -1px 0 21px; }
.remember-option { display: inline-flex; align-items: center; gap: 9px; color: #526175; cursor: pointer; font-size: 11px; }
.login-form .remember-checkbox { width: 17px; height: 17px; min-height: 17px; margin: 0; padding: 0; flex: none; accent-color: #0871b9; cursor: pointer; box-shadow: none; }
.secure-label { display: inline-flex; align-items: center; gap: 5px; color: #758396; font-size: 9px; }
.secure-label svg { width: 13px; height: 13px; fill: none; stroke: #198b62; stroke-width: 1.8; stroke-linejoin: round; }
.login-submit { min-height: 51px; margin: 0; gap: 9px; border-radius: 10px; background: linear-gradient(135deg, #0871b9, #075c99); box-shadow: 0 9px 20px rgba(8, 98, 163, .24); font-size: 12px; letter-spacing: .01em; }
.login-submit:hover { background: linear-gradient(135deg, #0866a7, #064f84); box-shadow: 0 11px 24px rgba(8, 98, 163, .3); }
.login-submit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.login-submit:hover svg { transform: translateX(2px); }
.login-divider { display: flex; align-items: center; gap: 13px; margin: 17px 0; color: #8b97a5; font-size: 11px; }
.login-divider::before, .login-divider::after { height: 1px; flex: 1; background: #e2e7ed; content: ""; }
.microsoft-login { min-height: 51px; gap: 11px; color: #37475a; border-color: #cdd6df; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(25, 45, 70, .06); }
.microsoft-login:hover { color: #1f334b; border-color: #9eadbc; background: #f8fafc; box-shadow: 0 7px 17px rgba(25, 45, 70, .1); }
.microsoft-login svg { width: 19px; height: 19px; flex: none; }
.login-help { margin: 19px 0 0; color: #8a96a4; font-size: 9px; text-align: center; }
.login-alert { display: flex; align-items: center; gap: 10px; margin: 20px 0 -9px; }
.login-alert > span { display: grid; width: 25px; height: 25px; place-items: center; flex: none; border-radius: 50%; color: white; background: #c13a4a; font-weight: 800; }
.login-alert p { margin: 0; line-height: 1.4; }

.login-visual { position: relative; min-width: 0; overflow: hidden; color: white; background: linear-gradient(148deg, #102b49 0%, #093b64 54%, #075182 100%); isolation: isolate; }
.login-visual::before { position: absolute; z-index: -1; top: -19%; right: -19%; width: 470px; height: 470px; content: ""; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; }
.login-visual::after { position: absolute; z-index: -1; right: -10%; bottom: -34%; width: 560px; height: 560px; content: ""; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.login-glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 88% 13%, rgba(33, 135, 200, .42), transparent 35%), radial-gradient(circle at 4% 90%, rgba(230, 185, 75, .18), transparent 27%); }
.visual-copy { position: absolute; top: 10.5%; left: 9%; z-index: 2; width: 82%; }
.visual-copy > span { color: #73b8e4; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.visual-copy h2 { margin: 15px 0 13px; font-size: clamp(31px, 3.35vw, 45px); line-height: 1.12; letter-spacing: -.045em; }
.visual-copy p { max-width: 480px; margin: 0; color: #b7ccdc; font-size: 11px; line-height: 1.7; }
.visual-dashboard { position: absolute; z-index: 2; right: 10%; bottom: 15%; width: min(76%, 450px); padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 15px; background: rgba(6, 32, 57, .62); box-shadow: 0 24px 55px rgba(0, 17, 35, .3); backdrop-filter: blur(14px); }
.visual-dashboard-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #88abc3; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.visual-dashboard-head div { display: flex; gap: 5px; }
.visual-dashboard-head i { width: 5px; height: 5px; border-radius: 50%; background: #3d759b; }
.visual-dashboard-head i:first-child { background: #e6b94b; }
.visual-metric-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 17px 0 11px; }
.visual-metric-row small, .visual-metric-row strong { display: block; }
.visual-metric-row small { margin-bottom: 2px; color: #86a7bf; font-size: 7px; letter-spacing: .1em; }
.visual-metric-row strong { font-size: 30px; line-height: 1; }
.visual-trend { padding: 4px 7px; color: #63dbab; border-radius: 12px; background: rgba(48, 186, 132, .13); font-size: 8px; font-weight: 800; }
.visual-progress { height: 6px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.visual-progress i { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2497d6, #62b8e6); }
.visual-workstreams { margin-top: 13px; }
.visual-workstreams > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 1px; color: #d8e5ee; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 9px; }
.visual-workstreams > div:last-child { border-bottom: 0; }
.visual-workstreams span { display: flex; align-items: center; gap: 8px; }
.visual-workstreams span i { width: 7px; height: 7px; border-radius: 50%; }
.dot-blue { background: #4fa9db; box-shadow: 0 0 0 3px rgba(79, 169, 219, .12); }
.dot-gold { background: #e6b94b; box-shadow: 0 0 0 3px rgba(230, 185, 75, .12); }
.dot-green { background: #50ce9d; box-shadow: 0 0 0 3px rgba(80, 206, 157, .12); }
.visual-pill { position: absolute; z-index: 3; display: flex; min-width: 186px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: rgba(20, 67, 102, .84); box-shadow: 0 14px 34px rgba(0, 17, 35, .24); backdrop-filter: blur(12px); }
.visual-pill > i { display: grid; width: 30px; height: 30px; place-items: center; flex: none; border-radius: 8px; color: #0d563e; background: #5ad7a7; font-size: 10px; font-style: normal; font-weight: 900; }
.visual-pill span, .visual-pill strong, .visual-pill small { display: block; }
.visual-pill strong { font-size: 9px; }
.visual-pill small { margin-top: 1px; color: #a7c0d2; font-size: 7px; }
.visual-pill-one { bottom: 11%; left: 6%; }
.visual-pill-two { right: 5%; bottom: 42%; min-width: 158px; }
.visual-pill-two > i { color: #6b4f12; background: #e6b94b; }
.login-visual footer { position: absolute; right: 9%; bottom: 4.5%; left: 9%; color: #7597b1; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-visual footer i { display: inline-block; width: 3px; height: 3px; margin: 0 7px 2px; border-radius: 50%; background: #e6b94b; }

@media (max-width: 980px) {
  .login-shell { width: min(580px, 100%); min-height: min(720px, calc(100vh - 48px)); grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: inherit; padding: 42px clamp(38px, 8vw, 68px); }
  .login-content { width: min(100%, 420px); margin-inline: auto; }
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-wrap: wrap; }
  .search-field { max-width: none; flex-basis: 100%; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-collapsed .sidebar { width: 250px; }
  .sidebar-collapsed .app-main { margin-left: 0; }
  .sidebar-collapse { display: none; }
  .sidebar-collapsed .brand { align-items: center; }
  .sidebar-collapsed .brand-logo-full { display: block; }
  .sidebar-collapsed .brand-logo-symbol { display: none; }
  .sidebar-collapsed .brand-product { display: flex; }
  .sidebar-collapsed .user-card > span:last-child { display: block; }
  .sidebar-collapsed .main-nav { padding-inline: 14px; }
  .sidebar-collapsed .main-nav a { justify-content: flex-start; gap: 12px; font-size: 13px; }
  .sidebar-collapsed .main-nav a span { width: 20px; }
  .sidebar-collapsed .logout-link { font-size: 11px; text-align: left; }
  .sidebar-collapsed .logout-link::before { content: none; }
  .mobile-menu { position: fixed; z-index: 35; top: 14px; left: 14px; display: inline-flex; width: 88px; height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; color: #17344f; border: 1px solid #dce4ec; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 7px 22px rgba(21, 40, 63, .14); cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .04em; transition: left .2s ease, width .2s ease, color .16s ease, box-shadow .16s ease; }
  .mobile-menu:hover { color: #0871b9; box-shadow: 0 9px 26px rgba(21, 40, 63, .18); }
  .mobile-menu[aria-expanded="true"] { left: 192px; width: 43px; padding: 0; color: #5c6b7b; box-shadow: 0 4px 14px rgba(21, 40, 63, .1); }
  .mobile-menu[aria-expanded="true"] .mobile-menu-label { display: none; }
  .mobile-overlay { position: fixed; z-index: 20; inset: 0; background: rgba(10,16,28,.45); }
  .app-main { margin-left: 0; padding: 74px 18px 40px; }
  .dashboard-grid, .analytics-grid, .detail-layout { grid-template-columns: 1fr; }
  .facts-card { position: static; }
}

@media (max-width: 580px) {
  .page-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 104px; }
  .dashboard-grid { gap: 14px; }
  .status-breakdown, .dependency-columns, .metric-grid { grid-template-columns: 1fr; }
  .metric-grid > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .span-2, .span-all { grid-column: auto; }
  .entity-form fieldset { padding: 19px; }
  .comment-form { align-items: stretch; flex-direction: column; }
  .sharepoint-input-row { flex-direction: column; }
  .file-row { grid-template-columns: auto 1fr; }
  .file-actions { grid-column: 2; flex-wrap: wrap; }
  .notification-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 14px; }
  .notification-icon { width: 38px; height: 38px; border-radius: 11px; }
  .notification-heading { align-items: flex-start; }
  .notification-state { min-height: 23px; padding: 3px 8px; }
  .action-controls form { grid-template-columns: 1fr; }
  .progress-update-form { padding-top: 14px; }
  .auth-main { padding: 0; }
  .login-shell { min-height: 100vh; border-radius: 0; }
  .login-panel { min-height: 100vh; padding: 28px 25px; }
  .login-brand { gap: 15px; }
  .login-brand img { width: 148px; }
  .login-product { padding: 6px 9px; font-size: 8px; }
  .login-content { padding-top: 35px; }
  .login-intro h1 { font-size: 31px; }
  .login-options { align-items: flex-start; flex-direction: column; gap: 10px; }
  .login-submit { margin-top: 2px; }
}

/* Enterprise UI refinements */
:root {
  --purple: #7a4fb0;
  --purple-soft: #f2ebfa;
  --focus-ring: 0 0 0 3px rgba(49, 87, 200, .16);
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.main-nav { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #43516d transparent; }
.topbar { min-height: 55px; margin-top: -30px; }
.topbar-path { display: flex; align-items: center; color: #8a93a3; }
.topbar-path i { margin: 0 8px; color: #c2c8d1; font-style: normal; }
.topbar-path strong { color: #596376; font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.notification-button { position: relative; display: grid; width: 36px; height: 36px; place-items: center; color: #526078; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 17px; }
.notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-button:hover { color: var(--blue); border-color: #c7d1eb; }
.notification-button b { position: absolute; top: -5px; right: -5px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; color: white; border: 2px solid var(--canvas); border-radius: 10px; background: var(--red); font-size: 7px; }
.user-menu { position: relative; text-transform: none; letter-spacing: 0; }
.user-menu summary { display: flex; min-width: 190px; align-items: center; gap: 9px; padding: 5px 8px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary, .user-menu summary:hover { border-color: var(--line); background: white; }
.user-menu-identity { min-width: 0; flex: 1; }
.user-menu-identity strong, .user-menu-identity small { display: block; overflow: hidden; max-width: 120px; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-identity strong { color: var(--ink); font-size: 10px; }
.user-menu-identity small { color: var(--muted); font-size: 8px; }
.user-chevron { color: #8a94a5; font-size: 13px; transition: transform .15s ease; }
.user-menu[open] .user-chevron { transform: rotate(180deg); }
.user-menu-panel { position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; display: grid; width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 18px 45px rgba(23, 35, 59, .16); }
.user-menu-panel > div { margin-bottom: 5px; padding: 10px; border-bottom: 1px solid var(--line); }
.user-menu-panel > div strong, .user-menu-panel > div small { display: block; }
.user-menu-panel > div strong { color: var(--ink); font-size: 11px; }
.user-menu-panel > div small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; padding: 9px 10px; color: #4c576b; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; text-align: left; }
.user-menu-panel a:hover, .user-menu-panel button:hover { color: var(--blue); background: var(--blue-soft); }
.user-menu-panel .user-menu-logout { color: #b42332; }
.user-menu-panel .user-menu-logout:hover { color: #9f1727; background: #fff0f2; }

.toast-stack { display: grid; gap: 9px; }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin: 0; padding: 13px 13px; animation: toast-in .22s ease-out; }
.toast p { margin: 0; font-size: 11px; font-weight: 650; }
.toast-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.toast.error .toast-indicator { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.toast.warning .toast-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.toast button { width: 27px; height: 27px; padding: 0; color: currentColor; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 17px; opacity: .6; }
.toast button:hover { background: rgba(0, 0, 0, .05); opacity: 1; }
.toast.is-leaving { animation: toast-out .18s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(14px); } }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { position: absolute; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: currentColor; border-radius: 50%; content: ""; animation: button-spin .65s linear infinite; }
.btn-secondary.is-loading::after { border-color: rgba(49, 87, 200, .22); border-top-color: var(--blue); }
@keyframes button-spin { to { transform: rotate(360deg); } }
.form-control.is-invalid { border-color: #db7783; background: #fffafb; }
.form-control.is-invalid:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field-error { display: block; margin-top: 5px; color: var(--red) !important; font-size: 9px; font-weight: 650; }
.audit-table code { display: block; min-width: 180px; max-width: 360px; overflow-wrap: anywhere; color: #536078; font: 8px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: normal; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { min-height: 112px; gap: 13px; padding: 18px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.kpi-card:hover { border-color: #cbd4e6; box-shadow: 0 10px 26px rgba(27, 39, 65, .1); transform: translateY(-2px); }
.kpi-card .stat-icon { width: 37px; height: 37px; font-size: 14px; }
.kpi-card strong { font-size: 25px; }
.accent-purple .stat-icon { color: var(--purple); background: var(--purple-soft); }
.deliverable-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.deliverable-summary-grid .summary-active { border-color: #9db0e5; box-shadow: 0 8px 24px rgba(49, 87, 200, .12); }
.deliverables-table { min-width: 1180px; }
.deliverables-table td:first-child { min-width: 230px; }
.deliverables-table-list { display: grid; min-width: 260px; gap: 7px; margin: 0; padding: 0; list-style: none; }
.deliverables-table-list li { display: flex; align-items: flex-start; gap: 7px; color: #465066; line-height: 1.4; }
.deliverables-table-list li > span:first-child { color: var(--amber); font-weight: 800; }
.deliverable-row-completed .deliverables-table-list li > span:first-child { color: var(--green); }
.deliverable-state { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.deliverable-state.is-completed { color: #13714e; background: var(--green-soft); }
.deliverable-state.is-pending { color: #985b0b; background: var(--amber-soft); }
.deliverable-row-completed { background: #fbfefc; }
.dashboard-overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 20px; margin-bottom: 20px; }
.donut-layout { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 22px; padding: 24px; }
.donut-chart { position: relative; display: grid; width: 160px; height: 160px; place-items: center; border-radius: 50%; background: var(--donut); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03); }
.donut-chart::after { position: absolute; width: 102px; height: 102px; border-radius: 50%; background: white; box-shadow: 0 3px 12px rgba(23, 35, 59, .08); content: ""; }
.donut-chart > div { position: relative; z-index: 1; text-align: center; }
.donut-chart strong, .donut-chart span { display: block; }
.donut-chart strong { font-size: 27px; line-height: 1; }
.donut-chart span { margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.donut-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; }
.donut-legend a { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 14px; padding: 7px 0; border-bottom: 1px solid #f0f2f5; }
.donut-legend a:hover > span { color: var(--blue); }
.donut-legend a > span { display: flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; color: #586276; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend a > strong { font-size: 10px; white-space: nowrap; }
.donut-legend a > strong small { margin-left: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.focus-list { padding: 7px 19px 12px; }
.focus-list > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.focus-list > a:last-child { border: 0; }
.focus-list > a:hover > i { color: var(--blue); transform: translateX(2px); }
.focus-list strong, .focus-list small { display: block; }
.focus-list strong { font-size: 11px; }
.focus-list small { color: var(--muted); font-size: 9px; }
.focus-list > a > i { color: #9ba4b2; font-style: normal; transition: .15s ease; }
.focus-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; }
.danger-soft { color: var(--red); background: var(--red-soft); }
.purple-soft { color: var(--purple); background: var(--purple-soft); }
.trend-panel { min-height: 285px; }
.command-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.command-links a { display: grid; min-height: 105px; grid-template-columns: auto 1fr; align-content: center; gap: 0 11px; padding: 17px; background: white; }
.command-links a:hover { background: #fafbff; }
.command-links a > span { display: grid; width: 34px; height: 34px; place-items: center; grid-row: 1 / span 2; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-size: 14px; }
.command-links strong, .command-links small { display: block; }
.command-links strong { align-self: end; font-size: 10px; }
.command-links small { color: var(--muted); font-size: 8px; }

.action-controls.single-control { grid-template-columns: 1fr; }
.gantt-header, .gantt-row { min-width: 1420px; grid-template-columns: 720px minmax(700px, 1fr); }
.gantt-header > .gantt-meta { display: grid; padding: 0 14px; }
.gantt-meta { display: grid; min-width: 0; grid-template-columns: 112px 56px minmax(185px, 1fr) 68px 72px 52px 76px; align-items: center; gap: 9px; padding: 8px 14px; border-right: 1px solid var(--line); }
.gantt-meta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-meta-head { color: #778196; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gantt-phase { display: flex; align-items: center; gap: 6px; color: #586276; font-size: 8px; }
.gantt-phase i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--phase-color); }
.gantt-action-name strong, .gantt-action-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-action-name strong { font-size: 9px; }
.gantt-action-name small { color: var(--purple); font-size: 7px; }
.gantt-meta time, .gantt-progress, .gantt-dependencies { color: #606b7e; font-size: 8px; }
.gantt-progress { color: var(--blue); font-weight: 800; }
.gantt-row.is-critical { box-shadow: inset 3px 0 #df9da5; }
.gantt-row.is-overdue { background: #fffafb; }
.gantt-row.is-completed { background: #fbfefc; opacity: .82; }
.gantt-bar.critical { box-shadow: 0 0 0 2px rgba(193, 58, 74, .24), 0 2px 5px rgba(20, 30, 50, .13); }
.gantt-bar.overdue { outline: 2px solid rgba(193, 58, 74, .3); outline-offset: 1px; }
.gantt-milestone.critical { background: var(--red); }
.gantt-today { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--left); border-left: 1px solid rgba(193, 58, 74, .65); pointer-events: none; }
.gantt-scale .gantt-today b { position: absolute; top: 4px; left: 4px; padding: 2px 4px; color: var(--red); border-radius: 4px; background: var(--red-soft); font-size: 6px; font-style: normal; white-space: nowrap; }
.gantt-legend .legend-today { width: 2px; height: 11px; border-radius: 0; background: var(--red); }

@media (max-width: 1180px) {
  .dashboard-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar { margin-top: -54px; margin-left: 48px; }
  .topbar-path { display: none; }
  .topbar { justify-content: flex-end; }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 150px 1fr; }
  .donut-chart { width: 135px; height: 135px; }
  .donut-chart::after { width: 86px; height: 86px; }
}

@media (max-width: 580px) {
  .topbar { margin-bottom: 24px; }
  .user-menu summary { min-width: 0; }
  .user-menu-identity { display: none; }
  .user-menu-panel { position: fixed; top: 61px; right: 14px; }
  .checkbox-choice-list { grid-template-columns: 1fr; }
  .notification-button { width: 34px; height: 34px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { min-height: 96px; padding: 13px; }
  .kpi-card .stat-icon { width: 31px; height: 31px; }
  .kpi-card strong { font-size: 21px; }
  .kpi-card small { display: none; }
  .deliverable-summary-grid { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; grid-template-columns: 1fr; }
  .command-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ERPFlow typography — local Inter variable font optimized for product interfaces. */
html { font-family: var(--font-sans); font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-optical-sizing: auto;
  font-kerning: normal;
  line-height: 1.5;
  letter-spacing: -.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
input, select, textarea, button { font-family: inherit; }

h1, h2, h3, legend {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.025em;
}
.page-header h1,
.detail-header h1,
.login-intro h1 { font-weight: 750; }
.panel-heading h2,
.facts-card h2,
.entity-form legend { font-weight: 700; }
td strong,
.focus-list strong,
.command-links strong { font-weight: 650; }
.form-control,
.stack-form input,
.filter-bar input,
.filter-bar select { font-weight: 450; }
.stat-card strong,
.metric-grid strong,
.reference,
.progress-cell small,
time { font-variant-numeric: tabular-nums; }

.brand .brand-product strong { font-size: .875rem; }
.brand .brand-product small { font-size: .8125rem; }
.main-nav a { font-size: .875rem; }
.main-nav .nav-section { font-size: .6875rem; }
.main-nav a .nav-count,
.sidebar-collapsed .main-nav a .nav-count { font-size: .625rem; }
.user-card strong { font-size: .8125rem; }
.user-card small,
.logout-link { font-size: .75rem; }

.topbar,
.topbar-path strong { font-size: .75rem; }
.topbar nav b,
.notification-button b { font-size: .625rem; }
.eyebrow { font-size: .75rem; }
.btn { min-height: 44px; font-size: .9375rem; font-weight: 650; }

.stat-card p { font-size: .8125rem; }
.stat-card small { font-size: .75rem; }
.bar-row > span,
.trend-chart strong { font-size: .75rem; }
.bar-row > strong,
.trend-chart small { font-size: .6875rem; }
.critical-strip > div strong { font-size: .875rem; }
.critical-strip > a span,
.critical-strip > a small { font-size: .75rem; }
.critical-strip > a strong { font-size: .8125rem; }
.admin-link span { font-size: .8125rem; }

.panel-heading h2 { font-size: 1.0625rem; }
.panel-heading p,
.panel-heading > a { font-size: .8125rem; }
.status-summary span:nth-child(2),
.phase-row { font-size: .875rem; }

th { font-size: .75rem; }
td,
td strong { font-size: .875rem; }
.table-subtitle,
.badge,
.progress-cell small { font-size: .75rem; }
.person i { font-size: .6875rem; }

.filter-bar select,
.filter-bar input { min-height: 44px; font-size: .875rem; }
.check-filter,
.clear-filter { font-size: .8125rem; }
.table-meta { font-size: .75rem; }
.table-meta strong { font-size: .8125rem; }
.dependency-list a { font-size: .6875rem; }
.pagination,
.breadcrumb { font-size: .8125rem; }
.reference-chip { font-size: .75rem; }

.metric-grid small,
.dependency-columns h3,
.facts-card dt { font-size: .75rem; }
.dependency-card > span,
.dependency-card small,
.comment-file,
.timeline-item time,
.critical-mark { font-size: .6875rem; }
.dependency-card strong,
.timeline-item p { font-size: .8125rem; }
.empty-inline,
.timeline-item div div,
.facts-card dd { font-size: .875rem; }
.facts-card h2,
.entity-form legend,
.delay-panel h2 { font-size: 1rem; }

.field-group label { font-size: .8125rem; }
.field-group small,
.errorlist,
.field-error { font-size: .75rem; }
.form-control,
.stack-form input { min-height: 46px; font-size: .9375rem; }
.form-alert,
.error-report p,
.error-report li { font-size: .875rem; }
.delay-panel p,
.history-row strong,
.history-row p { font-size: .8125rem; }
.file-row strong,
.notification-item strong { font-size: .875rem; }
.file-row small,
.history-row small,
.notification-item small { font-size: .75rem; }
.notification-item span { font-size: .8125rem; }

.gantt-header,
.gantt-legend,
.gantt-action-name strong { font-size: .75rem; }
.gantt-scale span,
.gantt-label small,
.gantt-meta-head,
.gantt-phase,
.gantt-meta time,
.gantt-progress,
.gantt-dependencies { font-size: .6875rem; }
.gantt-label strong { font-size: .8125rem; }
.gantt-bar > span,
.gantt-action-name small,
.gantt-scale .gantt-today b { font-size: .625rem; }

.login-product,
.login-form .field-group small { font-size: .75rem; }
.login-intro .eyebrow { font-size: .6875rem; }
.login-intro > p:last-child,
.login-input-wrap .login-input,
.login-submit,
.microsoft-login { font-size: .9375rem; }
.login-form .field-group > label,
.remember-option { font-size: .8125rem; }
.secure-label,
.login-help,
.login-divider { font-size: .6875rem; }
.visual-copy > span,
.visual-dashboard-head,
.visual-metric-row small,
.visual-pill small,
.login-visual footer { font-size: .625rem; }
.visual-copy p,
.visual-workstreams > div,
.visual-pill strong { font-size: .75rem; }
.visual-trend { font-size: .6875rem; }

.user-menu-identity strong,
.user-menu-panel a,
.user-menu-panel button { font-size: .8125rem; }
.user-menu-identity small,
.user-menu-panel > div small { font-size: .75rem; }
.user-menu-panel > div strong,
.toast p { font-size: .875rem; }
.deliverable-preview,
.deliverable-state,
.progress-range-heading label,
.progress-range-heading output,
.progress-rule-message,
.notification-date,
.audit-table code { font-size: .75rem; }
.deliverable-preview > b,
.progress-range-scale,
.file-icon { font-size: .6875rem; }
.notification-message { font-size: .8125rem; }
.donut-chart span,
.donut-legend a > span,
.donut-legend a > strong small,
.focus-list small,
.command-links small { font-size: .75rem; }
.donut-legend a > strong,
.focus-list strong,
.command-links strong { font-size: .8125rem; }

@media (max-width: 820px) {
  .sidebar-collapsed .main-nav a,
  .mobile-menu { font-size: .875rem; }
}
