.tool-page { padding: 12px 0 36px; }
.tool-title { max-width: 780px; margin-bottom: clamp(22px,4vw,40px); }
.tool-title h1 { font: 790 clamp(40px,6vw,72px)/1.02 var(--display); letter-spacing: -.052em; text-wrap: balance; }
.tool-title .library-lede { margin-top: 14px; max-width: 66ch; }
.tool-workspace { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; gap: clamp(22px,4vw,62px); }
.tool-panel { min-width: 0; border: var(--line); border-radius: 16px; background: var(--white); box-shadow: 3px 4px 0 var(--ink); }
.tool-panel > h2 { background: #ffe59b; padding: 14px 20px; border-radius: 15px 15px 0 0; border-bottom: var(--line); font: 740 23px/1.2 var(--display); letter-spacing: -.035em; }
.tool-controls, .tool-panel noscript p { padding: clamp(15px,3vw,25px); }
.tool-controls form, .tool-controls, .tool-result { display: grid; gap: 14px; align-content: start; }
.tool-controls [hidden] { display: none !important; }
.tool-controls label { min-width: 0; display: grid; gap: 4px; font-weight: 650; font-size: .92rem; }
.tool-controls input:not([type=checkbox]), .tool-controls textarea, .tool-controls select { width: 100%; min-width: 0; border-radius: 7px; padding: 9px 11px; border: 1px solid #73766b; background: white; color: var(--ink); font: 400 16px/1.4 "DM Sans",sans-serif; }
.tool-controls textarea { resize: vertical; }
.field-grid, .cost-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tool-intro, .field-help, .tool-status { color: #45483e; }
.field-help { font-size: .85rem; margin-top: -9px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tool-controls button, .tool-controls .tool-primary { justify-self: start; padding: 9px 14px; border: var(--line); border-radius: 9px; background: white; color: var(--ink); font: 700 15px/1.4 "DM Sans",sans-serif; text-align: center; }
.tool-controls .tool-primary { background: var(--mint); }
.tool-actions a:not(.tool-primary) { color: #20563a; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tool-result { background: #eaf5e6; padding: 14px; border-radius: 9px; }
.tool-result strong { font-size: 1.25rem; }
.tool-status:empty { display: none; }
.cost-row { margin: 0; padding: 9px 12px 13px; min-width: 0; border: 1px solid #cfcebf; border-radius: 8px; }
.cost-row legend { padding-inline: 4px; font-weight: 700; }
.timer-face { background: #e6f3dd; border-radius: 12px; text-align: center; padding: 16px 8px; }
#timer { font: 760 clamp(50px,8vw,84px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.packing-count { color: #20563a; font-weight: 700; }
.packing-items { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.packing-items li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dedfd3; gap: 8px; }
.packing-items label { flex: 1; display: flex; align-items: center; gap: 9px; min-height: 37px; padding-block: 5px; font-weight: 500; overflow-wrap: anywhere; cursor: pointer; }
.packing-items input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #276748; }
.packing-items label:has(:checked) { color: #53594e; text-decoration: line-through; }
.packing-items button { border: 0; font-size: .84rem; text-decoration: underline; padding: 7px; }
.tool-controls .packing-add { grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.tool-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 30px; margin-top: 36px; padding-top: 23px; border-top: var(--line); }
.tool-notes h2 { font: 730 22px/1.2 var(--display); margin-bottom: 8px; }
.tool-notes p { color: #45483e; }
@media(max-width: 740px) {
  .tool-workspace, .tool-notes { grid-template-columns: minmax(0,1fr); }
  .tool-title { margin-bottom: 22px; }
}
@media(max-width: 420px) {
  .field-grid { grid-template-columns: minmax(0,1fr); }
  .cost-row { gap: 8px; }
}
