@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@500;600;650;700;750;800&display=swap');

:root { color-scheme: light; --ink: #23312b; --muted: #747e78; --green: #275c43; --line: #e2e7df; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7f8f2; font-family: 'DM Sans', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 760px; background: radial-gradient(ellipse at 13% 45%, #e9eddc 0, transparent 44%), radial-gradient(ellipse at 90% 70%, #edf0e1 0, transparent 42%); pointer-events: none; }
.site-header { max-width: 1240px; margin: auto; padding: 30px 44px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.brand-dot { color: #6a8752; }
.brand-mark { background: var(--green); color: #fff; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; font-size: 26px; line-height: 34px; padding-left: 7px; position: relative; }
.brand-mark span { font-size: 18px; position: absolute; right: 4px; top: -5px; }
.availability { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #606e60; border: 1px solid #dfe5d7; border-radius: 30px; padding: 8px 12px; background: #f3f5eb; }
.availability > span { width: 6px; height: 6px; border-radius: 50%; background: #64834d; }
main { padding: 38px 20px 45px; }
.intro { text-align: center; margin-bottom: 32px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.1px; color: #66795c; display: flex; gap: 8px; align-items: center; justify-content: center; }
.eyebrow span { width: 17px; height: 1px; background: #7b8d6e; }
h1 { font-family: 'Manrope', sans-serif; font-size: clamp(36px, 5vw, 49px); font-weight: 750; line-height: 1.2; letter-spacing: -2.2px; margin: 16px 0 15px; }
h1 > span { color: #739058; }
.intro p { color: var(--muted); line-height: 1.75; margin: 0; font-size: 14px; }
.form-card { width: 100%; max-width: 586px; margin: auto; background: #fff; border: 1px solid #e4e8df; border-radius: 19px; padding: 30px 34px 23px; box-shadow: 0 12px 36px #334b2910, 0 2px 4px #334b2903; }
.card-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #eef0e9; margin-bottom: 24px; }
h2 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 750; letter-spacing: -.5px; margin: 0 0 7px; }
.card-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.heading-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #f3f5ed; border: 1px solid #e7ebdf; color: #61794f; border-radius: 11px; font-size: 23px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 21px; min-width: 0; }
label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
label span { color: #899281; margin-left: 3px; }
input, select, textarea { display: block; width: 100%; color: var(--ink); font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfb; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #92998f; opacity: 1; }
select:has(option[value='']:checked) { color: #92998f; }
select { cursor: pointer; }
textarea { min-height: 116px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #6b8d59; box-shadow: 0 0 0 3px #6b8d591a; }
small { display: block; font-size: 10px; color: #858e80; margin-top: 8px; line-height: 1.5; }
.message-field { margin-bottom: 23px; }
button { border: 0; border-radius: 8px; background: var(--green); color: white; font: inherit; font-size: 12px; font-weight: 600; width: 100%; padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 11px; cursor: pointer; transition: background .15s, transform .15s; }
button span { font-size: 18px; line-height: 1; }
button:hover { background: #1d4934; transform: translateY(-1px); }
button:focus-visible, a:focus-visible { outline: 3px solid #86a36d; outline-offset: 4px; }
.form-note { margin: 13px 0 0; text-align: center; color: #8c9387; font-size: 10px; }
.under-card { text-align: center; color: #7d8874; font-size: 11px; margin: 22px 0 0; }
.under-card span { margin-right: 5px; font-size: 15px; }
footer { max-width: 1152px; margin: auto; padding: 20px 0 25px; border-top: 1px solid #e3e7db; display: flex; justify-content: space-between; color: #89917f; font-size: 10px; }
.notice { padding: 13px; margin-bottom: 20px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.success { color: #275c43; background: #edf5e7; }
.warning { color: #78561f; background: #fff5df; }
.error { color: #9f3838; background: #fff0ed; }
.field-error { color: #a03434; }
[aria-invalid='true'] { border-color: #bf6464; }
@media (max-width: 640px) { .site-header { padding: 23px 20px; } .brand { font-size: 21px; } .availability { font-size: 10px; padding: 7px 9px; } main { padding-top: 27px; } .form-card { padding: 25px 22px 22px; } .form-row { grid-template-columns: 1fr; gap: 0; } h1 { letter-spacing: -1.7px; } footer { margin: 0 20px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.header-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.header-nav a, .auth-links a, .profile-actions a, .search-result a { color: var(--green); font-weight: 600; text-decoration: none; }
.header-nav a:hover, .profile-actions a:hover, .auth-links a:hover { text-decoration: underline; }
.header-nav form { margin: 0; }
.text-button { background: transparent; color: var(--green); padding: 0; width: auto; }
.text-button:hover { background: transparent; }
.portal-main { max-width: 1152px; margin: 0 auto; min-height: 75vh; }
.portal-main > .notice { max-width: 800px; margin: 0 auto 25px; }
.auth-links { text-align: center; font-size: 12px; margin-top: 22px; }
.profile-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 24px; font-size: 13px; }
.profile-intro { margin-bottom: 20px; }
.profile-intro h1 { font-size: 36px; margin: 8px 0; }
.profile-card { max-width: none; }
.profile-card .profile-actions { flex-direction: row; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.profile-save { width: auto; min-width: 150px; }
.profile-apps { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.profile-apps .section-heading p { margin: 5px 0 14px; font-size: 12px; }
.profile-apps .empty-state { padding: 20px 12px; }
.profile-add-app { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.profile-add-app h2 { margin-bottom: 18px; }
.profile-apps td a { overflow-wrap: anywhere; }
.app-row-actions { display: flex; align-items: center; gap: 8px; }
.app-row-actions button { white-space: nowrap; }
.page-heading { margin-bottom: 32px; }
.page-heading .eyebrow { justify-content: flex-start; }
.page-heading p, .muted, .section-heading p { color: var(--muted); line-height: 1.6; }
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; margin-bottom: 28px; }
.payment-card, .table-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: white; margin-bottom: 24px; }
.payment-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.payment-card h2 { font-size: 20px; }
.price { font-family: Manrope,sans-serif; font-size: 20px; font-weight: 750; margin: 20px 0; letter-spacing: 0; }
.price span { font-family: 'DM Sans',sans-serif; font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.badge { display: inline-block; background: #f0f2ec; padding: 5px 9px; border-radius: 20px; font-size: 11px; white-space: nowrap; }
.consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.7; font-weight: 400; margin: 20px 0; }
.consent input { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; margin-top: 4px; accent-color: var(--green); }
.consent span { color: var(--ink); margin: 0; }
.payment-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.secondary { background: #f0f3e9; color: var(--green); border: 1px solid #dce4d4; }
.secondary:hover { background: #e1e9d8; }
.danger { background: #fff4f1; color: #9d3737; border: 1px solid #e8c5be; }
.danger:hover { background: #fbe4dd; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { color: #64725c; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; background: #f6f8f1; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--line); }
td { vertical-align: middle; }
td small { font-size: 11px; margin-top: 5px; }
.reference { font-family: monospace; }
.pdf-download { display: inline-block; padding: 9px 12px; border: 1px solid #dce4d4; border-radius: 8px; background: #f0f3e9; color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pdf-download:hover { background: #e1e9d8; }
.active-row { background: #eaf6e8; color: #244d29; }
.cancelled-row { background: #fce9e6; color: #88332d; }
.legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.search-form { display: flex; gap: 15px; align-items: flex-end; margin-bottom: 24px; }
.search-form .field { flex: 1; margin-bottom: 0; }
.search-form button { width: auto; min-height: 44px; }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding: 15px 0; line-height: 1.7; }
.assignment-form { margin: 28px 0; }
.button-link { display: inline-block; margin-top: 12px; padding: 12px 18px; background: var(--green); border-radius: 8px; color: white; text-decoration: none; }
.empty-state { padding: 35px 20px; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .site-header { flex-wrap: wrap; gap: 22px; } .header-nav { gap: 16px; font-size: 12px; } .header-nav .availability { display: none; } .payment-card,.table-card { padding: 20px; } .payment-grid { grid-template-columns: 1fr; } .search-form { flex-wrap: wrap; } }
