:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e8f2;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #111827;
  --primary-soft: #eef2ff;
  --accent: #2563eb;
  --danger: #dc2626;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 50%, #f4f6fa 100%);
}

a {
  color: inherit;
}

.hidden {
  display: none;
}

.dashboard-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sidebar-brand-text {
  white-space: nowrap;
}

.sidebar-logo {
  font-size: 14px;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.sidebar-toggle-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-width: 2px;
  border-color: #2563eb;
  background: #eff6ff;
  color: #0f172a;
}

.sidebar-toggle-btn:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.sidebar-toggle-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.8;
}

.sidebar-toggle-icon-expand {
  display: none;
}

.sidebar-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.sidebar-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: #f8fafc;
  border-color: var(--line);
}

.sidebar-link.active {
  background: #111827;
  color: #f8fafc;
}

.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 88px 1fr;
}

.dashboard-shell.sidebar-collapsed .sidebar-caption,
.dashboard-shell.sidebar-collapsed .sidebar-brand-text,
.dashboard-shell.sidebar-collapsed .user-sidebar-footer-row .muted {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar {
  padding-inline: 10px;
}

.dashboard-shell.sidebar-collapsed .sidebar-nav {
  gap: 8px;
}

.dashboard-shell.sidebar-collapsed .sidebar-link {
  justify-content: center;
  align-items: center;
  padding: 11px 4px;
  gap: 0;
}

.dashboard-shell.sidebar-collapsed .sidebar-link-label {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar-footer {
  display: flex;
  justify-content: center;
}

.dashboard-shell.sidebar-collapsed .user-sidebar-footer-row {
  justify-content: center;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle-icon-collapse {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle-icon-expand {
  display: block;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-sidebar-footer {
  text-align: left;
}

.admin-sidebar-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-sidebar-footer-row .muted {
  margin: 0;
}

.admin-sidebar-footer .sidebar-logout-form {
  margin: 0;
}

.admin-logout-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-logout-icon {
  width: 26px;
  height: 26px;
}

.user-sidebar-footer {
  text-align: left;
}

.user-sidebar-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.user-sidebar-footer-row .muted {
  margin: 0;
}

.user-sidebar-footer .sidebar-logout-form {
  margin: 0;
}

.user-logout-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.user-logout-icon {
  width: 26px;
  height: 26px;
}

.sidebar-logout-form {
  margin-top: 8px;
}

.dashboard-main {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-backdrop {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #fff 90%, transparent);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.mobile-sidebar-open-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
}

.mobile-sidebar-open-icon {
  width: 20px;
  height: 20px;
}

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
}

.topbar-search {
  max-width: 260px;
}

.topbar-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, 100%);
}

.topbar-search-reset {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-search-reset:hover {
  color: #1f2937;
}

.topbar-list-link {
  white-space: nowrap;
  align-self: flex-end;
}

.public-shell {
  min-height: 100vh;
}

.admin-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-container {
  width: 100%;
  max-width: 980px;
  margin: 0;
}

.auth-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 22px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
}

.nav-link:hover {
  background: #f8fafc;
  border-color: var(--line);
}

.nav-link.is-current {
  background: #111827;
  border-color: #111827;
  color: #f8fafc;
  font-weight: 700;
}

.nav-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.container {
  max-width: 1320px;
  margin: 22px auto;
  padding: 0 20px 28px;
}

.stack {
  display: grid;
  gap: 16px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 2px rgb(2 6 23 / 0.04), 0 10px 24px rgb(2 6 23 / 0.03);
}

.card-sm {
  max-width: 460px;
  margin: 52px auto;
}

.card-md {
  max-width: 780px;
  margin: 0 auto;
}

.card-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.event-detail-title {
  margin-bottom: 10px;
}

.import-job-detail-title {
  margin-bottom: 12px;
}

.admin-login-brand {
  margin: 0;
  color: #475569;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-login-title {
  margin-top: 14px;
}

.card-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field {
  margin: 0;
  min-width: 0;
}

.field + .field {
  margin-top: 10px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .field + .field {
  margin-top: 0;
}

.import-period-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.import-period-field {
  flex: 1 1 0;
  min-width: 0;
}

.import-period-row .field + .field {
  margin-top: 0;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea,
select {
  width: 100%;
  border: 1px solid #d8dfec;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  outline: 0;
  color: #0f172a;
  font-size: 14px;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
  display: block;
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  box-sizing: border-box;
  padding-right: 34px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
textarea:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.16);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: #1d4ed8;
  cursor: pointer;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.checkbox-line label {
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.notification-top-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

.notification-channel-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notification-channel-options .checkbox-line {
  margin: 0;
}

.notification-save-actions {
  justify-content: flex-end;
}

.notification-offset-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.notification-offset-label {
  margin: 0;
  font-weight: 700;
}

.notification-offset-input {
  margin: 0;
}

.notification-offset-enabled {
  margin: 0;
  white-space: nowrap;
}

button,
.btn,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.nav-link:hover {
  cursor: pointer;
}

.btn.secondary {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #d9e2ef;
}

.btn.save {
  background: #2563eb;
  color: #eff6ff;
}

.btn.login {
  background: #0f766e;
  color: #ecfeff;
}

.btn.logout {
  background: #b91c1c;
  color: #fef2f2;
}

.btn.danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 10px;
  font-size: 13px;
}

.btn-table-action {
  font-size: inherit;
  font-weight: 600;
  padding: 7px 10px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.flash.notice {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.flash.alert {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.annual-quota-table th,
.annual-quota-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.annual-quota-table .quota-period-fields {
  justify-content: center;
}

.annual-quota-table td input[type="text"],
.annual-quota-table td input[type="number"],
.annual-quota-table td input[type="date"] {
  text-align: center;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

.calendar-sidebar {
  display: grid;
  gap: 16px;
}

.calendar-primary-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.calendar-primary-actions .btn {
  font-size: 12px;
  padding: 9px 10px;
  white-space: nowrap;
}

.calendar-main {
  display: grid;
  gap: 16px;
}

.month-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-nav-icon-btn {
  width: 52px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-icon {
  width: 22px;
  height: 22px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.calendar-weekdays div {
  color: #475569;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays div:last-child {
  border-right: 0;
}

.calendar-weekdays div:first-child {
  color: #dc2626;
}

.grid-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.day-cell {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 120px;
  padding: 8px 8px 24px;
  background: #fff;
}

.day-cell:nth-child(7n) {
  border-right: 0;
}

.day-cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.day-cell.is-outside {
  background: #fcfdff;
}

.day-cell h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.day-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.holiday-name {
  font-size: 10px;
  color: #dc2626;
  font-weight: 600;
  white-space: nowrap;
}

.grid-month .day-cell:nth-child(7n + 1) h4,
.grid-month .day-cell:nth-child(7n + 1) .calendar-day-link {
  color: #dc2626;
}

.calendar-day-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.selected-day-events-card {
  margin-top: 14px;
}

.selected-shared-event-detail-card {
  margin-top: 14px;
}

.monthly-events-list-card {
  margin-top: 14px;
}

.day-cell.is-today {
  background: #eef5ff;
}

.event-chip {
  display: block;
  text-decoration: none;
  border: 1px solid #cfe0ff;
  background: #f3f8ff;
  color: #1e3a8a;
  border-radius: 6px;
  padding: 5px 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.shared-event-chip {
  cursor: pointer;
}

.shared-event-chip.is-selected {
  border-color: #93c5fd;
  background: #eaf3ff;
}

.shared-calendar-card .grid-month .day-cell {
  background: #fff8fb;
}

.shared-calendar-card .grid-month .day-cell.is-outside {
  background: #fff3f8;
}

.shared-calendar-card .grid-month .day-cell.is-today {
  background: #ffeaf3;
}

.event-chip time {
  display: block;
  font-weight: 700;
  margin-right: 0;
  margin-bottom: 2px;
  font-size: 11px;
}

.event-chip-title {
  display: block;
}

.all-day-event-chip {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.all-day-event-chip-continuation {
  min-height: 30px;
}

.leave-event-chip {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.leave-event-chip-continuation {
  min-height: 30px;
}

.quota-period-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-period-fields input[type="date"] {
  flex: 1 1 0;
  min-width: 0;
}

.leave-balance-text {
  margin-left: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}

.table td.quota-remaining-days {
  text-align: center;
  color: #dc2626;
  font-weight: 700;
  vertical-align: middle;
}

.day-more-indicator {
  position: absolute;
  right: 8px;
  bottom: 6px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.mini-calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
}

.mini-calendar h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.mini-calendar table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.mini-calendar td,
.mini-calendar th {
  padding: 5px 3px;
  font-size: 12px;
}

.mini-calendar .today {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  color: #fff;
  background: #111827;
}

.agenda-list {
  display: grid;
  gap: 10px;
}

.agenda-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.agenda-item h4 {
  margin: 0;
  font-size: 14px;
}

.agenda-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-item-title {
  color: inherit;
}

.memo-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.memo-indicator-icon {
  width: 1em;
  height: 1em;
}

.agenda-item p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.todo-completed-month-block + .todo-completed-month-block {
  margin-top: 14px;
}

.todo-completed-month-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #334155;
}

.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgb(15 23 42 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgb(2 6 23 / 0.22);
  padding: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.modal-close-btn {
  padding-inline: 12px;
}

.modal-event-info p {
  margin: 0 0 8px;
}

.note-item {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.note-input-card textarea {
  min-height: 88px;
}

.saved-notes-card .note-item:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.note-edit-form {
  margin-top: 8px;
}

.note-edit-actions {
  margin-top: 12px;
}

.note-delete-form {
  margin: 0;
}

.auth-page {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 620px 420px;
  gap: 34px;
  justify-content: center;
  align-items: center;
}

.auth-left {
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  order: 2;
}

.auth-brand {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.auth-brand-name {
  margin: 8px 0 22px;
  font-weight: 700;
}

.auth-title {
  margin: 0;
  font-size: 42px;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-form {
  margin-top: 16px;
}

.auth-submit {
  width: 100%;
}

.auth-helper {
  margin-top: 14px;
  color: var(--muted);
}

.auth-helper a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
}

.auth-right {
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(120% 100% at 80% 10%, rgba(71, 85, 105, 0.34), transparent 55%),
    radial-gradient(120% 100% at 20% 90%, rgba(30, 64, 175, 0.24), transparent 58%),
    linear-gradient(145deg, #090b10 0%, #101320 45%, #040509 100%);
  min-height: 420px;
  height: 420px;
  position: relative;
  overflow: hidden;
  order: 1;
}

.auth-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/auth-calendar-illustration.svg");
  background-repeat: no-repeat;
  background-position: center 65%;
  background-size: 58% auto;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-right::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.15);
  pointer-events: none;
}

.auth-visual {
  color: #f8fafc;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-visual-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  margin-top: 26px;
}

.auth-visual-tag {
  margin: 20px 0 0;
  color: #cbd5e1;
}

.auth-visual h2 {
  margin: 8px 0;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.auth-visual p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.auth-visual-card {
  margin-top: 34px;
  background: rgba(51, 65, 85, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  padding: 20px;
  max-width: 390px;
}

.auth-visual-card h3 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 0 18px 36px rgb(2 6 23 / 0.2);
  }

  .dashboard-shell.sidebar-mobile-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgb(15 23 42 / 0.35);
  }

  .dashboard-shell.sidebar-mobile-open .sidebar-backdrop {
    display: block;
  }

  .dashboard-main {
    height: 100vh;
    overflow-y: auto;
  }

  .dashboard-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .dashboard-shell.sidebar-collapsed .sidebar {
    padding: 22px 16px;
  }

  .dashboard-shell.sidebar-collapsed .sidebar-caption,
  .dashboard-shell.sidebar-collapsed .sidebar-brand-text,
  .dashboard-shell.sidebar-collapsed .user-sidebar-footer-row .muted {
    display: block;
  }

  .dashboard-shell.sidebar-collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 11px 12px;
    gap: 8px;
  }

  .dashboard-shell.sidebar-collapsed .sidebar-link-label {
    display: inline;
  }

  .dashboard-shell.sidebar-collapsed .sidebar-footer {
    display: block;
  }

  .mobile-sidebar-open-btn {
    display: inline-flex;
  }

  .sidebar-toggle-btn {
    display: none;
  }

  .topbar {
    padding: 12px;
  }

  .topbar-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 980px) {
  .calendar-layout,
  .split-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .notification-top-row {
    grid-template-columns: 1fr;
  }

  .notification-offset-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .notification-offset-enabled {
    margin-top: 4px;
  }

  .calendar-grid-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .calendar-weekdays,
  .grid-month {
    min-width: 700px;
  }

  .day-cell {
    min-height: 104px;
    padding: 6px 6px 22px;
  }

  .container {
    padding: 0 12px 24px;
    overflow-x: clip;
  }

  .card,
  .form-grid,
  .field {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .topbar {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .topbar-left {
    width: 100%;
  }

  .topbar-actions {
    align-items: flex-start;
    width: 100%;
  }

  .topbar-search-form {
    width: 100%;
    max-width: none;
  }

  .topbar-search {
    max-width: none;
  }

  .auth-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-left,
  .auth-right {
    order: initial;
  }

  .auth-right {
    min-height: 420px;
  }
}
