/* Account UI (client/js/ui/account.js): sign in / create account, recovery code, account panel, sync chip, conflict + import dialogs.
   Same dark system as the rest of the game (tokens from style.css). Every rule is scoped to .acc-* so nothing here leaks into other screens. */

.acc-scope { font-family: var(--font-ui); }

/* ------------------------------------------------------------------ the dialog shell */
.card.modal.acc-modal { width: min(440px, calc(100vw - 20px)); max-height: calc(var(--vh) - 24px); border: 0; border-radius: var(--r-4); background: var(--surface-1); color: var(--text-1); box-shadow: var(--elev-3), inset 0 0 0 1px var(--line-2); }
.card.modal.acc-modal > .body { padding: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.card.modal.acc-modal.acc-conflict { width: min(540px, calc(100vw - 20px)); }
.acc-modal *, .acc-modal *::before, .acc-modal *::after { box-sizing: border-box; }
.acc-wrap { display: flex; flex-direction: column; min-height: 0; }
.acc-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 20px; min-height: 64px; background: var(--surface-1); border-bottom: 1px solid var(--line-1); }
.acc-badge { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-300); box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .2); }
.acc-badge .ico-svg { display: block; width: 19px; height: 19px; }
.acc-title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: var(--fs-20); letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; color: var(--text-1); }
.acc-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; padding: 0; background: transparent; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur-2), color var(--dur-2); }
.acc-x:hover { background: rgba(255, 255, 255, .07); color: var(--text-1); }
.acc-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
html.is-touch .acc-x { width: var(--tap); height: var(--tap); }
.acc-wrap > .acc-body, .acc-wrap > .acc-col { padding: 20px 20px 24px; }
.acc-body > .acc-col { padding: 0; }
.acc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-stack { display: flex; flex-direction: column; gap: 8px; }
.acc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acc-row-end { display: flex; justify-content: flex-end; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-actions.two > * { flex: 1 1 140px; }
.acc-divider { height: 1px; background: var(--line-2); margin: 0; }

/* ------------------------------------------------------------------ text */
.acc-modal p { margin: 0; }
.acc-modal p + p { margin-top: 8px; }
.acc-lead { font-size: var(--fs-15); line-height: 1.55; font-weight: 450; color: var(--text-2); }
.acc-fine { font-size: var(--fs-13); line-height: 1.5; color: var(--text-3); font-weight: 450; }
.acc-muted { font-size: var(--fs-13); line-height: 1.4; color: var(--text-3); font-weight: 450; }
.acc-h { margin: 0 0 10px; font-weight: 650; font-size: var(--fs-11); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.acc-why { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: var(--r-3); box-shadow: inset 0 0 0 1px var(--line-1); font-size: var(--fs-13); line-height: 1.5; color: var(--text-2); }
.acc-why li { padding-left: 26px; position: relative; font-weight: 450; }
.acc-why li::before { content: ''; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372e2ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.acc-why b { color: var(--text-1); font-weight: 600; }
.acc-link { border: 0; background: none; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-ui); font-weight: 550; font-size: var(--fs-14); color: var(--accent-300); text-decoration: none; cursor: pointer; border-radius: var(--r-1); }
.acc-link:hover { color: var(--accent-200); text-decoration: underline; text-underline-offset: 3px; }
.acc-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.acc-link.back { align-self: flex-start; margin: -8px 0 -6px -2px; color: var(--text-2); }
.acc-link.back:hover { color: var(--text-1); }

/* ------------------------------------------------------------------ tabs (segmented) */
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--surface-0); border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.acc-tab { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); padding: 6px 10px; font-family: var(--font-ui); font-weight: 550; font-size: var(--fs-14); cursor: pointer; transition: background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2); }
.acc-tab:hover { color: var(--text-1); }
.acc-tab.on { background: var(--surface-5); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 1px 2px rgba(0, 0, 0, .4); }
.acc-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
html.is-touch .acc-tab { min-height: var(--tap); }

/* ------------------------------------------------------------------ forms */
.acc-form { display: flex; flex-direction: column; gap: 14px; margin: 0; min-width: 0; }
.acc-form.inline { gap: 10px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acc-label { font-weight: 550; font-size: var(--fs-13); color: var(--text-2); }
.acc-inputwrap { position: relative; display: flex; }
.acc-inp { width: 100%; min-height: 46px; padding: 10px 14px; font-size: var(--fs-16); line-height: 1.2; font-family: var(--font-ui); font-weight: 500; color: var(--text-1); background: var(--surface-0); border: 1px solid var(--line-3); border-radius: var(--r-2); outline: none; -webkit-appearance: none; appearance: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); transition: border-color var(--dur-2), box-shadow var(--dur-2); user-select: text; -webkit-user-select: text; }
.acc-inp::placeholder { color: var(--text-4); font-weight: 450; }
.acc-inp:hover { border-color: var(--line-4); }
.acc-inp:focus { border-color: var(--accent-400); box-shadow: 0 0 0 3px rgba(60, 205, 141, .2); }
.acc-inp.bad { border-color: var(--red-400); }
.acc-inp.bad:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .22); }
.acc-inp.mono { font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; }
.acc-inp.mono::placeholder { text-transform: none; letter-spacing: 1px; }
html.is-touch .acc-inp { font-size: 16px; }
.acc-inputwrap.has-eye .acc-inp { padding-right: 76px; }
.acc-eye { position: absolute; right: 1px; top: 1px; bottom: 1px; min-height: 44px; min-width: 60px; border: 0; border-radius: 9px; padding: 0 12px; background: transparent; font-family: var(--font-ui); font-weight: 550; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; }
.acc-eye:hover { background: rgba(255, 255, 255, .07); color: var(--text-1); }
.acc-eye:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
html.is-touch .acc-eye { min-height: var(--tap); top: 1px; bottom: 1px; }
.acc-msg { min-height: 0; font-size: var(--fs-12); line-height: 1.4; color: var(--text-3); font-weight: 450; }
.acc-msg:empty { display: none; }
.acc-msg.err { color: var(--red-300); font-weight: 550; }
.acc-alert { padding: 11px 14px; border-radius: var(--r-2); font-size: var(--fs-13); line-height: 1.45; font-weight: 500; background: var(--red-soft); color: var(--red-300); box-shadow: inset 0 0 0 1px var(--red-line); }
.acc-alert[hidden] { display: none; }
.acc-alert.warn { background: var(--amber-soft); color: var(--amber-300); box-shadow: inset 0 0 0 1px var(--amber-line); }
.acc-note { padding: 14px 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); font-size: var(--fs-13); line-height: 1.55; color: var(--text-2); font-weight: 450; }
.acc-note b { color: var(--text-1); font-weight: 600; }
.acc-note.warn { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--text-1); }
.acc-note.warn b { color: var(--amber-300); }

/* ------------------------------------------------------------------ buttons */
.acc-btn {
  --b-bg: var(--surface-4); --b-bh: var(--surface-5); --b-fg: var(--text-1); --b-bd: var(--line-3);
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 8px 18px;
  border: 1px solid var(--b-bd); border-radius: var(--r-2); background: var(--b-bg); color: var(--b-fg); text-align: center; line-height: 1.2;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-15); cursor: pointer; box-shadow: var(--hl);
  transition: transform var(--dur-1), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2); -webkit-tap-highlight-color: transparent;
}
.acc-btn:hover:not(:disabled) { background: var(--b-bh); }
.acc-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.acc-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.acc-btn:disabled { opacity: .45; cursor: not-allowed; }
.acc-btn small { display: block; font-weight: 450; font-size: var(--fs-12); opacity: .72; line-height: 1.3; }
.acc-btn.primary { --b-bg: var(--accent-600); --b-bh: var(--accent-650); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 18px -6px rgba(0, 135, 81, .55); }
.acc-btn.primary:disabled { box-shadow: none; }
.acc-btn.ghost { --b-bg: var(--surface-4); --b-bh: var(--surface-5); --b-fg: var(--text-1); --b-bd: var(--line-3); }
.acc-btn.danger { --b-bg: var(--red-500); --b-bh: var(--red-600); --b-fg: #fff; --b-bd: transparent; box-shadow: none; }
.acc-btn.link { --b-bg: transparent; --b-bh: rgba(255, 255, 255, .05); --b-fg: var(--text-3); --b-bd: transparent; box-shadow: none; min-height: 44px; font-weight: 500; }
.acc-btn.link:hover:not(:disabled) { color: var(--text-1); }
.acc-btn.block { width: 100%; }
.acc-btn.sm { min-height: 36px; padding: 4px 14px; font-size: var(--fs-13); border-radius: 10px; }
html.is-touch .acc-btn.sm { min-height: var(--tap); }
.acc-btn-label { display: inline-block; }
.acc-btn.loading { pointer-events: none; }
.acc-btn.loading .acc-btn-label::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-right: .6em; vertical-align: -.15em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: acc-spin .7s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ recovery code */
.acc-code { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 20px 12px; border-radius: var(--r-3); text-align: center; background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--gold-line); font-family: var(--font-mono); font-weight: 650; font-size: 1.5rem; letter-spacing: 2px; color: var(--gold-200); user-select: all; -webkit-user-select: all; cursor: text; outline: none; }
.acc-code span { display: inline-block; }
.acc-code:focus-visible { box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 0 3px rgba(245, 189, 80, .25); }
.acc-copied { min-height: 1.2em; margin-top: -6px; text-align: center; font-size: var(--fs-13); font-weight: 550; color: var(--accent-300); }
.acc-copied:empty { display: none; }
.acc-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; font-size: var(--fs-14); line-height: 1.4; color: var(--text-1); cursor: pointer; transition: box-shadow var(--dur-2); }
.acc-check:hover { box-shadow: inset 0 0 0 1px var(--line-4); }
.acc-checkbox { flex: none; -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line-4); background: var(--surface-0); cursor: pointer; display: inline-grid; place-content: center; transition: background-color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1); }
.acc-checkbox::after { content: ''; width: 10px; height: 5px; margin-top: -2px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); transition: transform var(--dur-1); }
.acc-checkbox:checked { background: var(--accent-500); border-color: var(--accent-500); }
.acc-checkbox:checked::after { transform: rotate(-45deg) scale(1); }
.acc-checkbox:focus-visible { box-shadow: 0 0 0 3px rgba(114, 226, 173, .35); outline: none; }
.acc-checkbox:disabled { opacity: .4; cursor: not-allowed; }

/* ------------------------------------------------------------------ account panel */
.acc-top { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-3); background: radial-gradient(120% 140% at 0% 0%, rgba(20, 173, 110, .12), transparent 60%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.acc-me { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-me-txt { min-width: 0; }
.acc-me-name { font-weight: 650; font-size: var(--fs-17); line-height: 1.2; color: var(--text-1); overflow-wrap: anywhere; letter-spacing: -.01em; }
.acc-me-user { font-size: var(--fs-13); color: var(--text-3); font-weight: 500; overflow-wrap: anywhere; }
.acc-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--accent-600); font-family: var(--font-ui); font-weight: 650; font-size: var(--fs-15); line-height: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); user-select: none; -webkit-user-select: none; }
.acc-av.lg { width: 52px; height: 52px; font-size: 1.35rem; }
.acc-av:empty { display: none; }
.acc-sync { display: flex; align-items: center; gap: 10px; font-size: var(--fs-13); font-weight: 500; color: var(--text-2); line-height: 1.4; }
.acc-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 3px rgba(140, 150, 144, .2); }
.acc-sync.is-synced .acc-dot { background: var(--accent-400); box-shadow: 0 0 0 3px rgba(60, 205, 141, .22); }
.acc-sync.is-syncing .acc-dot { background: var(--blue-400); box-shadow: 0 0 0 3px rgba(90, 166, 247, .22); animation: acc-pulse 1s ease-in-out infinite; }
.acc-sync.is-offline .acc-dot { background: var(--text-3); }
.acc-sync.is-conflict .acc-dot { background: var(--red-400); box-shadow: 0 0 0 3px rgba(255, 110, 100, .22); }
@keyframes acc-pulse { 50% { opacity: .35; } }
.acc-section { display: flex; flex-direction: column; }
.acc-list { display: flex; flex-direction: column; gap: 6px; }
.acc-device { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); min-width: 0; }
.acc-device.current { box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .25); }
.acc-dev-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.acc-dev-ico .ico-svg { display: block; }
.acc-dev-txt { flex: 1; min-width: 0; }
.acc-dev-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: var(--fs-14); line-height: 1.3; color: var(--text-1); overflow-wrap: anywhere; }
.acc-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-300); font-weight: 600; font-size: var(--fs-11); line-height: 1; white-space: nowrap; }
.acc-details { border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); overflow: hidden; }
.acc-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 16px; cursor: pointer; font-weight: 550; font-size: var(--fs-14); color: var(--text-1); -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-2); }
.acc-details > summary::-webkit-details-marker { display: none; }
.acc-details > summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-2) var(--ease-out); }
.acc-details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-details > summary:hover { background: rgba(255, 255, 255, .03); }
.acc-details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-2); }
.acc-details-body { padding: 4px 16px 16px; }
.acc-details.danger > summary { color: var(--red-300); }
.acc-details.danger[open] { box-shadow: inset 0 0 0 1px var(--red-line); }

/* ------------------------------------------------------------------ conflict + import */
.acc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-cmp-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.acc-cmp-card.newer { box-shadow: inset 0 0 0 1.5px var(--accent-400); background: linear-gradient(180deg, rgba(20, 173, 110, .1), transparent), var(--surface-2); }
.acc-cmp-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font-weight: 650; font-size: var(--fs-11); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.acc-cmp-name { font-weight: 650; font-size: var(--fs-16); line-height: 1.25; color: var(--text-1); overflow-wrap: anywhere; }
.acc-cmp-meta { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); line-height: 1.35; font-variant-numeric: tabular-nums; }
.acc-imp { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; overscroll-behavior: contain; padding: 2px; }
.acc-imp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); cursor: pointer; }
.acc-imp-row:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.acc-imp-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }
.acc-imp-txt b { font-weight: 600; color: var(--text-1); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ the chip (main menu corner, pause menu, HUD) */
.acc-chip {
  --c-dot: var(--text-3);
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: min(260px, 70vw); padding: 4px 14px 4px 4px;
  border: 0; border-radius: 999px; background: var(--glass); color: var(--text-1); text-align: left; font-family: var(--font-ui); cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--glass-line), var(--hl), var(--sh-glass);
  transition: transform var(--dur-1), background-color var(--dur-2); -webkit-tap-highlight-color: transparent;
}
.acc-chip:hover { background: var(--glass-strong); }
.acc-chip:active { transform: scale(.98); }
.acc-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.acc-avwrap { position: relative; flex: none; display: inline-flex; width: 36px; height: 36px; }
.acc-chip .acc-av { width: 36px; height: 36px; font-size: var(--fs-14); }
.acc-chip .acc-av:empty { display: inline-flex; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-3); }
.acc-chip .acc-av:empty::before { content: ''; width: 18px; height: 18px; background: var(--text-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.acc-chip .acc-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid #121715; background: var(--c-dot); box-shadow: none; }
.acc-chip.is-synced { --c-dot: var(--accent-400); }
.acc-chip.is-syncing { --c-dot: var(--blue-400); }
.acc-chip.is-syncing .acc-dot { animation: acc-pulse 1s ease-in-out infinite; }
.acc-chip.is-offline { --c-dot: var(--text-3); }
.acc-chip.is-conflict { --c-dot: var(--red-400); }
.acc-chip.is-guest .acc-dot, .acc-chip.is-nosrv .acc-dot { display: none; }
.acc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.acc-name { font-weight: 600; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sub { font-weight: 450; font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-chip.is-guest .acc-sub { color: var(--accent-300); }
.acc-chip.is-conflict .acc-sub { color: var(--red-300); font-weight: 600; }
.acc-chip.compact { padding: 4px; gap: 0; max-width: none; }
.acc-chip.compact .acc-txt { display: none; }
.pause-acc .acc-chip, .set-row .acc-chip, .load-top .acc-chip { background: var(--surface-4); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line-3); }
.pause-acc .acc-chip .acc-dot, .set-row .acc-chip .acc-dot, .load-top .acc-chip .acc-dot { border-color: var(--surface-4); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 480px) {
  .modal-back:has(.acc-modal) { padding: 8px; align-items: flex-end; padding-bottom: calc(8px + var(--sa-b)); }
  .card.modal.acc-modal, .card.modal.acc-modal.acc-conflict { width: 100%; max-height: calc(var(--vh) - 16px - var(--sa-b)); border-radius: var(--r-4); }
  .acc-wrap > .acc-body, .acc-wrap > .acc-col { padding: 16px 16px 20px; }
  .acc-code { font-size: 1.25rem; letter-spacing: 1px; gap: 6px 10px; padding: 16px 8px; }
  .acc-cmp { grid-template-columns: 1fr; }
  .acc-actions { justify-content: stretch; }
  .acc-actions > * { flex: 1 1 100%; }
}
@media (max-width: 340px) {
  .acc-code { font-size: 1.1rem; letter-spacing: .5px; }
  .acc-head { padding: 12px 10px 12px 14px; gap: 10px; }
  .acc-title { font-size: var(--fs-17); }
  .acc-btn { padding: 8px 12px; }
  .acc-chip { padding-right: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .modal-back:has(.acc-modal) { align-items: center; }
  .card.modal.acc-modal { max-height: calc(var(--vh) - 12px); }
  .acc-head { padding-top: 8px; padding-bottom: 8px; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-btn, .acc-chip, .acc-tab, .acc-inp, .acc-checkbox, .acc-checkbox::after, .acc-details > summary::after { transition: none; }
  .acc-btn.loading .acc-btn-label::before { animation-duration: 2s; }
  .acc-sync.is-syncing .acc-dot, .acc-chip.is-syncing .acc-dot { animation: none; }
}
