:root { color-scheme: light; --forest: #174f46; --paper: #f5f3ec; --ink: #202a29; --muted: #52635a; --line: #cbd5cc; --card: #fff; --notice: #e7ede3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
header, main, footer { max-width: 1280px; margin: auto; padding: 24px; }
header, .heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { color: var(--forest); font-size: 22px; font-weight: 750; }
h1 { font-size: 28px; margin: 4px 0; } h2 { font-size: 22px; margin-top: 0; } h3 { font-size: 18px; }
p { max-width: 90ch; }
.notice { padding: 16px; background: var(--notice); border-radius: 12px; }
.panel, fieldset { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 20px 0; min-width: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-grid fieldset { margin-top: 0; }
legend { font-size: 22px; font-weight: 700; padding: 0 6px; }
.switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.switch { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; }
input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--forest); }
.limit { display: block; margin: 20px 0; }
.limit input[type=number], .limit input[type=text], #catalog-new-plan input { display: block; width: 100%; margin-top: 8px; }
#catalog-new-plan input { margin-bottom: 16px; max-width: 32rem; }
.plan-note { color: var(--muted); }
#preserved-values dl { margin: 12px 0 24px; }
#preserved-values dt { font-weight: 600; }
#preserved-values dd { margin: 0 0 12px; }
input, select, button { font: inherit; min-height: 44px; }
input[type=number], input[type=text], select { padding: 10px 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
input:disabled { opacity: .65; }
button { padding: 10px 16px; background: var(--card); color: var(--forest); border: 1px solid var(--forest); border-radius: 10px; cursor: pointer; }
button.primary { background: var(--forest); color: #fff; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #80632f; outline-offset: 3px; }
.actions { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 16px 0; }
.actions label, header label { display: block; }
#status { min-height: 28px; font-weight: 650; }
#differences { padding-left: 24px; overflow-wrap: anywhere; }
#differences li { margin: 10px 0; }
summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--notice); border-radius: 12px; padding: 16px; font: 13px/1.5 ui-monospace, monospace; }
footer { color: var(--muted); }
[hidden] { display: none !important; }
input[type=email], input[type=password], #mfa-code { display: block; width: 100%; max-width: 32rem; padding: 10px 12px; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 8px; }
#manual-secret, #environment { overflow-wrap: anywhere; }
#qr { max-width: 100%; object-fit: contain; }
#factor-label { display: block; margin-bottom: 16px; }
.login-view header, .login-view main { max-width: 480px; }
.login-view header { padding-top: 64px; }
.login-view main { padding-top: 0; }
.login-view #auth-section { margin-top: 0; }
.login-view #status:empty { display: none; }
.login-view #login-form button { width: 100%; }
.login-view #login-form h2 { margin-bottom: 24px; }
.login-view #environment { margin-bottom: 20px; }
@media (max-width: 850px) { .plan-grid, .switch-grid { grid-template-columns: 1fr; } header, main, footer { padding: 16px; } .panel, fieldset { padding: 18px; } }
