@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #10232e; --muted: #647680; --line: #dce5e7; --paper: #f5f7f5; --cyan: #067f88; --coral: #e47555; --deep: #0d2934; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.customer-page { min-height: 100vh; background: var(--paper); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); min-height: 100vh; }
.auth-visual { position: relative; min-height: 100vh; overflow: hidden; background: var(--deep); color: white; }
.auth-photo, .auth-visual-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-photo { object-fit: cover; object-position: center; }
.auth-visual-shade { background: linear-gradient(180deg, rgba(8,27,36,.3), rgba(8,27,36,.22) 35%, rgba(8,27,36,.88)); }
.brand-lockup, .visual-copy, .visual-foot { position: absolute; z-index: 1; }
.brand-lockup { top: 34px; left: clamp(24px, 5vw, 68px); display: flex; align-items: center; gap: 12px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; }
.brand-lockup small, .portal-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.7); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(7,37,48,.35); color: white; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; }
.visual-copy { left: clamp(24px, 7vw, 92px); right: 30px; bottom: 15%; max-width: 610px; }
.eyebrow { margin: 0 0 12px; color: #a5dfe0; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.visual-copy h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; font-weight: 700; }
.visual-copy > p:last-child { max-width: 390px; margin-top: 18px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; }
.visual-foot { right: 36px; bottom: 28px; left: clamp(24px, 5vw, 68px); display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 11px; }
.auth-panel { display: flex; min-height: 100vh; flex-direction: column; padding: 28px clamp(24px, 5vw, 72px) 22px; background: #fbfcfa; }
.auth-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.auth-topline a { color: var(--ink); font-weight: 700; }
.auth-topline a span { color: var(--coral); }
.auth-content { width: 100%; max-width: 450px; margin: auto; padding: 54px 0; }
.auth-content .eyebrow, .portal-main .eyebrow { color: var(--cyan); }
.auth-content h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 30px; line-height: 1.2; }
.auth-intro { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 17px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field label { color: #31454e; font-size: 12px; font-weight: 700; }
.optional { color: #87969b; font-weight: 400; }
.form-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 3px; outline: none; background: white; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.form-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,127,136,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-button { display: flex; min-height: 49px; justify-content: space-between; align-items: center; margin-top: 4px; padding: 0 16px; border: 0; border-radius: 3px; background: var(--deep); color: white; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s; }
.submit-button:hover { background: var(--cyan); }
.submit-button span { color: #f1a07e; font-size: 20px; }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid #c75b45; background: #fff0ea; color: #863f31; font-size: 13px; line-height: 1.5; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.auth-switch a { color: var(--cyan); font-weight: 700; }
.security-note { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: #7b898d; font-size: 11px; }
.security-note span { color: var(--cyan); font-size: 9px; }
.auth-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid #e6ebea; color: #829094; font-size: 10px; }
.portal-page { min-height: 100vh; background: var(--paper); }
.portal-header { display: flex; height: 72px; justify-content: space-between; align-items: center; padding: 0 max(24px, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--line); background: white; }
.portal-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; }
.portal-brand .brand-mark { border-color: var(--deep); background: var(--deep); }
.portal-brand small { color: var(--muted); }
.portal-user { display: flex; align-items: center; gap: 10px; }
.user-initial { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #d8eeee; color: var(--cyan); font-size: 13px; font-weight: 700; }
.user-name { font-size: 12px; font-weight: 700; }
.user-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.signout-link { margin-left: 16px; color: var(--muted); font-size: 12px; }
.signout-link:hover { color: var(--coral); }
.portal-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 28px; }
.portal-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; }
.portal-welcome h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 30px; line-height: 1.2; }
.portal-welcome p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.welcome-mark { color: #b2c4c4; font-family: 'Manrope', sans-serif; font-size: 25px; font-weight: 800; text-align: right; }
.welcome-mark span { display: block; margin-top: 2px; font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.portal-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: white; }
.portal-stats article { display: grid; min-height: 108px; align-content: center; gap: 4px; padding: 18px 22px; border-right: 1px solid var(--line); }
.portal-stats article:last-child { border-right: 0; }
.portal-stats article span, .portal-stats article small { color: var(--muted); font-size: 11px; }
.portal-stats article strong { font-family: 'Manrope', sans-serif; font-size: 25px; }
.portal-section { min-width: 0; margin-top: 22px; border: 1px solid var(--line); background: white; }
.section-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid #e7eceb; }
.section-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.section-heading h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 16px; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 13px 18px; border-bottom: 1px solid #eef1f0; font-size: 11px; }
th { color: #718087; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
td { color: #45575e; }
td.primary-cell { color: var(--ink); font-weight: 700; }
td small { display: block; margin-top: 3px; color: #869398; font-size: 10px; font-weight: 400; }
.status-pill { display: inline-block; padding: 5px 8px; border-radius: 2px; background: #e7f4f1; color: #217b6a; font-size: 10px; text-transform: capitalize; }
.empty-state { display: grid; min-height: 180px; align-content: center; justify-items: center; padding: 22px; text-align: center; }
.empty-state strong { margin-top: 8px; font-family: 'Manrope', sans-serif; font-size: 13px; }
.empty-state p { max-width: 300px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e2f2f1; color: var(--cyan); }
.empty-state.compact { min-height: 120px; }
.portal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portal-columns .portal-section { margin-top: 20px; }
.compact-list article { display: flex; min-height: 62px; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 17px; border-bottom: 1px solid #eef1f0; }
.compact-list article:last-child { border-bottom: 0; }
.compact-list strong { display: block; color: var(--ink); font-size: 11px; }
.compact-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.list-value { flex-shrink: 0; color: var(--ink); font-size: 11px; font-weight: 700; text-align: right; }
.list-value small { color: var(--muted); font-weight: 400; }
.portal-footer { padding: 24px 0 5px; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 850px) { .auth-layout { grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); } .visual-copy h1 { font-size: 46px; } .welcome-mark { display: none; } }
@media (max-width: 680px) { .auth-layout { display: block; } .auth-visual { min-height: 230px; height: 29vh; } .auth-photo { object-position: center 54%; } .brand-lockup { top: 20px; left: 20px; } .visual-copy { right: 20px; bottom: 22px; left: 20px; } .visual-copy h1 { font-size: 30px; } .visual-copy > p:last-child, .visual-foot { display: none; } .auth-panel { min-height: 71vh; padding: 18px 22px 16px; } .auth-content { max-width: 480px; padding: 42px 0; } .auth-content h2 { font-size: 26px; } .auth-footer { font-size: 9px; } .portal-header { height: 64px; padding: 0 16px; } .portal-user { gap: 7px; } .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .user-name small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; } .signout-link { margin-left: 5px; } .portal-main { width: calc(100% - 28px); padding-top: 30px; } .portal-welcome h1 { font-size: 24px; } .portal-stats article { min-height: 94px; padding: 12px; } .portal-stats article span, .portal-stats article small { font-size: 9px; } .portal-stats article strong { font-size: 21px; } .portal-columns { grid-template-columns: 1fr; gap: 0; } .portal-columns .portal-section { margin-top: 16px; } .section-heading { padding: 14px; } th, td { padding: 11px 12px; } }
@media (max-width: 380px) { .form-grid { grid-template-columns: 1fr; } .form-grid .form-field { min-width: 0; } .portal-stats article { padding: 9px; } .user-initial { display: none; } }

/* Portal tabs, forms and detail views */
.portal-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 24px; background: white; border-bottom: 1px solid var(--line); }
.portal-tabs a { padding: 14px 16px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.portal-tabs a:hover { color: var(--ink); }
.portal-tabs a.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.portal-flash { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #b7e0cf; background: #eaf7f1; color: #1c6b52; font-size: 13px; }
.portal-flash.error { border-color: #f0c2b6; background: #fdf0ec; color: #a23f25; }
.portal-stats.four { grid-template-columns: repeat(4, 1fr); }
.text-link { color: var(--cyan); font-size: 12px; font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #e7eceb; }
.filter-bar input, .filter-bar select, .portal-form input, .portal-form select, .portal-form textarea { padding: 9px 11px; border: 1px solid var(--line); background: white; font-size: 13px; width: 100%; }
.filter-bar input { flex: 1 1 260px; width: auto; }
.filter-bar select { width: auto; }
.btn-primary { padding: 9px 18px; border: 0; background: var(--cyan); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: #056a72; }
.btn-ghost { padding: 9px 14px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; cursor: pointer; }
.inline-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.portal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.portal-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.portal-form .full { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid > div { display: grid; gap: 4px; padding: 14px 20px; border-bottom: 1px solid #eef1f0; }
.detail-grid span { color: var(--muted); font-size: 11px; }
.detail-grid strong { font-size: 13px; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 16px 22px; }
.timeline li { position: relative; padding: 0 0 18px 20px; border-left: 2px solid var(--line); }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font-size: 13px; }
.timeline small { color: var(--muted); font-size: 11px; }
.timeline p { margin: 4px 0 0; font-size: 12px; }
@media (max-width: 800px) { .portal-stats.four { grid-template-columns: repeat(2, 1fr); } .portal-form, .detail-grid { grid-template-columns: 1fr; } .portal-columns { grid-template-columns: 1fr; } }