.account-main { min-height: calc(100vh - 68px); }
.account-auth { width: min(1120px, calc(100% - 48px)); min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 72px; align-items: center; }
.auth-copy h1, .workspace-heading h1 { margin: 7px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: 1.08; }
.auth-copy > p:last-of-type { max-width: 670px; color: var(--muted); font-size: 18px; }
.privacy-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.privacy-list li { position: relative; padding-left: 28px; font-weight: 700; }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.auth-panel { padding: 36px; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-panel h2 { margin-top: 20px; font-size: 26px; }
.auth-panel p { color: var(--muted); }
.auth-panel .button { width: 100%; margin-top: 12px; }
.security-seal { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 24px; }
.workspace { width: min(1380px, calc(100% - 48px)); margin: 38px auto 70px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.workspace-heading h1 { margin-bottom: 5px; font-size: 38px; }
.account-identity { margin: 0; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 620px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.claims-sidebar { padding: 24px; border-right: 1px solid var(--line); background: #f7f9f8; }
.sidebar-heading, .claim-title-row, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sidebar-heading h2, .claim-title-row h2, .panel-heading h3 { margin: 0; }
.icon-command { width: 38px; height: 38px; border: 1px solid #9caebc; border-radius: 5px; background: white; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.compact-form { margin: 18px -8px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.compact-form .field + .field { margin-top: 14px; }
.compact-form textarea { min-height: 64px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inline-actions .button { min-height: 42px; padding: 0 15px; }
.claim-list { display: grid; gap: 8px; margin-top: 20px; }
.claim-list-empty, .record-empty { padding: 24px 4px; color: var(--muted); }
.claim-select { width: 100%; padding: 13px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.claim-select:hover { background: white; border-color: var(--line); }
.claim-select.active { background: white; border-color: #8bb8aa; box-shadow: 0 2px 7px rgba(20,38,56,.07); }
.claim-select strong, .claim-select span { display: block; }
.claim-select span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.claim-detail { min-width: 0; padding: 30px; }
.empty-workspace { min-height: 500px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-workspace h2 { color: var(--ink); }
.text-danger { border: 0; background: transparent; color: var(--red); font-weight: 750; cursor: pointer; }
.account-tabs { display: flex; gap: 24px; margin: 24px 0; border-bottom: 1px solid var(--line); }
.account-tab { padding: 12px 2px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.account-tab.active { border-bottom-color: var(--green); color: var(--navy); }
.panel-heading p { margin: 4px 0 0; color: var(--muted); }
.deadline-warning { margin: 18px 0; padding: 13px 15px; border-left: 4px solid var(--gold); background: #faf8f0; color: #495663; font-size: 14px; }
.deadline-warning strong { color: var(--ink); }
.decision-form, .document-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; padding: 20px; border: 1px solid #b8d1c9; border-radius: 6px; background: #f4faf8; }
.field-wide { grid-column: 1 / -1; }
.decision-form fieldset { margin: 0; }
.reminder-options { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px; border: 1px solid #cbd8d4; border-radius: 5px; background: white; }
.reminder-options legend { display: block; width: 100%; margin: 0 0 8px; font-size: 15px; }
.reminder-options label, .confirmation { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.reminder-options input, .confirmation input { width: 18px; height: 18px; accent-color: var(--green); }
.confirmation { padding: 12px 14px; border: 1px solid #cbd8d4; border-radius: 5px; background: white; }
.record-list { display: grid; gap: 10px; margin-top: 20px; }
.record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 6px; }
.record-card h4 { margin: 0 0 5px; }
.record-card p { margin: 3px 0; color: var(--muted); font-size: 14px; }
.record-actions { display: flex; align-items: center; gap: 9px; }
.record-actions button { min-height: 38px; padding: 0 12px; border: 1px solid #9caebc; border-radius: 5px; background: white; color: var(--navy); font-weight: 750; cursor: pointer; }
.record-actions .delete-record { border-color: #d6a3a3; color: var(--red); }
.upload-note { color: var(--muted); font-size: 13px; }
.workspace-message { margin-top: 18px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.account-link { color: var(--green-dark); font-weight: 800; text-decoration: none; }
.account-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .account-auth { grid-template-columns: 1fr; gap: 30px; padding: 54px 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .claims-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .claim-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .account-auth, .workspace { width: min(100% - 28px, 100%); }
  .auth-copy h1 { font-size: 36px; }
  .auth-panel, .claim-detail, .claims-sidebar { padding: 20px; }
  .workspace-heading { align-items: center; }
  .workspace-heading h1 { font-size: 31px; }
  .claim-list, .decision-form, .document-form { grid-template-columns: 1fr; }
  .decision-form .field-wide, .document-form .field-wide { grid-column: 1; }
  .account-tabs { gap: 14px; overflow-x: auto; }
  .account-tab { white-space: nowrap; }
  .panel-heading { display: grid; }
  .record-card { grid-template-columns: 1fr; }
  .record-actions { flex-wrap: wrap; }
  .header-actions { gap: 0; }
  .header-actions .admin-link { display: none; }
}
