.account-body { height: auto; min-height: 100dvh; overflow: auto; }
.account-card .terms-check { display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.7; color:#a9b7ab; margin:20px 0; font-weight:350; }
.account-body .account-card .terms-check input[type=checkbox] { width:16px; height:16px; min-width:16px; margin:3px 0 0; padding:0; border-radius:3px; appearance:auto; accent-color:#92c59d; cursor:pointer; }
.terms-check a { text-decoration:underline; text-underline-offset:3px; }
.account-intro h1 { font-weight:250; }
.auth-entry .auth-brand .inmedflow-logo { width:250px; }
.auth-brand { display: none; }
.submit-loading { display: none; }
.is-loading .submit-label { display: none; }
.is-loading .submit-loading { display: inline; }
.account-body [hidden] { display: none !important; }
.account-header-label { color: #7c8088; font: 9px var(--font-body); letter-spacing: 1.5px; }
.account-back { margin-left: auto; color: #aaaeb7; font-size: 11px; text-decoration: none; }
.account-layout { width: min(970px, calc(100% - 48px)); margin: 65px auto 40px; display: grid; grid-template-columns: .9fr 1fr; gap: 90px; align-items: start; }
.account-intro { padding-top: 34px; }
.account-intro h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -2px; margin: 25px 0 20px; }
.account-intro > p { color: #999fa8; line-height: 1.9; max-width: 290px; font-size: 13px; }
.account-intro-foot { margin-top: 75px; padding-top: 18px; border-top: 1px solid #292b30; color: #777d85; }
.account-intro-foot span { font: 8px var(--font-body); letter-spacing: 1.5px; }
.account-intro-foot p { font-size: 11px; margin-top: 10px; }
.account-card { background: #101114; border: 1px solid #2b2d33; border-radius: 5px; padding: 30px; box-shadow: 0 25px 70px #0004; }
.account-kicker { color: hsl(var(--accent-hue, 138.46) 6.10% 58.24%); font: 8px var(--font-body); letter-spacing: 1.6px; margin-bottom: 13px; }
.account-card h2 { font-size: 23px; letter-spacing: -.6px; font-weight: 400; }
.account-description { color: #9298a3; font-size: 12px; line-height: 1.8; margin: 10px 0 25px; }
.account-card label { display: block; color: #c3c7ce; font-size: 11px; margin: 15px 0 7px; }
.account-card input:not([type=hidden]), .account-card select { display: block; width: 100%; height: 38px; border-radius: 4px; border: 1px solid #34373f; background: #0b0d10; color: #eee; padding: 8px 10px; font-size: 12px; outline: none; }
.account-card input:focus, .account-card select:focus { border-color: hsl(var(--accent-hue, 145.35) 29.46% 47.25%); box-shadow: 0 0 0 2px hsl(var(--accent-hue, 152.73) 70.21% 53.92% / 0.0667); }
.account-card input[readonly] { color: #878e98; background: #14161a; }
.account-card input::placeholder { color: #606773; }
.account-card small { display: block; color: #7f8793; font-size: 10px; margin-top: 7px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.account-card a { color: hsl(var(--accent-hue, 145.91) 27.85% 69.02%); text-decoration: none; font-size: 11px; }
.account-card a:hover { color: hsl(var(--accent-hue, 143.18) 70.97% 87.84%); text-decoration: underline; }
.account-primary { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 24px; height: 38px; background: hsl(var(--accent-hue, 150.00) 5.56% 92.94%); border: 1px solid hsl(var(--accent-hue, 150.00) 5.56% 92.94%); border-radius: 4px; color: hsl(var(--accent-hue, 144.00) 10.64% 9.22%); padding: 0 12px; font-size: 12px; font-weight: 550; }
.account-primary:hover { background: #fff; }
.account-primary:disabled { opacity: .6; cursor: wait; }
.account-primary:disabled, .is-loading input, .is-loading select { background-image: linear-gradient(100deg, transparent 25%, #ffffff12 50%, transparent 75%); background-size: 250% 100%; animation: account-shimmer 1.6s infinite linear; }
@keyframes account-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media(prefers-reduced-motion: reduce) { .account-primary:disabled, .is-loading input, .is-loading select { animation: none; } }
.account-switch { color: #8f96a0; font-size: 11px; margin: 23px 0 0; }
.account-message { font-size: 12px; line-height: 1.8; border: 1px solid #654d32; background: #2b2118; color: #e8c59c; padding: 9px 12px; border-radius: 4px; margin-bottom: 22px; overflow-wrap: anywhere; }
.account-message.success { color: hsl(var(--accent-hue, 143.48) 46.00% 80.39%); border-color: hsl(var(--accent-hue, 142.11) 26.03% 28.63%); background: hsl(var(--accent-hue, 142.50) 28.57% 10.98%); }
.local-mail-note { color: #9c9a87; font-size: 10px; line-height: 1.8; border-top: 1px solid #33332c; padding-top: 12px; margin-top: 18px; }
.account-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-security-links { display: flex; justify-content: space-between; margin-top: 22px; border-top: 1px solid #2a2e33; padding-top: 15px; }
.account-footer { color: #616977; font: 8px var(--font-body); letter-spacing: 1.4px; width: min(970px, calc(100% - 48px)); margin: 0 auto 25px; }
.account-footer span { margin: 0 12px; color: hsl(var(--accent-hue, 142.73) 36.26% 35.69%); }
.account-footer a { margin-left: 18px; color: hsl(var(--accent-hue, 145.71) 14.58% 62.35%); text-decoration: none; letter-spacing: .5px; }
.account-footer a:hover { color: hsl(var(--accent-hue, 144.00) 40.23% 82.94%); text-decoration: underline; }
.terms-content { width: min(760px, calc(100% - 36px)); margin: 60px auto; }
.terms-content h1 { font-size: 28px; line-height: 1.4; letter-spacing: -.8px; margin-bottom: 25px; }
.terms-section { border: 1px solid hsl(var(--accent-hue, 153.33) 9.47% 18.63%); border-radius: 5px; background: hsl(var(--accent-hue, 144.00) 13.51% 7.25%); padding: 24px; }
.terms-section h2 { font-size: 15px; margin: 0 0 16px; }
.terms-section p { color: hsl(var(--accent-hue, 145.71) 10.29% 73.33%); font-size: 13px; line-height: 1.9; margin: 0; }
.account-menu { display: flex; align-items: center; gap: 13px; margin-left: 10px; }
.account-menu a, .account-menu button { color: #9ca4ad; font-size: 10px; background: none; border: 0; text-decoration: none; padding: 0; }
.account-menu a:hover, .account-menu button:hover { color: hsl(var(--accent-hue, 130.91) 18.64% 88.43%); }
#accountName { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--accent-hue, 141.00) 20.00% 80.39%); }
@media(max-width: 800px) { .account-layout { gap: 30px; margin-top: 35px; } .account-card { padding: 23px; } .account-intro-foot { margin-top: 35px; } .account-menu { gap: 9px; } #accountName { max-width: 95px; } }
@media(max-width: 580px) { .account-layout { grid-template-columns: 1fr; gap: 20px; width: calc(100% - 30px); margin-top: 20px; } .account-intro { padding-top: 0; } .account-intro h1 { font-size: 30px; margin: 10px 0; } .account-intro h1 br, .account-intro > p, .account-intro-foot, .account-header-label { display: none; } .account-footer { width: calc(100% - 30px); } .account-menu .password-link { display: none; } #accountName { max-width: 65px; } .account-menu { margin-left: 0; gap: 7px; } }

/* Access screens share a quiet, centered layout; account settings keep their workspace. */
.auth-entry { display: flex; flex-direction: column; isolation: isolate; background: hsl(var(--accent-hue, 156.00) 18.52% 5.29%); }
.auth-entry::before, .auth-entry > .topbar, .auth-entry .account-intro { display: none; }
.auth-entry .account-layout { display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; margin: 0; padding: 56px 24px 40px; }
.auth-entry .account-card { width: 360px; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: auth-arrive 180ms cubic-bezier(.16,1,.3,1) both; }
.auth-entry .auth-brand { display: flex; width: fit-content; margin: 0 auto 43px; font-size: 30px; letter-spacing: -1.2px; }
.auth-entry .auth-brand .brand-icon { width: 32px; height: 32px; line-height: 27px; font-size: 28px; border-radius: 8px; margin-right: 9px; }
.auth-entry .account-card h2 { text-align: center; font-size: 28px; line-height: 1.22; letter-spacing: -.85px; font-weight: 400; margin: 0; }
.auth-entry .account-kicker { display: none; }
.auth-entry .account-description { text-align: center; font-size: 13px; color: #99999f; line-height: 1.6; margin: 12px 0 30px; }
.auth-entry .account-card label { font-size: 12px; margin: 18px 0 8px 3px; color: #c9c9ce; }
.auth-entry .account-card input:not([type=hidden]), .auth-entry .account-card select { height: 52px; padding: 14px 18px; border: 1px solid #414145; border-radius: 26px; background: #151516; color: #f1f1f2; font-size: 14px; transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
.auth-entry .account-card input:hover { border-color: #66666c; }
.auth-entry .account-card input:focus { border-color: hsl(var(--accent-hue, 147.35) 37.36% 64.31%); background: hsl(var(--accent-hue, 150.00) 4.00% 9.80%); box-shadow: 0 0 0 3px hsl(var(--accent-hue, 149.07) 40.93% 53.53% / 0.0706); }
.auth-entry input:-webkit-autofill { -webkit-text-fill-color: #eee; box-shadow: 0 0 0 1000px #191a1c inset; caret-color: #eee; }
.auth-entry .label-row a { font-size: 11px; }
.auth-entry .account-primary { margin-top: 25px; }
.auth-entry .account-primary:hover:not(:disabled) { background: hsl(var(--accent-hue, 152.96) 75.70% 58.04%); box-shadow: 0 0 28px 6px hsl(var(--accent-hue, 152.73) 70.21% 53.92% / 0.2196); }
.auth-entry .account-primary:active:not(:disabled) { transform: scale(.985); }
.auth-entry .account-primary:disabled { opacity: .85; cursor: progress; background-image: none; animation: none; }
.auth-entry .account-primary:disabled::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(105deg, transparent 25%, #fff9 50%, transparent 75%); animation: auth-shimmer 1.05s ease-in-out infinite; pointer-events: none; }
.auth-entry .is-loading input { background-image: none; animation: none; }
.auth-entry .account-card a:not(.auth-brand) { color: hsl(var(--accent-hue, 147.14) 30.00% 72.55%); transition: color 100ms ease; }
.auth-entry .account-card a:hover { color: hsl(var(--accent-hue, 143.08) 44.83% 88.63%); }
.auth-entry .account-switch { margin-top: 24px; text-align: center; font-size: 12px; color: #a1a1a9; }
.auth-entry .account-switch a { margin-left: 3px; }
.auth-entry .account-message { border-radius: 12px; padding: 12px 14px; margin-bottom: 22px; animation: auth-arrive 140ms ease-out both; }
.auth-entry .account-footer { width: 100%; text-align: center; margin: 0; padding: 20px 18px 24px; font-family: inherit; font-size: 10px; letter-spacing: .2px; color: #73737c; line-height: 1.8; }
.auth-entry .account-footer span { margin: 0 6px; }
.auth-entry .account-footer a { margin-left: 12px; color: #929299; }
@keyframes auth-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes auth-shimmer { to { transform: translateX(100%); } }
@media(max-width: 480px) { .auth-entry .account-layout { padding: 35px 24px 25px; } .auth-entry .auth-brand { margin-bottom: 34px; } .auth-entry .account-card h2 { font-size: 26px; } .auth-entry .account-footer a { display: block; margin: 5px 0 0; } }
@media(prefers-reduced-motion: reduce) { .auth-entry .account-card, .auth-entry .account-message, .auth-entry .account-primary:disabled::after { animation: none; } .auth-entry .account-primary, .auth-entry .account-card input, .auth-entry .account-card a { transition: none; } }

/* Diffuse lights drift behind the access form without intercepting input. */
.auth-lights { display: none; }
.auth-entry .auth-lights { display: block; position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.auth-light { position: absolute; display: block; border-radius: 50%; filter: blur(70px); will-change: transform; }
.auth-light-one { width: min(560px, 85vw); height: min(560px, 85vw); left: -8%; top: -15%; background: hsl(var(--accent-hue, 152.73) 70.21% 53.92%); opacity: .18; animation: auth-light-one 18s ease-in-out infinite; }
.auth-light-two { width: min(500px, 80vw); height: min(500px, 80vw); right: 5%; top: 20%; background: hsl(var(--accent-hue, 164.00) 60.00% 34.31%); opacity: .2; animation: auth-light-two 13s ease-in-out infinite; }
.auth-light-three { width: min(420px, 75vw); height: min(420px, 75vw); left: 35%; bottom: -5%; background: hsl(var(--accent-hue, 144.00) 38.46% 66.86%); opacity: .14; animation: auth-light-three 16s ease-in-out infinite; }
@keyframes auth-light-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(14vw, 8vh) scale(1.15); }
  40% { transform: translate(9vw, 22vh) scale(.85); }
  60% { transform: translate(-8vw, 16vh) scale(1.12); }
  80% { transform: translate(-12vw, 3vh) scale(.9); }
}
@keyframes auth-light-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(-16vw, 6vh) scale(1.1); }
  35% { transform: translate(-11vw, 18vh) scale(.82); }
  55% { transform: translate(6vw, 20vh) scale(1.18); }
  75% { transform: translate(12vw, 5vh) scale(.88); }
}
@keyframes auth-light-three {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(11vw, -16vh) scale(1.2); }
  50% { transform: translate(-14vw, -10vh) scale(.8); }
  70% { transform: translate(-8vw, 14vh) scale(1.14); }
  85% { transform: translate(8vw, 8vh) scale(.9); }
}

/* The arrow crosses the pill as the two labels exchange places. */
.account-primary { position: relative; overflow: hidden; isolation: isolate; height: 52px; padding: 0 56px; border: 1px solid transparent; border-radius: 999px; background: hsl(var(--accent-hue, 152.73) 70.21% 53.92%); color: hsl(var(--accent-hue, 153.33) 62.79% 8.43%); font-family: var(--font-display); font-size: 14px; font-weight: 500; transition: background-color 300ms ease, box-shadow 300ms ease, transform 150ms ease; }
.account-primary:hover:not(:disabled) { background: hsl(var(--accent-hue, 152.96) 75.70% 58.04%); box-shadow: 0 0 28px 6px hsl(var(--accent-hue, 152.73) 70.21% 53.92% / 0.2196); }
.account-primary:active:not(:disabled) { transform: scale(.985); }
.account-primary .submit-label, .account-primary .submit-hover, .account-primary .submit-loading { position: absolute; text-align: center; }
.account-primary .submit-label { display: block; left: 56px; right: 20px; opacity: 1; transform: translateX(0); transition: opacity 100ms ease-in 180ms, transform 100ms ease-in 180ms; }
.account-primary .submit-hover { left: 20px; right: 56px; opacity: 0; transform: translateX(10px); transition: opacity 100ms ease-in, transform 100ms ease-in; }
.submit-arrow { position: absolute; left: 6px; top: 5px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff38; z-index: 1; transition: left 350ms ease-in-out; }
.account-primary:is(:hover, :focus-visible):not(:disabled) .submit-arrow { left: calc(100% - 46px); }
.account-primary:is(:hover, :focus-visible):not(:disabled) .submit-label { opacity: 0; transform: translateX(-10px); transition-delay: 0ms; }
.account-primary:is(:hover, :focus-visible):not(:disabled) .submit-hover { opacity: 1; transform: translateX(0); transition-delay: 180ms; }
.account-primary .submit-loading { display: none; left: 20px; right: 56px; }
.is-loading .account-primary .submit-label, .is-loading .account-primary .submit-hover { visibility: hidden; }
.is-loading .account-primary .submit-loading { display: block; }
.is-loading .account-primary .submit-arrow { left: calc(100% - 46px); }
@media(prefers-reduced-motion: reduce) {
  .auth-light { animation: none; will-change: auto; }
  .account-primary, .account-primary .submit-label, .account-primary .submit-hover, .submit-arrow { transition: none; }
}

/* Settings are a focused workspace with a stable sidebar and scrollable rows. */
.settings-page { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: #0d0d0e; background-image: none; }
.settings-page::before, .settings-page > .topbar, .settings-page > .account-footer, .settings-page .account-intro { display: none; }
.settings-page .account-layout { display: block; width: min(880px, 100%); margin: 0; }
.settings-page .account-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.settings-shell { display: grid; grid-template-columns: 196px minmax(0, 1fr); height: min(590px, calc(100dvh - 64px)); min-height: 390px; overflow: hidden; border: 1px solid #353537; border-radius: 18px; background: #212122; box-shadow: 0 24px 100px #0006; animation: settings-arrive 200ms cubic-bezier(.22,1,.36,1) both; }
.settings-nav { display: flex; flex-direction: column; min-width: 0; padding: 26px 12px 18px; background: #19191a; border-right: 1px solid #303032; }
.settings-nav h1 { margin: 0 10px 25px; font-size: 19px; font-weight: 500; letter-spacing: -.4px; }
.settings-tabs { display: flex; flex-direction: column; gap: 4px; }
.billing-plan { margin-top: 6px; padding: 23px; border: 1px solid #414544; border-radius: 12px; background: linear-gradient(135deg, #27312a40, #262627); }
.billing-plan-heading { display: flex; align-items: center; justify-content: space-between; color: #e3e8e5; font-family: var(--font-display); font-size: 19px; }
.billing-plan-label { padding: 4px 6px; border: 1px solid #4b5f52; border-radius: 5px; color: #acbfb2; font: 8px var(--font-body); letter-spacing: 1px; }
.billing-price { display: flex; align-items: baseline; gap: 9px; margin: 17px 0 4px; }
.billing-price strong { font: 400 48px/1 var(--font-display); letter-spacing: -2px; color: #f0f2f1; }
.billing-price span { color: #a9b3ad; font-size: 12px; }
.billing-scope { color: #c2cdc6; font-size: 12px; margin: 12px 0 14px; }
.billing-features { list-style: none; margin: 0; padding: 0 0 16px; color: #aaaeb0; font-size: 11px; line-height: 1.8; }
.billing-features li { padding-left: 18px; position: relative; margin-top: 5px; }
.billing-features li::before { content: '✓'; position: absolute; left: 0; color: #83bc9c; }
.billing-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #3e4540; padding-top: 15px; font-size: 11px; color: #969e99; }
.billing-current strong { color: #d5d8d6; font-weight: 500; }
.billing-current .is-active { color: #91d6ad; }
.billing-period { margin: 6px 0 16px; color: #959d98; font-size: 10px; }
.billing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.billing-actions button { border: 1px solid #cfdcd4; border-radius: 7px; background: #dbe8df; color: #18271e; padding: 9px 12px; font-size: 11px; font-weight: 500; transition: background-color 150ms ease; }
.billing-actions button:hover { background: #eef7f1; }
.billing-actions button:disabled { opacity: .45; cursor: not-allowed; }
.billing-actions #billingManage { background: transparent; color: #c4d0c8; border-color: #59635c; }
.billing-actions #billingManage:hover { background: #354138; }
.billing-config-note { margin: 12px 0 0; color: #b1a793; font-size: 10px; line-height: 1.6; }
.billing-bottom { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin: 16px 1px 0; }
.billing-bottom p { max-width: 300px; color: #898f8b; font-size: 10px; line-height: 1.7; margin: 0; }
.billing-bottom button { flex-shrink: 0; background: none; border: 0; padding: 2px 0; color: #abb9af; font-size: 10px; }
.billing-bottom button:disabled { opacity: .4; }
.billing-notice { padding: 10px 12px; margin-bottom: 13px; color: #badbc7; background: #203129; border: 1px solid #3f5d4a; border-radius: 8px; font-size: 11px; line-height: 1.6; }
.billing-notice.is-error { background: #38272a; color: #edb6be; border-color: #6d434a; }
.settings-tabs button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 9px 11px; border: 0; border-radius: 8px; color: #b4b4b8; background: transparent; text-align: left; font-size: 12px; transition: background-color 160ms ease, color 160ms ease; }
.settings-tabs button:hover { background: #242425; color: #ececee; }
.settings-tabs button[aria-selected=true] { background: #303031; color: #f3f3f4; }
.settings-tabs svg { width: 18px; height: 18px; flex-shrink: 0; }
.settings-page .settings-back { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 10px 0; color: #929296; font-size: 11px; }
.settings-page .settings-back:hover { color: #e0e0e2; text-decoration: none; }
.settings-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 16px 28px; flex-shrink: 0; }
.settings-page .settings-heading h2 { margin: 0; color: #f1f1f2; font-size: 21px; font-weight: 500; letter-spacing: -.3px; }
.settings-page .settings-close { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; color: #bdbdc1; border-radius: 50%; transition: background-color 150ms ease, color 150ms ease; }
.settings-page .settings-close:hover { color: #fff; background: #343436; }
#settingsForm { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.settings-scroll { padding: 0 28px 24px; flex: 1; min-height: 0; overflow: auto; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 24px; min-height: 96px; padding: 20px 0; border-top: 1px solid #363638; }
.settings-label { min-width: 0; }
.settings-page .settings-label label, .settings-page .settings-label h3 { margin: 0; color: #e4e4e7; font: 400 13px/1.5 var(--font-body); }
.settings-label p { margin: 5px 0 0; color: #96969c; font-size: 11px; line-height: 1.6; }
.settings-page .settings-row input, .settings-page .settings-row select { width: 100%; min-width: 0; height: 36px; padding: 7px 10px; border: 1px solid #454548; border-radius: 7px; background: #262627; color: #e5e5e7; font-size: 12px; transition: border-color 150ms ease, background-color 150ms ease; }
.settings-page .settings-row input:hover, .settings-page .settings-row select:hover { border-color: #656569; }
.settings-page .settings-row input:focus, .settings-page .settings-row select:focus { border-color: #929297; box-shadow: 0 0 0 2px #ffffff0a; }
.settings-page .settings-row input[readonly] { border-color: transparent; background: transparent; color: #b9b9bf; text-align: right; text-overflow: ellipsis; padding-right: 0; }
.settings-page .settings-action { justify-self: end; padding: 8px 12px; border: 1px solid #4c4c50; border-radius: 8px; color: #e2e2e5; font-size: 11px; line-height: 1.4; transition: background-color 150ms ease, border-color 150ms ease; }
.settings-page .settings-action:hover { background: #303032; border-color: #6a6a70; text-decoration: none; }
.settings-page .settings-signout { color: #ed989e; border-color: #704145; }
.settings-page .settings-signout:hover { background: #3c2629; border-color: #9b5a60; }
.settings-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 17px 28px; border-top: 1px solid #363638; }
#settingsSaveStatus { color: #96969b; font-size: 11px; line-height: 1.5; }
.settings-save { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; flex-shrink: 0; padding: 8px 14px; border: 1px solid #e7e7e9; border-radius: 8px; background: #e7e7e9; color: #202022; font-size: 12px; font-weight: 500; transition: background-color 150ms ease, opacity 150ms ease; }
.settings-save:hover { background: #fff; }
.settings-save:disabled { opacity: .55; cursor: wait; }
.settings-notice { flex-shrink: 0; padding: 0 28px; }
.settings-notice:has([hidden]), .settings-notice:empty { display: none; }
.settings-notice .account-message { padding: 9px 11px; margin-bottom: 14px; border-radius: 8px; font-size: 11px; }
.settings-retry { margin-left: 10px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; }
.auth-notice { position: fixed; top: 20px; left: 50%; z-index: 1200; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 14px 14px 16px; border: 1px solid #365345; border-radius: 12px; background: #15211bea; color: #cce5d6; box-shadow: 0 8px 35px #0005; backdrop-filter: blur(14px); transform: translateX(-50%); animation: auth-notice-in 220ms cubic-bezier(.22,1,.36,1) both; }
.auth-notice-icon { display: flex; flex-shrink: 0; color: #82d2a6; }
.auth-notice strong { display: block; font-size: 12px; font-weight: 550; }
.auth-notice p { margin: 3px 0 0; font-size: 11px; line-height: 1.5; color: #a8bfb2; }
.auth-notice button { display: grid; place-items: center; align-self: flex-start; flex-shrink: 0; width: 26px; height: 26px; margin-left: 8px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #94ad9e; transition: background-color 150ms ease; }
.auth-notice button:hover { background: #ffffff0a; color: #e5f3eb; }
@keyframes auth-notice-in { from { opacity: 0; translate: 0 -7px; } to { opacity: 1; translate: 0 0; } }
[data-settings-panel]:not([hidden]) { animation: settings-panel-in 160ms ease-out; }
@keyframes settings-arrive { from { opacity: 0; transform: translateY(6px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes settings-panel-in { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media(max-width: 640px) {
  .settings-page { padding: 16px; }
  .settings-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 32px); min-height: 360px; border-radius: 14px; }
  .settings-nav { padding: 10px; border-right: 0; border-bottom: 1px solid #363638; }
  .settings-nav h1, .settings-page .settings-back { display: none; }
  .settings-tabs { flex-direction: row; gap: 3px; overflow-x: auto; }
  .settings-tabs button { justify-content: center; width: auto; flex: 0 0 auto; gap: 6px; padding: 9px 10px; white-space: nowrap; font-size: 11px; }
  .settings-tabs svg { width: 16px; height: 16px; }
  .settings-heading { padding: 16px 16px 14px 20px; }
  .settings-page .settings-heading h2 { font-size: 20px; }
  .settings-scroll { padding: 0 20px 20px; }
  .settings-row { display: flex; align-items: stretch; flex-direction: column; gap: 12px; padding: 18px 0; }
  .settings-page .settings-row input[readonly] { text-align: left; padding-left: 0; }
  .settings-page .settings-action { align-self: flex-start; }
  .settings-form-footer { padding: 15px 20px; gap: 10px; }
  #settingsSaveStatus { font-size: 10px; }
  .settings-save { padding-inline: 11px; font-size: 11px; }
  .settings-notice { padding: 0 20px; }
  .billing-plan { padding: 18px; }
  .billing-bottom { flex-direction: column; gap: 10px; }
}
@media(prefers-reduced-motion: reduce) {
  .settings-shell, [data-settings-panel]:not([hidden]) { animation: none; }
  .settings-tabs button, .settings-close, .settings-page .settings-row input, .settings-page .settings-row select, .settings-action, .settings-save { transition: none; }
}
