:root {
  --ink: #20202b;
  --muted: #7b7c8d;
  --soft-muted: #a9aabd;
  --canvas: #f6f5fa;
  --surface: #ffffff;
  --line: #e9e8f0;
  --line-strong: #dcdbe7;
  --sidebar: #22212d;
  --sidebar-soft: #2d2b3a;
  --indigo: #6b5ae6;
  --indigo-deep: #4d3ec5;
  --strategy: #f1ae5f;
  --design: #7867ea;
  --development: #42a5aa;
  --content: #e87886;
  --launch: #8c9e50;
  --row-height: 49px;
  --task-width: 385px;
  --day-width: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { background: var(--canvas); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(107, 90, 230, .22); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 24px 18px 16px; color: #f7f6ff; background:
    radial-gradient(circle at 12% 8%, rgba(121, 104, 234, .17), transparent 23%), var(--sidebar);
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: #aaa7c1; font-size: 8px; font-weight: 800; letter-spacing: .24em; }
.brand-mark { position: relative; width: 30px; height: 30px; transform: rotate(-4deg); }
.brand-mark span { position: absolute; width: 19px; height: 7px; left: 4px; border-radius: 3px; transform: skewX(-26deg); }
.brand-mark span:nth-child(1) { top: 3px; background: #f2a754; }
.brand-mark span:nth-child(2) { top: 11px; left: 7px; background: #e97787; }
.brand-mark span:nth-child(3) { top: 19px; left: 10px; background: #7e6be9; }
.eyebrow { margin: 0 10px 8px; color: #858298; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.project-nav, .sidebar-section { display: grid; gap: 3px; }
.nav-item, .team-row { width: 100%; border: 0; border-radius: 9px; background: transparent; color: #aaa8ba; text-align: left; cursor: pointer; }
.nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; padding: 10px 11px; font-size: 13px; font-weight: 650; }
.nav-item:hover, .team-row:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 3px 0 #806dea; }
.nav-icon { font-size: 16px; color: #9390a8; }
.nav-item.active .nav-icon { color: #9888ef; }
.nav-count, .team-total { color: #777489; font-size: 10px; }
.sidebar-section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.team-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; padding: 8px 11px; font-size: 12px; }
.team-row.selected { color: #fff; background: rgba(255,255,255,.05); }
.team-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--design); }
.team-dot.all { background: #c8c6d4; }
.team-dot.strategy, .legend-bar.strategy { background: var(--strategy); }
.team-dot.design, .legend-bar.design { background: var(--design); }
.team-dot.development, .legend-bar.development { background: var(--development); }
.team-dot.content, .legend-bar.content { background: var(--content); }
.team-dot.launch, .legend-bar.launch { background: var(--launch); }
.sidebar-card { margin: auto 5px 20px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.04); }
.sidebar-card-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 8px; background: rgba(122,104,233,.16); color: #a899ff; }
.sidebar-card strong, .sidebar-card span, .sidebar-card small { display: block; }
.sidebar-card strong { font-size: 12px; }
.sidebar-card span { margin-top: 4px; color: #9a97aa; font-size: 10px; }
.sidebar-card small { margin-top: 7px; color: #747184; font-size: 9px; }
.mini-progress { height: 4px; margin-top: 12px; border-radius: 99px; background: #3c394a; overflow: hidden; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7563e6, #a58ff1); }
.profile { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 13px 6px 0; border-top: 1px solid rgba(255,255,255,.07); }
.profile strong, .profile span { display: block; }
.profile strong { font-size: 11px; }
.profile span { margin-top: 2px; color: #777486; font-size: 9px; }

.workspace { min-width: 0; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; gap: 8px; color: #a0a0ad; font-size: 11px; }
.breadcrumbs b { font-weight: 400; color: #cccad5; }
.breadcrumbs span:last-child { color: #575766; font-weight: 650; }
.topbar-actions, .title-actions, .toolbar-actions { display: flex; align-items: center; }
.topbar-actions { gap: 11px; }
.search-box { width: 210px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #faf9fc; color: #aaa9b6; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #a6a5b2; }
.search-box kbd { padding: 2px 5px; border: 1px solid #e0dfe7; border-radius: 4px; background: #fff; color: #9d9ca8; font-family: inherit; font-size: 8px; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.icon-button.subtle { color: #777487; }
.icon-button.bordered { border: 1px solid var(--line); background: #fff; color: #777684; }
.icon-button:hover { background: #f2f0f7; }
.notification { position: relative; color: #6b6b78; }
.notification i { position: absolute; width: 5px; height: 5px; top: 6px; right: 6px; border-radius: 50%; background: #e76b7d; box-shadow: 0 0 0 2px #fff; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border: 2px solid #fff; border-radius: 50%; background: #e9e5df; color: #4d4a47; font-size: 9px; font-weight: 800; box-shadow: 0 1px 3px rgba(30,25,50,.08); }
.avatar.large { width: 32px; height: 32px; border: 0; background: linear-gradient(145deg, #e4b078, #cf7a65); color: white; }
.avatar.coral { background: #f3c6be; color: #985f56; }
.avatar.blue { background: #bdd4ed; color: #4b7198; }
.avatar.gold { background: #ead3a2; color: #876d35; }
.avatar.more { background: #f0eef5; color: #797689; }
.avatar.tiny { display: inline-grid; width: 22px; height: 22px; margin-right: 7px; border: 0; vertical-align: middle; background: #f0d1c5; color: #8d5e53; font-size: 7px; }

.main-content { padding: 30px 30px 42px; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.status-line { display: flex; align-items: center; gap: 6px; color: #91909d; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #5eb68c; box-shadow: 0 0 0 3px rgba(94,182,140,.13); }
h1 { margin: 7px 0 5px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 3.2vw, 45px); font-weight: 500; letter-spacing: -.035em; }
.title-row p { margin: 0; color: var(--muted); font-size: 12px; }
.title-actions { gap: 8px; }
.interim-owner { display: flex; align-items: center; gap: 8px; margin-right: 10px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); }
.interim-owner strong, .interim-owner span { display: block; }
.interim-owner strong { color: #565460; font-size: 9px; }
.interim-owner span { margin-top: 2px; color: #9997a3; font-size: 7px; white-space: nowrap; }
.button, .tool-button { height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; padding: 0 13px; font-size: 10px; font-weight: 750; cursor: pointer; }
.button { border: 1px solid var(--line); }
.button.secondary { background: #fff; color: #5e5e6b; }
.button.primary { border-color: var(--indigo); background: var(--indigo); color: #fff; box-shadow: 0 5px 12px rgba(107,90,230,.18); }
.button.primary:hover { background: var(--indigo-deep); }
.button.wide { width: 100%; }

.stats-grid { display: grid; grid-template-columns: 1.22fr repeat(3, 1fr); gap: 12px; margin-bottom: 17px; }
.stat-card { min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 5px 18px rgba(35,30,65,.025); }
.stat-card.accent-indigo { justify-content: space-between; background: linear-gradient(140deg, #6960db 0%, #574cc6 100%); color: #fff; border: 0; box-shadow: 0 9px 24px rgba(87,76,198,.18); }
.stat-card > div:not(.stat-icon):first-child { min-width: 0; }
.stat-label { display: block; color: #9695a2; font-size: 9px; font-weight: 700; }
.accent-indigo .stat-label { color: #d8d3ff; }
.stat-card strong { display: block; margin-top: 4px; font-size: 25px; letter-spacing: -.03em; }
.stat-card small { display: block; margin-top: 3px; color: #aaa9b5; font-size: 8px; }
.stat-card small b { color: #dcd7ff; }
.stat-card .date-stat { font-size: 20px; }
.stat-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 10px; font-size: 15px; font-weight: 800; }
.stat-icon.peach { background: #fff0e7; color: #d68858; }
.stat-icon.lavender { background: #f0edff; color: #7866dc; }
.stat-icon.mint { background: #e8f5f0; color: #4d9b7b; }
.progress-ring { --progress: 34; position: relative; width: 51px; height: 51px; display: grid; place-items: center; flex: none; border-radius: 50%; background: conic-gradient(#fff calc(var(--progress) * 1%), rgba(255,255,255,.2) 0); }
.progress-ring::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: #6156d3; }
.progress-ring span { position: relative; font-size: 10px; font-weight: 850; }
.progress-ring span::after { content: '%'; font-size: 7px; }

.gantt-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 10px 28px rgba(34,29,64,.035); }
.mobile-view-tabs { display: none; }

.overview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f6f5f9; box-shadow: 0 10px 28px rgba(34,29,64,.035); }
.overview-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 13px; padding: 15px; }
.overview-panel { padding: 17px; border: 1px solid #e4e2ea; border-radius: 11px; background: #fff; }
.overview-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.overview-panel-heading h3, .overview-owner-card h3 { margin: 3px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 500; }
.overview-panel-heading > span { color: #aaa7b3; font-size: 8px; }
.panel-kicker { color: #8e8b98; font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.phase-progress-list { display: grid; gap: 8px; }
.phase-progress-row { display: grid; grid-template-columns: 105px 1fr 70px; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; background: #faf9fc; }
.phase-progress-name { display: flex; align-items: center; gap: 8px; color: #5c5965; font-size: 9px; font-weight: 800; }
.phase-progress-name i { width: 7px; height: 7px; border-radius: 50%; }
.phase-progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #ebe9f0; }
.phase-progress-track i { display: block; height: 100%; border-radius: inherit; }
.phase-progress-meta { color: #9a97a3; font-size: 7px; text-align: right; }
.phase-progress-meta strong { display: block; margin-bottom: 2px; color: #5f5c67; font-size: 9px; }
.overview-upcoming { display: grid; gap: 8px; }
.overview-task { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eceaf0; border-radius: 8px; background: #fbfafd; color: inherit; text-align: left; cursor: pointer; }
.overview-task:hover { border-color: #d7d2ed; background: #f7f5ff; }
.overview-task-date { display: grid; place-items: center; align-content: center; height: 39px; border-radius: 8px; background: #efecff; color: var(--indigo); font-size: 8px; font-weight: 850; line-height: 1.2; text-align: center; text-transform: uppercase; }
.overview-task-date strong { display: block; font-size: 14px; }
.overview-task-copy strong, .overview-task-copy span { display: block; }
.overview-task-copy strong { overflow: hidden; color: #55525f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-task-copy span { margin-top: 3px; color: #9a97a3; font-size: 7px; }
.overview-task .avatar { width: 23px; height: 23px; border-width: 1px; font-size: 7px; }
.overview-owner-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #dcd6fb; border-radius: 11px; background: linear-gradient(100deg, #efecff, #faf9ff); }
.overview-owner-card h3 { color: #5043ad; }
.overview-owner-card p { margin: 4px 0 0; color: #79758d; font-size: 9px; }
.gantt-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.toolbar-left { display: flex; align-items: baseline; gap: 9px; }
.toolbar-left h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 500; }
.task-count { color: #aaa9b5; font-size: 9px; }
.toolbar-actions { gap: 5px; }
.tool-button { position: relative; border: 1px solid var(--line); background: #fff; color: #73727f; }
.tool-button:hover, .tool-button.active { border-color: #d8d4ef; background: #f7f5ff; color: var(--indigo); }
.tool-button.today { margin-left: 5px; }
.tool-button i { display: none; position: absolute; width: 5px; height: 5px; top: 5px; right: 6px; border-radius: 50%; background: #e36e7c; }
.tool-button i.visible { display: block; }
.view-switcher { display: flex; margin-left: 3px; padding: 3px; border-radius: 8px; background: #f1f0f5; }
.view-switcher button { height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #94929f; font-size: 9px; font-weight: 700; cursor: pointer; }
.view-switcher button.active { background: #fff; color: #4f4d59; box-shadow: 0 1px 4px rgba(28,24,49,.1); }
.filter-panel { display: flex; align-items: center; gap: 7px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fbfafe; }
.filter-panel > span { margin-right: 3px; color: #8d8b99; font-size: 9px; font-weight: 700; }
.filter-chip { height: 25px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #7d7b89; font-size: 8px; font-weight: 700; cursor: pointer; }
.filter-chip.active { border-color: #cbc5f3; background: #efecff; color: #6655d2; }
.gantt-scroll { overflow: auto; max-height: 570px; scrollbar-width: thin; scrollbar-color: #cac7d6 transparent; }
.gantt { position: relative; min-width: calc(var(--task-width) + 920px); }
.gantt-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: var(--task-width) auto; height: 67px; background: #fff; border-bottom: 1px solid var(--line-strong); }
.task-header { position: sticky; left: 0; z-index: 22; display: grid; grid-template-columns: 1fr 70px 32px; align-items: end; padding: 0 13px 11px 18px; border-right: 1px solid var(--line-strong); background: #fff; color: #9b99a7; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.timeline-header { position: relative; overflow: hidden; }
.month-band { position: absolute; inset: 0 0 auto 0; height: 31px; border-bottom: 1px solid var(--line); }
.month-label { position: absolute; height: 31px; display: flex; align-items: center; padding-left: 10px; color: #5d5b68; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-right: 1px solid var(--line); }
.tick-band { position: absolute; inset: 31px 0 0; }
.date-tick { position: absolute; top: 0; height: 36px; display: flex; align-items: center; padding-left: 7px; color: #9a98a5; font-size: 8px; border-right: 1px solid var(--line); }
.date-tick.weekend { background: #faf9fc; }
.gantt-row { display: grid; grid-template-columns: var(--task-width) auto; min-height: var(--row-height); border-bottom: 1px solid var(--line); }
.gantt-row:last-child { border-bottom: 0; }
.gantt-row:hover .task-cell, .gantt-row:hover .timeline-cell { background-color: #fbfaff; }
.gantt-row.phase-row { min-height: 38px; background: #faf9fc; }
.task-cell { position: sticky; left: 0; z-index: 10; display: grid; grid-template-columns: 1fr 70px 32px; align-items: center; padding: 0 13px 0 18px; border-right: 1px solid var(--line-strong); background: #fff; }
.phase-row .task-cell { background: #faf9fc; }
.task-name-wrap { display: flex; align-items: center; min-width: 0; gap: 9px; }
.phase-toggle { width: 17px; height: 17px; display: grid; place-items: center; flex: none; border: 0; border-radius: 5px; background: #eceaf4; color: #787683; font-size: 11px; cursor: pointer; }
.phase-toggle.collapsed { transform: rotate(-90deg); }
.phase-title { font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.phase-meta { margin-left: 5px; color: #aaa8b4; font-size: 8px; font-weight: 500; }
.task-status-dot { width: 7px; height: 7px; flex: none; border: 2px solid #c8c6d1; border-radius: 50%; }
.task-status-dot.done { border-color: #61ae8a; background: #61ae8a; box-shadow: inset 0 0 0 1px #fff; }
.task-status-dot.in-progress { border-color: var(--indigo); background: #fff; box-shadow: inset 0 0 0 1px #fff; }
.task-title { min-width: 0; overflow: hidden; color: #52515e; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-title.done { color: #9997a3; text-decoration: line-through; }
.assignee { display: flex; align-items: center; }
.assignee .avatar { width: 23px; height: 23px; border-width: 1px; font-size: 7px; }
.task-menu { border: 0; background: transparent; color: #b2b0ba; cursor: pointer; }
.timeline-cell { position: relative; overflow: hidden; background: #fff; }
.timeline-cell::before { content: ''; position: absolute; inset: 0; background: var(--grid-lines); pointer-events: none; }
.phase-row .timeline-cell { background: #faf9fc; }
.task-bar { position: absolute; top: 14px; height: 21px; min-width: 8px; overflow: hidden; border: 0; border-radius: 5px; color: #fff; cursor: pointer; box-shadow: 0 2px 5px rgba(30,25,55,.1); transition: transform .15s, box-shadow .15s; }
.task-bar:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30,25,55,.16); }
.task-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--completion); background: rgba(255,255,255,.2); }
.task-bar span { position: relative; display: block; padding: 0 7px; overflow: hidden; font-size: 8px; font-weight: 750; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.task-bar.strategy { background: var(--strategy); }
.task-bar.design { background: var(--design); }
.task-bar.development { background: var(--development); }
.task-bar.content { background: var(--content); }
.task-bar.launch { background: var(--launch); }
.task-bar.done { opacity: .72; }
.milestone { position: absolute; top: 15px; width: 18px; height: 18px; border: 0; border-radius: 3px; background: var(--ink); transform: rotate(45deg); cursor: pointer; box-shadow: 0 2px 5px rgba(27,25,39,.18); }
.milestone:hover { background: var(--indigo); }
.today-line { position: absolute; z-index: 6; top: 0; bottom: 0; width: 1px; background: #e46779; pointer-events: none; }
.today-line::before { content: 'TODAY'; position: sticky; display: block; top: 2px; width: 34px; margin-left: -17px; padding: 3px 0; border-radius: 3px; background: #e46779; color: white; font-size: 6px; font-weight: 850; text-align: center; letter-spacing: .05em; }
.empty-state { display: grid; place-items: center; height: 180px; color: #9b99a7; font-size: 11px; }
.gantt-footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-top: 1px solid var(--line); background: #fcfbfd; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: #888794; font-size: 7px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-bar { width: 13px; height: 5px; border-radius: 99px; }
.milestone-diamond { width: 7px; height: 7px; margin: 0 3px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.hint { color: #aaa9b4; font-size: 7px; }

.board-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f2f1f6; box-shadow: 0 10px 28px rgba(34,29,64,.035); }
.board-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
.board-toolbar-note { display: flex; align-items: center; gap: 7px; color: #8f8d99; font-size: 8px; font-weight: 700; }
.kanban-board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 13px; padding: 15px; overflow-x: auto; }
.kanban-column { min-width: 240px; padding: 10px; border: 1px solid #e5e3eb; border-radius: 11px; background: #eae9ef; }
.kanban-column-heading { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 11px; }
.kanban-column-title { display: flex; align-items: center; gap: 8px; color: #54525e; font-size: 10px; font-weight: 800; }
.kanban-column-title i { width: 8px; height: 8px; border: 2px solid #bbb8c5; border-radius: 50%; }
.kanban-column[data-status="in-progress"] .kanban-column-title i { border-color: var(--indigo); background: #fff; }
.kanban-column[data-status="done"] .kanban-column-title i { border-color: #61ae8a; background: #61ae8a; box-shadow: inset 0 0 0 1px #fff; }
.kanban-column-count { min-width: 20px; padding: 3px 6px; border-radius: 99px; background: #dcd9e3; color: #85828f; font-size: 8px; font-weight: 800; text-align: center; }
.kanban-list { display: grid; align-content: start; gap: 9px; min-height: 285px; max-height: 590px; padding-right: 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c7c4d0 transparent; }
.kanban-task { width: 100%; display: block; padding: 13px; border: 1px solid #e3e1e9; border-radius: 10px; background: #fff; color: inherit; text-align: left; box-shadow: 0 3px 10px rgba(35,30,65,.035); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kanban-task:hover { transform: translateY(-2px); border-color: #d7d2ed; box-shadow: 0 8px 18px rgba(35,30,65,.09); }
.kanban-task-top, .kanban-task-meta, .kanban-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-phase { padding: 4px 7px; border-radius: 99px; font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.kanban-phase.strategy { background: #fff0df; color: #b6752d; }
.kanban-phase.design { background: #efecff; color: #6757d1; }
.kanban-phase.development { background: #e4f4f4; color: #39878b; }
.kanban-phase.content { background: #fde9ec; color: #bd5c68; }
.kanban-phase.launch { background: #eff2df; color: #73803d; }
.kanban-milestone { width: 8px; height: 8px; margin-right: 3px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.kanban-task h3 { min-height: 34px; margin: 11px 0 12px; color: #484651; font-size: 11px; line-height: 1.48; }
.kanban-task-meta { padding-top: 11px; border-top: 1px solid #efedf2; color: #92909c; font-size: 8px; }
.kanban-task-meta .avatar { width: 23px; height: 23px; border-width: 1px; font-size: 7px; }
.kanban-progress-row { margin-top: 12px; color: #94919e; font-size: 7px; }
.kanban-progress-row strong { color: #66636f; font-size: 8px; }
.kanban-progress { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #eeecf2; }
.kanban-progress i { display: block; height: 100%; border-radius: inherit; background: var(--indigo); }
.kanban-empty { display: grid; place-items: center; min-height: 160px; padding: 20px; border: 1px dashed #d4d1db; border-radius: 9px; color: #9b98a4; font-size: 9px; text-align: center; }

.milestones-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f8f7fb; box-shadow: 0 10px 28px rgba(34,29,64,.035); }
.milestones-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
.ownership-banner { display: flex; align-items: center; gap: 11px; margin: 16px 18px 0; padding: 12px 14px; border: 1px solid #ddd8fb; border-radius: 10px; background: linear-gradient(90deg, #f2efff, #faf9ff); }
.ownership-banner strong, .ownership-banner span { display: block; }
.ownership-banner strong { color: #5446b1; font-size: 10px; }
.ownership-banner span { margin-top: 3px; color: #7f7b93; font-size: 9px; }
.milestone-roadmap { position: relative; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 13px; padding: 20px 18px 22px; overflow-x: auto; }
.milestone-roadmap::before { content: ''; position: absolute; z-index: 0; top: 44px; left: 12.5%; right: 12.5%; height: 2px; background: #d7d3e1; }
.milestone-step { position: relative; z-index: 1; min-width: 170px; padding-top: 50px; }
.milestone-step::before { content: ''; position: absolute; top: 17px; left: calc(50% - 8px); width: 14px; height: 14px; border: 3px solid #fff; border-radius: 4px; background: #bbb8c6; box-shadow: 0 0 0 2px #d7d3e1, 0 3px 8px rgba(39,35,58,.14); transform: rotate(45deg); }
.milestone-step.done::before { background: #61ae8a; box-shadow: 0 0 0 2px #9ed2ba, 0 3px 8px rgba(39,35,58,.14); }
.milestone-step.in-progress::before { background: var(--indigo); box-shadow: 0 0 0 2px #b9aff7, 0 3px 8px rgba(39,35,58,.14); }
.milestone-card-item { width: 100%; min-height: 190px; display: flex; flex-direction: column; padding: 16px; border: 1px solid #e1dfe8; border-radius: 11px; background: #fff; color: inherit; text-align: left; box-shadow: 0 5px 14px rgba(35,30,65,.05); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.milestone-card-item:hover { transform: translateY(-2px); border-color: #cfc9ef; box-shadow: 0 10px 22px rgba(35,30,65,.1); }
.milestone-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.milestone-number { color: #aaa7b3; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.milestone-state { padding: 4px 7px; border-radius: 99px; background: #f0eef4; color: #8d8997; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.milestone-state.done { background: #e7f4ee; color: #458d6e; }
.milestone-state.in-progress { background: #efecff; color: #6554cd; }
.milestone-card-item time { display: block; margin-top: 18px; color: var(--indigo); font-family: Georgia, 'Times New Roman', serif; font-size: 22px; }
.milestone-card-item h3 { margin: 8px 0 14px; color: #45434f; font-size: 12px; line-height: 1.35; }
.milestone-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #efedf3; color: #95929f; font-size: 8px; }
.milestone-card-footer .owner { display: flex; align-items: center; gap: 6px; color: #676470; font-weight: 700; }
.milestone-card-footer .avatar { width: 22px; height: 22px; border-width: 1px; font-size: 7px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(31,29,43,.18); backdrop-filter: blur(1px); }
.task-drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(390px, 94vw); height: 100vh; padding: 27px; background: #fff; box-shadow: -18px 0 55px rgba(28,25,48,.16); transform: translateX(105%); transition: transform .24s ease; overflow: auto; }
.task-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; }
.phase-pill { padding: 5px 9px; border-radius: 99px; background: #efecff; color: #6757d1; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.task-drawer h2 { margin: 20px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 500; line-height: 1.08; }
.task-drawer > p { margin: 0 0 24px; color: #858391; font-size: 11px; line-height: 1.6; }
.drawer-progress-row { display: flex; justify-content: space-between; color: #898795; font-size: 9px; }
.drawer-progress-row strong { color: var(--ink); }
.drawer-progress { height: 6px; margin: 8px 0 24px; border-radius: 99px; background: #eeecf3; overflow: hidden; }
.drawer-progress i { display: block; width: 55%; height: 100%; border-radius: inherit; background: var(--indigo); transition: width .25s; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid div { padding: 8px 8px 8px 0; }
.detail-grid dt { margin-bottom: 5px; color: #9a98a5; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.detail-grid dd { margin: 0; color: #55535f; font-size: 10px; font-weight: 650; }
.drawer-section { margin-top: 24px; }
.drawer-section-title { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 10px; font-weight: 800; }
.drawer-section-title strong { color: #9a98a5; font-size: 8px; }
.drawer-section label { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: #6f6d79; font-size: 10px; }
.drawer-section input { accent-color: var(--indigo); }
.drawer-actions { margin-top: 24px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(31,29,43,.34); backdrop-filter: blur(3px); }
.modal { width: min(510px, 100%); padding: 25px; border-radius: 15px; background: #fff; box-shadow: 0 25px 80px rgba(28,25,48,.28); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.modal h2 { margin: 5px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 500; }
.modal label { display: grid; gap: 6px; color: #6f6d79; font-size: 9px; font-weight: 750; }
.modal input, .modal select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.form-error { min-height: 15px; margin-top: 7px; color: #d05265; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; padding: 10px 15px; border-radius: 9px; background: #272532; color: #fff; font-size: 9px; font-weight: 700; box-shadow: 0 10px 30px rgba(28,25,48,.22); opacity: 0; transform: translate(-50%, 10px); transition: opacity .18s, transform .18s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding: 23px 11px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:last-child, .eyebrow, .nav-item:not(.active), .nav-item.active > *:not(.nav-icon), .sidebar-section, .sidebar-card, .profile > *:not(.avatar) { display: none; }
  .nav-item.active { display: grid; grid-template-columns: 1fr; place-items: center; padding: 11px; box-shadow: none; }
  .nav-item.active .nav-icon { font-size: 19px; }
  .profile { margin-top: auto; display: flex; justify-content: center; padding: 14px 0 0; }
  .stats-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .stats-grid .stat-card:last-child { display: none; }
}

@media (max-width: 800px) {
  :root { --task-width: 280px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 0 18px; }
  .main-content { padding: 24px 16px 34px; }
  .title-row { align-items: flex-start; }
  .interim-owner, .button.secondary { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat-card:last-child { display: flex; }
  .gantt-toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .toolbar-actions { width: 100%; overflow-x: auto; }
  .gantt-footer { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .hint { display: none; }
  .mobile-view-tabs { display: flex; width: max-content; max-width: 100%; margin: -4px 0 12px; padding: 3px; border-radius: 9px; background: #e9e7ef; overflow-x: auto; scrollbar-width: none; }
  .mobile-view-tabs button { height: 30px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #8b8995; font-size: 9px; font-weight: 800; cursor: pointer; }
  .mobile-view-tabs button.active { background: #fff; color: var(--indigo); box-shadow: 0 2px 6px rgba(35,30,65,.09); }
  .kanban-board { grid-template-columns: repeat(3, 270px); }
  .milestone-roadmap { grid-template-columns: repeat(4, 245px); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-owner-card { grid-column: auto; }
}

@media (max-width: 540px) {
  :root { --task-width: 250px; }
  .breadcrumbs { display: none; }
  .topbar { justify-content: flex-end; }
  .search-box { width: min(230px, calc(100vw - 95px)); }
  .title-row { display: block; }
  .title-actions { margin-top: 15px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-card { min-height: 78px; }
  .stats-grid .stat-card:last-child { display: none; }
  .tool-button > span { display: none; }
  .view-switcher button { padding-inline: 8px; }
  .phase-meta { display: none; }
  .phase-progress-row { grid-template-columns: 86px 1fr 55px; gap: 8px; padding-inline: 8px; }
  .overview-panel { padding: 13px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
