.tools-page { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.tools-page h1 { margin: 0.2rem 0 0.4rem; font-size: min(1.7rem, 8.8vw); line-height: 1.3; }
.tools-page .lede { margin: 0 0 1rem; }
.tools-save { margin: 1rem 0; padding: 0.8rem 1rem; background: #f6f1e6; border-radius: 10px; }
.tools-save p { margin: 0; }
.tools-grid { display: grid; gap: 0.7rem; }
.tools-grid label, .tools-calc .lbl { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.tools-grid input, .tools-grid select, .tools-calc input { width: 100%; }
.tools-results { margin-top: 1rem; }
.tools-results dl { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0; }
.tools-results dt { color: #5c564e; }
.tools-results dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tools-results dl > div { display: contents; }
.tools-results .is-neg dd { color: #8a1f11; }
.tools-results .is-pos dd { color: #1d5a2e; }
.tools-fine { font-size: 0.88rem; color: #5c564e; margin-top: 0.8rem; }
.tools-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tools-hub { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.tools-hub a { display: block; padding: 0.9rem 1rem; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; text-decoration: none; color: inherit; background: #fff; }
.tools-hub a strong { display: block; }
.tools-hub a span { display: block; color: #5c564e; margin-top: 0.15rem; }
.chk-room { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line, #e4dfd5); }
.chk-room h3 { margin: 0 0 0.4rem; }
.chk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.chk-card { position: relative; background: #f4f0e8; border-radius: 8px; overflow: hidden; }
.chk-card img { display: block; width: 100%; height: 140px; object-fit: cover; }
.chk-card textarea, .chk-card input[type="text"] { width: 100%; border: 0; padding: 0.35rem 0.45rem; font: inherit; }
.chk-card .chk-del { position: absolute; top: 0.3rem; right: 0.3rem; }
.chk-add { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tools-header-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
@media print {
  .app-header, .tools-save, .tools-actions, .chk-add, .chk-del, .no-print { display: none !important; }
  .tools-page { max-width: none; padding: 0; }
  .chk-card img { height: auto; }
}




/* Public tools are not the tenant form: don't cap the page at 28.5rem. */
.tools-shell { width: 100%; max-width: none; }
.tools-shell .tools-page { width: min(720px, 100%); margin-inline: auto; }

/* Tools chrome: brand shrinks/wraps; nav never slides under the wordmark. */
.tools-app-header { width: 100%; height: auto; min-height: var(--header-h, 4.15rem); }
.tools-app-header .header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  width: min(80rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: var(--header-h, 4.15rem);
  margin-inline: auto;
  padding-inline: 1.15rem;
}
.tools-app-header .logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 7rem;
  overflow: visible;
}
.tools-app-header .logo-text { min-width: 0; overflow: visible; line-height: 1.25; }
.tools-app-header .logo-text .brand-full,
.tools-app-header .logo-text .brand-short {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.tools-app-header .logo-text .brand-full { display: block; }
.tools-app-header .logo-text .brand-short { display: none; }
.tools-app-header .logo-tag {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tools-app-header .tools-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.tools-app-header .tools-header-links a { white-space: nowrap; color: #e9e3d5; }
@media (max-width: 700px) {
  .tools-app-header .tools-link-wide { display: none; }
}
@media (max-width: 420px) {
  .tools-app-header .logo-text .brand-full { display: none; }
  .tools-app-header .logo-text .brand-short { display: block; font-size: 1.05rem; }
  .tools-app-header .logo-tag { display: none; }
  .tools-app-header .header-inner { padding-inline: 0.7rem; gap: 0.4rem; }
}

.tools-down { display: flex; gap: 0.4rem; align-items: stretch; }
.tools-down input { flex: 1; min-width: 0; width: auto !important; }
.tools-down select { width: auto; flex: 0 0 auto; }

.season-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1rem; }
.season-tabs button {
  border: 1px solid var(--line, #d9d3c7); background: #fff; border-radius: 999px;
  padding: 0.4rem 0.85rem; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3;
}
.season-tabs button.is-on { background: var(--ink, #1c1915); color: #fff; border-color: var(--ink, #1c1915); }
.season-progress { margin: 0 0 0.8rem; font-weight: 600; }
.season-list { list-style: none; margin: 0; padding: 0; }
.season-list li { border-top: 1px solid var(--line, #e4dfd5); padding: 0.7rem 0; }
.season-list label { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; font-weight: 500; line-height: 1.4; }
.season-list input[type="checkbox"] { margin-top: 0.25rem; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; accent-color: var(--ink, #1c1915); }
.season-list li.is-done label { color: #5c564e; text-decoration: line-through; }
.season-note { margin: 0.8rem 0 0; }
.season-ics-fallback { margin: 0.5rem 0 0; }

/* Free on-device tools (staging) */
.free-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.free-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; background: #fffdf9; border: 1px solid #e2dbcf; border-radius: 16px; }
.free-list li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.free-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.free-list .row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.free-note { white-space: pre-wrap; margin: .2rem 0 0; }
.tools-signup { margin: .9rem 0 1.1rem; max-width: 28rem; } .tools-signup[hidden] { display: none; }
