:root {
  --bg: #111112;
  --panel: #19191c;
  --panel-raised: #202023;
  --border: #2c2c31;
  --muted: #96959f;
  --text: #f4f3f7;
  --violet: #947aff;
  --primary: #7957f5;
  --green: #8bd6b2;
  --amber: #e7bd79;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a,
button {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #b7a5ff;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.15px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 550;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.violet,
.text-link {
  color: var(--violet);
}
.muted,
.hint {
  color: var(--muted);
}
.positive {
  color: var(--green);
}
.block {
  display: block;
  margin-top: 6px;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.text-link:hover {
  color: #c1b1ff;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.text-button {
  background: none;
  border: 0;
  padding: 7px 0;
  color: var(--violet);
  font-size: 12px;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #141416;
  padding: 34px 18px 0;
  z-index: 10;
}
.mobile-logout {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.25px;
  color: var(--violet);
  padding: 0 12px;
}
.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  flex-shrink: 0;
}
.brand-product {
  font-size: 18px;
  letter-spacing: -0.3px;
  color: #e1dfe6;
  font-weight: 400;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 600;
  color: #777580;
  padding: 43px 15px 18px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  color: #a6a3b0;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 46px;
}
.sidebar nav > a:hover {
  background: #202024;
  color: var(--text);
}
.sidebar nav > a[aria-current="page"] {
  color: #c0aeff;
  background: #252037;
  border-color: #39304f;
}
.sidebar nav > a[aria-current="page"] .icon {
  color: #ab91ff;
}
.nav-label {
  color: #76727e;
  letter-spacing: 1.3px;
  font-size: 9px;
  font-weight: 600;
  margin: 28px 14px 8px;
}
.nav-count {
  margin-left: auto;
  background: #3b2e62;
  color: #c3afff;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.location {
  display: flex;
  gap: 12px;
  padding: 30px 13px 22px;
  color: #aeabb6;
  font-size: 12px;
}
.location > .icon {
  color: #777580;
}
.location small {
  display: block;
  color: #74717f;
  margin-top: 5px;
  font-size: 10px;
}
.profile {
  margin: 0 -18px;
  border-top: 1px solid var(--border);
  padding: 20px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #302741;
  color: #c4affb;
  border: 1px solid #48345e;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 11px;
  flex-shrink: 0;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.profile > div {
  flex: 1;
  min-width: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px;
  display: flex;
}
.icon-button:hover {
  color: var(--text);
}
.app-shell {
  margin-left: 235px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  color: #a3a0ac;
  font-size: 11px;
}
.slash {
  padding: 0 12px;
  color: #4c4859;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-date {
  font-size: 11px;
}
.main {
  padding: 38px 42px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  max-width: 780px;
}
.page-heading > .button {
  flex-shrink: 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: #aaa1bb;
  display: block;
  margin-bottom: 12px;
}
.separator {
  padding: 0 6px;
  color: #60586e;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #202023;
  color: #e8e6ed;
  border: 1px solid #38363f;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  min-height: 41px;
}
.button:hover {
  background: #2a2830;
  border-color: #5c536d;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--primary);
  border-color: #9777ff;
  color: white;
  box-shadow: 0 2px 5px #0002;
}
.button.primary:hover {
  background: #8b69ff;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.button.wide {
  width: 100%;
}
.button.small-button {
  padding: 7px 11px;
  min-height: 33px;
  font-size: 11px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.timer-panel {
  border: 1px solid #3a304d;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 82% 20%, #3b285b35, transparent 70%), #19181e;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 32px;
  gap: 24px;
  margin-bottom: 22px;
  overflow: hidden;
}
.timer-panel:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}
.timer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d2cbdc;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 4px #8bd6b20e;
}
.status-dot.amber {
  background: var(--amber);
}
.live-tag {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #3e354c;
  border-radius: 3px;
  padding: 3px 5px;
  color: #a293b8;
  margin-left: 8px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 64px;
  letter-spacing: -3px;
  font-weight: 500;
  line-height: 1.1;
  margin: 18px 0 13px;
}
.timer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #9b90ab;
}
.timer-meta strong {
  font-weight: 450;
  color: #d6cedf;
  margin-left: -4px;
}
.timer-main > .hint {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  color: #8f829f;
}
.timer-actions {
  position: relative;
  text-align: right;
  padding-top: 63px;
}
.timer-actions > .hint {
  display: block;
  font-size: 10px;
  margin-top: 11px;
}
.timer-ornament {
  position: absolute;
  right: 18px;
  top: -40px;
  transform: rotate(-20deg);
  color: #a389d918;
  pointer-events: none;
}
.timer-ornament .icon {
  width: 140px;
  height: 140px;
  stroke-width: 0.65;
}
.timer-actions form {
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 23px;
  min-width: 0;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aeabb7;
  font-size: 12px;
}
.stat-label .icon {
  color: #7e778d;
  width: 18px;
  height: 18px;
}
.stat-value {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  margin: 15px 0 12px;
}
.stat-value > span {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: #8d8899;
}
.stat-card > small {
  display: block;
  color: #8e899a;
  font-size: 10px;
}
.stat-link:hover {
  border-color: #625278;
  background: #1e1b25;
}
.stat-link > small {
  display: flex;
  justify-content: space-between;
}
.progress {
  height: 3px;
  background: #302b39;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  background: #9576ff;
  display: block;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px;
}
.panel-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-heading > .icon {
  color: #777180;
  width: 17px;
  height: 17px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  color: #8c8699;
  padding: 13px 20px;
  background: #17171a;
  border-block: 1px solid #27252d;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #2a272f;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #ffffff02;
}
.week-table td {
  padding: 19px 22px;
  white-space: nowrap;
}
.week-table td:first-child {
  width: 32%;
}
.week-table td:first-child strong {
  display: inline-block;
  min-width: 25px;
}
.week-table td:first-child > .muted {
  margin-left: 3px;
  font-size: 11px;
}
.week-table td small {
  font-size: 10px;
  color: var(--muted);
}
.today-row {
  background: #29223650;
}
.today-row td:first-child {
  box-shadow: inset 2px 0 #9370ff;
}
.today-chip {
  color: #b19af0;
  font-size: 8px;
  padding: 3px 5px;
  border-radius: 3px;
  background: #3c2c584f;
  margin-left: 8px;
}
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  vertical-align: middle;
  border: 1px solid transparent;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.3;
}
.badge.approved {
  color: #8ad4ab;
  background: #1d352a;
  border-color: #2b4939;
}
.badge.pending {
  color: #dfbb79;
  background: #3a3021;
  border-color: #54412a;
}
.badge.rejected {
  color: #e6a1a7;
  background: #3a272b;
}
.badge.cancelled,
.badge.subtle {
  background: #242328;
  color: #a6a0ae;
}
.badge.violet-badge {
  background: #2d2343;
  color: #b8a1fa;
  border-color: #3a2c53;
}
.badge.demo {
  color: #a99fb7;
  background: #25222b;
  font-size: 8px;
  letter-spacing: 0.5px;
  border: 1px solid #393340;
}
.right-stack {
  display: grid;
  gap: 20px;
}
.upcoming-list {
  padding: 0 22px 10px;
}
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #2a272f;
}
.mini-icon {
  width: 32px;
  height: 34px;
  background: #272230;
  border: 1px solid #3a3046;
  color: #ac91dd;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-icon .icon {
  width: 17px;
  height: 17px;
}
.upcoming-item > div {
  flex: 1;
}
.upcoming-item strong {
  font-size: 12px;
}
.upcoming-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.upcoming-item .badge {
  font-size: 8px;
  padding: 3px 5px;
}
.holiday-card {
  padding: 23px;
  background: linear-gradient(120deg, #261d35, #1a181f);
  border: 1px solid #3c2e4e;
  border-radius: 8px;
}
.holiday-card .eyebrow {
  font-size: 8px;
  color: #af97ce;
  margin-bottom: 14px;
}
.holiday-card h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.holiday-card p {
  font-size: 12px;
  color: #b6a8c6;
}
.holiday-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.holiday-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a693bb;
  font-size: 10px;
}
.holiday-bottom .icon {
  width: 13px;
  height: 13px;
}
.empty-inline {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  padding: 10px 0 20px;
}
.empty-inline .text-link {
  font-size: 11px;
  margin-top: 7px;
}
.empty-state {
  padding: 45px 24px;
  text-align: center;
  color: #c4bbd1;
  line-height: 2;
}
.empty-state span {
  font-size: 12px;
  color: var(--muted);
}
.app-footer {
  padding: 20px 42px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #716979;
}
.footer-dot {
  padding: 0 7px;
}
.notice {
  border: 1px solid #3b3450;
  border-radius: 6px;
  background: #221d2d;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.65;
}
.notice.success {
  background: #1d2d24;
  border-color: #354c3a;
  color: #b0dbbf;
}
.notice.error {
  background: #382329;
  border-color: #653d45;
  color: #f2b2bc;
}
.notice.warning {
  background: #332a1e;
  border-color: #50402a;
  color: #e3c28c;
}
.notice a {
  text-decoration: underline;
}
.section-space {
  margin-top: 25px;
}
.overview-intro {
  padding: 28px 30px;
}
.overview-intro h2 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}
.overview-intro p {
  max-width: 70ch;
}
.overview-intro form {
  margin-top: 20px;
}
.overview-intro form .button {
  margin-top: 12px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}
.overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
}
.overview-card:hover {
  border-color: #625278;
  background: #1e1b25;
}
.overview-card .stat-value {
  margin: 0;
}
.overview-card p {
  font-size: 13px;
}
.overview-card > .text-link {
  margin-top: auto;
  padding-top: 16px;
}
.form-panel {
  max-width: 800px;
}
.data-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 30px;
}
.data-form > div {
  min-width: 0;
}
.data-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #c6bfce;
  margin-bottom: 9px;
}
.data-form .helptext {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #8f849c;
  margin-top: 8px;
}
.data-form input,
.data-form select,
.data-form textarea {
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #3a343f;
  border-radius: 5px;
  background: #141316;
  color: var(--text);
  padding: 11px 12px;
  min-height: 41px;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--primary);
}
.data-form > div:has(input[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff02;
}
.data-form > div:has(input[type="checkbox"]) label {
  margin: 0;
}
.data-form input[type="checkbox"] {
  width: 18px;
  flex: 0 0 18px;
  order: -1;
  margin: 0;
}
.data-form > div:has(input[type="checkbox"]) .helptext {
  width: 100%;
}
.data-form > div:has(#id_reason),
.data-form > div:has(#id_note),
.data-form > div:has(#id_microsoft_oid),
.data-form > .form-actions,
.data-form > p,
.data-form > .errorlist {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 5px;
}
.errorlist {
  list-style: none;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #382329;
  color: #f2b2bc;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.6;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input {
  width: auto;
}
.inline-form input[type="number"] {
  width: 100px;
}
.inline-form input[type="month"] {
  min-height: 34px;
  padding: 6px 10px;
}
.inline-form label {
  font-size: 12px;
}
.session-line {
  white-space: nowrap;
  line-height: 1.8;
  font-size: 11px;
}
.session-line a {
  margin-left: 8px;
  color: var(--violet);
}
.school-grid {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.school-card {
  padding: 20px;
  border: 1px solid #37303f;
  border-radius: 6px;
  background: #1d1b22;
}
.school-card h3 {
  margin: 15px 0 8px;
}
.school-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.school-card .hint {
  margin-top: 12px;
  font-size: 11px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
  padding: 0 5px;
}
.info-grid h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.info-grid p {
  font-size: 12px;
  color: var(--muted);
}
.decision-form {
  display: grid;
  gap: 8px;
  min-width: 190px;
}
.decision-form input {
  font-size: 11px;
  padding: 6px 8px;
  min-height: 32px;
  width: 100%;
}
.table-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 165px;
  font-size: 11px;
  color: var(--violet);
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.person strong {
  font-size: 12px;
}
.person small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.padded {
  padding: 0 24px 24px;
}
.settings-grid .data-form {
  grid-template-columns: 1fr;
}
.settings-grid .data-form > div {
  grid-column: 1/-1;
}
.settings-grid .padded > p {
  font-size: 12px;
  margin-bottom: 18px;
}
.sync-list {
  padding: 15px 0;
}
.sync-list > p {
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
}
.sync-list .badge {
  margin-right: 8px;
}
.audit-details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 360px;
  max-height: 200px;
  overflow: auto;
  font-size: 11px;
}
summary {
  color: var(--violet);
  cursor: pointer;
  font-size: 11px;
}
.login-main {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 50%, #32214733, transparent 65%), #111112;
}
.login-layout {
  max-width: 1200px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
  margin: auto;
  padding: 65px;
}
.login-story {
  height: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand {
  padding: 0;
  width: fit-content;
}
.login-story h1 {
  font-size: 54px;
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 18px 0 22px;
}
.login-story h1 span {
  color: var(--violet);
}
.login-story p {
  color: #9b94a7;
  font-size: 15px;
  line-height: 1.85;
}
.login-story > small {
  color: #756a83;
  font-size: 11px;
}
.login-card {
  border: 1px solid #39303f;
  border-radius: 12px;
  background: #1b181fe8;
  padding: 36px;
  box-shadow: 0 20px 80px #0003;
}
.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #322442;
  color: var(--violet);
  margin-bottom: 26px;
}
.card-icon .icon {
  width: 25px;
  height: 25px;
}
.login-card h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.login-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-card > .hint {
  margin: 13px 0 0;
  font-size: 11px;
}
.microsoft-mark {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #92859e;
  margin-top: 20px;
}
.login-trust .icon {
  width: 14px;
  height: 14px;
}
.demo-options {
  border-top: 1px solid #382e41;
  margin-top: 30px;
  padding-top: 25px;
}
.demo-options .eyebrow {
  font-size: 8px;
}
.demo-options p {
  font-size: 11px;
  color: #a49aaf;
  margin-bottom: 15px;
}
.demo-options form {
  display: grid;
  gap: 8px;
}
.demo-options .button {
  width: 100%;
  font-size: 11px;
}
@media (min-width: 1500px) {
  .main {
    padding-top: 45px;
  }
  .timer-panel {
    padding: 35px;
  }
  .timer {
    font-size: 74px;
  }
  .week-table td {
    padding: 22px;
  }
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-inline: 12px;
  }
  .app-shell {
    margin-left: 210px;
  }
  .profile {
    margin-inline: -12px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 27px;
    padding-inline: 8px;
  }
  .brand-logo {
    width: 115px;
  }
  .brand-product {
    font-size: 18px;
  }
  .main {
    padding: 30px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .timer-panel {
    padding: 25px;
  }
  .timer {
    font-size: 54px;
  }
  .timer-actions .button {
    padding: 10px 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-stack {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 20px 18px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-value > span {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button-row {
    justify-content: flex-end;
  }
  .topbar-right {
    gap: 12px;
  }
  .login-layout {
    gap: 45px;
    padding: 45px;
  }
  .login-story h1 {
    font-size: 44px;
  }
}
@media (max-width: 850px) {
  .mobile-logout {
    display: block;
    position: absolute;
    top: 17px;
    right: 20px;
  }
  .sidebar {
    position: relative;
    width: auto;
    padding: 19px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand {
    font-size: 24px;
    width: fit-content;
  }
  .brand-logo {
    width: 115px;
  }
  .brand-product {
    font-size: 18px;
  }
  .workspace-label,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 18px;
    gap: 5px;
    padding-bottom: 4px;
  }
  .sidebar nav > a {
    font-size: 11px;
    padding: 9px 11px;
    gap: 7px;
    white-space: nowrap;
    min-height: 36px;
  }
  .sidebar nav > a .icon {
    width: 15px;
    height: 15px;
  }
  .app-shell {
    margin-left: 0;
    min-height: calc(100vh - 125px);
  }
  .topbar {
    height: 54px;
    padding-inline: 24px;
  }
  .topbar-right .avatar {
    display: none;
  }
  .main {
    padding: 28px 24px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .timer-meta {
    font-size: 10px;
  }
  .timer-panel {
    gap: 16px;
  }
  .timer {
    font-size: 52px;
  }
  .app-footer {
    padding-inline: 24px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    padding: 35px;
    gap: 35px;
  }
  .login-story {
    height: auto;
    gap: 40px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .login-story > small {
    display: none;
  }
  .login-story p {
    font-size: 13px;
  }
  .login-card {
    padding: 28px;
  }
}
@media (max-width: 600px) {
  .topbar > span {
    font-size: 10px;
  }
  .top-date {
    display: none;
  }
  .main {
    padding: 26px 16px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .page-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading > .button-row {
    justify-content: flex-start;
  }
  .page-heading > .button {
    white-space: normal;
    text-align: left;
  }
  .overview-intro,
  .overview-card {
    padding: 22px;
  }
  .overview-intro h2 {
    font-size: 20px;
  }
  .overview-grid {
    gap: 14px;
  }
  .timer-panel {
    display: block;
    padding: 24px;
  }
  .timer {
    font-size: 58px;
    margin-top: 20px;
  }
  .timer-actions {
    text-align: left;
    padding-top: 23px;
  }
  .timer-ornament {
    right: 0;
    top: -165px;
  }
  .timer-ornament .icon {
    width: 90px;
    height: 90px;
  }
  .timer-actions .button-row {
    flex-wrap: nowrap;
  }
  .timer-actions .button {
    flex: 1;
    font-size: 11px;
  }
  .timer-actions > .hint {
    text-align: center;
    margin-top: 13px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 17px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 12px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-label .icon {
    display: none;
  }
  .stat-value {
    font-size: 26px;
    margin: 0;
  }
  .stat-card > small,
  .progress {
    grid-column: 1/-1;
  }
  .stat-value > span {
    font-size: 11px;
  }
  .progress {
    margin: 3px 0 0;
  }
  .right-stack {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    padding: 20px;
    gap: 12px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .week-table th {
    padding: 12px;
  }
  .week-table td {
    padding: 17px 12px;
    font-size: 11px;
  }
  .week-table td:first-child > .muted {
    display: block;
    margin: 4px 0 0;
    font-size: 10px;
  }
  .week-table .today-chip {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }
  .week-table td:first-child {
    width: auto;
  }
  .week-table .badge {
    font-size: 8px;
    padding: 4px;
  }
  .week-table .muted {
    font-size: 10px;
  }
  .panel-heading .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .app-footer {
    padding: 16px;
    font-size: 8px;
    gap: 15px;
  }
  .data-form {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 22px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .inline-form {
    gap: 6px;
  }
  .inline-form input {
    font-size: 11px;
  }
  .school-grid {
    padding: 0 18px 18px;
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 12px;
    font-size: 11px;
  }
  .login-layout {
    padding: 28px 20px;
  }
  .login-story h1 {
    font-size: 36px;
  }
  .login-card {
    padding: 25px;
  }
  .badge.demo {
    font-size: 7px;
  }
  .timer-meta {
    flex-wrap: wrap;
  }
}
.punch-panel {
  --reader-light: var(--violet);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #3d334e;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 20% 40%, #30234255, transparent 65%),
    var(--panel);
}
.punch-panel.is-running {
  --reader-light: var(--green);
}
.punch-panel.is-paused {
  --reader-light: var(--amber);
}
.punch-machine {
  position: relative;
  width: 300px;
  height: 296px;
  max-width: 100%;
  margin: auto;
}
.punch-card {
  position: absolute;
  width: 240px;
  left: calc(50% - 120px);
  top: 0;
  padding: 20px 20px 30px;
  border-radius: 8px 8px 2px 2px;
  background: #e7e1d5;
  color: #3d3741;
  box-shadow: 0 10px 30px #0005;
  transform: rotate(-3deg);
}
.punch-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  border-bottom: 2px solid #b9adbd;
  padding-bottom: 12px;
}
.punch-card-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #776a7e;
  margin: 16px 0 6px;
}
.punch-time {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 550;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.punch-lines {
  height: 66px;
  margin-top: 16px;
  background: repeating-linear-gradient(transparent 0 21px, #b8aebc 21px 22px);
}
.punch-stamp {
  position: absolute;
  right: 15px;
  bottom: 44px;
  padding: 7px 10px;
  border: 2px solid #7553a8;
  color: #674492;
  background: #e7e1d5d9;
  transform: rotate(-10deg);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 650;
}
.punch-stamp time {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.punch-reader {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #534b5e;
  border-radius: 8px;
  background: linear-gradient(#38353e, #211f25);
  box-shadow: 0 12px 20px #0004;
}
.punch-reader > span {
  width: 85%;
  height: 4px;
  border-radius: 4px;
  background: var(--reader-light);
  box-shadow: 0 0 14px color-mix(in srgb, var(--reader-light) 40%, transparent);
}
.punch-reader small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #c2b7ce;
}
.has-stamp .punch-card {
  transform: translateY(18px);
}
.punch-confirmed .punch-card {
  animation: punch-feed 0.8s both;
}
.punch-confirmed .punch-stamp {
  animation: punch-imprint 0.8s both;
}
.punch-details h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.punch-details .timer-label {
  line-height: 1.5;
}
.punch-details .status-dot {
  flex-shrink: 0;
}
.punch-metrics {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.punch-metrics dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.punch-metrics dd {
  margin: 0;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.punch-details > .hint {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}
.punch-details #sync-status {
  margin-top: 5px;
}
@keyframes punch-feed {
  0% {
    transform: rotate(-3deg);
  }
  45% {
    transform: translateY(56px);
  }
  100% {
    transform: translateY(18px);
  }
}
@keyframes punch-imprint {
  0%,
  55% {
    opacity: 0;
    transform: scale(1.5) rotate(-10deg);
  }
  80%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}
@media (max-width: 1100px) {
  .punch-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .punch-details {
    text-align: center;
  }
  .punch-details .timer-label,
  .punch-details .button-row,
  .punch-metrics {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .punch-panel {
    padding: 26px 18px;
  }
  .punch-details h2 {
    font-size: 22px;
  }
  .punch-details .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
