*{box-sizing:border-box}body{margin:0;background:#101214;color:#ECEDEB;font:14px/1.5 'Golos Text',Arial,sans-serif}header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #30353D;gap:16px}header a{text-decoration:none}header nav a{font-size:14px;min-height:44px;display:inline-flex;align-items:center}main{max-width:980px;margin:40px auto;padding:0 24px}h1{font-size:32px;font-weight:500;letter-spacing:-1px}p{line-height:1.7;color:#A2A8B0}a{color:#CFD3CD}button,.button{display:inline-block;border:1px solid #30353D;border-radius:8px;padding:14px 18px;min-height:46px;color:#ECEDEB;background:#22262C;cursor:pointer;text-decoration:none;font:inherit}button:disabled{opacity:.5}.primary{color:#101214;background:#CFD3CD;font-weight:600}.card{background:#181B1F;border:1px solid #30353D;padding:24px;border-radius:14px;margin:24px 0}.narrow{max-width:480px;margin:40px auto}label{display:block;margin:20px 0;color:#A2A8B0;font-size:13px}input,select{display:block;width:100%;padding:13px;margin-top:8px;border-radius:8px;border:1px solid #30353D;background:#101214;color:#ECEDEB;font:16px 'Golos Text',Arial}input[type=checkbox]{display:inline-block;width:20px;vertical-align:middle;margin:0 8px 0 0}nav{display:flex;gap:16px;align-items:center}.error{color:#efb4ad}.success{color:#CFD3CD}.actions{display:flex;gap:12px;flex-wrap:wrap}.muted{color:#A2A8B0}.account-row{border-bottom:1px solid #30353D;padding:18px 0;display:grid;grid-template-columns:1fr auto;gap:16px}.account-row small{display:block;color:#A2A8B0;margin-top:8px}.account-row button{align-self:start}#message{line-height:1.6}[hidden]{display:none!important}@media(max-width:600px){header{padding:20px;flex-wrap:wrap}main{margin:28px auto}h1{font-size:27px}.card{padding:20px}.account-row{grid-template-columns:1fr}.actions>*{flex:0 1 auto}}

.account-filters{display:grid;grid-template-columns:1fr 1fr;gap:20px}.account-row>div{min-width:0;overflow-wrap:anywhere}.audit-entry{padding:16px 0;border-bottom:1px solid #30353D;font-size:12px;overflow-wrap:anywhere}.audit-entry p{margin:8px 0}.card{scroll-margin-top:20px}@media(max-width:600px){.account-filters{grid-template-columns:1fr;gap:0}.audit-entry strong{display:block;line-height:1.7}}

select{appearance:none;-webkit-appearance:none;padding-right:48px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A2A8B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:20px 20px}

/* Shared rhythm: page, section, related controls. */
header{min-height:88px}nav{flex-wrap:wrap;gap:12px}h1,h2,h3{line-height:1.3;overflow-wrap:anywhere}h1{margin:0 0 16px;letter-spacing:-.03em}h2{font-size:24px;font-weight:500;margin:0 0 12px}p{margin:12px 0 20px}#accountEmail{overflow-wrap:anywhere}.card>:last-child{margin-bottom:0}.card>:first-child{margin-top:0}.narrow .card{margin:0}.narrow .primary{width:100%;min-height:48px}.narrow label{margin:20px 0}.auth-links{display:flex;flex-direction:column;gap:12px;margin-top:24px}.auth-links p{margin:0}.auth-links+.muted{font-size:12px;margin-top:24px}#message:not(:empty),#emailMessage:not(:empty),#editorMessage:not(:empty){padding:12px 16px;background:var(--raised);border-radius:8px;line-height:1.6;margin:16px 0}.actions{align-items:center}.actions>.quiet-action{margin-left:auto}#accountRows{margin-bottom:24px}.account-row small{font-size:12px}.account-row{align-items:center}.account-row button{font-size:13px}#selectedEmail{overflow-wrap:anywhere;margin-top:16px}#accountEditor{position:fixed;inset:16px 16px 16px auto;width:min(480px,calc(100% - 32px));margin:0;z-index:1200;overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 40px #0008}body.access-editing main{padding-right:520px;max-width:1480px}#subscriptionForm .actions{gap:8px}#subscriptionForm label{margin:24px 0}#subscriptionForm button{min-height:44px}#backToAccounts{padding-left:0}#accessHistory{font-size:13px;line-height:1.6}
@media(max-width:1000px){body.access-editing main>*:not(#accountEditor){display:none}#accountEditor{inset:0;width:100%;border:0;border-radius:0;padding:24px 20px}body.access-editing{overflow:hidden}}
@media(max-width:600px){header{padding:12px 20px;gap:8px;min-height:72px}header nav{margin-left:auto;gap:12px}main{padding:0 20px;margin:24px auto}.narrow{margin:24px auto;padding:0 16px}.narrow .card{padding:20px}.narrow h1{font-size:26px}.card{margin:24px 0}.account-row{grid-template-columns:minmax(0,1fr)}.account-row button{justify-self:start}h1{font-size:28px}#noSubscription .actions{align-items:stretch;flex-direction:column}.actions>.quiet-action{margin-left:0}}

main>p{max-width:75ch}
