:root {
  color-scheme: light;
  --brand: #0073ea;
  --brand-hover: #0060b9;
  --fg: #323338;
  --muted: #676879;
  --bg: #f5f6f8;
  --card: #fff;
  --line: #e6e9ef;
}
body { color: var(--fg); background: var(--bg); }
body.has-app-shell { display: block; padding: 0; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1100; padding: 12px; background: white; }
.skip-link:focus { top: 8px; }
.global-header { position: sticky; top: 0; z-index: 100; background: var(--card); border-bottom: 1px solid #eef0f3; box-shadow: 0 2px 10px #0000000d; }
.global-header-container { display: flex; align-items: center; min-height: 64px; padding: 0 24px; gap: 24px; }
.global-header-brand { color: var(--fg); font-size: 20px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.global-header-nav { display: flex; align-self: stretch; flex: 1; }
.nav-link { display: flex; align-items: center; padding: 12px 20px; color: #4a5568; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-link:hover { background: #f7fafc; color: #0052cc; }
.nav-link[aria-current] { background: #f1f5f9; color: #0052cc; border-bottom-color: var(--brand); }
.global-header-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-email { max-width: 240px; overflow-wrap: anywhere; font-size: 14px; }
.role-badge { padding: 2px 8px; background: #f1f5f9; border-radius: 6px; white-space: nowrap; font-size: 13px; }
.app-content { width: 100%; max-width: none; padding: 24px; flex: 1; text-align: left; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.page-title { font-size: 24px; margin: 0; }
.content-card { background: var(--card); border-radius: 8px; box-shadow: 0 4px 8px #0000000d; padding: 24px; }
.content-card:empty { display: none; }
.button { min-height: 36px; font-size: 14px; padding: 6px 12px; border-radius: 4px; white-space: nowrap; }
#login-button, .button-primary { background: var(--brand); color: white; border-color: var(--brand); }
#login-button:hover, .button-primary:hover { background: var(--brand-hover); }
.button-secondary { background: white; color: var(--muted); }
.salon-picker { display: flex; align-items: center; gap: 8px; }
.salon-select { max-width: min(320px, 65vw); padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; color: var(--fg); }
.app-message { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: white; }
.global-footer { padding: 24px; text-align: center; background: white; color: var(--muted); font-size: 13px; border-top: 1px solid #eef0f3; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 800px) {
  .global-header-container { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .global-header-nav { flex-basis: 100%; order: 3; overflow-x: auto; }
  .global-header-user { flex-wrap: wrap; justify-content: flex-end; }
  .user-email { max-width: 160px; }
  .app-content { padding: 16px; }
}

.account-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.account-form legend { font-weight: 600; margin-bottom: 16px; }
.account-form label { display: block; margin: 12px 0; }
.account-form input:not([type="checkbox"]) { display: block; width: min(100%, 420px); box-sizing: border-box; padding: 10px; margin-top: 6px; border: 1px solid #c5c7d0; border-radius: 4px; font: inherit; }
.account-form .ownership-confirmation { display: flex; gap: 8px; align-items: center; }
.account-management button { margin: 4px; }
.account-management button:disabled { opacity: .6; cursor: wait; }
.account-table-scroll { overflow-x: auto; margin-top: 16px; }
.account-table { width: 100%; border-collapse: collapse; text-align: left; }
.account-table caption { text-align: left; font-weight: 600; padding-bottom: 12px; }
.account-table th, .account-table td { border-bottom: 1px solid #e2e4e9; padding: 12px 8px; overflow-wrap: anywhere; }
.account-management dialog { border: 1px solid #c5c7d0; border-radius: 8px; max-width: min(480px, 85vw); padding: 24px; }
.account-management dialog::backdrop { background: rgb(0 0 0 / 35%); }
