:root {
    --ma-ink: #193b4b;
    --ma-muted: #526e79;
    --ma-paper: #eaf0ef;
    --ma-panel: #fafbf7;
    --ma-line: #cbd9d9;
    --ma-accent: #175c70;
    --ma-danger: #aa3e48;
}
.ma-page { margin: 0; min-height: 100dvh; background: var(--ma-paper); color: var(--ma-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
.ma-page *, .ma-page *::before, .ma-page *::after { box-sizing: border-box; }
.ma-page [hidden] { display: none !important; }
.ma-page a { color: var(--ma-accent); text-underline-offset: 4px; }
.ma-page button, .ma-page input, .ma-page select { font: inherit; }
.ma-page button, .ma-page a, .ma-page input, .ma-page select { outline-offset: 4px; }
.ma-page :focus-visible { outline: 3px solid #bb7b16; }
.ma-skip { position: absolute; top: -80px; left: 16px; z-index: 30; padding: 12px; background: var(--ma-panel); }
.ma-skip:focus { top: 12px; }
.ma-header { background: var(--ma-panel); border-bottom: 1px solid var(--ma-line); padding: 19px max(22px, calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ma-brand { display: flex; align-items: center; gap: 18px; }
.ma-brand img { max-width: 190px; max-height: 58px; object-fit: contain; }
.ma-brand strong { display: block; font-size: 1.05rem; }
.ma-eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 700; color: var(--ma-muted); }
.ma-main { width: min(1180px, calc(100% - 40px)); margin: 38px auto 64px; }
.ma-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 16px; font-weight: 650; }
.ma-page h2 { font-size: 1.24rem; line-height: 1.35; margin: 0 0 18px; }
.ma-page h3 { font-size: 1.05rem; margin: 0 0 12px; }
.ma-muted, .ma-page small { color: var(--ma-muted); }
.ma-intro { max-width: 760px; margin-bottom: 28px; }
.ma-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 990px; margin: 70px auto; gap: 72px; align-items: start; }
.ma-auth-copy { padding-top: 24px; }
.ma-auth-copy h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); }
.ma-rule { width: 48px; height: 4px; background: var(--ma-accent); margin-bottom: 26px; }
.ma-panel { background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 12px; padding: 28px; box-shadow: 0 5px 18px #243b5306; }
.ma-panel + .ma-panel { margin-top: 24px; }
.ma-field { display: grid; gap: 7px; margin-bottom: 20px; }
.ma-field label, .ma-page legend { font-size: .9rem; font-weight: 650; }
.ma-page input:not([type=checkbox]), .ma-page select { width: 100%; min-width: 0; border: 1px solid #aebfcf; border-radius: 6px; padding: 11px 12px; background: #fafdff; color: var(--ma-ink); }
.ma-page input[type=checkbox] { accent-color: var(--ma-accent); width: 18px; height: 18px; flex: 0 0 auto; margin: 3px 0; }
.ma-check { display: flex; align-items: start; gap: 10px; margin: 12px 0; }
.ma-button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--ma-accent); border-radius: 6px; background: var(--ma-accent); color: #f8fbff; padding: 10px 18px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.ma-button:hover { filter: brightness(.93); }
.ma-button:disabled { opacity: .55; cursor: not-allowed; }
.ma-secondary { background: transparent; color: var(--ma-accent); }
.ma-danger { color: var(--ma-danger); border-color: var(--ma-danger); background: transparent; }
.ma-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ma-wide { width: 100%; }
.ma-note { border-left: 3px solid #7799b6; background: #e8f0f7; padding: 15px 18px; margin: 20px 0; font-size: .92rem; }
.ma-status { padding: 14px 18px; border: 1px solid var(--ma-line); border-radius: 6px; margin-bottom: 22px; background: #e8f0f7; overflow-wrap: anywhere; }
.ma-status:empty { display: none; }
.ma-status[data-kind=error] { color: #862a33; border-color: #deb5ba; background: #fbf0f1; }
.ma-status[data-kind=success] { color: #25604e; border-color: #afd0c4; background: #ebf5f0; }
.ma-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--ma-line); padding: 0 0 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ma-nav button { background: transparent; color: var(--ma-muted); border: 0; padding: 10px 20px; border-radius: 6px; cursor: pointer; min-height: 44px; }
.ma-nav button[aria-current=page] { background: var(--ma-accent); color: #f8fbff; font-weight: 650; }
.ma-definition { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin: 0; }
.ma-definition dt { color: var(--ma-muted); font-size: .83rem; margin-bottom: 4px; }
.ma-definition dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
.ma-list { list-style: none; margin: 0; padding: 0; }
.ma-list li { padding: 17px 0; border-bottom: 1px solid var(--ma-line); }
.ma-list li:last-child { border-bottom: 0; }
.ma-list button { text-align: left; width: 100%; }
.ma-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; margin: 24px 0 8px; }
.ma-table-wrap { overflow-x: auto; border: 1px solid var(--ma-line); border-radius: 8px; }
.ma-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.ma-page th { background: #e7eff6; font-size: .78rem; color: var(--ma-muted); font-weight: 700; }
.ma-page th, .ma-page td { padding: 15px 18px; border-bottom: 1px solid var(--ma-line); vertical-align: top; overflow-wrap: anywhere; }
.ma-page tbody tr:last-child td { border-bottom: 0; }
.ma-page caption { text-align: left; padding: 14px 18px; font-weight: 600; }
.ma-empty { padding: 36px 24px; background: #eaf1f7; border: 1px dashed #b2c5d7; border-radius: 8px; text-align: center; }
.ma-empty p { margin: 8px auto 0; max-width: 500px; color: var(--ma-muted); }
.ma-skeleton { height: 100px; border-radius: 8px; background: #dee8f1; animation: ma-breathe 1.6s ease-in-out infinite alternate; }
@keyframes ma-breathe { to { opacity: .45; } }
.ma-policy { display: flex; gap: 18px 34px; flex-wrap: wrap; }
.ma-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: .75rem; background: #e7eff6; font-weight: 600; }
.ma-page dialog { color: var(--ma-ink); background: var(--ma-panel); width: min(760px, calc(100% - 28px)); border: 1px solid var(--ma-line); border-radius: 12px; padding: 28px; max-height: 90dvh; overflow: auto; }
.ma-page dialog::backdrop { background: #152c47a6; }
.ma-page fieldset { border: 1px solid var(--ma-line); border-radius: 6px; padding: 14px 18px; margin: 20px 0; min-width: 0; }
.ma-scopes { max-height: 230px; overflow: auto; }
.ma-footer { width: min(1180px, calc(100% - 40px)); margin: 32px auto; border-top: 1px solid var(--ma-line); padding-top: 18px; color: var(--ma-muted); font-size: .8rem; }
@media (max-width: 767px) {
    .ma-auth { grid-template-columns: 1fr; gap: 24px; margin: 28px auto; }
    .ma-main { margin-top: 26px; }
    .ma-auth-copy { padding: 0; }
    .ma-panel { padding: 22px 18px; }
    .ma-definition, .ma-toolbar { grid-template-columns: 1fr; gap: 18px; }
    .ma-brand img { max-width: 145px; }
    .ma-brand { gap: 12px; }
    .ma-nav { gap: 4px; }
    .ma-nav button { padding: 10px 12px; }
    .ma-page th, .ma-page td { padding: 12px; min-width: 130px; }
}
@media (prefers-reduced-motion: reduce) { .ma-skeleton { animation: none; } }
