:root {
  --account-ink: #102f4c;
  --account-blue: #173f63;
  --account-gold: #c8912f;
  --account-paper: #f6f3ec;
  --account-line: #d8d5cf;
}

.account-page { min-height: 100vh; background: #f1f4f7; }
.account-intro { padding: 72px 0 58px; color: #fff; background: linear-gradient(120deg, #0d2b47, #194b73); }
.account-intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.account-kicker, .account-label { display: block; color: var(--account-gold); font-size: .82rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.account-intro h1 { margin: 14px 0 18px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.12; }
.account-intro h1 span { color: #f0bb53; }
.account-intro p { max-width: 680px; margin: 0; color: #d7e3ed; font-size: 1.08rem; line-height: 1.8; }
.account-promises { margin: 0; padding: 26px 30px; list-style: none; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(5,28,48,.38); }
.account-promises li { display: flex; flex-direction: column; gap: 4px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.account-promises li:last-child { border-bottom: 0; }
.account-promises b { font-size: 1rem; }
.account-promises span { color: #bfcfdd; font-size: .9rem; }

.account-main { padding: 58px 0 90px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(250px, 1fr); gap: 32px; align-items: start; }
.account-card, .account-note { border: 1px solid #d9e0e6; border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(16,47,76,.08); }
.account-card { padding: 34px; }
.account-note { padding: 30px; position: sticky; top: 24px; }
.account-note h2 { margin: 10px 0 12px; color: var(--account-ink); font-family: Georgia, "Noto Serif SC", serif; }
.account-note p { color: #657584; line-height: 1.75; }
.account-note a { color: var(--account-blue); font-weight: 700; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; margin-bottom: 28px; border-radius: 14px; background: #eef2f5; }
.account-tabs button { min-height: 46px; border: 0; border-radius: 10px; color: #657584; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.account-tabs button[aria-selected="true"] { color: #fff; background: var(--account-blue); box-shadow: 0 7px 16px rgba(23,63,99,.2); }
.account-form { display: grid; gap: 18px; }
.account-form.compact { margin-top: 18px; }
.form-heading h2 { margin: 8px 0; color: var(--account-ink); font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; }
.form-heading p, .form-help { margin: 0; color: #6b7b88; line-height: 1.65; }
.account-form label { display: grid; gap: 8px; color: #29445b; font-weight: 700; }
.account-form label > span { font-size: .94rem; }
.account-form input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #ccd5dc; border-radius: 10px; background: #fff; color: #173148; font: inherit; box-sizing: border-box; }
.account-form input:focus { outline: 3px solid rgba(200,145,47,.18); border-color: var(--account-gold); }
.account-form small { color: #788792; font-size: .8rem; font-weight: 400; }
.identity-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
.identity-picker legend { margin-bottom: 9px; color: #29445b; font-size: .94rem; font-weight: 800; }
.identity-picker label { display: block; }
.identity-picker input { position: absolute; opacity: 0; pointer-events: none; }
.identity-picker label > span { display: flex; min-height: 82px; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 16px; border: 1px solid #d3dce3; border-radius: 12px; background: #fafcfd; cursor: pointer; }
.identity-picker input:checked + span { border-color: var(--account-gold); background: #fff8ea; box-shadow: inset 0 0 0 1px var(--account-gold); }
.identity-picker b { color: var(--account-ink); }
.role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; border-radius: 14px; background: var(--account-paper); }
.privacy-check { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.privacy-check input { width: 18px; min-height: 18px; margin-top: 2px; }
.privacy-check a { margin-left: 3px; color: var(--account-blue); font-weight: 800; }
.wide { width: 100%; min-height: 52px; }
.account-message { min-height: 24px; margin: 20px 0 0; padding: 0; color: #657584; }
.account-message.error, .account-message.success { padding: 12px 14px; border-radius: 10px; }
.account-message.error { color: #982f2f; background: #fff0ee; }
.account-message.success { color: #24633f; background: #edf8f1; }
.viewer-panel h2 { margin: 10px 0; color: var(--account-ink); font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; }
.viewer-panel p { color: #6b7b88; }
.viewer-actions { display: flex; gap: 12px; margin: 24px 0; }
.viewer-panel details { padding-top: 18px; border-top: 1px solid #e1e6ea; }
.viewer-panel summary { color: var(--account-blue); font-weight: 800; cursor: pointer; }
@media (max-width: 860px) {
  .account-intro { padding: 54px 0 44px; }
  .account-intro-grid, .account-layout { grid-template-columns: 1fr; gap: 26px; }
  .account-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
  .account-promises li { border: 0; padding: 8px; }
  .account-note { position: static; }
}

@media (max-width: 620px) {
  .account-intro h1 { font-size: 2.55rem; }
  .account-promises, .identity-picker, .role-fields { grid-template-columns: 1fr; }
  .account-card { padding: 22px 18px; border-radius: 16px; }
  .account-main { padding: 32px 0 62px; }
  .viewer-actions { flex-direction: column; }
}
