/* app.css — only what the app adds. Colours come from tokens.css. */
.app { padding: 10px 22px 40px; }
.app-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 22px 26px; margin-bottom: 16px; }
.app-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.app-head .lede { font-size: 15px; margin-top: 6px; max-width: 58ch; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.seg-2 { width: 100%; margin: 0 0 16px; }
.seg-2 button { flex: 1; padding: 8px 10px; font-size: 14px; }
.fld { display: block; position: relative; margin-bottom: 12px; }
.fld > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fld input {
  width: 100%; font: 500 17px var(--mono); color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(var(--glass), .88);
}
.fld input:focus { outline: 2px solid var(--russet); outline-offset: 1px; }
.fld em { position: absolute; right: 14px; bottom: 13px; font-style: normal; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.need { display: grid; gap: 3px; margin: 6px 0 14px; }
.need .r { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 11px; border-radius: 10px; font-size: 13.5px; }
.need .r:nth-child(odd) { background: rgba(var(--glass), .45); }
.need .r b { font-weight: 600; }
.need .r .a { font-family: var(--mono); font-size: 12.5px; }
.need .r .s { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; }
.have { background: var(--sage); color: var(--ink); }
.short { background: var(--clay); color: var(--clay-ink); }
.steps { display: grid; gap: 9px; margin-top: 14px; }
.step-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; background: rgba(var(--glass), .58); border: 1px solid var(--line-2); }
.step-row .num { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font: 600 11px var(--mono); background: var(--wash-2); color: var(--ink-2); flex: none; }
.step-row .txt { flex: 1; font-size: 13.5px; }
.step-row .txt i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.step-row.done { background: var(--sage); border-color: rgba(var(--up-rgb), .25); }
.step-row.done .num { background: var(--up); color: #fff; }
.waive { margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--glass), .5); border: 1px solid var(--line-2); }
.waive summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.waive label { display: flex; gap: 9px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.build { margin-top: 18px; }
.build-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.pickers { display: flex; flex-wrap: wrap; gap: 7px; max-height: 260px; overflow-y: auto; padding: 2px; }
.pk {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(var(--glass), .7); font-size: 13px; font-weight: 600; cursor: pointer;
}
.pk[aria-pressed="true"] { background: var(--russet); color: #fff; border-color: transparent; }
.pk input { width: 44px; border: 0; background: transparent; font: 500 12px var(--mono); color: inherit; text-align: right; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(560px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 13px; background: var(--ink); color: var(--bright); font-size: 13.5px; box-shadow: var(--shadow); }
.toast.bad { background: var(--down); }
.toast.good { background: var(--up); }
.toast a { color: var(--clay); }
@media (max-width: 980px) { .app-grid, .build-grid { grid-template-columns: 1fr; } }
