:root {
  --canvas: #fafaf9;
  --surface: #ffffff;
  --sidebar: #e8f1f4;
  --selected: #eceae6;
  --hover: #f2f0ed;
  --line: #e7e4e0;
  --line-soft: #f0eeea;
  --ink: #161514;
  --ink-body: #3f3b37;
  --ink-2: #6e6a66;
  --ink-3: #9b9690;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e6edfd;
  --teal: #087c78;
  --teal-soft: #e4f5f2;
  --green: #2e9e5b;
  --green-soft: #e6f4ec;
  --amber: #b97d10;
  --amber-soft: #fbeedc;
  --red: #c03e3e;
  --red-soft: #fbebea;
  --shadow: 0 16px 40px rgba(37, 33, 28, 0.07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .26);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared account entry pages */
.account-nav {
  width: min(1120px, calc(100% - 32px));
  height: 58px;
  margin: 16px auto 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 26px rgba(37, 33, 28, .05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 680; letter-spacing: -.015em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 12px; color: var(--ink-2); border-radius: 9px; font-size: 13px; }
.nav-link:hover { color: var(--ink); background: var(--hover); }

.auth-shell {
  width: min(1120px, 100%);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 470px);
  align-items: center;
  gap: clamp(48px, 9vw, 112px);
}
.auth-copy { max-width: 540px; }
.eyebrow,
.section-label,
.meta-label {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent); }
.auth-copy h1 { margin: 15px 0 0; max-width: 9ch; font-size: clamp(45px, 6.2vw, 74px); line-height: .99; letter-spacing: -.055em; }
.auth-copy > p:not(.eyebrow) { margin: 24px 0 0; max-width: 31rem; color: var(--ink-2); font-size: 18px; line-height: 1.58; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.trust-row span { padding: 8px 11px; border: 1px solid #d6e4e8; border-radius: 999px; color: #37545f; background: var(--sidebar); font-size: 12px; }

.auth-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.card-intro { margin: 9px 0 26px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { color: var(--ink-body); font-size: 13px; font-weight: 620; }
.field input,
.redeem-form input,
.support-compose input,
.delete-confirm input {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid #d8d4ce;
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.redeem-form input:focus,
.support-compose input:focus,
.delete-confirm input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 19px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.check-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.check-row a,
.inline-link,
.text-link { color: var(--accent); }
.primary-button,
.action-button,
.download-button,
.support-compose button {
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 660;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.primary-button { width: 100%; min-height: 49px; }
.primary-button:hover,
.action-button:hover,
.download-button:hover,
.support-compose button:hover { background: var(--accent-hover); }
.primary-button:active,
.action-button:active,
.download-button:active,
.support-compose button:active { transform: translateY(1px); }
.primary-button:disabled,
.action-button:disabled { opacity: .5; cursor: wait; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.form-message.error,
.billing-message.error { color: var(--red); }
.form-message.success { color: var(--green); }
.auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 13px; }
.code-input { letter-spacing: .2em; text-transform: uppercase; font-weight: 680; }
.resend-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 15px; color: var(--ink-2); font-size: 12.5px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); }

.auth-reset-disclosure { margin-top: 14px; padding-top: 4px; }
.auth-reset-disclosure > summary { width: fit-content; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.auth-reset-disclosure > summary:hover { color: var(--ink); }
.auth-reset-disclosure .password-reset-flow { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.auth-reset-disclosure .compact-field { margin-bottom: 13px; }
.auth-reset-disclosure .reset-resend-login { margin-top: 15px; }

/* Dashboard shell and taskbar */
body[data-page="dashboard"] { min-height: 100dvh; background: var(--canvas); }
.dashboard-frame { min-height: 100dvh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.dashboard-taskbar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d6e4e8;
  background: var(--sidebar);
}
.taskbar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 23px; color: #242424; }
.taskbar-brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 13px rgba(31, 55, 63, .12); }
.taskbar-brand > span { min-width: 0; display: grid; gap: 1px; }
.taskbar-brand strong { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.taskbar-brand small { color: #6f858c; font-size: 10.5px; }
.taskbar-nav { display: grid; gap: 4px; }
.taskbar-label { margin: 6px 10px 7px; color: #74878e; font-size: 10px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.taskbar-label-secondary { margin-top: 20px; }
.taskbar-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #526970;
  text-align: left;
  font-size: 13px;
  font-weight: 540;
}
.taskbar-item:hover { background: rgba(37, 99, 235, .05); color: #242424; }
.taskbar-item.is-active { border-color: rgba(37, 99, 235, .12); background: var(--accent-soft); color: #242424; font-weight: 650; }
.taskbar-footer { margin-top: auto; display: grid; gap: 8px; }
.taskbar-account { min-width: 0; padding: 11px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .72); }
.taskbar-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.taskbar-account > span:last-child { min-width: 0; display: grid; gap: 2px; }
.taskbar-account strong,
.taskbar-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskbar-account strong { color: var(--ink-body); font-size: 11.5px; font-weight: 650; }
.taskbar-account small { color: var(--ink-3); font-size: 9.5px; }
.taskbar-footer-actions { display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.taskbar-footer-actions a,
.taskbar-footer-actions button { min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #526970; font-size: 10.5px; }
.taskbar-footer-actions a { display: flex; align-items: center; }
.taskbar-footer-actions a:hover,
.taskbar-footer-actions button:hover { color: #242424; background: rgba(255, 255, 255, .42); }

.dashboard-shell { width: min(1160px, 100%); min-width: 0; margin: 0 auto; padding: 35px clamp(24px, 4vw, 54px) 26px; }
.dashboard-panel { min-height: calc(100dvh - 128px); }
.dashboard-page-header { margin-bottom: 23px; }
.dashboard-page-header h1 { margin: 0; font-size: clamp(28px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.dashboard-page-header > p { max-width: 42rem; margin: 6px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.dashboard-surface { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 8px 24px rgba(37, 33, 28, .045); }

.dashboard-alert { margin-bottom: 22px; padding: 13px 15px; border: 1px solid #bcdcc9; border-radius: 10px; background: var(--green-soft); color: #226e42; font-size: 13px; }
.dashboard-alert.error { border-color: #efc7c7; background: var(--red-soft); color: #993333; }

/* Overview */
.profile-summary { min-height: 132px; padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid #cadde2; border-radius: 15px; background: var(--sidebar); color: #315c69; font-size: 19px; font-weight: 680; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity h2 { margin: 0 0 3px; font-size: clamp(23px, 2.8vw, 29px); letter-spacing: -.032em; }
.profile-identity > p:last-child { margin: 0; color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.profile-plan { min-width: 134px; display: grid; justify-items: end; gap: 9px; }
.profile-plan span { color: var(--ink-3); font-size: 11px; }
.profile-plan strong { padding: 7px 11px; border-radius: 8px; color: #174c49; background: var(--teal-soft); font-size: 13px; }

.overview-workspace { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px; }
.membership-snapshot { min-height: 386px; padding: 25px; display: flex; flex-direction: column; }
.snapshot-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.snapshot-heading span,
.snapshot-allowance span,
.snapshot-route-row span,
.quick-route > span { color: var(--ink-3); font-size: 10.5px; font-weight: 570; }
.snapshot-heading h3 { margin: 5px 0 0; font-size: 24px; font-weight: 570; letter-spacing: -.028em; }
.snapshot-heading h3 strong { font-weight: 700; }
.snapshot-heading .text-button { min-height: 32px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; }
.snapshot-heading .text-button:hover { background: var(--accent-soft); }
.snapshot-allowance { margin-top: 29px; padding: 22px; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); align-items: end; gap: 24px; border: 1px solid #c7e2de; border-radius: 12px; background: var(--teal-soft); }
.snapshot-allowance strong { display: block; margin-top: 6px; color: var(--teal); font-size: clamp(30px, 4vw, 43px); line-height: 1; letter-spacing: -.045em; }
.snapshot-allowance p { margin: 0 0 2px; color: #4f7774; font-size: 11.5px; line-height: 1.5; }
.snapshot-route-row { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.snapshot-route-row button { min-height: 78px; padding: 14px 17px; display: grid; align-content: center; justify-items: start; gap: 6px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.snapshot-route-row button:last-child { border-right: 0; }
.snapshot-route-row button:hover { background: var(--hover); }
.snapshot-route-row strong { font-size: 13px; font-weight: 650; }
.overview-quick-stack { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-route { min-width: 0; padding: 18px 19px; display: grid; align-content: center; justify-items: start; gap: 5px; color: var(--ink); text-align: left; }
button.quick-route { width: 100%; }
.quick-route:hover { border-color: #c7c2bb; background: var(--hover); transform: translateY(-1px); }
.quick-route:active { transform: translateY(0); }
.quick-route strong { font-size: 14px; font-weight: 650; }
.quick-route small { color: var(--ink-2); font-size: 10.5px; }
.quick-route-download { border-color: #cfe0e4; background: var(--sidebar); }
.quick-route-support { border-color: #c7e2de; background: var(--teal-soft); }
.quick-route-guide { background: #f7f6f4; }

/* Membership */
.subscription-card { padding: clamp(24px, 3.2vw, 34px); }
.subscription-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.membership-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.membership-title-row h2 { margin: 0; font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -.035em; }
.membership-status { padding: 6px 9px; border-radius: 7px; color: #226e42; background: var(--green-soft); font-size: 11px; font-weight: 680; text-transform: capitalize; }
.subscription-heading > div:first-child > p:last-child { max-width: 40rem; margin: 9px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.membership-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.action-button { padding: 0 15px; font-size: 12.5px; white-space: nowrap; }
.action-button.secondary { border-color: #d6d2cc; background: var(--surface); color: var(--ink-body); }
.action-button.secondary:hover { border-color: #c7c2bb; background: var(--hover); }
.action-button:disabled { cursor: not-allowed; }
.subscription-grid { margin-top: 29px; padding: 27px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subscription-details { align-self: center; }
.detail-row { padding: 10px 0; display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); gap: 18px; border-bottom: 1px solid var(--line-soft); }
.detail-row span { color: var(--ink-2); font-size: 12px; }
.detail-row strong { color: var(--ink-body); font-size: 12.5px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.detail-note { margin: 12px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.45; }
.redemption-row { padding-top: 27px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); align-items: center; gap: 38px; }
.redemption-row h3 { margin: 7px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.redemption-row > div > p:last-child { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.redeem-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.redeem-form input { min-height: 43px; text-transform: uppercase; }
.redeem-form .form-message { grid-column: 1 / -1; margin: 1px 0 0; }

.plans-section { margin-top: 36px; }
.section-heading { max-width: 700px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.section-copy { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.plan-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.plan-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan-group-head { padding: 19px 20px 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: #f7f6f4; }
.subscription-group .plan-group-head { background: var(--accent-soft); }
.plan-group-head h3,
.plan-group-head p { margin: 0; }
.plan-group-head h3 { font-size: 15px; }
.plan-group-head p { color: var(--ink-3); font-size: 11px; }
.plan-row { min-height: 108px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-soft); }
.plan-row:last-child { border-bottom: 0; }
.plan-row.recommended { background: #f7f9ff; }
.plan-name,
.plan-desc,
.plan-price { margin: 0; }
.plan-name { font-size: 14px; font-weight: 680; }
.plan-recommendation { margin-left: 6px; color: var(--accent); font-size: 10.5px; }
.plan-desc { margin-top: 5px; color: var(--ink-2); font-size: 11.5px; line-height: 1.45; }
.plan-buy { display: grid; justify-items: end; gap: 9px; }
.plan-price { font-size: 20px; font-weight: 720; letter-spacing: -.035em; white-space: nowrap; }
.plan-price small { color: var(--ink-3); font-size: 10.5px; font-weight: 520; }
.billing-message { min-height: 20px; margin: 12px 2px 0; color: var(--ink-2); font-size: 12.5px; }

/* Security */
.security-card { padding: clamp(24px, 3.2vw, 34px); }
.tool-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.security-disclosure { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security-disclosure > summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; }
.security-disclosure > summary::-webkit-details-marker { display: none; }
.security-disclosure > summary > span:first-child { display: grid; gap: 5px; }
.security-disclosure > summary strong,
.security-row strong,
.danger-zone strong { color: var(--ink-body); font-size: 13px; }
.security-disclosure > summary small,
.security-row p,
.danger-zone p { margin: 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.45; }
.security-disclosure > summary > span:last-child { color: var(--accent); font-size: 11px; }
.security-disclosure[open] > summary > span:last-child { color: var(--ink-3); }
.security-disclosure .password-reset-flow { padding: 3px 0 21px; }
.compact-field { margin-bottom: 13px; }
.compact-field label { display: grid; gap: 7px; }
.compact-field input { min-height: 43px; }
.reset-fields { display: grid; grid-template-columns: .75fr 1fr 1fr; gap: 10px; }
.reset-actions { display: flex; align-items: center; gap: 17px; }
.security-row,
.danger-zone { min-height: 87px; padding: 19px 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.security-row > div,
.danger-zone > div { display: grid; gap: 5px; }
.danger-zone { border-bottom: 0; }
.danger-button { min-height: 40px; padding: 0 13px; border: 1px solid #e5abab; border-radius: 9px; color: #a63232; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
.danger-button:hover { background: var(--red-soft); }
.danger-button:disabled { opacity: .44; cursor: not-allowed; }
.delete-confirm { padding: 17px; border: 1px solid #efc7c7; border-radius: 11px; background: var(--red-soft); }
.delete-confirm > label { display: block; margin-bottom: 10px; color: #8f4d4d; font-size: 12px; }
.delete-confirm > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.delete-confirm > .text-button { margin-top: 11px; }
.delete-confirm .form-message { margin-bottom: 0; }

/* Download */
.download-card { min-height: 320px; padding: clamp(27px, 4vw, 42px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 48px); border-color: #cfe0e4; background: var(--sidebar); box-shadow: none; }
.download-mark { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border: 1px solid #c4d9df; border-radius: 22px; background: rgba(255, 255, 255, .65); }
.download-mark img { width: 66px; height: 66px; border-radius: 15px; box-shadow: 0 8px 22px rgba(31, 55, 63, .13); }
.download-copy h2 { margin: 0 0 7px; font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -.04em; }
.download-copy > p:last-child { max-width: 34rem; margin: 0; color: #526970; font-size: 13px; line-height: 1.55; }
.download-button { min-height: 47px; padding: 0 18px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; text-align: center; }
.download-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 18px; margin-top: -20px; }
.download-links a,
.text-link { color: var(--accent); font-size: 12.5px; font-weight: 640; }
.download-links a:hover,
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.start-steps { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.start-steps > div { min-height: 136px; padding: 22px; border-right: 1px solid var(--line); }
.start-steps > div:last-child { border-right: 0; }
.start-steps span { color: var(--accent); font-size: 10px; font-weight: 700; }
.start-steps strong { display: block; font-size: 14px; }
.start-steps p { margin: 6px 0 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.45; }

/* Support */
.support-card { padding: clamp(24px, 3.2vw, 34px); }
.support-layout { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.support-intro h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.support-intro p:not(.section-label) { margin: 12px 0 21px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.support-workspace { min-width: 0; }
.support-log { height: 380px; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f6f4; }
.support-message { max-width: min(82%, 600px); padding: 11px 13px; border-radius: 11px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message.user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--accent); color: #fff; }
.support-message.assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--surface); color: var(--ink-body); }
.support-compose { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 9px; }
.support-compose input { min-height: 46px; }
.support-compose button { font-size: 12.5px; }
.support-compose button:disabled { opacity: .55; cursor: wait; }
.support-note { margin: 9px 2px 0; color: var(--ink-3); font-size: 10.5px; line-height: 1.4; }

.account-footer { min-height: 44px; margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--ink-3); font-size: 11px; }
.account-footer a:hover { color: var(--ink); }

.dashboard-loading :is(#profile-plan-badge, #overview-plan, #overview-shared, #shared-flow-usage, #session-device-name, #session-device-detail) {
  color: transparent !important;
  border-radius: 6px;
  background: #e8e5e1;
  animation: loading-pulse 1.1s ease-in-out infinite alternate;
}
.dashboard-loading #profile-plan-badge { width: 68px; }
.dashboard-loading #overview-plan,
.dashboard-loading #overview-shared { width: 94px; }
.dashboard-loading #shared-flow-usage { width: 95px; justify-self: end; }
.dashboard-loading #session-device-name { width: 150px; }
.dashboard-loading #session-device-detail { width: 215px; }

@keyframes loading-pulse { to { opacity: .52; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: no-preference) {
  .dashboard-panel:not([hidden]) { animation: panel-enter .3s cubic-bezier(.16, 1, .3, 1) both; }
}

@media (max-width: 1040px) {
  .dashboard-frame { grid-template-columns: 218px minmax(0, 1fr); }
  .dashboard-taskbar { padding-inline: 12px; }
  .dashboard-shell { padding-inline: 28px; }
  .overview-workspace { grid-template-columns: 1fr; }
  .overview-quick-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .subscription-grid,
  .redemption-row { gap: 25px; }
  .plan-columns { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: auto minmax(0, 1fr); }
  .download-button { grid-column: 2; justify-self: start; }
  .download-links { grid-column: 2; margin-top: -10px; }
}

@media (max-width: 820px) {
  .dashboard-frame { display: block; }
  .dashboard-taskbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    height: auto;
    padding: 10px 14px 9px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid #d6e4e8;
  }
  .taskbar-brand { padding: 0; }
  .taskbar-brand img { width: 30px; height: 30px; }
  .taskbar-brand > span { display: none; }
  .taskbar-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .taskbar-nav::-webkit-scrollbar { display: none; }
  .taskbar-label { display: none; }
  .taskbar-item { width: auto; min-width: max-content; min-height: 38px; padding: 0 11px; }
  .taskbar-footer { margin: 0; }
  .taskbar-account,
  .taskbar-footer-actions a { display: none; }
  .taskbar-footer-actions { display: block; }
  .taskbar-footer-actions button { min-height: 36px; padding: 0 9px; text-align: center; }
  .dashboard-shell { width: 100%; padding: 30px 22px 22px; }
  .dashboard-panel { min-height: calc(100dvh - 155px); }
  .support-layout { grid-template-columns: 1fr; }
  .subscription-grid,
  .redemption-row { grid-template-columns: 1fr; }
  .reset-fields { grid-template-columns: 1fr; }
  .download-card { min-height: 0; }
}

@media (max-width: 620px) {
  .account-nav { width: calc(100% - 22px); margin-top: 11px; }
  .support-link { display: none; }
  .auth-shell { padding: 42px 18px 58px; grid-template-columns: 1fr; gap: 34px; }
  .auth-copy h1 { font-size: 45px; }
  .auth-copy > p:not(.eyebrow) { font-size: 16px; }
  .auth-card { padding: 25px 21px; }

  .dashboard-taskbar { padding-inline: 10px; gap: 8px; }
  .taskbar-footer-actions button { font-size: 11px; }
  .dashboard-shell { padding: 24px 14px 18px; }
  .dashboard-page-header { margin-bottom: 21px; }
  .dashboard-page-header h1 { font-size: 28px; }
  .profile-summary { grid-template-columns: auto minmax(0, 1fr); gap: 15px; padding: 21px 18px; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 14px; font-size: 18px; }
  .profile-identity h2 { font-size: 22px; }
  .profile-plan { grid-column: 1 / -1; width: 100%; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
  .membership-snapshot { min-height: 0; padding: 21px 18px; }
  .snapshot-allowance { margin-top: 22px; grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .snapshot-route-row { margin-top: 18px; grid-template-columns: 1fr; }
  .snapshot-route-row button { border-right: 0; border-bottom: 1px solid var(--line); }
  .snapshot-route-row button:last-child { border-bottom: 0; }
  .overview-quick-stack,
  .start-steps { grid-template-columns: 1fr; }
  .quick-route { min-height: 104px; }
  .start-steps > div { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--line); }
  .start-steps > div:last-child { border-bottom: 0; }
  .subscription-card,
  .security-card,
  .support-card { padding: 22px 18px; }
  .subscription-heading { display: grid; gap: 17px; }
  .membership-actions { justify-content: stretch; }
  .membership-actions .action-button { flex: 1; }
  .subscription-grid { padding-block: 22px; }
  .detail-row { grid-template-columns: 1fr; gap: 5px; }
  .detail-row strong { text-align: left; }
  .redemption-row { padding-top: 22px; }
  .redeem-form { grid-template-columns: 1fr; }
  .redeem-form .form-message { grid-column: auto; }
  .plan-row { grid-template-columns: 1fr; }
  .plan-buy { justify-items: start; }
  .security-row,
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .security-row .action-button,
  .danger-zone .danger-button { width: 100%; }
  .reset-actions { align-items: stretch; flex-direction: column; }
  .delete-confirm > div { grid-template-columns: 1fr; }
  .download-card { padding: 24px 19px; grid-template-columns: 1fr; gap: 22px; }
  .download-mark { width: 72px; height: 72px; border-radius: 17px; }
  .download-button,
  .download-links { grid-column: 1; margin-top: 0; }
  .support-log { height: 330px; }
  .support-compose { grid-template-columns: minmax(0, 1fr) 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .account-nav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Account dashboard redesign: top workspace navigation, asymmetric content */
body[data-page="dashboard"] { min-height: 100dvh; background: #f7f8f7; }
.account-workbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #d9e3e5;
  background: rgba(247, 248, 247, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.workbar-inner {
  width: min(1440px, 100%);
  height: 72px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}
.workbar-brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.workbar-brand img { width: 35px; height: 35px; border-radius: 9px; box-shadow: 0 5px 15px rgba(31, 55, 63, .12); }
.workbar-brand span { display: grid; gap: 1px; }
.workbar-brand strong { font-size: 14px; letter-spacing: -.015em; }
.workbar-brand small { color: #71858c; font-size: 9.5px; }
.workbar-tabs { min-width: 0; display: flex; align-items: center; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.workbar-tabs::-webkit-scrollbar { display: none; }
.workbar-tab {
  min-width: max-content;
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6f74;
  font-size: 11.5px;
  font-weight: 590;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.workbar-tab:hover { color: var(--ink); background: #edf1f1; }
.workbar-tab.is-active { color: #174b58; background: #e5eff2; font-weight: 680; }
.workbar-tab:active { transform: translateY(1px); }
.workbar-account { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 150px) auto; align-items: center; gap: 9px; }
.workbar-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 750; }
.workbar-identity { min-width: 0; display: grid; gap: 1px; }
.workbar-identity strong,
.workbar-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbar-identity strong { font-size: 10.5px; }
.workbar-identity small { color: var(--ink-3); font-size: 9px; }
.workbar-account > button { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 10.5px; }
.workbar-account > button:hover { color: var(--ink); background: var(--hover); }

body[data-page="dashboard"] .dashboard-shell { width: min(1240px, 100%); margin: 0 auto; padding: 52px clamp(22px, 4.5vw, 68px) 28px; }
body[data-page="dashboard"] .dashboard-panel { min-height: calc(100dvh - 190px); }
body[data-page="dashboard"] .dashboard-page-header { max-width: 760px; margin-bottom: 32px; }
body[data-page="dashboard"] .dashboard-page-header > p { margin: 0 0 9px; color: #47717d; font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
body[data-page="dashboard"] .dashboard-page-header h1 { margin: 0; max-width: 19ch; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.052em; }
body[data-page="dashboard"] .dashboard-page-header > span { display: block; max-width: 54ch; margin-top: 13px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
body[data-page="dashboard"] .overview-header { margin-bottom: 28px; }
body[data-page="dashboard"] .overview-header h1 { max-width: 15ch; }
body[data-page="dashboard"] .dashboard-alert { position: relative; margin: -20px 0 28px; padding: 13px 15px; border-radius: 10px; }

.account-identity-band {
  min-height: 116px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #d9e3e5;
  border-bottom: 1px solid #d9e3e5;
}
body[data-page="dashboard"] .profile-avatar { width: 68px; height: 68px; border-color: #c8dce1; border-radius: 16px; background: var(--sidebar); color: #315c69; }
body[data-page="dashboard"] .profile-identity h2 { margin: 0 0 4px; font-size: clamp(22px, 2.7vw, 30px); letter-spacing: -.034em; }
body[data-page="dashboard"] .profile-identity p { margin: 0; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
body[data-page="dashboard"] .profile-plan { min-width: 132px; display: grid; justify-items: end; gap: 8px; }
body[data-page="dashboard"] .profile-plan span { color: var(--ink-3); font-size: 10.5px; }
body[data-page="dashboard"] .profile-plan strong { padding: 7px 11px; border-radius: 9px; background: var(--teal-soft); color: #174c49; font-size: 12px; }

.overview-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: 18px; }
.overview-plan-block,
.overview-invite-block,
.subscription-card,
.redemption-section,
.plan-group,
.billing-history,
.referral-primary,
.referral-summary,
.security-main,
.security-aside,
.download-hero,
.support-workspace { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.overview-plan-block { min-height: 360px; padding: clamp(24px, 3.6vw, 38px); display: flex; flex-direction: column; }
.block-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.block-heading p,
.overview-invite-block > div > p { margin: 0; color: var(--ink-3); font-size: 10.5px; }
.block-heading h2,
.overview-invite-block h2 { margin: 7px 0 0; font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.04em; }
.block-heading h2 span { color: var(--accent); }
.block-heading .text-button { min-height: 32px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; }
.block-heading .text-button:hover { background: var(--accent-soft); }
.overview-facts { margin: 37px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-facts div { padding: 18px 20px 18px 0; border-top: 1px solid var(--line); }
.overview-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.overview-facts dt { color: var(--ink-3); font-size: 10.5px; }
.overview-facts dd { margin: 8px 0 0; font-size: 15px; font-weight: 680; overflow-wrap: anywhere; }
.overview-route { width: 100%; min-height: 73px; margin-top: auto; padding: 15px 16px; display: grid; justify-items: start; gap: 5px; border: 1px solid #d5e1e4; border-radius: 12px; background: #f1f6f7; color: var(--ink); text-align: left; }
.overview-route:hover { background: #e8f1f4; }
.overview-route span { color: #6c8188; font-size: 10.5px; }
.overview-route strong { font-size: 13px; }
.overview-invite-block { min-height: 360px; padding: 28px; display: flex; flex-direction: column; border-color: #225bd5; background: var(--accent); color: #fff; }
.overview-invite-block > div > p { color: rgba(255, 255, 255, .68); }
.overview-invite-code { margin-top: 35px; font-size: clamp(18px, 2.7vw, 27px); font-weight: 760; letter-spacing: .055em; overflow-wrap: anywhere; }
.overview-invite-block > p { margin: 13px 0 22px; color: rgba(255, 255, 255, .76); font-size: 12px; line-height: 1.55; }
.light-button { min-height: 42px; margin-top: auto; padding: 0 15px; align-self: flex-start; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: #fff; color: #1644a3; font-weight: 680; font-size: 12px; }
.light-button:hover { background: #eef3ff; }
.overview-resources { margin-top: 18px; display: grid; grid-template-columns: 1.1fr 1.35fr .9fr; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.overview-resources > * { min-width: 0; min-height: 112px; padding: 20px 22px; display: grid; align-content: center; justify-items: start; gap: 5px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.overview-resources > *:last-child { border-right: 0; }
.overview-resources > *:hover { background: var(--hover); }
.overview-resources span { color: var(--ink-3); font-size: 10px; }
.overview-resources strong { font-size: 13px; }
.overview-resources small { color: var(--ink-2); font-size: 10.5px; }

.subscription-card { padding: clamp(26px, 4vw, 42px); display: grid; grid-template-columns: minmax(240px, .85fr) minmax(360px, 1.15fr); gap: 26px 56px; }
.subscription-lead { align-self: start; }
body[data-page="dashboard"] .membership-title-row { align-items: flex-start; display: grid; gap: 10px; }
body[data-page="dashboard"] .membership-title-row h2 { margin: 0; font-size: clamp(27px, 3.5vw, 40px); letter-spacing: -.045em; }
body[data-page="dashboard"] .membership-status { width: fit-content; padding: 6px 9px; border-radius: 8px; text-transform: capitalize; }
.subscription-lead > p { max-width: 34ch; margin: 17px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
body[data-page="dashboard"] .membership-actions { margin-top: 25px; justify-content: flex-start; }
body[data-page="dashboard"] .subscription-details { margin: 0; align-self: stretch; }
.subscription-details div { min-height: 70px; padding: 12px 0; display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.subscription-details div:last-child { border-bottom: 0; }
.subscription-details dt { color: var(--ink-2); font-size: 11.5px; }
.subscription-details dd { margin: 0; text-align: right; font-size: 12.5px; font-weight: 680; overflow-wrap: anywhere; }
.subscription-card > .detail-note { grid-column: 2; margin: -18px 0 0; }
.redemption-section { margin-top: 18px; padding: 27px 30px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 42px; background: #f1f6f7; border-color: #d0e0e4; }
.redemption-section h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.redemption-section > div > p { margin: 8px 0 0; color: #536b72; font-size: 12px; line-height: 1.5; }
body[data-page="dashboard"] .redeem-form { display: grid; grid-template-columns: 1fr; gap: 7px; }
.redeem-form > label { color: var(--ink-body); font-size: 11.5px; font-weight: 650; }
.redeem-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
body[data-page="dashboard"] .redeem-form .form-message { grid-column: auto; }
body[data-page="dashboard"] .plans-section { margin-top: 48px; }
body[data-page="dashboard"] .section-heading { max-width: 650px; margin-bottom: 18px; }
body[data-page="dashboard"] .section-heading h2 { font-size: 27px; }
body[data-page="dashboard"] .plan-columns { gap: 18px; }
body[data-page="dashboard"] .plan-group { box-shadow: none; }
body[data-page="dashboard"] .plan-group-head { padding: 18px 20px; }
body[data-page="dashboard"] .plan-row { min-height: 112px; }
.billing-history { margin-top: 48px; padding: clamp(24px, 3.5vw, 36px); }
.billing-history-state { min-height: 82px; display: grid; place-items: center; border: 1px dashed #d6d2cc; border-radius: 12px; color: var(--ink-2); font-size: 12px; text-align: center; }
.billing-table-wrap { overflow-x: auto; }
.billing-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.billing-table-wrap th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 10px; font-weight: 680; text-align: left; }
.billing-table-wrap td { padding: 15px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-body); }
.billing-table-wrap tr:last-child td { border-bottom: 0; }
.billing-table-wrap a { color: var(--accent); font-weight: 650; }
.invoice-status { text-transform: capitalize; }

.referral-loading { min-height: 270px; display: grid; place-items: center; border: 1px dashed #ccd7da; border-radius: 16px; color: var(--ink-2); }
.referral-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 18px; }
.referral-primary { min-height: 430px; padding: clamp(28px, 4vw, 44px); }
.referral-primary > p:first-child { margin: 0; color: var(--ink-3); font-size: 11px; }
.referral-primary > strong { display: block; margin: 34px 0 35px; color: var(--accent); font-size: clamp(27px, 5vw, 50px); letter-spacing: .07em; overflow-wrap: anywhere; }
.referral-primary > label { display: block; margin-bottom: 7px; color: var(--ink-body); font-size: 11.5px; font-weight: 650; }
.referral-primary > input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d8d4ce; border-radius: 10px; background: #f7f6f4; color: var(--ink-body); font-size: 12px; }
.referral-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 9px; }
.referral-summary { min-height: 430px; padding: 30px; display: flex; flex-direction: column; background: var(--sidebar); border-color: #cfe0e4; }
.referral-summary > div { padding: 19px 0; border-bottom: 1px solid #ccdde1; }
.referral-summary span { display: block; color: #637b82; font-size: 10.5px; }
.referral-summary strong { display: block; margin-top: 6px; color: #234f5a; font-size: 32px; letter-spacing: -.04em; }
.referral-summary > p { margin: auto 0 0; color: #526970; font-size: 12px; line-height: 1.6; }

.security-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 18px; align-items: start; }
.security-main { padding: clamp(26px, 4vw, 40px); }
.security-main > h2,
.preference-panel h2,
.data-panel h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
body[data-page="dashboard"] .security-disclosure { margin-top: 18px; }
.security-disclosure + .security-disclosure { margin-top: 0; border-top: 0; }
.security-disclosure .password-reset-flow,
.change-email-flow { padding: 4px 0 24px; }
.change-email-flow form { max-width: 560px; }
.change-email-flow form + form { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
body[data-page="dashboard"] .security-row { min-height: 92px; }
.login-activity { padding-top: 24px; }
.login-activity h3 { margin: 0 0 12px; font-size: 14px; }
.activity-list { display: grid; gap: 8px; }
.activity-list > p { margin: 0; padding: 14px; border-radius: 10px; background: #f7f6f4; color: var(--ink-2); font-size: 11.5px; }
.activity-entry { min-height: 62px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-radius: 10px; background: #f7f6f4; }
.activity-entry strong { display: block; font-size: 11.5px; }
.activity-entry span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 10.5px; }
.activity-entry time { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.security-aside { padding: 0; overflow: hidden; }
.preference-panel,
.data-panel,
body[data-page="dashboard"] .danger-zone,
body[data-page="dashboard"] .delete-confirm { padding: 26px; }
.preference-panel > p,
.data-panel > p { margin: 8px 0 19px; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.preference-panel > label { min-height: 65px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--line-soft); }
.preference-panel > label span { display: grid; gap: 3px; }
.preference-panel > label strong { font-size: 11.5px; }
.preference-panel > label small { color: var(--ink-2); font-size: 10px; line-height: 1.35; }
.preference-panel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.preference-panel > .action-button { margin-top: 15px; }
.data-panel { border-top: 1px solid var(--line); }
body[data-page="dashboard"] .danger-zone { min-height: 0; display: grid; align-items: start; gap: 16px; border-top: 1px solid var(--line); border-bottom: 0; }
body[data-page="dashboard"] .danger-zone .danger-button { justify-self: start; }
body[data-page="dashboard"] .delete-confirm { margin: 0; border-width: 1px 0 0; border-radius: 0; }

.download-hero { min-height: 350px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(26px, 5vw, 58px); background: var(--sidebar); border-color: #cfe0e4; }
body[data-page="dashboard"] .download-mark { width: 104px; height: 104px; }
body[data-page="dashboard"] .download-mark img { width: 76px; height: 76px; }
body[data-page="dashboard"] .download-copy h2 { max-width: 11ch; font-size: clamp(32px, 5vw, 52px); line-height: 1; }
body[data-page="dashboard"] .download-copy p { max-width: 40ch; margin-top: 13px; font-size: 13px; }
body[data-page="dashboard"] .download-button { max-width: 230px; }
.download-notes { margin-top: 18px; display: grid; grid-template-columns: 1.15fr .9fr .95fr; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.download-notes > div { min-height: 126px; padding: 24px; border-right: 1px solid var(--line); }
.download-notes > div:last-child { border-right: 0; }
.download-notes strong { font-size: 13px; }
.download-notes p { margin: 7px 0 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
body[data-page="dashboard"] .download-links { margin: 18px 0 0; display: flex; gap: 20px; }

body[data-page="dashboard"] .support-workspace { min-height: 540px; padding: clamp(25px, 4vw, 42px); display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: clamp(30px, 6vw, 78px); }
.support-intro h2 { font-size: clamp(27px, 4vw, 40px); }
.support-chat { min-width: 0; }
body[data-page="dashboard"] .support-log { height: 390px; }

.optional-label { margin-left: 5px; color: var(--ink-3); font-size: 10px; font-weight: 520; }
body[data-page="dashboard"] .account-footer { margin-top: 54px; }
.dashboard-loading :is(#profile-plan-badge, #overview-plan, #overview-shared, #overview-membership-end, #shared-flow-usage, #session-device-name, #session-device-detail) { color: transparent !important; border-radius: 6px; background: #e4e9e9; animation: loading-pulse 1.1s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: no-preference) {
  body[data-page="dashboard"] .dashboard-panel:not([hidden]) { animation: panel-enter .32s cubic-bezier(.16, 1, .3, 1) both; }
}

@media (max-width: 1120px) {
  .workbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .workbar-identity { display: none; }
  .workbar-account { grid-template-columns: 32px auto; }
  .overview-layout,
  .referral-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
  .subscription-card { gap: 24px 36px; }
  .security-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
  .download-hero { grid-template-columns: auto minmax(0, 1fr); }
  body[data-page="dashboard"] .download-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .workbar-inner { height: auto; min-height: 70px; padding-top: 9px; padding-bottom: 8px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .workbar-brand span { display: none; }
  .workbar-account .workbar-avatar { display: none; }
  .workbar-account { display: block; }
  body[data-page="dashboard"] .dashboard-shell { padding-top: 38px; }
  .overview-layout,
  .referral-workspace,
  .security-layout { grid-template-columns: 1fr; }
  .overview-invite-block,
  .referral-summary { min-height: 300px; }
  .overview-resources { grid-template-columns: 1fr 1fr; }
  .overview-resources > * { border-bottom: 1px solid var(--line); }
  .overview-resources > *:nth-child(2) { border-right: 0; }
  .overview-resources > *:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .subscription-card,
  .redemption-section { grid-template-columns: 1fr; }
  .subscription-card > .detail-note { grid-column: 1; margin-top: -14px; }
  body[data-page="dashboard"] .plan-columns { grid-template-columns: 1fr; }
  .security-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .preference-panel { grid-row: span 2; }
  .data-panel { border-top: 0; border-left: 1px solid var(--line); }
  body[data-page="dashboard"] .danger-zone { border-left: 1px solid var(--line); }
  body[data-page="dashboard"] .delete-confirm { grid-column: 1 / -1; }
  body[data-page="dashboard"] .support-workspace { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 620px) {
  .account-workbar { position: sticky; }
  .workbar-inner { padding: 9px 11px 8px; gap: 7px 9px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .workbar-brand img { width: 31px; height: 31px; }
  .workbar-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; padding-top: 2px; }
  .workbar-account { grid-column: 3; grid-row: 1; }
  .workbar-account > button { padding-inline: 8px; }
  .workbar-tab { height: 36px; padding-inline: 9px; font-size: 10.5px; }
  body[data-page="dashboard"] .dashboard-shell { padding: 30px 14px 20px; }
  body[data-page="dashboard"] .dashboard-page-header { margin-bottom: 25px; }
  body[data-page="dashboard"] .dashboard-page-header h1 { font-size: 36px; }
  .account-identity-band { grid-template-columns: auto minmax(0, 1fr); }
  body[data-page="dashboard"] .profile-avatar { width: 58px; height: 58px; }
  body[data-page="dashboard"] .profile-plan { grid-column: 1 / -1; width: 100%; padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
  .overview-plan-block,
  .overview-invite-block,
  .subscription-card,
  .referral-primary,
  .referral-summary,
  .security-main { padding: 22px 18px; }
  .overview-plan-block { min-height: 330px; }
  .overview-facts { grid-template-columns: 1fr; }
  .overview-facts div + div { padding-left: 0; border-left: 0; }
  .overview-resources { grid-template-columns: 1fr; }
  .overview-resources > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-resources > *:last-child { grid-column: auto; }
  .subscription-details div { grid-template-columns: 1fr; gap: 5px; }
  .subscription-details dd { text-align: left; }
  .redemption-section { padding: 22px 18px; gap: 22px; }
  .redeem-form > div { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .plan-row { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .plan-buy { justify-items: start; }
  .billing-history { padding: 22px 12px; }
  .billing-table-wrap th,
  .billing-table-wrap td { padding-inline: 9px; }
  .referral-primary > strong { font-size: 27px; }
  .referral-actions { display: grid; }
  .security-aside { grid-template-columns: 1fr; }
  .preference-panel { grid-row: auto; }
  .data-panel,
  body[data-page="dashboard"] .danger-zone { border-left: 0; border-top: 1px solid var(--line); }
  body[data-page="dashboard"] .security-row { align-items: stretch; }
  .activity-entry { grid-template-columns: 1fr; }
  .activity-entry time { white-space: normal; }
  .download-hero { padding: 25px 20px; grid-template-columns: 1fr; }
  body[data-page="dashboard"] .download-button { grid-column: 1; }
  .download-notes { grid-template-columns: 1fr; }
  .download-notes > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .download-notes > div:last-child { border-bottom: 0; }
  body[data-page="dashboard"] .support-workspace { padding: 22px 18px; }
}

@media (prefers-reduced-transparency: reduce) {
  .account-workbar { background: #f7f8f7; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Dashboard v4 — reference shell with a deep-purple gradient system */
body[data-page="dashboard"] {
  --canvas: #f8f5fb;
  --surface: #ffffff;
  --sidebar: #f1eaf7;
  --selected: #eee5f5;
  --hover: #f5f0f8;
  --line: #e5ddec;
  --line-soft: #f0eaf4;
  --ink: #1d1422;
  --ink-body: #43364a;
  --ink-2: #706478;
  --ink-3: #9d91a5;
  --accent: #541879;
  --accent-hover: #3b105b;
  --accent-soft: #eee3f6;
  --teal: #662590;
  --teal-soft: #f0e6f7;
  --purple-gradient: linear-gradient(135deg, #26103f 0%, #43116c 48%, #6d28a8 100%);
  --purple-gradient-bright: linear-gradient(125deg, #3a0d5c 0%, #5b1687 54%, #7e35b6 100%);
  min-height: 100dvh;
  background:
    radial-gradient(circle at 77% -12%, rgba(109, 40, 168, .13), transparent 32rem),
    linear-gradient(180deg, #f7f2fa 0%, #fbfafc 42%, #f8f5fb 100%);
}

body[data-page="dashboard"] :focus-visible {
  outline-color: rgba(91, 22, 135, .38);
}

body[data-page="dashboard"] .account-workbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 251, 254, .9);
  box-shadow: 0 1px 0 rgba(58, 13, 91, .025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-page="dashboard"] .workbar-inner {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

body[data-page="dashboard"] .workbar-brand {
  min-width: 0;
  gap: 10px;
}

body[data-page="dashboard"] .workbar-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 16px -7px rgba(58, 13, 91, .62);
}

body[data-page="dashboard"] .workbar-brand span {
  display: flex;
  align-items: center;
  gap: 11px;
}

body[data-page="dashboard"] .workbar-brand strong {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
}

body[data-page="dashboard"] .workbar-brand small {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.workbar-end,
body[data-page="dashboard"] .workbar-account {
  display: flex;
  align-items: center;
}

.workbar-end { min-width: 0; gap: 14px; }

.workbar-plan {
  padding: 5px 11px;
  border: 1px solid #dfcff0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

body[data-page="dashboard"] .workbar-account {
  min-width: 0;
  grid-template-columns: none;
  gap: 9px;
}

body[data-page="dashboard"] .workbar-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple-gradient);
  color: #fff;
  box-shadow: 0 7px 16px -9px rgba(58, 13, 91, .75);
}

body[data-page="dashboard"] .workbar-identity { max-width: 175px; }
body[data-page="dashboard"] .workbar-identity strong { font-size: 11.5px; }
body[data-page="dashboard"] .workbar-identity small { font-size: 9.5px; }

body[data-page="dashboard"] .workbar-account > button {
  height: 33px;
  padding: 0 11px;
  border-color: var(--line);
  background: #fff;
}

body[data-page="dashboard"] .workbar-account > button:hover {
  border-color: #cdb9dc;
  background: var(--hover);
  color: var(--accent);
}

body[data-page="dashboard"] .dashboard-frame {
  min-height: calc(100dvh - 58px);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

body[data-page="dashboard"] .dashboard-taskbar {
  position: sticky;
  top: 58px;
  height: calc(100dvh - 58px);
  padding: 16px 12px 13px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 8% 4%, rgba(176, 103, 224, .24), transparent 15rem),
    var(--purple-gradient);
  box-shadow: inset -1px 0 rgba(31, 8, 51, .18), 14px 0 34px -30px rgba(31, 8, 51, .8);
}

body[data-page="dashboard"] .taskbar-label {
  margin: 6px 12px 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .taskbar-nav {
  display: grid;
  gap: 3px;
}

body[data-page="dashboard"] .taskbar-item {
  min-height: 40px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 540;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body[data-page="dashboard"] .taskbar-item:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

body[data-page="dashboard"] .taskbar-item.is-active {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 8px 20px -14px rgba(12, 3, 20, .9);
}

body[data-page="dashboard"] .taskbar-item:active { transform: translateY(1px); }

.taskbar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="dashboard"] .taskbar-item small {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .82);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.taskbar-download {
  width: 100%;
  margin-top: auto;
  padding: 15px;
  display: grid;
  justify-items: start;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.taskbar-download:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .13);
  transform: translateY(-1px);
}

.taskbar-download-mark {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
}

.taskbar-download strong { font-size: 13px; }
.taskbar-download small { color: rgba(255, 255, 255, .58); font-size: 10.5px; line-height: 1.45; }
.taskbar-download-action { width: 100%; min-height: 33px; margin-top: 7px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #43116c; font-size: 11px; font-weight: 720; }

.taskbar-legal { padding: 12px 4px 0; display: flex; justify-content: center; gap: 13px; }
.taskbar-legal a { color: rgba(255, 255, 255, .44); font-size: 9.5px; }
.taskbar-legal a:hover { color: #fff; }

body[data-page="dashboard"] .dashboard-shell {
  width: min(1080px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 35px clamp(30px, 4.2vw, 50px) 30px;
}

body[data-page="dashboard"] .dashboard-panel { min-height: calc(100dvh - 160px); }
body[data-page="dashboard"] .dashboard-page-header { max-width: 760px; margin-bottom: 28px; }

body[data-page="dashboard"] .dashboard-page-header > p {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .11em;
}

body[data-page="dashboard"] .dashboard-page-header h1 {
  max-width: 23ch;
  font-size: clamp(30px, 4vw, 39px);
  line-height: 1.06;
  letter-spacing: -.042em;
}

body[data-page="dashboard"] .overview-header h1 { max-width: 21ch; }

body[data-page="dashboard"] .dashboard-page-header > span {
  margin-top: 9px;
  font-size: 13px;
}

.overview-plan-block,
.overview-invite-block,
.subscription-card,
.redemption-section,
.plan-group,
.billing-history,
.referral-primary,
.referral-summary,
.security-main,
.security-aside,
.download-hero,
.support-workspace,
.overview-resources {
  border-color: var(--line);
  box-shadow: 0 14px 34px -30px rgba(58, 13, 91, .48);
}

body[data-page="dashboard"] .account-identity-band {
  border-color: var(--line);
}

body[data-page="dashboard"] .profile-avatar {
  border-color: #dccbe8;
  background: var(--accent-soft);
  color: var(--accent);
}

body[data-page="dashboard"] .profile-plan strong,
body[data-page="dashboard"] .membership-status {
  background: #eee3f6;
  color: #541879;
}

body[data-page="dashboard"] .overview-invite-block {
  border-color: #5d2382;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 255, 255, .22), transparent 13rem),
    var(--purple-gradient-bright);
  box-shadow: 0 24px 48px -32px rgba(58, 13, 91, .95);
}

body[data-page="dashboard"] .overview-route,
body[data-page="dashboard"] .redemption-section,
body[data-page="dashboard"] .referral-summary,
body[data-page="dashboard"] .download-hero {
  border-color: #ddcfe8;
  background: linear-gradient(135deg, #f5eff9 0%, #eee3f6 100%);
}

body[data-page="dashboard"] .overview-route:hover { background: #e9dcf2; }
body[data-page="dashboard"] .overview-route span,
body[data-page="dashboard"] .redemption-section > div > p,
body[data-page="dashboard"] .referral-summary > p,
body[data-page="dashboard"] .download-copy > p:last-child { color: #75617f; }
body[data-page="dashboard"] .referral-summary span { color: #806c89; }
body[data-page="dashboard"] .referral-summary strong { color: #541879; }

body[data-page="dashboard"] .primary-button,
body[data-page="dashboard"] .action-button:not(.secondary),
body[data-page="dashboard"] .download-button,
body[data-page="dashboard"] .support-compose button {
  background: var(--purple-gradient-bright);
  box-shadow: 0 10px 20px -14px rgba(58, 13, 91, .9);
}

body[data-page="dashboard"] .primary-button:hover,
body[data-page="dashboard"] .action-button:not(.secondary):hover,
body[data-page="dashboard"] .download-button:hover,
body[data-page="dashboard"] .support-compose button:hover {
  background: var(--purple-gradient);
  filter: brightness(1.06);
}

body[data-page="dashboard"] .light-button { color: #43116c; }
body[data-page="dashboard"] .light-button:hover { background: #f6eefb; }
body[data-page="dashboard"] .subscription-group .plan-group-head { background: var(--accent-soft); }
body[data-page="dashboard"] .plan-row.recommended { background: #fbf7fd; }
body[data-page="dashboard"] .support-log { background: #f8f4fa; }
body[data-page="dashboard"] .support-message.user { background: var(--purple-gradient-bright); }
body[data-page="dashboard"] .support-message.assistant { border-color: var(--line); }

body[data-page="dashboard"] .field input:focus,
body[data-page="dashboard"] .redeem-form input:focus,
body[data-page="dashboard"] .support-compose input:focus,
body[data-page="dashboard"] .delete-confirm input:focus {
  box-shadow: 0 0 0 4px rgba(91, 22, 135, .11);
}

body[data-page="dashboard"] .account-footer { display: none; }

@media (max-width: 980px) {
  body[data-page="dashboard"] .dashboard-frame { grid-template-columns: 210px minmax(0, 1fr); }
  body[data-page="dashboard"] .dashboard-shell { padding-inline: 28px; }
  body[data-page="dashboard"] .overview-layout,
  body[data-page="dashboard"] .referral-workspace,
  body[data-page="dashboard"] .security-layout { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .overview-invite-block,
  body[data-page="dashboard"] .referral-summary { min-height: 285px; }
}

@media (max-width: 760px) {
  body[data-page="dashboard"] .workbar-inner { min-height: 58px; padding: 0 14px; }
  body[data-page="dashboard"] .workbar-identity { display: none; }
  body[data-page="dashboard"] .dashboard-frame { display: block; }
  body[data-page="dashboard"] .dashboard-taskbar {
    position: sticky;
    top: 58px;
    z-index: 25;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    overflow-x: auto;
  }
  body[data-page="dashboard"] .taskbar-label,
  .taskbar-download,
  .taskbar-legal { display: none; }
  body[data-page="dashboard"] .taskbar-nav { width: max-content; display: flex; gap: 3px; }
  body[data-page="dashboard"] .taskbar-item { min-width: max-content; padding-inline: 11px; grid-template-columns: 17px auto auto; font-size: 11.5px; }
  body[data-page="dashboard"] .taskbar-item small { display: none; }
  body[data-page="dashboard"] .dashboard-shell { padding-top: 30px; }
  body[data-page="dashboard"] .dashboard-panel { min-height: 0; }
}

@media (max-width: 620px) {
  body[data-page="dashboard"] .workbar-brand span { display: flex; }
  body[data-page="dashboard"] .workbar-brand small,
  body[data-page="dashboard"] .workbar-plan { display: none; }
  body[data-page="dashboard"] .workbar-account > button { padding-inline: 9px; }
  body[data-page="dashboard"] .dashboard-shell { padding: 27px 14px 22px; }
  body[data-page="dashboard"] .dashboard-page-header h1 { font-size: 31px; }
  body[data-page="dashboard"] .overview-resources { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .overview-resources > * { border-right: 0; border-bottom: 1px solid var(--line); }
  body[data-page="dashboard"] .overview-resources > *:last-child { border-bottom: 0; }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-page="dashboard"] .account-workbar { background: #fdfbfe; }
}

/* Dashboard v5 — match the reference's quiet, compact account workspace. */
body[data-page="dashboard"] {
  --canvas: #fbfafb;
  --surface: #fff;
  --sidebar: #f6f4f5;
  --hover: #f2eff3;
  --line: #e9e4e9;
  --line-soft: #f1edf1;
  --accent: #4e1a75;
  --accent-hover: #371052;
  --accent-soft: #f0e9f6;
  --purple-gradient: linear-gradient(135deg, #2b0b45 0%, #4a146f 52%, #6c2a9d 100%);
  --purple-gradient-bright: linear-gradient(125deg, #3a0d5c 0%, #591981 52%, #7532aa 100%);
  background: #fbfafb;
}

body[data-page="dashboard"] .workbar-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--purple-gradient-bright);
  box-shadow: 0 7px 14px -8px rgba(65, 17, 96, .72);
}

body[data-page="dashboard"] .workbar-logo > span {
  width: 13px;
  height: 13px;
  display: block;
  border: 2.4px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 2px;
  transform: rotate(45deg) translate(2px, 2px);
}

body[data-page="dashboard"] .workbar-brand > span:last-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

body[data-page="dashboard"] .dashboard-taskbar {
  border-right: 1px solid var(--line);
  background: linear-gradient(155deg, #f8f6f7 0%, #f4f1f5 62%, #f1ebf5 100%);
  box-shadow: none;
}

body[data-page="dashboard"] .taskbar-label { color: #9b949b; }

body[data-page="dashboard"] .taskbar-item {
  color: #4f484f;
  font-size: 13.5px;
  font-weight: 560;
}

body[data-page="dashboard"] .taskbar-item:hover {
  border-color: transparent;
  background: #f0ecef;
  color: #1d191d;
}

body[data-page="dashboard"] .taskbar-item.is-active {
  border-color: #ece7ec;
  background: #fff;
  color: #1f1a20;
  box-shadow: 0 5px 13px -10px rgba(39, 25, 43, .38), 0 1px 2px rgba(39, 25, 43, .04);
}

body[data-page="dashboard"] .taskbar-item .taskbar-icon { color: #8c8378; }
body[data-page="dashboard"] .taskbar-item.is-active .taskbar-icon { color: #5d24a0; }

body[data-page="dashboard"] .taskbar-item small {
  border: 0;
  background: var(--purple-gradient-bright);
  color: #fff;
}

.taskbar-download {
  border-color: #e1d5eb;
  background: linear-gradient(145deg, #f2edf8 0%, #ece5f5 100%);
  color: #251c29;
  box-shadow: none;
}

.taskbar-download:hover {
  border-color: #d2c0df;
  background: #eee5f5;
}

.taskbar-download-mark {
  background: #e2d5ec;
  color: #4e1a75;
}

.taskbar-download small { color: #8a7e8e; }
.taskbar-download-action { background: var(--purple-gradient-bright); color: #fff; }
.taskbar-legal a { color: #aaa2ab; }
.taskbar-legal a:hover { color: #4e1a75; }

body[data-page="dashboard"] .dashboard-shell {
  width: min(1000px, 100%);
  margin: 0;
  padding: 34px 44px 32px;
}

body[data-page="dashboard"] .dashboard-page-header {
  margin-bottom: 24px;
}

body[data-page="dashboard"] .dashboard-page-header > p {
  color: #9b939b;
  font-size: 10.5px;
}

body[data-page="dashboard"] .dashboard-page-header h1 {
  max-width: none;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 510;
  letter-spacing: -.032em;
}

body[data-page="dashboard"] .dashboard-page-header > span {
  margin-top: 8px;
  color: #7f787f;
  font-size: 13.5px;
}

body[data-page="dashboard"] .overview-header h1 { max-width: none; }

.overview-plan-status,
.overview-stat-card,
.overview-shared-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.overview-plan-status {
  min-height: 112px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.overview-plan-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.overview-plan-line h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.overview-plan-line h2 span { text-transform: capitalize; }
.overview-plan-status > div > p { margin: 7px 0 0; color: var(--ink-3); font-size: 12px; }
.overview-plan-status > div > p strong { color: var(--ink-2); font-weight: 560; }
.overview-plan-status .membership-status { padding: 4px 9px; border-radius: 999px; background: #e7f4ec; color: #2f8a54; font-size: 10px; font-weight: 760; text-transform: uppercase; }
.overview-plan-status > .action-button { min-height: 39px; }

.overview-stat-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.overview-stat-card,
.overview-invite-cta {
  min-height: 142px;
  padding: 22px;
}

.overview-stat-card { display: grid; align-content: center; gap: 6px; }
.overview-stat-card strong { font-size: clamp(25px, 3vw, 34px); font-weight: 590; letter-spacing: -.04em; }
.overview-stat-card span { color: var(--ink-3); font-size: 12px; }

.overview-invite-cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .18), transparent 9rem),
    var(--purple-gradient-bright);
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 32px -26px rgba(71, 18, 105, .8);
  transition: transform .18s ease, filter .18s ease;
}

.overview-invite-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.overview-invite-cta svg { width: 20px; height: 20px; margin-bottom: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.overview-invite-cta strong { font-size: 14px; line-height: 1.25; }
.overview-invite-cta span { color: rgba(255, 255, 255, .72); font-size: 11px; }

.overview-shared-card {
  margin-top: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 20px;
}

.overview-shared-card h2 { margin: 0; font-size: 14px; }
.overview-shared-card > div:first-child p { margin: 3px 0 0; color: var(--ink-3); font-size: 11.5px; }
.overview-shared-card > strong { font-size: 14px; }
.overview-progress { grid-column: 1 / -1; height: 7px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e8e4e8; }
.overview-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--purple-gradient-bright); transition: width .35s ease; }
.overview-shared-card > p { grid-column: 1 / -1; margin: 7px 0 0; color: #aca4ac; font-size: 10.5px; }
.overview-shared-card .text-button { font-size: inherit; }

body[data-page="dashboard"] .subscription-card {
  padding: 24px;
  grid-template-columns: minmax(220px, 1fr) minmax(330px, 1fr);
  gap: 20px 38px;
  border: 2px solid #d3c1e6;
  border-radius: 16px;
  box-shadow: none;
}

body[data-page="dashboard"] .membership-title-row h2 { font-size: 23px; }
body[data-page="dashboard"] .subscription-details div { min-height: 56px; }
body[data-page="dashboard"] .redemption-section { background: #f7f3f9; }
body[data-page="dashboard"] .billing-history { margin-top: 34px; }
body[data-page="dashboard"] .plans-section { margin-top: 38px; }

body[data-page="dashboard"] .referral-workspace { grid-template-columns: 1fr; }
body[data-page="dashboard"] .referral-primary {
  min-height: 310px;
  border-color: #61268a;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 255, 255, .2), transparent 20rem),
    var(--purple-gradient-bright);
  color: #fff;
  box-shadow: 0 24px 44px -30px rgba(71, 18, 105, .82);
}

body[data-page="dashboard"] .referral-primary > p:first-child,
body[data-page="dashboard"] .referral-primary > label { color: rgba(255, 255, 255, .68); }
body[data-page="dashboard"] .referral-primary > strong { color: #fff; }
body[data-page="dashboard"] .referral-primary > input { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .11); color: #fff; }
body[data-page="dashboard"] .referral-primary .action-button:not(.secondary) { background: #fff; color: #4e1a75; }
body[data-page="dashboard"] .referral-primary .action-button.secondary { border-color: rgba(255, 255, 255, .32); background: transparent; color: #fff; }
body[data-page="dashboard"] .referral-summary { min-height: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; }
body[data-page="dashboard"] .referral-summary > div { padding: 22px; border: 0; border-right: 1px solid var(--line); }
body[data-page="dashboard"] .referral-summary > p { grid-column: 1 / -1; margin: 0; padding: 18px 22px; border-top: 1px solid var(--line); }

body[data-page="dashboard"] .security-layout { grid-template-columns: 1fr; }
body[data-page="dashboard"] .security-aside { display: grid; grid-template-columns: 1.2fr .8fr; }
body[data-page="dashboard"] .preference-panel { grid-row: span 2; }
body[data-page="dashboard"] .data-panel,
body[data-page="dashboard"] .danger-zone { border-top: 0; border-left: 1px solid var(--line); }

@media (max-width: 760px) {
  body[data-page="dashboard"] .dashboard-taskbar {
    background: var(--purple-gradient);
  }
  body[data-page="dashboard"] .taskbar-item { color: rgba(255, 255, 255, .76); }
  body[data-page="dashboard"] .taskbar-item .taskbar-icon { color: currentColor; }
  body[data-page="dashboard"] .taskbar-item:hover,
  body[data-page="dashboard"] .taskbar-item.is-active { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); color: #fff; }
  body[data-page="dashboard"] .dashboard-shell { width: 100%; margin: 0 auto; padding-inline: 24px; }
}

@media (max-width: 620px) {
  body[data-page="dashboard"] .dashboard-shell { padding-inline: 14px; }
  .overview-plan-status { align-items: flex-start; flex-direction: column; }
  .overview-stat-grid { grid-template-columns: 1fr; }
  .overview-stat-card,
  .overview-invite-cta { min-height: 118px; }
  .overview-shared-card { grid-template-columns: 1fr; }
  .overview-shared-card > strong { margin-top: 7px; }
  .overview-progress,
  .overview-shared-card > p { grid-column: 1; }
  body[data-page="dashboard"] .security-aside { grid-template-columns: 1fr; }
  body[data-page="dashboard"] .data-panel,
  body[data-page="dashboard"] .danger-zone { border-left: 0; border-top: 1px solid var(--line); }
}

/* App-inspired sign-in and registration experience */
body:is([data-page="login"], [data-page="register"]) {
  --canvas: #fbfafb;
  --surface: #fff;
  --line: #e8e3e8;
  --ink: #151116;
  --ink-body: #413a43;
  --ink-2: #746d76;
  --ink-3: #9d959f;
  --accent: #531879;
  --accent-hover: #3a1057;
  --accent-soft: #f1eaf6;
  --auth-gradient: linear-gradient(125deg, #32104d 0%, #521778 52%, #7431a5 100%);
  min-height: 100dvh;
  overflow-x: hidden;
  background: #fff;
}

body:is([data-page="login"], [data-page="register"]) :focus-visible {
  outline-color: rgba(83, 24, 121, .34);
}

.auth-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-pane {
  min-width: 0;
  min-height: 100dvh;
  padding: 22px clamp(28px, 3.5vw, 58px) 25px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
}

.auth-brandbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1b171c;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.02em;
}

.auth-brand img {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  box-shadow: 0 8px 17px -10px rgba(56, 15, 82, .62);
}

.auth-brandbar > a:last-child {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 11.5px;
}

.auth-brandbar > a:last-child:hover { background: #f6f3f6; color: var(--accent); }

.auth-pane-content {
  width: min(520px, 100%);
  margin: auto;
  padding: 52px 0 22px;
}

.auth-pane-register .auth-pane-content { width: min(640px, 100%); padding-top: 28px; }

body:is([data-page="login"], [data-page="register"]) .auth-copy {
  max-width: none;
  margin-bottom: 32px;
}

body:is([data-page="login"], [data-page="register"]) .auth-copy h1 {
  max-width: 9.4ch;
  margin: 0;
  color: #171218;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.2vw, 70px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.047em;
  text-wrap: balance;
}

body:is([data-page="login"], [data-page="register"]) .auth-copy > p {
  margin: 19px 0 0;
  color: #4d454f;
  font-size: 15px;
  font-weight: 570;
  line-height: 1.5;
}

body:is([data-page="login"], [data-page="register"]) .auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 25px 60px -42px rgba(50, 16, 73, .52), 0 8px 26px rgba(36, 25, 41, .035);
}

.auth-card-login .field { margin-bottom: 12px; }

body:is([data-page="login"], [data-page="register"]) .field input {
  min-height: 50px;
  border-color: #ddd7dd;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.auth-card-login .field input {
  min-height: 56px;
  padding-inline: 17px;
  font-size: 16px;
}

body:is([data-page="login"], [data-page="register"]) .field input::placeholder { color: #9b949d; }

body:is([data-page="login"], [data-page="register"]) .field input:focus {
  border-color: #6b2b96;
  box-shadow: 0 0 0 4px rgba(83, 24, 121, .09);
}

body:is([data-page="login"], [data-page="register"]) .primary-button {
  min-height: 54px;
  border-radius: 10px;
  background: var(--auth-gradient);
  box-shadow: 0 13px 24px -18px rgba(50, 16, 73, .95);
  font-size: 14px;
  font-weight: 680;
}

body:is([data-page="login"], [data-page="register"]) .primary-button:hover {
  background: var(--auth-gradient);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

body:is([data-page="login"], [data-page="register"]) .primary-button:active { transform: translateY(1px); }

.auth-card-login .primary-button { margin-top: 7px; }

body:is([data-page="login"], [data-page="register"]) .form-message {
  min-height: 17px;
  margin: 10px 2px 0;
  font-size: 11.5px;
}

.auth-secondary-action {
  width: fit-content;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #2e2830;
  font-size: 12.5px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-secondary-action:hover { border-color: #d5c7df; background: #faf7fc; transform: translateY(-1px); }

.auth-utility-row {
  position: relative;
  margin-top: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: #827a84;
  font-size: 11.5px;
}

.auth-utility-row > a,
.auth-utility-row summary { text-decoration: underline; text-underline-offset: 3px; }
.auth-utility-row > a:hover,
.auth-utility-row summary:hover { color: var(--accent); }

body:is([data-page="login"], [data-page="register"]) .auth-reset-disclosure { margin: 0; padding: 0; }
body:is([data-page="login"], [data-page="register"]) .auth-reset-disclosure > summary { color: inherit; font-size: inherit; }

body:is([data-page="login"], [data-page="register"]) .auth-reset-disclosure .password-reset-flow {
  position: absolute;
  z-index: 5;
  top: 30px;
  right: 0;
  left: 0;
  margin: 0;
  padding: 20px;
  border-color: #dfd4e7;
  background: #fff;
  box-shadow: 0 22px 55px -30px rgba(50, 16, 73, .48);
  text-align: left;
}

.auth-footer {
  margin-top: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #9b949d;
  font-size: 10px;
}

.auth-footer a:hover { color: var(--accent); }

.auth-card-register { padding: 25px 27px 22px; }
body:is([data-page="login"], [data-page="register"]) .auth-card-register h2 { font-size: 22px; }
body:is([data-page="login"], [data-page="register"]) .auth-card-register .card-intro { margin: 7px 0 18px; font-size: 12px; }
.register-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.auth-card-register .field { margin-bottom: 12px; }
.auth-card-register .field label { font-size: 11.5px; }
.auth-card-register .check-row { margin: 1px 0 15px; font-size: 10.5px; }
.auth-card-register .primary-button { min-height: 49px; }
.auth-card-register .code-input { letter-spacing: .13em; }

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(105, 40, 148, .07), transparent 15rem),
    radial-gradient(circle at 12% 82%, rgba(105, 40, 148, .035), transparent 20rem),
    #f7f6f1;
  border-left: 1px solid #f0ece7;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(70, 47, 77, .18) .55px, transparent .55px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.auth-app-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(145px, 14vw, 190px);
  aspect-ratio: 1;
  padding: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 36px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 34px 70px -36px rgba(52, 32, 61, .52), inset 0 1px rgba(255, 255, 255, .9);
  transform: translate(-50%, -50%);
}

.auth-app-mark img { width: 100%; height: 100%; border-radius: 29px; }

.auth-float {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(72, 31, 96, .35);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .04em;
  user-select: none;
}

.auth-float-doc { top: 10%; left: 16%; width: 48px; height: 57px; border-radius: 7px 7px 12px 7px; background: rgba(98, 53, 132, .08); transform: rotate(-8deg); }
.auth-float-ai { top: 7%; left: 54%; width: 72px; height: 72px; border-radius: 22px; background: rgba(83, 24, 121, .08); color: rgba(83, 24, 121, .27); font-size: 28px; transform: rotate(4deg); }
.auth-float-flow { top: 9%; right: 11%; width: 84px; height: 68px; border-radius: 14px; background: linear-gradient(150deg, rgba(83,24,121,.08), rgba(117,50,170,.13)); transform: rotate(7deg); }
.auth-float-case { top: 38%; left: 8%; width: 70px; height: 34px; border-bottom: 3px solid rgba(83,24,121,.1); transform: rotate(-13deg); }
.auth-float-quote { right: 13%; bottom: 18%; width: 72px; height: 72px; border: 6px solid rgba(83,24,121,.08); border-radius: 50%; color: rgba(83,24,121,.14); font-family: Georgia, serif; font-size: 55px; }
.auth-float-pen { bottom: 8%; left: 51%; width: 66px; height: 66px; border-radius: 18px; background: rgba(83,24,121,.06); color: rgba(83,24,121,.18); font-size: 38px; transform: rotate(-2deg); }

@media (max-width: 1040px) {
  .auth-stage { grid-template-columns: minmax(500px, 1.08fr) minmax(0, .92fr); }
  .auth-pane { padding-inline: 34px; }
  .auth-pane-content { padding-top: 38px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy h1 { font-size: 54px; }
}

@media (max-width: 820px) {
  .auth-stage { display: block; }
  .auth-pane { min-height: 100dvh; padding-inline: clamp(20px, 7vw, 52px); }
  .auth-pane-content { padding-top: 52px; }
  .auth-pane-register .auth-pane-content { padding-top: 35px; }
  .auth-visual { display: none; }
}

@media (max-width: 560px) {
  .auth-pane { padding: 16px 16px 22px; }
  .auth-pane-content,
  .auth-pane-register .auth-pane-content { padding-top: 38px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy { margin-bottom: 25px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy h1 { font-size: 45px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy > p { margin-top: 14px; font-size: 13px; }
  body:is([data-page="login"], [data-page="register"]) .auth-card { padding: 20px 17px; border-radius: 18px; }
  .register-field-grid { grid-template-columns: 1fr; }
  .auth-secondary-action { width: 100%; }
  .auth-utility-row { flex-direction: column; }
  .auth-footer { margin-top: 40px; }
}

/* Auth reference lock — reproduce the supplied App screen without reinterpretation. */
body:is([data-page="login"], [data-page="register"]) .auth-stage {
  min-height: 100dvh;
  grid-template-columns: 50% 50%;
  background: #fff;
}

body:is([data-page="login"], [data-page="register"]) .auth-pane {
  position: relative;
  min-height: 100dvh;
  padding: 0;
  overflow-y: auto;
}

body:is([data-page="login"], [data-page="register"]) .auth-pane-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(78px, 14vh, 190px) 0 94px;
}

body[data-page="register"] .auth-pane-content {
  padding-top: clamp(48px, 7vh, 100px);
}

body:is([data-page="login"], [data-page="register"]) .auth-copy {
  width: 52%;
  margin: 0 0 0 24%;
}

body:is([data-page="login"], [data-page="register"]) .auth-copy h1 {
  max-width: none;
  font-size: clamp(52px, 5vw, 78px);
  line-height: 1.03;
  letter-spacing: -.044em;
}

body:is([data-page="login"], [data-page="register"]) .auth-copy > p {
  margin-top: 25px;
  color: #231f24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 600;
  white-space: nowrap;
}

body:is([data-page="login"], [data-page="register"]) .auth-card {
  width: 64%;
  margin: clamp(42px, 5vh, 66px) auto 0;
  padding: 29px 35px 24px;
  border-color: #e4e0df;
  border-radius: 27px;
  box-shadow: 0 24px 58px -38px rgba(49, 38, 52, .42), 0 3px 12px rgba(43, 34, 46, .025);
}

.auth-biometric {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #d9d5d3;
  border-radius: 9px;
  background: #fff;
  color: #1e1b1f;
  font-size: 14px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-biometric:hover { border-color: #bfb8c2; background: #fbfafb; }
.auth-biometric:active { transform: translateY(1px); }
.auth-biometric svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.auth-or {
  height: 48px;
  display: grid;
  place-items: center;
  color: #908a8d;
  font-size: 11px;
  font-weight: 650;
}

body[data-page="login"] .auth-card-login .field { margin-bottom: 12px; }
body[data-page="login"] .auth-card-login .field input { min-height: 56px; }
body[data-page="login"] .auth-card-login .primary-button { min-height: 56px; margin-top: 12px; }

body:is([data-page="login"], [data-page="register"]) .primary-button {
  background: linear-gradient(120deg, #32104d 0%, #521778 55%, #7431a5 100%);
}

body:is([data-page="login"], [data-page="register"]) .auth-secondary-action {
  min-height: 48px;
  margin-top: 26px;
  padding-inline: 24px;
  border-color: #e1dddc;
  font-size: 13px;
}

body:is([data-page="login"], [data-page="register"]) .auth-utility-row {
  margin-top: 26px;
  gap: 24px;
  font-size: 12px;
}

body:is([data-page="login"], [data-page="register"]) .auth-footer {
  position: absolute;
  bottom: 22px;
  left: 8.5%;
  margin: 0;
  justify-content: flex-start;
  color: #9b9698;
  font-size: 11px;
}

body:is([data-page="login"], [data-page="register"]) .auth-visual {
  min-height: 100dvh;
  border-left: 0;
  background-color: #f7f6f1;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 200% 100%;
}

body:is([data-page="login"], [data-page="register"]) .auth-visual::after { display: none; }

body[data-page="register"] .auth-copy { width: 60%; margin-left: 20%; }
body[data-page="register"] .auth-copy h1 { font-size: clamp(44px, 4.2vw, 66px); }
body[data-page="register"] .auth-copy > p { margin-top: 16px; font-family: inherit; font-size: 13px; font-weight: 560; white-space: normal; }
body[data-page="register"] .auth-card { width: 72%; margin-top: 30px; }
body[data-page="register"] .auth-secondary-action { margin-top: 20px; }

@media (max-width: 1000px) {
  body:is([data-page="login"], [data-page="register"]) .auth-stage { grid-template-columns: 54% 46%; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy { width: 62%; margin-left: 19%; }
  body:is([data-page="login"], [data-page="register"]) .auth-card { width: 76%; }
}

@media (max-width: 820px) {
  body:is([data-page="login"], [data-page="register"]) .auth-stage { display: block; }
  body:is([data-page="login"], [data-page="register"]) .auth-pane { padding: 0; }
  body:is([data-page="login"], [data-page="register"]) .auth-pane-content { padding: 76px 0 96px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy { width: min(520px, calc(100% - 44px)); margin: 0 auto; }
  body:is([data-page="login"], [data-page="register"]) .auth-card { width: min(540px, calc(100% - 32px)); }
  body:is([data-page="login"], [data-page="register"]) .auth-visual { display: none; }
  body:is([data-page="login"], [data-page="register"]) .auth-footer { position: static; width: min(540px, calc(100% - 32px)); margin: 58px auto 0; }
}

@media (max-width: 560px) {
  body:is([data-page="login"], [data-page="register"]) .auth-pane-content { padding-top: 66px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy h1 { font-size: 48px; }
  body:is([data-page="login"], [data-page="register"]) .auth-copy > p { margin-top: 18px; font-size: 14px; white-space: normal; }
  body:is([data-page="login"], [data-page="register"]) .auth-card { margin-top: 38px; padding: 20px 17px 18px; border-radius: 20px; }
  .auth-biometric { min-height: 52px; }
  .auth-or { height: 42px; }
  body[data-page="login"] .auth-card-login .field input,
  body[data-page="login"] .auth-card-login .primary-button { min-height: 52px; }
  body[data-page="register"] .auth-copy { width: calc(100% - 32px); }
  body[data-page="register"] .auth-card { width: calc(100% - 24px); }
}

/* Simple authentication split: form on the left, FlowMaster mark on the right. */
body:is([data-page="login"], [data-page="register"]) {
  --auth-accent: #171717;
  --auth-accent-hover: #000;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-pane {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: visible;
}

body:is([data-page="login"], [data-page="register"]) .auth-form-shell {
  width: min(100%, 420px);
  margin: 0;
  padding: 0;
}

body[data-page="register"] .auth-form-shell { width: min(100%, 500px); }

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-heading { margin-bottom: 34px; }

body:is([data-page="login"], [data-page="register"]) .auth-heading h1 {
  max-width: none;
  margin: 0;
  color: #171419;
  font: inherit;
  font-size: 38px;
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.04em;
}

body:is([data-page="login"], [data-page="register"]) .auth-heading p {
  margin: 10px 0 0;
  color: #777079;
  font-size: 15px;
  line-height: 1.5;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .field {
  gap: 8px;
  margin-bottom: 18px;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .field label {
  color: #363038;
  font-size: 13px;
  font-weight: 620;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .field input {
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d9d5da;
  border-radius: 9px;
  background: #fff;
  font-size: 15px;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .field input:focus {
  border-color: #555;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .primary-button {
  min-height: 52px;
  margin-top: 4px;
  border-radius: 9px;
  background: var(--auth-accent);
  font-size: 15px;
  font-weight: 650;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .primary-button:hover {
  background: var(--auth-accent-hover);
}

.auth-links {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: #777079;
  font-size: 13px;
}

.auth-links p { margin: 0; }
.auth-links a,
body[data-page="register"] .auth-switch a { color: var(--auth-accent); font-weight: 620; }

.standalone-reset-flow .reset-resend-login {
  display: block;
  margin: 17px auto 0;
}

body[data-auth-mode="password-reset"] .auth-switch {
  margin-top: 22px;
  padding: 0;
  border: 0;
  text-align: left;
}

body[data-auth-mode="password-reset"] .auth-switch a {
  color: var(--auth-accent);
  font-weight: 620;
}

body:is([data-page="login"], [data-page="register"]) .auth-links .auth-reset-disclosure {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body:is([data-page="login"], [data-page="register"]) .auth-links .auth-reset-disclosure > summary {
  color: var(--auth-accent);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

body:is([data-page="login"], [data-page="register"]) .auth-links .auth-reset-disclosure .password-reset-flow {
  position: static;
  width: 100%;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e5e1e6;
  border-radius: 10px;
  background: #faf9fa;
  box-shadow: none;
}

.auth-links:has(.auth-reset-disclosure[open]) { display: block; }
.auth-links:has(.auth-reset-disclosure[open]) > p { margin-bottom: 14px; }

body[data-page="register"] .register-field-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

body[data-page="register"] .auth-card-register .check-row {
  margin: 2px 0 18px;
  font-size: 12px;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .check-row input { accent-color: var(--auth-accent); }
body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .check-row a,
body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .text-button { color: var(--auth-accent); }

body[data-page="register"] .auth-switch {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  color: #777079;
  text-align: left;
  font-size: 13px;
}

body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-footer {
  position: static;
  margin: 54px 0 0;
  justify-content: flex-start;
  color: #a19ba2;
  font-size: 11px;
}

body:is([data-page="login"], [data-page="register"]) .auth-logo-pane {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #f7f7f5;
}

body:is([data-page="login"], [data-page="register"]) .auth-logo-pane::before {
  content: "FlowMaster";
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(54px, 7vw, 100px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: .055em;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(23, 23, 23, .09);
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

body:is([data-page="login"], [data-page="register"]) .auth-logo-pane::after { display: none; }

.auth-logo-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.auth-logo-lockup img {
  width: clamp(135px, 12vw, 185px);
  height: auto;
  display: block;
}

@media (max-width: 820px) {
  body:is([data-page="login"], [data-page="register"]) .auth-stage-simple { display: block; }
  body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-pane {
    min-height: 100dvh;
    padding: 48px 24px;
  }
  body:is([data-page="login"], [data-page="register"]) .auth-logo-pane { display: none; }
}

@media (max-width: 540px) {
  body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-pane {
    align-items: flex-start;
    padding: 34px 20px;
  }
  body:is([data-page="login"], [data-page="register"]) .auth-heading h1 { font-size: 34px; }
  body[data-page="register"] .register-field-grid { grid-template-columns: 1fr; }
  .auth-links { display: block; }
  .auth-links .auth-reset-disclosure { margin-top: 14px !important; }
  body:is([data-page="login"], [data-page="register"]) .auth-stage-simple .auth-footer { margin-top: 44px; }
}

/* Dashboard monochrome theme. Keep the existing layout; replace purple with black. */
body[data-page="dashboard"] {
  --canvas: #fafafa;
  --surface: #fff;
  --sidebar: #f3f3f3;
  --selected: #e9e9e9;
  --hover: #ededed;
  --line: #e2e2e2;
  --line-soft: #eeeeee;
  --ink: #111;
  --ink-body: #333;
  --ink-2: #686868;
  --ink-3: #999;
  --accent: #171717;
  --accent-hover: #000;
  --accent-soft: #ededed;
  --teal: #171717;
  --teal-soft: #ededed;
  --purple-gradient: #171717;
  --purple-gradient-bright: #171717;
  background: #fafafa;
}

body[data-page="dashboard"] :focus-visible { outline-color: rgba(0, 0, 0, .28); }

body[data-page="dashboard"] .account-workbar {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

body[data-page="dashboard"] .workbar-logo,
body[data-page="dashboard"] .workbar-avatar {
  background: #171717;
  box-shadow: 0 7px 14px -8px rgba(0, 0, 0, .62);
}

body[data-page="dashboard"] .workbar-plan {
  border-color: #d8d8d8;
  background: #f0f0f0;
  color: #171717;
}

body[data-page="dashboard"] .workbar-account > button:hover {
  border-color: #c8c8c8;
  background: #f1f1f1;
  color: #111;
}

body[data-page="dashboard"] .dashboard-taskbar {
  border-color: var(--line);
  background: linear-gradient(155deg, #f7f7f7 0%, #f2f2f2 100%);
}

body[data-page="dashboard"] .taskbar-label { color: #999; }
body[data-page="dashboard"] .taskbar-item { color: #505050; }
body[data-page="dashboard"] .taskbar-item:hover { background: #eaeaea; color: #111; }
body[data-page="dashboard"] .taskbar-item.is-active { border-color: #e2e2e2; color: #111; }
body[data-page="dashboard"] .taskbar-item .taskbar-icon { color: #858585; }
body[data-page="dashboard"] .taskbar-item.is-active .taskbar-icon { color: #111; }
body[data-page="dashboard"] .taskbar-item small { background: #171717; }

body[data-page="dashboard"] .taskbar-download {
  border-color: #d9d9d9;
  background: #ececec;
  color: #1d1d1d;
}

body[data-page="dashboard"] .taskbar-download:hover { border-color: #c9c9c9; background: #e5e5e5; }
body[data-page="dashboard"] .taskbar-download-mark { background: #d9d9d9; color: #171717; }
body[data-page="dashboard"] .taskbar-download small { color: #7d7d7d; }
body[data-page="dashboard"] .taskbar-download-action { background: #171717; color: #fff; }
body[data-page="dashboard"] .taskbar-legal a:hover { color: #111; }

body[data-page="dashboard"] .overview-invite-block,
body[data-page="dashboard"] .overview-invite-cta,
body[data-page="dashboard"] .referral-primary {
  border-color: #171717;
  background: #171717;
  box-shadow: 0 20px 38px -30px rgba(0, 0, 0, .8);
}

body[data-page="dashboard"] .overview-progress span { background: #171717; }
body[data-page="dashboard"] .subscription-card { border-color: #cfcfcf; }
body[data-page="dashboard"] .profile-avatar { border-color: #d5d5d5; background: #ededed; color: #171717; }
body[data-page="dashboard"] .profile-plan strong,
body[data-page="dashboard"] .membership-status { background: #ededed; color: #333; }

body[data-page="dashboard"] .overview-route,
body[data-page="dashboard"] .redemption-section,
body[data-page="dashboard"] .referral-summary,
body[data-page="dashboard"] .download-hero,
body[data-page="dashboard"] .subscription-group .plan-group-head {
  border-color: #dedede;
  background: #f2f2f2;
}

body[data-page="dashboard"] .overview-route:hover { background: #e9e9e9; }
body[data-page="dashboard"] .plan-row.recommended { background: #fafafa; }
body[data-page="dashboard"] .support-log { background: #f5f5f5; }
body[data-page="dashboard"] .support-message.user { background: #171717; }
body[data-page="dashboard"] .overview-route span,
body[data-page="dashboard"] .redemption-section > div > p,
body[data-page="dashboard"] .referral-summary > p,
body[data-page="dashboard"] .referral-summary span,
body[data-page="dashboard"] .download-copy > p:last-child { color: #777; }

body[data-page="dashboard"] .referral-summary strong,
body[data-page="dashboard"] .referral-primary .action-button:not(.secondary),
body[data-page="dashboard"] .light-button { color: #171717; }

body[data-page="dashboard"] .light-button:hover { background: #ededed; }

body[data-page="dashboard"] .primary-button,
body[data-page="dashboard"] .action-button:not(.secondary),
body[data-page="dashboard"] .download-button,
body[data-page="dashboard"] .support-compose button {
  background: #171717;
  box-shadow: none;
}

body[data-page="dashboard"] .primary-button:hover,
body[data-page="dashboard"] .action-button:not(.secondary):hover,
body[data-page="dashboard"] .download-button:hover,
body[data-page="dashboard"] .support-compose button:hover {
  background: #000;
  filter: none;
}

body[data-page="dashboard"] .field input:focus,
body[data-page="dashboard"] .redeem-form input:focus,
body[data-page="dashboard"] .support-compose input:focus,
body[data-page="dashboard"] .delete-confirm input:focus {
  border-color: #555;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

@media (max-width: 760px) {
  body[data-page="dashboard"] .dashboard-taskbar { background: #171717; }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-page="dashboard"] .account-workbar { background: #fff; }
}

/* Dashboard v7 — Apple Account visual language. */
body[data-page="dashboard"] {
  --account-canvas: #ffffff;
  --account-card: #ffffff;
  --account-ink: #1d1d1f;
  --account-muted: #6e6e73;
  --account-line: #d2d2d7;
  --account-soft: #f5f5f7;
  --account-blue: #0071e3;
  --account-blue-hover: #0077ed;
  min-height: 100dvh;
  background: var(--account-canvas);
  color: var(--account-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

body[data-page="dashboard"] .account-homebar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

body[data-page="dashboard"] .account-homebar .workbar-inner {
  width: min(1760px, calc(100% - 72px));
  height: 76px;
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid #d2d2d7;
}

body[data-page="dashboard"] .account-homebar .workbar-brand { gap: 0; }
body[data-page="dashboard"] .account-homebar .account-brand-mark img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}
body[data-page="dashboard"] .account-homebar .workbar-brand > span:last-child { display: block; }
body[data-page="dashboard"] .account-homebar .workbar-brand strong {
  color: #1d1d1f;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.025em;
}

body[data-page="dashboard"] .account-signout {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--account-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: background .2s ease, transform .2s ease;
}

body[data-page="dashboard"] .account-signout:hover { background: var(--account-blue-hover); }
body[data-page="dashboard"] .account-signout:active { transform: translateY(1px); }

body[data-page="dashboard"] .dashboard-frame {
  min-height: calc(100dvh - 76px);
  display: block;
}

body[data-page="dashboard"] .dashboard-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 46px) 32px 48px;
}

body[data-page="dashboard"] .account-home {
  min-height: calc(100dvh - 150px);
}

.account-profile-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

body[data-page="dashboard"] .account-profile-avatar {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  color: var(--account-blue);
  box-shadow: none;
  font-size: 24px;
  font-weight: 600;
}

.account-profile-hero h1 {
  margin: 16px 0 0;
  color: #1d1d1f;
  font-size: clamp(30px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.account-profile-hero > p {
  margin: 6px 0 0;
  color: var(--account-muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-plan-line {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #86868b;
  font-size: 12px;
  font-weight: 400;
  text-transform: capitalize;
}

.account-search-launch-row {
  width: min(1020px, 100%);
  margin: 27px auto 0;
}

.account-search-launch {
  width: fit-content;
  min-height: 30px;
  padding: 4px 7px 4px 3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  color: var(--account-blue);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.account-search-launch:hover { background: #f5f5f7; color: var(--account-blue-hover); }
.account-search-launch svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.account-assist {
  width: min(940px, 100%);
  margin: clamp(28px, 3.5vw, 40px) auto 0;
}

.account-assist-heading {
  padding: 0 2px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.account-assist-heading p {
  margin: 0 0 5px;
  color: var(--account-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.account-assist-heading h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(25px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.account-assist-heading > span {
  padding-bottom: 3px;
  color: #86868b;
  font-size: 12px;
  white-space: nowrap;
}

.account-search-form {
  min-height: 58px;
  margin-top: 15px;
  padding: 6px 7px 6px 18px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.account-search-form:focus-within {
  border-color: var(--account-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12), 0 10px 24px rgba(0, 0, 0, .07);
}

.account-search-form > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #86868b;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.account-search-form input {
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1f;
  font-size: 15px;
}

.account-search-form input::placeholder { color: #86868b; }
.account-search-form kbd {
  padding: 4px 7px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  background: #f5f5f7;
  color: #6e6e73;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
}

.account-search-form button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--account-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  transition: background .18s ease, transform .18s ease;
}

.account-search-form button:hover { background: var(--account-blue-hover); }
.account-search-form button:active { transform: translateY(1px); }
.account-search-form button:disabled { opacity: .56; cursor: wait; }

.account-search-results {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px -34px rgba(0, 0, 0, .45);
}

.account-search-result {
  width: 100%;
  min-height: 58px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #efefed;
  background: #fff;
  color: #1c1c1c;
  text-align: left;
}

.account-search-result:last-child { border-bottom: 0; }
.account-search-result:hover { background: #f6f6f4; }
.account-search-result span { display: grid; gap: 3px; }
.account-search-result strong { font-size: 13px; }
.account-search-result small { color: #8c8a86; font-size: 10.5px; }
.account-search-result > b { color: #8c8a86; font-size: 13px; font-weight: 520; }

.account-ai-answer { padding: 17px 18px 18px; }
.account-ai-answer > span {
  display: block;
  margin-bottom: 8px;
  color: #8b8985;
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.account-ai-answer p { margin: 0; color: #363532; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; }
.account-ai-answer button { margin-top: 13px; padding: 0; border: 0; background: transparent; color: #1c1c1c; font-size: 11px; font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.account-ai-answer.is-error p { color: #983838; }
.account-search-loading { padding: 17px 18px; color: #777571; font-size: 12px; }

.account-assist-note {
  max-width: 690px;
  margin: 7px auto 0;
  color: #a09e99;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.account-settings-grid {
  width: min(1020px, 100%);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.account-setting-card {
  position: relative;
  min-height: 166px;
  padding: 27px 70px 27px 30px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 16px;
  background: var(--account-card);
  color: #1d1d1f;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.account-setting-card::after { display: none; }

.account-setting-card:hover {
  border-color: #b8b8bd;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
}
.account-setting-card:active { transform: translateY(0); }
.account-setting-card-wide { grid-column: auto; min-height: 166px; }

.account-setting-icon {
  position: absolute;
  top: 25px;
  right: 26px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--account-blue);
}
.account-setting-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-setting-copy { display: grid; gap: 9px; }
.account-setting-copy strong { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.account-setting-copy small { max-width: 34ch; color: #6e6e73; font-size: 14px; line-height: 1.45; }
.account-setting-arrow { display: none; }

.account-setting-card-support,
.account-setting-card-support:hover { border-color: var(--account-line); background: #fff; color: #1d1d1f; }
.account-setting-card-support .account-setting-icon { background: transparent; color: var(--account-blue); }
.account-setting-card-support .account-setting-copy small { color: #6e6e73; }

.account-home-utility {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #86868b;
}
.account-home-utility button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--account-blue);
  font-size: 13px;
}
.account-home-utility button:hover { color: var(--account-blue-hover); text-decoration: underline; text-underline-offset: 4px; }

body[data-page="dashboard"] .dashboard-panel:not(.account-home) {
  width: min(1000px, 100%);
  margin: 0 auto;
}

body[data-page="dashboard"] .dashboard-panel:not(.account-home)::before {
  content: "Account settings";
  display: block;
  width: fit-content;
  margin-bottom: 26px;
  color: #86868b;
  font-size: 13px;
}

body[data-page="dashboard"] .account-footer {
  margin-top: 48px;
  display: flex;
}

/* Personal Information — Apple Account-style overview. */
body[data-page="dashboard"] .personal-information-panel {
  width: min(1000px, 100%);
  padding-top: clamp(18px, 3vw, 34px);
}

body[data-page="dashboard"] .personal-information-panel::before { content: none !important; display: none !important; }

.personal-information-header {
  max-width: 850px;
  margin-bottom: clamp(42px, 6vw, 62px);
}

.personal-information-header h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(38px, 4.6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.personal-information-header p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #515154;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.personal-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.personal-information-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  margin: 0;
  padding: 33px 72px 32px 32px;
  display: block;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
}

button.personal-information-card {
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button.personal-information-card:hover {
  border-color: #b8b8bd;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .095);
  transform: translateY(-1px);
}

button.personal-information-card:active { transform: translateY(0); }

.personal-information-card h2,
.personal-information-copy strong {
  display: block;
  margin: 0;
  color: #1d1d1f;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.personal-information-card > p,
.personal-information-copy small {
  display: block;
  margin: 13px 0 0;
  color: #6e6e73;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.personal-information-icon {
  position: absolute;
  top: 31px;
  right: 30px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0071e3;
}

.personal-information-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.personal-account-controls {
  display: block;
  margin: 24px auto 0;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--account-blue);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.personal-account-controls:hover { color: var(--account-blue-hover); text-decoration: underline; text-underline-offset: 4px; }

body.personal-setting-open { overflow: hidden; }

.personal-setting-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 40px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  color: #1d1d1f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24), 0 8px 26px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}
.personal-setting-dialog.is-wide { width: min(760px, calc(100% - 32px)); }
.personal-setting-dialog::backdrop {
  background: rgba(245, 245, 247, .52);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
.personal-setting-dialog[open] { animation: personal-window-in .24s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes personal-window-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.personal-setting-window {
  max-height: min(780px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.personal-setting-window-header {
  position: relative;
  padding: 27px 74px 22px 30px;
  border-bottom: 1px solid #e5e5e7;
  background: rgba(255, 255, 255, .58);
}
.personal-setting-window-header p {
  margin: 0 0 6px;
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
}
.personal-setting-window-header h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.personal-setting-window-header span {
  display: block;
  margin-top: 7px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.45;
}
.personal-setting-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ededf0;
  color: #4c4c4f;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.personal-setting-close:hover { background: #e1e1e5; }
.personal-setting-close:active { transform: scale(.94); }
.personal-setting-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.personal-setting-window-body { min-height: 0; overflow: auto; overscroll-behavior: contain; background: rgba(255, 255, 255, .34); }
.personal-setting-pane { padding: 28px 30px 34px; }
.personal-setting-form,
.personal-setting-pane .password-reset-flow,
.personal-setting-pane .change-email-flow { max-width: none; }
.personal-setting-pane .field input {
  min-height: 46px;
  border-color: #c7c7cc;
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  font-size: 15px;
}
.personal-setting-pane .field input:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .14); }
.personal-setting-help { margin: 12px 0 20px; color: #6e6e73; font-size: 13px; line-height: 1.5; }
.personal-current-value {
  margin-bottom: 22px;
  padding: 17px 18px;
  border-radius: 12px;
  background: rgba(245, 245, 247, .68);
}
.personal-current-value span { display: block; color: #86868b; font-size: 11px; }
.personal-current-value strong { display: block; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.personal-setting-pane .action-button { min-height: 42px; border-radius: 980px; }
.personal-setting-pane .form-message { min-height: 18px; }

.personal-setting-pane .security-row {
  min-height: 0;
  padding: 0 0 24px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e5e5e7;
  background: transparent;
}
.personal-setting-pane .security-row strong { font-size: 17px; }
.personal-setting-pane .security-row p { margin: 6px 0 0; color: #6e6e73; font-size: 13px; }
.personal-setting-pane .login-activity { margin-top: 24px; }
.personal-setting-pane .login-activity h3 { margin: 0 0 12px; font-size: 15px; }
.personal-setting-pane .activity-list { overflow: hidden; border: 1px solid #e1e1e4; border-radius: 13px; }
.personal-setting-pane .activity-entry { padding: 14px 16px; background: rgba(255, 255, 255, .64); }
.personal-setting-pane .activity-entry + .activity-entry { border-top: 1px solid #e8e8ea; }

.personal-setting-pane-account { display: grid; gap: 20px; }
.personal-setting-pane-account[hidden] { display: none; }
.personal-setting-pane-account .preference-panel,
.personal-setting-pane-account .data-panel,
.personal-setting-pane-account .danger-zone,
.personal-setting-pane-account .delete-confirm {
  margin: 0;
  padding: 22px;
  border: 1px solid #e1e1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
}
.personal-setting-pane-account :is(.preference-panel, .data-panel) h3 { margin: 0; font-size: 18px; }
.personal-setting-pane-account .danger-zone { border-color: #f0c8c5; }

/* Subscription & Payments — Apple-style purchase center. */
body[data-page="dashboard"] .subscription-payment-panel {
  width: min(1080px, 100%);
  padding-top: clamp(8px, 2vw, 24px);
}

body[data-page="dashboard"] .subscription-payment-panel::before { content: none !important; display: none !important; }

.subscription-page-header {
  position: relative;
  min-height: 52px;
}

.subscription-settings-button {
  position: absolute;
  top: 3px;
  right: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.subscription-settings-button:hover,
.subscription-settings-button.is-active { border-color: #b8b8bd; background: #f5f5f7; }
.subscription-settings-button:active { transform: scale(.97); }
.subscription-settings-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.subscription-manager {
  margin: 14px 0 54px;
  padding: 30px;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .07);
  scroll-margin-top: 96px;
}

.subscription-manager-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.subscription-manager-heading p { margin: 0 0 6px; color: #86868b; font-size: 12px; }
.subscription-manager-heading h2 { margin: 0; color: #1d1d1f; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.subscription-manager .membership-status { padding: 6px 10px; border-radius: 8px; background: #f5f5f7; color: #515154; font-size: 12px; font-weight: 500; text-transform: capitalize; }

.subscription-manager-details {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e5e5e7;
  border-bottom: 1px solid #e5e5e7;
}
.subscription-manager-details > div { min-width: 0; padding: 20px 22px 20px 0; }
.subscription-manager-details > div + div { padding-left: 22px; border-left: 1px solid #e5e5e7; }
.subscription-manager-details dt { color: #86868b; font-size: 11px; }
.subscription-manager-details dd { margin: 7px 0 0; color: #1d1d1f; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.subscription-manager-actions { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.subscription-manager-actions p { max-width: 590px; margin: 0; color: #6e6e73; font-size: 13px; line-height: 1.5; }
.subscription-manage-button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.subscription-manage-button:hover { background: #0077ed; }

.purchase-center { margin-top: clamp(8px, 2vw, 20px); scroll-margin-top: 96px; }
.purchase-center-heading { text-align: center; }
.purchase-center-heading h2 { margin: 0; color: #1d1d1f; font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.subscription-heading-accent {
  color: #3b0764;
  background: linear-gradient(100deg, #2e1065 0%, #6b21a8 52%, #3b0764 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purchase-tabs {
  width: fit-content;
  margin: 26px auto 30px;
  padding: 3px;
  display: flex;
  border-radius: 999px;
  background: #ededf0;
}
.purchase-tabs button {
  min-height: 32px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.purchase-tabs button.is-active { background: #fff; color: #1d1d1f; box-shadow: 0 1px 5px rgba(0, 0, 0, .13); }

.purchase-panel[hidden] { display: none; }
.subscription-plan-grid,
.additional-purchase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.purchase-plan-card {
  min-width: 0;
  min-height: 540px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .065);
}
.purchase-plan-card-featured { border-color: #c9d8f2; background: #f3f6ff; }
.purchase-plan-topline { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.purchase-plan-topline h3 { margin: 0; color: #1d1d1f; font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.purchase-plan-topline > span { padding: 5px 7px; border-radius: 7px; background: #e2e9ff; color: #3154a6; font-size: 10px; font-weight: 600; }
.purchase-plan-price { min-height: 70px; margin: 22px 0 0; display: flex; align-items: baseline; color: #1d1d1f; font-variant-numeric: tabular-nums; }
.purchase-plan-price sup { margin-right: 3px; font-size: 16px; }
.purchase-plan-price strong { font-size: 48px; font-weight: 500; letter-spacing: -.05em; }
.purchase-plan-price small { margin-left: 8px; color: #6e6e73; font-size: 11px; }
.purchase-plan-price-team { align-items: center; }
.purchase-plan-price-team strong { font-size: 30px; letter-spacing: -.03em; }
.purchase-plan-description { min-height: 48px; margin: 12px 0 20px; color: #515154; font-size: 14px; line-height: 1.5; }
.purchase-plan-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.purchase-plan-button:hover { background: #0077ed; }
.purchase-plan-button:active { transform: translateY(1px); }
.purchase-plan-button:disabled { background: #b8b8bd; cursor: not-allowed; }
.purchase-plan-button-dark { background: #1d1d1f; }
.purchase-plan-button-dark:hover { background: #000; }
.purchase-plan-secondary {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 8px 16px;
  border: 1px solid #0071e3;
  border-radius: 999px;
  background: transparent;
  color: #0071e3;
  font-size: 13px;
  font-weight: 500;
  transition: background .18s ease, transform .18s ease;
}
.purchase-plan-secondary:hover { background: rgba(0, 113, 227, .07); }
.purchase-plan-secondary:active { transform: translateY(1px); }
.purchase-plan-secondary:disabled { border-color: #b8b8bd; background: transparent; color: #86868b; cursor: not-allowed; }
.purchase-feature-list { margin: 25px 0 0; padding: 22px 0 0; display: grid; gap: 16px; border-top: 1px solid rgba(0, 0, 0, .1); list-style: none; }
.purchase-feature-list li { position: relative; padding-left: 25px; color: #3a3a3c; font-size: 13px; line-height: 1.42; }
.purchase-feature-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: #0071e3; font-size: 13px; font-weight: 600; }
.purchase-plan-card-team .purchase-feature-list li::before { color: #1d1d1f; }

.additional-purchase-card {
  position: relative;
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(92, 80, 166, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(108, 92, 231, .16), transparent 36%),
    linear-gradient(145deg, #fff 0%, #f8f7ff 100%);
  box-shadow: 0 18px 42px rgba(37, 31, 77, .09);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.additional-purchase-card-cutter {
  border-color: rgba(26, 132, 118, .18);
  background:
    radial-gradient(circle at 96% 0%, rgba(45, 170, 150, .15), transparent 36%),
    linear-gradient(145deg, #fff 0%, #f4fbf9 100%);
}
.additional-purchase-card:has(> button:not(:disabled)):hover {
  transform: translateY(-2px);
  border-color: rgba(92, 80, 166, .32);
  box-shadow: 0 22px 48px rgba(37, 31, 77, .13);
}
.additional-purchase-card-cutter:has(> button:not(:disabled)):hover { border-color: rgba(26, 132, 118, .34); }
.additional-purchase-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.additional-purchase-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(92, 80, 166, .1); color: #5949bf; box-shadow: inset 0 0 0 1px rgba(92, 80, 166, .08); }
.additional-purchase-card-cutter .additional-purchase-icon { background: rgba(26, 132, 118, .1); color: #157d70; box-shadow: inset 0 0 0 1px rgba(26, 132, 118, .08); }
.additional-purchase-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.additional-purchase-badge { padding: 6px 9px; border: 1px solid rgba(92, 80, 166, .13); border-radius: 999px; background: rgba(255, 255, 255, .62); color: #6558a9; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.additional-purchase-card-cutter .additional-purchase-badge { border-color: rgba(26, 132, 118, .13); color: #18796e; }
.additional-purchase-card .additional-purchase-kicker { margin: 23px 0 0; color: #7467bd; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.additional-purchase-card-cutter .additional-purchase-kicker { color: #23897c; }
.additional-purchase-card h3 { margin: 5px 0 0; color: #1d1d1f; font-size: 23px; font-weight: 630; letter-spacing: -.03em; }
.additional-purchase-card .additional-purchase-description { min-height: 59px; margin: 9px 0 18px; color: #66636d; font-size: 13px; line-height: 1.52; }
.additional-purchase-status { margin-top: auto; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(92, 80, 166, .1); border-radius: 12px; background: rgba(255, 255, 255, .68); }
.additional-purchase-card-cutter .additional-purchase-status { border-color: rgba(26, 132, 118, .1); }
.additional-purchase-status span { color: #77737e; font-size: 10.5px; line-height: 1.35; }
.additional-purchase-status strong { flex: 0 0 auto; color: #36323d; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.additional-purchase-card > button { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #6251c8, #5142ad); color: #fff; font-size: 12.5px; font-weight: 650; box-shadow: 0 8px 18px rgba(81, 66, 173, .18); transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.additional-purchase-card-cutter > button { background: linear-gradient(135deg, #228f80, #15776c); box-shadow: 0 8px 18px rgba(21, 119, 108, .18); }
.additional-purchase-card > button:not(:disabled):hover { filter: brightness(1.04); box-shadow: 0 10px 22px rgba(81, 66, 173, .25); }
.additional-purchase-card-cutter > button:not(:disabled):hover { box-shadow: 0 10px 22px rgba(21, 119, 108, .24); }
.additional-purchase-card > button:not(:disabled):active { transform: translateY(1px); }
.additional-purchase-card > button:disabled { border: 1px solid rgba(94, 88, 102, .12); background: rgba(237, 235, 241, .78); color: #918d97; box-shadow: none; cursor: not-allowed; }

body[data-page="dashboard"] .purchase-redemption {
  grid-column: 1 / -1;
  margin-top: 0;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  background: #f5f5f7;
}
.purchase-redemption h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

body[data-page="dashboard"] .subscription-payment-panel .billing-message { margin-top: 14px; }
body[data-page="dashboard"] .subscription-payment-panel .billing-history { margin-top: 62px; }

/* Dedicated account search — support-style workspace with Apple Account restraint. */
body[data-page="search"] {
  --account-ink: #1d1d1f;
  --account-muted: #6e6e73;
  --account-line: #d2d2d7;
  --account-blue: #0071e3;
  --account-blue-hover: #0077ed;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fbfbfd;
  color: var(--account-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-page="search"] :focus-visible {
  outline: 3px solid rgba(0, 113, 227, .38);
  outline-offset: 3px;
}

.account-search-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, .86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.account-search-bar-inner {
  width: min(1120px, calc(100% - 56px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.account-search-bar .account-brand-mark { display: block; border-radius: 12px; }
.account-search-bar .account-brand-mark img { width: 44px; height: 44px; display: block; object-fit: contain; }
.account-search-back {
  min-height: 34px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--account-blue);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
.account-search-back:hover { color: var(--account-blue-hover); }
.account-search-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.account-search-page {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: start center;
  padding: clamp(64px, 10vh, 106px) 24px 64px;
}

.account-search-hero {
  width: min(900px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.account-search-hero-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--account-blue);
}
.account-search-hero-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.account-search-hero > p { margin: 18px 0 0; color: var(--account-blue); font-size: 13px; font-weight: 600; }
.account-search-hero h1 { margin: 5px 0 0; color: var(--account-ink); font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.account-search-hero > span { max-width: 620px; margin-top: 14px; color: var(--account-muted); font-size: 15px; line-height: 1.55; }
.account-search-workspace { width: min(820px, 100%); margin-top: 34px; text-align: left; }
body[data-page="search"] .account-search-form { margin-top: 0; min-height: 64px; border-radius: 16px; box-shadow: 0 18px 45px rgba(0, 0, 0, .09); }
body[data-page="search"] .account-search-form input { font-size: 16px; }
body[data-page="search"] .account-search-results { max-height: 360px; overflow-y: auto; box-shadow: 0 18px 45px rgba(0, 0, 0, .08); }
body[data-page="search"] .account-search-result { min-height: 68px; padding: 14px 18px; }
body[data-page="search"] .account-search-result strong { font-size: 14px; }
body[data-page="search"] .account-search-result small { margin-top: 2px; font-size: 12px; }
body[data-page="search"] .account-ai-answer { padding: 22px; }
body[data-page="search"] .account-ai-answer p { font-size: 14px; line-height: 1.65; }
body[data-page="search"] .account-assist-note { margin-top: 10px; color: #86868b; font-size: 10px; }

.account-search-footer {
  width: min(1120px, calc(100% - 56px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  color: #86868b;
  font-size: 11px;
}
.account-search-footer nav { display: flex; gap: 20px; }
.account-search-footer a { color: #6e6e73; text-decoration: none; }
.account-search-footer a:hover { color: #1d1d1f; }

@media (max-width: 720px) {
  body[data-page="dashboard"] .account-homebar .workbar-inner { width: calc(100% - 32px); height: 68px; }
  body[data-page="dashboard"] .account-homebar .account-brand-mark img { width: 41px; height: 41px; }
  body[data-page="dashboard"] .account-homebar .workbar-brand strong { font-size: 20px; }
  body[data-page="dashboard"] .account-signout { min-height: 34px; padding-inline: 14px; font-size: 14px; }
  body[data-page="dashboard"] .dashboard-frame { min-height: calc(100dvh - 68px); }
  body[data-page="dashboard"] .dashboard-shell { padding: 28px 18px 32px; }
  body[data-page="dashboard"] .account-profile-avatar { width: 78px; height: 78px; }
  .account-profile-hero h1 { margin-top: 15px; font-size: 31px; }
  .account-assist-heading { align-items: start; flex-direction: column; gap: 5px; }
  .account-assist-heading > span { padding: 0; }
  .account-search-form { min-height: 60px; padding-left: 15px; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; }
  .account-search-form kbd { display: none; }
  .account-search-form input { height: 42px; font-size: 15px; }
  .account-search-form button { min-height: 40px; padding-inline: 13px; }
  .account-settings-grid { grid-template-columns: 1fr; }
  .account-setting-card-wide { grid-column: 1; }
  .account-setting-card { min-height: 132px; padding: 23px 58px 23px 24px; }
  .account-setting-icon { top: 21px; right: 22px; width: 25px; height: 25px; }
  .account-setting-icon svg { width: 23px; height: 23px; }
  .account-setting-copy strong { font-size: 19px; }
  .account-setting-copy small { font-size: 13px; }
  body[data-page="dashboard"] .personal-information-panel { padding-top: 8px; }
  .personal-information-header { margin-bottom: 32px; }
  .personal-information-header h1 { font-size: 36px; }
  .personal-information-header p { margin-top: 16px; font-size: 16px; }
  .personal-information-grid { grid-template-columns: 1fr; gap: 16px; }
  .personal-information-card { min-height: 150px; padding: 27px 62px 26px 25px; }
  .personal-information-card h2,
  .personal-information-copy strong { font-size: 22px; }
  .personal-information-card > p,
  .personal-information-copy small { margin-top: 10px; font-size: 15px; }
  .personal-information-icon { top: 25px; right: 23px; width: 30px; height: 30px; }
  .personal-information-icon svg { width: 28px; height: 28px; }
  .personal-account-controls { margin-top: 18px; }
  .personal-setting-dialog,
  .personal-setting-dialog.is-wide {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }
  .personal-setting-window { max-height: calc(100dvh - 20px); }
  .personal-setting-window-header { padding: 23px 62px 19px 21px; }
  .personal-setting-window-header h2 { font-size: 24px; }
  .personal-setting-close { top: 20px; right: 18px; }
  .personal-setting-pane { padding: 23px 20px 28px; }
  .personal-setting-pane .security-row { align-items: stretch; }
  .personal-setting-pane .security-row .action-button { width: 100%; margin-top: 16px; }
  body[data-page="dashboard"] .subscription-payment-panel { padding-top: 4px; }
  .subscription-page-header { min-height: 48px; }
  .subscription-settings-button { width: 42px; height: 42px; }
  .subscription-manager { margin-bottom: 40px; padding: 22px 20px; }
  .subscription-manager-heading h2 { font-size: 24px; }
  .subscription-manager-details { grid-template-columns: 1fr; }
  .subscription-manager-details > div { padding: 16px 0; }
  .subscription-manager-details > div + div { padding-left: 0; border-top: 1px solid #e5e5e7; border-left: 0; }
  .subscription-manager-actions { align-items: stretch; flex-direction: column; }
  .subscription-manage-button { width: 100%; }
  .purchase-center { margin-top: 8px; }
  .purchase-center-heading h2 { font-size: 29px; }
  .purchase-tabs { width: 100%; }
  .purchase-tabs button { flex: 1; padding-inline: 10px; }
  .subscription-plan-grid,
  .additional-purchase-grid { grid-template-columns: 1fr; gap: 16px; }
  .purchase-plan-card { min-height: 0; padding: 25px 22px 27px; }
  .purchase-plan-description { min-height: 0; }
  body[data-page="dashboard"] .purchase-redemption { grid-column: 1; padding: 22px 18px; }
  .account-search-bar-inner,
  .account-search-footer { width: calc(100% - 32px); }
  .account-search-page { padding: 54px 18px 48px; }
  .account-search-hero-icon { width: 52px; height: 52px; }
  .account-search-hero h1 { font-size: 40px; }
  .account-search-hero > span { font-size: 14px; }
  .account-search-workspace { margin-top: 28px; }
}

@media (max-width: 430px) {
  body[data-page="dashboard"] .dashboard-shell { padding-inline: 14px; }
  .account-search-form { padding: 7px 7px 7px 13px; grid-template-columns: 18px minmax(0, 1fr); }
  .account-search-form button { grid-column: 1 / -1; min-height: 39px; }
  .account-search-footer { padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .personal-setting-dialog[open] { animation: none; }
  .account-setting-card,
  button.personal-information-card,
  .personal-setting-close,
  .subscription-settings-button,
  .purchase-tabs button,
  .purchase-plan-button,
  .account-setting-arrow,
  .account-signout,
  .account-search-form button { transition: none; }
}

/* Dashboard Support — same centered Apple-style language as support.html. */
body[data-page="dashboard"] #dashboard-panel-support {
  min-height: calc(100dvh - 150px);
}

.dashboard-support-center {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 170px);
  padding: clamp(58px, 9vh, 94px) 0 36px;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-support-center::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -310px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 39, 122, .07), transparent 68%);
  pointer-events: none;
}

.dashboard-support-heading { text-align: center; }
.dashboard-support-heading > p {
  margin: 0 0 14px;
  color: #77777d;
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.dashboard-support-heading h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.dashboard-support-heading h1 span {
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 48%, #4f46e5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.dashboard-support-heading small {
  display: block;
  max-width: 560px;
  margin: 13px auto 0;
  color: #86868b;
  font-size: 12.5px;
  line-height: 1.55;
}

.dashboard-support-log {
  display: none;
  width: 100%;
  max-height: min(45vh, 440px);
  margin: 24px 0 10px;
  padding: 14px clamp(6px, 4vw, 42px) 18px;
  overflow-y: auto;
  flex-direction: column;
  gap: 25px;
  scroll-behavior: smooth;
}
.dashboard-support-log.has-messages { display: flex; }
.dashboard-support-message {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dashboard-support-message.user {
  width: auto;
  max-width: min(72%, 610px);
  margin-left: auto;
  align-self: flex-end;
}
.dashboard-support-message.assistant { align-self: flex-start; }
.dashboard-support-message-meta {
  padding: 0 5px;
  color: #6e6e73;
  font-size: 10.5px;
  font-weight: 690;
  letter-spacing: .01em;
}
.dashboard-support-message.user .dashboard-support-message-meta { display: none; }
.dashboard-support-message.assistant .dashboard-support-message-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cfc, #4f46e5);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, .09);
}
.dashboard-support-message-body {
  color: #303038;
  font-size: 13.5px;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.dashboard-support-message.user .dashboard-support-message-body {
  padding: 11px 15px;
  border: 1px solid rgba(99, 91, 255, .12);
  border-radius: 17px 17px 6px 17px;
  background: linear-gradient(135deg, #f4f1ff, #ecebff);
  color: #312e81;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .06);
}
.dashboard-support-message.assistant .dashboard-support-message-body { padding: 0 5px; }
.dashboard-support-message-body > div + div { margin-top: 6px; }
.dashboard-support-message-body a { color: #0071e3; text-decoration: underline; text-underline-offset: 2px; }
.dashboard-support-list-line { position: relative; padding-left: 19px; }
.dashboard-support-list-line::before { content: attr(data-marker); position: absolute; left: 0; color: #86868b; }

.dashboard-support-composer-wrap {
  width: min(820px, 100%);
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
#dashboard-panel-support.has-messages .dashboard-support-center { padding-top: 18px; }
#dashboard-panel-support.has-messages .dashboard-support-heading > p,
#dashboard-panel-support.has-messages .dashboard-support-heading small { display: none; }
#dashboard-panel-support.has-messages .dashboard-support-heading h1 { font-size: 19px; letter-spacing: -.025em; }
#dashboard-panel-support.has-messages .dashboard-support-composer-wrap { margin-top: auto; }
.dashboard-support-compose {
  width: 100%;
  min-height: 58px;
  padding: 6px 7px 6px 17px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 32px rgba(0, 0, 0, .06);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dashboard-support-compose:focus-within {
  border-color: rgba(79, 70, 229, .27);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 15px 38px rgba(49, 46, 129, .1);
}
.dashboard-support-compose > svg { width: 19px; height: 19px; color: #8e8e93; }
.dashboard-support-compose input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1f;
  font: 400 14.5px/1.3 inherit;
}
.dashboard-support-compose input::placeholder { color: #929297; }
.dashboard-support-compose button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e1b4b, #312e81 52%, #4f46e5);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(49, 46, 129, .25);
  transition: transform .15s ease, filter .18s ease;
}
.dashboard-support-compose button:hover { filter: brightness(1.1); transform: scale(1.035); }
.dashboard-support-compose button:disabled { opacity: .45; cursor: wait; transform: none; }
.dashboard-support-compose button svg { width: 18px; height: 18px; }
.dashboard-support-prompts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dashboard-support-prompts[hidden] { display: none; }
.dashboard-support-prompts button {
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #6e6e73;
  font: 500 11.5px/1.2 inherit;
  cursor: pointer;
}
.dashboard-support-prompts button:hover { border-color: rgba(49, 46, 129, .22); color: #1d1d1f; }
.dashboard-support-note { margin: 12px 18px 0; color: #929297; font-size: 10.5px; line-height: 1.45; text-align: center; }
.dashboard-support-links { margin-top: 11px; display: flex; justify-content: center; gap: 18px; }
.dashboard-support-links a { color: #0071e3; font-size: 11px; }
.dashboard-support-typing { min-height: 20px; display: inline-flex; align-items: center; gap: 4px; }
.dashboard-support-typing i { width: 5px; height: 5px; border-radius: 50%; background: #737378; animation: dashboard-support-pulse 1.1s ease-in-out infinite; }
.dashboard-support-typing i:nth-child(2) { animation-delay: .15s; }
.dashboard-support-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dashboard-support-pulse { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 620px) {
  .dashboard-support-center { min-height: calc(100dvh - 152px); padding-top: 40px; }
  .dashboard-support-heading h1 { font-size: 31px; }
  .dashboard-support-heading small { padding-inline: 12px; font-size: 11.5px; }
  .dashboard-support-log { max-height: 43vh; padding-inline: 2px; gap: 21px; }
  .dashboard-support-message.user { max-width: 88%; }
  .dashboard-support-message-body { font-size: 13px; }
  .dashboard-support-compose { min-height: 54px; padding-left: 14px; grid-template-columns: 18px minmax(0, 1fr) 38px; }
  .dashboard-support-compose input { font-size: 14px; }
  .dashboard-support-compose button { width: 38px; height: 38px; }
  .dashboard-support-prompts { gap: 6px; }
  .dashboard-support-prompts button { padding: 7px 10px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-support-compose,
  .dashboard-support-compose button { transition: none; }
  .dashboard-support-typing i { animation: none; opacity: .55; }
}
