/* Upgrade 3: account screen (#account), account dialogs and the sync toast. Prefix .acc- */
.acc { max-width: 1180px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 18px; }
.acc-svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .acc-svg { width: 16px; height: 16px; }
html[dir="rtl"] .acc-flip { transform: scaleX(-1); }
.acc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.acc-p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.acc-note { margin: 0; color: var(--ink-3); font-size: 12px; }
.acc .field > label, .acc-dlg .field > label { font-size: 13px; color: var(--ink-2); }
.acc .field input, .acc-dlg .field input { width: 100%; min-width: 0; color: var(--ink); }
#accNameIn, #accDelWord { font-family: inherit; }
.acc .btn[aria-busy="true"], .acc-dlg .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

/* ---------- hero ---------- */
.acc-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr); grid-template-areas: "id prof" "stats prof"; gap: 22px 30px; padding: 30px; overflow: hidden; isolation: isolate; }
.acc-hero::before { content: ""; position: absolute; z-index: -1; inset-inline-start: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 196, 109, .16), rgba(242, 196, 109, .05) 55%, transparent); }
.acc-hero-id { grid-area: id; display: flex; align-items: center; gap: 26px; min-width: 0; }
.acc-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.acc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-name { margin: 8px 0 2px; font-size: clamp(26px, 3.3vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere;
  background: radial-gradient(120% 70% at 30% 40%, #fff 0%, #B7BCC6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .acc-name { letter-spacing: 0; }
.acc-mail { margin: 0; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; max-width: 100%; }
.acc-mail bdi { font-family: "Schibsted Grotesk", system-ui, sans-serif; }
.acc-since { margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; }
.acc-sync { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 28px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.4;
  border: 1px solid rgba(16, 188, 131, .35); background: rgba(16, 188, 131, .08); color: var(--mint); max-width: 100%; }
.acc-sync i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.acc-sync[data-s="saving"] i { animation: accPulse 1s ease-in-out infinite; }
.acc-sync[data-s="offline"] { color: #F6CF8C; border-color: rgba(240, 182, 90, .4); background: rgba(240, 182, 90, .08); }
.acc-sync[data-s="offline"] i { background: var(--warn); box-shadow: none; }
.acc-sync[data-s="error"] { color: #F7A3A6; border-color: rgba(242, 103, 107, .45); background: rgba(242, 103, 107, .08); }
.acc-sync[data-s="error"] i { background: var(--down); box-shadow: none; }
.acc-sync[data-s="off"] { color: var(--ink-3); border-color: var(--line-2); background: transparent; }
.acc-sync[data-s="off"] i { background: var(--ink-3); box-shadow: none; }
@keyframes accPulse { 50% { opacity: .25; transform: scale(.7); } }
.acc-admin-link { margin-top: 14px; }

/* avatar: a gold coin with a turning ring, tilts in 3D under the mouse */
.acc-av { --sz: 120px; width: var(--sz); height: var(--sz); flex: none; perspective: 700px; }
.acc-av-tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.acc-av-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#FFF3D6, #E3C07E 14%, #8A6424 28%, #F2C46D 42%, #FFF3D6 50%, #B8893B 64%, #F8DDA4 80%, #8A6424 90%, #FFF3D6);
  box-shadow: 0 0 0 1px rgba(255, 228, 170, .35), 0 18px 50px -14px rgba(242, 196, 109, .6), 0 0 70px -12px rgba(242, 196, 109, .35);
  animation: accSpin 16s linear infinite; }
.acc-av-core { position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center; transform: translateZ(16px);
  background: radial-gradient(circle at 34% 28%, #2B2415, #0E0C08 62%, #070605);
  box-shadow: inset 0 2px 5px rgba(255, 236, 190, .18), inset 0 -12px 26px rgba(0, 0, 0, .65), 0 6px 18px rgba(0, 0, 0, .45); }
.acc-av-ini { font-size: calc(var(--sz) * .38); font-weight: 500; line-height: 1; transform: translateZ(14px); font-family: "Schibsted Grotesk", var(--font-ar);
  background: linear-gradient(180deg, #FFF3D6 0%, #F2C46D 52%, #9C6B22 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
html[lang="ar"] .acc-av-ini { font-family: var(--font-ar); }
.acc-av-shine { position: absolute; inset: 7px; border-radius: 50%; pointer-events: none; transform: translateZ(20px); mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 245, 220, .22) 46%, transparent 60%) 0 0 / 260% 100% no-repeat; animation: accShine 7s ease-in-out infinite; }
@keyframes accSpin { to { transform: rotate(360deg); } }
@keyframes accShine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }

/* stats */
.acc-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: end; }
.acc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--ink); transition: border-color .2s, transform .2s; min-width: 0; }
.acc-stat:hover { border-color: rgba(207, 242, 230, .3); transform: translateY(-2px); }
.acc-stat b { font-size: 26px; font-weight: 400; line-height: 1.15; }
.acc-stat span { font-size: 12px; color: var(--ink-3); }

/* profile form */
.acc-prof { grid-area: prof; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); box-shadow: var(--shadow-in); min-width: 0; }
.acc-prof .field { gap: 7px; }
.acc-lang { align-self: flex-start; }
.acc-lang button { min-width: 92px; }
.acc-foot { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.acc-foot-end { justify-content: flex-end; }
.acc-msg { font-size: 13px; color: var(--mint); }
.acc .errors:empty, .acc-dlg .errors:empty { display: none; }
.acc .errors { margin: 0; }

/* ---------- columns + cards ---------- */
.acc-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.acc-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.acc-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.acc-ch { display: flex; gap: 14px; align-items: flex-start; }
.acc-ch > div { min-width: 0; }
.acc-ch h2 { margin: 1px 0 4px; font-size: 17px; font-weight: 500; color: var(--ink); }
.acc-ch p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.65; }
.acc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--mint);
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.acc-ic .acc-svg { width: 21px; height: 21px; }
.acc-ic.danger { color: #F7A3A6; background: radial-gradient(120% 120% at 30% 20%, rgba(242, 103, 107, .32), rgba(242, 103, 107, .06)); box-shadow: inset 0 0 0 1px rgba(242, 103, 107, .38); }
.acc-block { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.acc-sh { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.acc-sh .acc-svg { color: var(--gold); width: 17px; height: 17px; }
.acc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* password fields */
.acc-pwgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.acc-pw { min-width: 0; }
.acc-pw-in { position: relative; display: block; }
html[dir="rtl"] .acc-pw-in input { padding-left: 48px; }
html[dir="ltr"] .acc-pw-in input { padding-right: 48px; }
.acc-eye { position: absolute; top: 50%; inset-inline-end: 5px; transform: translateY(-50%); width: 38px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.acc-eye:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.acc-eye .i-off, .acc-eye[aria-pressed="true"] .i-on { display: none; }
.acc-eye[aria-pressed="true"] .i-off { display: block; }
.acc-meter { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.acc-bars { display: inline-flex; gap: 4px; flex: none; }
.acc-bars i { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2); transition: background .25s, box-shadow .25s; }
.acc-meter em { flex: 1 1 140px; min-width: 0; font-style: normal; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.acc-meter[data-s="0"] i:nth-child(1), .acc-meter[data-s="1"] i:nth-child(1) { background: var(--down); }
.acc-meter[data-s="0"] em, .acc-meter[data-s="1"] em { color: #F7A3A6; }
.acc-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.acc-meter[data-s="2"] em { color: #F6CF8C; }
.acc-meter[data-s="3"] i:nth-child(-n+3) { background: var(--accent); }
.acc-meter[data-s="4"] i { background: var(--accent); box-shadow: 0 0 8px rgba(16, 188, 131, .55); }
.acc-meter[data-s="3"] em, .acc-meter[data-s="4"] em { color: var(--mint); }
.acc-rc-ask { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

/* recovery code vault */
.acc-vault { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(242, 196, 109, .5);
  background: radial-gradient(120% 90% at 0% 0%, rgba(242, 196, 109, .18), transparent 55%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 9px), #0D0B07;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .2), 0 22px 60px -24px rgba(242, 196, 109, .55); animation: accVaultIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.acc-vault::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 205, .12) 48%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: accShine 6s ease-in-out infinite; }
.acc-vault-top { display: flex; align-items: center; gap: 10px; color: #F8DDA4; font-size: 15px; }
.acc-vault-top b { font-weight: 500; }
.acc-vault-lock { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #1A1204; background: linear-gradient(180deg, #FFF3D6, #F2C46D); box-shadow: 0 0 18px rgba(242, 196, 109, .45); }
.acc-vault-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; color: #F6CF8C; line-height: 1.6; }
.acc-vault-warn .acc-svg { width: 16px; height: 16px; margin-top: 2px; }
.acc-code { display: block; text-align: center; padding: 16px 12px; border-radius: 12px; border: 1px dashed rgba(242, 196, 109, .55); background: rgba(0, 0, 0, .45);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: clamp(17px, 4.4vw, 25px); letter-spacing: .12em; color: #FFE7B3;
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; text-shadow: 0 0 18px rgba(242, 196, 109, .35); }
.acc-vault-acts { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.acc-vault-acts .btn { flex: 1 1 120px; }
.acc-vault-done { position: relative; z-index: 1; width: 100%; }
@keyframes accVaultIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* signed-in devices */
.acc-sess { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-si { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.acc-si.cur { border-color: rgba(16, 188, 131, .4); background: linear-gradient(rgba(16, 188, 131, .08), rgba(16, 188, 131, .02)); }
.acc-si-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.acc-si.cur .acc-si-ic { color: var(--mint); border-color: rgba(16, 188, 131, .35); }
.acc-si-txt { min-width: 0; }
.acc-si-txt b { font-weight: 500; font-size: 14px; }
.acc-cur { vertical-align: 1px; margin-inline-start: 4px; }
.acc-si-sub { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.acc-si-sub > span + span::before { content: "·"; margin-inline: 7px; color: var(--ink-3); }
.acc-empty { padding: 10px 4px; color: var(--ink-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-skel { height: 64px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)) 0 0 / 200% 100%; animation: accSk 1.3s linear infinite; }
.acc-skel i { display: none; }
@keyframes accSk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* side cards */
.acc-mini { gap: 14px; }
.acc-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2); color: var(--ink-2); }
.acc-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.acc-chip[data-s="on"] { color: var(--mint); border-color: rgba(16, 188, 131, .4); background: rgba(16, 188, 131, .07); }
.acc-chip[data-s="on"] i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.acc-chip[data-s="denied"] { color: #F6CF8C; border-color: rgba(240, 182, 90, .4); }
.acc-chip[data-s="denied"] i { background: var(--warn); }
.acc-go { margin-inline-start: auto; }
.acc-danger { border-color: rgba(242, 103, 107, .32); background: rgba(14, 8, 9, .7); background-image: linear-gradient(rgba(242, 103, 107, .08), rgba(242, 103, 107, .015)); }
.btn.acc-btn-danger { color: #FFD9DA; border-color: rgba(242, 103, 107, .6); background: linear-gradient(180deg, rgba(242, 103, 107, .3), rgba(242, 103, 107, .14)); }
.btn.acc-btn-danger:hover:not(:disabled) { border-color: rgba(255, 140, 144, .9); background: linear-gradient(180deg, rgba(242, 103, 107, .42), rgba(242, 103, 107, .2)); box-shadow: 0 0 22px -4px rgba(242, 103, 107, .55); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* sign out */
.acc-out { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.acc-out-txt { flex: 1 1 380px; min-width: 0; }
.acc-out-btn { height: 46px; padding: 0 24px; flex: none; }
.acc-check { position: relative; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; font-size: 13px; }
.acc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.acc-box { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; color: #04120C; }
.acc-box .acc-svg { width: 14px; height: 14px; opacity: 0; stroke-width: 2.6; }
.acc-check input:checked + .acc-box { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px -2px rgba(16, 188, 131, .7); }
.acc-check input:checked + .acc-box .acc-svg { opacity: 1; }
.acc-check input:focus-visible + .acc-box { outline: 2px solid var(--mint); outline-offset: 2px; }
.acc-check b { display: block; font-weight: 500; color: var(--ink); }
.acc-check small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; line-height: 1.55; }

/* waiting for the session */
.acc-wait .acc-hero-skel { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 20px; text-align: center; }
.acc-hero-skel .acc-av-core { animation: accPulse 1.6s ease-in-out infinite; }

/* ---------- dialogs (session merge, delete, confirmations, admin) ---------- */
.acc-dlg { width: min(500px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px; }
.acc-dlg[open] { animation: accDlgIn .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes accDlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.acc-dlg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acc-dlg-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.acc-dlg-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #1A1204; background: linear-gradient(180deg, #FFF3D6, #F2C46D); box-shadow: 0 0 22px -4px rgba(242, 196, 109, .6); }
.acc-dlg-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-dlg-ic.danger { color: #fff; background: linear-gradient(180deg, #F58A8D, #D2464B); box-shadow: 0 0 22px -4px rgba(242, 103, 107, .7); }
.acc-dlg-x { flex: none; }
.acc-dlg-body { display: flex; flex-direction: column; gap: 12px; }
.acc-dlg-body .field { margin: 0; }
.acc-dlg-lead { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.acc-dlg-err { margin: 12px 0 0; }
.acc-dlg-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acc-dlg-acts .btn { flex: 1 1 150px; height: 44px; }
.acc-dlg .acc-check { margin-top: 2px; }
.acc-dlg-danger { box-shadow: var(--shadow-in), 0 0 0 1px rgba(242, 103, 107, .22), 0 30px 80px -20px rgba(0, 0, 0, .9); }
.acc-mg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-mg-col { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); min-width: 0; }
.acc-mg-col.remote { border-color: rgba(242, 196, 109, .45); background: linear-gradient(rgba(242, 196, 109, .08), rgba(242, 196, 109, .01)); }
.acc-mg-col b { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.acc-mg-col ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.7; }
.acc-mg-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.acc-mg-opts b { color: var(--ink); font-weight: 500; margin-inline-end: 6px; }
.acc-toast-btn { margin-inline-start: 8px; height: 28px; padding: 0 12px; }

/* ---------- phone ---------- */
@media (max-width: 960px) {
  .acc-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .acc { margin-top: 14px; gap: 14px; }
  .acc-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "stats" "prof"; padding: 26px 16px 16px; gap: 18px; }
  .acc-hero::before { inset-inline-start: 50%; translate: -50% 0; top: -150px; }
  html[dir="rtl"] .acc-hero::before { translate: 50% 0; }
  .acc-hero-id { flex-direction: column; text-align: center; gap: 16px; }
  .acc-who { align-items: center; }
  .acc-tags { justify-content: center; }
  .acc-av { --sz: 108px; }
  .acc-prof { padding: 16px; }
  .acc-card { padding: 18px 16px; }
  .acc-col { gap: 14px; }
}
@media (max-width: 600px) {
  .acc-pwgrid, .acc-mg-cols { grid-template-columns: minmax(0, 1fr); }
  .acc-stat { padding: 10px 12px; }
  .acc-stat b { font-size: 22px; }
  .acc-si { grid-template-columns: auto minmax(0, 1fr); }
  .acc-si-out { grid-column: 2; justify-self: start; }
  .acc-si-sub { flex-direction: column; gap: 1px; }
  .acc-si-sub > span + span::before { content: none; }
  .acc-out-btn { width: 100%; }
  .acc-foot .btn.primary { flex: 1 1 auto; }
  .acc-dlg { padding: 18px 16px; }
  .acc-dlg-acts .btn { flex-basis: 100%; }
}
/* phones and touch screens: every control is a 40 px target, as on the other upgrade-3 screens. The eye
   still fits inside the password box (its text keeps 48 px clear); .acc-dlg-x is also the close button
   of the sign-in "this device has data" dialog and the admin "Manage" dialog. */
@media (max-width: 600px), (pointer: coarse) {
  #accountRoot .btn.sm, #accountRoot .seg button, .acc-toast-btn { height: 40px; }
  .acc-eye, .acc-dlg-x { width: 40px; height: 40px; }
}

/* ---------- light theme ---------- */
html[data-theme="light"] .acc-name { background: radial-gradient(120% 70% at 30% 40%, #0E241C 0%, #4B6B5F 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .acc-hero::before { background: radial-gradient(closest-side, rgba(226, 174, 75, .22), rgba(226, 174, 75, .06) 55%, transparent); }
html[data-theme="light"] .acc-av-ring { box-shadow: 0 0 0 1px rgba(169, 119, 31, .35), 0 16px 40px -14px rgba(169, 119, 31, .55); }
html[data-theme="light"] .acc-av-core { background: radial-gradient(circle at 34% 28%, #FFFDF6, #F6EAD0 62%, #E9D6AE);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .9), inset 0 -10px 22px rgba(150, 105, 30, .22), 0 6px 16px rgba(120, 85, 20, .2); }
html[data-theme="light"] .acc-av-ini { background: linear-gradient(180deg, #C8963E 0%, #9C6B22 55%, #6B4710 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }
html[data-theme="light"] .acc-av-shine { mix-blend-mode: soft-light; }
html[data-theme="light"] .acc-sync { color: #0B7552; border-color: rgba(16, 168, 117, .4); background: rgba(16, 188, 131, .1); }
html[data-theme="light"] .acc-sync[data-s="offline"] { color: #8A5A12; border-color: rgba(183, 121, 31, .4); background: rgba(240, 182, 90, .12); }
html[data-theme="light"] .acc-sync[data-s="error"] { color: #B23338; border-color: rgba(210, 70, 75, .4); background: rgba(210, 70, 75, .08); }
html[data-theme="light"] .acc-sync[data-s="off"] { color: var(--ink-3); background: transparent; border-color: var(--line-2); }
html[data-theme="light"] .acc-stat { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .acc-stat:hover { border-color: rgba(16, 168, 117, .4); }
html[data-theme="light"] .acc-prof { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .acc-eye:hover { background: rgba(16, 48, 36, .06); }
html[data-theme="light"] .acc-meter[data-s="0"] em, html[data-theme="light"] .acc-meter[data-s="1"] em { color: #B23338; }
html[data-theme="light"] .acc-meter[data-s="2"] em { color: #8A5A12; }
html[data-theme="light"] .acc-meter[data-s="3"] em, html[data-theme="light"] .acc-meter[data-s="4"] em { color: #0B7552; }
html[data-theme="light"] .acc-vault { border-color: rgba(169, 119, 31, .45);
  background: radial-gradient(120% 90% at 0% 0%, rgba(242, 196, 109, .3), transparent 60%), repeating-linear-gradient(135deg, rgba(120, 85, 20, .04) 0 2px, transparent 2px 9px), #FFF9EC;
  box-shadow: inset 0 1px 0 #fff, 0 20px 50px -24px rgba(150, 105, 30, .45); }
html[data-theme="light"] .acc-vault::after { background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 48%, transparent 60%); }
html[data-theme="light"] .acc-vault-top { color: #6B4710; }
html[data-theme="light"] .acc-vault-warn { color: #8A5A12; }
html[data-theme="light"] .acc-code { background: rgba(255, 255, 255, .85); color: #6B4710; border-color: rgba(169, 119, 31, .5); text-shadow: none; }
html[data-theme="light"] .acc-si { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .acc-si.cur { background: linear-gradient(rgba(16, 188, 131, .1), rgba(255, 255, 255, .6)); border-color: rgba(16, 168, 117, .4); }
html[data-theme="light"] .acc-si-ic { background: rgba(255, 255, 255, .8); }
html[data-theme="light"] .acc-si.cur .acc-si-ic { color: #0B7552; }
html[data-theme="light"] .acc-skel { background-image: linear-gradient(90deg, rgba(16, 48, 36, .03), rgba(16, 48, 36, .08), rgba(16, 48, 36, .03)); }
html[data-theme="light"] .acc-chip[data-s="on"] { color: #0B7552; background: rgba(16, 188, 131, .1); }
html[data-theme="light"] .acc-chip[data-s="denied"] { color: #8A5A12; }
html[data-theme="light"] .acc-ic.danger, html[data-theme="light"] .acc-dlg-ic.danger { color: #fff; }
html[data-theme="light"] .acc-ic.danger { color: #B23338; background: rgba(210, 70, 75, .1); box-shadow: inset 0 0 0 1px rgba(210, 70, 75, .3); }
html[data-theme="light"] .acc-danger { background: rgba(255, 245, 245, .7); background-image: none; border-color: rgba(210, 70, 75, .3); }
html[data-theme="light"] .btn.acc-btn-danger { color: #9E1F25; background: rgba(210, 70, 75, .1); border-color: rgba(210, 70, 75, .45); }
html[data-theme="light"] .btn.acc-btn-danger:hover:not(:disabled) { background: rgba(210, 70, 75, .16); box-shadow: 0 6px 18px -8px rgba(210, 70, 75, .6); }
html[data-theme="light"] .acc-box { color: #fff; }
html[data-theme="light"] .acc-mg-col { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .acc-mg-col.remote { background: linear-gradient(rgba(242, 196, 109, .16), rgba(255, 255, 255, .6)); border-color: rgba(169, 119, 31, .4); }
html[data-theme="light"] .acc-dlg-danger { box-shadow: 0 0 0 1px rgba(210, 70, 75, .2), 0 30px 80px -20px rgba(16, 48, 36, .35); }

@media (prefers-reduced-motion: reduce) {
  .acc-av-ring, .acc-av-shine, .acc-vault, .acc-vault::after, .acc-skel, .acc-sync i, .acc-dlg[open], .acc-hero-skel .acc-av-core { animation: none !important; }
  .acc-av-tilt { transform: none !important; transition: none; }
  .acc-stat:hover { transform: none; }
}
