:root {
  --sc-panel: #1a171c;
  --sc-panel-soft: #211d23;
  --sc-line: rgba(255, 255, 255, 0.12);
}

.shift-canvas-page {
  color: var(--white);
  background: var(--night);
}

.shift-canvas-page .site-header {
  position: absolute;
}

.shift-canvas-page .projects-pill {
  max-width: 140px;
}

.shift-canvas-page .status-pill {
  cursor: default;
}

.sc-intro {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.38fr);
  align-items: end;
  gap: clamp(50px, 8vw, 130px);
  padding: 170px max(24px, calc((100vw - var(--max-width)) / 2)) 90px;
  background:
    radial-gradient(circle at 76% 30%, rgba(217, 63, 68, 0.2), transparent 27%),
    linear-gradient(135deg, #0d0c10, #171419 58%, #100f13);
  overflow: hidden;
}

.sc-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.sc-intro-copy,
.sc-intro-note {
  position: relative;
  z-index: 1;
}

.sc-intro h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.sc-intro h1 span,
.sc-about h2 span {
  color: var(--gold);
}

.sc-intro-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sc-meta span,
.privacy-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-intro-note {
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sc-intro-note span {
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sc-intro-note p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.52);
}

.sc-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.65fr) minmax(500px, 1fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
  padding: clamp(70px, 9vw, 120px) max(24px, calc((100vw - var(--max-width)) / 2));
  background: #141217;
}

.sc-controls {
  position: sticky;
  top: 24px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--sc-line);
  border-radius: 26px;
  background: var(--sc-panel);
}

.sc-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.sc-panel-head .eyebrow {
  margin-bottom: 10px;
}

.sc-panel-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.privacy-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #89e89d;
}

.sc-fields {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 12px;
  margin-top: 30px;
}

.sc-fields label,
.time-fields label,
.theme-picker legend {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sc-fields label > span {
  display: block;
  margin-bottom: 8px;
}

.sc-fields select,
.time-fields input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  color: var(--white);
  background: var(--sc-panel-soft);
  font: inherit;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.theme-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.theme-option,
.text-button,
.shift-time-form button {
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.theme-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.theme-option.is-selected {
  border-color: rgba(217, 63, 68, 0.75);
  color: var(--white);
  background: rgba(217, 63, 68, 0.09);
}

.theme-swatch {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.theme-night { background: #111014; }
.theme-paper { background: #eee8de; }

.shift-editor {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sc-line);
}

.editor-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.editor-title span {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editor-title strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.text-button {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.text-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.shift-time-form {
  margin-top: 18px;
}

.shift-segment + .shift-segment {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sc-line);
}

.segment-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.segment-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.inline-button {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
}

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

.time-fields label > span {
  display: block;
  margin-bottom: 8px;
}

.editor-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.editor-actions > button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 11px;
  color: var(--white);
  font-weight: 700;
}

.editor-secondary,
.editor-apply {
  background: #343039 !important;
}

.editor-off {
  color: var(--night) !important;
  background: var(--gold) !important;
}

.editor-actions > button:hover,
.editor-actions > button:focus-visible {
  background: #45404a;
}

.editor-off:hover,
.editor-off:focus-visible {
  background: #f7d58f !important;
}

.shortcut-hint {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
}

.shortcut-hint kbd {
  padding: 2px 5px;
  border: 1px solid var(--sc-line);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.6);
  background: var(--sc-panel-soft);
  font: inherit;
}

.sc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 0.65fr;
  gap: 8px;
  margin-top: 26px;
}

.sc-actions .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 12px;
  border: 0;
  cursor: pointer;
}

.sc-secondary {
  color: var(--white);
  background: #302c34;
}

.control-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.76rem;
}

.sc-preview-shell {
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 5px 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.roster-canvas {
  --canvas-bg: #111014;
  --canvas-text: #fffdf8;
  --canvas-muted: rgba(255, 255, 255, 0.45);
  --canvas-line: rgba(255, 255, 255, 0.11);
  --canvas-cell: rgba(255, 255, 255, 0.025);
  position: relative;
  min-height: 820px;
  padding: clamp(25px, 4vw, 48px);
  border-radius: 30px;
  color: var(--canvas-text);
  background: var(--canvas-bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: color 220ms ease, background 220ms ease;
}

.roster-canvas.theme-paper {
  --canvas-bg: #eee8de;
  --canvas-text: #171419;
  --canvas-muted: rgba(23, 20, 25, 0.48);
  --canvas-line: rgba(23, 20, 25, 0.14);
  --canvas-cell: rgba(255, 255, 255, 0.3);
}

.canvas-orb {
  position: absolute;
  top: -160px;
  right: -130px;
  width: 390px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 60%, rgba(217, 63, 68, 0.28), transparent 62%);
}

.canvas-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  padding-bottom: 32px;
}

.canvas-header p {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.canvas-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.canvas-header h2 span {
  color: var(--gold);
}

.canvas-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.canvas-mark img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 16px rgba(217, 63, 68, 0.18));
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
  border-top: 1px solid var(--canvas-line);
  border-left: 1px solid var(--canvas-line);
}

.weekdays span {
  padding: 10px 4px;
  border-right: 1px solid var(--canvas-line);
  color: var(--canvas-muted);
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
}

.calendar-grid {
  border-top: 1px solid var(--canvas-line);
  border-left: 1px solid var(--canvas-line);
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 102px;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid var(--canvas-line);
  border-bottom: 1px solid var(--canvas-line);
  color: var(--canvas-text);
  background: var(--canvas-cell);
  text-align: left;
  cursor: pointer;
}

.calendar-day:hover,
.calendar-day:focus-visible,
.calendar-day.is-selected {
  outline: none;
  background: rgba(217, 63, 68, 0.12);
  box-shadow: inset 0 0 0 1px rgba(217, 63, 68, 0.65);
}

.calendar-day.is-empty {
  cursor: default;
  opacity: 0.34;
}

.day-number {
  display: block;
  color: var(--canvas-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.day-time {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  overflow: hidden;
  color: var(--canvas-text);
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
}

.day-segment {
  display: grid;
  gap: 1px;
}

.day-segment.is-split {
  padding-top: 5px;
  border-top: 1px solid var(--canvas-line);
  font-size: 0.82em;
}

.day-time i {
  color: var(--gold);
  font-style: normal;
}

.day-segment.is-split i {
  color: var(--red);
}

.day-off {
  align-self: center;
  color: var(--gold);
  font-size: 1.05em;
  letter-spacing: 0.06em;
}

.canvas-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  color: var(--canvas-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sc-about {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.65fr);
  gap: clamp(50px, 10vw, 160px);
  color: var(--ink);
  background: var(--paper);
}

.sc-about h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about-project-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-project-copy ul {
  margin: 38px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.about-project-copy li {
  display: flex;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.about-project-copy li span {
  color: var(--red);
  font-size: 0.72rem;
}

@media (max-width: 1050px) {
  .sc-workspace {
    grid-template-columns: 1fr;
  }

  .sc-controls {
    position: static;
  }
}

@media (max-width: 900px) {
  .sc-intro {
    grid-template-columns: 1fr;
  }

  .sc-intro-note {
    max-width: 560px;
  }

  .sc-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shift-canvas-page .projects-pill {
    max-width: none;
  }

  .shift-canvas-page .header-actions .status-pill {
    display: none;
  }

  .shift-canvas-page .projects-pill {
    font-size: 0.62rem;
  }

  .sc-intro {
    min-height: auto;
    padding: 128px 20px 70px;
    text-align: center;
  }

  .sc-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sc-intro h1 {
    font-size: clamp(4rem, 21vw, 5rem);
  }

  .sc-intro-copy > p:not(.eyebrow) {
    margin-top: 28px;
    font-size: 1rem;
  }

  .sc-meta {
    justify-content: center;
  }

  .sc-intro-note {
    text-align: left;
  }

  .sc-workspace {
    padding: 64px 16px;
  }

  .sc-controls {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .sc-panel-head {
    display: block;
  }

  .privacy-badge {
    margin-top: 16px;
  }

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

  .sc-actions #export-png {
    grid-column: 1 / -1;
  }

  .roster-canvas {
    min-height: 600px;
    padding: 24px 16px;
    border-radius: 20px;
  }

  .canvas-header {
    padding-bottom: 22px;
  }

  .canvas-header h2 {
    font-size: 2.65rem;
  }

  .canvas-mark {
    width: 46px;
    height: 46px;
  }

  .calendar-day {
    min-height: 74px;
    padding: 7px 5px;
  }

  .day-time {
    margin-top: 12px;
    font-size: 0.58rem;
  }

  .day-segment.is-split {
    padding-top: 3px;
  }

  .weekdays span {
    font-size: 0.48rem;
  }

  .canvas-footer {
    display: grid;
    gap: 5px;
  }
}
