/* Shared official brand. Page composition and semantic status colors remain scoped. */
:root {
  --brand-night: #0b1625;
  --brand-depth: #070d17;
  --brand-surface: #111f33;
  --brand-surface-raised: #1a2b42;
  --brand-ice: #f4f7fa;
  --brand-accent: #f5a524;
  --brand-accent-hover: #ffc861;
  --brand-muted-dark: #b4c0ce;
  --brand-muted-light: #4a5a6e;
  --brand-focus: #8a5a00;
  --brand-selected: #fff1d9;
  --brand-line-light: #d5dee7;
  --brand-line-dark: #29374a;
  --brand-field: #8796aa;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; gap: 0; }
.brand .brand-logo { display: block; width: 168px; height: auto; max-width: none; }
.brand:focus-visible { outline-offset: 5px; }
:is(.site-header, .admin-header) :focus-visible { outline-color: var(--brand-accent); }
.site-footer a { overflow-wrap: anywhere; }
.site-footer:not(.public-footer) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer:not(.public-footer) a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
@media (max-width: 760px) { .brand .brand-logo { width: 148px; } }
@media (max-width: 360px) { .brand .brand-logo { width: 132px; } }

/* Public action family, adapted from the owner's Claude .btn reference.
   Explicit surface scopes leave the administrative controls unchanged. */
:is(.landing, .legal-body, .customer-page) :is(.button, .secondary) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 700;
  line-height: 1.5; letter-spacing: .005em; text-align: center; text-decoration: none;
  user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 200ms ease, color 200ms ease;
}
:is(.landing, .legal-body, .customer-page) .button-blue {
  border: 0; background: var(--brand-accent); color: var(--brand-night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -12px rgba(11, 22, 37, .3);
}
.landing :is(.opening, .site-header, .process-section, .examples-section, .closing) .button-blue {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -12px rgba(3, 7, 13, .9);
}
:is(.legal-body, .customer-page) :is(.button-white, .secondary) {
  border: 1px solid var(--brand-line-light); background: white; color: var(--brand-night);
  box-shadow: none;
}
.customer-page .order-app .secondary { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.landing .header-upload { min-height: 44px; padding: 10px 18px; font-size: 15px; }
:is(.landing, .legal-body, .customer-page) .button svg { width: 20px; height: 20px; flex: none; }
:is(.landing, .legal-body, .customer-page) :is(.button, .secondary):hover { transform: none; }
:is(.landing, .legal-body, .customer-page) :is(.button, .secondary):active:not(:disabled) { transform: scale(.97); }
:is(.landing, .legal-body, .customer-page) :is(.button, .secondary):focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 4px; }
.landing :is(.opening, .site-header, .process-section, .examples-section, .closing) .button:focus-visible { outline-color: var(--brand-accent); }
:is(.landing, .legal-body, .customer-page) :is(.button, .secondary):disabled {
  background: #dfe5f0; color: var(--brand-muted-light); border-color: var(--brand-line-light);
  box-shadow: none; opacity: 1; transform: none; cursor: not-allowed;
}
.customer-page .order-app input::file-selector-button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 700; background: var(--brand-accent); color: var(--brand-night);
  transition: background-color 200ms ease;
}
.customer-page .order-app .thumbnail button { border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  :is(.landing, .legal-body, .customer-page) .button-blue:hover:not(:disabled) { background: var(--brand-accent-hover); }
  :is(.legal-body, .customer-page) :is(.button-white, .secondary):hover:not(:disabled) { background: var(--brand-ice); }
  .customer-page .order-app input::file-selector-button:hover { background: var(--brand-accent-hover); }
}
@media (min-width: 520px) {
  :is(.landing, .legal-body, .customer-page) :is(.button, .secondary) { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.landing, .legal-body, .customer-page) :is(.button, .secondary),
  :is(.landing, .legal-body, .customer-page) .button svg { transition: none; }
  :is(.landing, .legal-body, .customer-page) :is(.button, .secondary):active:not(:disabled),
  :is(.landing, .legal-body, .customer-page) .button:hover svg { transform: none; }
}
