/* Shared refinements for the three public focus-space skins. */
.fs-streamlined :is(
  .fs-legacy-environment, .fs-legacy-wallpaper, .fs-legacy-settings-spacer, #tp-noise-settings, #show_rtime, #sidebar-countdown-box,
  #fs-goal-empty, .fs-target-summary > .fs-section-label,
  #ql-todo-panel .ql-todo-toolbar, #ql-todo-toggle, .fs-original-mode,
  #qc-schedule > h3, #tp-settings .tp-settings-content > details, #jinrishici-sentence,
  #footer li:has(> a:is([href="/"], [href="/help/focus"])),
  #tp-settings .tp-settings-content > p:has(> a[href="/help/focus#shared"])
) { display: none !important; }

.fs-streamlined[data-focus-skin="classic"] :is(#fs-timetable-toggle, #fs-timetable-restore),
.fs-streamlined[data-focus-skin="classic"] .fs-target-summary,
.fs-streamlined[data-focus-skin="dream"] #fs-dream-goal { display: none !important; }

.fs-streamlined #meting_js .ql-compact-music--floating {
  inset-block-end: calc(46px + env(safe-area-inset-bottom, 0px));
}
.fs-streamlined body:has(#offcanvasRight.show, #offcanvasRight.showing, #tp-settings[open], #qc-editor[open]) #meting_js .ql-compact-music {
  visibility: hidden;
}
.fs-streamlined body:has(#offcanvasRight.show, #offcanvasRight.showing, #tp-settings[open], #qc-editor[open]) #meting_js .ql-audio-song {
  visibility: hidden;
}

.fs-streamlined #tp-settings {
  width: min(450px, 100vw);
  border-color: #ffffff1c;
}
.fs-streamlined #tp-settings > header {
  background: #142330;
  color: #eaf0f4;
  border-color: #ffffff1c;
}
.fs-streamlined #tp-settings .tp-settings-content {
  padding: 16px;
}
.fs-streamlined #tp-settings #tp-settings-close {
  width: 36px;
  height: 36px;
  color: #eaf0f4;
  border-radius: 8px;
}
.fs-streamlined :is(#offcanvasRight, #tp-settings) .fs-settings-section h3 { color: #eaf0f4; }
.fs-streamlined :is(#offcanvasRight, #tp-settings) .ql-todo-options {
  display: grid;
  gap: 9px;
  color: #eaf0f4;
}
.fs-streamlined :is(#offcanvasRight, #tp-settings) .ql-todo-options label {
  color: #eaf0f4;
}
.fs-streamlined #tp-settings .ql-todo-options select {
  background: #102332;
  color: #eaf0f4;
  border: 1px solid #829b9255;
  border-radius: 8px;
  padding: 5px 8px;
}

.fs-streamlined #fs-timetable-settings #fs-timetable-select { width: 100%; }
.fs-streamlined #fs-timetable-settings .fs-table-actions button,
.fs-streamlined #fs-timetable-settings #fs-timetable-trial {
  appearance: none;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #a6bed052;
  border-radius: 9px;
  background: #213a4c;
  color: #edf5f8;
  font: inherit;
  font-size: 13px;
}
.fs-streamlined #fs-timetable-settings button:hover:not(:disabled) { background: #2a4b61; }
.fs-streamlined #fs-timetable-settings button:disabled { opacity: .48; }
.fs-streamlined .fs-clock-size {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}
.fs-streamlined .fs-clock-size label { margin: 0 !important; }
.fs-streamlined .fs-clock-size output {
  color: #b9cddb;
  font-variant-numeric: tabular-nums;
}
.fs-streamlined .fs-clock-size input[type="range"] { grid-column: 1 / -1; }

.fs-streamlined .fs-volume-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 3.2em;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.fs-streamlined :is(#offcanvasRight, #tp-settings) #fs-sound-settings .fs-volume-icon {
  display: grid;
  place-items: center;
  appearance: none;
  width: 38px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #d6e7f0;
}
.fs-streamlined :is(#offcanvasRight, #tp-settings) #fs-sound-settings button.fs-volume-icon:hover { color: #fff; }
.fs-streamlined :is(#offcanvasRight, #tp-settings) #fs-sound-settings button.fs-volume-icon[aria-pressed="true"] {
  background: #254557;
  border-color: #a6bed073;
}
.fs-streamlined .fs-volume-icon svg { width: 22px; height: 22px; }
.fs-streamlined .fs-volume-row output {
  text-align: end;
  color: #b9cddb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.fs-streamlined :is(#offcanvasRight, #tp-settings) :is(.fs-volume-row, .fs-clock-size) input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  accent-color: #a7d3eb;
}
.fs-streamlined .fs-sound-status { margin: 0; font-size: 12px; color: #f5c5a2; }
.fs-streamlined .fs-sound-status:empty { display: none; }

.fs-streamlined #ql-todo-panel :is(.todoNav, .doneNav) {
  display: flex;
  align-items: center;
  gap: 7px;
  height: auto;
  min-height: 28px;
  margin: 5px 0 2px;
}
.fs-streamlined #ql-todo-panel :is(#todoNav button, #ql-done-toggle) {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin: 0;
  padding: 2px 4px 2px 0;
  border: 0;
  background: none;
  color: #d7e6ed;
  font: inherit;
  font-size: 13px;
}
.fs-streamlined #ql-todo-panel :is(#todoNav button, #ql-done-toggle)::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 1px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.fs-streamlined #ql-todo-panel :is(#todoNav button, #ql-done-toggle)[aria-expanded="false"]::before {
  transform: rotate(-45deg);
}
.fs-streamlined #ql-todo-panel :is(#todoList, #doneList) > li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 32px;
  height: auto;
  margin: 0;
  padding: 3px 0;
}
.fs-streamlined #ql-todo-panel li > :is(.todocheckBox, .todocontent, .listSpan) {
  position: static;
  margin: 0 !important;
  float: none;
}
.fs-streamlined #ql-todo-panel .todocheckBox {
  width: 16px !important;
  height: 16px !important;
}
.fs-streamlined #ql-todo-panel .todocontent {
  min-width: 0;
  min-height: 24px;
  width: 100%;
  padding: 2px 0 !important;
  line-height: 20px;
}
.fs-streamlined #ql-todo-panel li > .listSpan {
  min-width: 24px;
  width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
}

.fs-streamlined #qc-schedule .qc-draggable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  margin-block: 8px;
  border: 1px solid #9ab8cb52;
  border-radius: 9px;
  background: #142739e8;
  color: #edf3f6;
}
.fs-streamlined #qc-schedule .qc-draggable-row:has(.qc-task[aria-pressed="true"]) {
  border-color: #a9d1ce;
  background: #25434b;
}
.fs-streamlined #qc-schedule .qc-task {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: 34px;
  margin: 0;
  padding: 6px 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  text-align: start;
}
.fs-streamlined #qc-schedule .qc-task strong {
  overflow-wrap: anywhere;
}
.fs-streamlined #qc-schedule .qc-task small {
  margin: 0;
  color: #adc7d5;
  white-space: nowrap;
}
.fs-streamlined #qc-schedule .qc-reorder-grip {
  appearance: none;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d0e0e8;
  cursor: grab;
  touch-action: none;
}
.fs-streamlined #qc-schedule .qc-reorder-grip:disabled { cursor: default; }
@media (max-width: 900px) {
  .fs-streamlined #meting_js .ql-compact-music--floating {
    inset-block-end: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

.fs-streamlined :is(#offcanvasRight, #tp-settings) #fs-settings-guide {
  display: block;
  width: fit-content;
  margin: 16px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6e7f0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fs-streamlined #offcanvasRight .fs-legacy-settings {
  padding-block: 12px !important;
}
.fs-streamlined .fs-display-settings {
  display: grid;
  gap: 9px;
}
.fs-streamlined :is(.fs-color-setting, .fs-ring-setting, .fs-pet-visibility) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.fs-streamlined .fs-ring-setting label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 0 0;
}
.fs-streamlined .fs-display-settings label { font-weight: 600; }
.fs-streamlined .fs-color-setting #color {
  padding: 0;
  height: 25px !important;
  border: 0;
  background: transparent;
}
.fs-streamlined :is(.fs-color-prompt, .fs-display-gap) { display: none !important; }
.fs-streamlined .fs-pet-status:not(:empty) {
  display: block;
  font-size: 12px;
  color: #f5c5a2;
}

.fs-streamlined #qc-schedule .qc-rows { position: relative; }
.fs-streamlined #qc-schedule .qc-draggable-row { user-select: none; }
.fs-streamlined #qc-schedule .qc-is-dragging { opacity: .2; pointer-events: none; }
.fs-streamlined #qc-schedule .qc-drag-ghost {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  border-color: #a7d3eb;
  box-shadow: 0 8px 20px #08142080;
  will-change: transform;
}
