:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #1b2823;
  background: #f5f8f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #1b2823;
  --muted: #5e6c65;
  --line: #dce6e0;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --green: #147e77;
  --green-strong: #0e6d66;
  --green-pale: #e7f3ed;
  --danger: #b42318;
  --danger-pale: #fff1ef;
  --shadow: 0 18px 48px rgb(23 44 34 / 8%);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f8f6;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #69b6ac;
  outline-offset: 3px;
}

.page-shell {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 19px;
  font-weight: 750;
}

.brand-maker,
.header-label {
  color: var(--muted);
  font-size: 13px;
}

.header-label {
  font-weight: 600;
}

main {
  padding: 48px 0 42px;
}

.intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 740;
}

.intro-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.details {
  padding: 25px 0 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details h2,
.local-data h2,
.account-panel h2,
.success-panel h2,
.confirm-dialog h2 {
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.35;
}

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

.deletion-list li {
  position: relative;
  padding-left: 21px;
  color: #34443c;
  line-height: 1.5;
}

.deletion-list li::before {
  position: absolute;
  top: 10px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.retention-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.local-data {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d4e7dc;
  border-radius: 8px;
  background: var(--green-pale);
}

.local-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #a7d0ba;
  border-radius: 50%;
  color: var(--green-strong);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.local-data h2 {
  margin-bottom: 8px;
  font-size: 17px;
}

.local-data p {
  margin-bottom: 10px;
  color: #42544a;
  font-size: 14px;
  line-height: 1.6;
}

.local-data .backup-reminder {
  margin-bottom: 0;
  color: #24483a;
  font-weight: 650;
}

.account-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.panel-heading .eyebrow {
  margin-bottom: 5px;
}

.panel-heading h2 {
  margin: 0;
}

.security-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
}

.security-mark svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-state > p:first-child {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  background: var(--green);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--green-strong);
}

.button-secondary {
  border-color: var(--line);
  background: white;
  color: #34443c;
}

.button-secondary:hover:not(:disabled) {
  border-color: #b7c9bf;
  background: #f7faf8;
}

.button-danger {
  background: var(--danger);
  color: white;
}

.button-danger:hover:not(:disabled) {
  background: #8f1d14;
}

.google-g {
  color: white;
  font-size: 17px;
  font-weight: 800;
}

.account-label {
  margin-bottom: 4px !important;
  font-size: 13px;
}

.account-email {
  margin-bottom: 19px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-message {
  min-height: 0;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.status-message:empty {
  display: none;
}

.status-message[data-kind="error"] {
  color: var(--danger);
}

.success-panel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #b7dec9;
  border-radius: 8px;
  background: #eaf6ef;
}

.success-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #197b4c;
  color: white;
  font-weight: 800;
}

.success-panel h2 {
  margin-bottom: 8px;
  color: #175d3d;
}

.success-panel p {
  margin-bottom: 7px;
  color: #315842;
  line-height: 1.5;
}

.success-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.confirm-dialog {
  width: min(100% - 28px, 490px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(10 26 18 / 28%);
}

.confirm-dialog::backdrop {
  background: rgb(17 31 24 / 54%);
}

.dialog-content {
  padding: 25px;
}

.confirm-dialog h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.dialog-account-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.dialog-email {
  margin-bottom: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dialog-warning {
  margin-bottom: 18px;
  color: #4c5a53;
  line-height: 1.55;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #34443c;
  font-size: 14px;
  line-height: 1.5;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 920px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  main {
    padding: 34px 0 28px;
  }

  h1 {
    font-size: 29px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .local-data,
  .account-panel,
  .success-panel {
    padding: 18px;
  }

  .account-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .header-label {
    font-size: 12px;
  }
}
