:root {
  --bg: #f4f7f6;
  --white: #fff;
  --ink: #18313a;
  --muted: #71838b;
  --line: #e3eae8;
  --teal: #08796e;
  --teal-soft: #e3f3ef;
  --orange: #d58a28;
  --orange-soft: #fff3de;
  --red: #c45655;
  --red-soft: #ffeded;
  --navy: #102e3d;
  --shadow: 0 8px 28px rgba(15, 51, 61, 0.045);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #58c6b6;
  outline-offset: 2px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--navy);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 24px;
}
.brand-mark {
  height: 43px;
  width: 43px;
  background: linear-gradient(145deg, #20c6ab, #097e84);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -1.5px;
}
.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  color: #a6c3c8;
  font-size: 11px;
  margin-top: 1px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #b8ced1;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
.nav-btn:hover {
  background: #204558;
  color: #fff;
}
.nav-btn.active {
  background: #246154;
  color: #f0fffa;
}
.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid #315364;
  color: #a6c3c8;
  font-size: 12px;
}
.side-bottom b {
  color: white;
}
.main {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 44px 76px;
}
.topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal);
}
h1 {
  margin: 5px 0 0;
  font-size: clamp(29px, 3vw, 43px);
  letter-spacing: -1.6px;
  line-height: 1.12;
}
h2 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.65px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 720px;
}
.inline-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.button:hover {
  border-color: #8cbbb3;
}
.button.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.button.primary:hover {
  background: #065d55;
}
.button.ghost {
  background: transparent;
}
.button.warning {
  color: #a34a41;
  background: #fff2ee;
}
.button.small {
  min-height: 33px;
  padding: 6px 11px;
  font-size: 12px;
}
.tag {
  display: inline-block;
  padding: 4px 9px;
  background: #eff5f4;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 750;
  color: #60747a;
}
.tag.critical {
  background: var(--red-soft);
  color: #af4c49;
}
.tag.recommended {
  background: var(--orange-soft);
  color: #a36b25;
}
.tag.optional {
  color: #7a8c94;
}
.hero {
  background: linear-gradient(115deg, #123547 10%, #1a5a5b 76%, #166b61);
  color: white;
  border-radius: 22px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero .eyebrow {
  color: #a4f0d9;
}
.hero h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 7px 0 9px;
}
.hero p {
  color: #cbe2e2;
  margin: 0 0 19px;
  max-width: 530px;
  font-size: 14px;
}
.hero .button {
  background: #fff;
  color: #175c55;
  border: 0;
}
.ring {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#44d4ad var(--angle), rgba(255, 255, 255, 0.16) 0);
  position: relative;
  margin: auto;
}
.ring:before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #1a5757;
}
.ring div {
  position: relative;
  text-align: center;
}
.ring strong {
  display: block;
  font-size: 40px;
  letter-spacing: -2px;
}
.ring small {
  color: #d9efec;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 17px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  box-shadow: var(--shadow);
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .value {
  display: block;
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 800;
  margin: 4px 0 0;
}
.stat .note {
  font-size: 11px;
  color: var(--muted);
}
.stat .value.good {
  color: var(--teal);
}
.stat .value.warn {
  color: #ba7830;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 14px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kit-card {
  width: 100%;
  text-align: left;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  padding: 19px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.kit-card:hover {
  transform: translateY(-2px);
  border-color: #acd7cc;
}
.kit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.kit-emoji {
  font-size: 25px;
  background: #eaf4f0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.kit-percent {
  font-weight: 850;
  color: var(--teal);
  font-size: 19px;
}
.kit-card h3 {
  font-size: 16px;
  letter-spacing: -0.25px;
}
.kit-card p {
  color: var(--muted);
  margin: 5px 0 15px;
  font-size: 12px;
}
.bar {
  height: 7px;
  border-radius: 20px;
  background: #e9efed;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 20px;
  transition: width 0.2s;
}
.kit-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: #71848a;
}
.notice {
  padding: 14px 16px;
  border: 1px solid #f0dbb0;
  background: #fffaf0;
  border-radius: 13px;
  font-size: 13px;
  color: #725b31;
  margin-top: 16px;
}
.notice strong {
  color: #684b22;
}
.notice.teal {
  background: #e9f5f2;
  border-color: #c9e8df;
  color: #39655f;
}
.panel {
  background: white;
  border-radius: 17px;
  border: 1px solid var(--line);
  padding: 21px;
  box-shadow: var(--shadow);
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px solid #edf1ef;
  padding: 0 0 10px;
}
.mini-list div:last-child {
  border: 0;
  padding-bottom: 0;
}
.muted {
  color: var(--muted);
}
.toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search {
  flex: 1;
  min-width: 180px;
  background: #f4f7f6;
  border: 1px solid #e7eeeb;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 41px;
}
.filter {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 12px;
  border-radius: 10px;
  min-height: 41px;
  color: var(--ink);
  font-size: 13px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 17px;
}
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50px;
  padding: 8px 13px;
  color: #61777c;
  font-size: 12px;
  font-weight: 700;
}
.chip.active {
  background: #ddf2eb;
  border-color: #b3e0d2;
  color: #08665c;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 9px;
  font-size: 12px;
  font-weight: 800;
  color: #60747c;
  letter-spacing: 0.2px;
}
.item-list {
  display: grid;
  gap: 8px;
}
.item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
}
.item-status {
  height: 34px;
  width: 34px;
  border: 1px solid #d2dfdb;
  border-radius: 50%;
  background: #fff;
  color: #99aaa8;
  font-weight: 900;
  font-size: 17px;
  display: grid;
  place-items: center;
}
.item-status.done {
  background: #def1e8;
  color: var(--teal);
  border-color: #bce2d6;
}
.item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.item-desc {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.item-qty {
  min-width: 100px;
  text-align: right;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.item-qty small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  display: block;
}
.qty-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.qty-controls button {
  border: 1px solid var(--line);
  background: #f6faf8;
  width: 30px;
  height: 31px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--teal);
  font-weight: 700;
}
.qty-controls button:hover {
  background: #dcefe9;
}
.small-link {
  border: 0;
  color: var(--teal);
  font-weight: 750;
  font-size: 12px;
  background: transparent;
  padding: 8px 3px;
}
.shopping-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin: 9px 0;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.shopping-card .name {
  font-weight: 800;
  font-size: 14px;
}
.shopping-card .unit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.shopping-card .need {
  margin-left: auto;
  font-size: 16px;
  color: #ad6840;
  font-weight: 850;
  text-align: right;
}
.shopping-card .need small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8c9ca1;
}
.pill {
  background: #eaf2f0;
  border-radius: 50px;
  padding: 4px 8px;
  font-size: 10px;
  color: #547079;
  font-weight: 750;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.field label {
  font-size: 12px;
  font-weight: 750;
  color: #526972;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #dae5e1;
  background: #fbfdfc;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  width: 100%;
  min-height: 41px;
}
.field textarea {
  min-height: 83px;
  resize: vertical;
}
.field.help small {
  color: var(--muted);
}
.big-number {
  font-size: 35px;
  font-weight: 850;
  letter-spacing: -1.5px;
  color: var(--teal);
}
.guide {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0;
  overflow: hidden;
}
.guide summary {
  padding: 16px 18px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.guide summary:after {
  content: '＋';
  color: var(--teal);
}
.guide[open] summary:after {
  content: '−';
}
.guide .guide-body {
  border-top: 1px solid var(--line);
  padding: 0 19px 14px;
  font-size: 13px;
  color: #536872;
}
.guide ol {
  padding-left: 20px;
}
.guide li {
  padding: 4px 0;
}
.steps {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.steps div {
  padding: 12px;
  border-radius: 10px;
  background: #f3f8f6;
  font-size: 13px;
}
.drill {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.clock {
  font-size: 45px;
  font-weight: 850;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.empty {
  border: 1px dashed #cbdcd6;
  border-radius: 14px;
  text-align: center;
  padding: 35px;
  color: var(--muted);
  background: #fafffd;
}
.empty strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  margin: 8px;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  margin: 35px 0 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 34, 42, 0.55);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(100%, 530px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 22px 90px #031d2d4d;
  padding: 24px;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  border: 0;
  background: #eef5f2;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.modal .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 100;
  max-width: 310px;
  background: #193e41;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 8px 26px #0002;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.mobile-top {
  display: none;
}
.bottom-nav {
  display: none;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 30px 25px 76px;
  }
  .sidebar {
    padding: 26px 12px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--navy);
    color: white;
  }
  .mobile-top strong {
    font-size: 17px;
  }
  .main {
    padding: 23px 16px 110px;
  }
  .topline {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .topline .inline-actions {
    width: 100%;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 98px;
    padding: 22px 18px;
    gap: 9px;
    border-radius: 17px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero p {
    font-size: 12px;
  }
  .ring {
    width: 92px;
    height: 92px;
  }
  .ring:before {
    inset: 8px;
  }
  .ring strong {
    font-size: 26px;
  }
  .ring small {
    font-size: 10px;
  }
  .hero .button {
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
  }
  .stats {
    gap: 9px;
    margin-top: 12px;
  }
  .stat {
    padding: 12px;
  }
  .stat .value {
    font-size: 21px;
  }
  .kit-grid,
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    margin-top: 23px;
  }
  .item {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px;
  }
  .item-qty {
    min-width: 68px;
  }
  .qty-controls {
    grid-column: 2/4;
    justify-content: flex-end;
  }
  .item-desc {
    font-size: 11px;
  }
  .toolbar {
    padding: 10px;
  }
  .bottom-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -3px 18px #0f353513;
  }
  .bottom-nav button {
    background: none;
    border: 0;
    padding: 5px 2px;
    min-width: 56px;
    font-size: 10px;
    font-weight: 700;
    color: #84969a;
  }
  .bottom-nav button span {
    display: block;
    font-size: 20px;
    line-height: 23px;
  }
  .bottom-nav button.active {
    color: var(--teal);
  }
  .modal {
    padding: 18px;
  }
  .shopping-card {
    padding: 12px;
  }
  .shopping-card .name {
    font-size: 13px;
  }
}
@media print {
  body {
    background: #fff;
    font-size: 12px;
  }
  .sidebar,
  .bottom-nav,
  .mobile-top,
  .topline .inline-actions,
  .button,
  .toolbar,
  .chips,
  .qty-controls,
  .item-status,
  .small-link,
  .modal-backdrop,
  .toast {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
    max-width: 100%;
  }
  .hero {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .hero p,
  .hero .eyebrow {
    color: #333;
  }
  .ring {
    display: none;
  }
  .panel,
  .stat,
  .kit-card,
  .item {
    break-inside: avoid;
    box-shadow: none;
  }
  .footer-note {
    margin-top: 15px;
  }
}

/* Additive accessibility rules; all original MVP colour tokens and grids are retained. */
.qty-controls .small-link {
  width: auto;
  font-size: 12px;
  padding: 6px 9px;
}
.item-title,
.item-desc,
.footer-note,
.shopping-card .name {
  overflow-wrap: anywhere;
}
.field input[type='checkbox'] {
  width: auto;
  min-height: 0;
  accent-color: var(--teal);
}
.field label:has(input[type='checkbox']) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #58c6b6;
  outline-offset: 3px;
}
@media (max-width: 380px) {
  .bottom-nav button {
    min-width: 0;
    flex: 1;
    font-size: 9px;
  }
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 84px;
  }
  .ring {
    width: 80px;
    height: 80px;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .filter {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
