:root {
  color-scheme: light;
  --ink: #102c35;
  --muted: #63777a;
  --green: #147b62;
  --green-dark: #0f5e4c;
  --mint: #e3f0e8;
  --cream: #f5f8f3;
  --line: #dce5dd;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--cream); }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.account-header { min-height: 76px; padding: 0 max(5vw, calc((100vw - 1080px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.account-header img { display: block; width: 170px; height: auto; }
.back-link { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.account-main { width: min(930px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 68px; }
.account-intro { margin-bottom: 25px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -.04em; }
.account-intro > p:last-child,.account-card form > p,.form-message { color: var(--muted); line-height: 1.6; }
.account-card,.account-section { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgb(16 44 53 / 4%); }
.account-card { max-width: 490px; padding: 28px; }
.account-card h2,.account-section h2 { margin-bottom: 8px; font-size: 20px; }
.account-card label,.message-form label { display: grid; gap: 8px; margin: 20px 0 14px; font-size: 13px; font-weight: 700; }
input,textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cfdcd2; border-radius: 7px; outline-color: var(--green); background: #fff; color: var(--ink); }
textarea { resize: vertical; }
.button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--line); background: #fff; }
.text-button { min-height: 38px; margin-left: 8px; border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-size: 12px; font-weight: 700; }
.form-message { min-height: 20px; margin: 12px 0 0; font-size: 12px; }
.form-message.is-error { color: #9c332b; }
.account-dashboard { display: grid; gap: 17px; }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.account-toolbar p { margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.account-section { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; }
.record-list { display: grid; gap: 10px; }
.record-card { padding: 14px; border: 1px solid #e7ece8; border-radius: 8px; background: #fcfdfb; }
.record-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.record-card h3 { margin: 0 0 5px; font-size: 14px; }
.record-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.record-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; color: #286b56; background: var(--mint); font-size: 10px; font-weight: 800; }
.record-empty { padding: 18px; border: 1px dashed #cfdcd2; border-radius: 8px; color: var(--muted); font-size: 13px; }
.message-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0ee; }
.account-footer { min-height: 66px; padding: 15px max(5vw, calc((100vw - 1080px)/2)); display: flex; justify-content: space-between; gap: 15px; color: var(--muted); background: #fff; font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .account-header { min-height: 65px; padding: 0 18px; }
  .account-header img { width: 138px; }
  .account-main { width: calc(100% - 30px); padding: 37px 0 48px; }
  .account-card,.account-section { padding: 18px; }
  .section-heading,.account-toolbar { align-items: flex-start; flex-direction: column; }
  .section-heading .button { width: 100%; }
  .account-footer { padding: 17px 18px; flex-direction: column; }
}
