:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c3029;
  background: #f6f7f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #245d45;
  --green-dark: #183f30;
  --green-soft: #eaf1ec;
  --line: #dce4dd;
  --muted: #63746b;
  --danger: #a0372b;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #e6eee8 0, #f6f7f2 56rem);
}

.shell { width: min(100% - 32px, 660px); margin: 0 auto; padding: 48px 0 24px; }
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 32px; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--green); color: white; font-weight: 750; letter-spacing: -.05em; }
.brand h1 { margin: 1px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.panel { padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 18px 54px rgba(31, 61, 45, .08); }
h2 { margin: 9px 0 8px; font-size: clamp(25px, 5vw, 32px); letter-spacing: -.045em; }
h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.muted { color: var(--muted); line-height: 1.55; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 25px 0 20px; border-radius: 11px; background: #f0f3ef; }
.tab { border: 0; border-radius: 8px; padding: 11px 12px; color: var(--muted); background: transparent; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.tab.active { background: white; color: var(--green-dark); box-shadow: 0 1px 4px rgba(20, 35, 27, .12); }
.form { display: grid; gap: 10px; }
label { margin-top: 2px; color: #334c40; font-size: 13px; font-weight: 650; }
input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #cbd8cf; border-radius: 9px; color: #20362b; background: white; font: inherit; outline: none; }
input:focus { border-color: #4e8b69; box-shadow: 0 0 0 3px rgba(63, 130, 91, .15); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; }
.primary { margin-top: 8px; color: white; background: var(--green); }
.primary:hover:not(:disabled) { background: var(--green-dark); }
.secondary { width: 100%; color: #294538; border-color: var(--line); background: white; }
.secondary:hover:not(:disabled) { border-color: #94ae9b; background: #fbfcfb; }
.compact { width: auto; min-height: 38px; padding: 0 13px; }
.text-button { justify-self: center; border: 0; padding: 6px 8px; color: var(--green); background: none; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.divider { display: flex; align-items: center; gap: 13px; margin: 18px 0; color: #86948c; font-size: 12px; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.google-mark { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #e5e9e6; border-radius: 50%; color: #4285f4; font: 750 13px Arial, sans-serif; }
.fine-print { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.notice { margin: 0 0 16px; padding: 13px 15px; border: 1px solid #ead6a1; border-radius: 10px; color: #674d13; background: #fff9e9; font-size: 14px; line-height: 1.5; }
.notice.error { border-color: #efc6c0; color: var(--danger); background: #fff2ef; }
.notice.success { border-color: #cce0d0; color: #285f3e; background: #eef7f0; }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-heading h2 { margin-bottom: 2px; }
.account-heading .muted { margin: 5px 0 0; overflow-wrap: anywhere; }
.access-note { display: grid; gap: 4px; margin: 22px 0 28px; padding: 14px 16px; border: 1px solid #d7e4da; border-radius: 11px; background: var(--green-soft); font-size: 13px; line-height: 1.5; }
.access-note strong { color: var(--green-dark); }
.consent-panel { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.consent-panel > .muted { margin: 7px 0 15px; font-size: 13px; }
.legal-documents { display: grid; gap: 11px; margin-bottom: 15px; }
.legal-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; }
.legal-item input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--green); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.file-panel { margin-top: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading .text-button { justify-self: auto; }
.file-list { display: grid; gap: 10px; margin-top: 14px; }
.file-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; }
.file-card h4 { margin: 0; font-size: 14px; line-height: 1.4; }
.file-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.download { min-height: 36px; flex: 0 0 auto; padding: 0 12px; font-size: 12px; }
.empty-state { margin: 0; padding: 16px; border: 1px dashed #cbd8cf; border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; color: #7a8980; font-size: 11px; line-height: 1.5; }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 660px); padding-top: 24px; }
  .panel { padding: 22px 18px; border-radius: 16px; }
  .account-heading { align-items: flex-start; }
  footer { flex-direction: column; gap: 3px; }
  .file-card { align-items: flex-start; }
}
