:root {
  --ink: #17202b;
  --muted: #677487;
  --panel: rgba(250, 247, 241, 0.94);
  --line: rgba(28, 39, 54, 0.10);
  --navy: #12324a;
  --teal: #137b72;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #f5f7f8;
}

.plan-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.plan-header,
.summary-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(17, 30, 43, 0.08);
}

.plan-header {
  background: #ffffff;
}

.plan-header {
  padding: 22px 200px 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.plan-header-main {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.plan-header-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.plan-header-image {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: contain;
  object-position: center center;
}

.plan-header-copy {
  min-width: 0;
}

.eyebrow,
.panel-kicker,
.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
}

.plan-header h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  line-height: 1.05;
}

.header-copy {
  margin: 0;
  color: #304050;
  line-height: 1.5;
}

.back-link {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 123, 114, 0.34);
  background: linear-gradient(135deg, rgba(18, 50, 74, 0.98), rgba(19, 123, 114, 0.98));
  box-shadow: 0 18px 34px rgba(19, 123, 114, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-link:hover,
.back-link:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(16, 60, 88, 0.99), rgba(21, 141, 129, 0.99));
  box-shadow: 0 22px 36px rgba(19, 123, 114, 0.34);
  transform: translateY(-2px);
  outline: none;
}

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

.summary-card {
  padding: 16px 18px;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.plan-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 18px 20px;
}

.summary-grid + .panel {
  margin-top: 28px;
}

.panel + .panel {
  margin-top: 24px;
}

.plan-grid + .panel,
.plan-grid + .panel + .panel {
  margin-top: 18px;
}

.panel h2 {
  margin: 6px 0 14px;
  line-height: 1.08;
}

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

.priority-card {
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(18, 50, 74, 0.08);
}

.priority-title {
  font-weight: 800;
}

.priority-copy,
.guideline-list {
  color: #304050;
  line-height: 1.55;
}

.priority-copy {
  margin: 6px 0 0;
}

.guideline-list {
  margin: 0;
  padding-left: 18px;
}

.guideline-list li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(18, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead th {
  background: #eef5f4;
  color: #0f5f58;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 50, 74, 0.07);
  white-space: nowrap;
  font-size: 0.9rem;
}

tbody tr:nth-child(even) {
  background: rgba(245, 249, 248, 0.76);
}

.patrol-load {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.patrol-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #137b72;
}

.patrol-icon {
  width: 26px;
  height: 13px;
  display: block;
  flex: 0 0 auto;
}

.patrol-count {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #355064;
}

@media (max-width: 1100px) {
  .summary-grid,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .plan-shell {
    padding: 16px;
  }

  .plan-header {
    padding: 84px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .plan-header-main {
    grid-template-columns: 1fr;
  }

  .plan-header-image {
    height: 136px;
  }

  .summary-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .back-link {
    top: 14px;
    right: 16px;
    min-height: 44px;
    padding: 0 15px;
  }
}
