body.acc { margin: 0; background: var(--sw-bg); color: var(--sw-ink); font-family: var(--font-ui); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }
.acc .foot { margin-top: 96px; }
.acc button, .acc input { font-family: inherit; font-feature-settings: inherit; }

.acc-main { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 0; }

.account-heading { margin: 0 0 32px; }
.account-eyebrow { display: block; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sw-muted); }
.account-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; color: var(--sw-ink); }
.account-heading h1 span { font-weight: 350; color: var(--sw-muted); }
#accountSubtitle { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--sw-ink-2); }

.account-page.is-loading #authView, .account-page.is-loading #accountView { display: none !important; }
.account-page:not(.is-loading) .account-loading { display: none; }
.account-loading { padding: 40px 0; font-size: 14px; color: var(--sw-muted); }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-card { padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .06), 0 18px 40px -32px rgba(42, 35, 32, .35); }
.account-card h2 { margin: 0 0 20px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; color: var(--sw-ink); }

.account-form { display: grid; gap: 14px; }
.account-label { display: grid; gap: 7px; }
.account-label > span { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); }
.account-label input { box-sizing: border-box; width: 100%; height: 44px; padding: 0 14px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; color: var(--sw-ink); font-size: 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.account-label input:hover { border-color: #D6CEC7; }
.account-label input:focus { border-color: var(--sw-ink); box-shadow: 0 0 0 3px rgba(42, 35, 32, .07); }
.account-help { min-height: 38px; margin-top: -4px; }
.account-hint { display: block; font-size: 12.5px; line-height: 1.5; color: var(--sw-muted); }
.account-hint.is-ok { color: #2E7D4F; }
.account-hint.is-error { color: #B42318; }
.account-message { margin: 0; font-size: 13.5px; line-height: 1.5; }
.account-message:empty { display: none; }

.account-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; padding: 0 20px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: var(--sw-ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.account-btn:hover { transform: translateY(-1px); }
.account-btn:active { transform: translateY(0); }
.account-btn:disabled { opacity: .55; cursor: default; transform: none; }
.account-btn--auto { width: auto; justify-self: start; }
.account-btn--sm { width: auto; height: 36px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.account-btn--light:hover { background: #fafafa; }
.account-btn--dark { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.account-btn--dark:hover { background: #3a312d; }
.account-btn--rainbow { border-color: transparent; color: #fff; background-image: linear-gradient(to right, #F2413A 0%, #F2413A 16.67%, #FF6A33 16.67%, #FF6A33 33.33%, #FFB21A 33.33%, #FFB21A 50%, #22BF6A 50%, #22BF6A 66.67%, #12B5C9 66.67%, #12B5C9 83.33%, #2F86FF 83.33%, #2F86FF 100%); background-size: 260px 100%; animation: accountRainbow 2s linear infinite; }
.account-btn--danger { background: #B42318; border-color: #B42318; color: #fff; }
.account-btn--danger:hover { background: #9A1D14; }
@keyframes accountRainbow { to { background-position: 260px 0; } }

.account-link { padding: 0; border: 0; background: none; color: var(--sw-ink-2); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(42, 35, 32, .28); text-underline-offset: 3px; cursor: pointer; }
.account-link:hover { color: var(--sw-ink); text-decoration-color: var(--sw-ink); }
.account-subform { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ECE7E3; }

.account-settings { padding: 0 24px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 72px; padding: 16px 0; box-sizing: border-box; }
.account-row + .account-row { border-top: 1px solid #ECE7E3; }
.account-row__info { display: grid; gap: 3px; min-width: 0; }
.account-row__label { font-size: 13px; font-weight: 450; letter-spacing: -0.01em; color: var(--sw-muted); }
.account-row__value { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--sw-ink); overflow-wrap: anywhere; }

.account-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; cursor: pointer; }
.account-toggle__text { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.account-switch { position: relative; flex: none; width: 40px; height: 22px; }
.account-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.account-switch__slider { position: absolute; inset: 0; border-radius: 999px; background: #E3DED9; transition: background-color .25s ease; }
.account-switch__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.3, .7, .3, 1); }
.account-switch input:checked ~ .account-switch__slider { background: #4bc05f; }
.account-switch input:checked ~ .account-switch__knob { transform: translateX(18px); }
.account-switch input:focus-visible ~ .account-switch__slider { box-shadow: 0 0 0 3px rgba(42, 35, 32, .12); }
.account-password { padding: 4px 0 24px; }

.account-danger { margin-top: 56px; }
.account-danger__link { padding: 0; border: 0; background: none; color: var(--sw-muted); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(140, 128, 120, .35); text-underline-offset: 3px; cursor: pointer; transition: color .2s ease; }
.account-danger__link:hover { color: #B42318; text-decoration-color: currentColor; }
.account-danger__link:disabled { opacity: .55; cursor: default; }
.account-delete-confirm { gap: 14px; max-width: 460px; margin-top: 16px; padding: 18px; border-radius: 16px; background: #FDF1EF; }
.account-delete-confirm__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: #7A271A; }
.account-delete-confirm .account-label input { border-color: #F3C9C2; }
.account-delete-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-danger > .account-message:not(:empty) { margin-top: 12px; }

.account-licenses { margin-top: 16px; padding: 24px 24px 12px; }
.acl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acl-head h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: var(--sw-ink); }
.acl-head small { font-size: 13px; color: var(--sw-muted); }
.acl-sub { margin: 6px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--sw-muted); }
.acl-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.acl-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #F2EFEC; }
.acl-filter button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--sw-muted); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.acl-filter button:hover { color: var(--sw-ink); }
.acl-filter button.is-active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 2px rgba(42, 35, 32, .12); }
.acl-search { position: relative; flex: 1 1 220px; max-width: 300px; }
.acl-search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--sw-muted); pointer-events: none; }
.acl-search input { width: 100%; height: 38px; padding: 0 14px 0 36px; border: 1px solid #E8E2DD; border-radius: 999px; background: #fff; color: var(--sw-ink); font: inherit; font-size: 13.5px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.acl-search input::placeholder { color: #B5AAA2; }
.acl-search input:focus { border-color: var(--sw-ink); box-shadow: 0 0 0 3px rgba(42, 35, 32, .08); }
.acl-empty { margin: 0; padding: 22px 0 14px; border-top: 1px solid #ECE7E3; font-size: 14px; color: var(--sw-muted); text-align: center; }
.acl-list { margin: 0; padding: 0; list-style: none; }
.acl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 14px 0; border-top: 1px solid #ECE7E3; }
.acl-file { min-width: 0; }
.acl-file b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acl-file small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--sw-muted); }
.acl-side { display: flex; align-items: center; gap: 6px; }
.acl-num { margin-right: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--sw-ink-2); white-space: nowrap; }
.acl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; color: var(--sw-ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.acl-btn:hover { background: #FAFAFA; border-color: #E3DDD8; }
.acl-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #A9442E; font-size: 12.5px; font-weight: 650; vertical-align: -3px; }
.acl-seal { position: relative; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--sw-ink-2); }
.acl-seal::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #E3DCD6; }
.acl-seal::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: #fff; }
.acl-seal svg { position: relative; z-index: 1; width: 46%; height: 46%; }
.acl-item.is-revoked .acl-num { color: var(--sw-muted); text-decoration: line-through; text-decoration-color: rgba(140, 128, 120, .5); }
.acl-more { display: block; width: 100%; height: 44px; margin: 4px 0 0; border: 0; border-top: 1px solid #ECE7E3; background: none; color: var(--sw-ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.acl-more[hidden] { display: none; }
.acl-more:disabled { opacity: .55; cursor: default; }

@media (max-width: 760px) {
  .acc-main { width: calc(100% - 32px); padding-top: 40px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-card { padding: 20px; border-radius: 18px; }
  .account-settings { padding: 0 20px; }
  .account-help { min-height: 0; }
  .account-danger { margin-top: 44px; }
  .account-licenses { padding: 20px 18px 8px; }
}
@media (max-width: 640px) {
  .acl-item { grid-template-columns: 1fr; }
  .acl-file b { white-space: normal; overflow-wrap: anywhere; }
  .acl-search { order: -1; flex-basis: 100%; max-width: none; }
  .acl-filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .acl-filter::-webkit-scrollbar { display: none; }
  .acl-filter button { padding: 0 12px; font-size: 13px; }
  .acl-side { flex-wrap: wrap; }
  .acl-num { width: 100%; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-btn--rainbow { animation: none; }
}
