:root {
  --ink: #071b3a;
  --muted: #61708a;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #d8e1ef;
  --navy: #071b3a;
  --blue: #0057b8;
  --blue-bright: #0072ce;
  --sky: #dcecff;
  --teal: #006d67;
  --lime: #b5d944;
  --amber: #e0a82e;
  --coral: #d86f55;
  --shadow: 0 22px 60px rgba(7, 27, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(244, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.main-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.main-nav a:hover {
  background: white;
  border-color: var(--line);
  color: var(--blue);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.6fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 98px) clamp(20px, 5vw, 64px) 56px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.92), rgba(0, 87, 184, 0.72), rgba(181, 217, 68, 0.22)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.34;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background:
    linear-gradient(90deg, var(--paper) 4%, rgba(244, 247, 251, 0.9) 43%, rgba(220, 236, 255, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 87, 184, 0.08));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  align-self: center;
  max-width: 800px;
}

.eyebrow,
.panel-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 920px;
}

.hero-copy p:not(.eyebrow) {
  color: #31425f;
  font-size: clamp(18px, 2.1vw, 24px);
  max-width: 700px;
}

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

.button,
.login-form button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary,
.login-form button {
  background: var(--blue);
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #b9c9df;
  color: var(--navy);
}

.login-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 203, 226, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-page {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.9)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 100vh;
  padding: 32px;
}

.login-panel.standalone {
  margin: 0 auto;
  max-width: 440px;
  width: 100%;
}

.login-panel h1 {
  font-size: 34px;
  line-height: 1.08;
  margin: 4px 0 10px;
}

.login-panel p {
  color: var(--muted);
}

.login-error {
  background: #ffe5df;
  border: 1px solid #f0c8bd;
  border-radius: 8px;
  color: #9b2f1d;
  font-weight: 800;
  padding: 12px;
}

.login-panel h2 {
  font-size: 28px;
  margin-bottom: 22px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: #243759;
  font-size: 14px;
  font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.login-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 6px 0 12px;
}

.login-row a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.check {
  align-items: center;
  display: flex;
  gap: 8px;
}

main > section:not(.hero) {
  padding: 72px clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.tone-section h2,
.do-card h2,
.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.section-heading p,
.tone-list p,
.do-card li,
.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 17px;
}

.insight-grid,
.guide-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.insight-grid article,
.guide-card,
.do-card,
.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.insight-grid article {
  padding: 26px;
}

.insight-grid span {
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 800;
}

.insight-grid h3,
.guide-card h3,
.page-card h2 {
  font-size: 22px;
  line-height: 1.18;
  margin: 12px 0;
}

.tone-section {
  align-items: start;
  background: linear-gradient(135deg, #eaf3ff, #dcecff 58%, #eef6df);
  display: grid;
  gap: 32px;
  grid-template-columns: 0.82fr 1fr;
}

.tone-list {
  display: grid;
  gap: 16px;
}

.tone-list p {
  background: rgba(255, 255, 255, 0.62);
  border-left: 5px solid var(--blue-bright);
  margin: 0;
  padding: 18px;
}

.guide-section {
  background: #eef5ff;
}

.section-heading.compact {
  max-width: 680px;
}

.guide-card {
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-icon {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-bottom: 22px;
  width: 42px;
}

.guide-card:nth-child(2) .card-icon {
  background: var(--blue);
}

.guide-card:nth-child(3) .card-icon {
  background: var(--lime);
  color: var(--navy);
}

.dos-section {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.do-card {
  padding: 32px;
}

.do-card ul,
.page-card ul {
  margin: 0;
  padding-left: 20px;
}

.do-card li + li,
.page-card li + li {
  margin-top: 10px;
}

.positive {
  border-top: 6px solid var(--blue-bright);
}

.warning {
  border-top: 6px solid var(--coral);
}

.site-footer {
  background: var(--navy);
  color: white;
  padding: 34px clamp(20px, 5vw, 64px);
}

.site-footer p {
  margin: 0;
  max-width: 860px;
}

.page-hero {
  background: linear-gradient(135deg, #eaf3ff, #dcecff 62%, #f5f9ff);
  padding: 76px clamp(20px, 5vw, 64px);
}

.page-hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 760px;
}

.page-content {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 56px clamp(20px, 5vw, 64px) 76px;
}

.page-card {
  padding: 30px;
}

.brand-library {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.asset-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.asset-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.asset-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.asset-card h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 18px 0 12px;
}

.asset-card p {
  color: var(--muted);
  font-size: 16px;
}

.asset-card strong {
  color: var(--blue);
  display: inline-block;
  font-size: 14px;
  margin-top: auto;
}

.asset-icon {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.primary-asset {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}

.primary-asset p,
.primary-asset strong {
  color: white;
}

.primary-asset .asset-icon {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.finance-overview {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.flow-steps {
  counter-reset: flow;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 30px 0 0;
  max-width: 980px;
  padding: 0;
}

.flow-steps li {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #243759;
  display: grid;
  font-size: 17px;
  font-weight: 700;
  gap: 14px;
  grid-template-columns: 42px 1fr;
  padding: 16px;
}

.flow-steps li::before {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: white;
  content: counter(flow);
  counter-increment: flow;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.finance-content {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 56px clamp(20px, 5vw, 64px) 76px;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  position: relative;
}

.process-card h2 {
  font-size: 25px;
  line-height: 1.18;
  margin: 0 0 16px;
  padding-right: 54px;
}

.process-card h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.process-card p,
.process-card li {
  color: var(--muted);
  font-size: 16px;
}

.process-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.process-card a:hover {
  text-decoration: underline;
}

.process-card ul {
  margin: 0;
  padding-left: 20px;
}

.process-card li + li {
  margin-top: 9px;
}

.step-number {
  align-items: center;
  background: var(--sky);
  border: 1px solid #bdd5f5;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 42px;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  background: var(--blue);
  border-radius: 999px;
  color: white;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: 3px;
  width: 18px;
}

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

.field-grid div,
.tutorial-grid div {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.note {
  background: #f2f8ff;
  border-left: 5px solid var(--blue-bright);
  border-radius: 0 8px 8px 0;
  margin: 18px 0 0;
  padding: 14px 16px;
}

.highlight-card {
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border-color: #bdd5f5;
}

.invoice-example {
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 22px;
}

.invoice-example strong {
  color: var(--lime);
  font-size: 14px;
  text-transform: uppercase;
}

.invoice-example p {
  color: white;
  font-size: 16px;
  margin: 0;
}

.warning-card {
  border-color: #f0c8bd;
  border-top: 6px solid var(--coral);
}

.error-text {
  color: #9b2f1d;
  font-weight: 800;
}

.tutorial-card {
  border-top: 6px solid var(--blue-bright);
}

.restricted-hero {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.94), rgba(0, 87, 184, 0.82)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  padding: 86px clamp(20px, 5vw, 64px);
}

.restricted-hero.compact {
  padding-bottom: 58px;
  padding-top: 58px;
}

.restricted-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  max-width: 840px;
}

.restricted-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  max-width: 760px;
}

.restricted-hero .eyebrow {
  color: var(--lime);
}

.restricted-content {
  padding: 56px clamp(20px, 5vw, 64px) 76px;
}

.restricted-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.restricted-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 26px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.restricted-card:hover,
.restricted-card:target {
  border-color: #9fc4f0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.restricted-icon {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  margin-bottom: 22px;
  width: 46px;
}

.restricted-card:nth-child(2) .restricted-icon,
.restricted-card:nth-child(5) .restricted-icon {
  background: var(--blue);
}

.restricted-card:nth-child(3) .restricted-icon,
.restricted-card:nth-child(6) .restricted-icon {
  background: var(--blue-bright);
}

.restricted-card:nth-child(4) .restricted-icon,
.restricted-card:nth-child(7) .restricted-icon {
  background: var(--lime);
  color: var(--navy);
}

.restricted-card h3 {
  font-size: 22px;
  line-height: 1.16;
  margin: 0 0 12px;
}

.restricted-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.admin-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.admin-form label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.admin-form input,
.admin-form select {
  background: #f8fbff;
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

.admin-form button,
.inline-form button {
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
}

.inline-form button {
  background: #edf4ff;
  color: var(--blue);
}

.system-message {
  border-radius: 8px;
  font-weight: 800;
  margin: 0 0 18px;
  padding: 14px 16px;
}

.system-message.success {
  background: #edf8d5;
  color: #486900;
}

.system-message.error {
  background: #ffe9e4;
  color: #9b2f1d;
}

.users-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  overflow-x: auto;
}

.users-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.users-table th,
.users-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
}

.users-table th {
  background: #f2f7ff;
  color: #5b6a82;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.status-pill.active {
  background: #e4f6ec;
  color: #1e6b42;
}

.status-pill.blocked {
  background: #ffe9e4;
  color: #9b2f1d;
}

.inline-form {
  margin: 0;
}

.stakeholder-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.9)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.stakeholder-summary {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.summary-grid,
.profile-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.summary-grid article,
.profile-card,
.contact-card,
.note-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.profile-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

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

.profile-card {
  border-top: 6px solid var(--blue-bright);
}

.profile-photo {
  aspect-ratio: 4 / 3;
  background: #e6eef9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.profile-topline {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.profile-topline span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-topline a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.profile-card h3 {
  font-size: 28px;
  line-height: 1.12;
  margin: 0 0 6px;
}

.profile-card .role {
  color: var(--ink);
  font-weight: 800;
}

.profile-card p,
.profile-card li {
  color: var(--muted);
  font-size: 16px;
}

.profile-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.profile-card li + li {
  margin-top: 8px;
}

.requirements-section,
.raci-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.requirements-section {
  background: #eef5ff;
}

.requirements-grid,
.raci-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.requirements-grid article,
.raci-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.requirements-grid span,
.raci-grid span {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.requirements-grid article:nth-child(2) span,
.raci-grid article:nth-child(2) span {
  background: var(--blue);
}

.requirements-grid article:nth-child(3) span,
.raci-grid article:nth-child(3) span {
  background: var(--blue-bright);
}

.requirements-grid article:nth-child(4) span,
.raci-grid article:nth-child(4) span {
  background: var(--lime);
  color: var(--navy);
}

.requirements-grid h3,
.raci-grid h3,
.raci-example h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 12px;
}

.requirements-grid p,
.requirements-grid li,
.raci-grid p,
.raci-example p {
  color: var(--muted);
  font-size: 16px;
}

.requirements-grid strong,
.raci-grid strong {
  color: var(--ink);
  display: block;
  margin: 16px 0 8px;
}

.requirements-grid ul {
  margin: 0;
  padding-left: 20px;
}

.requirements-grid li + li {
  margin-top: 8px;
}

.raci-example {
  margin-top: 34px;
}

.compact-table .table-row {
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1fr 1fr;
}

.summary-grid span {
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 800;
}

.summary-grid h3,
.contact-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 12px 0;
}

.summary-grid p,
.contact-card p,
.contact-card span,
.note-panel li {
  color: var(--muted);
  font-size: 16px;
}

.stakeholder-content,
.approval-section,
.contact-section,
.stakeholder-notes {
  padding: 56px clamp(20px, 5vw, 64px);
}

.stakeholder-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 30px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.15fr;
}

.table-row > div {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  padding: 18px;
}

.table-row > div + div {
  border-left: 1px solid var(--line);
}

.table-head > div {
  background: var(--navy);
  border-top: 0;
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row strong,
.table-row span {
  display: block;
}

.table-row strong {
  color: var(--ink);
  font-size: 16px;
}

.table-row span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.approval-section {
  background: #eef5ff;
}

.approval-flow {
  counter-reset: approval;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 30px 0 0;
  max-width: 980px;
  padding: 0;
}

.approval-flow li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr;
  padding: 16px;
}

.approval-flow li::before {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: white;
  content: counter(approval);
  counter-increment: approval;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.approval-flow strong {
  color: var(--ink);
}

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

.contact-card span {
  display: block;
  font-weight: 700;
  margin-top: 18px;
}

.templates-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.88)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.events-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.88)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.project-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.88)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.dashboard-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(220, 236, 255, 0.88)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.dashboard-config,
.dashboard-overview,
.dashboard-management,
.todo-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.dashboard-config,
.dashboard-management {
  background: #eef5ff;
}

.dashboard-config {
  border-bottom: 1px solid var(--line);
}

.dashboard-config h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.dashboard-config p,
.dashboard-config li {
  color: var(--muted);
  font-size: 16px;
}

.dashboard-config ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.dashboard-accordion {
  border-bottom: 1px solid var(--line);
}

.dashboard-accordion summary {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto auto;
  list-style: none;
  padding: 22px 24px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-accordion summary::-webkit-details-marker {
  display: none;
}

.dashboard-accordion summary:hover {
  border-color: #9fc4f0;
  box-shadow: 0 14px 30px rgba(7, 27, 58, 0.08);
}

.dashboard-accordion summary::after {
  align-items: center;
  background: var(--sky);
  border-radius: 8px;
  color: var(--blue);
  content: "+";
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.dashboard-accordion[open] summary::after {
  content: "−";
}

.dashboard-accordion summary > span {
  display: grid;
  gap: 5px;
}

.dashboard-accordion summary > span > strong {
  color: var(--ink);
  display: block;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.08;
}

.dashboard-accordion summary > strong {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.dashboard-accordion summary small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  max-width: 520px;
}

.accordion-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.accordion-content {
  margin-top: 28px;
}

.dashboard-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.dashboard-kpis article,
.dashboard-detail-grid article,
.dashboard-management-card,
.todo-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-kpis article {
  padding: 20px;
}

.dashboard-kpis span,
.todo-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dashboard-kpis strong,
.todo-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.dashboard-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.dashboard-detail-grid article {
  padding: 24px;
}

.dashboard-detail-grid h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.dashboard-detail-grid p {
  color: var(--muted);
  font-size: 16px;
}

.dashboard-detail-grid a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.scope-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.scope-timeline {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  max-width: 1120px;
  position: relative;
}

.scope-timeline::before {
  background: #bdd5f5;
  content: "";
  height: calc(100% - 36px);
  left: 20px;
  position: absolute;
  top: 18px;
  width: 2px;
}

.scope-card {
  display: grid;
  gap: 16px;
  grid-template-columns: 42px 1fr;
  position: relative;
}

.scope-marker {
  background: var(--blue);
  border: 5px solid #eef5ff;
  border-radius: 999px;
  height: 42px;
  position: relative;
  width: 42px;
  z-index: 1;
}

.scope-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.scope-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.scope-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.scope-card-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.scope-content > p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.scope-content a {
  color: var(--blue);
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
  text-decoration: none;
}

.scope-meta,
.scope-impact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

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

.scope-meta p,
.scope-impact-grid p {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.scope-meta strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.time-management-section {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.time-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.time-controls .management-selector {
  min-width: min(100%, 220px);
}

.time-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.time-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.time-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.time-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.time-board {
  display: grid;
  gap: 16px;
}

.time-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.time-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.time-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.time-card-head mark {
  background: #fff2cf;
  border-radius: 999px;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.time-date-grid,
.time-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.time-date-grid p,
.time-plan-grid p,
.time-recovery,
.time-notes {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.time-date-grid strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.time-recovery,
.time-notes {
  margin-top: 12px;
}

.time-recovery strong,
.time-notes strong,
.time-plan-grid strong {
  color: var(--ink);
}

.finance-management-section {
  background: #f5f8fc;
  padding: 56px clamp(20px, 5vw, 64px);
}

.finance-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.finance-controls .management-selector {
  min-width: min(100%, 260px);
}

.finance-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.finance-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.finance-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.finance-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.finance-board {
  display: grid;
  gap: 16px;
}

.finance-flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.finance-flow-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.finance-flow-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.finance-flow-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

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

.finance-flow-grid p,
.finance-pending {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.finance-flow-grid strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.finance-pending {
  margin-top: 12px;
}

.finance-pending strong {
  color: var(--ink);
}

.finance-flow-card a {
  color: var(--blue);
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
  text-decoration: none;
}

.risk-security-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.risk-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.risk-controls .management-selector {
  min-width: min(100%, 220px);
}

.risk-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.risk-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.risk-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.risk-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.risk-board {
  display: grid;
  gap: 16px;
}

.risk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.risk-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.risk-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.risk-card-head mark {
  background: #fff2cf;
  border-radius: 999px;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.risk-meta,
.risk-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.risk-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.risk-meta p,
.risk-plan-grid p,
.risk-notes {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.risk-meta strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.risk-notes {
  margin-top: 12px;
}

.risk-notes strong,
.risk-plan-grid strong {
  color: var(--ink);
}

.communication-section {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.communication-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.communication-controls .management-selector {
  min-width: min(100%, 220px);
}

.communication-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.communication-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.communication-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.communication-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.communication-board {
  display: grid;
  gap: 16px;
}

.communication-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.communication-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.communication-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.communication-card-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.communication-message {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}

.communication-meta,
.communication-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.communication-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.communication-meta p,
.communication-plan-grid p,
.communication-notes {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.communication-meta strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.communication-notes {
  margin-top: 12px;
}

.communication-notes strong,
.communication-plan-grid strong {
  color: var(--ink);
}

.stakeholders-section {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.stakeholder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stakeholder-controls .management-selector {
  min-width: min(100%, 260px);
}

.stakeholder-dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.75fr) 1.6fr;
  margin-top: 28px;
}

.stakeholder-dashboard.table-mode {
  display: block;
}

.stakeholder-profile-card,
.stakeholder-info-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stakeholder-profile-card {
  align-self: start;
  padding: 26px;
}

.stakeholder-profile-card > span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.stakeholder-profile-card h3 {
  font-size: 28px;
  line-height: 1.08;
  margin: 0 0 22px;
}

.stakeholder-profile-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stakeholder-profile-card div {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stakeholder-profile-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stakeholder-profile-card dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

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

.stakeholder-info-grid article {
  padding: 22px;
}

.stakeholder-info-grid h3 {
  font-size: 20px;
  line-height: 1.16;
  margin: 0 0 10px;
}

.stakeholder-info-grid p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.stakeholder-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  overflow: auto;
}

.stakeholder-table-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 180px 160px 160px 150px 150px 90px 230px 260px 260px 240px 260px;
  min-width: 2180px;
  padding: 14px;
}

.stakeholder-table-head {
  background: #f0f5fb;
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stakeholder-table-row span {
  color: var(--ink);
  font-size: 14px;
}

.stakeholder-table-row mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  padding: 5px 8px;
}

.dashboard-management-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 18px;
  max-width: 980px;
}

.management-selector {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-top: 28px;
  max-width: 420px;
  text-transform: uppercase;
}

.management-selector select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
}

.dashboard-management-card {
  padding: 28px;
}

.dashboard-management-card div {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dashboard-management-card h3 {
  font-size: 21px;
  line-height: 1.16;
  margin: 0;
}

.dashboard-management-card span {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
  white-space: nowrap;
}

.dashboard-management-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.dashboard-management-card p + p {
  margin-top: 10px;
}

.wbs-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.wbs-board {
  margin-top: 24px;
}

.wbs-root,
.wbs-segment {
  background: var(--navy);
  border-radius: 8px;
  color: white;
  margin: 0 auto;
  max-width: 520px;
  padding: 18px;
  text-align: center;
}

.wbs-root span,
.wbs-segment span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.wbs-root strong,
.wbs-segment strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
}

.wbs-branch {
  margin-top: 20px;
  position: relative;
}

.wbs-branch::before {
  background: var(--line);
  content: "";
  display: block;
  height: 20px;
  left: 50%;
  position: absolute;
  top: -20px;
  width: 2px;
}

.wbs-segment {
  background: var(--blue);
}

.wbs-packages {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  position: relative;
}

.wbs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.wbs-card div {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wbs-card h3 {
  font-size: 21px;
  line-height: 1.16;
  margin: 0;
}

.wbs-card span {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
  white-space: nowrap;
}

.wbs-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.wbs-card p + p {
  margin-top: 8px;
}

.wbs-detail-grid {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
  padding: 14px;
}

.wbs-detail-grid p {
  font-size: 14px;
}

.wbs-detail-grid p + p {
  margin-top: 0;
}

.quality-section {
  background: #f5f8fc;
  padding: 56px clamp(20px, 5vw, 64px);
}

.quality-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.quality-controls .management-selector {
  min-width: min(100%, 220px);
}

.quality-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.quality-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.quality-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.quality-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.quality-board {
  display: grid;
  gap: 16px;
}

.quality-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.quality-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.quality-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.quality-card-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

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

.quality-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
}

.quality-action-grid {
  margin-top: 12px;
}

.quality-main-grid p,
.quality-action-grid p,
.quality-meta p,
.quality-notes {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.quality-meta strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.quality-notes {
  margin-top: 12px;
}

.quality-main-grid strong,
.quality-action-grid strong,
.quality-notes strong {
  color: var(--ink);
}

.team-section {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.team-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.team-controls .management-selector {
  min-width: min(100%, 220px);
}

.team-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 26px 0 16px;
}

.team-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.team-metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.team-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.team-board {
  display: grid;
  gap: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.team-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.team-card-head h3 {
  font-size: 23px;
  line-height: 1.16;
  margin: 0;
}

.team-card-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.team-meta,
.team-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.team-meta p,
.team-plan-grid p,
.team-pending,
.team-notes {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.team-meta strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.team-pending,
.team-notes {
  margin-top: 12px;
}

.team-plan-grid strong,
.team-pending strong,
.team-notes strong {
  color: var(--ink);
}

.schedule-section {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.schedule-board {
  margin-top: 28px;
}

.schedule-path {
  display: grid;
  gap: 16px;
  max-width: 1040px;
  position: relative;
}

.schedule-path::before {
  background: #bdd5f5;
  content: "";
  height: calc(100% - 36px);
  left: 23px;
  position: absolute;
  top: 18px;
  width: 2px;
}

.schedule-card {
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
  position: relative;
}

.schedule-index {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
  z-index: 1;
}

.schedule-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

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

.schedule-card-head span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.schedule-card-head h3 {
  font-size: 22px;
  line-height: 1.16;
  margin: 0;
}

.schedule-card-head mark {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.schedule-meta,
.dependency-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dependency-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.schedule-meta p,
.dependency-grid p,
.schedule-note {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.schedule-meta strong,
.dependency-grid strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.dependency-grid p {
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.schedule-note {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.gantt-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.gantt-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  overflow: auto;
}

.gantt-grid {
  display: grid;
  grid-template-columns: 220px repeat(var(--periods), minmax(118px, 1fr));
  min-width: 1060px;
}

.gantt-header {
  background: var(--blue);
  color: white;
  font-weight: 800;
  padding: 16px;
  text-align: center;
}

.gantt-header:nth-child(even) {
  background: var(--navy);
}

.gantt-activity-head {
  background: #e8912f;
}

.gantt-activity {
  background: #fff4e5;
  border-top: 1px solid var(--line);
  color: var(--ink);
  min-height: 74px;
  padding: 14px 16px;
}

.gantt-activity:nth-of-type(4n + 1) {
  background: #ead4df;
}

.gantt-activity strong,
.gantt-activity span {
  display: block;
}

.gantt-activity strong {
  font-size: 15px;
  line-height: 1.2;
}

.gantt-activity span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.gantt-lane {
  background:
    repeating-linear-gradient(90deg, rgba(7, 27, 58, 0.04) 0, rgba(7, 27, 58, 0.04) calc(100% / var(--periods)), rgba(255, 255, 255, 0.2) calc(100% / var(--periods)), rgba(255, 255, 255, 0.2) calc((100% / var(--periods)) * 2));
  border-top: 1px solid var(--line);
  grid-column: 2 / -1;
  min-height: 74px;
  position: relative;
}

.gantt-bar {
  align-items: center;
  background: #ff515b;
  border-radius: 2px;
  color: white;
  display: flex;
  height: 16px;
  min-width: 36px;
  padding: 0 8px;
  position: absolute;
  top: 24px;
}

.gantt-bar.concluido,
.gantt-bar.concluida,
.gantt-bar.feito {
  background: #4d5561;
}

.gantt-bar.atencao,
.gantt-bar.em-andamento {
  background: #ff515b;
}

.gantt-bar.pendente {
  background: #e8912f;
}

.gantt-bar span {
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-date-label {
  color: var(--muted);
  font-size: 11px;
  position: absolute;
  top: 43px;
  white-space: nowrap;
}

.gantt-dependency {
  background: #fff2cf;
  border-radius: 999px;
  bottom: 8px;
  color: #8a5b00;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  left: 16px;
  max-width: calc(100% - 32px);
  overflow: hidden;
  padding: 4px 8px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-section {
  background: #f5f8fc;
}

.todo-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.todo-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  margin-bottom: 0;
}

.todo-header strong {
  color: var(--muted);
}

.todo-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 14px;
}

.todo-filters label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.todo-filters select {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
}

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

.todo-metrics article {
  padding: 16px;
}

.todo-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.todo-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(280px, 2.2fr) 140px 110px 120px 120px 88px 90px minmax(180px, 1fr);
  min-width: 1180px;
  padding: 14px;
}

.todo-head {
  background: #f0f5fb;
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.todo-row span {
  color: var(--ink);
  font-size: 14px;
}

.todo-row strong {
  display: block;
}

.todo-row small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.todo-row mark {
  background: #fff2cf;
  border-radius: 999px;
  color: #8a5b00;
  font-weight: 800;
  padding: 5px 8px;
}

.project-dashboard,
.project-model,
.feeding-section {
  padding: 56px clamp(20px, 5vw, 64px);
}

.project-dashboard,
.feeding-section {
  background: #eef5ff;
}

.project-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 32px;
}

.project-summary article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.project-summary span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.project-summary strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.management-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.management-filters button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 9px 14px;
}

.management-filters button.active,
.management-filters button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

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

.management-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

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

.management-card h3 {
  font-size: 24px;
  line-height: 1.16;
  margin: 0;
}

.management-status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.management-status.ok {
  background: var(--sky);
  color: var(--blue);
}

.management-status.attention {
  background: #fff2cf;
  color: #8a5b00;
}

.management-status.critical {
  background: #ffe5df;
  color: #9b2f1d;
}

.management-status.done {
  background: #e5edf8;
  color: #53647d;
}

.management-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.management-card dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.management-card dd {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.management-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.feeding-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.feeding-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feeding-grid h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.feeding-grid p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.events-section,
.suppliers-section {
  padding: 56px clamp(20px, 5vw, 64px) 76px;
}

.csv-config-card {
  background: #eef5ff;
  border: 1px solid #bdd5f5;
  border-left: 5px solid var(--blue-bright);
  border-radius: 8px;
  margin-top: 30px;
  padding: 20px;
}

.csv-config-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 8px;
}

.csv-config-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.csv-config-card p + p {
  margin-top: 10px;
}

.csv-columns {
  font-size: 14px;
}

.csv-url-control {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.csv-url-control label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.csv-url-control div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.csv-url-control input {
  background: white;
  border: 1px solid #bdd5f5;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
}

.csv-url-control button {
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

.event-filters,
.supplier-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  padding: 22px;
}

.supplier-filters {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
}

.event-filters label,
.supplier-filters label {
  color: #243759;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.event-filters input,
.event-filters select,
.supplier-filters input,
.supplier-filters select {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.filter-actions {
  align-items: end;
  display: flex;
}

.filter-actions button {
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
  width: 100%;
}

.events-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 26px 0 14px;
}

.events-toolbar p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.events-list {
  display: grid;
  gap: 16px;
}

.event-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.event-main {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.event-code {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.event-card h3,
.empty-state h3 {
  font-size: 25px;
  line-height: 1.18;
  margin: 6px 0 0;
}

.status-pill {
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.status-pill.acontecendo {
  background: var(--lime);
  color: var(--navy);
}

.status-pill.finalizado {
  background: #e5edf8;
  color: #53647d;
}

.status-pill.cancelado {
  background: #ffe5df;
  color: #9b2f1d;
}

.event-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  padding-top: 18px;
}

.event-meta span {
  color: var(--muted);
  display: grid;
  font-size: 15px;
  gap: 3px;
}

.event-meta strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.event-links a,
.scope-button {
  background: #eef5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.event-links a:hover,
.scope-button:hover {
  background: var(--blue);
  color: white;
}

.scope-panel {
  background: #f7faff;
  border: 1px solid #bdd5f5;
  border-left: 5px solid var(--blue-bright);
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.scope-panel span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-panel h4 {
  font-size: 20px;
  line-height: 1.18;
  margin: 6px 0 12px;
}

.scope-panel p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  margin: 8px 0 0;
}

.suppliers-hero {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.92), rgba(0, 87, 184, 0.76)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.suppliers-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.suppliers-table {
  border-collapse: collapse;
  min-width: 1060px;
  width: 100%;
}

.suppliers-table th,
.suppliers-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.suppliers-table th {
  background: #f2f7ff;
  color: #5b6a82;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.suppliers-table td {
  color: var(--muted);
  font-size: 14px;
}

.suppliers-table td strong,
.suppliers-table td span {
  display: block;
}

.suppliers-table td strong {
  color: var(--ink);
  font-size: 15px;
}

.suppliers-table a {
  background: #eef5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.supplier-category {
  color: var(--blue);
  font-weight: 800;
}

.status-pill.pending {
  background: #fff4d8;
  color: #8a5a00;
}

.warning-row td {
  background: #fff7f3;
  border-left: 5px solid var(--coral);
}

.warning-empty {
  border-color: #f0c8bd;
  border-left: 5px solid var(--coral);
}

.templates-intro {
  background: #eef5ff;
  padding: 56px clamp(20px, 5vw, 64px);
}

.template-rules {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.template-rules article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.template-rules span {
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 800;
}

.template-rules h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 12px 0;
}

.template-rules p {
  color: var(--muted);
  font-size: 16px;
}

.template-library {
  padding: 56px clamp(20px, 5vw, 64px) 76px;
}

.template-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.template-card:hover {
  border-color: #9fc4f0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.template-icon {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  margin-bottom: 22px;
  width: 46px;
}

.template-card:nth-child(3n + 2) .template-icon {
  background: var(--blue);
}

.template-card:nth-child(3n) .template-icon {
  background: var(--lime);
  color: var(--navy);
}

.template-card h3 {
  font-size: 22px;
  line-height: 1.16;
  margin: 0 0 12px;
}

.template-card p {
  color: var(--muted);
  font-size: 16px;
}

.template-card strong {
  color: var(--blue);
  display: inline-block;
  font-size: 14px;
  margin-top: auto;
}

.stakeholder-notes {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
}

.note-panel {
  border-top: 6px solid var(--blue-bright);
}

.warning-panel {
  border-top-color: var(--coral);
}

.note-panel ul {
  margin: 0;
  padding-left: 20px;
}

.note-panel li + li {
  margin-top: 10px;
}

.wide {
  grid-column: 1 / -1;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .tone-section,
  .dos-section,
  .page-content,
  .finance-content,
  .restricted-grid,
  .summary-grid,
  .profile-grid,
  .requirements-grid,
  .raci-grid,
  .contact-grid,
  .template-rules,
  .template-grid,
  .admin-layout,
  .event-filters,
  .supplier-filters,
  .event-meta,
  .project-summary,
  .management-grid,
  .feeding-grid,
  .dashboard-kpis,
  .dashboard-detail-grid,
  .dashboard-management-grid,
  .stakeholder-dashboard,
  .stakeholder-info-grid,
  .wbs-packages,
  .wbs-detail-grid,
  .scope-meta,
  .scope-impact-grid,
  .time-metrics,
  .time-date-grid,
  .time-plan-grid,
  .finance-metrics,
  .finance-flow-grid,
  .risk-metrics,
  .risk-meta,
  .risk-plan-grid,
  .communication-metrics,
  .communication-meta,
  .communication-plan-grid,
  .quality-metrics,
  .quality-main-grid,
  .quality-action-grid,
  .quality-meta,
  .team-metrics,
  .team-meta,
  .team-plan-grid,
  .schedule-meta,
  .dependency-grid,
  .todo-filters,
  .todo-metrics,
  .stakeholder-notes {
    grid-template-columns: 1fr;
  }

  .csv-url-control div {
    grid-template-columns: 1fr;
  }

  .todo-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-accordion summary {
    align-items: start;
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .dashboard-accordion summary small,
  .dashboard-accordion summary > strong {
    grid-column: 1 / -1;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .compact-table .table-row {
    grid-template-columns: 1fr;
  }

  .table-row > div + div {
    border-left: 0;
  }

  .hero {
    min-height: auto;
  }

  .login-panel {
    align-self: stretch;
  }

  .insight-grid,
  .guide-grid,
  .asset-grid,
  .field-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .main-nav a {
    padding: 7px 9px;
  }

  .hero {
    padding: 42px 18px 44px;
  }

  h1 {
    font-size: 42px;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .event-main {
    flex-direction: column;
  }
}
