.dc-app-shell {
  min-height: 100dvh;
  box-sizing: border-box;
}

.dc-app-content {
  min-width: 0;
}

.dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) {
  display: grid;
  grid-template-columns: 78px minmax(0, 1240px);
  grid-template-areas: "nav content";
  column-gap: 24px;
  justify-content: center;
  align-items: start;
  padding-inline: 32px;
}

.dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) > .dc-app-content {
  grid-area: content;
}

.dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) > .dc-primary-nav {
  position: sticky;
  top: 40px;
  grid-area: nav;
  align-self: start;
  transform: none;
}

.dc-app-shell--focus,
.dc-app-shell--no-nav {
  display: block;
  padding: 0;
}

.dc-app-shell--bottom-nav {
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.dc-app-shell--bottom-nav > .dc-app-content {
  position: relative;
  min-height: 0 !important;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 18px 24px;
}

.dc-app-shell--bottom-nav > .dc-primary-nav {
  position: relative;
  inset: auto;
  grid-row: 2;
  justify-self: center;
  transform: none;
  margin: 0 12px max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 1199px) {
  .dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) {
    padding-inline: 24px;
  }

  .dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) > .dc-primary-nav {
    top: 28px;
  }
}

@media (max-width: 879px) {
  .dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) {
    column-gap: 16px;
    padding-inline: 16px;
  }

  .dc-app-shell:not(.dc-app-shell--bottom-nav):not(.dc-app-shell--focus):not(.dc-app-shell--no-nav) > .dc-primary-nav {
    top: 24px;
  }
}

.dc-desk-page {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--desk-ink, #332d28);
}

.dc-desk-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dc-desk-title,
.dc-desk-card-title {
  margin: 0;
  font-family: "Jua", sans-serif;
  font-weight: 400;
}

.dc-desk-title {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.dc-desk-subtitle,
.dc-desk-helper,
.dc-desk-status {
  color: var(--desk-sub, #70645b);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  line-height: 1.55;
}

.dc-desk-subtitle {
  margin: 7px 0 0;
  font-size: 15px;
}

.dc-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.dc-focus-card,
.dc-desk-side-card {
  min-width: 0;
  box-sizing: border-box;
  color: var(--desk-ink, #332d28);
  background: var(--desk-card, #fffdfc);
  border: 1px solid var(--desk-border, #d9ccc1);
  box-shadow: var(--desk-shadow, 0 10px 30px rgba(91, 72, 59, 0.08));
}

.dc-focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 510px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 4%, var(--desk-light, rgba(229, 174, 148, 0.2)), transparent 36%),
    var(--desk-card, #fffdfc);
}

.dc-focus-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 96px;
  height: 20px;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, rgba(216, 137, 158, 0.6) 0 8px, rgba(249, 218, 226, 0.72) 8px 16px);
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
}

.dc-focus-cup {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 34px;
  height: 24px;
  border: 2px solid var(--desk-border, #d9ccc1);
  border-radius: 5px 5px 13px 13px;
  opacity: 0.75;
  pointer-events: none;
}

.dc-focus-cup::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -10px;
  width: 10px;
  height: 11px;
  border: 2px solid var(--desk-border, #d9ccc1);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.dc-desk-card-title {
  font-size: 21px;
  line-height: 1.2;
}

#focus-session-heading:focus {
  outline: 3px solid var(--desk-accent, #b05470);
  outline-offset: 4px;
  border-radius: 4px;
}

.dc-desk-helper,
.dc-desk-status {
  margin: 5px 0 0;
  font-size: 13px;
}

.dc-time-choices,
.dc-atmosphere-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dc-time-choices {
  margin-top: 22px;
}

.dc-choice,
.dc-desk-button,
.dc-text-action,
.dc-nav-item {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.dc-choice {
  padding: 9px 10px;
  color: var(--desk-sub, #70645b);
  background: color-mix(in srgb, var(--desk-card, #fffdfc) 84%, var(--desk-page, #f7efe7));
  border: 1px solid var(--desk-border, #d9ccc1);
  border-radius: 12px;
  font-size: 13px;
}

.dc-choice[aria-pressed="true"] {
  color: var(--desk-accent-ink, #7f304b);
  background: var(--desk-accent-soft, #f8e2e8);
  border-color: var(--desk-accent, #b85c78);
  box-shadow: inset 0 0 0 1px var(--desk-accent, #b85c78);
}

.dc-choice[aria-pressed="true"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.dc-choice:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.dc-coaster {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 28px auto 22px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--desk-border, #d9ccc1) 75%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, var(--desk-coaster-highlight, rgba(255, 255, 255, 0.78)), transparent 42%),
    color-mix(in srgb, var(--desk-page, #f7efe7) 72%, var(--desk-card, #fffdfc));
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--desk-border, #d9ccc1) 28%, transparent);
}

.dc-timer-display {
  display: block;
  color: var(--desk-ink, #332d28);
  font: 400 clamp(38px, 6vw, 52px)/1 "Jua", sans-serif;
  font-variant-numeric: tabular-nums;
}

.dc-clock-message {
  display: block;
  max-width: 150px;
  color: var(--desk-ink, #332d28);
  font: 400 22px/1.2 "Jua", sans-serif;
}

.dc-clock-detail {
  display: block;
  margin-top: 8px;
  color: var(--desk-sub, #70645b);
  font: 600 12px/1.45 "Quicksand", sans-serif;
}

.dc-focus-state-copy {
  max-width: 510px;
  margin: 28px auto 20px;
  text-align: center;
}

.dc-focus-state-copy h3 {
  margin: 0 0 7px;
  font: 400 24px/1.2 "Jua", sans-serif;
}

.dc-focus-state-copy p {
  margin: 0;
  color: var(--desk-sub, #70645b);
  font: 600 14px/1.55 "Quicksand", sans-serif;
}

.dc-focus-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
}

.dc-desk-button {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
}

.dc-desk-button--primary {
  color: var(--desk-button-ink, #fff);
  background: var(--desk-accent, #b85c78);
  border: 1px solid var(--desk-accent, #b85c78);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--desk-accent, #b85c78) 20%, transparent);
}

.dc-desk-button--primary:hover {
  background: var(--desk-accent-hover, #91435d);
  border-color: var(--desk-accent-hover, #91435d);
}

.dc-desk-button--secondary {
  color: var(--desk-ink, #332d28);
  background: transparent;
  border: 1px solid var(--desk-border, #d9ccc1);
}

.dc-desk-button--secondary:hover,
.dc-choice:hover:not(:disabled) {
  background: var(--desk-accent-soft, #f8e2e8);
  border-color: var(--desk-accent, #b85c78);
}

.dc-text-action {
  padding: 8px 4px;
  color: var(--desk-accent-ink, #7f304b);
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dc-desk-announcement {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--desk-sub, #70645b);
  font: 600 12px/1.5 "Quicksand", sans-serif;
  text-align: center;
}

.dc-desk-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
  min-width: 0;
}

.dc-desk-side-card {
  padding: 22px;
  border-radius: 22px;
}

.dc-table-note-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

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

.dc-note-input {
  width: 100%;
  min-height: 150px;
  margin-top: 17px;
  padding: 14px 15px;
  resize: vertical;
  box-sizing: border-box;
  color: var(--desk-ink, #332d28);
  background: color-mix(in srgb, var(--desk-page, #f7efe7) 56%, var(--desk-card, #fffdfc));
  border: 1px solid var(--desk-border, #d9ccc1);
  border-radius: 14px;
  font: 600 15px/1.55 "Quicksand", sans-serif;
}

.dc-note-input::placeholder {
  color: var(--desk-sub, #70645b);
}

.dc-atmosphere-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dc-atmosphere-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dc-atmosphere-label {
  color: var(--desk-ink, #332d28);
  font: 700 12px/1.4 "Quicksand", sans-serif;
}

.dc-volume-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.dc-volume-input {
  width: 100%;
  min-height: 44px;
  accent-color: var(--desk-accent, #b85c78);
}

.dc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dc-nav-item[aria-current="page"] {
  color: var(--ink, #3f3730) !important;
  background: var(--desk-accent-soft, #f8e2e8) !important;
  box-shadow: inset 0 0 0 1px var(--desk-accent, #b85c78);
}

.dc-nav-item[aria-current="page"]::after {
  content: "current";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (min-width: 900px) {
  .dc-desk-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    gap: 24px;
  }

  .dc-focus-card {
    min-height: 590px;
    padding: 34px;
  }

  .dc-desk-side {
    gap: 24px;
  }

  .dc-desk-side-card {
    padding: 24px;
  }

  .dc-time-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dc-coaster {
    width: 220px;
    height: 220px;
  }

  .dc-note-input {
    min-height: 120px;
  }

  .dc-atmosphere-card {
    gap: 14px;
  }

  .dc-atmosphere-group {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 699px) {
  .dc-desk-header {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .dc-desk-subtitle {
    font-size: 14px;
  }

  .dc-focus-cup {
    display: none;
  }

  .dc-focus-card,
  .dc-desk-side-card {
    border-radius: 20px;
  }

  .dc-note-input {
    font-size: 16px;
  }

  .dc-focus-actions .dc-desk-button {
    flex: 1 1 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-choice,
  .dc-desk-button,
  .dc-text-action,
  .dc-nav-item {
    transition: none;
  }
}
