:root {
    --bg: #f5f7f8;
    --surface: #fff;
    --ink: #233537;
    --muted: #7a8788;
    --line: #e8eded;
    --green: #236c59;
    --green-light: #eaf3ed;
    --sidebar: #172e2a;
    --radius: 12px;
    --shadow: 0 2px 4px #24373203;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    font-size: 14px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #6caa90;
    outline-offset: 4px;
}
input,
select,
textarea {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #dce3e1;
    border-radius: 7px;
    padding: 10px 12px;
    background: white;
    color: var(--ink);
    outline: none;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #236c5912;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
input[type="file"] {
    font-size: 12px;
    width: 100%;
}
input[type="checkbox"] {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
}
input[aria-invalid="true"] {
    border-color: #b94d41;
}
p {
    line-height: 1.6;
    margin: 6px 0;
    color: var(--muted);
}
h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.025em;
}
h1 {
    font-size: 28px;
    font-weight: 650;
    line-height: 1.25;
}
h2 {
    font-size: 16px;
    font-weight: 650;
}
h3 {
    font-size: 15px;
}
small {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}
strong {
    font-weight: 600;
}
.icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.sidebar {
    width: 246px;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--sidebar);
    color: #b9cac3;
    padding: 30px 18px 18px;
    display: flex;
    flex-direction: column;
    z-index: 30;
    overflow-y: auto;
}
.brand {
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
    padding: 0 7px;
    white-space: nowrap;
}
.brand-light {
    font-weight: 400;
}
.brand-dot {
    color: #a6c9a0;
}
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcebcf;
    color: #244c3d;
    border-radius: 9px;
    height: 31px;
    width: 31px;
    margin-right: 8px;
}
.brand-mark .icon {
    width: 24px;
    height: 24px;
}
.workspace {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 32px 4px 25px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ffffff12;
}
.workspace-icon {
    width: 31px;
    height: 33px;
    border-radius: 6px;
    background: #ffffff0d;
    display: grid;
    place-items: center;
    color: #d9e5de;
    font-size: 13px;
    font-weight: 600;
}
.workspace strong {
    display: block;
    font-size: 11px;
    color: #e2eae6;
    font-weight: 500;
}
.workspace small {
    color: #8fa79e;
    font-size: 10px;
}
.live-dot {
    height: 6px;
    width: 6px;
    flex-shrink: 0;
    background: #7ba386;
    display: inline-block;
    border-radius: 100%;
}
.workspace .live-dot {
    margin-left: auto;
}
.nav-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #829e90;
    font-weight: 600;
    margin: 7px 13px 12px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 12px;
    margin: 3px 0;
    color: #b2c5ba;
    transition: background 0.15s;
}
.nav-link:hover {
    background: #ffffff08;
    color: #fff;
}
.nav-link.active {
    color: #f1f6ef;
    background: #ffffff12;
}
.nav-link.active .icon {
    color: #bcd6ad;
}
.nav-current {
    margin-left: auto;
    font-size: 20px;
    color: #bcd6ad;
    line-height: 12px;
}
nav .nav-label {
    margin-top: 29px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 32px;
}
.support-card {
    padding: 15px 14px 13px;
    border: 1px solid #ffffff12;
    background: linear-gradient(120deg, #ffffff06, transparent);
    border-radius: 9px;
    margin: 0 2px 15px;
}
.support-card strong {
    font-size: 11px;
    display: block;
    color: #d9e5dc;
    margin-top: 10px;
}
.support-card p {
    font-size: 10px;
    color: #8da79b;
}
.support-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #d3e2c8;
    margin-top: 17px;
}
.support-card .icon {
    width: 15px;
    height: 15px;
}
.support-icon {
    color: #bfd5a9;
}
.sidebar-footer {
    font-size: 9px;
    color: #88a297;
    margin: 21px 13px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.app-shell {
    margin-left: 246px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 79px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    gap: 15px;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    white-space: nowrap;
}
.breadcrumbs > span:first-of-type {
    color: var(--muted);
}
.breadcrumbs strong {
    font-weight: 500;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 19px;
}
.global-search {
    display: flex;
    align-items: center;
    color: #84918d;
    gap: 8px;
}
.global-search .icon {
    width: 16px;
}
.global-search input {
    border: 0;
    padding: 8px 0;
    width: 140px;
    background: transparent;
    font-size: 11px;
    box-shadow: none;
}
.global-search kbd {
    border: 1px solid var(--line);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 12px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid var(--line);
    padding-left: 22px;
}
.profile strong {
    font-size: 11px;
    display: block;
}
.profile small {
    font-size: 9px;
    display: block;
}
.avatar {
    background: #e8eddf;
    color: #506645;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
    font-weight: 600;
}
.avatar.pastel {
    border-radius: 10px;
    background: #eef1e8;
    color: #788667;
}
.icon-button {
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #7b8882;
}
.icon-button .icon {
    width: 17px;
}
.mobile-menu {
    display: none;
}
.main {
    padding: 33px 34px 20px;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}
.page-heading p {
    font-size: 12px;
    margin-top: 10px;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.65px;
    color: var(--green);
    font-weight: 650;
    margin-bottom: 11px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #dce4e0;
    border-radius: 7px;
    color: #445850;
    font-size: 12px;
    font-weight: 550;
    min-height: 38px;
    white-space: nowrap;
}
.btn:hover {
    background: #f1f5f2;
}
.btn.primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 2px 3px #17443613;
}
.btn.primary:hover {
    background: #195443;
}
.btn.danger {
    color: #a6443f;
    border-color: #e9cfcb;
}
.btn .icon {
    width: 15px;
    height: 15px;
}
.btn.small {
    padding: 6px 10px;
    min-height: 31px;
    font-size: 11px;
}
.btn.disabled {
    opacity: 0.45;
    cursor: default;
}
.date-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #819089;
    font-size: 10px;
    margin: -6px 0 23px;
}
.date-divider {
    color: #d1d9d4;
    margin: 0 3px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7b75;
    font-size: 11px;
    margin-bottom: 12px;
}
.stat-icon {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f1e7;
    color: #919065;
}
.stat-icon.admissions {
    background: #edf0f7;
    color: #788fac;
}
.stat-icon.enrolled {
    background: #eaf2ec;
    color: #658e72;
}
.stat-icon.collected {
    background: #f6eee4;
    color: #b89360;
}
.stat-icon .icon {
    width: 17px;
    height: 17px;
}
.stat-value {
    display: block;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.35;
    white-space: nowrap;
}
.stat-card:last-child .stat-value {
    font-size: 24px;
    line-height: 1.69;
}
.stat-caption {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
    font-size: 9px;
    color: #88948e;
}
.mini-dash {
    width: 11px;
    height: 4px;
    background: #d6e5d9;
    border-radius: 4px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 23px;
}
.card-header p {
    font-size: 10px;
    margin-top: 5px;
    margin-bottom: 0;
}
.card-header > .icon {
    color: #9aa69d;
    width: 16px;
}
.card-body {
    padding: 0 23px 23px;
}
.card-body.compact {
    padding-top: 5px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
}
.text-link .icon {
    width: 13px;
}
.pipeline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 24px 24px;
}
.pipeline-stage {
    flex: 1;
    text-align: center;
}
.pipeline-count {
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.pipeline-track {
    height: 72px;
    display: flex;
    align-items: flex-end;
    background: #f7f9f6;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}
.pipeline-track div {
    width: 100%;
    background: #b9cbb1;
    border-radius: 4px 4px 0 0;
    min-height: 6px;
}
.pipeline-stage:nth-child(2) .pipeline-track div {
    background: #c8d5bf;
}
.pipeline-stage:nth-child(3) .pipeline-track div {
    background: #a8c2a7;
}
.pipeline-stage:nth-child(4) .pipeline-track div {
    background: #83ad96;
}
.pipeline-stage:nth-child(5) .pipeline-track div {
    background: #628e7a;
}
.pipeline-stage:nth-child(6) .pipeline-track div {
    background: #417761;
}
.pipeline-stage:nth-child(7) .pipeline-track div {
    background: #2d634f;
}
.pipeline-stage > span {
    font-size: 9px;
    color: #829088;
}
.card-foot {
    border-top: 1px solid var(--line);
    padding: 13px 23px;
    font-size: 9px;
    color: #8a978e;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbfcfa;
}
.attention-dot {
    width: 7px;
    height: 7px;
    background: #c6a26b;
    border-radius: 50%;
}
.attention-card .card-header {
    padding-bottom: 12px;
}
.attention-row {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 12px 22px;
}
.attention-row:hover {
    background: #fafcf9;
}
.attention-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #faf3e7;
    color: #b99553;
}
.attention-icon .icon {
    width: 17px;
}
.attention-icon.blue {
    background: #eef2f8;
    color: #7d96b4;
}
.attention-icon.purple {
    background: #f0edf5;
    color: #9787a9;
}
.attention-row strong {
    display: block;
    font-size: 11px;
    font-weight: 550;
}
.attention-row small {
    font-size: 9px;
    display: block;
    margin-top: 3px;
}
.attention-row b {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
}
.attention-row > span:last-child {
    color: #aab4ae;
    margin-left: 4px;
}
.attention-footer {
    background: #fafbf9;
    border-top: 1px solid var(--line);
    padding: 11px 23px;
    margin-top: 7px;
    font-size: 9px;
    color: #8b9b8a;
    display: flex;
    gap: 7px;
    align-items: center;
}
.table-wrap {
    width: 100%;
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}
th {
    font-size: 9px;
    font-weight: 550;
    color: #8b968f;
    background: #fafbf9;
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
td {
    padding: 17px 22px;
    border-bottom: 1px solid #eef1ed;
    font-size: 11px;
    color: #6c7a73;
}
td strong {
    display: block;
    color: #42594c;
    font-size: 11px;
    font-weight: 550;
}
td small {
    display: block;
    font-size: 9px;
    margin-top: 4px;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fdfefb;
}
.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.person-cell strong {
    font-weight: 600;
}
.person-cell small {
    font-size: 9px;
}
.badge {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 5px 8px;
    background: #f0f2f5;
    color: #7e8ba1;
    border-radius: 5px;
    font-size: 9px;
    white-space: nowrap;
    font-weight: 500;
}
.badge > span {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}
.badge-new,
.badge-started,
.badge-open,
.badge-issued {
    color: #6d8baa;
    background: #edf3fa;
}
.badge-contacted,
.badge-submitted,
.badge-in_progress,
.badge-processing {
    color: #9681b0;
    background: #f2eef8;
}
.badge-qualified,
.badge-approved,
.badge-confirmed,
.badge-enrolled,
.badge-paid,
.badge-active,
.badge-completed,
.badge-resolved {
    color: #568667;
    background: #ebf4ec;
}
.badge-documents_pending,
.badge-information_required,
.badge-pending,
.badge-partial {
    color: #af8e4d;
    background: #fcf4e3;
}
.badge-lost,
.badge-rejected,
.badge-failed,
.badge-overdue,
.badge-urgent {
    color: #b26e67;
    background: #fbefed;
}
.badge-converted,
.badge-ready {
    color: #639187;
    background: #ecf5f2;
}
.badge-cancelled,
.badge-closed,
.badge-void,
.badge-inactive {
    color: #919792;
    background: #f1f2ef;
}
.row-arrow {
    font-size: 15px;
    color: #849b8c;
}
.timeline {
    padding-top: 1px;
}
.timeline-item {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 0 0 21px;
}
.timeline-item:not(:last-child):before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 0;
    border-left: 1px solid #e8ede6;
}
.timeline-dot {
    border-radius: 100%;
    background: #a1b899;
    border: 2px solid #f0f5ec;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}
.timeline-item strong {
    font-size: 10px;
    display: block;
    line-height: 1.5;
    font-weight: 550;
}
.timeline-item small {
    font-size: 9px;
    display: block;
    margin-top: 5px;
}
.timeline-item p {
    font-size: 11px;
    overflow-wrap: anywhere;
}
.timeline-item:last-child {
    padding-bottom: 4px;
}
.followup-card {
    margin-bottom: 10px;
}
.followup-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0 22px 20px;
    gap: 20px;
}
.followup-list > a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 190px;
}
.followup-list strong {
    font-size: 11px;
    display: block;
}
.followup-list small {
    font-size: 9px;
}
.followup-list .icon {
    margin-left: auto;
    width: 14px;
    color: #8fa38f;
}
.page-footer {
    display: flex;
    justify-content: space-between;
    color: #97a298;
    font-size: 9px;
    padding: 10px 34px 24px;
    gap: 15px;
}
.muted {
    color: var(--muted);
}
.preserve {
    white-space: pre-wrap;
}
.actions {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
}
.filters input,
.filters select {
    font-size: 11px;
    padding: 8px 10px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dce3e1;
    border-radius: 6px;
    padding: 0 10px;
    flex: 1;
    min-width: 170px;
}
.search-field input {
    border: 0;
    box-shadow: none;
    padding-left: 0;
    width: 100%;
}
.search-field .icon {
    color: #94a292;
    width: 15px;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: #8b978e;
}
.pagination > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-number {
    font-size: 10px;
}
.empty {
    text-align: center;
    padding: 38px 20px;
    white-space: normal;
}
.empty-icon {
    display: inline-flex;
    padding: 13px;
    border-radius: 12px;
    background: var(--green-light);
    color: #85a38b;
    margin-bottom: 13px;
}
.empty h3 {
    font-size: 14px;
}
.empty p {
    font-size: 12px;
    margin: 8px 0 17px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    min-width: 0;
}
.field label {
    font-size: 12px;
    font-weight: 550;
    color: #53665b;
}
.field input,
.field select,
.field textarea {
    width: 100%;
}
.field small {
    font-size: 10px;
}
.required {
    color: #a68d68;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}
.full {
    grid-column: 1/-1;
}
.form-card {
    max-width: 900px;
}
.form-card .card-body {
    padding-top: 4px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 5px;
}
.alert {
    border-radius: 8px;
    padding: 14px 17px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.5;
}
.alert.success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #41704d;
    background: #e6f1e8;
    border: 1px solid #cfe3d2;
}
.alert.error {
    color: #9b5148;
    background: #fff1ed;
    border: 1px solid #f0d8ce;
}
.alert ul {
    margin: 5px 0;
    padding-left: 18px;
}
.field-error {
    color: #b35443 !important;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.detail-list dt {
    color: #8a978e;
    font-size: 10px;
    margin-bottom: 7px;
}
.detail-list dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}
.stage-banner {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #edf3eb;
    border: 1px solid #dce6d7;
    border-radius: 10px;
    padding: 19px 22px;
    margin-bottom: 23px;
}
.stage-banner > .icon {
    width: 28px;
    height: 28px;
    color: #608567;
}
.stage-banner strong {
    font-size: 13px;
}
.stage-banner p {
    font-size: 11px;
    margin-top: 4px;
}
.stage-banner .badge {
    margin-left: auto;
}
.checklist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.checklist li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0f3ee;
    align-items: center;
}
.checklist .icon {
    color: #72a17b;
    width: 15px;
}
.checklist .missing {
    color: #baa46f;
}
.file-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}
.file-row > div {
    flex: 1;
    min-width: 0;
}
.file-row strong {
    overflow-wrap: anywhere;
}
.file-row small {
    display: block;
}
.money-strip {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    background: #f7f9f5;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.money-strip small {
    font-size: 10px;
    display: block;
}
.money-strip strong {
    display: block;
    font-size: 16px;
    margin-top: 7px;
}
.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form select {
    font-size: 12px;
}
.tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 23px;
    font-size: 12px;
    color: #769078;
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.institution-card {
    padding: 24px;
}
.institution-card > .icon {
    width: 28px;
    height: 28px;
    color: #769479;
    margin-bottom: 17px;
}
.institution-card h2 {
    font-size: 17px;
    margin: 8px 0;
}
.institution-card p {
    font-size: 12px;
    min-height: 38px;
}
.institution-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    margin: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}
.conversation {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.reply {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.reply.admin {
    background: #f5f8f1;
    border-color: #e4ebdc;
}
.reply-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}
.reply-head small {
    margin-left: auto;
}
.reply p {
    font-size: 13px;
    color: #596e5e;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 15px 0;
}
.invoice-paper {
    padding: 36px;
}
.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.invoice-head h2 {
    font-size: 26px;
}
.invoice-bill {
    display: flex;
    justify-content: space-between;
    margin: 38px 0;
    gap: 24px;
}
.invoice-paper p {
    font-size: 12px;
}
.invoice-total {
    text-align: right;
    padding-top: 25px;
    font-size: 13px;
}
.invoice-total strong {
    font-size: 25px;
    display: block;
    margin-top: 8px;
}
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fafbf8;
}
.auth-aside {
    padding: 50px 65px;
    background: #193d32;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-aside:after {
    content: "";
    width: 450px;
    height: 450px;
    border: 1px solid #adc79920;
    border-radius: 50%;
    position: absolute;
    bottom: -230px;
    right: -100px;
    box-shadow:
        0 0 0 60px #adc79908,
        0 0 0 120px #adc79905;
    pointer-events: none;
}
.auth-story {
    margin: auto 0;
    max-width: 480px;
    padding: 80px 0;
}
.auth-story .eyebrow {
    color: #aec79f;
}
.auth-story h1 {
    font-size: 49px;
    font-weight: 450;
    line-height: 1.12;
    letter-spacing: -2px;
}
.auth-story p {
    color: #adc3b2;
    margin-top: 24px;
    font-size: 15px;
    max-width: 380px;
}
.auth-steps {
    display: flex;
    gap: 17px;
    font-size: 10px;
    color: #c4d4b9;
    align-items: center;
    margin-top: 37px;
}
.auth-footer {
    font-size: 11px;
    color: #87a28c;
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 35px;
}
.auth-form {
    width: 100%;
    max-width: 360px;
}
.auth-form h1 {
    font-size: 29px;
}
.auth-form > p {
    font-size: 13px;
    margin: 12px 0 30px;
}
.auth-form .btn {
    width: 100%;
    margin-top: 15px;
    padding: 13px;
}
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    gap: 15px;
}
.auth-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7b8b7d;
}
.auth-note {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 22px;
    text-align: center;
    color: #8b978b;
    font-size: 11px;
}
.skip-link {
    position: absolute;
    top: -80px;
    left: 10px;
    background: white;
    z-index: 100;
    padding: 10px;
}
.skip-link:focus {
    top: 10px;
}
.notice {
    padding: 14px 16px;
    background: #f7f8f3;
    border: 1px solid #e9edde;
    border-radius: 8px;
    color: #7c886e;
    font-size: 11px;
    line-height: 1.65;
}
.anchor-section {
    scroll-margin-top: 20px;
}
details summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    padding: 14px 0;
}
details[open] summary {
    margin-bottom: 12px;
}
@media (min-width: 1600px) {
    .main {
        padding-top: 40px;
    }
    .stat-card {
        padding: 26px;
    }
    .pipeline-track {
        height: 100px;
    }
    .stat-value {
        font-size: 35px;
    }
    .stat-card:last-child .stat-value {
        font-size: 29px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 219px;
        padding-inline: 13px;
    }
    .brand {
        font-size: 19px;
    }
    .app-shell {
        margin-left: 219px;
    }
    .main {
        padding: 26px 23px;
    }
    .topbar {
        padding: 0 23px;
    }
    .global-search {
        display: none;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 26px;
    }
    .stat-card:last-child .stat-value {
        font-size: 19px;
        line-height: 1.85;
    }
    .stat-caption {
        font-size: 8px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
        gap: 16px;
    }
    .card-header {
        padding: 20px 18px;
    }
    .card-header h2 {
        font-size: 14px;
    }
    .card-header .text-link {
        font-size: 9px;
    }
    th,
    td {
        padding: 14px 16px;
    }
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pipeline {
        padding-inline: 18px;
        gap: 6px;
    }
    .pipeline-stage > span {
        font-size: 8px;
    }
    .detail-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    }
    .auth-aside {
        padding: 40px;
    }
    .auth-story h1 {
        font-size: 42px;
    }
}
@media (max-width: 1000px) {
    .dashboard-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat-card:last-child .stat-value {
        font-size: 26px;
        line-height: 1.35;
    }
    .stat-caption {
        font-size: 10px;
    }
    .pipeline-track {
        height: 85px;
    }
    .attention-row {
        padding-block: 16px;
    }
    .page-heading h1 {
        font-size: 24px;
    }
    .profile {
        padding-left: 0;
        border: 0;
    }
    .auth-aside {
        padding: 32px;
    }
    .auth-story h1 {
        font-size: 36px;
    }
    .auth-steps {
        gap: 9px;
        font-size: 9px;
    }
}
@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
        width: 246px;
    }
    .nav-open .sidebar {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax #12231e44;
    }
    .nav-open .mobile-menu {
        position: relative;
        z-index: 40;
        background: white;
        border-radius: 5px;
    }
    .app-shell {
        margin-left: 0;
    }
    .mobile-menu {
        display: flex;
    }
    .topbar {
        height: 65px;
        padding: 0 18px;
    }
    .topbar-right {
        gap: 8px;
    }
    .profile > span:last-child {
        display: none;
    }
    .breadcrumbs {
        font-size: 10px;
        gap: 8px;
    }
    .main {
        padding: 24px 18px 14px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 12px;
    }
    .page-heading h1 {
        font-size: 22px;
    }
    .eyebrow {
        font-size: 8px;
    }
    .page-heading p {
        font-size: 11px;
    }
    .page-heading > .btn {
        font-size: 10px;
        padding: 9px 10px;
    }
    .page-heading > .actions {
        justify-content: flex-end;
    }
    .date-line {
        font-size: 9px;
        flex-wrap: wrap;
    }
    .stats-grid {
        gap: 11px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 28px;
    }
    .stat-card:last-child .stat-value {
        font-size: 20px;
        line-height: 1.89;
    }
    .stat-top {
        font-size: 10px;
    }
    .stat-caption {
        font-size: 8px;
    }
    .pipeline-count {
        font-size: 20px;
    }
    .pipeline-stage > span {
        font-size: 8px;
    }
    .card-header {
        padding: 19px 17px;
    }
    .card-body {
        padding: 0 17px 20px;
    }
    .form-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }
    .detail-list {
        gap: 17px;
    }
    .page-footer {
        padding: 16px 18px;
        font-size: 8px;
    }
    .page-footer span:last-child {
        display: none;
    }
    .filters {
        padding: 14px;
        gap: 8px;
    }
    .filters select {
        max-width: 145px;
    }
    .search-field {
        min-width: 100%;
        flex-basis: 100%;
    }
    .money-strip {
        flex-wrap: wrap;
    }
    .invoice-paper {
        padding: 22px;
    }
    .auth-page {
        display: block;
    }
    .auth-aside {
        min-height: 220px;
        padding: 25px;
    }
    .auth-story {
        padding: 28px 0 10px;
    }
    .auth-story h1 {
        font-size: 28px;
        letter-spacing: -0.6px;
    }
    .auth-story p,
    .auth-steps,
    .auth-footer {
        display: none;
    }
    .auth-story .eyebrow {
        margin-bottom: 9px;
    }
    .auth-main {
        padding: 35px 24px;
    }
    .auth-form h1 {
        font-size: 25px;
    }
    .stage-banner {
        padding: 16px;
        gap: 12px;
    }
    .stage-banner .badge {
        display: none;
    }
    .tab-links {
        gap: 18px;
        font-size: 11px;
    }
    .reply-head {
        flex-wrap: wrap;
    }
    .reply-head small {
        margin-left: 0;
    }
    .invoice-bill {
        flex-direction: column;
    }
    .followup-list {
        padding-inline: 17px;
    }
}
@media print {
    .sidebar,
    .topbar,
    .page-footer,
    .page-heading,
    .no-print {
        display: none !important;
    }
    .app-shell {
        margin: 0;
    }
    .main {
        padding: 0;
    }
    .card {
        border: 0;
        box-shadow: none;
    }
    .invoice-paper {
        padding: 10px;
    }
    body {
        background: white;
    }
}

@media (max-width: 760px) {
    .stat-card:last-child .stat-value {
        font-size: 17px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
