:root {
  color-scheme: light;
  --self-bg: #f7f9fc;
  --self-card: #ffffff;
  --self-soft: #f3f7fb;
  --self-text: #111827;
  --self-muted: #64748b;
  --self-border: #dbe7f0;
  --self-accent: #1476d4;
  --self-green: #059669;
  --self-warn: #b45309;
  --self-red: #dc2626;
  --self-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --self-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes selfLift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.14), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(16, 185, 129, 0.12), transparent 26%),
    var(--self-bg);
  color: var(--self-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.self-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.self-hero,
.self-card,
.self-status {
  border: 1px solid var(--self-border);
  background: var(--self-card);
  box-shadow: var(--self-shadow);
}

.self-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.86)),
    var(--self-card);
  animation: selfLift 0.22s var(--self-ease);
  position: relative;
  overflow: hidden;
}

.self-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0ea5e9, #2563eb, #10b981);
}

.self-logo img {
  width: 138px;
  max-width: 34vw;
  display: block;
}

.self-hero span,
.self-card-head span,
.self-form span {
  color: var(--self-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.self-hero h1,
.self-card h2 {
  margin: 4px 0;
  color: var(--self-text);
  letter-spacing: 0;
}

.self-card p {
  margin: 0;
  color: var(--self-muted);
  line-height: 1.55;
}

.self-link,
.self-primary,
.self-secondary,
.self-segmented button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--self-border);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.self-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--self-accent);
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff, #f1f8ff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s var(--self-ease), box-shadow 0.16s var(--self-ease), border-color 0.16s var(--self-ease);
}

.self-link:hover,
.self-secondary:hover,
.self-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 16px 28px rgba(14, 165, 233, 0.12);
}

.self-status {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--self-muted);
  font-weight: 800;
}

.self-status[data-tone="danger"] {
  color: var(--self-red);
  background: rgba(248, 113, 113, 0.12);
}

.self-status[data-tone="ok"] {
  color: var(--self-green);
  background: rgba(16, 185, 129, 0.12);
}

.self-status[data-tone="warn"] {
  color: var(--self-warn);
  background: rgba(245, 158, 11, 0.12);
}

.self-warning {
  position: relative;
  margin: 16px 0;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.92)),
    #fff7ed;
  color: #7c2d12;
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.11);
  animation: selfLift 0.24s var(--self-ease);
}

.self-warning::before {
  content: "!";
  position: absolute;
  top: 18px;
  left: 16px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 950;
  line-height: 1;
}

.self-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 950;
}

.self-warning p {
  margin: 0;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.self-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.9)),
    var(--self-card);
  animation: selfLift 0.24s var(--self-ease);
}

.self-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.self-card-head strong {
  color: var(--self-accent);
  font-size: 13px;
}

.schedule-period-picker {
  display: grid;
  gap: 4px;
  min-width: 172px;
}

.schedule-period-picker > span {
  color: var(--self-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.self-form label {
  display: grid;
  gap: 7px;
}

.self-form .wide,
.self-form-note,
.self-error,
.self-primary {
  grid-column: 1 / -1;
}

.self-form-note {
  min-height: 40px;
  border: 1px solid rgba(20, 118, 212, 0.18);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.78);
  color: #1d4ed8;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.self-form input,
.self-form select,
.self-form textarea {
  width: 100%;
  border: 1px solid var(--self-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f5faff);
  color: var(--self-text);
  font: inherit;
  min-height: 42px;
  padding: 0 12px;
}

.self-form input:focus,
.self-form select:focus,
.self-form textarea:focus {
  outline: none;
  border-color: rgba(20, 118, 212, 0.72);
  box-shadow: 0 0 0 4px rgba(20, 118, 212, 0.12);
}

.self-form textarea {
  padding: 12px;
  resize: both;
  overflow: auto;
  min-width: min(260px, 100%);
  max-width: min(96vw, 1200px);
}

.self-primary {
  background: linear-gradient(135deg, #1788f2, #0a63c7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(20, 118, 212, 0.22);
  transition: transform 0.16s var(--self-ease), box-shadow 0.16s var(--self-ease), filter 0.16s var(--self-ease);
}

.self-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(20, 118, 212, 0.28);
  filter: saturate(1.08);
}

.self-primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: saturate(0.82);
  box-shadow: 0 10px 22px rgba(20, 118, 212, 0.14);
}

.self-secondary {
  padding: 0 14px;
  background: var(--self-soft);
  color: var(--self-accent);
}

.self-error {
  color: var(--self-red);
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}

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

.self-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.35fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--self-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s var(--self-ease), box-shadow 0.16s var(--self-ease), border-color 0.16s var(--self-ease);
}

.self-row:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 118, 212, 0.28);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.self-row strong,
.self-row small {
  display: block;
}

.self-row small {
  margin-top: 4px;
  color: var(--self-muted);
}

.self-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: var(--self-muted);
  font-size: 11px;
  font-weight: 900;
}

.self-badge.ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--self-green);
}

.self-badge.warn {
  background: rgba(245, 158, 11, 0.14);
  color: var(--self-warn);
}

.self-badge.danger {
  background: rgba(248, 113, 113, 0.14);
  color: var(--self-red);
}

.self-row button {
  min-height: 34px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  color: var(--self-red);
  font-weight: 900;
  cursor: pointer;
}

.self-segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--self-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
}

.self-segmented button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--self-muted);
}

.self-segmented button.active {
  background: #ffffff;
  color: var(--self-accent);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.schedule-list .self-row {
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.4fr) auto;
  min-height: 86px;
}

body.schedule-view-page {
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.74), rgba(247, 249, 252, 0.96) 34%),
    var(--self-bg);
}

body.schedule-view-page .self-shell {
  width: min(1760px, calc(100% - 32px));
}

.schedule-app {
  padding: 16px;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.schedule-title-block {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.schedule-title-block span,
.schedule-side span {
  color: var(--self-accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-title-block h2 {
  margin: 0;
  font-size: clamp(26px, 2vw, 42px);
  line-height: 1.02;
}

.schedule-title-block small,
.schedule-side small {
  color: var(--self-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.schedule-actions,
.schedule-control-row,
.schedule-scope-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-actions {
  justify-content: flex-end;
}

.schedule-image-action {
  display: none;
}

.self-primary.mini,
.schedule-actions .self-secondary {
  grid-column: auto;
  min-height: 40px;
  padding: 0 14px;
}

.schedule-control-row {
  justify-content: space-between;
  border: 1px solid var(--self-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f3f9ff);
  padding: 10px;
  margin-bottom: 14px;
}

.self-segmented button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.schedule-week-select {
  min-height: 42px;
  border: 1px solid var(--self-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--self-text);
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.schedule-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.schedule-board {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.self-week-section {
  border: 1px solid var(--self-border);
  border-radius: 12px;
  background: var(--self-card);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  overflow: auto;
  animation: selfLift 0.18s var(--self-ease);
}

.self-week-title {
  position: sticky;
  left: 0;
  z-index: 6;
  border-bottom: 1px solid var(--self-border);
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  color: var(--self-muted);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.self-week-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(152px, 1fr));
  grid-template-rows: 48px;
  grid-auto-rows: minmax(74px, auto);
  min-width: 1170px;
  border-top: 2px solid #9aa9bb;
  border-left: 2px solid #9aa9bb;
}

.self-week-corner,
.self-week-day,
.self-week-time,
.self-slot-cell {
  min-height: 74px;
  border-right: 1px solid #9aa9bb;
  border-bottom: 1px solid #9aa9bb;
  padding: 7px;
}

.self-week-corner,
.self-week-day,
.self-week-time {
  background: #f4f8fc;
  color: var(--self-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.self-week-corner,
.self-week-time {
  position: sticky;
  left: 0;
  z-index: 4;
  box-shadow: 1px 0 0 #9aa9bb;
}

.self-week-corner {
  top: 0;
  z-index: 7;
  min-height: 48px;
}

.self-week-day {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 48px;
  display: grid;
  align-content: start;
  gap: 4px;
  background: linear-gradient(135deg, #fbffd1, #fffdf0);
  color: #0f172a;
}

.self-week-day strong {
  font-size: 12px;
  line-height: 1.1;
}

.self-week-day small {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 950;
  text-transform: none;
  white-space: normal;
}

.self-week-day.holiday {
  box-shadow: inset 0 -3px 0 rgba(220, 38, 38, 0.56);
}

.self-week-day.blank,
.self-slot-cell.blank {
  background: repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.08) 8px, rgba(148, 163, 184, 0.04) 8px, rgba(148, 163, 184, 0.04) 16px);
}

.self-week-time {
  display: flex;
  align-items: center;
  color: #0f172a;
  font-size: 11px;
}

.self-week-time.shift-07-16,
.self-slot-cell.shift-07-16,
.schedule-legend i.shift-07-16 {
  background: linear-gradient(135deg, #c99cff, #dfbdff);
}

.self-week-time.shift-08-17,
.self-slot-cell.shift-08-17,
.schedule-legend i.shift-08-17 {
  background: linear-gradient(135deg, #e6c9ff, #f3e4ff);
}

.self-week-time.shift-09-18,
.self-slot-cell.shift-09-18,
.schedule-legend i.shift-09-18 {
  background: linear-gradient(135deg, #ffd19c, #ffe1b7);
}

.self-week-time.shift-12-21,
.self-slot-cell.shift-12-21,
.schedule-legend i.shift-12-21 {
  background: linear-gradient(135deg, #00ed2d, #82ff70);
}

.self-week-time.shift-15-24,
.self-slot-cell.shift-15-24,
.schedule-legend i.shift-15-24 {
  background: linear-gradient(135deg, #fff500, #fff982);
}

.self-week-time.shift-21-09,
.self-slot-cell.shift-21-09,
.schedule-legend i.shift-21-09 {
  background: linear-gradient(135deg, #d99a9a, #efb6b6);
}

.self-week-time.off,
.self-slot-cell.off,
.self-week-time.manual,
.self-slot-cell.manual {
  background: #eef2f7;
}

.self-week-time.leave,
.self-slot-cell.leave {
  background: #c7f6d1;
}

.self-week-time.report,
.self-slot-cell.report {
  background: #ffd5d5;
}

.self-slot-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  color: #0f172a;
}

.self-cell-name {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #0f172a;
  padding: 3px 7px 3px 3px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.self-cell-name i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #1476d4;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.self-cell-name b {
  min-width: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.13;
  overflow-wrap: anywhere;
  white-space: normal;
}

.self-cell-name.highlighted {
  background: #fee2e2;
  color: #991b1b;
  box-shadow:
    inset 0 0 0 1px rgba(220, 38, 38, 0.46),
    0 1px 0 rgba(127, 29, 29, 0.12);
}

.self-cell-name.highlighted i {
  background: #ffffff;
  color: #b91c1c;
}

.schedule-side {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 14px;
}

.schedule-side section,
.schedule-empty {
  border: 1px solid var(--self-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.schedule-side section {
  display: grid;
  gap: 5px;
}

.schedule-side strong {
  color: var(--self-text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.schedule-overtime-total {
  color: var(--self-green);
}

.schedule-summary-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.schedule-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.schedule-summary-line span {
  min-width: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.schedule-summary-line b {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.schedule-summary-line small {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.schedule-summary-line.is-holiday {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 226, 226, 0.5);
}

.schedule-summary-line.is-leave {
  border-color: rgba(14, 116, 144, 0.2);
  background: rgba(207, 250, 254, 0.45);
}

.schedule-summary-line.is-extra,
.schedule-summary-line.is-overtime {
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(16, 185, 129, 0.08);
}

.schedule-summary-line.is-extra b,
.schedule-summary-line.is-overtime b {
  color: #047857;
}

.schedule-overtime-summary strong {
  color: var(--self-green);
}

.schedule-overtime-list {
  display: grid;
  gap: 7px;
  max-height: 188px;
  overflow: auto;
  padding-right: 2px;
}

.schedule-overtime-item {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
}

.schedule-overtime-item b {
  color: #047857;
  font-size: 12px;
  line-height: 1.25;
}

.schedule-legend {
  align-content: start;
}

.schedule-legend i {
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  color: #0f172a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 8px;
}

.schedule-empty {
  display: grid;
  gap: 6px;
  min-height: 140px;
  place-content: center;
  text-align: center;
}

.schedule-empty strong {
  color: var(--self-text);
  font-size: 18px;
  font-weight: 950;
}

.schedule-empty span {
  color: var(--self-muted);
  font-weight: 800;
}

@media print {
  body.schedule-view-page,
  body.schedule-view-page .self-shell {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.schedule-view-page .self-hero,
  body.schedule-view-page .self-status,
  body.schedule-view-page .schedule-control-row,
  body.schedule-view-page .schedule-actions {
    display: none !important;
  }

  .schedule-app {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .schedule-toolbar {
    margin: 0 0 8px !important;
  }

  .schedule-content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .schedule-side {
    display: none !important;
  }

  .self-week-section {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    overflow: visible !important;
    margin-bottom: 8px;
  }

  .self-week-grid {
    min-width: 0 !important;
    grid-template-columns: 74px repeat(7, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(44px, auto) !important;
  }

  .self-week-corner,
  .self-week-day,
  .self-week-time,
  .self-slot-cell {
    min-height: 42px !important;
    padding: 4px !important;
  }

  .self-cell-name {
    grid-template-columns: minmax(0, 1fr);
    min-height: 18px;
    padding: 2px 4px !important;
  }

  .self-cell-name i {
    display: none;
  }

  .self-cell-name b {
    font-size: 8px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 720px), (max-width: 950px) and (orientation: landscape) and (max-height: 520px) {
  .self-hero,
  .self-card-head,
  .self-row,
  .schedule-list .self-row {
    grid-template-columns: 1fr;
  }

  .self-card-head {
    display: grid;
  }

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

  .self-link {
    width: 100%;
  }

  body.schedule-view-page .self-shell {
    width: min(100% - 20px, 1760px);
  }

  .schedule-toolbar,
  .schedule-control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-actions,
  .schedule-scope-tools {
    justify-content: flex-start;
  }

  .schedule-actions .self-secondary,
  .schedule-actions .self-primary {
    flex: 1 1 140px;
  }

  .schedule-content-grid {
    grid-template-columns: 1fr;
  }

  .schedule-side {
    position: static;
  }

  .self-week-grid {
    min-width: 1080px;
  }
}

/* Mobil vardiya akışı: tabloyu başparmakla okunabilen günlük kartlara dönüştürür. */
.schedule-mobile-feed {
  display: none;
}

@media (max-width: 720px), (max-width: 950px) and (orientation: landscape) and (max-height: 520px) {
  html {
    min-height: 100%;
    background: var(--self-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.schedule-view-page {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      calc(18px + env(safe-area-inset-bottom))
      env(safe-area-inset-left);
    background: #f4f7fb;
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
  }

  body.schedule-view-page .self-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .self-hero {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 64px;
    padding: 10px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .self-hero::before {
    width: 3px;
  }

  .self-logo img {
    width: 82px;
    max-width: 24vw;
  }

  .self-hero > div {
    min-width: 0;
  }

  .self-hero > div > span {
    display: none;
  }

  .self-hero h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .self-link {
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 11px;
  }

  .self-status {
    margin: 9px 12px;
    padding: 11px 13px;
    border-radius: 13px;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.4;
  }

  .self-status:empty {
    display: none;
  }

  .schedule-app {
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .schedule-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 14px;
    width: 100%;
    margin-bottom: 12px;
  }

  .schedule-title-block {
    padding: 4px 2px 0;
  }

  .schedule-title-block h2 {
    font-size: clamp(27px, 8vw, 34px);
    letter-spacing: -0.04em;
  }

  .schedule-title-block small {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .schedule-actions button.schedule-image-action {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 15px;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(8, 121, 238, 0.2);
    touch-action: manipulation;
  }

  .schedule-actions button.schedule-image-action:disabled {
    cursor: wait;
    opacity: 0.72;
  }

  .schedule-period-picker {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .schedule-week-select,
  .schedule-actions .self-secondary,
  .schedule-actions .self-primary {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 9px;
    border-radius: 13px;
    font-size: 10px;
    touch-action: manipulation;
  }

  .schedule-control-row {
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
  }

  .schedule-control-row > .self-segmented,
  .schedule-scope-tools,
  .schedule-scope-tools > .self-segmented {
    width: 100%;
  }

  .schedule-scope-tools {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 8px;
  }

  .schedule-scope-tools > .self-segmented:only-child {
    grid-column: 1 / -1;
  }

  .self-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
  }

  .self-segmented button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
    touch-action: manipulation;
  }

  .schedule-content-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .schedule-board {
    order: 1;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .schedule-board > .self-week-section {
    display: none;
  }

  .schedule-mobile-feed {
    display: grid;
    gap: 14px;
    width: 100%;
  }

  .schedule-mobile-feed-month {
    gap: 12px;
  }

  .schedule-mobile-feed > *,
  .schedule-mobile-feed-month > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .schedule-mobile-month-panel,
  .schedule-mobile-focus {
    border: 1px solid #dbe7f0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  }

  .schedule-mobile-month-panel,
  .schedule-mobile-focus {
    padding: 10px;
  }

  .schedule-mobile-month-panel .schedule-mobile-month-hero,
  .schedule-mobile-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .schedule-mobile-month-panel .schedule-mobile-month-hero span,
  .schedule-mobile-focus-head span {
    color: #0879ee;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .schedule-mobile-month-panel .schedule-mobile-month-hero strong,
  .schedule-mobile-focus-head strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.08;
  }

  .schedule-mobile-month-panel .schedule-mobile-month-hero small,
  .schedule-mobile-focus-head small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
  }

  .schedule-mobile-month-meta {
    flex: 0 0 auto;
    display: grid;
    gap: 3px;
    min-width: 86px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #f8fbff;
    text-align: right;
  }

  .schedule-mobile-month-meta b {
    color: #0f172a;
    font-size: 11px;
    font-weight: 950;
  }

  .schedule-mobile-month-meta small {
    margin: 0;
    font-size: 8.5px;
  }

  .schedule-mobile-month-panel .schedule-mobile-month-hero {
    margin-bottom: 2px;
  }

  .schedule-month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    padding: 0 1px;
  }

  .schedule-month-weekdays span {
    color: #94a3b8;
    min-width: 0;
    overflow: hidden;
    font-size: 6.5px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
  }

  .schedule-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .schedule-month-blank {
    min-height: 112px;
    border: 1px dashed #dbe7f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  .schedule-month-open-week {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e3ec;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    touch-action: manipulation;
  }

  .schedule-month-strip-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(144px, 40vw);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 -4px;
    padding: 0 4px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .schedule-month-strip-track::-webkit-scrollbar {
    display: none;
  }

  .schedule-month-cell {
    width: 100%;
    min-width: 0;
    min-height: 112px;
    padding: 7px 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    display: grid;
    align-content: start;
    gap: 4px;
    text-align: left;
    font: inherit;
    color: #0f172a;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055);
    touch-action: manipulation;
    overflow: hidden;
  }

  .schedule-month-cell.active {
    border-color: rgba(14, 165, 233, 0.92);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.14), 0 14px 26px rgba(14, 165, 233, 0.12);
    transform: translateY(-1px);
  }

  .schedule-month-cell.today {
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
  }

  .schedule-month-cell.empty {
    background: #f8fafc;
  }

  .schedule-month-cell-top {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 2px;
    align-items: start;
    justify-items: start;
  }

  .schedule-month-cell-top strong {
    display: block;
    max-width: 100%;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.055em;
  }

  .schedule-month-cell-top small {
    order: -1;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 6.5px;
    font-weight: 950;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.035em;
    text-overflow: clip;
    white-space: nowrap;
  }

  .schedule-month-cell-primary {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 7.5px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-month-cell-secondary {
    min-width: 0;
    max-width: 100%;
    color: #64748b;
    min-height: 15px;
    font-size: 6.5px;
    font-weight: 850;
    line-height: 1.2;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .schedule-month-cell-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    margin-top: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .schedule-month-cell-badges i,
  .schedule-month-cell-badges u {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    padding: 2px 4px;
    border-radius: 999px;
    font-size: 6.5px;
    font-style: normal;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
  }

  .schedule-month-cell-badges i {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
  }

  .schedule-month-cell-badges i.shift-07-16 { background: #f5f3ff; color: #6d28d9; border-color: rgba(139, 92, 246, 0.22); }
  .schedule-month-cell-badges i.shift-08-17 { background: #faf5ff; color: #7e22ce; border-color: rgba(168, 85, 247, 0.22); }
  .schedule-month-cell-badges i.shift-09-18 { background: #fffbeb; color: #b45309; border-color: rgba(245, 158, 11, 0.24); }
  .schedule-month-cell-badges i.shift-12-21 { background: #ecfdf5; color: #047857; border-color: rgba(16, 185, 129, 0.2); }
  .schedule-month-cell-badges i.shift-15-24 { background: #fefce8; color: #a16207; border-color: rgba(234, 179, 8, 0.2); }
  .schedule-month-cell-badges i.shift-21-09 { background: #fff1f2; color: #be123c; border-color: rgba(190, 24, 93, 0.18); }
  .schedule-month-cell-badges i.shift-off,
  .schedule-month-cell-badges i.shift-manual { background: #f1f5f9; color: #475569; }
  .schedule-month-cell-badges i.shift-annual-leave { background: #f0fdf4; color: #15803d; }
  .schedule-month-cell-badges i.shift-report { background: #fef2f2; color: #b91c1c; }

  .schedule-month-cell-badges i b {
    font-size: 6.5px;
    font-weight: 950;
  }

  .schedule-month-cell-badges u {
    color: #64748b;
    background: #f1f5f9;
  }

  .schedule-mobile-focus {
    scroll-margin-top: 76px;
  }

  .schedule-mobile-focus-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .schedule-mobile-focus-nav button,
  .schedule-mobile-focus-toolbar button,
  .schedule-month-open-week {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8e3ec;
    border-radius: 11px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    touch-action: manipulation;
  }

  .schedule-mobile-focus-nav button.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
  }

  .schedule-mobile-focus-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
  }

  .schedule-mobile-focus-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
  }

  .schedule-mobile-focus-toolbar button:disabled {
    opacity: 0.45;
  }

  .schedule-mobile-focus-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 13px;
    background: #f8fbff;
  }

  .schedule-mobile-focus-toolbar span {
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .schedule-mobile-focus-holiday {
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.35;
  }

  .schedule-mobile-focus-body {
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }

  .schedule-mobile-focus-shift {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left-width: 4px;
    border-radius: 16px;
    background: #ffffff;
  }

  .schedule-mobile-focus-shift.shift-07-16 { border-left-color: #8b5cf6; background: #f7f4ff; }
  .schedule-mobile-focus-shift.shift-08-17 { border-left-color: #a855f7; background: #fbf7ff; }
  .schedule-mobile-focus-shift.shift-09-18 { border-left-color: #f59e0b; background: #fffcf3; }
  .schedule-mobile-focus-shift.shift-12-21 { border-left-color: #10b981; background: #f2fdf7; }
  .schedule-mobile-focus-shift.shift-15-24 { border-left-color: #eab308; background: #fffef3; }
  .schedule-mobile-focus-shift.shift-21-09 { border-left-color: #e11d48; background: #fff5f7; }
  .schedule-mobile-focus-shift.shift-off,
  .schedule-mobile-focus-shift.shift-manual { border-left-color: #64748b; background: #f7f9fc; }
  .schedule-mobile-focus-shift.shift-annual-leave { border-left-color: #16a34a; background: #f4fff7; }
  .schedule-mobile-focus-shift.shift-report { border-left-color: #dc2626; background: #fff5f5; }

  .schedule-mobile-focus-shift > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .schedule-mobile-focus-shift > header strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
  }

  .schedule-mobile-focus-shift > header small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
  }

  .schedule-mobile-focus-shift > header span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
  }

  .schedule-mobile-focus-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .schedule-mobile-focus-agent {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    max-width: 100%;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 231, 240, 0.9);
  }

  .schedule-mobile-focus-agent.own {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.24);
  }

  .schedule-mobile-focus-agent i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .schedule-mobile-focus-agent.own i {
    background: #0879ee;
  }

  .schedule-mobile-focus-agent b {
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-mobile-week {
    display: grid;
    gap: 8px;
  }

  .schedule-mobile-week > header {
    position: sticky;
    z-index: 15;
    top: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.94);
    color: #075985;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .schedule-mobile-week > header span {
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .schedule-mobile-week > header small {
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
  }

  .schedule-mobile-days {
    display: grid;
    gap: 8px;
  }

  .schedule-mobile-day {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dde7ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .schedule-mobile-day.today {
    border-color: rgba(14, 165, 233, 0.72);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 12px 26px rgba(14, 165, 233, 0.1);
  }

  .schedule-mobile-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5px;
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fbff, #f1f5f9);
    text-align: center;
  }

  .schedule-mobile-date strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
  }

  .schedule-mobile-date span {
    max-width: 52px;
    margin-top: 4px;
    color: #64748b;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
  }

  .schedule-mobile-date small {
    margin-top: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .schedule-mobile-day-content {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 8px;
  }

  .schedule-mobile-holiday {
    padding: 7px 9px;
    border-radius: 9px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.3;
  }

  .schedule-mobile-shift {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left-width: 4px;
    border-radius: 11px;
    background: #f8fafc;
  }

  .schedule-mobile-shift.shift-07-16 { border-left-color: #8b5cf6; background: #f5f3ff; }
  .schedule-mobile-shift.shift-08-17 { border-left-color: #a855f7; background: #faf5ff; }
  .schedule-mobile-shift.shift-09-18 { border-left-color: #f59e0b; background: #fffbeb; }
  .schedule-mobile-shift.shift-12-21 { border-left-color: #10b981; background: #ecfdf5; }
  .schedule-mobile-shift.shift-15-24 { border-left-color: #eab308; background: #fefce8; }
  .schedule-mobile-shift.shift-21-09 { border-left-color: #be123c; background: #fff1f2; }
  .schedule-mobile-shift.off,
  .schedule-mobile-shift.manual { border-left-color: #64748b; background: #f1f5f9; }
  .schedule-mobile-shift.leave { border-left-color: #16a34a; background: #f0fdf4; }
  .schedule-mobile-shift.report { border-left-color: #dc2626; background: #fef2f2; }

  .schedule-mobile-shift.own {
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.28);
  }

  .schedule-mobile-shift-time {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .schedule-mobile-shift-time strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
  }

  .schedule-mobile-shift-time small {
    color: #64748b;
    font-size: 7.5px;
    font-weight: 850;
  }

  .schedule-mobile-agents {
    display: grid;
    gap: 6px;
  }

  .schedule-mobile-agent {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 1px;
    border-radius: 9px;
  }

  .schedule-mobile-agent.own {
    margin: 0 -3px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);
  }

  .schedule-mobile-agent i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ffffff;
    color: #0879ee;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
  }

  .schedule-mobile-agent span,
  .schedule-mobile-agent strong,
  .schedule-mobile-agent small {
    display: block;
    min-width: 0;
  }

  .schedule-mobile-agent strong {
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-mobile-agent small {
    margin-top: 2px;
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-mobile-empty {
    display: grid;
    gap: 3px;
    min-height: 58px;
    align-content: center;
  }

  .schedule-mobile-empty strong {
    color: #475569;
    font-size: 11px;
    font-weight: 900;
  }

  .schedule-mobile-empty small {
    color: #94a3b8;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 1.35;
  }

  .schedule-mobile-empty.focus {
    min-height: 92px;
    place-content: center;
    border: 1px dashed #d8e3ec;
    border-radius: 14px;
    background: #fbfdff;
  }

  .schedule-side {
    order: 2;
    position: static;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 74vw);
    gap: 9px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .schedule-side::-webkit-scrollbar {
    display: none;
  }

  .schedule-side section {
    min-height: 102px;
    padding: 13px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .schedule-overtime-list {
    max-height: 132px;
  }

  .schedule-side section.schedule-legend {
    display: none;
  }

  .schedule-side strong {
    font-size: 20px;
  }

  .schedule-empty {
    border-radius: 17px;
  }
}

@media (max-width: 370px) {
  .schedule-mobile-month-panel,
  .schedule-mobile-focus {
    padding: 8px;
  }

  .schedule-month-grid,
  .schedule-month-weekdays {
    gap: 3px;
  }

  .schedule-month-cell-top strong {
    font-size: 18px;
  }

  .schedule-month-cell-top small,
  .schedule-month-weekdays span {
    font-size: 6px;
  }

  .schedule-month-cell-primary {
    font-size: 7px;
  }

  .schedule-month-cell-secondary,
  .schedule-month-cell-badges i,
  .schedule-month-cell-badges u,
  .schedule-month-cell-badges i b {
    font-size: 6px;
  }

  .schedule-mobile-focus-head {
    flex-direction: column;
  }

  .schedule-mobile-focus-nav,
  .schedule-mobile-focus-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-actions {
    grid-template-columns: 1fr;
  }

  .schedule-actions .schedule-period-picker {
    grid-column: auto;
  }

  .schedule-mobile-day {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

@media (hover: none) and (pointer: coarse) {
  .self-link:active,
  .self-primary:active,
  .self-secondary:active,
  .self-segmented button:active {
    transform: scale(0.97);
    filter: brightness(0.97);
  }
}
