/* Shared portal, account pages and navigation. */
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b88019; outline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1 { font-size: clamp(28px, 3.1vw, 40px); letter-spacing: -.035em; line-height: 1.2; }
h2 { letter-spacing: -.02em; }
.gold-dot, .brand-dot { color:#52665b; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; color: #7c6746; margin: 0 0 17px; }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.8; }
.topbar { min-height: 80px; height: auto; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.topbar-home { text-decoration: none; color: var(--navy); font-weight: 700; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; font-size: 13px; flex-wrap: wrap; }
.account-actions form { margin: 0; }
.account-name { color: #586f65; font-weight: 600; }
.settings-link { text-decoration: none; color: var(--text); }
.logout-button { color: var(--navy); background: transparent; border: 1px solid #d8e4df; border-radius: 7px; padding: 9px 13px; font-size: 12px; }
.logout-button:hover { background: #f2f6f4; }
.brand-link { color: white; text-decoration: none; display: block; }
.brand-link .brand-title, .brand-link .brand-subtitle { display: block; }
.brand-link .brand-title { font-size: 17px; letter-spacing: -.04em; }
.nav-label { display: block; padding: 22px 14px 9px; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; color:#52665b; }
.sidebar { flex-shrink: 0; }
.sidebar-footer { font-size: 11px; }
.portal-body { background: #f5f8f7; }
.portal-body > .topbar { padding-left: max(28px, calc((100% - 1120px) / 2)); padding-right: max(28px, calc((100% - 1120px) / 2)); }
.portal-content { max-width: 1176px; padding: 65px 28px 28px; margin: 0 auto; }
.portal-intro { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 54px; }
.portal-intro h1 { margin: 0 0 18px; font-weight: 650; }
.portal-intro .intro-copy { margin: 0; }
.portal-seal { display: flex; width: 180px; height: 146px; align-items: center; justify-content: center; gap: 13px; border-top: 1px solid #d8caa9; border-bottom: 1px solid #d8caa9; color:#52665b; transform: rotate(-4deg); }
.portal-seal > span { font-family: Georgia, serif; font-size: 44px; }
.portal-seal small { font-size: 11px; line-height: 1.7; border-left: 1px solid #d8caa9; padding-left: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.section-heading > span { font-size: 11px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.module-card { display: flex; flex-direction: column; min-height: 354px; color: var(--text); background: white; border: 1px solid #e2e8e5; border-radius: 13px; padding: 27px; text-decoration: none; box-shadow: 0 5px 20px rgba(20,48,68,.025); transition: transform .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,48,68,.10); }
.module-primary { border-top: 3px solid #c59c45; padding-top: 25px; }
.module-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.module-icon { display: grid; place-items: center; width: 49px; height: 49px; background: #eef5f2; color: #3a614f; border-radius: 11px; font-size: 29px; }
.module-primary .module-icon { color:#52665b; background: #fbf5e9; }
.status-tag { font-size: 10px; letter-spacing: .02em; background: #eff3f1; color:#52665b; border-radius: 20px; padding: 6px 10px; white-space: nowrap; display: inline-block; }
.status-ready { color: #28664e; background: #edf6f0; }
.status-building { color:#52665b; background: #fbf4e6; }
.module-number { font-size: 9px; letter-spacing: .12em; color:#52665b; font-weight: 650; }
.module-card h2 { font-size: 23px; margin: 11px 0; }
.module-card p { font-size: 13px; line-height: 1.85; margin: 0 0 24px; color:#52665b; }
.module-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 19px; border-top: 1px solid #eaf0ed; font-size: 12px; font-weight: 650; }
.module-card-link > span { font-size: 20px; font-weight: 400; }
.portal-account-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #e2e8e5; border-radius: 10px; padding: 22px 25px; margin-top: 28px; font-size: 12px; }
.portal-account-note strong { font-weight: 600; }
.portal-account-note p { color:#52665b; margin: 8px 0 0; line-height: 1.7; }
.portal-account-note > a { white-space: nowrap; text-decoration: none; color: #3a614f; font-size: 11px; }
.portal-footer { display: flex; justify-content: space-between; font-size: 10px; color:#52665b; padding-top: 39px; }
.login-page { background: #193d2d; }
.login-layout { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 100vh; }
.login-story { color: white; padding: 52px clamp(30px,5vw,85px); display: flex; flex-direction: column; justify-content: space-between; gap: 75px; background: radial-gradient(ellipse at 10% 70%, #2f5d48 0, transparent 65%); position: relative; overflow: hidden; }
.login-story:after { content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid #ffffff0a; border-radius: 50%; right: -270px; bottom: -230px; pointer-events: none; }
.login-wordmark { font-weight: 650; letter-spacing: -.05em; font-size: 24px; }
.login-story .eyebrow { color:#52665b; }
.login-story h1 { font-size: clamp(35px,4.1vw,61px); font-weight: 500; letter-spacing: -.045em; margin: 0 0 26px; }
.login-story p:not(.eyebrow) { color:#52665b; font-size: 15px; line-height: 1.9; max-width: 390px; }
.login-areas { display: flex; flex-wrap: wrap; gap: 10px 21px; font-size: 10px; letter-spacing: .03em; color:#52665b; padding-top: 26px; border-top: 1px solid #ffffff1a; }
.login-form-section { display: flex; align-items: center; justify-content: center; background: #f7faf9; padding: 40px; }
.login-card { max-width: 370px; width: 100%; }
.login-card h2 { font-size: 34px; margin: 0 0 13px; font-weight: 600; }
.login-description { color:#52665b; font-size: 14px; line-height: 1.85; margin: 0 0 32px; }
.password-form { display: flex; flex-direction: column; align-items: stretch; }
.password-form label { color: #3f5d4f; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.password-form input { border: 1px solid #d2e0da; border-radius: 7px; height: 46px; width: 100%; padding: 10px 13px; background: white; font-size: 15px; margin-bottom: 23px; color: var(--text); }
.password-form input:focus { border-color: #4c7663; outline: 2px solid #caddd4; outline-offset: 1px; }
.password-form .btn { margin-top: 6px; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border: 0; font-size: 13px; }
.login-footer { margin-top: 27px; text-align: center; font-size: 10px; color:#52665b; }
.notice { padding: 14px 16px; border-radius: 8px; background: #eef5f2; color: #3f5d4f; font-size: 13px; line-height: 1.7; margin: 0 0 23px; border: 1px solid #dfe9e5; }
.notice-error { background: #fff3f2; border-color: #f2dbd8; color: #963d35; }
.notice-success { background: #edf7f0; border-color: #d6e8dc; color: #30664b; }
.settings-content { max-width: 1120px; }
.settings-content h1 { margin: 0 0 10px; }
.settings-content > .intro-copy { margin-bottom: 34px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(220px,1fr); gap: 30px; align-items: start; }
.settings-grid .panel-body { padding: 26px; }
.field-hint { font-size: 11px; line-height: 1.7; color:#52665b; margin: -9px 0 23px; }
.password-form .field-hint + button { align-self: flex-start; min-width: 195px; }
.account-panel { border: 1px solid #e3e9e6; border-radius: 10px; padding: 26px; background: #eef4f1; }
.account-panel h2 { font-size: 19px; overflow-wrap: anywhere; margin-top: 22px; }
.account-panel p { font-size: 13px; color:#52665b; line-height: 1.8; margin: 15px 0 25px; }
.account-panel a { font-size: 12px; color: #3e6755; text-decoration: none; }
.construction-panel { margin: 32px 0 0; background: white; border: 1px solid #e3e9e6; border-radius: 13px; padding: 55px 30px; text-align: center; }
.construction-symbol { width: 138px; height: 138px; border-radius: 50%; display: grid; place-items: center; background: #fcf7eb; color:#52665b; margin: 0 auto 27px; }
.construction-panel h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 23px 0 13px; }
.construction-panel p { max-width: 470px; margin: 0 auto 29px; font-size: 14px; color:#52665b; line-height: 1.9; }
.construction-panel .btn { gap: 22px; display: inline-flex; font-size: 12px; }
@media (max-width: 1050px) {
    .module-grid { gap: 14px; }
    .module-card { padding: 22px; }
    .module-card h2 { font-size: 20px; }
    .account-actions { gap: 12px; }
}
@media (max-width: 760px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-story { padding: 30px; gap: 30px; }
    .login-story h1 { font-size: 36px; margin-bottom: 15px; }
    .login-areas { display: none; }
    .login-form-section { padding: 40px 25px; }
    .portal-seal { display: none; }
    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: 285px; }
    .portal-content { padding-top: 39px; }
    .portal-intro { margin-bottom: 35px; }
    .portal-account-note { align-items: flex-start; flex-direction: column; }
    .app { flex-direction: column; }
    .sidebar { width: 100%; }
    .sidebar .brand { padding: 19px 22px; }
    .sidebar .navigation { display: flex; overflow-x: auto; padding-bottom: 10px; gap: 5px; }
    .sidebar .navigation a { flex-shrink: 0; white-space: nowrap; font-size: 12px; margin: 0; }
    .nav-label, .sidebar-footer { display: none; }
    .topbar { padding-left: 22px; padding-right: 22px; align-items: flex-start; }
    .topbar-title { font-size: 14px; }
    .account-actions { font-size: 11px; gap: 10px; }
    .account-name { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
    .content { padding: 28px 20px; }
    .settings-grid { grid-template-columns: 1fr; }
    .workspace { grid-template-columns: 1fr !important; }
    .workspace > .panel { overflow: auto; }
    .stepper { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .module-card { transition: none; } }

/* Workspace design: dark navigation, light surfaces, blue actions. */
:root { --navy: #183d38; --navy-dark: #12312d; --navy-light: #285546; --gold: #236b58; --gold-light: #e5efda; --background: #f5f4ef; --surface: #fff; --border: #dce3d9; --text: #233d34; --muted: #566b60; --shadow: 0 3px 12px rgba(26,43,72,.025); --accent: #236b58; }
body { font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible, input:focus-visible { outline-color: #236b58; }
h1 { font-size: clamp(30px, 2.5vw, 42px); letter-spacing: -.045em; font-weight: 650; }
.ui-icon { flex: 0 0 auto; vertical-align: middle; }
.accent-dot, .gold-dot, .brand-dot { color: var(--accent); }
.eyebrow { color:#52665b; font-size: 11px; letter-spacing: .12em; margin-bottom: 13px; }
.intro-copy { font-size: 16px; line-height: 1.7; color: var(--muted); }
.app { align-items: flex-start; }
.sidebar { width: 272px; height: 100vh; height: 100dvh; position: sticky; top: 0; overflow-y: auto; background: #183d38; color: #f7fefb; border-right: 1px solid #264537; }
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 29px 22px 37px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; background: #236b58; border: 1px solid #83aa8d; border-radius: 10px; font-size: 27px; font-weight: 700; letter-spacing: -.08em; position: relative; }
.brand-mark > span { color:#52665b; position: absolute; right: 4px; bottom: 3px; }
.brand-copy { min-width: 0; }
.brand-link .brand-title { font-size: 16px; font-weight: 650; letter-spacing: -.04em; }
.brand-link .brand-subtitle { font-size: 10px; color:#52665b; opacity: 1; margin-top: 5px; letter-spacing: .01em; }
.navigation { padding: 0 17px; }
.nav-label { padding: 13px 15px 14px; color:#52665b; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.navigation a { min-height: 47px; gap: 13px; border-radius: 8px; padding: 12px 14px; margin-bottom: 7px; color:#52665b; font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s; }
.navigation a > .ui-icon { width: 20px; height: 20px; color:#52665b; }
.navigation a:hover { color: #fff; background: #264839; }
.navigation a.active { color: #fff; background: #236b58; box-shadow: 0 4px 12px #0f261c22; }
.navigation a.active > .ui-icon { color: #fff; }
.navigation .nav-secondary { margin-left: 14px; min-height: 40px; font-size: 13px; justify-content: space-between; }
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: #b7f1d7; }
.sidebar-bottom { margin-top: auto; padding-top: 44px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid #304c3f; margin: 16px 20px 0; padding: 22px 0 25px; }
.profile-link { display: flex; align-items: center; gap: 11px; min-width: 0; color: #f0fcf7; text-decoration: none; flex: 1; }
.profile-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #365a4a; color: #e1f9ee; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.profile-copy { display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.profile-copy strong { font-size: 13px; font-weight: 600; }
.account-name { font-size: 10px; color:#52665b; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-profile form { margin: 0; }
.logout-button { display: grid; place-items: center; width: 34px; height: 36px; padding: 0; color:#52665b; background: transparent; border: 0; border-radius: 7px; }
.logout-button:hover { background: #2e5342; color: #fff; }
.logout-button .ui-icon { width: 20px; }
.main { min-height: 100vh; }
.topbar { min-height: 80px; height: 80px; padding: 0 clamp(28px, 3.2vw, 56px); background: #fff; border-bottom-color: #e7efeb; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 13px; min-width: 0; }
.workspace-breadcrumb > a { color:#52665b; text-decoration: none; }
.workspace-breadcrumb > span[aria-hidden] { color:#52665b; }
.workspace-breadcrumb .topbar-title { font-size: 13px; font-weight: 600; color: #375749; }
.session-label { display: flex; align-items: center; gap: 8px; color:#52665b; font-size: 12px; white-space: nowrap; }
.session-label .ui-icon { width: 15px; height: 15px; color:#52665b; }
.content { width: 100%; max-width: 1660px; padding: 45px clamp(28px, 3.2vw, 56px); margin: 0 auto; }
.portal-body { background: var(--background); }
.portal-content { max-width: 1660px; padding-top: 48px; }
.portal-intro { gap: 24px; align-items: center; margin-bottom: 47px; }
.portal-intro h1 { margin: 0 0 12px; }
.portal-intro .intro-copy { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; padding: 12px 18px; font-size: 13px; line-height: 1.5; transition: background-color .15s; }
.btn-primary, .btn-gold { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-gold:hover { background: #3eac7b; }
.intro-action { flex-shrink: 0; box-shadow: 0 4px 10px #4fca9314; }
.intro-action .ui-icon { width: 17px; height: 17px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.section-heading > span { color:#52665b; font-size: 12px; }
.module-grid { gap: 23px; }
.module-card { min-height: 324px; border: 1px solid #e2ece8; border-radius: 13px; padding: 27px; background: #fff; box-shadow: 0 3px 10px #2b493b03; transition: border-color .17s, box-shadow .17s, transform .17s; }
.module-card:hover { transform: translateY(-3px); border-color: #b9e3d0; box-shadow: 0 9px 26px #32644e10; }
.module-primary { border-color: #ceeee0; padding-top: 27px; }
.module-card-top { margin-bottom: 27px; gap: 10px; }
.module-icon { width: 49px; height: 49px; border-radius: 12px; background: #f0fbf6; color:#52665b; }
.module-icon .ui-icon { width: 26px; height: 26px; }
.module-primary .module-icon { background: #edfcf5; color: #236b58; }
.module-op .module-icon { background: #f0faf6; color:#52665b; }
.module-hp .module-icon { background: #e9f5f3; color:#52665b; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color:#52665b; background: #f1f6f4; font-size: 10px; letter-spacing: 0; font-weight: 500; }
.status-ready { background: #edf8f2; color: #267550; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #299368; }
.status-building { background: #f1f6f4; color:#52665b; }
.module-number { color:#52665b; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .11em; }
.module-card h2 { font-size: clamp(20px, 1.5vw, 24px); letter-spacing: -.035em; font-weight: 650; margin: 10px 0 12px; }
.module-card p { color:#52665b; font-size: 13px; line-height: 1.8; margin: 0 0 26px; }
.module-card-link { min-height: 43px; padding: 11px 13px; border: 1px solid #e4ede9; border-radius: 7px; background: #fff; color: #496a5b; font-size: 12px; font-weight: 600; }
.module-card-link .ui-icon { width: 17px; height: 17px; }
.module-primary .module-card-link { border-color: var(--accent); background: var(--accent); color: white; }
.quickstart { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 28px; padding: 28px 30px; border: 1px solid #e2eee9; border-radius: 12px; background: #eff9f4; }
.quickstart-copy { display: flex; align-items: flex-start; gap: 21px; }
.quickstart-icon { display: grid; place-items: center; width: 47px; height: 47px; flex-shrink: 0; border-radius: 11px; background: #fff; color:#52665b; border: 1px solid #e0f3ea; }
.quickstart .eyebrow { color:#52665b; font-size: 9px; margin-bottom: 9px; }
.quickstart h2 { font-size: 18px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.025em; }
.quickstart p:not(.eyebrow) { margin: 0; color:#52665b; font-size: 12px; line-height: 1.7; }
.text-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 17px; color:#52665b; text-decoration: none; font-size: 12px; font-weight: 650; }
.text-action:hover { text-decoration: underline; }
.text-action .ui-icon { width: 17px; height: 17px; }
.quickstart-steps { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 2px 0 2px 29px; border-left: 1px solid #d8ece3; flex-shrink: 0; }
.quickstart-steps li { display: flex; align-items: center; gap: 13px; font-size: 11px; color:#52665b; }
.quickstart-steps li > span { font-size: 10px; font-weight: 650; color:#52665b; }
.portal-footer { font-size: 10px; color:#52665b; padding-top: 26px; }
.hero h1 { font-size: 30px; letter-spacing: -.035em; }
.hero p { font-size: 14px; line-height: 1.7; }
.card, .panel { border-color: var(--border); box-shadow: var(--shadow); border-radius: 11px; }
.panel-header { font-size: 14px; border-color: #eaf1ee; padding: 20px 23px; }
.panel-body { font-size: 14px; line-height: 1.7; padding: 23px; }
.metric-icon, .metric-icon.gold { background: #f0fcf7; color:#52665b; }
.btn-light { background: #eff6f3; }
.step.active .step-number { background: var(--accent); }
.upload-box { border-color: #c5e4d6; background: #f9fefc; padding: 24px 15px; }
.upload-box input[type=file] { max-width: 100%; font-size: 13px; margin: 20px; }
.import-form { display: flex; flex-direction: column; gap: 24px; }
.import-fields { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(130px, .7fr)) minmax(250px, 1.4fr); gap: 20px; align-items: start; }
.import-field { display: flex; flex-direction: column; gap: 8px; color: #416354; font-size: 13px; font-weight: 650; }
.import-field select, .import-field input, .readonly-field { width: 100%; min-height: 46px; border: 1px solid #d1e2da; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text); }
.import-field select:focus, .import-field input:focus { border-color: #6bd7a6; outline: 2px solid #dcf8eb; outline-offset: 1px; }
.import-field small { color:#52665b; font-size: 11px; font-weight: 400; line-height: 1.55; }
.readonly-field { display: flex; align-items: center; background: #f4faf7; color:#52665b; font-weight: 500; }
.import-info { align-self: stretch; }
.import-info p:last-child { margin-bottom: 0; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.info-box { background: #eff9f4; color: #527264; }
.settings-content { max-width: 1240px; margin-left: 0; }
.settings-content .intro-copy { font-size: 14px; }
.password-form label { font-size: 13px; color: #416354; }
.password-form input { border-color: #d1e2da; border-radius: 8px; height: 47px; }
.password-form input:focus { border-color: #6bd7a6; outline-color: #dcf8eb; }
.field-hint { color:#52665b; font-size: 12px; }
.account-panel { background: #eef8f3; border-color: #e0efe8; }
.account-panel p { color:#52665b; }
.account-panel a { color:#52665b; }
.construction-panel { max-width: 1100px; border-color: var(--border); padding: 56px 30px; }
.construction-symbol { background: #f1fcf7; color:#52665b; }
.construction-panel p { color:#52665b; }
.login-page { background: #183d38; }
.login-story { background: radial-gradient(ellipse at 10% 70%, #2f5e49 0, transparent 65%); }
.login-story .eyebrow { color: #a2edcb; }
.login-form-section { background: var(--background); }
.login-description { color:#52665b; }
@media (min-width: 1800px) { .portal-content { padding-top: 64px; } .module-card { min-height: 345px; padding: 32px; } .module-card p { font-size: 14px; } .quickstart { padding: 32px; } }
@media (max-width: 1250px) { .import-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sidebar { width: 240px; } .sidebar .brand { padding-left: 18px; padding-right: 18px; gap: 9px; } .brand-link .brand-title { font-size: 14px; } .brand-mark { width: 34px; height: 38px; font-size: 24px; } .navigation { padding: 0 13px; } .navigation a { font-size: 13px; gap: 11px; } .content { padding-left: 28px; padding-right: 28px; } .module-grid { gap: 16px; } .module-card { padding: 22px; } .module-card-top { gap: 6px; } .module-icon { width: 43px; height: 43px; } .status-tag { font-size: 9px; padding: 6px 8px; } .quickstart-steps { display: none; } }
@media (max-width: 1000px) and (min-width: 761px) { .module-grid { grid-template-columns: 1fr; } .module-card { min-height: 230px; } .module-card-top { margin-bottom: 17px; } .module-card-link { max-width: 260px; } .portal-intro { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 34px; } }
@media (max-width: 760px) {
    .app { flex-direction: column; align-items: stretch; }
    .sidebar { position: relative; height: auto; width: 100%; overflow: visible; }
    .sidebar .brand { padding: 18px 20px 16px; }
    .brand-link .brand-title { font-size: 16px; }
    .sidebar .navigation { display: flex; gap: 5px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #587d6c #183d38; }
    .sidebar .navigation a { flex-shrink: 0; margin: 0; min-height: 43px; white-space: nowrap; padding: 11px 12px; font-size: 12px; gap: 7px; }
    .sidebar .navigation a > .ui-icon { width: 17px; height: 17px; }
    .nav-label { display: none; }
    .sidebar-bottom { padding: 4px 16px 12px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .sidebar .account-navigation { padding: 0; overflow: visible; }
    .sidebar .account-navigation a { font-size: 11px; padding: 8px 4px; }
    .sidebar-profile { margin: 0; padding: 0; border: 0; gap: 10px; }
    .profile-avatar { width: 29px; height: 29px; font-size: 10px; }
    .profile-copy strong { font-size: 11px; }
    .account-name { display: none; }
    .logout-button { width: 31px; height: 34px; }
    .main { min-height: auto; }
    .topbar { min-height: 60px; height: 60px; padding: 0 23px; align-items: center; }
    .workspace-breadcrumb { gap: 11px; font-size: 11px; }
    .workspace-breadcrumb .topbar-title { font-size: 11px; }
    .session-label { display: none; }
    .content, .portal-content { padding: 30px 22px; }
    .portal-intro { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 34px; }
    .portal-intro h1 { font-size: 31px; }
    .intro-copy { font-size: 14px; }
    .intro-action { font-size: 12px; }
    .section-heading h2 { font-size: 18px; }
    .section-heading > span { font-size: 10px; }
    .module-grid { grid-template-columns: 1fr; gap: 16px; }
    .module-card { min-height: 284px; padding: 23px; }
    .module-card-top { margin-bottom: 21px; }
    .module-card h2 { font-size: 23px; }
    .status-tag { font-size: 10px; }
    .quickstart { padding: 23px; margin-top: 23px; }
    .quickstart-copy { display: block; }
    .quickstart-icon { margin-bottom: 18px; }
    .quickstart h2 { font-size: 19px; line-height: 1.4; }
    .portal-footer { gap: 20px; font-size: 9px; }
    .settings-grid, .workspace { grid-template-columns: 1fr !important; }
    .import-fields { grid-template-columns: 1fr; }
    .settings-grid .panel-body { padding: 21px; }
    .cards { grid-template-columns: 1fr; }
    .grid-two, .upload-layout { grid-template-columns: minmax(0, 1fr); }
    .panel-body { overflow-x: auto; }
    .stepper { gap: 12px; flex-wrap: wrap; }
    .hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .module-card, .navigation a, .btn { transition: none; } .module-card:hover { transform: none; } }

.report-preview {
    max-width: 1500px;
}

.preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.preview-heading h1 {
    margin: 3px 0 7px;
}

.preview-total {
    position: sticky;
    top: 68px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 1px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #dce5df;
    border-radius: 11px;
    background: #dce5df;
    box-shadow: 0 8px 20px rgba(28, 48, 38, .08);
}
.preview-total div {
    display: grid;
    gap: 4px;
    padding: 13px 16px;
    background: #fff;
}

.preview-total span {
    color:#52665b;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.preview-total strong {
    font-size: 1.05rem;
}

.preview-history {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #dde6e0;
    border-radius: 12px;
    background: #fff;
}

.preview-history h2 {
    margin: 2px 0 0;
}

.preview-history .empty-hint {
    margin: 0;
    color:#52665b;
}

.preview-object {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #dfe7e2;
    border-radius: 12px;
    background: #fff;
}

.preview-object > header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.preview-object h2 {
    margin: 2px 0;
}
.preview-object dl {
    display: flex;
    gap: 24px;
    margin: 0;
}

.preview-object dl div {
    display: grid;
    gap: 3px;
    text-align: right;
}

.preview-object dt {
    color:#52665b;
    font-size: .74rem;
}

.preview-object dd {
    margin: 0;
    font-weight: 700;
}

.preview-section + .preview-section {
    margin-top: 20px;
}

.preview-section h3 {
    margin: 0 0 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e7ece9;
    text-align: left;
}
.preview-table th {
    color: #5f6e66;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.preview-table td:nth-child(3),
.preview-table td:nth-child(4),
.preview-table td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.preview-remark {
    padding: 10px 12px;
    border-left: 3px solid #91b6a0;
    background: #f4f8f5;
}

@media (max-width: 900px) {
    .preview-heading,
    .preview-object > header {
        display: grid;
    }

    .preview-total {
        position: static;
        grid-template-columns: 1fr;
    }

    .preview-object dl {
        justify-content: space-between;
    }
}

/* DESIGN-001: compact VF identity in workspace navigation. */
.brand-logo{display:block;flex:0 0 38px;object-fit:contain}
.sidebar{background:#183d38;border-right-color:#294e43}.sidebar .navigation a:hover{background:#285546}.sidebar .navigation a.active{background:#c5dcad;color:#183d38}.sidebar .navigation a.active>.ui-icon{color:#183d38}.sidebar .brand-subtitle,.sidebar .nav-label{color:#52665b}.sidebar a:focus-visible,.sidebar button:focus-visible{outline-color:#c5dcad}

/* PROD-003: license status without obscuring account navigation. */
.topbar:has(.license-notice){flex-wrap:wrap}.license-notice{flex-basis:100%;font-size:12px;padding:8px 12px;background:#edf4ed;border:1px solid #ccdace;border-radius:8px;overflow-wrap:anywhere}.license-notice[data-license-readonly=true]{background:#fff4dc;border-color:#dcc88e}
