:root {
  --ink: #172522;
  --muted: #65736f;
  --subtle: #8b9894;
  --line: #dde5e2;
  --line-soft: #eaf0ee;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --brand: #075e54;
  --brand-dark: #063f38;
  --brand-soft: #e2f2ed;
  --accent: #d9a928;
  --danger: #b5473c;
  --danger-soft: #fcecea;
  --warning: #9a6b08;
  --warning-soft: #fff4d6;
  --success: #19725c;
  --success-soft: #e2f3ed;
  --shadow: 0 1px 2px rgba(20, 42, 36, .04), 0 10px 30px rgba(20, 42, 36, .06);
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 264px; display: flex; flex-direction: column; background: var(--brand-dark); color: #fff; }
.brand { height: 80px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; color: var(--brand); border-radius: 10px; }
.brand-mark svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.brand strong, .brand span { display: block; }
.brand strong { font: 700 14px/1.3 Manrope, sans-serif; }
.brand span { margin-top: 2px; color: #a8c4bd; font-size: 12px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 22px 12px; }
.nav-label { margin: 28px 12px 9px; color: #729990; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: #bcd0cb; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; width: 3px; height: 25px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.project-nav { display: grid; gap: 3px; }
.project-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--project-accent); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.sidebar-footer { width: 100%; display: flex; align-items: center; gap: 10px; padding: 18px 20px; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.08); color: #fff; text-align: left; cursor: pointer; }
.sidebar-footer:hover { background: rgba(255,255,255,.06); }
.profile-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #d4a82d; color: #2d291d; font-weight: 700; font-size: 12px; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { font-size: 13px; }
.sidebar-footer span { margin-top: 2px; color: #97b3ad; font-size: 10px; }
.sidebar-footer > div:nth-child(2) { min-width: 0; flex: 1; }
.profile-chevron { width: 15px; height: 15px; color: #769d94; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .95fr) minmax(520px, 1.15fr); background: #fff; }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 52px; overflow: hidden; background: linear-gradient(145deg, #043b35, #087064); color: #fff; }
.login-visual::before, .login-visual::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.login-visual::before { width: 620px; height: 620px; right: -300px; bottom: -160px; box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 170px rgba(255,255,255,.018); }
.login-visual::after { width: 280px; height: 280px; left: -150px; top: 25%; box-shadow: 0 0 0 55px rgba(255,255,255,.025); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font: 700 15px Manrope, sans-serif; }
.login-brand span { margin-top: 3px; color: #acd0c8; font-size: 11px; }
.login-message { position: relative; z-index: 1; max-width: 530px; }
.login-message .eyebrow { color: #d7b747; }
.login-message h1 { max-width: 520px; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; }
.login-message > p:last-child { max-width: 450px; margin: 22px 0 0; color: #c2d9d4; font-size: 17px; line-height: 1.6; }
.login-footer { position: relative; z-index: 1; margin: 0; color: #91b9b0; font-size: 11px; letter-spacing: .06em; }
.login-panel { display: grid; place-items: center; padding: 50px; background: #f7f9f8; }
.login-card { width: min(420px, 100%); padding: 40px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 18px 55px rgba(18, 46, 39, .1); }
.login-lock { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.login-lock svg { width: 22px; height: 22px; }
.login-card h2 { font-size: 28px; }
.login-card > p:not(.eyebrow):not(.form-error) { margin: 9px 0 28px; color: var(--muted); line-height: 1.5; }
.login-card .field { margin-top: 17px; }
.login-submit { width: 100%; margin-top: 22px; min-height: 46px; }
.login-help { display: block; margin-top: 18px; color: var(--subtle); font-size: 11px; text-align: center; }
.form-error { margin: 13px 0 0 !important; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; }
.breadcrumbs span { color: var(--muted); }
.breadcrumbs span::after { content: '/'; margin-left: 9px; color: #b7c1be; }
.breadcrumbs strong { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.today { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.today svg { width: 17px; height: 17px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: #b9c9c4; background: #f8faf9; }
.icon-button svg { width: 18px; height: 18px; }
.menu-button { display: none; }
.content { max-width: 1500px; margin: 0 auto; padding: 36px 38px 60px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.page-heading p:not(.eyebrow) { max-width: 680px; margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: var(--line); background: #fff; }
.button-secondary:hover, .button-ghost:hover { border-color: #b8c7c3; background: #f7faf9; }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-danger { border-color: #efc9c5; background: #fff; color: var(--danger); }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.summary-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 11px; color: var(--brand); background: var(--brand-soft); }
.summary-icon.warning { color: var(--warning); background: var(--warning-soft); }
.summary-icon.danger { color: var(--danger); background: var(--danger-soft); }
.summary-icon.neutral { color: #536b86; background: #eaf0f7; }
.summary-card strong { display: block; font: 700 25px/1 Manrope, sans-serif; }
.summary-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-actions { display: flex; align-items: center; gap: 9px; }
.filter-select { min-height: 36px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; }
.project-list { display: grid; }
.project-row { position: relative; display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(150px, 1fr) 110px 120px 28px; align-items: center; gap: 18px; min-height: 94px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: .2s ease; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: #f9fbfa; }
.project-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.project-monogram { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--project-accent) 14%, white); color: var(--project-accent); font: 700 13px Manrope, sans-serif; }
.project-identity strong, .project-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-identity strong { font-weight: 600; }
.project-identity span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.stage-name { color: var(--muted); font-size: 12px; }
.stage-name strong { display: block; margin-top: 4px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.progress-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 10px; background: #e7eeeb; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--project-accent); }
.progress-wrap span { width: 31px; color: var(--muted); font-size: 11px; }
.release-date span, .release-date strong { display: block; }
.release-date span { color: var(--muted); font-size: 11px; }
.release-date strong { margin-top: 4px; font-size: 12px; font-weight: 600; }
.chevron { color: #99a6a2; }

.task-feed { padding: 5px 20px 12px; }
.task-item { display: grid; grid-template-columns: 11px 1fr auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.task-item:last-child { border-bottom: 0; }
.task-marker { width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--brand); border-radius: 50%; }
.task-item.overdue .task-marker { border-color: var(--danger); background: var(--danger-soft); }
.task-item strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.task-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.task-due { text-align: right; }
.task-due strong { color: var(--muted); font-size: 11px; font-weight: 500; }
.task-item.overdue .task-due strong { color: var(--danger); }
.empty-state { padding: 40px 22px; color: var(--muted); text-align: center; }
.empty-state svg { width: 28px; height: 28px; margin-bottom: 10px; color: #91a29d; }

.project-hero { position: relative; padding: 26px 28px; margin-bottom: 20px; overflow: hidden; background: linear-gradient(120deg, var(--brand-dark), #0b655a); border-radius: 16px; color: #fff; box-shadow: var(--shadow); }
.project-hero::after { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; top: -130px; border: 55px solid rgba(255,255,255,.05); border-radius: 50%; }
.project-hero-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; }
.project-hero .eyebrow { color: #a6d0c7; }
.project-hero h1 { font-size: 32px; }
.project-hero p { max-width: 620px; margin: 9px 0 0; color: #c6dbd6; line-height: 1.5; }
.project-hero .button-secondary { color: var(--brand-dark); }
.hero-meta { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr repeat(3, minmax(100px, .55fr)); gap: 22px; margin-top: 28px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-meta-label { display: block; margin-bottom: 7px; color: #98bdb5; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-meta strong { font-size: 13px; font-weight: 600; }
.hero-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.hero-progress .progress-track { background: rgba(255,255,255,.16); }
.hero-progress .progress-bar { background: #e6bd47; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border-radius: 20px; color: #40514d; background: #edf1f0; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.complete, .status-pill.on-track { color: var(--success); background: var(--success-soft); }
.status-pill.in-progress { color: #35658c; background: #e7f0f7; }
.status-pill.blocked, .status-pill.needs-attention { color: var(--danger); background: var(--danger-soft); }
.status-pill.not-started { color: #6f7875; background: #eef1f0; }

.detail-tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tab-button { min-height: 35px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.tab-button.active { background: var(--brand-soft); color: var(--brand-dark); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .75fr); gap: 20px; align-items: start; }
.detail-layout-simple { grid-template-columns: 1fr; }
.detail-main { display: grid; gap: 20px; }
.timeline { padding: 8px 20px 22px; }
.milestone { position: relative; display: grid; grid-template-columns: 35px 1fr auto; gap: 13px; padding: 16px 0; }
.milestone:not(:last-child)::before { content: ''; position: absolute; top: 47px; bottom: -14px; left: 17px; width: 1px; background: var(--line); }
.milestone-marker { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; color: #8d9a96; font-size: 11px; font-weight: 700; }
.milestone.complete .milestone-marker { border-color: var(--success); background: var(--success); color: #fff; }
.milestone.in-progress .milestone-marker { border-color: #40769d; color: #40769d; box-shadow: 0 0 0 5px #edf4f8; }
.milestone.blocked .milestone-marker { border-color: var(--danger); color: var(--danger); }
.milestone-main { min-width: 0; }
.milestone-main h3 { margin-top: 1px; }
.milestone-details { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.milestone-details span { display: inline-flex; align-items: center; gap: 5px; }
.milestone-details svg { width: 14px; height: 14px; }
.milestone-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mini-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.mini-button:hover { border-color: var(--line); background: #f7faf9; color: var(--ink); }
.mini-button svg { width: 15px; height: 15px; }

.tasks-table { width: 100%; border-collapse: collapse; }
.tasks-table th { padding: 10px 16px; background: #f8faf9; color: var(--muted); font-size: 10px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.tasks-table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 12px; }
.task-title-cell strong, .task-title-cell span { display: block; }
.task-title-cell strong { font-size: 13px; font-weight: 600; }
.task-title-cell span { max-width: 300px; margin-top: 3px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority { font-size: 11px; font-weight: 600; }
.priority.high { color: var(--danger); }
.priority.medium { color: var(--warning); }
.table-actions { display: flex; justify-content: flex-end; }

.activity-list { padding: 4px 20px 10px; }
.activity { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.activity-icon svg { width: 15px; height: 15px; }
.activity p { margin: 2px 0 6px; color: #34433f; line-height: 1.45; }
.activity-meta { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.activity-actions { display: flex; }

.insight-stack { display: grid; gap: 20px; }
.countdown { padding: 22px; background: linear-gradient(145deg, #fff, #f6faf8); }
.countdown-number { margin-top: 8px; font: 800 46px/1 Manrope, sans-serif; color: var(--brand); letter-spacing: -.06em; }
.countdown-number span { margin-left: 5px; color: var(--muted); font: 600 13px DM Sans, sans-serif; letter-spacing: 0; }
.countdown p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.health-card { padding: 20px; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.health-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.legend { display: grid; gap: 11px; padding: 18px 20px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.legend-key { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #aeb8b5; }
.legend-dot.complete { background: var(--success); }
.legend-dot.progress { background: #40769d; }
.legend-dot.blocked { background: var(--danger); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6, 24, 21, .58); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-header .eyebrow { margin-bottom: 4px; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 22px 24px; overflow-y: auto; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #45534f; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #ccd7d3; border-radius: 8px; outline: none; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
.toast-region { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { min-width: 260px; padding: 13px 16px; border-radius: 10px; background: #173d36; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: slide-in .25s ease; }
.toast.error { background: #813a34; }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } }
.loading-state { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid #dce7e3; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1150px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: minmax(200px, 1.3fr) minmax(140px, 1fr) 100px 28px; }
  .release-date { display: none; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; background: #f4f7f6; }
  .login-visual { min-height: auto; padding: 28px 28px 65px; }
  .login-message { margin-top: 75px; }
  .login-message h1 { font-size: 38px; }
  .login-footer { display: none; }
  .login-panel { margin-top: -32px; padding: 0 18px 35px; background: transparent; position: relative; z-index: 2; }
  .login-card { padding: 28px; }
  .app-shell { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 30px rgba(0,0,0,.15); }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: grid; }
  .topbar { height: 64px; padding: 0 18px; }
  .breadcrumbs span { display: none; }
  .content { padding: 26px 18px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .heading-actions { width: 100%; }
  .page-heading .heading-actions .button { flex: 1; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .project-hero-top { flex-direction: column; }
  .project-row { grid-template-columns: 1fr 80px 24px; gap: 12px; }
  .stage-name { display: none; }
}
@media (max-width: 560px) {
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { display: block; padding: 15px; }
  .summary-icon { width: 34px; height: 34px; margin-bottom: 15px; }
  .today { display: none; }
  .project-row { grid-template-columns: 1fr 24px; }
  .project-row .progress-wrap { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .detail-tabs { width: 100%; overflow-x: auto; }
  .tab-button { flex: 1; white-space: nowrap; }
  .tasks-table th:nth-child(2), .tasks-table td:nth-child(2), .tasks-table th:nth-child(4), .tasks-table td:nth-child(4) { display: none; }
  .modal-body { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
}
