:root {
  --tf-navy: #111b34;
  --tf-blue: #3267e9;
  --tf-ink: #202c43;
  --tf-muted: #788399;
  --tf-border: #e8edf4;
  --tf-canvas: #f6f8fc;
  --tf-sidebar: 264px;
  --bs-primary: #3267e9;
  --bs-body-font-family: "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--tf-ink);
}

body { margin: 0; background: var(--tf-canvas); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--tf-blue); text-decoration: none; }
a:hover { color: #234fb9; }
:focus-visible { outline: 3px solid #8db4ff; outline-offset: 4px; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.6px; }
.btn { border-radius: 10px; font-weight: 600; font-size: 13px; padding: 11px 17px; transition: background .18s, box-shadow .18s, transform .18s; }
.btn-primary { background: var(--tf-blue); border-color: var(--tf-blue); box-shadow: 0 4px 10px #3267e91a; }
.btn-primary:hover { background: #2456d0; border-color: #2456d0; box-shadow: 0 6px 18px #3267e933; }
.btn-primary:active { transform: translateY(1px); }
.btn i { margin-right: 6px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; background: #fff; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.tf-brand { color: #fff; display: inline-flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 700; letter-spacing: -.7px; }
.tf-brand:hover { color: #fff; }
.tf-brand small { display: block; font-size: 8px; font-weight: 500; color: #9baaca; letter-spacing: 1.5px; margin-top: 2px; }
.brand-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: #ffffff0d; border: 1px solid #ffffff12; color: #9cbeff; font-size: 23px; }
.eyebrow { color: var(--tf-blue); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 12px; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #45bd9c; flex-shrink: 0; }
.tf-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; font-size: 13px; line-height: 1.6; border: 0; padding: 14px 44px 14px 16px; }
.tf-alert .btn-close { font-size: 10px; }
.flash-region:empty { display: none; }

/* Login: product identity and focused, accessible form. */
.login-shell { display: grid; grid-template-columns: 52% 48%; min-height: 100vh; background: #fff; }
.login-story { position: relative; overflow: hidden; background: radial-gradient(ellipse at 10% 75%, #203969 0, transparent 55%), linear-gradient(135deg, #111c36, #14213f); padding: 40px 8%; color: white; display: flex; flex-direction: column; }
.login-story::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid #ffffff05; border-radius: 50%; right: -240px; top: -300px; }
.story-content { margin: auto 0; padding: 64px 0 56px; position: relative; }
.story-kicker { display: flex; align-items: center; gap: 9px; color: #a8b9da; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.story-content h1 { font-size: clamp(38px, 4vw, 60px); line-height: 1.18; letter-spacing: -2px; margin: 26px 0 23px; }
.story-content h1 span { color: #96b6ff; }
.story-content > p { font-size: 14px; color: #9caecf; line-height: 1.9; }
.workspace-art { position: relative; background: #f7f9fe; border: 1px solid #ffffff30; border-radius: 14px; width: 92%; max-width: 410px; margin: 44px 0 8px; box-shadow: 0 30px 60px #050e2338; transform: perspective(1000px) rotateY(-4deg) rotateX(3deg); }
.art-toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 13px 13px 0 0; padding: 14px 18px; border-bottom: 1px solid #edf0f8; }
.art-logo { color: #32436a; font-weight: 700; font-size: 11px; }
.art-logo i { color: #4777ed; margin-right: 4px; }
.art-dots { color: #d8deed; font-size: 6px; letter-spacing: 3px; }
.art-body { display: flex; min-height: 183px; }
.art-nav { width: 55px; border-radius: 0 0 0 13px; background: #182747; display: flex; flex-direction: column; padding: 14px 10px; gap: 12px; }
.art-nav > span { display: grid; place-items: center; color: #8497b9; height: 24px; font-size: 12px; }
.art-nav .art-nav-active { background: #35538a; color: #c4d6ff; border-radius: 5px; }
.art-workspace { flex: 1; padding: 21px 22px; }
.art-heading { width: 100px; height: 8px; background: #b8c6e2; border-radius: 4px; }
.art-subheading { width: 140px; height: 4px; background: #e1e7f2; border-radius: 4px; margin: 8px 0 19px; }
.art-tiles { display: flex; gap: 10px; }
.art-tiles > div { background: #fff; border: 1px solid #e8edf7; border-radius: 7px; padding: 10px; flex: 1; color: #799ae8; }
.art-tiles i { font-size: 13px; }
.art-tiles span { display: block; width: 24px; height: 4px; background: #dfe7f6; border-radius: 3px; margin-top: 6px; }
.art-list { display: flex; flex-direction: column; gap: 7px; margin-top: 17px; }
.art-list span { height: 4px; background: #e1e7f2; border-radius: 3px; width: 85%; }
.art-list span:nth-child(2) { width: 65%; }
.art-list span:nth-child(3) { width: 75%; }
.art-floating { display: flex; align-items: center; gap: 10px; position: absolute; right: -34px; bottom: -18px; color: #354567; border: 1px solid #eef2f9; background: white; border-radius: 10px; box-shadow: 0 8px 24px #101b3520; padding: 13px 18px; font-size: 10px; font-weight: 650; transform: rotateY(4deg); }
.art-floating > span { width: 31px; height: 31px; border-radius: 9px; background: #ebf7f3; display: grid; place-items: center; color: #399c7e; font-size: 16px; }
.art-floating small { display: block; color: #8e99ad; font-weight: 400; margin-top: 3px; font-size: 8px; }
.story-footer { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #8a9abd; position: relative; }
.story-version { letter-spacing: 1px; font-size: 8px; white-space: nowrap; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-form-wrap { width: 100%; max-width: 380px; }
.login-emblem { width: 48px; height: 48px; display: grid; place-items: center; color: var(--tf-blue); background: #edf3ff; border: 1px solid #e1eaff; border-radius: 13px; font-size: 22px; margin-bottom: 32px; }
.login-form-wrap h2 { font-size: 29px; margin-bottom: 10px; letter-spacing: -1px; }
.login-subtitle { color: var(--tf-muted); font-size: 13px; margin-bottom: 34px; }
.form-label { font-weight: 600; font-size: 12px; margin-bottom: 9px; }
.form-control { font-size: 13px; padding: 14px 14px 14px 43px; border: 1px solid #dfe5ef; border-radius: 9px; min-height: 49px; background: #fbfcfe; }
.form-control::placeholder { color: #a2acbd; }
.form-control:hover { border-color: #b4c5e7; }
.form-control:focus { background: white; border-color: var(--tf-blue); box-shadow: 0 0 0 3px #3267e912; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 14px; font-size: 16px; color: #8c98ae; pointer-events: none; }
.password-input .form-control { padding-right: 47px; }
.password-toggle { position: absolute; right: 7px; top: 7px; height: 36px; width: 36px; border: 0; border-radius: 7px; background: transparent; color: #8b97ac; }
.password-toggle:hover { background: #edf2fc; color: var(--tf-blue); }
.field-errors { color: #c83d4b; font-size: 12px; line-height: 1.6; }
.field-errors span { display: block; margin-top: 6px; }
.secure-note { font-size: 11px; color: #8c98aa; margin: 15px 0 24px; display: flex; gap: 7px; align-items: center; }
.btn-login { height: 49px; font-size: 13px; }
.btn-login i { margin-left: 10px; margin-right: 0; }
.login-help { display: flex; gap: 10px; background: #f7f9fc; border: 1px solid #edf0f6; border-radius: 10px; padding: 15px 17px; margin-top: 28px; font-size: 11px; color: #7d8ba3; }
.login-help > i { color: #8a9cbf; margin-top: 1px; }
.login-help p { margin: 0; line-height: 1.8; }
.login-help span { color: #52627e; }
.login-footnote { display: flex; align-items: center; gap: 10px; margin-top: 38px; font-size: 8px; letter-spacing: 1.3px; color: #9ba5b6; font-weight: 650; }
.login-footnote span { font-size: 9px; letter-spacing: 0; border-left: 1px solid #dce2ec; padding-left: 10px; font-weight: 400; }

/* Shared administration shell. */
.sidebar { color: #bdc8df; background: var(--tf-navy) !important; width: var(--tf-sidebar); display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 30px 23px 35px; }
.sidebar-brand .tf-brand { font-size: 24px; }
.sidebar-brand .brand-icon { width: 39px; height: 39px; font-size: 21px; }
.sidebar-brand small { font-size: 7px; letter-spacing: 1.2px; }
.sidebar-section-label { font-size: 8px; font-weight: 600; letter-spacing: 1.6px; color: #7685a2; margin: 8px 27px 13px; }
.sidebar-nav { padding: 0 13px; flex: 1; overflow-y: auto; }
.sidebar-nav .sidebar-section-label { margin: 30px 14px 12px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 8px; font-size: 12px; color: #b7c3db; margin-bottom: 5px; min-width: 0; }
.sidebar-link > i { font-size: 17px; width: 19px; text-align: center; }
a.sidebar-link:hover { background: #ffffff08; color: #fff; }
.sidebar-link.active { color: #a9c3ff; background: #24407370; box-shadow: inset 3px 0 #759cff; }
.sidebar-link.unavailable { color: #8898b4; cursor: default; }
.nav-soon { font-size: 7px; margin-left: auto; color: #9baac4; background: #ffffff06; border: 1px solid #ffffff0a; border-radius: 4px; padding: 3px 5px; white-space: nowrap; }
.sidebar-bottom { padding: 22px 20px; }
.sidebar-note { display: flex; gap: 11px; align-items: center; background: linear-gradient(120deg, #24375988, #1a294588); border: 1px solid #ffffff08; padding: 14px 12px; border-radius: 10px; font-size: 10px; color: #acbddb; line-height: 1.8; margin-bottom: 22px; }
.sidebar-note > i { font-size: 20px; color: #8caff8; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding-top: 19px; border-top: 1px solid #ffffff0c; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #2c3d5d; color: #c2d4f3; font-size: 13px; font-weight: 600; border-radius: 10px; }
.sidebar-user > div { min-width: 0; flex: 1; }
.sidebar-user strong { display: block; color: #d8e0ef; font-size: 11px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sidebar-user small { color: #788ba9; font-size: 9px; }
.sidebar-user > i { color: #6e829f; }
.admin-shell { margin-left: var(--tf-sidebar); min-height: 100vh; }
.topbar { height: 80px; padding: 0 38px; background: #fff; border-bottom: 1px solid var(--tf-border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-workspace { color: #66758d; font-size: 12px; display: flex; align-items: center; gap: 9px; }
.topbar-workspace > i { color: #8c9ab2; font-size: 16px; }
.workspace-badge { font-size: 7px; font-weight: 600; color: #8e9ab0; background: #f7f9fc; border: 1px solid #edf0f5; border-radius: 4px; padding: 4px 6px; margin-left: 7px; letter-spacing: .6px; }
.topbar-user { text-align: right; }
.topbar-user strong { font-size: 11px; font-weight: 600; display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user small { display: block; color: #8d98aa; font-size: 9px; margin-top: 3px; }
.avatar-light { background: #edf2ff; color: #5378cf; }
.logout-button { color: #7f8ba1; padding: 9px 0 9px 15px; border-left: 1px solid #e8edf4; border-radius: 0; font-size: 10px; }
.logout-button:hover { color: var(--tf-blue); }
.logout-button > i { font-size: 16px; }
.admin-content { padding: 26px 38px 0; max-width: 1500px; margin: 0 auto; }
.breadcrumb { font-size: 10px; color: #96a0b2; margin-bottom: 25px; }
.breadcrumb a { color: #96a0b2; }
.breadcrumb-item.active { color: #66758c; }
.breadcrumb-item + .breadcrumb-item::before { color: #c4ccda; }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 27px; }
.page-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 9px; color: #8c9ab2; }
.page-heading h1 { font-size: 29px; margin-bottom: 8px; }
.page-heading p { color: #8b96a9; font-size: 11px; margin-bottom: 0; line-height: 1.8; }
.role-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #6884b5; background: #f0f4fd; border: 1px solid #e2eafa; border-radius: 7px; padding: 8px 12px; white-space: nowrap; }
.welcome-card { display: flex; justify-content: space-between; overflow: hidden; position: relative; border: 1px solid #dde7fb; border-radius: 15px; background: linear-gradient(110deg, #edf3ff, #f4f7ff 65%, #e9f0ff); min-height: 231px; padding: 30px 33px; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-label { font-size: 8px; font-weight: 700; letter-spacing: 1.8px; color: #7b96c4; }
.welcome-copy h2 { font-size: 29px; line-height: 1.3; margin: 13px 0 12px; color: #2b4272; letter-spacing: -.8px; }
.welcome-copy p { color: #8496b4; font-size: 11px; margin-bottom: 20px; }
.welcome-status { display: inline-flex; align-items: center; gap: 7px; color: #6d88ae; font-size: 9px; }
.welcome-status .status-dot { background: #6aa990; width: 5px; height: 5px; }
.welcome-visual { position: absolute; right: 40px; top: 0; width: 280px; height: 260px; }
.visual-orbit { position: absolute; border: 1px solid #d6e1f7; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 170px; height: 170px; }
.orbit-two { width: 260px; height: 260px; opacity: .6; }
.visual-core { display: grid; place-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); width: 90px; height: 90px; background: linear-gradient(135deg, #7199ef, #376bd4); border: 5px solid #fff9; border-radius: 22px; color: #e4eeff; font-size: 38px; box-shadow: 0 18px 35px #547cc32a; }
.visual-node { position: absolute; width: 44px; height: 44px; background: #fff; border: 1px solid #e4ebf9; border-radius: 12px; box-shadow: 0 6px 18px #5278b510; display: grid; place-items: center; color: #8faade; font-size: 21px; }
.node-one { top: 42px; left: 28px; transform: rotate(-10deg); }
.node-two { top: 54px; right: 28px; transform: rotate(12deg); color: #76ac9d; }
.node-three { bottom: 23px; right: 55px; transform: rotate(-6deg); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 17px; }
.section-heading h2 { font-size: 15px; margin: 0 0 6px; }
.section-heading p { font-size: 10px; color: #98a2b3; margin: 0; }
.subtle-label { font-size: 7px; font-weight: 600; letter-spacing: 1.2px; color: #9aa6bb; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.module-card { border: 1px solid var(--tf-border); border-radius: 12px; background: #fff; padding: 21px 22px 0; position: relative; transition: border-color .2s, box-shadow .2s; }
.module-card:hover { border-color: #ccd9f2; box-shadow: 0 5px 20px #243e7306; }
.module-icon, .icon-tile { width: 36px; height: 36px; display: grid; place-items: center; background: #f0f4fc; color: #7e9acb; font-size: 18px; border-radius: 10px; }
.status-badge { font-size: 8px; background: #f8f9fc; color: #9ca6b6; padding: 4px 6px; border: 1px solid #f0f2f7; border-radius: 4px; position: absolute; top: 25px; right: 17px; }
.module-card h3 { font-size: 13px; letter-spacing: -.2px; margin: 19px 0 8px; }
.module-card p { color: #97a1b2; font-size: 10px; line-height: 1.8; min-height: 18px; }
.module-foot { border-top: 1px solid #f0f3f8; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; color: #9eabc0; font-size: 8px; margin-top: 18px; }
.module-foot i { font-size: 11px; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.surface-card { background: #fff; border: 1px solid var(--tf-border); border-radius: 12px; padding: 23px; }
.surface-heading { display: flex; gap: 11px; align-items: center; }
.surface-heading .icon-tile { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; flex-shrink: 0; }
.surface-heading h2 { font-size: 13px; letter-spacing: -.2px; margin: 0 0 5px; }
.surface-heading p { margin: 0; font-size: 9px; color: #9ca6b7; }
.empty-state { text-align: center; padding: 33px 8px 22px; }
.empty-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #f8faff; border: 1px solid #eef2fa; color: #b0c0db; border-radius: 14px; font-size: 22px; margin-bottom: 17px; }
.empty-state h3 { font-size: 12px; color: #697a96; margin-bottom: 9px; letter-spacing: -.1px; }
.empty-state p { color: #9ca7ba; font-size: 10px; line-height: 1.9; margin-bottom: 17px; }
.empty-tag { border: 1px dashed #e0e7f3; border-radius: 5px; padding: 5px 9px; font-size: 8px; color: #9aa9c0; display: inline-block; }
.session-card dl { margin: 24px 0 16px; }
.session-card dl > div { display: flex; justify-content: space-between; gap: 18px; margin: 0 0 17px; font-size: 10px; }
.session-card dt { color: #9ca6b7; font-weight: 400; flex-shrink: 0; }
.session-card dd { margin: 0; color: #657693; text-align: right; }
.session-card .session-active { color: #4c9b7f; display: flex; align-items: center; gap: 6px; }
.session-note { background: #f8fafd; border: 1px solid #eef2f7; border-radius: 7px; padding: 10px; display: flex; gap: 7px; color: #99a6ba; font-size: 9px; line-height: 1.8; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; padding: 28px 0; margin-top: 12px; color: #a3aec0; font-size: 9px; }
.sidebar-close { color: #a9b9d4; }
.menu-toggle { color: #667b9d; font-size: 22px; padding: 6px; }
.public-header { padding: 23px max(24px, calc((100vw - 1100px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--tf-navy); }
.public-content { max-width: 1050px; margin: 55px auto; padding: 0 24px; }
.panel { padding: 40px; background: white; border: 1px solid var(--tf-border); border-radius: 18px; }
.panel h1 { font-size: 38px; margin: 20px 0; }
.panel p { color: var(--tf-muted); line-height: 1.9; }
.panel .next { padding: 25px; background: #f7f9fd; border-radius: 12px; margin: 28px 0; }
.panel .next h2 { font-size: 17px; }
.site-footer { text-align: center; color: #9ca7ba; font-size: 11px; padding: 24px; }
.error-panel { text-align: center; background: #fff; border: 1px solid var(--tf-border); border-radius: 16px; padding: 64px 24px; }
.error-panel h1 { font-size: 27px; margin: 15px 0; }
.error-panel p { color: #8c9ab0; margin: 0 auto 28px; max-width: 450px; line-height: 1.9; }
.error-illustration { position: relative; width: 120px; height: 120px; margin: 0 auto 30px; display: grid; place-items: center; }
.error-illustration > i { font-size: 40px; background: #edf3ff; color: #7899d9; border-radius: 23px; width: 85px; height: 85px; display: grid; place-items: center; transform: rotate(-7deg); }
.error-orbit { position: absolute; inset: 0; border: 1px dashed #dce6f8; border-radius: 50%; }

@media (min-width: 992px) {
  .sidebar.offcanvas-lg { position: fixed; top: 0; left: 0; height: 100vh; width: var(--tf-sidebar); z-index: 1030; }
}
@media (min-width: 1600px) {
  .login-story { padding-left: 12%; padding-right: 12%; }
}
@media (max-width: 1199.98px) {
  .admin-content { padding: 24px 25px 0; }
  .topbar { padding: 0 25px; }
  .workspace-badge { display: none; }
  .welcome-visual { right: -30px; opacity: .75; }
  .welcome-copy { max-width: 70%; }
  .module-card { padding-left: 17px; padding-right: 17px; }
  .status-badge { font-size: 7px; right: 10px; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .login-story { padding-left: 7%; padding-right: 7%; }
  .login-form-side { padding: 38px; }
  .story-version { display: none; }
}
@media (max-width: 991.98px) {
  .admin-shell { margin-left: 0; }
  .sidebar { width: 280px; max-width: 88vw; }
  .sidebar-brand { padding: 24px 20px 27px; }
  .sidebar-bottom { padding: 15px 20px; }
  .topbar { height: 70px; }
  .welcome-visual { right: 25px; }
  .welcome-copy { max-width: 65%; }
  .dashboard-bottom { grid-template-columns: 1.5fr 1fr; }
  .login-shell { grid-template-columns: 44% 56%; }
  .story-content h1 { font-size: 37px; letter-spacing: -1px; }
  .story-content { padding: 45px 0; }
  .workspace-art { width: 94%; }
  .art-floating { right: -15px; padding: 10px; font-size: 8px; }
  .art-floating small { max-width: 105px; font-size: 7px; }
  .art-workspace { padding: 20px 13px; }
}
@media (max-width: 767.98px) {
  .login-shell { display: flex; flex-direction: column; }
  .login-story { padding: 24px; min-height: auto; }
  .login-story > .tf-brand { font-size: 22px; }
  .story-content { padding: 26px 0 6px; }
  .story-kicker, .workspace-art, .story-footer { display: none; }
  .story-content h1 { font-size: 30px; margin: 0 0 13px; }
  .story-content h1 br { display: none; }
  .story-content h1 span { display: block; margin-top: 3px; }
  .story-content > p { font-size: 11px; margin: 0; }
  .login-form-side { padding: 33px 24px; }
  .login-form-wrap { max-width: 430px; }
  .login-emblem { display: none; }
  .login-form-wrap h2 { font-size: 25px; }
  .login-subtitle { margin-bottom: 27px; }
  .login-footnote { margin-top: 27px; }
  .topbar { padding: 0 18px; }
  .topbar-workspace { font-size: 11px; }
  .topbar-workspace > i { display: none; }
  .topbar-user { display: none; }
  .topbar-actions { gap: 10px; }
  .logout-button { padding: 7px 0 7px 10px; }
  .logout-button > i { margin: 0; }
  .admin-content { padding: 22px 18px 0; }
  .breadcrumb { margin-bottom: 22px; }
  .page-heading { align-items: flex-start; margin-bottom: 23px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { max-width: 240px; }
  .role-pill { font-size: 8px; padding: 7px 9px; }
  .welcome-card { padding: 26px 23px; min-height: 230px; }
  .welcome-copy { max-width: 80%; }
  .welcome-copy h2 { font-size: 25px; }
  .welcome-copy p { max-width: 220px; line-height: 1.8; }
  .welcome-visual { right: -95px; top: 38px; opacity: .35; transform: scale(.8); }
  .module-grid { grid-template-columns: 1fr; gap: 13px; }
  .module-card { padding: 19px 20px 0; }
  .module-card h3 { margin: 15px 0 6px; }
  .module-foot { margin-top: 12px; }
  .status-badge { right: 20px; font-size: 8px; top: 22px; }
  .dashboard-bottom { grid-template-columns: 1fr; gap: 16px; }
  .workspace-footer { flex-direction: column; gap: 7px; font-size: 8px; }
  .surface-card { padding: 20px; }
  .public-header { padding: 20px; }
  .public-header .tf-brand { font-size: 22px; }
  .public-header .btn { font-size: 11px; padding: 9px; }
  .public-content { margin: 28px auto; }
  .panel { padding: 25px; }
  .panel h1 { font-size: 28px; }
  .error-panel { padding: 40px 20px; }
  .error-panel h1 { font-size: 23px; }
}
/* Readable supporting text at every breakpoint. */
.form-label, .form-control, .btn-login, .sidebar-link { font-size: 14px; }
.login-help, .secure-note, .story-footer { font-size: 12px; }
.topbar-workspace, .topbar-user strong, .sidebar-user strong { font-size: 13px; }
.topbar-user small, .sidebar-user small, .logout-button, .sidebar-note { font-size: 11px; }
.breadcrumb, .page-heading p, .welcome-copy p, .module-card p,
.section-heading p, .surface-heading p, .empty-state p,
.session-card dl > div { font-size: 13px; }
.page-heading p, .welcome-copy p, .module-card p, .section-heading p,
.surface-heading p, .empty-state p, .session-card dt, .breadcrumb a,
.session-note, .module-foot, .workspace-footer, .status-badge { color: #65758e; }
.module-card h3, .surface-heading h2, .empty-state h3 { font-size: 15px; }
.section-heading h2 { font-size: 17px; }
.role-pill, .welcome-status, .module-foot, .session-note, .empty-tag,
.workspace-footer, .status-badge { font-size: 11px; }
.sidebar-section-label, .nav-soon { font-size: 9px; }
.welcome-label, .subtle-label, .page-heading .eyebrow { font-size: 10px; }
@media (max-width: 767.98px) {
  .story-content > p { font-size: 13px; }
  .role-pill { font-size: 10px; }
  .module-card { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
