/* Shared blue palette. Legacy --plum names remain compatible with tool styles. */
:root {
  --brand: #4d6bfe;
  --brand-text: #3b55db;
  --brand-hover: #2d44b9;
  --brand-soft: #eef2ff;
  --plum: var(--brand-text);
  --plum-dark: var(--brand-hover);
  --pale: var(--brand-soft);
}

.brand, .brand-main { color: var(--brand); }
.brand, .brand-text { min-width: 0; }
.brand .brand-text { display: flex; flex-direction: column; gap: 7px; line-height: 1.4; }
.brand-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.brand .brand-main { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.brand .brand-product { color: #33435c; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.brand .brand-sub { display: block; max-width: 72ch; margin: 0; font-size: 12px; line-height: 1.6; font-weight: 400; letter-spacing: 0; color: #596579; white-space: normal; overflow-wrap: anywhere; text-transform: none; }
.header:has(.brand-name-line) { height: auto; min-height: 76px; padding-block: 12px; flex-wrap: wrap; gap: 12px; }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--brand-text); }
::selection { background: #dce3ff; color: #17255c; }

/* Shared brand mark stays legible in both the app shell and standalone tools. */
.header-brand .brand, .header .brand { display: flex; align-items: center; gap: 12px; }
.brand-name-line > .brand-symbol { display: block; width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
@media (max-width: 600px) {
  .brand-name-line > .brand-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  .header-brand .brand, .header .brand { gap: 9px; }
}
