.account-page { min-height: 100vh; }
.account-nav { justify-content: space-between; }
.account-nav-actions { display: flex; align-items: center; gap: 16px; }
.account-back { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.account-back:hover { color: var(--accent-strong); }
.account-main { overflow: visible; }
.account-shell {
  width: min(calc(100% - 32px), 1080px);
  min-height: calc(100vh - 75px);
  margin-inline: auto;
  padding-block: clamp(42px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}
.account-story h1 { max-width: 650px; margin: 0; font: 600 clamp(44px, 6vw, 68px)/.98 var(--serif); letter-spacing: -.045em; }
.account-story h1 em { color: var(--accent); font-style: normal; }
.account-lead { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.58; }
.account-benefits { display: grid; gap: 4px; margin: 34px 0 0; padding: 0; list-style: none; }
.account-benefits li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.account-benefits li:last-child { border-bottom: 1px solid var(--line); }
.account-benefits li > span { color: var(--accent-strong); font: 800 11px/1.5 var(--mono); letter-spacing: .08em; }
.account-benefits strong, .account-benefits small { display: block; }
.account-benefits strong { font-size: 14px; }
.account-benefits small { margin-block-start: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-privacy-note { margin: 18px 0 0; color: var(--faint); font-size: 11px; font-weight: 700; }
.account-panel {
  position: relative;
  min-height: 490px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(222, 217, 206, .96);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.account-panel::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 1px solid rgba(156, 90, 26, .15); border-radius: inherit; background: var(--accent-soft); }
.account-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-kicker { margin: 0 0 5px; color: var(--accent-strong); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.account-panel h2 { margin: 0; font: 650 25px/1.1 var(--serif); letter-spacing: -.025em; }
.account-user-button { width: 40px; min-width: 40px; min-height: 40px; display: grid; place-items: center; }
.account-user-button[hidden] { display: none; }
.auth-status { min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.auth-status[hidden], .auth-mount[hidden], .signed-in-account[hidden] { display: none; }
.auth-status.is-error { color: var(--bad); }
.auth-status.is-error::before { content: "!"; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f7e5e2; font: 850 18px/1 var(--sans); }
.auth-spinner { width: 28px; height: 28px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: auth-spin .8s linear infinite; }
.auth-status.is-error .auth-spinner { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-mount { min-height: 340px; margin-block-start: 24px; }
.auth-mount > div { margin-inline: auto; }
.signed-in-account { padding-block: 28px 8px; text-align: start; }
.signed-in-account h3 { margin: 0; font: 650 27px/1.1 var(--serif); }
.signed-in-account .account-email { color: rgba(255,255,255,.7); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.signed-in-account .account-security-status { color: #bfe1cb; font-size: 11px; font-weight: 800; }
.signed-in-account .account-security-status.is-error { color: #ffd0ca; }
.account-legal, .auth-noscript { margin: 18px auto 0; color: var(--faint); font-size: 10px; line-height: 1.5; text-align: center; }
.account-legal { max-width: 340px; }
.auth-noscript { color: var(--bad); }

.account-library-ready { background: #f4f2ed; }
.account-library-ready .account-main {
  background:
    radial-gradient(circle at 8% 0, rgba(156,90,26,.08), transparent 30%),
    radial-gradient(circle at 96% 20%, rgba(41,92,65,.06), transparent 28%);
}
.account-library-ready .account-shell {
  width: min(calc(100% - 32px), 1280px);
  min-height: calc(100vh - 75px);
  padding-block: clamp(28px, 4vw, 52px) 72px;
  display: block;
}
.account-library-ready .account-story,
.account-library-ready .account-panel-head { display: none; }
.account-library-ready .account-panel {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.account-library-ready .account-panel::before { display: none; }
.account-library-ready .signed-in-account { padding: 0; }
.account-library-ready .account-legal { max-width: none; margin-block-start: 28px; }

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 15%, rgba(214,168,104,.22), transparent 30%),
    linear-gradient(135deg, #211d18 0%, #31261d 58%, #493321 100%);
  color: #fffaf1;
  box-shadow: 0 24px 70px rgba(35,28,21,.18);
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 50%, rgba(255,255,255,.035));
}
.dashboard-hero-copy, .dashboard-hero-actions { position: relative; z-index: 1; }
.dashboard-hero .account-kicker { color: #d9aa6d; }
.dashboard-hero h3 { max-width: 680px; font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -.045em; }
.dashboard-intro { max-width: 610px; margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }
.dashboard-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block-start: 17px; }
.dashboard-secure-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #72c58e; box-shadow: 0 0 0 5px rgba(114,197,142,.12); }
.dashboard-identity-divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.dashboard-hero-actions { min-width: 210px; display: grid; justify-items: stretch; gap: 9px; }
.dashboard-primary-action { min-height: 48px; display: flex; justify-content: space-between; gap: 22px; border-color: #fff6e8; background: #fff6e8; color: #302116; box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.dashboard-primary-action:hover { border-color: #fff; background: #fff; color: #21160f; transform: translateY(-1px); }
.dashboard-profile-action, .dashboard-signout { min-height: 34px; border: 0; border-radius: 10px; background: transparent; font: 750 11px/1 var(--sans); cursor: pointer; }
.dashboard-profile-action { color: rgba(255,255,255,.82); }
.dashboard-profile-action:hover { background: rgba(255,255,255,.09); color: #fff; }
.dashboard-signout { min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.58); font: 750 11px/1 var(--sans); cursor: pointer; }
.dashboard-signout:hover { background: rgba(255,255,255,.07); color: #fff; }
.dashboard-signout:focus-visible, .dashboard-profile-action:focus-visible { outline: 3px solid rgba(217,170,109,.4); outline-offset: 2px; }

.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-block-start: 15px; }
.dashboard-metric { min-height: 104px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; padding: 20px; border: 1px solid rgba(215,210,200,.88); border-radius: 21px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(38,31,23,.045); }
.dashboard-metric-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); }
.dashboard-metric-icon.is-secure { background: var(--forest-soft); color: var(--forest); }
.dashboard-metric-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-metric:first-child .dashboard-metric-icon svg { fill: currentColor; stroke: none; }
.dashboard-metric strong, .dashboard-metric span { display: block; }
.dashboard-metric strong { color: var(--ink); font: 700 25px/1 var(--serif); letter-spacing: -.025em; }
.dashboard-metric div > span { margin-block-start: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.dashboard-content { display: block; margin-block-start: 16px; }
.analysis-library { min-width: 0; padding: clamp(24px, 3vw, 34px); border: 1px solid rgba(215,210,200,.9); border-radius: 25px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(38,31,23,.055); }
.analysis-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.analysis-library-head h4 { margin: 0; font: 650 24px/1.1 var(--serif); letter-spacing: -.025em; }
.analysis-library-head > div > p:last-child { max-width: 470px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.analysis-library-count { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid rgba(156,90,26,.16); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 850; }
.analysis-library-status { min-height: 330px; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); font-size: 12px; font-weight: 750; }
.analysis-library-status[hidden], .analysis-library-list[hidden], .analysis-library-empty[hidden], .analysis-library-error[hidden], .analysis-library-more[hidden] { display: none; }
.analysis-library-list { margin-block-start: 24px; overflow: hidden; border: 1px solid rgba(213,207,197,.95); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(34,29,23,.04); }
.analysis-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.analysis-table-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.analysis-table th { padding: 13px 18px; border-bottom: 1px solid rgba(213,207,197,.95); background: #f6f4ef; color: #8a8379; font-size: 9px; font-weight: 850; letter-spacing: .085em; text-align: left; text-transform: uppercase; }
.analysis-table th:nth-child(1) { width: 15%; }
.analysis-table th:nth-child(2) { width: 28%; }
.analysis-table th:nth-child(3) { width: 11%; }
.analysis-table th:nth-child(4) { width: 27%; }
.analysis-table th:nth-child(5) { width: 9%; }
.analysis-table th:nth-child(6) { width: 10%; text-align: right; }
.analysis-table-row { background: #fff; transition: background-color .16s ease, box-shadow .16s ease; }
.analysis-table-row + .analysis-table-row td { border-top: 1px solid #ece8df; }
.analysis-table-row.is-latest td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.analysis-table-row:hover { background: #fbf8f2; }
.analysis-table td { height: 86px; padding: 16px 18px; vertical-align: middle; }
.analysis-table-date-cell { vertical-align: top !important; }
.analysis-table-date { display: grid; gap: 4px; color: var(--muted); }
.analysis-table-date strong { color: var(--ink); font: 750 12px/1.25 var(--sans); }
.analysis-table-date span { color: var(--faint); font: 750 9px/1.3 var(--mono); }
.analysis-source-badge, .analysis-result-badge, .analysis-side-label, .analysis-player-you { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .035em; }
.analysis-source-badge { background: #f0eee8; color: var(--muted); }
.analysis-latest-badge { display: inline-flex; align-items: center; min-height: 19px; margin-block-start: 8px; padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 8px; font-weight: 850; }
.analysis-result-badge.is-win { background: var(--forest-soft); color: var(--forest); }
.analysis-result-badge.is-loss { background: #f7e5e2; color: var(--bad); }
.analysis-result-badge.is-draw { background: #e8edf2; color: #536172; }
.analysis-result-badge.is-neutral { background: #f1eee8; color: var(--faint); }
.analysis-table-game-cell { display: table-cell; }
.analysis-table-player { min-width: 0; display: flex; align-items: center; gap: 9px; }
.analysis-table-player + .analysis-table-player { margin-block-start: 8px; }
.analysis-table-piece { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; font-size: 18px; line-height: 1; }
.analysis-table-piece.is-white { border: 1px solid #ddd8cf; background: #fff; color: #4a4a47; }
.analysis-table-piece.is-black { background: #353a40; color: #fff; }
.analysis-table-player-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.analysis-player-you { margin-inline-start: 1px; min-height: 18px; padding: 3px 6px; background: var(--accent-soft); color: var(--accent-strong); }
.analysis-table-player-score { margin-inline-start: auto; color: var(--ink); font: 800 13px/1 var(--mono); }
.analysis-table-opening-cell strong, .analysis-table-opening-cell span { display: block; }
.analysis-table-opening-cell strong { overflow: hidden; color: var(--ink); font: 650 14px/1.32 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.analysis-table-opening-cell span { margin-block-start: 5px; color: var(--faint); font-size: 9px; font-weight: 750; }
.analysis-table-actions { text-align: right; }
.analysis-open-link, .analysis-delete-button { font: 800 10px/1 var(--sans); }
.analysis-open-link { min-height: 36px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 9px 8px 12px; border: 1px solid rgba(156,90,26,.22); border-radius: 10px; background: #fff8ee; color: var(--accent-strong); text-decoration: none; }
.analysis-open-arrow { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; }
.analysis-open-link:hover { border-color: rgba(156,90,26,.4); background: var(--accent-soft); }
.analysis-delete-button { min-height: 24px; margin-block-start: 5px; padding: 4px 5px; border: 0; background: transparent; color: #b0aaa2; cursor: pointer; }
.analysis-delete-button:hover { color: var(--bad); text-decoration: underline; }
.analysis-delete-button:focus-visible, .analysis-open-link:focus-visible { outline: 3px solid rgba(156, 90, 26, .28); outline-offset: 2px; }
.analysis-library-more { min-height: 40px; margin: 14px auto 0; padding: 8px 14px; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font: 800 10px/1 var(--sans); cursor: pointer; }
.analysis-library-more:hover { border-color: rgba(156,90,26,.35); color: var(--accent-strong); }
.analysis-library-more:disabled { cursor: wait; opacity: .65; }
.analysis-library-empty, .analysis-library-error { min-height: 330px; display: grid; place-content: center; justify-items: center; padding: 35px 20px; text-align: center; }
.analysis-library-empty > span, .analysis-library-error > span { width: 56px; height: 56px; display: grid; place-items: center; margin-block-end: 16px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-strong); font-size: 27px; }
.analysis-library-error > span { background: #f7e5e2; color: var(--bad); font: 850 21px/1 var(--sans); }
.analysis-library-empty h5, .analysis-library-error h5 { margin: 0; font: 650 23px/1.15 var(--serif); }
.analysis-library-empty p, .analysis-library-error p { max-width: 330px; margin: 9px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.account-settings { margin-block-start: 34px; padding-block-start: 16px; border-top: 1px solid rgba(181,176,167,.45); }
.account-delete-link { min-height: 30px; padding: 5px 0; border: 0; background: transparent; color: #aaa49b; font: 700 9px/1 var(--sans); cursor: pointer; }
.account-delete-link:hover { color: #827b72; text-decoration: underline; }
.account-delete-link:focus-visible { outline: 3px solid rgba(156,90,26,.22); outline-offset: 3px; }
.profile-photo-dialog { width: min(calc(100% - 28px), 480px); padding: 0; border: 0; border-radius: 25px; background: transparent; color: var(--ink); }
.profile-photo-dialog::backdrop { background: rgba(24,21,18,.58); backdrop-filter: blur(6px); }
.profile-photo-card { position: relative; padding: 31px; border: 1px solid var(--line); border-radius: inherit; background: #fffdf8; box-shadow: 0 30px 90px rgba(15,13,11,.3); text-align: center; }
.profile-photo-card h2 { margin: 0; font: 650 29px/1.08 var(--serif); letter-spacing: -.03em; }
.profile-photo-card > p:not(.account-kicker) { max-width: 380px; margin: 11px auto 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-photo-close { position: absolute; inset: 16px 16px auto auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: #f2efe9; color: var(--muted); font: 400 22px/1 var(--sans); cursor: pointer; }
.profile-photo-close:hover { background: #e9e4dc; color: var(--ink); }
.profile-photo-preview-wrap { width: 126px; height: 126px; margin: 24px auto 18px; padding: 6px; border: 1px solid rgba(156,90,26,.22); border-radius: 50%; background: var(--accent-soft); box-shadow: 0 13px 32px rgba(46,34,23,.12); }
.profile-photo-preview { width: 112px; height: 112px; display: block; border-radius: 50%; object-fit: cover; background: #fff; }
.profile-photo-picker { min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: 800 11px/1 var(--sans); cursor: pointer; }
.profile-photo-picker:hover { border-color: rgba(156,90,26,.38); background: #fff9f0; color: var(--accent-strong); }
.profile-photo-picker:disabled { opacity: .58; cursor: wait; }
.profile-photo-hint { margin-block-start: 8px !important; color: var(--faint) !important; font-size: 9px !important; }
.profile-photo-progress { width: 100%; height: 8px; display: block; margin: 15px 0 2px; overflow: hidden; border: 0; border-radius: 999px; background: #e8e2d9; color: var(--accent); accent-color: var(--accent); }
.profile-photo-progress[hidden] { display: none; }
.profile-photo-progress::-webkit-progress-bar { border-radius: 999px; background: #e8e2d9; }
.profile-photo-progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--accent), #d6a052); transition: width .24s ease; }
.profile-photo-progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--accent), #d6a052); }
.profile-photo-status { min-height: 38px; display: grid; place-items: center; padding: 8px 10px; border-radius: 10px; background: #f5f2ec; font-weight: 750; }
.profile-photo-status.is-ready { background: var(--accent-soft); color: var(--accent-strong) !important; }
.profile-photo-status.is-success { background: var(--forest-soft); color: var(--forest) !important; }
.profile-photo-status.is-error { background: #f7e5e2; color: var(--bad) !important; }
.profile-photo-save { width: 100%; margin-block-start: 4px; }
.profile-photo-save:disabled { border-color: #d9d5ce; background: #e9e6e0; color: #8d8a84; box-shadow: none; cursor: not-allowed; }
.profile-photo-picker:focus-visible, .profile-photo-close:focus-visible { outline: 3px solid rgba(156,90,26,.25); outline-offset: 2px; }
.delete-analysis-dialog { width: min(calc(100% - 28px), 450px); padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--ink); }
.delete-analysis-dialog::backdrop { background: rgba(24, 21, 18, .55); backdrop-filter: blur(5px); }
.delete-analysis-card { padding: 28px; border: 1px solid var(--line); border-radius: inherit; background: #fffdf8; box-shadow: 0 30px 85px rgba(15, 13, 11, .28); text-align: center; }
.delete-analysis-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 18px; background: #f7e5e2; color: var(--bad); font-size: 29px; line-height: 1; }
.delete-analysis-card h2 { margin: 0; font: 650 29px/1.1 var(--serif); letter-spacing: -.025em; }
.delete-analysis-card > p:not(.account-kicker) { margin: 12px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.delete-analysis-card .delete-analysis-name { color: var(--ink); font-weight: 850; }
.delete-analysis-status { min-height: 20px; color: var(--bad) !important; font-weight: 750; }
.delete-analysis-status.is-neutral { color: var(--muted) !important; }
.delete-analysis-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block-start: 21px; }
.delete-analysis-actions [hidden] { display: none; }
.button.danger { border-color: var(--bad); background: var(--bad); color: #fff; }
.button.danger:hover { filter: brightness(.93); }
.button.danger:focus-visible { outline: 3px solid rgba(196, 61, 51, .26); outline-offset: 2px; }
.button.danger:disabled { border-color: #d9d5ce; background: #e9e6e0; color: #8d8a84; box-shadow: none; cursor: not-allowed; filter: none; }
.delete-account-card { text-align: start; }
.delete-account-card .delete-analysis-mark, .delete-account-card > .account-kicker, .delete-account-card > h2, .delete-account-card > #deleteAccountDescription { text-align: center; }
.delete-account-confirmation { display: grid; gap: 8px; margin-block-start: 20px; color: var(--ink); font-size: 12px; font-weight: 750; }
.delete-account-confirmation input { min-height: 48px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 800 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.delete-account-confirmation input:focus { border-color: var(--bad); outline: 3px solid rgba(196, 61, 51, .16); outline-offset: 1px; }
.delete-account-browser-note { padding: 10px 12px; border-radius: 11px; background: #f4f2ed; color: var(--faint) !important; font-size: 10px !important; text-align: start; }
#deleteAccountReauthenticate { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .account-shell { grid-template-columns: 1fr; align-items: start; padding-block: 46px 64px; gap: 38px; }
  .account-story { max-width: 680px; }
  .account-panel { width: min(100%, 520px); justify-self: center; }
  .account-library-ready .account-panel { width: 100%; }
}
@media (max-width: 520px) {
  .account-nav { min-height: 66px; }
  .account-nav .brand span, .account-back span { display: none; }
  .account-nav-actions { gap: 9px; }
  .account-shell { width: min(calc(100% - 24px), 1080px); min-height: auto; padding-block-start: 34px; }
  .account-story h1 { font-size: clamp(40px, 13vw, 54px); }
  .account-lead { font-size: 16px; }
  .account-panel { min-height: 460px; padding: 22px 16px; border-radius: 22px; }
  .account-panel::before { inset: 9px -7px -9px 7px; }
  .account-panel h2 { font-size: 22px; }
  .auth-mount { margin-inline: -6px; }
  .account-library-ready .account-shell { width: min(calc(100% - 20px), 1280px); padding-block: 18px 50px; }
  .account-library-ready .account-panel { padding: 0; }
  .dashboard-hero { min-height: 0; display: grid; gap: 26px; padding: 25px 20px; border-radius: 23px; }
  .dashboard-hero h3 { font-size: clamp(34px, 11vw, 45px); }
  .dashboard-intro { font-size: 12px; }
  .dashboard-identity { align-items: flex-start; flex-direction: column; }
  .dashboard-identity-divider { display: none; }
  .dashboard-hero-actions { width: 100%; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-metric { min-height: 94px; padding: 15px; }
  .dashboard-metric:last-child { grid-column: 1 / -1; }
  .dashboard-metric-icon { width: 36px; height: 36px; }
  .dashboard-metric strong { font-size: 21px; }
  .dashboard-content { margin-block-start: 13px; }
  .analysis-library { padding: 20px 14px; border-radius: 21px; }
  .analysis-library-head > div > p:last-child { display: none; }
  .profile-photo-card { padding: 26px 18px 20px; }
  .delete-analysis-card { padding: 24px 18px; }
  .delete-analysis-actions { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .analysis-library-list { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .analysis-table, .analysis-table tbody, .analysis-table tr, .analysis-table td { display: block; width: 100%; }
  .analysis-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .analysis-table-row { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
  .analysis-table-row + .analysis-table-row { margin-block-start: 9px; }
  .analysis-table-row + .analysis-table-row td { border-top: 0; }
  .analysis-table td { position: relative; min-height: 31px; padding: 7px 0 7px 78px; }
  .analysis-table td::before { content: attr(data-label); position: absolute; inset: 9px auto auto 0; color: var(--faint); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
  .analysis-table-date-cell { display: flex; width: 100%; }
  .analysis-table-game-cell { display: grid; gap: 5px; }
  .analysis-table-opening-cell strong { white-space: normal; }
  .analysis-table-actions { display: flex !important; align-items: center; justify-content: flex-start; gap: 7px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-spinner { animation-duration: 1.8s; }
  .analysis-table-row { transition: none; }
  .dashboard-primary-action:hover { transform: none; }
}
