
:root {
  --account-canvas: #f8fafd;
  --account-surface: #fff;
  --account-blue: #0b57d0;
  --account-ink: #1f1f1f;
  --account-muted: #5f6368;
  --account-border: #dadce0;
}
.masthead-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
#account-entry { display: flex; align-items: center; }
.account-login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 23px; border-radius: 24px; background: var(--account-blue); color: #fff; font-size: 14px; }
.account-login-link:hover { background: #084bb7; }
.account-avatar { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #d3e3fd; color: #174ea6; font-size: 18px; font-weight: 500; }
.account-menu { position: relative; z-index: 10; line-height: 1.4; }
.account-menu summary { cursor: pointer; list-style: none; border: 4px solid #fff; border-radius: 50%; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { border-color: #edf2fa; }
.account-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 276px; padding: 12px; border-radius: 20px; border: 1px solid #e2e6ed; background: var(--account-surface); color: var(--account-ink); box-shadow: 0 8px 32px #25344916; }
.account-menu-identity { display: grid; gap: 5px; padding: 12px 14px 17px; margin-bottom: 6px; border-bottom: 1px solid #e8eaed; overflow-wrap: anywhere; }
.account-menu-identity strong { font-size: 15px; font-weight: 500; }
.account-menu-identity span { font-size: 12px; color: var(--account-muted); }
.account-menu-panel > a, .account-menu-panel > button { display: block; width: 100%; text-align: left; font-size: 14px; padding: 11px 14px; border-radius: 10px; }
.account-menu-panel > a:hover, .account-menu-panel > button:hover { background: #f0f4f9; }
.account-route { background: var(--account-canvas); }
.account-route .site-footer { border-color: #e7ebf1; }
.account-route h1, .account-route h2 { color: var(--account-ink); }
.account-route :focus-visible, .account-menu :focus-visible { outline-color: var(--account-blue); }
.auth-stage { min-height: max(650px, calc(100svh - 236px)); display: flex; align-items: center; justify-content: center; padding: 64px 32px 86px; }
.auth-card { width: min(100%, 1040px); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; background: var(--account-surface); border-radius: 28px; padding: 52px 48px 42px; color: var(--account-ink); animation: account-enter .35s ease both; }
.auth-intro { padding-top: 2px; }
.auth-brand-mark { color: var(--account-blue); display: block; margin-bottom: 32px; }
.auth-intro h1 { font-size: 38px; line-height: 1.4; font-weight: 400; letter-spacing: -.02em; }
.auth-intro > p { font-size: 15px; margin-top: 18px; color: var(--account-muted); }
.auth-demo-note { display: block; margin-top: 22px; color: #6b7280; font-size: 12px; line-height: 1.6; }
.account-demo-note { margin: 22px 0 0; color: #6b7280; font-size: 12px; text-align: center; }
.account-preview-link { justify-self: end; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.auth-content { min-width: 0; padding-top: 22px; }
.account-form { display: grid; gap: 23px; min-width: 0; }
.account-field { display: grid; gap: 9px; min-width: 0; }
.account-field > span { font-size: 13px; color: var(--account-muted); }
.account-field input, .account-field textarea, .account-field select { width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--account-border); border-radius: 5px; padding: 12px 15px; color: var(--account-ink); background: #fff; font: inherit; font-size: 15px; line-height: 1.65; transition: border-color .15s; }
.account-field input:focus, .account-field textarea:focus, .account-field select:focus { border-color: var(--account-blue); outline: 1px solid var(--account-blue); outline-offset: 0; }
.account-field:focus-within > span { color: var(--account-blue); }
.account-field textarea { resize: vertical; }
.account-field input[readonly] { background: #f6f8fb; color: var(--account-muted); border-color: #e5e8ec; }
.password-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -8px; font-size: 12px; }
.password-options > label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.password-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--account-blue); }
.password-options > a { color: var(--account-blue); }
.password-options > span { color: var(--account-muted); }
.account-form-status { min-height: 21px; font-size: 13px; color: #137333; line-height: 1.6; }
.account-form-status:empty { min-height: 0; margin-bottom: -12px; }
.account-form-status.is-error { color: #b3261e; }
.account-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 3px; }
.account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 25px; border-radius: 24px; color: #fff; background: var(--account-blue); font-size: 14px; line-height: 1.5; font-weight: 500; white-space: nowrap; transition: background .15s; }
.account-button:hover { background: #084bb7; box-shadow: 0 1px 3px #1a4a8c30; }
.account-button:disabled { background: #e3e7ed; color: #68717d; box-shadow: none; }
.account-text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--account-blue); font-size: 13px; font-weight: 500; padding: 6px 0; }
.account-text-button:hover { color: #174ea6; }
.auth-confirmation { display: grid; justify-items: start; gap: 22px; padding-bottom: 12px; }
.auth-confirmation > svg { color: var(--account-blue); }
.auth-confirmation p { font-size: 16px; overflow-wrap: anywhere; }
.auth-confirmation > span { font-size: 14px; color: var(--account-muted); }
.account-shell { width: calc(100% - 112px); max-width: 1264px; margin: 0 auto; display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 54px; padding: 60px 0 88px; min-height: calc(100svh - 236px); color: var(--account-ink); }
.account-sidebar { align-self: start; position: sticky; top: 28px; }
.account-sidebar-title { font-size: 12px; color: var(--account-muted); display: block; padding: 2px 16px 21px; }
.account-sidebar nav { display: grid; gap: 6px; }
.account-sidebar nav a { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 10px 17px; border-radius: 26px; font-size: 14px; color: #444746; }
.account-sidebar nav a:hover { background: #edf1f8; }
.account-sidebar nav .selected { background: #d3e3fd; color: #0b3f98; font-weight: 500; }
.account-sidebar-exit { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; color: var(--account-muted); padding: 14px 17px; margin-top: 35px; }
.account-sidebar-exit:hover { color: var(--account-ink); }
.account-main { min-width: 0; }
.account-welcome { display: flex; align-items: center; gap: 24px; margin: 5px 0 34px; }
.account-avatar.avatar-large { width: 72px; height: 72px; font-size: 30px; }
.account-welcome h1 { font-size: 32px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.account-welcome p { margin-top: 5px; color: var(--account-muted); font-size: 13px; overflow-wrap: anywhere; }
.account-welcome > div { min-width: 0; }
.account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.account-summary > a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 16px; padding: 27px 28px; border: 1px solid #e2e7ef; border-radius: 20px; background: #fff; }
.account-summary > a:hover { border-color: #9fc1ef; }
.account-summary svg { color: var(--account-blue); }
.account-summary span { font-size: 14px; }
.account-summary strong { font-size: 34px; font-weight: 400; line-height: 1.4; font-variant-numeric: tabular-nums; }
.account-panel { background: #fff; border: 1px solid #e2e7ef; border-radius: 20px; padding: 13px 30px; min-width: 0; }
.account-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 15px; }
.account-panel-heading h2 { font-size: 18px; font-weight: 500; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid #edf0f4; }
.account-row:first-child { border-top: 0; }
.account-row > div { min-width: 0; }
.account-row-title { display: inline-block; font-size: 16px; line-height: 1.6; }
.account-row-title:hover { color: var(--account-blue); }
.account-row-meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--account-muted); font-size: 11px; margin-top: 8px; }
.account-row-meta span:last-child { color: #79838f; }
.account-row time { color: var(--account-muted); font-size: 12px; white-space: nowrap; }
.account-icon-button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; color: var(--account-blue); }
.account-icon-button:hover { background: #eaf1fd; }
.is-saved > svg { fill: #d3e3fd; }
.account-empty { display: grid; justify-items: center; gap: 13px; padding: 48px 15px 40px; color: #7b8795; }
.account-empty p { font-size: 14px; color: var(--account-muted); }
.account-page-heading { display: flex; align-items: center; gap: 18px; margin: 7px 0 30px; }
.account-page-heading h1 { font-size: 32px; font-weight: 400; line-height: 1.5; }
.account-page-heading > span { font-size: 13px; padding: 3px 11px; border-radius: 14px; color: var(--account-muted); background: #eaf0f7; }
.profile-panel { padding: 32px; max-width: 690px; }
.profile-panel .account-form { gap: 24px; }
.account-loading { padding: 35px 20px; font-size: 14px; color: var(--account-muted); }
.account-load-error { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; border-radius: 12px; color: #b3261e; background: #fff0ed; font-size: 13px; margin-bottom: 23px; }
.bookmark-button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--account-blue); border: 1px solid #c8d7ed; border-radius: 20px; padding: 7px 17px; min-height: 38px; margin-top: 18px; }
.bookmark-button:hover { background: #edf3fc; }
.bookmark-button:disabled { opacity: .55; }
.bookmark-button.is-saved { background: #edf3fc; }
.account-toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; transform: translateX(-50%); max-width: calc(100% - 36px); border-radius: 12px; padding: 12px 24px; background: #30343b; color: white; font-size: 14px; line-height: 1.6; box-shadow: 0 3px 16px #20253020; }
.account-toast[hidden] { display: none; }
@keyframes account-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .auth-card { gap: 40px; padding: 40px 35px; }
  .account-shell { width: calc(100% - 64px); grid-template-columns: 185px minmax(0, 1fr); gap: 28px; }
  .account-summary > a { gap: 10px; padding: 22px 18px; }
  .account-summary { gap: 14px; }
}
@media (max-width: 720px) {
  .masthead { gap: 12px; }
  .masthead .brand { flex: 1; min-width: 0; }
  .brand > span { min-width: 0; }
  .masthead-actions { gap: 9px; }
  .masthead-actions .menu-toggle { width: 35px; }
  .account-login-link { font-size: 13px; padding: 7px 17px; min-height: 36px; }
  .account-avatar { width: 34px; height: 34px; font-size: 16px; }
  .auth-stage { min-height: calc(100svh - 250px); padding: 24px 20px 45px; align-items: flex-start; }
  .auth-card { display: block; padding: 30px 27px; border-radius: 23px; max-width: 470px; }
  .auth-brand-mark { margin-bottom: 20px; }
  .auth-brand-mark svg { width: 32px; height: 32px; }
  .auth-intro h1 { font-size: 29px; }
  .auth-intro > p { font-size: 12px; margin-top: 10px; }
  .auth-content { padding-top: 32px; }
  .account-form { gap: 22px; }
  .account-field input, .account-field textarea, .account-field select { font-size: 16px; }
  .account-form-actions { margin-top: 8px; }
  .account-shell { width: calc(100% - 40px); display: block; padding: 25px 0 50px; }
  .account-sidebar { position: static; margin-bottom: 28px; }
  .account-sidebar-title, .account-sidebar-exit { display: none; }
  .account-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .account-sidebar nav a { flex-direction: column; gap: 7px; min-height: 65px; border-radius: 13px; font-size: 11px; padding: 10px 4px; }
  .account-welcome { gap: 17px; margin: 8px 3px 27px; }
  .account-avatar.avatar-large { width: 56px; height: 56px; font-size: 25px; }
  .account-welcome h1 { font-size: 23px; }
  .account-welcome p { font-size: 12px; }
  .account-summary { gap: 12px; margin-bottom: 20px; }
  .account-summary > a { grid-template-columns: 24px 1fr; padding: 18px 17px; gap: 11px; border-radius: 16px; }
  .account-summary span { font-size: 12px; }
  .account-summary strong { grid-column: 2; font-size: 30px; }
  .account-summary svg { width: 21px; }
  .account-panel { border-radius: 16px; padding: 10px 21px; }
  .account-panel-heading h2 { font-size: 16px; }
  .account-panel-heading .account-text-button { font-size: 12px; }
  .account-row-title { font-size: 14px; }
  .account-row { padding: 20px 0; gap: 12px; }
  .account-row-meta { gap: 8px; font-size: 10px; }
  .account-row time { font-size: 10px; }
  .account-page-heading { margin: 3px 3px 23px; }
  .account-page-heading h1 { font-size: 26px; }
  .profile-panel { padding: 27px 23px; }
  .account-empty { padding: 35px 6px; }
}
@media (max-width: 420px) {
  .brand-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-caption { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 26px; height: 26px; }
  .masthead-actions { gap: 5px; }
  .account-login-link { padding: 7px 13px; }
  .auth-card { padding: 27px 22px; }
  .password-options { gap: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}

