.account { background: #f8f7fb; }
.account-header { border-bottom: 1px solid var(--line); background: #fff; }
.account-header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.back-link { color: var(--accent-strong); font-weight: 650; }
.back-link:hover, .account-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.account-layout { display: grid; grid-template-columns: 204px minmax(0, 1fr); align-items: start; gap: 39px; padding-block: 36px 25px; }
.account-sidebar { position: sticky; top: 24px; display: grid; gap: 22px; }
.account-sidebar nav { display: grid; gap: 4px; }
.account-sidebar nav a { padding: 10px 14px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-weight: 650; }
.account-sidebar nav a:hover { color: var(--accent-strong); background: #f0ebf8; }
.account-sidebar nav .account-current { color: var(--accent-strong); border-color: #e0d5f1; background: #eee7f8; }
.account-guest { display: flex; gap: 10px; align-items: center; padding: 13px 10px; border-top: 1px solid var(--line); font-size: .9rem; }
.account-guest strong, .account-guest div > span { display: block; }
.account-guest div > span { color: var(--muted); }
.guest-icon { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--accent-strong); background: #eae2f8; font-weight: 750; }
.account-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.account-title h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.058em; }
.account-title .button { min-height: 42px; padding: .44rem .95rem; }
.account-notice { padding: 12px 15px; margin: 25px 0 26px; border: 1px solid #e3d9f2; border-radius: 8px; background: #f1ebfa; color: #484055; }
.account-notice a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: .18em; }
.subscription, .account-setup { scroll-margin-top: 20px; }
.account-content h2 { margin-bottom: 13px; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.025em; }
.account-content .subscription { margin-top: 24px; }
.account-content [hidden], .account-sidebar [hidden] { display: none; }
#cabinet-login p + p, #cabinet-live-notice:not(:empty) { margin-top: 11px; }
#cabinet-live-notice { color: var(--muted); }
.subscription-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr); gap: 14px; }
.sub-card, .sub-details, .account-setup { padding: 21px; border: 1px solid #e0d9ea; border-radius: 12px; background: #fff; }
.sub-card { border-color: #d4c4ec; }
.sub-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; }
.sub-top h3, .sub-details h3 { font-size: 1.06rem; }
.sub-status { padding: 3px 8px; border-radius: 6px; background: #e7f5ee; color: #176049; font-size: .81rem; font-weight: 700; }
.sub-time { display: flex; flex-wrap: wrap; gap: 1px 10px; align-items: baseline; margin: 14px 0 6px; color: var(--muted); }
.sub-time strong { color: var(--ink); font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.05em; line-height: 1.1; }
.sub-card progress { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 9px; background: #efebf5; color: var(--accent); }
.sub-card progress::-webkit-progress-bar { border-radius: 9px; background: #efebf5; }
.sub-card progress::-webkit-progress-value { border-radius: 9px; background: var(--accent); }
.sub-card progress::-moz-progress-bar { border-radius: 9px; background: var(--accent); }
.sub-key { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; }
.sub-key label { display: block; margin-bottom: 6px; font-weight: 670; }
.sub-key-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-key-row input { min-width: 0; flex: 1 1 170px; padding: .48rem .6rem; border: 1px solid #d9cfe9; border-radius: 7px; background: #faf8fd; color: #433857; font: .86rem/1.45 ui-monospace, Consolas, monospace; }
.sub-key-row .button { min-height: 38px; padding: .42rem .75rem; font-size: .88rem; }
.sub-key-row .button[hidden] { display: none; }
.sub-key p { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.sub-key #copy-result { color: var(--accent-strong); }
.sub-details dl { margin: 13px 0 16px; }
.sub-details dl > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.sub-details dt { color: var(--muted); }
.sub-details dd { font-weight: 690; }
.account-setup { margin-top: 20px; }
.account-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0 0 16px; list-style: none; counter-reset: account-step; }
.account-steps li { counter-increment: account-step; border-top: 1px solid var(--line); padding-top: 9px; }
.account-steps li::before { content: counter(account-step); display: inline-grid; width: 24px; aspect-ratio: 1; place-items: center; margin-right: 5px; border-radius: 50%; background: #f1ebfa; color: var(--accent-strong); font-size: .81rem; font-weight: 740; }
.account-steps p { margin-top: 7px; color: var(--muted); }
.account-footer { display: flex; flex-wrap: wrap; gap: 8px 21px; padding-top: 16px; margin-top: 20px; font-size: .9rem; color: var(--muted); }
@media (max-width: 950px) {
  .account-layout { grid-template-columns: 157px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .account-layout { grid-template-columns: 1fr; padding-top: 15px; gap: 22px; }
  .account-sidebar { position: static; }
  .account-sidebar nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .account-sidebar nav a { padding: 7px 9px; font-size: .91rem; }
  .account-guest { display: none; }
  .account-notice { margin: 18px 0; }
}
@media (max-width: 535px) {
  .account-title { flex-wrap: wrap; gap: 12px; }
  .subscription-grid, .account-steps { grid-template-columns: 1fr; }
  .sub-card, .sub-details, .account-setup { padding: 15px; }
  .account-setup { margin-top: 15px; }
}
