:root {
  font-family: 'DM Sans', 'Trebuchet MS', sans-serif;
  color: #203634;
  background: #edf3f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #203634;
  --muted: #788783;
  --line: #e3eae6;
  --paper: #ffffff;
  --canvas: #edf3f0;
  --green: #285b54;
  --green-deep: #183b37;
  --mint: #e7f1ec;
  --coral: #c85e47;
  --coral-soft: #faece7;
  --gold: #c79639;
  --gold-soft: #f8f0dd;
  --blue: #557d91;
  --blue-soft: #e9f1f5;
  --shadow: 0 18px 60px rgba(30, 57, 50, .12);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(85, 125, 145, .38); outline-offset: 2px; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .92fr) 1.08fr; background: #fff; }
.login-aside { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(32px, 6vw, 94px) 34px; color: #f5f7f3; background: var(--green-deep); }
.login-aside::before { content: ''; position: absolute; width: 540px; height: 540px; right: -260px; top: 18%; border: 1px solid rgba(225, 236, 226, .11); border-radius: 50%; box-shadow: 0 0 0 48px rgba(225, 236, 226, .025), 0 0 0 104px rgba(225, 236, 226, .025); }
.login-aside::after { content: ''; position: absolute; width: 7px; height: 116px; right: 17%; bottom: 13%; background: linear-gradient(var(--coral) 0 28%, transparent 28% 35%, #d4b767 35% 66%, transparent 66% 72%, #78a49a 72%); border-radius: 8px; opacity: .85; }
.login-brand, .sidebar-brand { display: block; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.login-brand { width: min(280px, 100%); height: 142px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .48); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(9, 29, 26, .2); }
.sidebar-brand { width: 100%; overflow: hidden; border-radius: 3px; background: #fff; line-height: 0; }
.brand-mark-image { width: 100%; height: auto; display: block; object-fit: contain; }
.login-brand .brand-mark-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
.login-message { max-width: 510px; padding: 50px 0 86px; position: relative; z-index: 1; animation: rise-in .5s ease both; }
.eyebrow { margin: 0 0 14px; color: #71948b; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.login-aside .eyebrow { color: #a7c2b8; }
.login-message h1 { margin: 0; font: 500 clamp(42px, 5vw, 66px)/1.08 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.login-message > p:last-child { max-width: 340px; margin: 24px 0 0; color: #c0d0c9; font-size: 15px; line-height: 1.7; }
.login-main { display: grid; place-items: center; padding: 50px 28px; }
.login-form { width: min(100%, 386px); animation: rise-in .55s .06s ease both; }
.login-form h2 { margin: 0 0 8px; color: var(--ink); font: 600 35px/1.2 'Playfair Display', Georgia, serif; }
.muted { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.login-form label, .field label { display: block; margin: 0 0 8px; color: #354c47; font-size: 12px; font-weight: 700; }
.login-form input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid #dbe4df; border-radius: 5px; color: var(--ink); background: #fff; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.login-form input { margin-bottom: 21px; }
.login-form input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #a0ada8; }
.login-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #6a9a8c; outline: none; box-shadow: 0 0 0 3px rgba(77, 132, 114, .12); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: #214d47; }
.login-submit { width: 100%; min-height: 49px; margin-top: 2px; }
.login-submit span { margin-left: auto; font-size: 17px; font-weight: 400; }
.auth-switch { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch button { padding: 3px 2px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: inherit; font-weight: 700; }
.auth-switch button:hover { color: var(--green-deep); text-decoration: underline; }
.signup-field { margin-bottom: 21px; }
.signup-field input { margin-bottom: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 25px 16px 14px; color: #d9e5df; background: var(--green-deep); }
.sidebar-brand { margin: 0 0 32px; }
.campus-switch { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 1px solid rgba(224, 239, 229, .13); border-radius: 5px; background: rgba(255, 255, 255, .045); }
.campus-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 4px; color: #f2dfaa; background: rgba(214, 185, 106, .18); font: 600 14px 'Playfair Display', Georgia, serif; }
.campus-switch b, .campus-switch small, .privacy-caption b, .privacy-caption small, .profile-button b, .profile-button small { display: block; }
.campus-switch b { font-size: 11px; }
.campus-switch small, .privacy-caption small, .profile-button small { margin-top: 3px; color: #91aaa0; font-size: 10px; }
.chevron { margin-left: auto; color: #8eaaa0; }
.nav-label { margin: 31px 0 10px 10px; color: #77948a; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; border-radius: 4px; color: #b8cbc2; background: transparent; text-align: left; cursor: pointer; font-size: 12px; transition: color .15s, background .15s; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item.active { color: #fff; background: #2a554d; box-shadow: inset 2px 0 #e4bd68; }
.nav-icon { width: 17px; color: #9ab5aa; text-align: center; font-size: 16px; }
.nav-count { min-width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; border-radius: 10px; color: #bed0c8; background: rgba(255, 255, 255, .09); font-size: 10px; }
.nav-count-warm { color: #f0d8a2; background: rgba(201, 150, 57, .18); }
.sidebar-bottom { margin-top: auto; }
.privacy-caption { display: flex; align-items: center; gap: 9px; padding: 14px 9px; border-bottom: 1px solid rgba(224, 239, 229, .12); }
.privacy-lock { color: #a7c6b8; font-size: 16px; }
.privacy-caption b, .profile-button b { color: #dce6e1; font-size: 10px; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 14px 5px 4px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.avatar { width: 31px; height: 31px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 50%; color: #793c2c; background: #f0c3ae; font-size: 10px; font-weight: 700; }
.profile-menu { margin-left: auto; color: #9db1a8; font-size: 19px; }

.main-area { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 65px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3vw, 46px); border-bottom: 1px solid #e0e8e4; background: rgba(255, 255, 255, .74); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #899791; font-size: 11px; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.breadcrumb-slash { color: #c0cac5; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.global-search { width: min(290px, 31vw); height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e1e8e4; border-radius: 4px; background: #fff; color: #80918a; }
.global-search > span { font-size: 18px; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); font-size: 11px; }
.global-search input::placeholder { color: #9aa7a1; }
kbd { flex: none; padding: 2px 4px; border: 1px solid #e6ece8; border-radius: 3px; color: #a3aea9; font: 9px 'DM Sans', sans-serif; }
.icon-button { width: 34px; height: 34px; position: relative; display: inline-grid; place-items: center; border: 1px solid #e1e8e4; border-radius: 4px; color: #55716a; background: #fff; cursor: pointer; font-size: 17px; }
.icon-button:hover { background: #f3f7f4; }
.notification-button i { width: 6px; height: 6px; position: absolute; top: 6px; right: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--coral); }
.topbar-avatar { width: 29px; height: 29px; cursor: pointer; }
.content { width: 100%; max-width: 1440px; flex: 1; margin: 0 auto; padding: 34px clamp(20px, 3vw, 46px) 28px; animation: rise-in .22s ease both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; color: var(--ink); font: 600 29px/1.2 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 8px; }
.button-quiet { border-color: #dfe8e3; color: #46635a; background: #fff; }
.button-quiet:hover { background: #f7faf8; }
.button-small { min-height: 32px; padding: 0 10px; font-size: 10px; }
.section-label { color: #74857e; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-heading h2 { margin: 0; color: #314b44; font-size: 13px; font-weight: 700; }
.text-link { padding: 4px 0; border: 0; color: #3a7568; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.text-link:hover { color: #23544a; text-decoration: underline; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .85fr); gap: 18px; align-items: start; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 24px; }
.metric-card { min-height: 112px; padding: 15px 16px; border: 1px solid #e3eae6; border-radius: 5px; background: var(--paper); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #75877f; font-size: 10px; }
.metric-symbol { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; font-size: 14px; }
.metric-symbol.green { color: #437469; background: var(--mint); }
.metric-symbol.gold { color: #a67a26; background: var(--gold-soft); }
.metric-symbol.coral { color: #b75c47; background: var(--coral-soft); }
.metric-value { margin: 8px 0 0; color: #233a35; font: 600 28px/1 'Playfair Display', Georgia, serif; }
.metric-foot { margin: 7px 0 0; color: #8c9a94; font-size: 9px; }
.metric-foot strong { color: #507c6c; font-weight: 700; }
.panel { border: 1px solid #e3eae6; border-radius: 5px; background: var(--paper); }
.panel-pad { padding: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 12px; border-bottom: 1px solid #e9eeeb; color: #87948e; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid #eef2ef; color: #485b55; font-size: 10px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.person-cell { display: flex; align-items: center; gap: 8px; }
.person-cell b { display: block; color: #2f4941; font-size: 10px; }
.person-cell small { display: block; margin-top: 3px; color: #8b9992; font-size: 9px; }
.mini-avatar { width: 27px; height: 27px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #416d62; background: #e3eee8; font-size: 9px; font-weight: 700; }
.mini-avatar.coral { color: #9e5943; background: #f8e7df; }
.mini-avatar.blue { color: #466b7c; background: #e5eff4; }
.mini-avatar.gold { color: #8e702d; background: #f7efd9; }
.status-pill { min-height: 21px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 11px; color: #517366; background: #e9f2ed; font-size: 9px; font-weight: 700; }
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.urgent, .status-pill.high { color: #ae5541; background: #faece7; }
.status-pill.medium { color: #9a742d; background: #f8f0dd; }
.status-pill.low, .status-pill.scheduled { color: #4a7585; background: #eaf2f5; }
.status-pill.closed { color: #7b8781; background: #eff2f0; }
.status-pill.sent { color: #547a62; background: #eaf3e9; }
.table-action { padding: 5px 7px; border: 0; border-radius: 3px; color: #397164; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.table-action:hover { background: #edf5f0; }
.right-column { display: grid; gap: 17px; }
.agenda-list { display: grid; }
.agenda-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef2ef; }
.agenda-item:last-child { border-bottom: 0; }
.date-tile { width: 43px; height: 46px; display: grid; align-content: center; justify-items: center; border-radius: 4px; color: #45695f; background: #edf4ef; }
.date-tile b { font: 600 17px/1 'Playfair Display', Georgia, serif; }
.date-tile small { margin-top: 4px; color: #779086; font-size: 8px; text-transform: uppercase; }
.agenda-copy b { display: block; overflow: hidden; color: #334b44; font-size: 10px; text-overflow: ellipsis; }
.agenda-copy small { display: block; margin-top: 4px; color: #87958f; font-size: 9px; }
.agenda-time { color: #6d7e77; font-size: 9px; }
.attention-card { padding: 15px; border: 1px solid #f0dfd1; border-radius: 5px; background: #fffaf5; }
.attention-top { display: flex; align-items: center; gap: 8px; color: #a1543c; font-size: 11px; font-weight: 700; }
.attention-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #a1543c; background: #f9e8dd; }
.attention-card p { margin: 10px 0 13px; color: #8c7266; font-size: 10px; line-height: 1.55; }
.attention-footer { display: flex; align-items: center; justify-content: space-between; color: #a47c68; font-size: 9px; }
.empty-state { padding: 28px 15px; color: #85938c; text-align: center; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 5px; color: #4b6259; font-size: 12px; }
.app-footer { display: flex; justify-content: space-between; padding: 13px clamp(20px, 3vw, 46px); border-top: 1px solid #e1e9e4; color: #94a19a; background: rgba(255,255,255,.48); font-size: 9px; }
.app-footer span:last-child { display: flex; align-items: center; gap: 6px; }
.app-footer i { width: 5px; height: 5px; border-radius: 50%; background: #d6a44f; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.filter-select { min-height: 33px; padding: 0 10px; border: 1px solid #e1e8e4; border-radius: 4px; color: #567067; background: #fff; font-size: 10px; }
.record-title { display: inline-flex; align-items: center; gap: 8px; }
.record-title b { color: #334b44; font-size: 10px; }
.record-title small { display: block; margin-top: 3px; color: #8a9891; font-size: 9px; }
.table-note { margin: 0; padding: 11px 14px; border-top: 1px solid #eef2ef; color: #87958f; font-size: 9px; }
.reminder-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid #edf1ee; }
.reminder-row:last-child { border-bottom: 0; }
.reminder-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #916e30; background: #f8f0dd; }
.reminder-copy b { display: block; color: #334b44; font-size: 11px; }
.reminder-copy small { display: block; margin-top: 4px; color: #829189; font-size: 9px; }
.reminder-date { color: #6e7d77; font-size: 10px; }
.reminder-row.sent-row { opacity: .72; }
.profile-detail { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid #edf1ee; }
.profile-detail .mini-avatar { width: 38px; height: 38px; font-size: 11px; }
.profile-detail b { color: #314b44; font-size: 12px; }
.profile-detail small { display: block; margin-top: 4px; color: #899790; font-size: 10px; }
.action-dialog { width: min(520px, calc(100% - 28px)); max-height: min(88vh, 760px); padding: 0; border: 1px solid #dfe7e2; border-radius: 7px; color: var(--ink); box-shadow: var(--shadow); }
.action-dialog::backdrop { background: rgba(20, 43, 39, .42); backdrop-filter: blur(2px); }
.action-dialog form { padding: 23px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading .eyebrow { margin-bottom: 7px; }
.dialog-heading h2 { margin: 0; font: 600 24px/1.2 'Playfair Display', Georgia, serif; }
.dialog-close { width: 28px; height: 28px; font-size: 18px; }
.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 76px; resize: vertical; }
.field .checkbox-line { display: flex; align-items: center; gap: 8px; color: #546c63; font-size: 11px; }
.field .checkbox-line input { width: 15px; min-height: 15px; accent-color: var(--green); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.toast { position: fixed; z-index: 9; right: 24px; bottom: 22px; max-width: min(380px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid #cadecf; border-radius: 4px; color: #264d42; background: #f6fbf7; box-shadow: 0 8px 24px rgba(24, 59, 55, .12); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 103px; }
  .login-screen { grid-template-columns: minmax(300px, .85fr) 1.15fr; }
}
@media (max-width: 700px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { min-height: 330px; padding: 20px 24px 19px; }
  .login-brand { width: 220px; height: 112px; }
  .login-message { padding: 25px 0 22px; }
  .login-message h1 { font-size: 40px; }
  .login-message > p:last-child { margin-top: 13px; font-size: 12px; }
  .login-main { padding: 38px 24px 50px; }
  .app-shell { display: block; padding-bottom: 61px; }
  .sidebar { width: 100%; height: auto; position: fixed; z-index: 5; top: auto; bottom: 0; display: block; padding: 0; border-top: 1px solid rgba(255,255,255,.11); }
  .sidebar-brand, .campus-switch, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .nav-item { min-height: 59px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 1px; border-radius: 0; font-size: 8px; }
  .nav-item.active { box-shadow: inset 0 2px #e4bd68; }
  .nav-icon { height: 19px; font-size: 15px; }
  .nav-count { display: none; }
  .topbar { height: 55px; padding: 0 14px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .topbar-actions { gap: 7px; }
  .global-search { width: 34px; height: 32px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .global-search > span { font-size: 21px; }
  .global-search input, .global-search kbd { display: none; }
  .notification-button { width: 31px; height: 31px; }
  .topbar-avatar { width: 27px; height: 27px; }
  .content { padding: 24px 14px 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 11px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-grid { gap: 7px; margin-bottom: 17px; }
  .metric-card { min-height: 93px; padding: 11px 10px; }
  .metric-top { align-items: flex-start; gap: 3px; font-size: 8px; }
  .metric-symbol { width: 22px; height: 22px; flex: none; font-size: 12px; }
  .metric-value { margin-top: 7px; font-size: 24px; }
  .metric-foot { font-size: 8px; }
  .right-column { grid-template-columns: 1fr; gap: 12px; }
  .panel-pad { padding: 13px; }
  .table-wrap { margin: 0 -3px; }
  th, td { padding: 9px 8px; }
  .toolbar-row { align-items: flex-start; flex-direction: column; }
  .reminder-row { grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; padding: 12px 10px; }
  .reminder-icon { width: 29px; height: 29px; }
  .reminder-date { grid-column: 2; grid-row: 2; }
  .reminder-row .button { grid-column: 3; grid-row: 1 / span 2; }
  .app-footer { padding: 11px 14px; font-size: 8px; }
}
@media (max-width: 390px) {
  .metric-card { padding: 10px 8px; }
  .metric-top { font-size: 7px; }
  .metric-symbol { width: 19px; height: 19px; }
  .page-heading h1 { font-size: 23px; }
  .dialog-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}