:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #142b3d;
  background: #f5f7fa;
  font-synthesis: none;
  --ink:#142b3d;
  --muted:#526171;
  --teal:#14675f;
  --line:#dce3e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #368f86;
  outline-offset: 4px;
}
button {
  border: 0;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 0;
}
#sidebar {
  width: 258px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.7px;
}
.brandmark {
  font-size: 40px;
  line-height: 1;
  color: var(--teal);
}
.brandmark span,
.mobile-brand > span {
  color: #a3c6bd;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 7px;
  color: var(--muted);
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #6b7a86;
  margin: 55px 12px 18px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--muted);
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  margin: 5px 0;
}
nav a.active {
  background: #eaf3f0;
  color: var(--teal);
  font-weight: 650;
}
nav a:hover {
  background: #f0f5f4;
}
.side-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
}
.side-bottom p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.side-bottom small {
  font-size: 12px;
  color: #75818c;
}
.country {
  font-size: 12px;
  font-weight: 650;
}
.country span {
  margin-left: 10px;
  font-weight: 400;
  font-size: 14px;
}
.workspace {
  margin-left: 258px;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  background: #ffffffb3;
}
.desktop-only {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #6b7a86;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
#offline-state {
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #eaf3f0;
  border-radius: 50%;
}
main {
  max-width: 1250px;
  padding: 42px 48px 24px;
  margin: auto;
  min-height: 75vh;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--teal);
  font-weight: 650;
  margin-bottom: 12px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 21px;
  letter-spacing: -.4px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 7px;
}
p {
  line-height: 1.6;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.pill {
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 8px;
  background: white;
  white-space: nowrap;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill svg {
  width: 16px;
  height: 16px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr);
  gap: 22px;
}
.hero {
  border: 1px solid #d8e9e3;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: #e8f2ee;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .eyebrow {
  margin: 0 0 22px;
}
.hero h2 {
  font-size: 29px;
  max-width: 360px;
  line-height: 1.17;
  letter-spacing: -1px;
  z-index: 1;
}
.hero p {
  color: #405e58;
  font-size: 14px;
  max-width: 330px;
  z-index: 1;
  margin-bottom: 23px;
}
.hero .btn {
  margin-top: auto;
  z-index: 1;
}
.hero-art {
  position: absolute;
  right: -15px;
  bottom: 6px;
  width: 175px;
  height: 175px;
  opacity: .32;
  color: var(--teal);
  transform: rotate(-8deg);
}
.hero-art svg {
  width: 100%;
  height: 100%;
  stroke-width: .65;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  background: var(--teal);
  color: white;
  text-decoration: none;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.subtle {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
}
.house-card {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf3f7;
  color: #496778;
}
.house-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.house-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.small-label {
  font-size: 12px;
  color: var(--muted);
}
.stat {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.7px;
}
.stat small {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 34px 0 17px;
}
.section-title a {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.action-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 19px 23px;
  text-decoration: none;
  border-bottom: 1px solid #e9eef2;
}
.action-row:last-child {
  border-bottom: 0;
}
.action-row:hover {
  background: #f8faf9;
}
.action-number {
  font-size: 12px;
  color: #73818b;
  width: 22px;
}
.action-copy {
  flex: 1;
}
.action-copy h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.action-copy p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.action-row > svg {
  width: 18px;
  color: #80908d;
}
.tag {
  font-size: 11px;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  background: #f9f1e4;
  color: #835416;
}
.tag.green {
  background: #eaf3ed;
  color: #237348;
}
.essentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.essentials .card {
  padding: 22px;
}
.essentials h3 {
  font-size: 15px;
  margin: 20px 0 12px;
}
.bar {
  height: 5px;
  background: #eaf0f3;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px 0 10px;
}
.bar span {
  height: 100%;
  display: block;
  background: var(--teal);
  border-radius: 5px;
}
.essentials .small-label {
  font-size: 12px;
}
.bottom-strip {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.bottom-strip p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.bottom-strip h3 {
  font-size: 14px;
  margin: 0;
}
.bottom-strip > a {
  margin-left: auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.page-footer {
  padding: 15px 48px 28px;
  text-align: center;
  color: #677684;
  font-size: 11px;
}
.mobile-brand,
#mobile-nav {
  display: none;
}
.notice {
  background: #eef3f7;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
  color: #3d5365;
}
.inventory-list {
  display: grid;
  gap: 12px;
}
.inventory-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 19px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.inventory-item .item-text {
  flex: 1;
}
.inventory-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.inventory-item h3 {
  font-size: 16px;
}
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  color: var(--teal);
}
.filters {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.filters button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 14px;
  color: var(--muted);
}
.filters button.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stack {
  display: grid;
  gap: 20px;
}
.empty {
  padding: 30px;
  text-align: center;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 18px;
}
input,
textarea,
select {
  border: 1px solid #bac9d2;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 13px 12px;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
label small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
dialog {
  width: min(520px, calc(100% - 30px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 80px #142b3d33;
}
dialog::backdrop {
  background: #142b3d66;
}
dialog h2 {
  margin-bottom: 9px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 23px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.error {
  color: #b63535;
  font-size: 14px;
  margin: 12px 0;
}
.source {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 25px;
}
.source a {
  color: var(--teal);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: 90vw;
  font-size: 14px;
  display: none;
}
#toast.show {
  display: block;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.contact a {
  color: var(--teal);
}
.full {
  grid-column: 1/-1;
}
.version {
  font-size: 12px;
  color: #677684;
  margin: 10px 0 0;
}
.file-label {
  position: relative;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.plan-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
button:hover.btn {
  filter: brightness(.96);
}
@media (min-width: 1450px) {
  main {
    padding-top: 52px;
  }
}
@media (max-width: 1100px) {
  #sidebar {
    width: 220px;
    padding: 30px 18px;
  }
  .workspace {
    margin-left: 220px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .overview-grid {
    grid-template-columns: 1.45fr 1fr;
  }
  .hero {
    padding: 24px;
  }
  .hero-art {
    width: 125px;
    height: 125px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    max-width: 260px;
  }
  .tag {
    display: none;
  }
}
@media (max-width: 760px) {
  #sidebar,
  .desktop-only {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 77px;
    padding: 0 21px;
    background: white;
  }
  .mobile-brand {
    display: block;
    text-decoration: none;
    font-size: 31px;
    font-weight: 700;
    color: var(--teal);
  }
  .mobile-brand b {
    font-size: 18px;
    letter-spacing: -.7px;
    color: var(--ink);
  }
  .header-actions {
    gap: 11px;
  }
  #offline-state {
    font-size: 10px;
    max-width: 84px;
    line-height: 1.5;
    text-align: right;
  }
  .avatar {
    width: 35px;
    height: 35px;
  }
  .avatar svg {
    width: 18px;
  }
  main {
    padding: 28px 20px 16px;
  }
  h1 {
    font-size: 29px;
  }
  .title-row {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .title-row .pill {
    font-size: 11px;
    padding: 8px 10px;
    margin-top: 3px;
  }
  .lead {
    font-size: 14px;
    max-width: 290px;
    line-height: 1.65;
  }
  .eyebrow {
    font-size: 10px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero {
    padding: 25px;
    min-height: 259px;
    border-radius: 16px;
  }
  .hero h2 {
    font-size: 28px;
    max-width: 260px;
  }
  .hero p {
    font-size: 14px;
    max-width: 245px;
  }
  .hero-art {
    width: 130px;
    height: 130px;
    right: -13px;
    bottom: 13px;
  }
  .house-card {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .house-card .card-top {
    display: none;
  }
  .house-card h3 {
    font-size: 15px;
    margin: 0;
  }
  .house-card p {
    font-size: 12px;
  }
  .house-card .stat {
    font-size: 20px;
    grid-column: 1;
  }
  .house-card .btn {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
    font-size: 12px;
    padding: 8px 12px;
    min-height: 42px;
  }
  .house-card .btn svg {
    display: none;
  }
  .section-title {
    margin: 29px 0 15px;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .section-title a {
    font-size: 12px;
  }
  .action-row {
    padding: 17px 15px;
    gap: 11px;
  }
  .action-number {
    width: 18px;
    font-size: 11px;
  }
  .action-copy h3 {
    font-size: 14px;
  }
  .action-copy p {
    font-size: 12px;
    line-height: 1.5;
  }
  .essentials {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .essentials .card {
    padding: 17px 20px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    column-gap: 14px;
    align-items: center;
  }
  .essentials .card > .icon-box {
    grid-row: 1/4;
    width: 38px;
    height: 38px;
  }
  .essentials h3 {
    margin: 0;
    font-size: 14px;
  }
  .essentials .stat {
    font-size: 18px;
  }
  .essentials .stat small {
    font-size: 12px;
  }
  .essentials .bar {
    grid-column: 2/4;
    margin: 11px 0 7px;
  }
  .essentials .small-label {
    grid-column: 2/4;
    font-size: 11px;
  }
  .bottom-strip {
    padding: 17px;
    gap: 10px;
    align-items: flex-start;
  }
  .bottom-strip > svg {
    width: 18px;
  }
  .bottom-strip h3 {
    font-size: 13px;
  }
  .bottom-strip p {
    font-size: 11px;
  }
  .bottom-strip > a {
    font-size: 12px;
  }
  .page-footer {
    padding: 14px 24px 110px;
    font-size: 10px;
  }
  #mobile-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 7px 10px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
    justify-content: space-around;
    backdrop-filter: blur(12px);
  }
  #mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 9px 2px;
    font-size: 10px;
    border-radius: 8px;
  }
  #mobile-nav svg {
    width: 21px;
    height: 21px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 21px;
  }
  .inventory-item {
    padding: 16px 14px;
    gap: 12px;
  }
  .inventory-item .icon-box {
    width: 34px;
    height: 34px;
  }
  .inventory-item h3 {
    font-size: 14px;
  }
  .inventory-item p {
    font-size: 12px;
  }
  .title-row > .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .title-row > .btn svg {
    display: none;
  }
  #toast {
    bottom: 100px;
    width: max-content;
    text-align: center;
  }
  .form-grid {
    gap: 12px;
  }
  .notice {
    font-size: 13px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .source {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  nav a,
  .action-row {
    transition: background .15s, filter .15s;
  }
}
@media (max-width: 360px) {
  main {
    padding: 24px 14px;
  }
  .mobile-brand b {
    font-size: 16px;
  }
  .title-row .pill {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
[hidden] {
  display: none !important;
}
.flex-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.flex-actions .file-label {
  margin: 0;
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
}
.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin: 26px 0 0;
}
.toolbar label {
  font-size: 12px;
  margin: 0;
}
.water-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #e8f2ee;
  border: 1px solid #d8e9e3;
  border-radius: 14px;
  padding: 20px;
}
.water-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.water-summary a {
  margin-left: auto;
  font-size: 13px;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.status-line .tag {
  display: inline-block;
}
.text-danger {
  color: #a42c34;
}
.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.item-actions a {
  text-decoration: none;
}
.item-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.household-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.household-stats > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.household-stats strong {
  font-size: 35px;
  font-weight: 600;
}
.household-stats span {
  font-size: 13px;
  color: var(--muted);
}
.household-stats > div + div {
  border-left: 1px solid var(--line);
}
.scenario-grid,
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.scenario-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .2s;
}
.scenario-card:hover {
  border-color: var(--teal);
}
.scenario-card h2 {
  font-size: 20px;
}
.scenario-card p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--teal);
  margin-top: auto;
}
.quick-links {
  margin-bottom: 24px;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.phase-tabs {
  display: flex;
  border: 1px solid var(--line);
  padding: 5px;
  gap: 5px;
  border-radius: 12px;
  background: white;
  margin-bottom: 20px;
}
.phase-tabs button {
  flex: 1;
  background: transparent;
  padding: 13px;
  border-radius: 8px;
  color: var(--muted);
}
.phase-tabs .selected {
  background: var(--teal);
  color: white;
}
.check-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  padding: 14px 0;
  cursor: pointer;
}
.check-label input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 1px 0 0;
  accent-color: var(--teal);
}
.check-label small {
  display: block;
  color: var(--muted);
}
.checklist .check-label + .check-label {
  border-top: 1px solid var(--line);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border: 0;
}
.task-row label {
  flex: 1;
}
.section-title.compact {
  margin: 0 0 16px;
}
.emergency-line {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: #fff1ee;
}
.emergency-line p {
  margin: 6px 0;
}
.danger-btn {
  background: #ad383d;
}
.danger {
  color: #8f2830;
  background: #fff0ef;
}
.crisis-toggle {
  background: #fff;
  border: 1px solid #d7b9b6;
  border-radius: 8px;
  padding: 9px 12px;
  color: #85383c;
  font-size: 12px;
  min-height: 40px;
}
.crisis-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.crisis-link svg:last-child {
  margin-left: auto;
}
.crisis #sidebar,
.crisis #mobile-nav,
.crisis .desktop-only,
.crisis .avatar {
  display: none;
}
.crisis .workspace {
  margin-left: 0;
}
.crisis main {
  max-width: 950px;
}
.crisis .mobile-brand {
  display: block;
}
.crisis .topbar {
  justify-content: flex-end;
}
.crisis .mobile-brand {
  margin-right: auto;
}
.crisis .crisis-toggle {
  display: none;
}
.crisis .check-label {
  font-size: 19px;
}
.separated {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.shopping-list {
  padding: 0;
  list-style: none;
}
.shopping-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.shopping-list span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.suggestions .action-row {
  width: 100%;
  background: white;
  text-align: left;
  justify-content: space-between;
}
.progress-list {
  padding: 0;
  list-style: none;
}
.progress-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.progress-list span {
  flex: 1;
}
.progress-list strong {
  font-size: 11px;
  color: var(--muted);
}
#toast.show {
  display: flex;
  align-items: center;
  gap: 16px;
}
#toast button {
  color: #fff;
  background: transparent;
  border-bottom: 1px solid #fff;
  padding: 4px 0;
  font-weight: 600;
  white-space: nowrap;
}
.report {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  margin-top: 30px;
  line-height: 1.65;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.report.large {
  font-size: 20px;
}
.report.mono {
  color: #000;
}
.report table {
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
}
.report th,
.report td {
  padding: 9px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
}
.report th {
  width: 30%;
  font-weight: 600;
}
.report-section {
  margin: 32px 0;
}
.report h2 {
  margin-bottom: 15px;
}
.report h3 {
  margin-top: 22px;
}
.report .source {
  overflow-wrap: anywhere;
}
.report footer {
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.large-text {
  font-size: 18px;
}
.large-text .lead,
.large-text p,
.large-text .inventory-item p {
  font-size: 16px;
}
.large-text .check-label {
  font-size: 18px;
}
.large-text .btn {
  font-size: 16px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
button:disabled {
  cursor: wait;
}
main,
section,
.title-row > div {
  min-width: 0;
}
@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar .search-label {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .header-actions {
    gap: 8px;
  }
  .crisis-toggle {
    font-size: 10px;
    padding: 7px;
    min-height: 35px;
  }
  .mobile-brand b {
    font-size: 16px;
  }
  #offline-state {
    max-width: 66px;
    font-size: 9px;
  }
  .topbar {
    padding: 0 14px;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .quick-links {
    gap: 10px;
  }
  .quick-links a {
    font-size: 13px;
    padding: 17px 13px;
    gap: 8px;
  }
  .quick-links svg {
    width: 18px;
  }
  .toolbar {
    gap: 10px;
  }
  .water-summary {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .water-summary > div {
    flex: 1;
    min-width: 190px;
  }
  .water-summary a {
    margin-left: 54px;
  }
  .water-summary strong {
    font-size: 14px;
  }
  .water-summary p {
    font-size: 12px;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    padding: 10px 11px;
    font-size: 12px;
  }
  .title-row {
    flex-wrap: wrap;
  }
  .title-row > .btn {
    min-height: 44px;
  }
  .inventory-item {
    align-items: flex-start;
  }
  .inventory-item > .icon-btn {
    align-self: center;
  }
  .inventory-item .item-actions {
    flex-direction: column;
  }
  .item-actions .btn,
  .inventory-item > .btn {
    font-size: 11px;
    padding: 10px;
    min-height: 42px;
  }
  .status-line {
    font-size: 11px;
  }
  .task-row {
    padding: 8px 14px;
  }
  .task-row .btn {
    font-size: 11px;
    padding: 9px;
  }
  .checklist {
    padding: 12px 18px;
  }
  .check-label {
    font-size: 15px;
    padding: 14px 0;
  }
  .scenario-card {
    gap: 15px;
  }
  .scenario-card h2 {
    font-size: 20px;
  }
  .section-title.compact {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .flex-actions .btn {
    flex-grow: 1;
  }
  .report {
    padding: 20px 15px;
  }
  .report th,
  .report td {
    padding: 8px 4px;
    font-size: 13px;
  }
  .report.large th,
  .report.large td {
    font-size: 17px;
  }
  .crisis .mobile-brand {
    font-size: 27px;
  }
  .crisis .page-footer {
    padding-bottom: 30px;
  }
  dialog {
    padding: 22px;
    max-height: 88dvh;
  }
  .emergency-line {
    flex-wrap: wrap;
  }
  .household-stats strong {
    font-size: 29px;
  }
}
@media (max-width: 390px) {
  .mobile-brand b {
    display: none;
  }
  .header-actions {
    gap: 12px;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .toolbar .search-label {
    grid-column: auto;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    margin: 17mm;
  }
  body {
    background: white;
    color: black;
  }
  #sidebar,
  #mobile-nav,
  .topbar,
  .page-footer,
  .no-print,
  dialog,
  #toast,
  .skip {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  .report {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .report th,
  .report td {
    font-size: inherit;
  }
  tr,
  li {
    break-inside: avoid;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .report .source {
    font-size: 10px;
  }
}
.crisis-exit {
  display: none;
}
.crisis .crisis-exit {
  display: inline-flex;
}
.setup-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #bad6cd;
  background: #edf6f2;
  border-radius: 14px;
}
.setup-banner p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.setup-banner .btn {
  flex-shrink: 0;
}
.feature-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 28px;
}
.feature-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  font-size: 14px;
  font-weight: 600;
}
.feature-links a > span {
  flex: 1;
}
.feature-links svg:last-child {
  width: 14px;
}
.feature-links svg {
  color: var(--teal);
}
.full-row {
  width: 100%;
  background: white;
  color: var(--ink);
  text-align: left;
}
.action-copy small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}
.scenario-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scenario-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  padding: 20px;
}
.scenario-shortcuts svg {
  color: var(--teal);
}
.scenario-shortcuts small {
  color: var(--muted);
  font-size: 12px;
}
.progress-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.progress-groups a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  text-decoration: none;
  padding: 18px;
  font-size: 13px;
}
.progress-groups strong {
  font-size: 12px;
  color: var(--teal);
}
.progress-groups .bar {
  grid-column: 1/-1;
  margin: 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.catalog-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 0;
  cursor: pointer;
}
.catalog-card input {
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}
.catalog-card strong {
  display: block;
  line-height: 1.5;
  font-size: 14px;
}
.catalog-card small {
  display: block;
  line-height: 1.5;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-card:has(input:checked) {
  border-color: var(--teal);
  background: #edf6f2;
}
.catalog-card:has(input:disabled) {
  opacity: .6;
  cursor: default;
}
.catalog-save {
  position: sticky;
  bottom: 16px;
  background: #f5f7faed;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
  margin-top: 20px;
  z-index: 2;
  backdrop-filter: blur(10px);
}
.wizard-progress {
  width: 100%;
  height: 7px;
  accent-color: var(--teal);
  margin: 4px 0 24px;
}
.wizard-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.wizard-scenarios label {
  font-size: 13px;
}
.wizard-scenarios input {
  min-width: 22px;
}
.catalog-grid,
.feature-links,
.scenario-shortcuts {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .feature-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .feature-links a {
    padding: 14px 11px;
    font-size: 12px;
    gap: 8px;
  }
  .feature-links svg {
    width: 19px;
  }
  .scenario-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .scenario-shortcuts a {
    padding: 18px 15px;
    font-size: 13px;
  }
  .progress-groups {
    grid-template-columns: 1fr;
  }
  .setup-banner {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .setup-banner .btn {
    width: 100%;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    padding: 15px;
  }
  .catalog-save {
    bottom: calc(89px + env(safe-area-inset-bottom));
    padding: 12px;
    gap: 8px;
  }
  .catalog-save .btn {
    font-size: 13px;
    padding: 10px 13px;
  }
  .catalog-save span {
    font-size: 12px;
  }
  .wizard-scenarios {
    grid-template-columns: 1fr;
  }
  .progress-groups a {
    padding: 17px;
  }
  .house-card {
    grid-template-columns: 1fr;
  }
  .house-card .btn {
    grid-column: 1;
    grid-row: auto;
    margin-top: 9px;
  }
  .status-line .tag {
    white-space: normal;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .topbar {
    min-height: 77px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media print {
  .catalog-save,
  .setup-banner {
    display: none !important;
  }
}
