:root {
  --navy-950: #071726;
  --navy-900: #0b2037;
  --navy-800: #123354;
  --blue: #1e6fd9;
  --blue-soft: #e9f2ff;
  --cyan: #20b5d4;
  --ink: #162636;
  --muted: #718096;
  --line: #d9e3ec;
  --canvas: #f4f7fa;
  --panel: #ffffff;
  --green: #189668;
  --green-soft: #e6f7ef;
  --amber: #c77b18;
  --amber-soft: #fff3dd;
  --red: #c85c5c;
  --red-soft: #fff0f0;
  --shadow: 0 12px 32px rgba(16, 47, 78, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; transform: none !important; box-shadow: none !important; }

.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 26px 16px 18px;
  color: #d9e8f6;
  background: linear-gradient(180deg, var(--navy-950), #0b243d 72%, #0f2b48);
  display: flex;
  flex-direction: column;
}

.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 34px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(96, 204, 231, 0.55);
  border-radius: 11px;
  color: #b8f2fb;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08em;
  background: rgba(32, 181, 212, 0.15);
}
.brand-copy { line-height: 1.05; }
.brand-copy strong { display: block; color: #f6fbff; font: 800 15px "Manrope", sans-serif; letter-spacing: 0.04em; }
.brand-copy span { display: block; margin-top: 4px; color: #7ba2c2; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }

.side-label { padding: 0 12px 10px; color: #678aa8; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9fb6ca;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: 160ms ease;
}
.nav-btn:hover { color: #f3fbff; background: rgba(255,255,255,0.06); }
.nav-btn.active { color: #effcff; border-color: rgba(45, 190, 222, 0.22); background: rgba(32, 181, 212, 0.14); }
.nav-icon { width: 17px; color: #74d7e8; font-size: 14px; text-align: center; }

.sidebar-footer { margin-top: auto; padding: 17px 10px 4px; border-top: 1px solid rgba(186, 220, 244, 0.12); }
.sidebar-footer p { margin: 0 0 10px; color: #7899b5; font-size: 11px; line-height: 1.5; }
.sync-state { display: flex; align-items: center; gap: 7px; color: #b6d4e6; font-size: 11px; font-weight: 600; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #32d59a; box-shadow: 0 0 0 4px rgba(50, 213, 154, 0.12); }

.main-shell { width: calc(100% - 248px); margin-left: 248px; }
.topbar {
  height: 76px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
}
.crumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.crumbs strong { color: var(--ink); font-size: 13px; }
.crumb-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.source-pill { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; padding: 7px 10px; color: #53718b; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; font-size: 11px; }
.source-pill span { color: var(--green); font-size: 8px; }
.user-pill { display: grid; gap: 1px; min-width: 92px; padding: 4px 8px; border-left: 1px solid var(--line); }
.user-pill strong { color: var(--navy-900); font-size: 11px; }
.user-pill span { color: var(--muted); font-size: 9px; }
.icon-button { width: 37px; padding: 0; font-size: 15px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: 160ms ease;
}
.btn:hover { border-color: #a9c0d7; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(16,47,78,0.08); }
.btn.primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 5px 13px rgba(30,111,217,0.22); }
.btn.primary:hover { border-color: #185bb2; background: #185fbe; }
.btn.subtle { color: #4d6780; background: #f7fafc; }
.btn.danger { color: #b25151; background: #fff7f7; border-color: #f1d1d1; }

.content { max-width: 1500px; margin: 0 auto; padding: 32px 34px 54px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0; color: var(--navy-900); font: 800 clamp(24px, 2.6vw, 34px)/1.1 "Manrope", sans-serif; letter-spacing: -0.04em; }
.page-head p { max-width: 640px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}
.hero-card, .panel, .kpi { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.hero-card { position: relative; min-height: 205px; padding: 25px 28px; overflow: hidden; background: linear-gradient(125deg, #0b223b 0%, #123d63 66%, #126177 100%); }
.hero-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; bottom: -190px; border: 1px solid rgba(103, 223, 238, 0.28); border-radius: 50%; box-shadow: 0 0 0 24px rgba(103, 223, 238, 0.05), 0 0 0 48px rgba(103, 223, 238, 0.035), 0 0 0 72px rgba(103, 223, 238, 0.02); }
.hero-card .eyebrow { color: #87deee; }
.hero-card h2 { max-width: 620px; margin: 0; color: #f4fbff; font: 700 clamp(20px, 2vw, 27px)/1.2 "Manrope", sans-serif; letter-spacing: -0.03em; }
.hero-card p { max-width: 600px; margin: 11px 0 0; color: #b5d0e5; font-size: 12px; line-height: 1.55; }
.hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; margin-top: 23px; }
.progress-bar { width: min(330px, 55vw); height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.16); }
.progress-bar > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4fe0c3, #62d7ed); transition: width 300ms ease; }
.hero-stat { color: #e9faff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hero-stat small { display: block; margin-top: 4px; color: #8eb5cc; font-size: 10px; font-weight: 500; }
.next-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 205px; }
.next-card h3 { margin: 0; color: var(--navy-900); font: 700 16px "Manrope", sans-serif; }
.next-card .next-label { margin: 6px 0 16px; color: var(--muted); font-size: 11px; }
.next-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf1f5; }
.next-item:first-of-type { border-top: 0; }
.next-icon { width: 31px; height: 31px; display: grid; place-items: center; color: var(--blue); border-radius: 10px; background: var(--blue-soft); font-size: 13px; font-weight: 800; }
.next-item strong { display: block; color: var(--ink); font-size: 12px; }
.next-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.kpi { padding: 18px 19px; box-shadow: none; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-icon { color: var(--blue); font-size: 13px; }
.kpi-value { margin: 10px 0 3px; color: var(--navy-900); font: 800 27px "Manrope", sans-serif; letter-spacing: -0.06em; }
.kpi-foot { color: #8193a6; font-size: 10px; }
.kpi-foot.good { color: var(--green); }
.kpi-foot.alert { color: var(--amber); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 18px; }
.panel { padding: 21px; box-shadow: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-head h3 { margin: 0; color: var(--navy-900); font: 700 16px "Manrope", sans-serif; letter-spacing: -0.03em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-link { color: var(--blue); border: 0; background: transparent; font-size: 11px; font-weight: 800; }
.panel-link:hover { text-decoration: underline; }

.pulse-list { display: grid; gap: 8px; }
.pulse-row { display: grid; grid-template-columns: 68px minmax(105px, 1fr) 130px 76px; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #edf1f5; border-radius: 11px; background: #fbfcfd; }
.pulse-row:hover { border-color: #c4d8ea; background: #f7fbff; }
.pulse-unit { color: var(--navy-900); font-size: 12px; font-weight: 800; }
.pulse-floor { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e8eef4; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.mini-progress span.done { background: var(--green); }
.mini-progress span.warn { background: var(--amber); }
.pulse-percent { color: #5c7289; font-size: 10px; font-weight: 700; text-align: right; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-badge.done { color: #147a54; background: var(--green-soft); }
.status-badge.working, .status-badge.active { color: #245ea2; background: var(--blue-soft); }
.status-badge.pending { color: #9b651d; background: var(--amber-soft); }
.status-badge.attention { color: #aa5252; background: var(--red-soft); }
.status-badge.not_started { color: #6e7e8e; background: #edf1f5; }

.request-list { display: grid; gap: 10px; }
.request-card { padding: 13px; border: 1px solid #f0dfc4; border-radius: 12px; background: #fffaf1; }
.request-card-head { display: flex; justify-content: space-between; gap: 8px; }
.request-card strong { color: #784e18; font-size: 12px; }
.request-card span { color: #a77637; font-size: 10px; font-weight: 700; }
.request-card p { margin: 7px 0 0; color: #856c4b; font-size: 11px; line-height: 1.45; }
.empty-state { padding: 20px 14px; border: 1px dashed #cfdae4; border-radius: 12px; color: var(--muted); background: #fafcfd; font-size: 12px; text-align: center; }

.floor-list { display: grid; gap: 13px; }
.floor-row { display: grid; grid-template-columns: 85px 1fr 42px; align-items: center; gap: 10px; }
.floor-row label { color: var(--muted); font-size: 11px; font-weight: 700; }
.floor-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf1f5; }
.floor-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.floor-value { color: var(--navy-900); font-size: 11px; font-weight: 800; text-align: right; }

.page-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 17px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #61788e; background: #fff; font-size: 11px; font-weight: 700; }
.filter-pill.active { color: var(--blue); border-color: #b9d3f3; background: var(--blue-soft); }
.search-box { position: relative; min-width: 220px; }
.search-box span { position: absolute; top: 50%; left: 11px; color: #8aa0b3; font-size: 13px; transform: translateY(-50%); }
.search-box input, .select-control { width: 100%; height: 37px; padding: 0 11px 0 32px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.search-box input:focus, .select-control:focus, textarea:focus { border-color: #8bb8ea; box-shadow: 0 0 0 3px rgba(30,111,217,0.1); }
.select-control { padding-left: 11px; min-width: 132px; }

.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.data-table th { padding: 12px 14px; color: #71879a; background: #f7fafc; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #edf1f5; color: #395166; font-size: 11px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fbfdff; }
.unit-cell strong { display: block; color: var(--navy-900); font-size: 12px; }
.unit-cell span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.cell-status { min-width: 72px; padding: 5px 7px; border: 1px solid transparent; border-radius: 7px; color: #6c7e8d; background: #f1f4f6; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.cell-status:hover { border-color: #9fc3e8; color: var(--blue); background: var(--blue-soft); }
.cell-status.done { color: #147a54; background: var(--green-soft); }
.cell-status.working, .cell-status.active { color: #245ea2; background: var(--blue-soft); }
.cell-status.pending { color: #9b651d; background: var(--amber-soft); }
.cell-status.not_started { color: #7b8a98; background: #f1f4f6; }
.cell-status:disabled { border-color: transparent; }
.request-chip { max-width: 170px; padding: 5px 7px; overflow: hidden; color: #a35d22; border-radius: 6px; background: var(--amber-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.request-chip.empty { color: #9aa8b4; background: transparent; }

.timeline { display: grid; gap: 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 35px 1fr auto; gap: 13px; padding: 0 0 22px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 32px; width: 2px; height: calc(100% - 19px); background: #dae5ef; }
.timeline-dot { position: relative; z-index: 1; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #cddbe8; border-radius: 50%; color: #8ca0b2; background: #f5f8fa; font-size: 11px; font-weight: 800; }
.timeline-step.done .timeline-dot { color: #fff; border-color: var(--green); background: var(--green); }
.timeline-step.current .timeline-dot { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px rgba(30,111,217,0.12); }
.timeline-copy strong { display: block; color: var(--navy-900); font-size: 13px; }
.timeline-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.timeline-count { color: #6d8499; font-size: 11px; font-weight: 800; white-space: nowrap; }
.schedule-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 18px; }
.schedule-note { padding: 14px; border: 1px solid #cde6e8; border-radius: 12px; color: #3c7180; background: #effafb; font-size: 11px; line-height: 1.55; }
.schedule-note strong { display: block; margin-bottom: 5px; color: #1f6677; }

.update-list { display: grid; gap: 0; }
.update-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.update-item:first-child { padding-top: 0; }
.update-item:last-child { border-bottom: 0; padding-bottom: 0; }
.update-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.update-copy strong { display: block; color: var(--navy-900); font-size: 12px; }
.update-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.update-time { color: #94a3b1; font-size: 10px; white-space: nowrap; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7,23,38,0.54); backdrop-filter: blur(4px); }
.modal { width: min(510px, 100%); max-height: min(700px, 92vh); overflow-y: auto; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(7,23,38,0.27); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; color: var(--navy-900); font: 700 19px "Manrope", sans-serif; letter-spacing: -0.04em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.close-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #678096; background: #f1f5f8; font-size: 18px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #5f768b; font-size: 11px; font-weight: 800; }
.form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfd; outline: 0; font-size: 12px; }
.form-field input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfd; outline: 0; font-size: 12px; }
.form-field input:focus { border-color: #8bb8ea; box-shadow: 0 0 0 3px rgba(30,111,217,0.1); }
.form-field select { height: 39px; padding: 0 10px; }
.form-field textarea { min-height: 82px; padding: 10px; resize: vertical; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(350px, calc(100vw - 48px)); padding: 12px 14px; border: 1px solid #b9e8d6; border-radius: 10px; color: #116d4c; background: #effbf5; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; animation: toast-in 180ms ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); align-items: center; gap: clamp(34px, 7vw, 100px); padding: clamp(28px, 7vw, 92px); color: #f4fbff; background: radial-gradient(circle at 14% 18%, rgba(32,181,212,0.16), transparent 28%), linear-gradient(135deg, var(--navy-950), #0b2b49 58%, #0c4254); }
.login-intro { max-width: 700px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(54px, 9vh, 100px); }
.login-intro .eyebrow { color: #7bd9e9; }
.login-intro h1 { max-width: 680px; margin: 0; color: #f5fbff; font: 800 clamp(36px, 5.5vw, 70px)/1.02 "Manrope", sans-serif; letter-spacing: -0.04em; text-wrap: balance; }
.login-intro > p:not(.eyebrow) { max-width: 600px; margin: 20px 0 0; color: #b9d3e5; font-size: 15px; line-height: 1.65; }
.login-points { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 34px; color: #cde2ef; font-size: 12px; font-weight: 700; }
.login-points span::first-letter { color: #48d7ae; }
.login-card { width: min(440px, 100%); justify-self: end; padding: clamp(26px, 4vw, 40px); color: var(--ink); border: 1px solid rgba(255,255,255,0.4); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(2,17,29,0.34); }
.login-card h1, .login-card h2 { margin: 0; color: var(--navy-900); font: 800 28px "Manrope", sans-serif; letter-spacing: -0.04em; }
.login-card > div > p:not(.eyebrow), .login-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-form { display: grid; gap: 16px; margin-top: 26px; }
.login-form label { display: grid; gap: 7px; color: #526b81; font-size: 11px; font-weight: 800; }
.login-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfcfd; outline: 0; font-size: 13px; }
.login-form input:focus { border-color: #76aeea; box-shadow: 0 0 0 4px rgba(30,111,217,0.11); }
.login-button { min-height: 46px; margin-top: 3px; }
.login-error, .connection-error { padding: 11px 12px; border: 1px solid #f0cccc; border-radius: 9px; color: #983f3f; background: #fff2f2; font-size: 11px; line-height: 1.45; }
.login-help { margin-top: 18px; text-align: center; }
.loading-card { justify-self: center; grid-column: 1 / -1; text-align: center; }
.loading-card .brand-mark { margin: 0 auto 20px; color: var(--cyan); border-color: #b7ddea; }
.loading-card p { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }
.loading-line { height: 4px; overflow: hidden; border-radius: 99px; background: #e9eef3; }
.loading-line span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--cyan); animation: loading-slide 1.1s ease-in-out infinite alternate; }
@keyframes loading-slide { to { transform: translateX(165%); } }
.connection-error { margin-bottom: 18px; }
.assignment-card.complete { border-color: #d5e6de; background: #f4fbf7; opacity: 0.78; }
.assignment-card.complete strong { color: #39715b; }
.assignment-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.assignment-foot small { color: #8a775e; font-size: 9px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-shell { width: calc(100% - 220px); margin-left: 220px; }
  .content { padding-right: 24px; padding-left: 24px; }
  .topbar { padding: 0 24px; }
  .hero, .two-col, .schedule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; gap: 34px; padding: 24px 18px 34px; }
  .login-brand { margin-bottom: 42px; }
  .login-intro h1 { font-size: clamp(34px, 12vw, 52px); }
  .login-intro > p:not(.eyebrow) { font-size: 13px; }
  .login-points { margin-top: 24px; }
  .login-card { justify-self: stretch; }
  .sidebar { position: static; width: 100%; height: auto; min-height: 0; padding: 14px 13px; }
  .shell { display: block; }
  .brand { padding: 2px 5px 14px; }
  .side-label, .sidebar-footer { display: none; }
  .nav { display: flex; overflow-x: auto; padding-bottom: 1px; }
  .nav-btn { flex: 0 0 auto; width: auto; padding: 9px 11px; }
  .main-shell { width: 100%; margin: 0; }
  .topbar { height: auto; min-height: 64px; padding: 13px 17px; }
  .crumbs { max-width: 55%; line-height: 1.35; }
  .source-pill { display: none; }
  .user-pill { min-width: 0; border-left: 0; padding: 0 4px; }
  .user-pill span { display: none; }
  .top-actions .btn.subtle { display: none; }
  .content { padding: 24px 16px 38px; }
  .page-head { display: block; margin-bottom: 19px; }
  .page-head-actions { justify-content: flex-start; margin-top: 15px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi { padding: 15px; }
  .kpi-value { font-size: 23px; }
  .hero-card, .next-card { padding: 20px; }
  .hero-bottom { display: block; }
  .progress-bar { width: 100%; margin-bottom: 12px; }
  .pulse-row { grid-template-columns: 60px minmax(85px, 1fr) 67px; gap: 8px; }
  .pulse-row .status-badge { display: none; }
  .panel { padding: 16px; }
  .page-toolbar { align-items: stretch; }
  .search-box { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal { padding: 19px; }
}
