/* THE SIGNED-IN TOOL PAGES ON THE LIGHT DESIGN (19 Nov 2026).
   Used by auction-pack, letters, parcel-map, plot-plan, solicitor-pack, street-view and title-order, which carry
   <body class="rd rd-tools" data-app-page="1"> and load css/redesign.css first. Each page adds its own small file,
   css/rd-app-<page>.css, after this one.

   The pages were written in the dark theme's colour names (--navy-900, --gold-300, --ivory-100 ...) and their
   scripts write some of those names into inline styles, so the names are kept and pointed at the light palette on
   the page's own body (the same way pricing.html did on 18 Nov). Every rule in the page files uses the real tokens
   from redesign.css (--ink, --text, --muted, --line, --page, --card, --action, --good, --warn, --bad).
   Rules: Inter 400 and 600 only, corners 8 (inputs, buttons) and 10 (cards), no gradients, one action colour.
   Drawing sheets (parcel map, plot plan) and the Street View frame keep their own artwork colours. */

body.rd.rd-tools {
  --navy-950: var(--page); --navy-900: var(--card); --navy-850: var(--page); --navy-800: var(--card);
  --navy-line: var(--line); --navy-600: var(--line-strong);
  --gold-300: var(--action); --gold-400: var(--action); --gold-500: var(--action); --gold-glow: transparent;
  --ivory-100: var(--text); --slate-400: var(--muted); --slate-500: var(--muted);
  --emerald-400: var(--good); --rose-400: var(--bad); --amber-400: var(--warn);
  --font-display: var(--font); --font-body: var(--font);
  min-height: 100vh;
}
.rd-tools *, .rd-tools *::before, .rd-tools *::after { box-sizing: border-box; }
.rd-tools .hidden { display: none !important; }
.rd-tools .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rd-tools a { color: var(--action); }

/* Page heading */
.rd-tools header.page { padding: 32px 0 4px; }
.rd-tools header.page h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.02em; }
.rd-tools header.page p { color: var(--muted); line-height: 1.55; margin: 0; }
.rd-tools .audience { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rd-tools .audience span { border: 1px solid var(--tint-line); background: var(--tint); border-radius: 99px; padding: 4px 12px; font-size: 12px; color: var(--ink); }

/* Buttons: the one filled button is the action colour; everything else is an outline. */
.rd-tools .btn { min-height: 40px; border-radius: var(--r-input); border: 1px solid transparent; font-family: var(--font); font-weight: 600; font-size: 14px; }
.rd-tools .btn-gold { background: var(--action); border-color: var(--action); color: #fff; background-image: none; }
.rd-tools .btn-gold:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.rd-tools .btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.rd-tools .btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.rd-tools .btn-small, .rd-tools .btn-sm { padding: 7px 14px; font-size: 13px; min-height: 36px; }
.rd-tools .btn:disabled { opacity: .55; cursor: not-allowed; }
.rd-tools .btn-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: btn-spin .7s linear infinite; vertical-align: -1px; margin-right: 6px; }
.rd-tools .btn-ghost .btn-spinner { border-color: var(--line); border-top-color: var(--action); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Cards and forms */
.rd-tools .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; margin: 0 0 16px; }
.rd-tools .panel h2 { font-size: 18px; margin: 0 0 12px; }
.rd-tools .field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.rd-tools .field input, .rd-tools .field select, .rd-tools .field textarea {
  padding: 10px 12px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 14.5px;
}
.rd-tools .field input::placeholder, .rd-tools .field textarea::placeholder { color: #6B7690; }
.rd-tools .field input:focus, .rd-tools .field select:focus, .rd-tools .field textarea:focus { outline: 3px solid rgba(27,149,209,.45); outline-offset: 1px; border-color: var(--action); }
.rd-tools .field input:disabled, .rd-tools .field select:disabled { background: var(--page); color: var(--muted); }
.rd-tools .note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.rd-tools .err { color: var(--bad); font-size: 13.5px; min-height: 18px; margin-top: 10px; }
.rd-tools .ok { color: var(--good); font-size: 13.5px; }

/* The sign-in card shown to a visitor with no account */
.rd-tools .gate { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; text-align: center; max-width: 520px; margin: 48px auto; }
.rd-tools .gate img { display: block; margin: 0 auto 16px; }
.rd-tools .gate p { color: var(--muted); }

/* Result tiles, notices, pills */
.rd-tools .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.rd-tools .tile { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.rd-tools .tile .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rd-tools .tile .val { font-size: 21px; font-weight: 600; margin-top: 6px; color: var(--ink); }
.rd-tools .tile .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rd-tools .infobox { background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r-card); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; color: var(--ink); }
.rd-tools .infobox a { color: var(--action-dark); text-decoration: underline; }
.rd-tools .warnbox { background: var(--bad-tint); border: 1px solid var(--bad); border-radius: var(--r-card); padding: 12px 16px; margin-bottom: 16px; }
.rd-tools .pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); background: #fff; }
.rd-tools .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rd-tools .footer-links a { white-space: nowrap; }

@media (max-width: 640px) {
  .rd-tools .wrap { padding: 0 16px; }
  .rd-tools header.page { padding-top: 24px; }
  .rd-tools header.page h1 { font-size: 26px; }
  .rd-tools .panel { padding: 16px; }
  .rd-tools .gate { padding: 24px 16px; margin: 32px auto; }
}
