/* Account-only screens. Shared header, sync indicator and PWA navigation
   remain in style.css because they also render on public pages. */
.account-body {
  min-height: 100vh;
  color: var(--text);
}

.account-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.account-page {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.account-auth-page {
  display: grid;
  min-height: 0;
  place-items: start center;
}

.account-auth-card,
.account-panel {
  border: 1px solid rgba(164, 139, 102, .42);
  border-radius: 10px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 14px 34px rgba(55, 44, 30, .09);
}

.account-auth-card {
  width: min(100%, 520px);
  border: 2px solid rgba(217, 162, 65, .74);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 251, 243, .97);
  box-shadow: 0 28px 68px rgba(1, 8, 20, .42), 0 0 0 7px rgba(217, 162, 65, .08);
}

.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(420px, 1.14fr);
  width: min(100%, 960px);
  overflow: hidden;
  padding: 0;
}

.account-auth-context {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 590px;
  overflow: hidden;
  border-right: 1px solid rgba(217, 162, 65, .62);
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 18% 16%, rgba(27, 198, 202, .16), transparent 19rem),
    radial-gradient(circle at 86% 84%, rgba(217, 162, 65, .14), transparent 21rem),
    linear-gradient(155deg, #142944 0%, #0a1a31 52%, #050d19 100%);
  box-shadow: inset -1px 0 rgba(255, 237, 194, .18);
}

.account-auth-context::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 46%, rgba(240, 199, 101, .055) 46.5%, transparent 47%),
    radial-gradient(circle at 50% 42%, rgba(255, 248, 235, .045), transparent 48%);
}

.account-auth-context::after {
  content: "✦";
  position: absolute;
  z-index: 0;
  top: 22px;
  right: 24px;
  color: #f3c965;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(243, 201, 101, .72);
}

.account-auth-context > * {
  position: relative;
  z-index: 1;
}

.account-auth-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0, rgba(27, 198, 202, .08), transparent 16rem),
    radial-gradient(circle at 0 100%, rgba(217, 162, 65, .1), transparent 17rem),
    rgba(255, 251, 243, .98);
}

.account-auth-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: rgba(255, 248, 235, .88);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.account-auth-benefits li {
  position: relative;
  padding-left: 22px;
}

.account-auth-benefits li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: #f0c765;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(240, 199, 101, .45);
}

.account-auth-context .account-eyebrow {
  color: #f0c765;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .42);
}

.account-auth-card .account-auth-context h1 {
  color: #fff8eb;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .76);
}

.account-eyebrow,
.account-panel-kicker {
  display: block;
  margin-bottom: 6px;
  color: #075c6b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-auth-card h1,
.account-dashboard-hero h1,
.account-legal h1 {
  margin: 0;
  color: #1d1a16;
  font-size: clamp(29px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.account-auth-context p,
.account-dashboard-hero p {
  margin: 10px 0 0;
  color: #6e695f;
  font-size: 15px;
  line-height: 1.5;
}

.account-auth-context p {
  color: rgba(255, 248, 235, .8);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.account-form {
  display: grid;
  gap: 9px;
}

.account-form label:not(.account-check) {
  display: grid;
  gap: 7px;
  margin-top: 5px;
  color: #3d3932;
  font-size: 14px;
  font-weight: 800;
}

.account-form input,
.account-form select,
.account-inline-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(168, 119, 41, .5);
  border-radius: 11px;
  padding: 9px 12px;
  background: rgba(255, 254, 251, .96);
  color: #1d1a16;
  font: inherit;
}

.account-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%23075c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 7px;
}

.account-form input:focus,
.account-form select:focus,
.account-inline-form input:focus {
  border-color: #0b7c87;
  outline: 3px solid rgba(217, 162, 65, .2);
  box-shadow: 0 0 0 1px rgba(11, 124, 135, .2);
}

.account-form input:disabled {
  background: #f2eee5;
  color: #6e695f;
}

.account-password-field {
  position: relative;
}

.account-password-field input {
  padding-right: 83px;
}

.account-password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 36px;
  border: 1px solid rgba(217, 162, 65, .2);
  border-radius: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #fff9e9, #f1e3bb);
  color: #684510;
  font-size: 12px;
  font-weight: 900;
}

.account-help {
  margin: 0 0 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.account-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 8px 0;
  color: #43506a;
  font-size: 13px;
  line-height: 1.45;
}

.account-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: #b78320;
}

.account-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border-color: rgba(217, 162, 65, .74);
  border-radius: 11px;
  background: linear-gradient(145deg, #17345d, #07162d);
  color: #fff8eb;
  font-weight: 800;
  box-shadow: 0 11px 24px rgba(4, 15, 35, .25), inset 0 1px rgba(255, 255, 255, .08);
}

.account-primary:hover,
.account-primary:focus-visible {
  border-color: #e7bd5c;
  background: linear-gradient(145deg, #204577, #0a2040);
  color: #fff8eb;
  box-shadow: 0 13px 28px rgba(4, 15, 35, .32), 0 0 0 3px rgba(217, 162, 65, .16);
}

.account-auth-card .btn-outline-primary {
  border-color: rgba(7, 92, 107, .52);
  background: rgba(255, 253, 248, .74);
  color: #075c6b;
}

.account-auth-card .btn-outline-primary:hover,
.account-auth-card .btn-outline-primary:focus-visible {
  border-color: #075c6b;
  background: #e9f3ef;
  color: #03424f;
}

.account-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}

.account-auth-links a,
.account-resend summary {
  color: #075c6b;
}

.account-auth-recovery {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.account-auth-recovery a {
  color: #075c6b;
  text-underline-offset: 2px;
}

.account-auth-alternative {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.account-auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: #81786b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-auth-divider::before,
.account-auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(164, 139, 102, .34);
}

.account-auth-alternative p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #6e695f;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.account-auth-alternative p strong {
  color: #29251f;
  font-size: 14px;
}

.account-create-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 47px;
  border: 1px solid #9d7118;
  border-radius: 11px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, .42), transparent 38%),
    linear-gradient(180deg, #e7c768, #c89a2b);
  color: #2d240f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(132, 91, 14, .16);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.account-create-cta:hover,
.account-create-cta:focus-visible {
  border-color: #78520b;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, .38), transparent 38%),
    linear-gradient(180deg, #dbb84e, #b9871e);
  color: #211806;
  text-decoration: none;
  box-shadow: 0 10px 21px rgba(132, 91, 14, .22);
  transform: translateY(-1px);
}

.account-create-cta:focus-visible {
  outline: 3px solid rgba(166, 116, 19, .24);
  outline-offset: 2px;
}

.account-resend {
  margin-top: 25px;
  border-top: 1px solid rgba(164, 139, 102, .3);
  padding-top: 17px;
}

.account-resend summary,
.account-action summary {
  color: #075c6b;
  font-weight: 800;
  cursor: pointer;
}

.account-inline-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.account-inline-form label {
  font-size: 13px;
  font-weight: 800;
}

.account-alert {
  display: grid;
  gap: 5px;
  margin: 0 0 22px;
  border: 1px solid rgba(164, 139, 102, .4);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(244, 234, 215, .5);
  color: #3d3932;
  font-size: 14px;
  line-height: 1.45;
}

.account-alert small {
  color: #657189;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.account-alert-success {
  border-color: #a8d7bf;
  background: #edf9f2;
  color: #14603b;
}

.account-alert-error {
  border-color: #edb8bf;
  background: #fff1f3;
  color: #8e2434;
}

.account-alert-warning {
  border-color: #ecd195;
  background: #fff8e7;
  color: #6f5013;
}

.account-dashboard-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(164, 139, 102, .42);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(7, 92, 107, .08), transparent 18rem),
    rgba(255, 253, 248, .92);
  box-shadow: 0 14px 34px rgba(55, 44, 30, .09);
}

.account-dashboard {
  max-width: 1040px;
  padding-top: 22px;
}

.account-dashboard-hero h1 {
  font-size: clamp(27px, 3vw, 34px);
}

.account-dashboard-hero p {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.account-logout-button {
  min-height: 38px;
  border: 1px solid rgba(164, 139, 102, .48);
  border-radius: 8px;
  padding: 7px 13px;
  background: rgba(255, 253, 248, .56);
  color: #625b50;
  font-size: 13px;
  font-weight: 700;
}

.account-logout-button:hover,
.account-logout-button:focus-visible {
  border-color: rgba(7, 92, 107, .42);
  background: rgba(233, 244, 243, .7);
  color: #075c6b;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.account-panel {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 25px);
  box-shadow: 0 12px 30px rgba(55, 44, 30, .07);
}

.account-panel-wide {
  grid-column: 1 / -1;
}

.account-panel-heading {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.account-panel-heading h2 {
  margin: 0;
  color: #1d1a16;
  font-size: 22px;
  font-weight: 800;
}

.account-panel-heading > a {
  color: #075c6b;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 2px;
}

.account-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.account-status-ok {
  background: rgba(222, 244, 232, .86);
  color: #17633e;
}

.account-sync-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(7, 92, 107, .08), transparent 18rem),
    rgba(255, 253, 248, .94);
}

.account-sync-profile-state {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  max-width: min(310px, 52vw);
  border: 1px solid rgba(95, 87, 74, .2);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 253, 248, .76);
  color: #5f645f;
  font-size: 11px;
  line-height: 1.2;
}

.account-sync-profile-state strong {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-sync-profile-state.is-synced {
  border-color: rgba(36, 121, 80, .22);
  background: rgba(226, 243, 234, .65);
  color: #276c4a;
}

.account-sync-profile-state.is-syncing,
.account-sync-profile-state.is-pending {
  border-color: rgba(7, 92, 107, .24);
  color: #075c6b;
}

.account-sync-profile-state.is-offline,
.account-sync-profile-state.is-warning {
  border-color: rgba(174, 118, 26, .3);
  background: rgba(255, 244, 218, .7);
  color: #8a5c12;
}

.account-sync-profile-state.is-error {
  border-color: rgba(163, 38, 56, .28);
  background: rgba(255, 235, 238, .7);
  color: #8f2d3c;
}

.account-sync-profile-description {
  margin: -3px 0 13px;
  color: #746c60;
  font-size: 12px;
  line-height: 1.45;
}

.account-sync-details {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  gap: 9px;
  margin: 0;
}

.account-sync-details > div {
  min-width: 0;
  border: 1px solid rgba(164, 139, 102, .25);
  border-radius: 9px;
  padding: 11px 12px;
  background: rgba(248, 243, 233, .5);
}

.account-sync-details dt {
  margin-bottom: 5px;
  color: #746c60;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.account-sync-details dd {
  margin: 0;
  color: #29251f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.account-sync-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.account-sync-feature-list span {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(7, 92, 107, .08);
  color: #075c6b;
  font-size: 10px;
  font-weight: 800;
}

.account-sync-profile-actions {
  display: flex;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.account-sync-profile-actions .btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-color: rgba(7, 92, 107, .34);
  color: #075c6b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.account-sync-profile-actions small {
  max-width: 520px;
  color: #746c60;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.account-profile-email {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border: 1px solid rgba(164, 139, 102, .28);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(248, 243, 233, .58);
}

.account-profile-email div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-profile-email span {
  color: #746c60;
  font-size: 11px;
  font-weight: 700;
}

.account-profile-email strong {
  overflow: hidden;
  color: #29251f;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-email button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #075c6b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.account-profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(120px, .75fr);
  gap: 10px;
}

.account-dashboard .account-form input,
.account-dashboard .account-form select {
  min-height: 43px;
}

.account-dashboard .btn-primary {
  border-color: #075c6b;
  background: linear-gradient(180deg, #087181, #03424f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(4, 70, 82, .14);
}

.account-dashboard .btn-primary:hover,
.account-dashboard .btn-primary:focus-visible {
  border-color: #03424f;
  background: linear-gradient(180deg, #076b7a, #023c48);
  color: #fff;
}

.account-save-button {
  justify-self: start;
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 17px;
}

.account-action-list {
  border-top: 1px solid rgba(164, 139, 102, .24);
  border-bottom: 1px solid rgba(164, 139, 102, .24);
}

.account-action-button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(164, 139, 102, .2);
  padding: 11px 2px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-action-button:first-child {
  border-top: 0;
}

.account-action-button:hover,
.account-action-button:focus-visible {
  background: rgba(7, 92, 107, .045);
  outline: 0;
}

.account-action-button:focus-visible {
  box-shadow: inset 3px 0 #075c6b;
}

.account-action-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.account-action-button span {
  color: #075c6b;
  font-size: 14px;
  font-weight: 800;
}

.account-action-button small {
  color: #746c60;
  font-size: 11px;
  line-height: 1.35;
}

.account-action-button-standalone {
  border-top: 1px solid rgba(164, 139, 102, .24);
  border-bottom: 1px solid rgba(164, 139, 102, .24);
}

.account-sessions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  border: 1px solid rgba(164, 139, 102, .25);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(248, 243, 233, .5);
}

.account-sessions h3 {
  margin: 0;
  color: #29251f;
  font-size: 14px;
  font-weight: 800;
}

.account-sessions p {
  margin: 3px 0 0;
  color: #746c60;
  font-size: 12px;
  line-height: 1.4;
}

.account-session-count {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(7, 92, 107, .1);
  color: #075c6b;
  font-size: 13px;
  font-weight: 900;
}

.account-session-list {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.account-session-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 1px solid rgba(164, 139, 102, .2);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.account-session-list li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-session-list strong,
.account-session-list small {
  overflow-wrap: anywhere;
}

.account-session-list strong {
  color: #29251f;
  font-size: 12px;
}

.account-session-list small {
  color: #746c60;
  font-size: 11px;
}

.account-session-list form,
.account-session-list button {
  flex: 0 0 auto;
  margin: 0;
}

.account-session-list button {
  min-width: 44px;
  min-height: 44px;
}

.account-secondary-panel {
  margin-top: 2px;
  border-top: 1px solid rgba(164, 139, 102, .3);
  padding: 13px 4px 0;
}

.account-secondary-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.account-secondary-heading h2 {
  margin: 0;
  color: #746c60;
  font-size: 14px;
  font-weight: 700;
}

.account-secondary-heading a {
  color: #756b5e;
  font-size: 12px;
  font-weight: 600;
  text-underline-offset: 2px;
}

.account-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-secondary-button {
  width: 100%;
  border: 1px solid rgba(164, 139, 102, .24);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, .3);
  color: #675f54;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.account-secondary-button:hover,
.account-secondary-button:focus-visible {
  border-color: rgba(7, 92, 107, .34);
  background: rgba(233, 244, 243, .55);
  color: #075c6b;
}

.account-dialog {
  width: min(520px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d1a16;
  overflow: visible;
}

.account-dialog::backdrop {
  background: rgba(20, 24, 23, .52);
  backdrop-filter: blur(2px);
}

.account-dialog-card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid rgba(164, 139, 102, .48);
  border-radius: 12px;
  padding: 22px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(34, 28, 20, .28);
}

.account-dialog-card > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.account-dialog-card h2 {
  margin: 0;
  color: #1d1a16;
  font-size: 23px;
  font-weight: 800;
}

.account-dialog-card > p {
  margin: 0 0 14px;
  color: #6e695f;
  font-size: 13px;
  line-height: 1.5;
}

.account-dialog-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(164, 139, 102, .34);
  border-radius: 8px;
  padding: 0;
  background: rgba(248, 243, 233, .58);
  color: #625b50;
  font-size: 23px;
  line-height: 1;
}

.account-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.account-dialog-actions .btn {
  min-height: 41px;
  padding-inline: 15px;
}

.account-dialog-cancel {
  border: 1px solid rgba(164, 139, 102, .4);
  background: transparent;
  color: #625b50;
}

.account-dialog-cancel:hover,
.account-dialog-cancel:focus-visible {
  border-color: rgba(7, 92, 107, .34);
  background: rgba(233, 244, 243, .55);
  color: #075c6b;
}

.account-dialog-danger .account-panel-kicker {
  color: #a32638;
}

.account-danger-copy {
  color: #642834;
  font-size: 13px;
  line-height: 1.45;
}

.account-token-error {
  margin-top: 18px;
  color: #8e2434;
}

.account-legal {
  max-width: 850px;
}

.account-legal .account-panel {
  line-height: 1.65;
}

.account-legal h2 {
  margin: 30px 0 8px;
  color: #22324d;
  font-size: 20px;
  font-weight: 900;
}

.account-legal-lead {
  color: #485770;
  font-size: 17px;
}

.account-privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 24px 0 8px;
}

.account-privacy-summary > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(164, 139, 102, .36);
  border-radius: 9px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(255, 249, 235, .88), rgba(234, 243, 239, .78));
}

.account-privacy-summary strong {
  color: #27342f;
  font-size: 13px;
}

.account-privacy-summary span {
  color: #655f55;
  font-size: 12px;
  line-height: 1.45;
}

.account-privacy-section {
  border-top: 1px solid rgba(164, 139, 102, .28);
  margin-top: 24px;
  padding-top: 22px;
}

.account-privacy-section h2 {
  margin-top: 0;
}

.account-privacy-section p,
.account-privacy-section ul {
  color: #4f493f;
}

.account-privacy-section p:last-child,
.account-privacy-section ul:last-child {
  margin-bottom: 0;
}

.account-privacy-section ul {
  display: grid;
  gap: 6px;
  padding-left: 21px;
}

.account-privacy-bases {
  border: 1px solid rgba(164, 139, 102, .32);
  border-radius: 9px;
  overflow: hidden;
}

.account-privacy-basis {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.account-privacy-basis + .account-privacy-basis {
  border-top: 1px solid rgba(164, 139, 102, .28);
}

.account-privacy-basis > div {
  min-width: 0;
  padding: 12px 14px;
}

.account-privacy-basis > div + div {
  border-left: 1px solid rgba(164, 139, 102, .24);
  background: rgba(234, 243, 239, .38);
}

.account-privacy-basis strong {
  display: block;
  margin-bottom: 4px;
  color: #27342f;
  font-size: 11px;
  letter-spacing: .02em;
}

.account-privacy-basis p {
  margin: 0;
  color: #4f493f;
  font-size: 13px;
  line-height: 1.5;
}

.account-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  border-top: 1px solid rgba(164, 139, 102, .28);
  padding-top: 22px;
}

.account-privacy-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
}

.account-privacy-actions .btn-primary {
  border-color: #075363;
  background: linear-gradient(145deg, #0a6676, #07515f);
  color: #fff;
  box-shadow: 0 7px 16px rgba(7, 81, 95, .18);
}

.account-privacy-actions .btn-primary:hover,
.account-privacy-actions .btn-primary:focus-visible {
  border-color: #053f4a;
  background: linear-gradient(145deg, #075866, #043f4b);
  color: #fff;
}

@media (max-width: 767.98px) {
  .account-privacy-basis {
    grid-template-columns: 1fr;
  }
  .account-privacy-basis > div + div {
    border-top: 1px dashed rgba(164, 139, 102, .24);
    border-left: 0;
  }
  .account-page {
    width: min(100% - 24px, 600px);
    padding-top: 25px;
  }
  .account-auth-page {
    min-height: auto;
  }
  .account-auth-layout {
    grid-template-columns: 1fr;
    width: min(100%, 600px);
  }
  .account-auth-context {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 162, 65, .62);
    padding: 25px 26px;
    box-shadow: inset 0 -1px rgba(255, 237, 194, .18);
  }
  .account-auth-content {
    padding: 25px 26px 28px;
  }
  .account-auth-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }
  .account-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .account-dashboard-grid,
  .account-secondary-actions {
    grid-template-columns: 1fr;
  }
  .account-panel-wide {
    grid-column: auto;
  }
  .account-sync-details {
    grid-template-columns: 1fr;
  }
  .account-sync-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .account-sync-profile-actions .btn {
    width: 100%;
  }
  .account-sync-profile-actions small {
    max-width: none;
    text-align: left;
  }
  .account-privacy-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .account-page {
    width: min(100% - 16px, 520px);
    padding: 14px 0 40px;
  }
  .account-auth-card,
  .account-panel {
    border-radius: 13px;
    padding: 16px;
  }
  .account-auth-layout {
    padding: 0;
  }
  .account-auth-context,
  .account-auth-content {
    padding: 21px 18px;
  }
  .account-auth-context {
    min-height: 155px;
  }
  .account-auth-context::after {
    top: 17px;
    right: 18px;
    font-size: 21px;
  }
  .account-auth-benefits {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 15px;
  }
  .account-auth-mode-registration .account-auth-context {
    padding-block: 13px;
  }
  html.pwa-standalone .account-auth-mode-registration .account-auth-context {
    padding-block: 10px;
  }
  .account-auth-mode-login .account-auth-context {
    padding-block: 16px;
  }
  html.pwa-standalone .account-auth-mode-login .account-auth-context {
    min-height: 130px;
    padding-block: 10px;
  }
  html.pwa-standalone .account-auth-mode-login .account-auth-context p {
    display: none;
  }
  html.pwa-standalone .account-auth-mode-login .account-auth-recovery {
    margin-top: 8px;
  }
  html.pwa-standalone .account-auth-mode-login .account-auth-alternative {
    gap: 7px;
    margin-top: 10px;
  }
  html.pwa-standalone .account-auth-mode-login .account-auth-alternative p span {
    display: none;
  }
  .account-auth-mode-login .account-auth-benefits {
    display: none;
  }
  .account-auth-mode-registration .account-auth-context p,
  .account-auth-mode-registration .account-auth-benefits {
    display: none;
  }
  .account-auth-mode-registration .account-auth-content {
    padding-block: 16px;
  }
  .account-auth-mode-registration h1 {
    font-size: 26px;
  }
  .account-auth-card h1,
  .account-dashboard-hero h1,
  .account-legal h1 {
    font-size: 29px;
  }
  .account-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-radius: 13px;
    margin-bottom: 12px;
    padding: 14px 16px;
  }
  .account-dashboard-hero form {
    align-self: center;
  }
  .account-dashboard-hero button {
    width: auto;
  }
  .account-dashboard-hero h1 {
    font-size: 25px;
  }
  .account-dashboard-hero p {
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-dashboard-grid {
    gap: 10px;
  }
  .account-panel-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .account-sync-panel .account-panel-heading {
    align-items: center;
    margin-bottom: 8px;
  }
  .account-sync-panel .account-panel-kicker {
    display: none;
  }
  .account-sync-panel .account-panel-heading h2 {
    font-size: 20px;
  }
  .account-sync-profile-state {
    max-width: 100%;
    width: fit-content;
    padding: 5px 8px;
    font-size: 10px;
  }
  .account-sync-profile-description {
    margin: 0 0 5px;
    font-size: 11px;
  }
  .account-sync-details {
    gap: 0;
  }
  .account-sync-details > div {
    border: 0;
    border-top: 1px solid rgba(164, 139, 102, .24);
    border-radius: 0;
    padding: 7px 0;
    background: transparent;
  }
  .account-sync-details dt {
    margin-bottom: 3px;
    font-size: 9px;
  }
  .account-sync-feature-list span {
    padding: 3px 6px;
    font-size: 9px;
  }
  .account-sync-profile-actions {
    margin-top: 7px;
  }
  .account-sync-profile-actions small {
    display: none;
  }
  .account-profile-fields {
    grid-template-columns: minmax(0, 1.25fr) minmax(105px, .75fr);
  }
  .account-save-button {
    width: 100%;
  }
  .account-secondary-actions {
    gap: 8px;
  }
  .account-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-privacy-actions,
  .account-privacy-actions .btn {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .account-sync-panel .account-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
