/* Shared control refinements apply to every SSR module in both themes. */
:root { --motion-fast: 160ms; --motion-normal: 220ms; }
body { overflow-wrap: anywhere; }
.grid > *, .form-grid > *, .row > *, .split > *, .field, form, fieldset { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font-size: 16px; min-height: 44px; }
select { appearance: none; padding-right: 36px; background-image: url('/assets/chevron.svg'); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; text-overflow: ellipsis; }
select[multiple] { background-image: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; }
input[readonly] { background: var(--surface-muted); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.checkbox-label { display: flex; align-items: start; gap: 10px; }
.checkbox-label small { display: block; margin-top: 2px; font-size: 13px; }
.btn, .btn-sm { font-size: 14px; }
.nav-link { font-size: 15px; }
table { font-size: 14px; }
.help-text, .field-hint, .field-error, .brand-caption, .breadcrumb, .nav-heading { font-size: 13px; }
.form-stack { display: grid; gap: 18px; }
.form-stack > label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.form-stack > .checkbox-label { display: flex; }
.card-body { display: grid; gap: 16px; }
.submission-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 ui-monospace, monospace; max-width: 100%; }
.camera-preview { display: block; width: 100%; max-width: 480px; max-height: 360px; object-fit: contain; border-radius: 12px; background: var(--surface-muted); }
.page-heading { margin-bottom: 28px; }
.brand-logos { display: block; max-width: 190px; }
.brand-logos img { width: 190px; height: 72px; object-fit: contain; }
.logo-dark { display: none; }
[data-theme=dark] .logo-light { display: none; }
[data-theme=dark] .logo-dark { display: block; }
.product-footer { margin: 48px auto 0; padding: 28px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; max-width: 1440px; }
.product-footer p + p { margin-top: 6px; }
.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.navigation-progress { position: fixed; z-index: 1000; top: 0; left: 0; height: 3px; width: 100%; background: var(--primary); transform-origin: left; animation: progress 1.4s ease-out infinite; }
.main-content, .auth-panel { animation: enter var(--motion-normal) ease-out; }
dialog[open], .alert { animation: enter var(--motion-fast) ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { transform: scaleX(.05); } to { transform: scaleX(.9); } }
@keyframes enter { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media(max-width:640px) { .brand-logos, .brand-logos img { width: 145px; height: 44px; } .product-footer { padding: 24px 16px; } }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.alert.alert-info { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; }
.alert.alert-info strong { display: inline; }
@media(min-width:901px) {
  .hero h1 { font-size: clamp(66px,6vw,90px); max-width: 1100px; line-height: 1.06; }
  .hero-description { font-size: 18px; max-width: 720px; line-height: 1.7; }
  .landing-section .section-intro h2, .landing-cta h2 { font-size: clamp(36px,3.5vw,54px); }
  .landing-section .section-intro p:not(.eyebrow), .landing-cta p:not(.eyebrow) { font-size: 18px; }
  .public-nav-links a { font-size: 15px; }
  .page-head h1 { font-size: clamp(34px,3vw,44px); }
  .app-header, .breadcrumb { font-size: 15px; }
}
input[type="checkbox"], input[type="radio"] { appearance: none; display: inline-grid; place-content: center; border: 2px solid var(--border); background: var(--input); cursor: pointer; }
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before { content: '✓'; font-size: 13px; font-weight: 800; color: white; transform: scale(0); transition: transform .15s ease; }
input[type="radio"]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; transform: scale(0); transition: transform .15s ease; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
.selectable-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.permission-list { max-height: 620px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.permission-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,220px); align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.permission-row:last-child { border-bottom: 0; }
.permission-row small { display: block; font-weight: 400; }
@media(max-width:640px) { .permission-row { grid-template-columns: 1fr; } }
input[type="checkbox"]::before { content: ""; width: 7px; height: 11px; border: solid white; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(0); }
input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(45deg) scale(1); }

.public-surface .product-footer{display:grid;grid-template-columns:1fr auto;gap:20px;text-align:left;max-width:1200px;padding:28px 24px;font-size:13px}.public-surface .product-footer strong{display:block;margin-bottom:5px;color:var(--text)}.public-surface .product-footer p{font-size:12px;line-height:1.7;margin:0}.public-surface .footer-credit{text-align:right}@media(max-width:640px){.public-surface .product-footer{grid-template-columns:1fr;gap:14px}.public-surface .footer-credit{text-align:left}}
