:root {
  --bg: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --border: rgba(21, 42, 74, 0.08);
  --text: #0f1728;
  --muted: #667085;
  --accent: #1146c7;
  --accent-soft: #dce8ff;
  --green: #169b62;
  --green-soft: #daf8e9;
  --yellow: #c48b11;
  --yellow-soft: #fff4d0;
  --red: #d64545;
  --red-soft: #fde1e1;
  --gray: #8a92a6;
  --gray-soft: #eceff5;
  --shadow: 0 16px 40px rgba(18, 35, 66, 0.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 20px;
  background: #0f1728;
  color: #f5f7fb;
}

.brand-block h1,
.hero h2,
.panel h3,
.panel h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.brand-block h1 {
  font-size: 2rem;
  margin-top: 6px;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8ea0c8;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.sidebar .muted {
  color: rgba(245, 247, 251, 0.72);
}

.nav-links {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #f4f6fb;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link.active,
.nav-link:hover {
  background: rgba(17, 70, 199, 0.32);
  border-color: rgba(144, 174, 255, 0.24);
}

.button-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-panel {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.full-width {
  width: 100%;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
}

.login-hero,
.login-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.login-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
}

.feature-grid,
.credential-grid,
.checkbox-grid {
  display: grid;
  gap: 12px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-chip,
.credential-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.credential-card p,
.credential-card small {
  margin: 6px 0 0;
}

.sidebar-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.mini-list,
.legend-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li,
.legend-grid span {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.legend-grid {
  display: grid;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.dot.green,
.status-pill.completed,
.task-count.done {
  background: var(--green);
}

.dot.yellow,
.status-pill.ongoing,
.task-count.in-progress {
  background: var(--yellow);
}

.dot.red,
.status-pill.delayed,
.task-count.todo {
  background: var(--red);
}

.dot.gray,
.status-pill.hold {
  background: var(--gray);
}

.main-content {
  padding: 24px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.topbar-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.notif-shell {
  position: relative;
}

.notif-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d64545;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(20, 32, 68, 0.18);
  padding: 12px;
  display: none;
  z-index: 60;
}

.notif-panel.open {
  display: block;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
}

.notif-head strong {
  font-size: 0.95rem;
}

.notif-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
}

.notif-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.notif-item.unread {
  background: rgba(17, 70, 199, 0.06);
  border-color: rgba(17, 70, 199, 0.18);
}

.notif-item small {
  color: var(--muted);
}

.notif-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.notif-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.notif-action {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-shell input {
  min-width: 280px;
  background: #ffffff;
}

.topbar-chip {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-chip strong {
  display: block;
  color: var(--text);
  margin-top: 4px;
}

.profile-chip {
  min-width: 160px;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  align-items: center;
}

.hero h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-top: 10px;
}

.hero-copy {
  max-width: 760px;
  font-size: 1.02rem;
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.section {
  margin-top: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.stat-card h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.panel.nested {
  padding: 18px;
  border-radius: 24px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.date-chip.active {
  background: rgba(27, 188, 120, 0.12);
  border-color: rgba(27, 188, 120, 0.35);
  color: #0f5132;
}

.date-chip.muted {
  color: var(--muted);
  font-weight: 600;
  background: transparent;
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #2b6fff);
  color: #fff;
}

.button.ghost {
  background: rgba(17, 70, 199, 0.08);
  color: var(--accent);
}

.button.subtle {
  background: rgba(15, 23, 40, 0.05);
  color: var(--text);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filters-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filters-grid.single-search {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.filters-grid label,
.status-card label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 40, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  border-radius: 14px;
  font: inherit;
  color: var(--text);
}

.alerts-list {
  display: grid;
  gap: 12px;
}

.alert-card {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.alert-card.delayed {
  background: var(--red-soft);
  border-color: rgba(214, 69, 69, 0.18);
}

.alert-card.warning {
  background: var(--yellow-soft);
  border-color: rgba(196, 139, 17, 0.2);
}

.alert-card p {
  margin: 0;
}

.alert-card strong {
  display: block;
  margin-bottom: 6px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.project-grid.single-column {
  grid-template-columns: 1fr;
}

.project-card {
  padding: 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 24px;
}

.project-card.compact-card {
  padding: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 20px;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 20px;
}

.project-card-head,
.meta-row,
.profit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.project-card h4 {
  font-size: 1.1rem;
}

.project-card p {
  margin: 6px 0 0;
}

.progress-wrap {
  margin-top: 16px;
}

.progress-label,
.profit-row,
.tracker-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.progress-bar {
  height: 10px;
  background: #e9eef6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32b970, #87d44a);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.on-track {
  background: var(--green);
}

.status-pill.neutral {
  background: var(--gray);
}

.status-pill.loss {
  background: var(--red);
}

.status-pill.profit {
  background: var(--green);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 18px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-chip {
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 70, 199, 0.06);
}

.summary-chip h5 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-chip strong {
  font-size: 1.2rem;
}

.timeline-grid {
  overflow-x: auto;
}

.timeline-table {
  display: grid;
  min-width: 1020px;
  gap: 10px;
}

.timeline-row,
.timeline-head {
  display: grid;
  grid-template-columns: 240px repeat(45, minmax(14px, 1fr));
  gap: 6px;
  align-items: center;
}

.timeline-head span:first-child,
.timeline-row .label {
  position: sticky;
  left: 0;
  background: rgba(255, 255, 255, 0.94);
  z-index: 1;
  padding: 8px 10px;
  border-radius: 12px;
}

.timeline-cell {
  height: 18px;
  border-radius: 7px;
  background: #edf1f7;
}

.timeline-cell.active.completed {
  background: var(--green);
}

.timeline-cell.active.in-progress {
  background: var(--yellow);
}

.timeline-cell.active.hold {
  background: var(--gray);
}

.timeline-cell.active.not-started {
  background: rgba(17, 70, 199, 0.28);
}

.timeline-cell.delay {
  background: #ef6b6b;
}

.timeline-delay-note {
  color: #d64545;
  font-style: normal;
  font-size: 0.82rem;
}

.stage-table,
.effort-cards,
.task-board {
  display: grid;
  gap: 12px;
}

.tracker-row,
.effort-card,
.task-column {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.tracker-row small,
.effort-card small {
  color: var(--muted);
}

.tracker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.effort-card strong,
.profit-card strong,
.status-card strong {
  font-size: 1.3rem;
  display: block;
  margin-top: 6px;
}

.task-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-column h5 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.task-item {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  margin-top: 10px;
}

.task-item strong {
  display: block;
  font-size: 0.94rem;
}

.task-item small {
  color: var(--muted);
}

.task-item p {
  margin: 8px 0 0;
}

.task-count {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.profit-card,
.status-card {
  display: grid;
  gap: 12px;
}

.money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.money-box {
  padding: 14px;
  border-radius: 16px;
  background: #f5f7fb;
}

.selector {
  min-width: 260px;
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.mini {
  padding: 10px 12px;
  font-size: 0.86rem;
}

.status-display {
  padding: 14px;
  border-radius: 16px;
  background: #f5f7fb;
}

.inline-form {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.field-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.checkbox-pill input {
  width: auto;
  margin: 0;
}

.agenda-wrap {
  display: grid;
  gap: 14px;
}

.agenda-day {
  display: grid;
  gap: 10px;
}

.agenda-date {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.agenda-list {
  display: grid;
  gap: 10px;
}

.agenda-card,
.empty-state {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.minimalist-hero {
  align-items: flex-end;
}

.form-panel {
  max-width: 920px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffff;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 35, 66, 0.06);
  border-color: rgba(17, 70, 199, 0.16);
}

.action-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.action-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.action-card span {
  color: var(--accent);
  font-weight: 700;
}

.single-action-grid {
  grid-template-columns: 1fr;
}

.table-shell {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr 0.95fr 1fr 1.1fr 0.5fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
}

.table-row-link {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.table-row-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 35, 66, 0.06);
  background: #fdfefe;
}

.table-head {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  background: #eef3fb;
}

.table-strong {
  font-weight: 700;
}

.mini-progress {
  width: 100%;
  height: 8px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #ebeff6;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffbd3f, #f3d16a);
}

.stage-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.stage-dot.ongoing {
  background: var(--yellow);
}

.stage-dot.completed,
.stage-dot.on-track {
  background: var(--green);
}

.stage-dot.hold {
  background: var(--gray);
}

.stage-dot.delayed {
  background: var(--red);
}

.stat-ring-card {
  display: grid;
  gap: 20px;
}

.ring-shell {
  display: flex;
  justify-content: center;
}

.ring-chart {
  width: 230px;
  height: 230px;
  padding: 18px;
  border-radius: 50%;
  background: conic-gradient(#ffbd3f 0 24%, #1bbc78 24% 53%, #c876f3 53% 72%, #42a5f5 72% 100%);
}

.ring-center {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  text-align: center;
}

.ring-center strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.ring-center span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-stat-list {
  display: grid;
  gap: 10px;
}

.mini-stat-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.mini-stat-item span {
  color: var(--muted);
}

.simple-list {
  display: grid;
  gap: 10px;
}

.simple-list-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.simple-list-item p,
.simple-list-item small {
  margin: 6px 0 0;
}

.schedule-board {
  display: grid;
  gap: 14px;
}

.schedule-card,
.worklog-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.schedule-card-head,
.worklog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.schedule-card strong,
.worklog-item strong {
  display: block;
}

.schedule-card p,
.schedule-card small,
.worklog-item p,
.worklog-item small {
  margin: 8px 0 0;
}

.schedule-meta,
.worklog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.delay-text {
  color: #d64545;
  font-weight: 700;
}

.ahead-text {
  color: #1b7f5a;
  font-weight: 800;
}

.tracker-row-delayed {
  border-color: rgba(214, 69, 69, 0.35);
  box-shadow: 0 12px 28px rgba(214, 69, 69, 0.08);
}

.timeline-ahead-note {
  color: #1b7f5a;
  font-weight: 800;
  margin-left: 6px;
}

.timeline-cell.active.ahead {
  background: rgba(27, 188, 120, 0.14);
  border-color: rgba(27, 188, 120, 0.38);
}

.compact-agenda .agenda-card {
  border-radius: 16px;
}

.planning-wrap {
  display: grid;
  gap: 18px;
}

.planning-week {
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.planning-week-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.planning-week-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.planning-week-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.planning-day {
  min-height: 150px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 8px;
}

.planning-day small {
  color: var(--muted);
  font-weight: 700;
}

.planning-day strong {
  font-size: 0.98rem;
}

.planning-day p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.planning-owner-title {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.planning-day span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.planning-label {
  display: grid;
  gap: 6px;
}

.planning-label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planning-label input,
.planning-label select,
.planning-label textarea {
  background: #f8fafc;
}

.planning-label textarea {
  resize: vertical;
  min-height: 64px;
}

.planning-day.ongoing {
  background: #fff8e8;
  border-color: rgba(196, 139, 17, 0.18);
}

.planning-day.completed,
.planning-day.on-track {
  background: #eefbf4;
  border-color: rgba(22, 155, 98, 0.18);
}

.planning-day.hold {
  background: #f3f5f8;
  border-color: rgba(138, 146, 166, 0.18);
}

.planning-day.delayed {
  background: #fff0f0;
  border-color: rgba(214, 69, 69, 0.18);
}

.org-wrap {
  display: grid;
  gap: 22px;
}

.org-head-card,
.org-lead-card,
.org-member-card,
.specialist-card,
.role-card {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
}

.org-head-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #d9d3ff, #d9efff);
}

.org-head-card strong,
.org-lead-card strong,
.org-member-card strong,
.specialist-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.org-head-card span,
.org-lead-card span,
.org-member-card span,
.specialist-card span,
.role-card span {
  color: var(--muted);
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-head-actions p {
  margin: 0;
}

.org-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.org-branch {
  display: grid;
  gap: 14px;
}

.org-lead-card {
  border-left: 5px solid #42a5f5;
}

.org-members {
  display: grid;
  gap: 12px;
  padding-left: 28px;
}

.org-member-card {
  border-left: 4px solid #52d686;
}

.team-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.team-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-button {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.icon-button.danger {
  color: #c23b4c;
  background: #fff4f6;
  border-color: #f1cdd5;
}

.button.danger {
  background: #c23b4c;
  border-color: #c23b4c;
  color: #ffffff;
}

.button.danger:hover {
  filter: brightness(0.96);
}

.empty-inline {
  display: grid;
  place-items: center;
  min-height: 92px;
}

.org-specialists,
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.specialist-card {
  border-left: 5px solid #42a5f5;
}

.role-card h4 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.role-card p {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
}

.role-card small {
  color: var(--muted);
}

.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.people-grid-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 38, 63, 0.06);
}

.people-grid-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
}

.people-grid-media span {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #17324d;
}

.people-grid-body {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
}

.people-grid-body h4,
.people-grid-body strong,
.people-grid-body p,
.people-grid-body small {
  margin: 0;
}

.people-grid-body h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.people-grid-body strong {
  font-size: 0.96rem;
}

.people-grid-body p,
.people-grid-body small {
  color: var(--muted);
  line-height: 1.5;
}

.accent-1 .people-grid-media {
  background: linear-gradient(135deg, #f6ddcd, #f3c7ad);
}

.accent-2 .people-grid-media {
  background: linear-gradient(135deg, #d8efe6, #b7e0cf);
}

.accent-3 .people-grid-media {
  background: linear-gradient(135deg, #d9e6fb, #bdd0f4);
}

.accent-4 .people-grid-media {
  background: linear-gradient(135deg, #efe0f7, #e0c6f2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  z-index: 50;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(20, 32, 68, 0.16);
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 4px 0 0;
}

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modal-form label {
  display: grid;
  gap: 8px;
}

.modal-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 6px;
}

.graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.graph-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.project-graph {
  width: 100%;
  height: 260px;
}

.graph-donut-wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.stage-donut {
  width: 210px;
  height: 210px;
  padding: 16px;
  border-radius: 50%;
}

.stage-donut-center {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  text-align: center;
}

.stage-donut-center strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
}

.stage-donut-center span {
  color: var(--muted);
}

.task-metric {
  display: grid;
  gap: 10px;
}

.hours-bars {
  display: grid;
  gap: 14px;
}

.hours-row {
  display: grid;
  gap: 8px;
}

.hours-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.metric-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1bbc78, #51d69e);
}

.metric-bar.amber span {
  background: linear-gradient(90deg, #ffbd3f, #ffd36f);
}

.metric-bar.soft span {
  background: linear-gradient(90deg, #9ab2e8, #c8d7f5);
}

.metric-bar.role-hours span {
  background: linear-gradient(90deg, #1146c7, #4f7fff);
}

.agenda-card p,
.agenda-card small {
  margin: 6px 0 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 18px;
}

.chart-wrap {
  overflow-x: auto;
}

.chart-svg {
  width: 100%;
  min-width: 760px;
  height: 290px;
}

.health-panel {
  display: grid;
  gap: 12px;
}

.health-item {
  padding: 14px;
  border-radius: 18px;
  background: #f7f9fd;
}

.health-item strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1200px) {
  .app-shell,
  .login-shell,
  .two-column,
  .detail-layout,
  .analytics-grid,
  .admin-grid,
  .dashboard-grid,
  .dashboard-bottom,
  .graph-grid,
  .org-columns {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: relative;
    height: auto;
  }
}

@media (max-width: 900px) {
  .hero,
  .dashboard-topbar,
  .panel-head,
  .panel-head-actions,
  .schedule-card-head,
  .worklog-head,
  .project-card-head,
  .meta-row,
  .profit-row,
  .team-card-head,
  .team-card-actions,
  .modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-grid,
  .feature-grid,
  .checkbox-grid,
  .action-grid,
  .table-row,
  .planning-grid,
  .role-grid,
  .detail-summary,
  .task-board,
  .money-grid,
  .modal-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button,
  .panel-head .selector {
    width: 100%;
  }
}
