:root {
  --canvas: #f4f7fc;
  --ink: #152c4f;
  --muted: #61728a;
  --line: #e0e7f1;
  --sidebar: #ffffff;
  --sidebar-ink: #536982;
  --accent: #0069de;
  --accent-deep: #004da6;
  --accent-light: #eaf3ff;
  --navy: #001b4d;
  --turquoise: #00bda5;
  --radius: 13px;
  --card-shadow: 0 2px 5px #001b4d03, 0 6px 22px #001b4d04;
}
body { background: var(--canvas); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--navy); }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-tagline { margin: -8px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; line-height: 1.35; letter-spacing: .025em; }
.brand-tagline em { font-style: italic; }
.workspace { grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--line); padding: 18px 14px; background: #fff; }
.sidebar .brand { margin: 0 0 20px; padding: 0 2px 20px; border-bottom-color: var(--line); }
.sidebar-section-label { padding: 0 11px; margin: 0 0 10px; color: #61728a; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.sidebar-nav { gap: 3px; }
.sidebar-nav .nav-link { min-height: 37px; padding: 8px 11px; border-radius: 8px; font-size: 12px; }
.sidebar-nav .nav-link i { color: #8795aa; font-size: 13px; }
.sidebar-nav .nav-link:hover { background: #f0f5fd; color: var(--navy); }
.sidebar-nav .nav-active { background: var(--navy); color: #fff; box-shadow: inset 3px 0 var(--turquoise), 0 3px 8px #001b4d12; }
.sidebar-nav .nav-active:hover { background: #002966; color: #fff; }
.sidebar-nav .nav-active i { color: #62e1ce; }
.nav-count { background: #dcecff; color: var(--accent-deep); min-width: 20px; height: 20px; font-size: 10px; }
.nav-active .nav-count { background: #17447a; color: #fff; }
.workspace-role { margin: 0 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8faff; }
.workspace-role label { color: #62748d; font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.workspace-role select { min-height: 35px; border-color: #d9e3f0; background: #fff; font-size: 12px; }
.sidebar .install-app { background: #f3f7ff; border-color: #dbe6f6; color: var(--accent-deep); font-size: 12px; }
.sidebar .install-app:hover { background: #eaf3ff; border-color: #a5c8f3; color: var(--navy); }
.topbar { min-height: 72px; padding: 12px 28px; background: #ffffffed; }
.topbar-context { display: grid; gap: 3px; }
.workspace-label { font-size: 11px; font-weight: 600; color: #47617f; letter-spacing: .015em; }
.topbar-date { gap: 6px; font-size: 11px; color: #64758b; }
.topbar-date i { font-size: 11px; color: #64758b; }
.account-avatar { width: 34px; height: 34px; background: #e5f7f3; color: #007f74; border: 1px solid #d6eee9; }
.account-name strong { font-size: 12px; color: var(--navy); }
.account-name > span, .account-password { font-size: 10px; }
.account-password { margin-top: 2px; }
.sign-out { font-size: 11px; padding-left: 14px; }
.workspace-main { padding: 25px 28px 45px; }
.page-heading h1 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -.035em; color: var(--navy); }
.page-heading p { font-size: 12px; color: #61728a; }
.overview-header { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 22px 25px; border: 1px solid #dce7f5; border-radius: 15px; background: linear-gradient(105deg, #fff 25%, #f0f6ff); box-shadow: var(--card-shadow); }
.overview-header::after { content: ""; position: absolute; z-index: -1; right: -45px; top: -100px; width: 310px; height: 310px; border: 32px solid #dceaff66; border-radius: 50%; }
.overview-eyebrow { display: block; margin-bottom: 7px; color: #008d83; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.overview-header h1 { color: var(--navy); font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.overview-header p { color: #5a708e; margin-top: 7px; font-size: 12px; }
.overview-header .primary-button { flex-shrink: 0; }
.btn.primary-button { min-height: 37px; border-radius: 8px; padding: 9px 14px; font-size: 12px; background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 9px #0069de15; }
.btn.btn-default:not(.primary-button) { border-color: #dce4ef; background: #fff; border-radius: 8px; }
.btn.btn-default:not(.primary-button):hover { background: #f2f7ff; border-color: #bed3ef; }
.metric-grid { gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 102px; padding: 15px; border-color: #e4eaf3; border-radius: 12px; position: relative; overflow: hidden; }
.metric-card:hover, .metric-card[aria-pressed="true"] { border-color: #8bbaf3; box-shadow: 0 5px 15px #0069de0c; }
.metric-card[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #8bbaf3; }
.metric-caption { font-size: 11px; font-weight: 500; color: #5f718b; }
.metric-icon { width: 27px; height: 27px; border-radius: 8px; background: #eaf3ff; color: #2975ce; font-size: 12px; }
.metric-value { font-size: 27px; color: var(--navy); }
.metric-completed .metric-icon { background: #e2f7f0; color: #008569; }
.metric-completed .metric-value { color: #008569; }
.metric-overdue { background: #fff; border-color: #efdde3; }
.metric-overdue .metric-icon { background: #fff0f2; color: #b3435b; }
.metric-overdue .metric-value { color: #b3435b; }
.metric-today .metric-icon { background: #fff4df; color: #9a6a17; }
.overview-details { grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; }
.surface { border-color: #e1e8f2; }
.panel-heading { min-height: 53px; padding: 15px 17px; }
.panel-heading h2 { font-size: 13px; letter-spacing: -.015em; color: #183858; }
.units-panel .panel-heading { border-bottom: 1px solid #e8eef6; }
.unit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 11px; }
.unit-row { border: 1px solid #e8edf6; border-radius: 8px; overflow: hidden; }
.unit-link { min-height: 66px; gap: 7px; padding: 8px; }
.unit-link:hover { background: #eef5ff; }
.unit-icon { flex-basis: 25px; width: 25px; height: 25px; border-radius: 7px; background: #eef4ff; color: #3276c9; font-size: 11px; }
.unit-info strong { font-size: 11px; font-weight: 600; line-height: 1.3; color: #1e3c60; }
.unit-info > span { font-size: 9px; color: #61728a; line-height: 1.3; }
.unit-chevron { display: none; }
.reminder-overview { background: #fff; border-color: #e1e8f2; }
.reminder-overview-icon { background: #edf4ff; color: #3175c8; }
.reminder-overview h2 { font-size: 12px; color: #314d6e; }
.data-table { font-size: 12px; }
.data-table th { padding: 11px 10px; background: #f8faff; color: #63758d; font-size: 11px; font-weight: 600; border-color: #e6edf6; letter-spacing: .01em; }
.data-table td { padding-block: 12px; border-bottom-color: #edf1f7; }
.data-table tbody tr:hover { background: #f5f9ff; }
.assignment-title { color: #1a4f90; }
.reference { font-size: 10px; color: #61748e; }
.secondary-cell { font-size: 11px; color: #5c718a; }
.badge { border-radius: 6px; padding: 4px 7px; font-size: 10px; }
.queue-filter { border-radius: 7px; font-size: 11px; }
.queue-filter:hover { border-color: #a2c4ed; }
.queue-filter.selected { border-color: #c4dbf8; background: #eaf3ff; color: var(--accent-deep); }
.form-control { min-height: 40px; border-color: #dce4f0; border-radius: 8px; font-size: 12px; }
.control-label { color: #455e7d; font-size: 11px; font-weight: 600; }
.form-control:focus { border-color: #82b5f2; box-shadow: 0 0 0 3px #0069de0b; }
.selectize-input { border-radius: 8px; border-color: #dce4f0; box-shadow: none; font-size: 12px; }
.modal-header { background: #fbfcff; border-radius: 14px 14px 0 0; }
.modal-title { color: var(--navy); font-size: 16px; }
.modal-footer { background: #fbfcff; border-radius: 0 0 14px 14px; }
.finance-card { padding: 16px; border-top: 3px solid #d4e6fd; }
.finance-card span { font-size: 11px; }
.finance-card strong { color: var(--navy); font-size: clamp(14px, 1.5vw, 21px); }
.counter-summary { border-left: 3px solid var(--turquoise); }
.counter-method { background: #e7f7f3; color: #13786b; font-size: 11px; }
.counter-total { background: #ecf5ff; }
.sign-in-layout { width: min(1080px, calc(100% - 64px)); min-height: 630px; margin: max(40px, calc((100dvh - 630px) / 2)) auto 40px; grid-template-columns: 1.12fr 1fr; border-color: #e1e8f3; border-radius: 23px; box-shadow: 0 25px 90px #001b4d12; }
.sign-in-brand { position: relative; isolation: isolate; overflow: hidden; padding: 36px 42px; gap: 24px; justify-content: flex-start; background: radial-gradient(ellipse at top right, #0b4283 0, transparent 70%), #001b4d; }
.sign-in-brand::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -170px; width: 410px; height: 410px; border: 55px solid #1269ac25; border-radius: 50%; }
.sign-in-brand .brand { width: 330px; max-width: 100%; padding: 4px 16px 14px; border-radius: 13px; background: #fff; }
.sign-in-brand .brand-tagline { font-size: 23px; margin-top: -11px; }
.sign-in-intro { margin-block: 6px auto; }
.login-eyebrow { display: block; margin-bottom: 14px; color: #67dccc; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.sign-in-intro h1 { max-width: 340px; font-size: 38px; line-height: 1.16; letter-spacing: -.035em; }
.sign-in-intro p { color: #adc3df; font-size: 13px; line-height: 1.7; max-width: 330px; }
.login-features { display: grid; gap: 13px; padding-top: 22px; width: 100%; border-top: 1px solid #ffffff21; }
.login-features > div { display: flex; gap: 10px; align-items: center; color: #c0d2e7; font-size: 11px; }
.login-features i { color: #5cd5c4; width: 16px; text-align: center; }
.sign-in-panel { padding: 48px; background: #fff; }
.form-eyebrow { display: block; color: #61728a; font-size: 9px; font-weight: 600; letter-spacing: .16em; margin-bottom: 14px; }
.sign-in-form h2 { font-size: 27px; letter-spacing: -.04em; color: var(--navy); }
.sign-in-form .sign-in-welcome { font-size: 12px; margin: 9px 0 28px; line-height: 1.6; color: #61728a; }
.sign-in-form .form-control { min-height: 44px; background: #fbfcff; }
.sign-in-form .primary-button { min-height: 44px; margin-top: 4px; }
.sign-in-form .control-label { font-size: 11px; }
@media (max-width: 1200px) {
  .overview-details { grid-template-columns: minmax(0, 1fr); }
  .overview-details .units-panel { grid-row: 1; }
  .unit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .workspace { display: block; }
  .sidebar { padding: 10px 16px 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { width: 195px; margin: 0 auto 10px; padding: 0; border: 0; }
  .sidebar .brand-tagline { font-size: 16px; margin-top: -9px; }
  .sidebar-section-label { display: none; }
  .sidebar-nav .nav-link { font-size: 11px; padding: 7px 10px; }
  .sidebar .install-app { margin-top: 7px; min-height: 33px; padding: 6px 10px; }
  .workspace-role { padding: 7px 10px; margin-bottom: 8px; }
  .workspace-role .shiny-input-container { display: flex; align-items: center; gap: 12px; }
  .workspace-role label { margin: 0; }
  .workspace-role select { min-height: 32px; }
  .topbar { padding: 10px 16px; min-height: 65px; gap: 10px; }
  .workspace-label { max-width: 150px; font-size: 9px; }
  .topbar-date { font-size: 10px; }
  .workspace-main { padding: 20px 16px 35px; }
  .overview-header { padding: 18px; align-items: flex-start; }
  .overview-header h1 { font-size: 23px; }
  .overview-header p { max-width: 230px; font-size: 11px; }
  .sign-in-layout { width: min(510px, calc(100% - 32px)); margin: 24px auto; grid-template-columns: 1fr; }
  .sign-in-brand { padding: 24px; gap: 22px; }
  .sign-in-brand .brand { width: 275px; padding-bottom: 11px; }
  .sign-in-brand .brand-tagline { font-size: 21px; }
  .sign-in-intro { margin: 0; }
  .sign-in-intro h1 { font-size: 28px; max-width: none; }
  .sign-in-intro h1 br { display: none; }
  .sign-in-intro p { display: none; }
  .login-eyebrow { margin-bottom: 9px; font-size: 8px; }
  .login-features { display: none; }
  .sign-in-panel { padding: 28px; }
}
@media (max-width: 480px) {
  .unit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 9px; }
  .unit-link { min-height: 65px; padding: 8px 7px; }
  .unit-icon { display: none; }
  .unit-info strong { font-size: 11px; }
  .unit-info > span { font-size: 9px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 76px; padding: 10px; }
  .metric-value { font-size: 23px; }
  .metric-caption { font-size: 10px; }
  .overview-header { flex-direction: column; gap: 15px; }
  .overview-header .primary-button { font-size: 11px; }
  .topbar-context { max-width: 140px; }
  .account-area { gap: 6px; }
  .account-name strong { max-width: 110px; overflow-wrap: anywhere; font-size: 11px; }
  .sign-in-intro h1 { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
}
