:root {
  color-scheme: light dark;
  --page: #f4f3ed;
  --card: #fffefa;
  --ink: #1c2d27;
  --muted: #68766f;
  --line: #d7e0d9;
  --forest: #174d40;
  --red: #a83d36;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid #82aa96; outline-offset: 3px; }
.page-shell { width: min(100%, 560px); margin: 0 auto; padding-top: clamp(16px, 7vh, 72px); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px 2px; color: var(--forest); font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--forest); color: #fffefa; font-size: 12px; letter-spacing: -.06em; }
.delete-card { padding: clamp(22px, 6vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 12px 38px rgb(35 52 42 / 6%); }
.eyebrow { margin: 0 0 5px; color: #819087; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.08; letter-spacing: -.055em; }
.intro { margin: 14px 0 24px; color: var(--muted); font-size: 15px; }
.language-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.language-picker select { width: auto; min-width: 165px; max-width: 62%; min-height: 42px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.field-label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 700; }
input[type="email"], input[type="password"] { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); }
.confirm-row { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.confirm-row input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--forest); }
.delete-button { width: 100%; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--red); color: #fff; cursor: pointer; font-weight: 750; }
.delete-button:hover { background: #8d302b; }
.delete-button:disabled { cursor: wait; opacity: .65; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--red); font-size: 13px; }
.success-panel { padding: 16px 4px 2px; text-align: center; }
.success-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: #e1f0e5; color: var(--forest); font-size: 27px; font-weight: 800; }
.success-panel h2 { margin: 0 0 15px; font-size: 23px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 11px; background: #e8eee9; font-weight: 700; text-decoration: none; }
[hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root { --page: #09131b; --card: #14232d; --ink: #f5f7f2; --muted: #a3b3b4; --line: #29404a; --forest: #b3f36a; --red: #ff7c63; }
  .brand-mark { color: #09131b; }
  .delete-card { box-shadow: 0 12px 38px rgb(0 0 0 / 20%); }
  .delete-button { color: #182019; }
  .back-link { color: #e9f2e6; background: #20313a; }
}
