/* Frame confirmation screen — the step between setup and planning.
   Uses the shared brand tokens from styles.css; no one-off colours.
   Controls are text-labelled, never bare glyphs (see CLAUDE.md UI rules). */

.frame-confirm.plan-shell { padding-top: 1rem; }

.frame-head { margin-bottom: 1.4rem; }

.frame-intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: .5rem 0 0;
  max-width: 42rem;
}

/* ── Verdict ─────────────────────────────────────────────────── */
.frame-verdict {
  border-radius: 16px;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--brand-gray);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.frame-verdict strong { display: block; margin-bottom: .3rem; color: var(--text-primary); }
.frame-verdict p { margin: 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.frame-verdict.is-ok      { border-color: var(--brand-primary); }
.frame-verdict.is-adjust  { border-color: var(--brand-warm); }
.frame-verdict.is-blocked { border-color: var(--brand-4); }

.frame-repairs {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: .85rem 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
}
.frame-repairs strong {
  display: block;
  margin-bottom: .4rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.frame-repairs ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.frame-repairs li { margin: .2rem 0; line-height: 1.5; }

.frame-general .frame-finding:first-child { margin-top: 0; }

/* The arrival drive: it belongs above the first base because that is where it
   happens, but it is not a base you can edit. */
.frame-outbound {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .4rem;
  padding: .6rem .9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: .8rem;
  color: var(--text-secondary);
}
.frame-outbound strong { color: var(--text-primary); }
.frame-outbound-dot {
  flex: 0 0 auto;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
}

/* ── Bases ───────────────────────────────────────────────────── */
.frame-bases { display: flex; flex-direction: column; }

.frame-base {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.frame-base.is-unplaced { border-color: var(--brand-4); }

.frame-base-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.frame-base-num {
  flex: 0 0 auto;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.frame-base-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .3rem .45rem;
  background: transparent;
  font-family: inherit;
}
.frame-base-name:hover  { border-color: var(--brand-gray); }
.frame-base-name:focus  { outline: none; border-color: var(--brand-primary); background: #fff; }

.frame-base-move {
  flex: 0 0 auto;
  display: inline-flex;
  gap: .35rem;
}

.frame-base-move-btn {
  background: none;
  border: 1px solid var(--brand-gray);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: .78rem;
  padding: .3rem .55rem;
  cursor: pointer;
}
.frame-base-move-btn:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.frame-base-move-btn:disabled { opacity: .35; cursor: default; }

.frame-base-remove {
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--brand-gray);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: .8rem;
  padding: .3rem .6rem;
  cursor: pointer;
}
.frame-base-remove:hover { border-color: var(--brand-4); color: var(--brand-4); }

@media (max-width: 480px) {
  .frame-base-head { flex-wrap: wrap; }
  .frame-base-move { order: 3; width: 100%; }
}

/* Where you sleep and how long you stay are one decision, so they sit on one
   row instead of stacking. */
.frame-base-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: end;
}

.frame-field {
  display: block;
  min-width: 0;
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
}
.frame-field input {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .5rem .65rem;
  border: 1px solid var(--brand-gray);
  border-radius: 9px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text-primary);
  background: #fff;
}
.frame-field input:focus { outline: none; border-color: var(--brand-primary); }

.frame-nights-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.frame-nights-label {
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
}

.frame-nights {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--brand-gray);
  border-radius: 9px;
  padding: .2rem .35rem;
}
.frame-nights span {
  min-width: 5.5rem;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.frame-nights button {
  width: 1.6rem; height: 1.6rem;
  border: none;
  border-radius: 6px;
  background: var(--bg-card-soft);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.frame-nights button:hover { background: var(--brand-primary); color: #fff; }

.frame-dates {
  margin: .8rem 0 0;
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
}

/* ── Legs between bases ──────────────────────────────────────── */
.frame-leg {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0 .55rem 1.7rem;
}
.frame-leg-line {
  width: 2px;
  height: 1.6rem;
  background: #dbe3e8;
  border-radius: 2px;
  flex: 0 0 auto;
}
.frame-leg-label { font-size: .82rem; color: var(--text-secondary); }
.frame-leg-est {
  font-size: .72rem;
  border: 1px solid var(--brand-gray);
  border-radius: 5px;
  padding: 0 .3rem;
  color: var(--text-secondary);
}

/* ── Findings ────────────────────────────────────────────────── */
.frame-finding {
  margin: .7rem 0 0;
  padding: .55rem .7rem;
  border-radius: 9px;
  font-size: .85rem;
  line-height: 1.5;
  background: var(--bg-card-soft);
  border-left: 3px solid var(--brand-gray);
  color: var(--text-primary);
}
.frame-finding span { display: block; color: var(--text-secondary); margin-top: .2rem; }
.frame-finding.is-warning { border-left-color: var(--brand-4); }
.frame-finding.is-info    { border-left-color: var(--brand-accent); }

/* ── Footer controls ─────────────────────────────────────────── */
.frame-add {
  display: block;
  width: 100%;
  margin-top: .9rem;
  padding: .8rem;
  border: 1px dashed #cbd5e1;
  border-radius: 13px;
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.frame-add:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Says what an edit costs, which is nothing — the check is a map calculation,
   not a generation, and travellers otherwise edit as if it were expensive. */
.frame-checking {
  margin: 0;
  font-size: .72rem;
  line-height: 1.5;
  color: #64748b;
}
.frame-checking.is-busy { font-style: italic; font-weight: 600; color: #2f8083; }

.frame-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.frame-btn-primary,
.frame-btn-secondary {
  width: 100%;
  padding: .85rem 1.1rem;
  border-radius: 13px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}
.frame-btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.frame-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.frame-btn-primary:disabled { opacity: .6; cursor: default; }
.frame-btn-secondary {
  background: none;
  border-color: #e2e8f0;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
  padding: .75rem 1.1rem;
}
.frame-btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.frame-error {
  margin-top: .8rem;
  color: var(--brand-4);
  font-size: .88rem;
}

@media (max-width: 560px) {
  .frame-base-body { grid-template-columns: minmax(0, 1fr); }
  .frame-nights-wrap { align-items: flex-start; }
}
