:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #203f36;
  background: #fbf8ef;
  font-synthesis: none;
  --teal: #246b56;
  --deep: #204d3d;
  --line: #d5dfcf;
  --muted: #4d6758;
  --soft: #edf2e6;
  --white: #fffefa;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
a { color: var(--teal); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #af7733; outline-offset: 4px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--deep); line-height: 1.25; }
.site-header { max-width: 1392px; margin: auto; padding: 26px 40px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0; font-size: 27px; letter-spacing: -1px; font-weight: 800; color: var(--deep); text-decoration: none; }
.brand > span:last-child { font-weight: 450; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; margin-right: 12px; transform: rotate(-8deg); }
.brand-mark i { width: 8px; height: 8px; background: #39785b; border-radius: 2px; }
.brand-mark i:last-child { background: #b4c99e; }
.header-label { color: var(--muted); font-size: 16px; }
.demo-pill { margin-left: auto; font-size: 16px; border: 1px solid #bccdb1; background: #edf2e6; border-radius: 30px; padding: 9px 15px; white-space: nowrap; }
.demo-pill span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3e7954; margin-right: 7px; }
.page-shell { max-width: 1320px; margin: auto; padding: 0 32px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 52px 0 32px; }
.eyebrow { font-size: 16px; letter-spacing: .07em; font-weight: 750; color: #44684d; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 3.8vw, 50px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.15; margin-bottom: 22px; }
h1 span { font-weight: 450; color: #4f7056; }
.hero-copy { max-width: 800px; color: var(--muted); font-size: 20px; line-height: 1.65; margin-bottom: 0; }
.hero-emblem { position: relative; width: 225px; height: 175px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse, #e3ead5 0%, #fbf8ef 70%); }
.sheet-icon { font-size: 38px; color: #4c7751; display: flex; align-items: center; justify-content: center; width: 75px; height: 96px; border: 1px solid #a7bb94; border-radius: 10px; background: var(--white); box-shadow: 9px 10px 0 #dce6cf; transform: rotate(-7deg); }
.emblem-check { position: absolute; right: 51px; bottom: 41px; border-radius: 50%; width: 38px; height: 38px; background: #36784f; color: white; display: grid; place-items: center; font-size: 22px; border: 3px solid #f3f5e9; }
.emblem-caption { position: absolute; bottom: 0; font-size: 16px; color: var(--muted); white-space: nowrap; }
.demo-notice { padding: 22px; display: flex; align-items: flex-start; gap: 18px; background: #f1eddd; border: 1px solid #d9ceb0; border-radius: 14px; margin-bottom: 28px; }
.notice-tag { font-size: 16px; font-weight: 800; white-space: nowrap; background: #e1d6b9; color: #574a2f; border-radius: 6px; padding: 6px 10px; margin-top: 1px; }
.demo-notice p { font-size: 16px; line-height: 1.65; color: #584f3a; margin: 0 0 10px; }
.demo-notice p:last-child { margin-bottom: 0; }
.demo-notice strong { font-weight: 700; }
.how-it-works { border: 1px solid var(--line); border-radius: 16px; background: #edf2e5; margin: 0 0 32px; padding: 27px; }
.how-it-works h2 { font-size: 28px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.5px; }
.guide-intro { font-size: 18px; color: var(--muted); margin-bottom: 23px; max-width: 850px; }
.how-it-works ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; }
.how-it-works li { display: flex; align-items: flex-start; gap: 13px; }
.how-it-works li > span { font-size: 18px; font-weight: 750; min-width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #d8e5cb; color: #31583d; margin-top: 1px; }
.how-it-works h3 { font-size: 19px; font-weight: 700; margin: 3px 0 10px; }
.how-it-works li p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.guide-note { border-top: 1px solid #c9d6bd; padding-top: 20px; margin: 24px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.workspace { scroll-margin-top: 20px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.role-tabs { display: flex; background: #e7eddf; border: 1px solid var(--line); border-radius: 13px; padding: 6px; gap: 5px; }
.role-tab { min-height: 54px; border-radius: 9px; padding: 13px 22px; background: transparent; font-size: 18px; font-weight: 600; color: #4f6752; display: flex; gap: 10px; align-items: center; justify-content: center; }
.role-tab > span { font-size: 16px; font-weight: 700; color: #4f674e; }
.role-tab.active { background: var(--white); color: var(--deep); box-shadow: 0 2px 7px #29412a12; }
.role-tab:hover { background: #f5f7ef; color: var(--deep); }
.text-button { background: transparent; color: #44634b; display: flex; gap: 8px; align-items: center; font-size: 16px; padding: 13px; min-height: 52px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--deep); background: var(--soft); border-radius: 8px; }
.text-button span { font-size: 23px; }
.role-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: 32px 0 24px; }
.role-intro .eyebrow { margin-bottom: 10px; }
.role-intro h2 { font-size: 29px; font-weight: 600; letter-spacing: -.6px; margin: 0; }
.role-intro > p { max-width: 470px; font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 15px; padding: 20px; background: #fffefa; }
.stat > span { font-size: 32px; color: #356746; font-weight: 650; line-height: 1; }
.stat p { font-size: 16px; color: var(--muted); margin: 0; }
.new-request-card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 27px; margin-bottom: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h3 { font-size: 25px; font-weight: 650; margin: 0; letter-spacing: -.3px; }
.small-note { font-size: 16px; color: #4e674f; border-radius: 6px; background: #edf3e4; padding: 7px 10px; }
.request-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label { font-size: 18px; font-weight: 650; color: #36543b; }
.field input, .field select { min-height: 54px; min-width: 0; width: 100%; background: #fdfcf7; color: #294631; border: 1px solid #bccdb7; border-radius: 8px; padding: 12px; font-size: 18px; line-height: 1.4; }
.field small { font-size: 16px; color: var(--muted); line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 21px; border-radius: 9px; font-size: 18px; font-weight: 650; min-height: 54px; line-height: 1.4; text-align: center; text-decoration: none; transition: background .15s, transform .15s; overflow-wrap: anywhere; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: #1c5643; }
.button.secondary { background: #e7efdc; color: #31573c; border: 1px solid #bdcfb1; }
.button.secondary:hover { background: #dbe8cd; }
.button.subtle { background: var(--white); color: #385f43; border: 1px solid #bbccb3; }
.button.danger { color: #813f32; background: #f7e9df; border: 1px solid #dfc5b5; }
.request-form > .button { grid-column: 1 / -1; justify-self: start; }
.form-footnote { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 20px 0 0; }
.requests-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.requests-list-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list-heading { padding: 24px 23px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.list-heading h3 { font-size: 23px; margin: 0; font-weight: 650; }
.count-badge { border-radius: 7px; background: #e9f0df; min-width: 34px; text-align: center; padding: 5px 8px; font-size: 16px; color: #3f6245; }
.filter-field { padding: 0 23px 22px; }
.filter-field select { background: #fdfcf7; }
.request-list { padding: 0 12px; display: grid; gap: 9px; }
.request-item { background: var(--white); padding: 18px 14px; text-align: left; width: 100%; border: 1px solid transparent; border-radius: 10px; color: #34563c; transition: background .15s; min-width: 0; }
.request-item:hover { background: #f3f5e9; }
.request-item.selected { background: #e9f0df; border-color: #a9c397; }
.request-item-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; align-items: center; margin-bottom: 12px; }
.request-alias { font-weight: 750; font-size: 18px; letter-spacing: .02em; }
.request-item .type-label { font-size: 18px; margin: 0 0 6px; color: #425f45; }
.request-item .doctor-label { font-size: 16px; color: var(--muted); margin: 0; }
.state-badge { font-size: 16px; line-height: 1.4; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 6px 10px; background: #edf0e6; color: #4d6245; }
.state-badge::before { content: ""; display: block; width: 6px; height: 6px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
.state-requested { background: #eef0dc; color: #565d2d; }
.state-assistant_review { background: #e6eff4; color: #355b74; }
.state-medical_review { background: #f5ebd5; color: #77521c; }
.state-document_attached { background: #eee6f3; color: #684580; }
.state-available { background: #deedd4; color: #365e32; }
.list-note { font-size: 16px; line-height: 1.6; color: var(--muted); padding: 22px 23px; margin: 0; }
.request-detail { background: var(--white); border: 1px solid var(--line); border-radius: 16px; min-height: 400px; padding: 28px; min-width: 0; overflow-wrap: anywhere; }
.detail-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.detail-top .eyebrow { margin-bottom: 10px; }
.detail-top h3 { margin: 0; font-size: 29px; letter-spacing: -.5px; font-weight: 650; }
.detail-top .state-badge { margin-top: 4px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: #f0f4e8; border-radius: 10px; padding: 20px; margin-bottom: 30px; }
.meta-label { display: block; color: #566b4e; font-size: 16px; margin-bottom: 7px; }
.meta-value { font-size: 18px; color: #365a3c; }
.timeline { margin: 0 0 30px; list-style: none; padding: 0; display: flex; }
.timeline li { position: relative; flex: 1; min-width: 0; font-size: 16px; line-height: 1.45; color: #5e7054; padding-top: 35px; padding-right: 10px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #f1f4e8; border: 2px solid #b7c7ab; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; height: 2px; position: absolute; top: 14px; left: 18px; right: 0; background: #ccd8c2; }
.timeline li.done { color: #456d48; }
.timeline li.done::before { background: #729365; border-color: #729365; }
.timeline li.done::after { background: #9cb88d; }
.timeline li.current { color: #245c3c; font-weight: 750; }
.timeline li.current::before { background: #36794d; border-color: #c7dcb8; box-shadow: 0 0 0 3px #edf3e4; }
.action-panel { padding: 24px; border: 1px solid #d4e0ca; border-radius: 12px; background: #f7f9f0; }
.action-panel h4 { font-size: 23px; margin: 0 0 13px; font-weight: 650; letter-spacing: -.2px; }
.action-panel p { font-size: 18px; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.action-panel p:last-child { margin-bottom: 0; }
.action-panel .quiet-note { font-size: 16px; color: #52684b; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.waiting-indicator { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: #48663f; background: #e8efdc; border-radius: 8px; padding: 13px 15px; }
.waiting-indicator::before { content: ""; border: 2px solid #a9c098; border-top-color: #4c713f; border-radius: 50%; width: 14px; height: 14px; flex-shrink: 0; }
.file-field { margin: 20px 0; }
.file-field input { height: auto; padding: 12px; font-size: 16px; background: var(--white); }
.file-field input::file-selector-button { border: 0; border-radius: 6px; padding: 10px 12px; background: #e3ecd7; color: #3c623f; font: inherit; margin-right: 12px; min-height: 44px; cursor: pointer; }
.file-help { font-size: 16px; color: var(--muted); margin: 0 0 20px; }
.document-card { border: 1px solid #c9d9be; border-radius: 10px; background: var(--white); padding: 19px; margin: 22px 0; display: flex; align-items: center; gap: 15px; min-width: 0; }
.pdf-icon { font-size: 16px; font-weight: 800; border: 1px solid #abc29a; border-radius: 6px; background: #edf3e5; color: #45673d; min-width: 49px; height: 58px; display: grid; place-items: center; }
.document-description { min-width: 0; flex: 1; }
.file-name { font-size: 18px; color: #3e6039; display: block; overflow-wrap: anywhere; font-weight: 650; }
.file-size { font-size: 16px; color: var(--muted); margin-top: 5px; display: block; }
.document-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.document-links a { font-size: 18px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.confirmation { border-top: 1px solid #d4dfc9; margin-top: 24px; padding-top: 24px; }
.confirmation .field { max-width: 360px; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.6; color: #405d3d; margin-bottom: 21px; }
.checkbox-label input { accent-color: var(--teal); width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
.doc-availability { padding: 15px 17px; background: #e2edd5; border-radius: 8px; color: #3e6037; font-size: 18px; line-height: 1.6; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 45px 22px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.empty-state strong { display: block; font-size: 23px; color: #3e633e; margin-bottom: 12px; }
.list-empty { padding: 26px 18px; font-size: 16px; color: var(--muted); line-height: 1.65; text-align: center; }
.privacy-footnote { font-size: 16px; line-height: 1.65; margin: 23px 0 0; color: var(--muted); }
.page-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 25px; font-size: 16px; line-height: 1.6; color: var(--muted); padding: 25px 0 32px; margin-top: 40px; }
.page-footer span:first-child { color: #476442; }
.page-footer > span:last-child { max-width: 600px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 15px); max-width: calc(100% - 32px); width: max-content; border-radius: 12px; padding: 17px 23px; background: #234d35; color: white; box-shadow: 0 5px 25px #153d3229; font-size: 18px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 10; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #804d41; }
.noscript { padding: 30px; text-align: center; font-size: 18px; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .hero-emblem { display: none; }
  .requests-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
  .request-detail { padding: 23px; }
  .role-intro { display: block; }
  .role-intro > p { max-width: 800px; margin-top: 16px; }
  .timeline { flex-direction: column; gap: 0; }
  .timeline li { padding: 0 0 21px 34px; min-height: 42px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; }
  .timeline li:not(:last-child)::after { top: 22px; left: 8px; width: 2px; height: auto; bottom: 0; right: auto; }
  .detail-meta { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 850px) {
  .site-header { padding: 22px 24px; gap: 18px; }
  .header-label { display: none; }
  .page-shell { padding: 0 24px; }
  .hero { padding: 36px 0 27px; }
  .hero-copy { font-size: 18px; }
  .demo-notice { flex-direction: column; gap: 13px; }
  .how-it-works { padding: 24px; }
  .how-it-works ol { grid-template-columns: 1fr; gap: 23px; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .role-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role-tab { padding: 13px 10px; }
  .text-button { align-self: flex-start; }
  .request-form { grid-template-columns: 1fr; gap: 22px; }
  .request-form > .button { justify-self: stretch; }
  .requests-layout { grid-template-columns: 1fr; gap: 22px; }
  .request-list { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { flex-direction: row; }
  .timeline li { padding: 35px 10px 0 0; min-height: 0; }
  .timeline li::before { top: 6px; }
  .timeline li:not(:last-child)::after { height: 2px; top: 14px; left: 18px; width: auto; right: 0; bottom: auto; }
  .stat { display: block; padding: 17px; }
  .stat p { margin-top: 10px; }
  .page-footer { flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .site-header { padding: 19px 16px; gap: 10px; }
  .brand { font-size: 23px; }
  .brand-mark { margin-right: 9px; }
  .demo-pill { padding: 8px 10px; white-space: normal; text-align: center; }
  .demo-pill span { display: none; }
  .page-shell { padding: 0 16px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .hero { padding-top: 31px; }
  .demo-notice { padding: 19px; }
  .how-it-works { padding: 21px; }
  .how-it-works h2 { font-size: 26px; }
  .how-it-works li { gap: 11px; }
  .role-tabs { gap: 4px; padding: 4px; }
  .role-tab { font-size: 16px; flex-direction: column; gap: 3px; padding: 12px 4px; min-height: 74px; }
  .role-tab > span { font-size: 16px; }
  .role-intro h2 { font-size: 26px; }
  .stats-grid { gap: 9px; }
  .stat { padding: 15px 10px; }
  .stat > span { font-size: 29px; }
  .stat p { font-size: 16px; overflow-wrap: anywhere; line-height: 1.5; }
  .new-request-card { padding: 21px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .section-heading h3 { font-size: 24px; }
  .list-heading { padding: 22px 19px; }
  .filter-field { padding: 0 19px 21px; }
  .list-note { padding: 21px 19px; }
  .request-detail { padding: 21px; }
  .detail-top h3 { font-size: 27px; }
  .detail-meta { grid-template-columns: 1fr; padding: 19px; }
  .timeline { flex-direction: column; }
  .timeline li { padding: 0 0 21px 34px; min-height: 42px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; }
  .timeline li:not(:last-child)::after { top: 22px; left: 8px; width: 2px; height: auto; bottom: 0; right: auto; }
  .action-panel { padding: 19px; }
  .action-panel h4 { font-size: 22px; }
  .action-row .button { width: 100%; }
  .document-card { padding: 16px; align-items: flex-start; gap: 11px; }
  .pdf-icon { min-width: 44px; height: 52px; }
  .file-field input::file-selector-button { display: block; width: 100%; margin: 0 0 10px; }
  .toast { font-size: 16px; padding: 15px 18px; bottom: 18px; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 15px; padding: 16px 18px; }
  .stat p { margin: 0; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .button:hover { transform: none; }
}
