@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --canvas: #f3f6fa;
  --surface: #fff;
  --ink: #18273a;
  --muted: #536379;
  --line: #dfe6ef;
  --sidebar: #112238;
  --sidebar-ink: #cad6e6;
  --accent: #176452;
  --accent-deep: #114e41;
  --accent-light: #e7f4ee;
  --radius: 11px;
  --card-shadow: 0 1px 2px #14273507, 0 4px 12px #14273507;
  --font: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 400 13px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body > .container-fluid { padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button, .btn { touch-action: manipulation; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, .form-control:focus-visible {
  outline: 3px solid #438bda;
  outline-offset: 3px;
}
.muted { color: var(--muted); }
.full-width { width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-mark {
  display: grid;
  flex: 0 0 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #c1edd9, #83d6bb);
  color: #173a35;
  font-size: 18px;
  font-weight: 700;
}
.brand strong { display: block; font-size: 15px; line-height: 1.2; }
.brand-label { color: #adbed3; font-size: 12px; }
.sign-in-layout {
  width: min(970px, calc(100% - 48px));
  min-height: 525px;
  margin: max(48px, calc((100vh - 525px) / 2)) auto 48px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 20px 58px #14213512;
}
.sign-in-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 41px;
  background: var(--sidebar);
  color: #fff;
}
.sign-in-intro { margin-block: auto; }
.sign-in-intro h1 {
  max-width: 340px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.058em;
  font-weight: 700;
}
.sign-in-intro p { margin-top: 14px; color: var(--sidebar-ink); max-width: 300px; font-size: 14px; }
.sign-in-panel { display: grid; place-items: center; padding: 46px; }
.sign-in-form { width: 100%; max-width: 330px; }
.sign-in-form h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.035em; }
.sign-in-form > p { margin: 8px 0 28px; }
.login-message { color: #a02235; margin-bottom: 12px; font-size: 13px; }
.login-message:has(.shiny-text-output:empty) { margin-bottom: 0; }

.install-app {
  width: 100%;
  min-height: 39px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.install-app[hidden] { display: none; }
.install-app:hover { border-color: var(--accent); }
.install-app:disabled { opacity: 0.6; cursor: wait; }
.sidebar .install-app { border-color: #b4d5d72b; background: #20324a; color: var(--sidebar-ink); }
.sidebar .install-app:hover { border-color: #8de0bc; color: #fff; }
.install-app-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}
.install-app-dialog::backdrop { background: #11223866; }
.install-app-dialog h2 { font-size: 19px; font-weight: 700; }
.install-app-dialog p { margin: 14px 0 20px; }

.workspace {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 13px 16px;
  background: var(--sidebar);
  overflow-y: auto;
}
.sidebar .brand { margin: 0 6px 18px; padding: 0 2px 18px; border-bottom: 1px solid #b4d5d72b; }
.sidebar-nav { display: grid; gap: 4px; }
.workspace-role { margin: 0 6px 12px; }
.workspace-role .form-group { margin-bottom: 0; }
.workspace-role label { color: var(--sidebar-ink); font-size: 12px; }
.workspace-role select { min-height: 36px; border-color: #526376; border-radius: 7px; font-size: 13px; }
.counter-actions { margin-bottom: 16px; }
.counter-amount { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 16px; padding: 12px; background: var(--accent-light); border-radius: 7px; }
.counter-total { font-weight: 700; background: var(--accent-light); }
.internet-connection-notice { padding: 14px 16px; line-height: 1.5; }
.internet-connection-notice p { margin: 0; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--sidebar-ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-link i { width: 17px; text-align: center; }
.sidebar-nav .nav-link:hover { color: #fff; background: #20324a; }
.sidebar-nav .nav-active { color: #fff; background: #244354; box-shadow: inset 2px 0 #8de0bc; }
.nav-active i { color: #a0e7cb; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-date { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.topbar-date i { color: #5c728a; }
.account-area { display: flex; align-items: center; gap: 10px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent-deep);
  font-weight: 700;
}
.account-name { display: grid; line-height: 1.25; }
.account-name strong { font-size: 13px; }
.account-name > span { color: var(--muted); font-size: 12px; }
.account-password { color: var(--accent-deep); font-size: 12px; }
.sign-out {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0 6px 12px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.sign-out:hover { color: var(--accent-deep); text-decoration: none; }
.workspace-main { width: min(100%, 1500px); margin: 0 auto; padding: 25px 26px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.page-heading h1 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.035em; }
.page-heading p { color: var(--muted); margin-top: 5px; }
.btn.btn-default { border-color: #d3dee6; border-radius: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
.btn.btn-default:hover { border-color: #8db7aa; background: #f0f7f4; }
.btn.primary-button {
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.primary-button i { margin-right: 5px; }
.btn.primary-button:hover, .btn.primary-button:focus { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-bottom: 17px; }
.metric-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 5px;
  min-height: 87px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}
.metric-card:hover, .metric-card[aria-pressed="true"] { border-color: #8bb5a5; }
.metric-card[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #8bb5a5; }
.metric-caption { align-self: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e9eff8;
  color: #375b8c;
}
.metric-completed .metric-icon { background: var(--accent-light); color: var(--accent); }
.metric-overdue { background: #fffbfc; border-color: #ead7dc; }
.metric-overdue .metric-icon { background: #fae9ec; color: #a82d43; }
.metric-overdue .metric-value { color: #a02a41; }
.metric-today .metric-icon { background: #fbf0dc; color: #885a16; }
.metric-value { align-self: end; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

.overview-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 258px); align-items: start; gap: 15px; }
.dashboard-table { margin-top: 24px; }
.unit-list { list-style: none; margin: 0; padding: 0 12px 5px; }
.unit-row { border-top: 1px solid #e9eef3; }
.unit-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 7px 3px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.unit-link:hover { background: #f4f8fa; }
.unit-link:focus-visible { outline-offset: -2px; }
.unit-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 7px; color: #3e5979; background: #edf2f8; }
.unit-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.unit-info strong { font-size: 13px; line-height: 1.24; overflow-wrap: anywhere; }
.unit-info > span { color: var(--muted); font-size: 11px; line-height: 1.2; }
.unit-chevron { color: var(--muted); font-size: 11px; }
.unit-link:hover .unit-chevron { color: var(--accent); }
.unit-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--accent-deep); font-weight: 600; font-size: 13px; }
.unit-back:hover { color: var(--accent); }
.surface { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
.panel-heading { min-height: 50px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.panel-heading h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.panel-heading > .muted { font-size: 12px; }
.staff-panel { margin-bottom: 18px; }
.staff-controls { max-width: 580px; padding: 18px; }
.staff-controls-with-heading { padding-top: 0; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.temporary-password {
  display: block;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  color: inherit;
  font-size: 16px;
  overflow-wrap: anywhere;
  user-select: all;
}
.password-sign-out { display: inline-block; margin-top: 14px; }
.text-button { border: 0; background: transparent; color: var(--accent-deep); padding: 4px; font-weight: 600; font-size: 12px; }
.text-button i { margin-left: 5px; }
.text-button:hover { text-decoration: underline; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  white-space: nowrap;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.32;
  font-weight: 600;
}
.badge-proposed { color: #805314; background: #fff1d5; }
.badge-completed { color: #0b6147; background: #e2f2e9; }
.badge-progress { color: #1c4e9a; background: #e8effe; }
.badge-awaiting { color: #644396; background: #f1eafa; }
.badge-open { color: #465a73; background: #edf1f6; }

.queue-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.queue-filter { padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.queue-filter:hover { border-color: #8bb5a5; }
.queue-filter.selected { border-color: #a8cabd; background: var(--accent-light); color: var(--accent-deep); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 555px; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table th { padding: 9px 10px; border-block: 1px solid #e6ebf1; background: #f3f6fa; color: #42546b; font-size: 12px; font-weight: 600; }
.data-table td { padding: 10px; border-bottom: 1px solid #e8edf3; vertical-align: top; overflow-wrap: anywhere; }
.data-table th:first-child, .data-table td:first-child { padding-left: 15px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 15px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.assignment-link {
  display: grid;
  gap: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.assignment-title { color: var(--accent-deep); font-weight: 600; }
.assignment-link:hover .assignment-title { text-decoration: underline; }
.assignment-record { display: grid; gap: 2px; }
.assignment-record .assignment-title { color: var(--ink); }
.reference { font-size: 11px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.judiciary-link {
  display: block;
  width: fit-content;
  margin-top: 5px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.case-actions { margin-top: 10px; }
.assignment-next { margin: 0 0 15px; padding: 11px 13px; background: var(--canvas); border-radius: 7px; }
.assignment-next p { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.duplicate-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.duplicate-comparison .assignment-summary { overflow-wrap: anywhere; }
.case-status { margin-top: 8px; overflow-wrap: anywhere; }
.case-status p { white-space: pre-wrap; }
.hearings-panel { margin-bottom: 16px; }
.hearing-list { list-style: none; margin: 0; padding: 0; max-height: 16rem; overflow-y: auto; }
.hearing-list li { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); }
.hearing-list time { min-width: 90px; font-weight: 600; }
.hearing-list li > div { min-width: 0; overflow-wrap: anywhere; }
.work-search-controls { padding: 16px 18px; margin-bottom: 18px; }
.search-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.search-results-panel { margin-top: 16px; }
.secondary-cell { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.next-action-cell { min-width: 148px; max-width: 310px; color: var(--muted); }
.due-date-cell { white-space: nowrap; }
.late-date { color: #a02235; font-weight: 600; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 42px 16px 46px; text-align: center; }
.empty-state strong { font-size: 15px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 6px; border-radius: 10px; color: #46627f; background: #edf2f8; font-size: 16px; }
.audit-table { min-width: 735px; }
.audit-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit-table td:last-child { min-width: 260px; }
.role-label { text-transform: capitalize; }
.audit-change, .audit-note { margin: 0 0 4px; }
.audit-change strong, .audit-note strong { margin-right: 6px; }
.audit-note span { white-space: pre-wrap; }
.change-arrow { color: var(--muted); }

.modal-content { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 60px #17243735; }
.modal-header { padding: 16px 20px; border-color: var(--line); }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-body { padding: 18px 20px; }
.modal-footer { padding: 13px 20px; border-color: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 13px; }
.form-group { margin-bottom: 14px; }
.form-control {
  min-height: 41px;
  border: 1px solid #c7d2e0;
  border-radius: 7px;
  color: var(--ink);
  box-shadow: none;
}
.form-control:focus { border-color: #4d927b; box-shadow: none; }
textarea.form-control { resize: vertical; }
.assignment-summary { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fc; margin-bottom: 15px; }
.assignment-summary h3 { font-size: 17px; font-weight: 700; margin: 3px 0 6px; overflow-wrap: anywhere; }
.assignment-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; color: var(--muted); font-size: 12px; }
.assignment-summary-meta i { margin-right: 5px; }
.register-details { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; }
.register-details summary { cursor: pointer; font-weight: 600; }
.register-details dl { margin: 8px 0 0; }
.register-details dd { margin: 0 0 6px; color: var(--muted); overflow-wrap: anywhere; }


.nav-count { display: inline-grid; min-width: 22px; height: 22px; margin-left: auto; padding-inline: 5px; place-items: center; border-radius: 12px; background: #c8ebdc; color: #153e34; font-size: 11px; font-weight: 700; }
.data-table tbody tr:hover { background: #f9fcfb; }
.case-actions [data-remind-assignment] i, .deadline-item-actions i { margin-right: 5px; }
.reminder-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin-bottom: 15px; padding: 11px 14px; background: linear-gradient(110deg, #eff8f4, #fff 60%); }
.reminder-overview-icon { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 8px; background: #dcefe5; color: var(--accent-deep); }
.reminder-overview-content { flex: 1; min-width: 140px; }
.reminder-overview h2 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.reminder-overview-counts { display: flex; flex-wrap: wrap; gap: 5px; }
.deadline-badge { display: inline-block; width: fit-content; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.deadline-badge-overdue { color: #8e253d; background: #f9e5ea; }
.deadline-badge-today { color: #79530c; background: #fbefcf; }
.deadline-badge-upcoming { color: #1a6050; background: #e3f2ec; }
.deadline-filters { display: flex; gap: 14px; padding: 14px 16px; margin-bottom: 18px; }
.deadline-filters > * { flex: 0 1 250px; min-width: 0; }
.deadline-filters .form-group { margin-bottom: 0; }
.deadline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.deadline-item { display: flex; flex-direction: column; gap: 9px; padding: 16px; border-top: 3px solid #94b9aa; }
.deadline-item-overdue { border-top-color: #b8445a; }
.deadline-item-today { border-top-color: #bf9038; }
.deadline-item-heading, .deadline-message-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.deadline-item-heading time { color: var(--muted); font-size: 12px; font-weight: 600; }
.deadline-item .assignment-title { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.deadline-context { color: var(--muted); font-size: 12px; }
.deadline-next { font-size: 13px; overflow-wrap: anywhere; }
.deadline-next strong { margin-right: 3px; }
.deadline-message { padding: 10px 12px; background: #f1f7f5; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.deadline-message p { margin-top: 5px; white-space: pre-wrap; }
.deadline-unread, .deadline-read { color: var(--accent-deep); font-weight: 600; font-size: 11px; }
.deadline-unread::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 5px; }
.deadline-item-actions { margin-top: auto; padding-top: 2px; }

.finance-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.finance-card { display: grid; gap: 3px; padding: 12px 14px; }
.finance-card span { color: var(--muted); font-size: 12px; }
.finance-card strong { font-size: clamp(13px, 1.55vw, 20px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.panel-filter { max-width: 440px; padding: 0 15px 2px; }
.money-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.client-job-label, .payment-allocation-hint { margin-bottom: 12px; }
.service-summary-note { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 15px; background: var(--canvas); }
.service-summary-note a { color: var(--accent-deep); font-weight: 600; }
.counter-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; margin-bottom: 15px; }
.counter-summary strong { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.counter-method { padding: 4px 7px; border-radius: 5px; background: var(--accent-light); color: var(--accent-deep); }
.counter-close-totals { padding-left: 18px; margin-block: 9px; }

@media (max-width: 1090px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-details { grid-template-columns: minmax(0, 1fr); }
  .overview-details .units-panel { grid-row: 1; }
  .unit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; }
}
@media (max-width: 800px) {
  .search-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 16px 7px; }
  .sidebar .brand { margin: 0 0 8px; padding: 0 0 9px; }
  .sidebar-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 3px; padding-bottom: 4px; scrollbar-width: thin; }
  .sidebar-nav .nav-link { flex: 0 0 auto; min-height: 39px; padding: 7px 9px; gap: 6px; font-size: 12px; }
  .topbar { min-height: 56px; padding: 9px 16px; }
  .workspace-main { padding: 22px 16px 35px; }
  .sign-in-layout { width: min(500px, calc(100% - 32px)); margin: 28px auto; grid-template-columns: 1fr; }
  .sign-in-brand { padding: 25px; gap: 20px; }
  .sign-in-intro h1 { font-size: 30px; }
  .sign-in-panel { padding: 29px; }
}

@media (max-width: 640px) {
  .unit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deadline-list { grid-template-columns: minmax(0, 1fr); }
  .deadline-filters { flex-wrap: wrap; gap: 8px 12px; }
  .deadline-filters > * { flex: 1 1 145px; }
  .assignment-list-scroll { overflow: visible; }
  .assignment-list { display: block; min-width: 0; }
  .assignment-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .assignment-list tbody { display: block; }
  .assignment-list tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 13px 15px; border-top: 1px solid var(--line); }
  .assignment-list tbody td { display: block; padding: 0; border: 0; min-width: 0; max-width: none; white-space: normal; }
  .assignment-list tbody td:first-child, .assignment-list tbody td:last-child { padding-inline: 0; }
  .assignment-list tbody td:first-child, .assignment-list .next-action-cell { grid-column: 1 / -1; }
  .assignment-list td[data-label]::before { display: block; content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; }
}

@media (max-width: 480px) {
  .finance-cards { gap: 6px; }
  .finance-card { padding: 8px; }
  .duplicate-comparison { grid-template-columns: minmax(0, 1fr); }
  .search-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .page-heading { flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric-card { grid-template-columns: 1fr; min-height: 67px; padding: 8px 9px; }
  .metric-caption { font-size: 11px; }
  .metric-icon { display: none; }
  .metric-value { font-size: 23px; }
  .account-area { gap: 6px; }
  .account-avatar { display: none; }
  .sign-out { margin-left: 0; padding-left: 8px; }
  .topbar-date { font-size: 12px; }
  .topbar-date i { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
