/* Account page layout only.
 *
 * Palette, reset, header, footer, the account slot and the sign-in sheet come
 * from /styles.css, which this page loads first. Every colour here is one of
 * its tokens, so this page cannot drift into a palette of its own. */
button, input { font: inherit; }
[hidden] { display: none !important; }

.account-shell { max-width: 860px; margin: 0 auto; padding: 40px 22px 74px; }
.account-intro { max-width: 680px; margin-bottom: 24px; }
.account-intro h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.18; letter-spacing: -.045em; }
.account-intro > p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.account-card { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow-sm); }
.account-card h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.025em; }
.account-card > p { margin: 0 0 12px; font-size: 15px; }

.account-rows { margin: 0; display: flex; flex-direction: column; }
.account-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--hairline); }
.account-rows div:last-child { border-bottom: 0; }
.account-rows dt { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
.account-rows dd { margin: 0; min-width: 0; color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.account-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-status { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.account-status:empty { display: none; }
.account-status.is-error { color: var(--accent); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--card);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.account-button:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--card); }
.account-button.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.account-button.secondary:hover { border-color: var(--soft); color: var(--ink); }

.account-next { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg); }
.account-next p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.account-shell .footer { margin-top: 40px; }

@media (max-width: 560px) {
  .account-shell { padding: 28px 16px 46px; }
  .account-intro h1 { font-size: 28px; }
  .account-intro > p { font-size: 14px; }
  .account-card { padding: 18px 16px; border-radius: 18px; }
}

/* The auto-use switch: the one setting this page changes. */
.account-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0;
  border-top: 1px solid var(--hairline); color: var(--ink); font-size: 15px; font-weight: 700; }
.account-switch { flex: 0 0 auto; width: 52px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; }
.account-switch i { position: relative; display: block; width: 46px; height: 28px; border-radius: 999px; background: var(--line); }
.account-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.account-switch[aria-checked="true"] i { background: var(--ink); }
.account-switch[aria-checked="true"] i::after { transform: translateX(18px); }
.account-switch:disabled { cursor: wait; opacity: .6; }
.account-switch:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .account-switch i::after { transition: none; }
}

/* 사용량: a period switch beside the heading, then one short block per kind of use. */
.usage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.usage-head h2 { margin: 0; }
.usage-periods { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); }
.usage-period { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: none;
  color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.usage-period[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.usage-period:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.usage-period:disabled { cursor: wait; }
.usage-block { margin-top: 18px; }
.usage-block h3 { margin: 0 0 2px; color: var(--ink); font-size: 15px; letter-spacing: -.015em; }
.usage-block .account-note { margin-top: 6px; }
/* 실행 방식 (FREE-5): three choices, the same words as the app (no credit numbers). */
.policy-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.policy-option { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg);
  color: var(--ink-soft); font: inherit; font-size: 14px; cursor: pointer; }
.policy-option[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.policy-option:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.policy-option:disabled { cursor: default; opacity: .55; }
.policy-free-llm { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; min-height: 44px; }
.policy-free-llm input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.policy-free-llm-text { display: flex; flex-direction: column; gap: 2px; }
.usage-quota { display: block; width: 100%; height: 6px; margin: 2px 0 8px; accent-color: var(--ink); }
