*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-viory);
  font-weight: var(--weight-regular);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--viory-electric-blue);
  outline-offset: 2px;
}

/* Login screen (Viory Scheme 1 brand panel + Scheme 3 form panel) */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.login-brand {
  position: relative;
  overflow: hidden;
  background: var(--viory-deep-blue);
  color: var(--viory-white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-watermark {
  position: absolute;
  right: -18%;
  bottom: -10%;
  width: 140%;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.login-brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--viory-electric-blue);
}

.login-brand .kicker {
  color: rgba(255, 255, 255, 0.78);
}

.login-brand h1 {
  margin: 14px 0 12px;
  font-size: 40px;
  font-weight: var(--weight-regular);
  line-height: 1.12;
  letter-spacing: var(--tracking-headline);
}

.login-brand p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.6;
}

.login-brand-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.login-panel {
  background: var(--surface-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.login-box h2 {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-headline);
  line-height: 1.15;
}

.login-sub {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.sso-divider::before, .sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* App Shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--surface-page);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--grey-050);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.sidebar-brand img.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sidebar-brand .brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-brand .brand-wordmark {
  height: 15px;
  width: auto;
  display: block;
}

.sidebar-brand small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: var(--weight-regular);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-control);
}

.nav-item:hover {
  background: var(--grey-100);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--viory-white);
  color: var(--viory-electric-blue);
  border-color: var(--border-subtle);
  font-weight: var(--weight-bold);
}

.sidebar-user {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: 12px;
}

.sidebar-user-name {
  font-weight: var(--weight-bold);
  font-size: 13px;
  color: var(--text-primary);
}

.sidebar-user-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 10px;
}

.main-area {
  min-width: 0;
  padding: 28px 36px 48px;
  max-width: 1440px;
}

/* Page header */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-headline);
  line-height: 1.15;
}

.page-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* Buttons (Viory spec: 4px radius, zero bounce) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--viory-white);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: var(--weight-regular);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-control);
}

.btn:hover:not(:disabled) {
  background: var(--grey-100);
}

.btn:active:not(:disabled) {
  background: var(--grey-200);
}

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

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-primary {
  background: var(--viory-electric-blue);
  border-color: var(--viory-electric-blue);
  color: var(--viory-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-electric-hover);
  border-color: var(--blue-electric-hover);
}

.btn-primary:active:not(:disabled) {
  background: var(--blue-electric-press);
  border-color: var(--blue-electric-press);
}

.btn-brand {
  background: var(--viory-deep-blue);
  border-color: var(--viory-deep-blue);
  color: var(--viory-white);
}

.btn-brand:hover:not(:disabled) {
  background: var(--blue-deep-hover);
  border-color: var(--blue-deep-hover);
}

.btn-danger {
  background: var(--viory-red-stream);
  border-color: var(--viory-red-stream);
  color: var(--viory-white);
}

.btn-danger:hover:not(:disabled) {
  background: var(--red-stream-hover);
  border-color: var(--red-stream-hover);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--grey-100);
}

.link-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--viory-electric-blue);
  font-size: 13px;
  cursor: pointer;
  text-underline-offset: 3px;
}
.link-btn:hover {
  text-decoration: underline;
}

.link-btn.danger {
  color: var(--viory-red-stream);
}

/* Underline Tabs */
.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tabs-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tab-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 12px;
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-control);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--viory-electric-blue);
}

/* Cards (Viory spec: 1px #e4e4e4 hairline, 8px radius, NO shadow) */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card + .card {
  margin-top: 16px;
}

/* Stat cards (Light weight 300 for statistical figures!) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition-control);
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  border-color: var(--border-strong);
}

.stat-card.warn {
  border-color: var(--viory-red-stream);
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: var(--weight-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-unit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Badges (2px radius, bold 11px uppercase) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-planned { background: rgba(3, 73, 255, 0.1); color: #0349ff; }
.badge-manager { background: #fff5d6; color: #8a5a00; }
.badge-hr { background: rgba(23, 13, 156, 0.12); color: #170d9c; }
.badge-approved { background: #e8f7ee; color: #166534; }
.badge-rejected, .badge-cancelled, .badge-expired, .badge-failed { background: rgba(238, 38, 62, 0.12); color: #ee263e; }
.badge-neutral { background: var(--grey-100); color: var(--text-secondary); }
.badge-accent { background: var(--viory-electric-blue); color: #fff; }
.badge-brand { background: var(--viory-deep-blue); color: #fff; }

/* Form fields */
.form-row {
  margin-bottom: 14px;
}

.form-row label, .field-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--viory-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-control);
}

.textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--viory-electric-blue);
  box-shadow: var(--shadow-focus);
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters-bar .input, .filters-bar .select {
  width: auto;
  min-width: 148px;
  height: 34px;
  font-size: 13px;
}

.filters-bar .spacer {
  flex: 1;
}

/* Segmented Switch */
.seg-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--viory-white);
}

.seg-switch button {
  height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.seg-switch button:last-child {
  border-right: 0;
}

.seg-switch button.on {
  background: var(--viory-electric-blue);
  color: var(--viory-white);
  font-weight: var(--weight-bold);
}

/* Calendar Grid */
.calendar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-title {
  font-size: 20px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-headline);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
}
.dot.planned { background: #b9d7ff; border: 1px solid #0349ff; }
.dot.manager { background: #ffe59a; border: 1px solid #d99b00; }
.dot.hr { background: #d9c2ff; border: 1px solid #170d9c; }
.dot.approved { background: #bfe8c9; border: 1px solid #16a34a; }
.dot.rejected { background: #ffc3c3; border: 1px solid #ee263e; }
.dot.holiday { background: #fff; border: 2px solid #16a34a; }
.dot.tentative { background: #fff; border: 2px dashed #16a34a; }
.dot.conflict { background: #fff; border: 2px solid #ee263e; }
.dot.weekend { background: var(--grey-100); border: 1px solid var(--border-subtle); }

.calendar-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cal-grid {
  display: grid;
  min-width: 820px;
  background: var(--viory-white);
}

.cal-header-emp {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--grey-050);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.cal-days-head {
  display: grid;
  background: var(--grey-050);
  border-bottom: 1px solid var(--border-subtle);
}

.cal-day-head {
  padding: 6px 2px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.cal-day-head:last-child { border-right: 0; }
.cal-day-head small {
  display: block;
  font-size: 10px;
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}
.cal-day-head.weekend {
  background: var(--grey-100);
}
.cal-day-head.today {
  background: var(--blue-electric-08);
  color: var(--viory-electric-blue);
}

.cal-emp-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--viory-white);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cal-emp-cell b {
  font-size: 13px;
  font-weight: var(--weight-bold);
}

.cal-emp-cell small {
  font-size: 11px;
  color: var(--text-muted);
}

.cal-timeline {
  display: grid;
  border-bottom: 1px solid var(--border-subtle);
}

.cal-cell {
  min-height: 46px;
  padding: 4px 2px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cal-cell:last-child { border-right: 0; }
.cal-cell.weekend { background: var(--grey-050); }
.cal-cell.today { background: rgba(3, 73, 255, 0.04); }
.cal-cell.holiday-confirmed { box-shadow: inset 0 0 0 2px #16a34a; }
.cal-cell.holiday-tentative { box-shadow: inset 0 0 0 2px #16a34a; outline: 1px dashed #16a34a; outline-offset: -3px; }

.cal-fill {
  width: 100%;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}

.cal-fill.planned { background: #dceaff; color: #0349ff; border-color: #93beff; }
.cal-fill.manager { background: #fff1c2; color: #7c5200; border-color: #e6c15c; }
.cal-fill.hr { background: #e6ddff; color: #170d9c; border-color: #b7a4ff; }
.cal-fill.approved { background: #d6f5df; color: #166534; border-color: #86efac; }
.cal-fill.rejected { background: #ffe0e4; color: #ee263e; border-color: #fca5a5; }
.cal-fill.conflict { box-shadow: 0 0 0 2px var(--viory-red-stream); }

/* Year Grid */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.year-month-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--viory-white);
}

.year-month-title {
  font-size: 13px;
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.year-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.year-wd {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding-bottom: 2px;
}

.year-day {
  height: 26px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid transparent;
}
.year-day.weekend { background: var(--grey-050); color: var(--text-muted); }
.year-day.planned { background: #dceaff; color: #0349ff; font-weight: 700; cursor: pointer; }
.year-day.manager { background: #fff1c2; color: #7c5200; font-weight: 700; cursor: pointer; }
.year-day.hr { background: #e6ddff; color: #170d9c; font-weight: 700; cursor: pointer; }
.year-day.approved { background: #d6f5df; color: #166534; font-weight: 700; cursor: pointer; }
.year-day.rejected { background: #ffe0e4; color: #ee263e; font-weight: 700; cursor: pointer; }
.year-day.holiday-confirmed { border-color: #16a34a; }
.year-day.holiday-tentative { border: 1px dashed #16a34a; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--viory-white);
}

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

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--grey-050);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.data-table th.sortable {
  cursor: pointer;
}
.data-table th.sortable:hover {
  color: var(--viory-electric-blue);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.data-table tbody tr.clickable:hover {
  background: var(--grey-050);
}

/* Queue cards */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--viory-white);
  flex-wrap: wrap;
}

.queue-row:hover {
  border-color: var(--border-strong);
}

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

/* Org structure grid */
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.org-col {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--grey-050);
}

.org-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.org-col-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: var(--weight-bold);
}

.org-item {
  background: var(--viory-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Modals (floating, --shadow-lg, 12px radius) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--viory-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal-box.wide {
  max-width: 780px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-headline);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

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

.period-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 36px;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

/* Notification Drawer */
.notif-drawer {
  position: fixed;
  top: 70px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 75vh;
  overflow-y: auto;
  z-index: 950;
  background: var(--viory-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}

.notif-item {
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.notif-item.unread {
  background: var(--blue-electric-08);
  border-color: rgba(3, 73, 255, 0.28);
}

/* Toast (never blocks clicks underneath!) */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  background: var(--viory-black);
  color: var(--viory-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background: var(--viory-red-stream);
}

/* Tooltip */
.cal-tooltip {
  position: fixed;
  z-index: 1100;
  background: var(--viory-black);
  color: var(--viory-white);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  pointer-events: none;
  display: none;
}

.muted { color: var(--text-muted); }
.text-danger { color: var(--viory-red-stream); }
.text-accent { color: var(--viory-electric-blue); }

.hr-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.toggle-row:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .main-area { padding: 20px 16px; }
  .org-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
