.zx-sheet-open {overflow: hidden;}
.zx-sheet, .zx-sheet * {box-sizing: border-box;}
.zx-sheet {
  --sheet-ink: #203b2e;
  --sheet-line: #d3dbce;
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: min(92vh, 780px);
  max-height: min(92dvh, 780px);
  overflow: auto;
  margin: 0 auto;
  padding: 0 22px max(22px, env(safe-area-inset-bottom));
  border: 1px solid #e0e5db;
  border-bottom: 0;
  border-radius: 23px 23px 0 0;
  background: #fdfdf8;
  color: var(--sheet-ink);
  font: 15px/1.55 "Microsoft YaHei", system-ui, sans-serif;
  text-align: left;
  box-shadow: 0 -9px 35px #183b291c;
}
.zx-sheet:not([open]) {display: none;}
.zx-sheet:focus {outline: none;}
.zx-sheet::backdrop {background: rgb(25 42 33 / 36%);}
.zx-sheet-grip {width: 36px; height: 4px; border-radius: 3px; background: #c6cec1; margin: 9px auto 14px;}
.zx-sheet-head {display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; margin: 0 0 17px; background: transparent; position: static; border: 0;}
.zx-sheet-heading {margin: 0; font-size: 23px; line-height: 1.3; font-weight: 680; color: var(--sheet-ink); letter-spacing: -.03em;}
.zx-sheet button, .zx-sheet input, .zx-sheet select, .zx-sheet textarea {font: inherit; -webkit-tap-highlight-color: transparent;}
.zx-sheet button {cursor: pointer;}
.zx-sheet-icon {width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex: none;}
.zx-sheet-icon svg {height: 100%; width: 100%;}
.zx-sheet-dismiss {display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e1e6db; border-radius: 50%; color: #435a49; background: #f3f5ee;}
.zx-sheet-dismiss .zx-sheet-icon {width: 17px; height: 17px;}
.zx-sheet-reference {margin: 0 0 20px; padding: 12px 14px; border-radius: 6px; border-left: 3px solid #79947d; background: #eef2e9;}
.zx-sheet-source {margin-bottom: 5px; color: #596d59; font-size: 11px; line-height: 1.35;}
.zx-sheet-itemtitle {font-size: 15px; font-weight: 620; line-height: 1.5; text-wrap: pretty;}
.zx-sheet-body {padding: 0; margin: 0;}
.zx-sheet-label {display: block; color: #344d3d; font-size: 13px; font-weight: 600; margin: 0 0 7px;}
.zx-sheet-input {display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--sheet-line); border-radius: 8px; color: var(--sheet-ink); background: white; line-height: 1.45; appearance: none; box-shadow: none;}
.zx-sheet-input:focus {outline: 2px solid #6b9075; outline-offset: 1px;}
.zx-sheet-textbox {min-height: 115px; resize: vertical;}
.zx-sheet-textbox::placeholder {color: #778674; font-size: 14px;}
.zx-sheet-count {margin: 4px 1px 0; color: #6e7d6a; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums;}
.zx-sheet-foot {display: flex; gap: 10px; align-items: center; margin: 22px 0 0;}
.zx-sheet-foot[hidden] {display: none;}
.zx-sheet-foot button {border-radius: 8px; min-height: 43px; padding: 9px 20px; font-size: 14px; font-weight: 600;}
.zx-sheet-cancel {flex: 1; border: 1px solid var(--sheet-line); background: #fff; color: #4a5e4c;}
.zx-sheet-confirm {flex: 1.6; border: 1px solid #214838; background: #214838; color: white;}
.zx-sheet-group + .zx-sheet-group {margin-top: 16px;}
.zx-sheet-select-wrap {position: relative;}
.zx-sheet-select-wrap select {padding-right: 39px;}
.zx-sheet-select-wrap > .zx-sheet-icon {position: absolute; right: 13px; top: calc(50% - 8px); width: 16px; height: 16px; pointer-events: none;}
.zx-sheet-choices {display: flex; gap: 8px;}
.zx-sheet-kind {flex: 1; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 41px; border: 1px solid var(--sheet-line); border-radius: 8px; background: white; color: #657164; font-size: 14px!important;}
.zx-sheet-kind[aria-pressed=true] {border-color: #95ae95; background: #eaf1e6; color: #284d36; font-weight: 650;}
.zx-sheet-kind .zx-sheet-icon {width: 17px; height: 17px;}
.zx-sheet-setting-row {display: flex; width: 100%; align-items: center; gap: 13px; padding: 12px 4px; text-align: left; border: 0; border-bottom: 1px solid var(--sheet-line); background: transparent; color: var(--sheet-ink);}
.zx-sheet-setting-copy {flex: 1; display: grid; gap: 3px;}
.zx-sheet-setting-copy small {font-size: 12px; color: #657667;}
.zx-sheet-empty {margin: 10px 0;}
.zx-sheet-back {display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dce2d6; border-radius: 50%;}
.zx-sheet-back .zx-sheet-icon {transform: rotate(180deg); width: 16px;}
.zx-sheet-head .zx-sheet-heading {flex: 1; min-width: 0;}
.zx-sheet-setting-copy {min-width: 0; overflow-wrap: anywhere;}
.zx-pref-utilities {margin-top: 18px;}
.zx-pref-utilities .zx-sheet-setting-row {padding: 9px 4px; border-bottom: 0; color: #5d715f;}
.zx-pref-utilities .zx-sheet-setting-copy strong {font-weight: 500; font-size: 14px;}
.zx-pref-hint {margin: 7px 0 15px; color: #536754; font-size: 13px;}
.zx-source-list-head {display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px;}
.zx-source-list-head .zx-sheet-label {margin: 0;}
.zx-pref-link, .zx-source-remove {padding: 7px 4px; color: #3c6248; font-size: 13px!important; text-decoration: underline; text-underline-offset: 3px;}
.zx-pref-link:disabled {opacity: .55; cursor: default; text-decoration: none;}
.zx-source-list {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 7px; margin: 6px 0 10px; padding: 3px;}
.zx-source-entry {display: flex; min-width: 0; border: 1px solid #d6dfd1; background: #fff; border-radius: 8px;}
.zx-source-entry:has(:checked) {border-color: #829f81; background: #edf3e7;}
.zx-source-option {display: flex; align-items: center; flex: 1; gap: 6px; min-width: 0; min-height: 41px; padding: 6px 8px; font-size: 13px; line-height: 1.35; cursor: pointer;}
.zx-source-option input {flex: 0 0 14px; width: 14px; height: 14px; margin: 0; accent-color: #2d6444;}
.zx-source-option span {min-width: 0; overflow-wrap: anywhere;}
.zx-source-option small {margin-left: auto; flex: none; color: #566954; font-size: 11px;}
.zx-custom-entry {grid-column: 1 / -1;}
.zx-source-list.grouped-video-sources {display:block;}
.zx-source-category {margin:0 0 12px; padding:0; border:0; min-inline-size:0;}
.zx-source-category legend {font-size:14px; font-weight:700; color:#284b3a; padding:0 0 5px;}
.zx-source-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.zx-source-grid .zx-source-option {display:grid;grid-template-columns:16px minmax(0,1fr);gap:1px 6px;align-content:center;}
.zx-source-grid .zx-source-option input {grid-row:1 / 3;}
.zx-source-grid .zx-source-option small {grid-column:2;margin-left:0;line-height:1.25;}
.zx-custom-kind:not([hidden]) {display:flex;align-items:center;gap:8px;font-size:13px;}
.zx-custom-kind select {width:auto;}
.zx-source-remove {flex: none; margin: 0 4px 0 2px; padding: 4px 6px;}
.zx-custom-source {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px;}
.zx-source-tip {display: inline-block; margin-left: 6px; color: #5a6b5b; font-size: 11px; font-weight: 400;}
.zx-source-add {padding: 7px 14px; color: #305c40; border: 1px solid #bdcebc; border-radius: 8px; background: #eef4e9;}
.zx-pref-coverage {margin: 12px 0 0; color: #395a41; font-size: 13px;}
.zx-sheet [aria-invalid="true"] {border-color: #a8613b;}
.zx-sheet-group + .zx-pref-hint {margin-top: 14px;}
.sections {min-width: 0;}
.sections button {min-width: 0;}
.sections button > span {min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sections em {flex: none;}
.zx-sheet[open]:is([id^="sheet-sources-"], #sheet-windows, #sheet-time, #sheet-schedule) {display: flex; flex-direction: column; overflow: hidden;}
.zx-sheet:is([id^="sheet-sources-"], #sheet-windows, #sheet-time, #sheet-schedule) .zx-sheet-body {min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 3px; scrollbar-width: thin;}
.zx-sheet:is([id^="sheet-sources-"], #sheet-windows, #sheet-time, #sheet-schedule) :is(.zx-sheet-head,.zx-sheet-grip,.zx-sheet-foot) {flex: none;}
.zx-sheet:is([id^="sheet-sources-"], #sheet-windows, #sheet-time, #sheet-schedule) .zx-sheet-foot {margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--sheet-line);}
.zx-window-section {margin: 0 0 12px; font-size: 17px;}
.zx-window-counts {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;}
.zx-window-counter, .zx-window-topics {margin: 0; min-width: 0; border: 0; padding: 0;}
.zx-window-counter legend, .zx-window-topics legend {padding: 0; font-weight: 620; font-size: 14px; color: #334f3d;}
.zx-window-stepper {display: grid; grid-template-columns: 1fr 1.4fr 1fr; margin-top: 5px; border: 1px solid var(--sheet-line); border-radius: 8px; background: #fff; overflow: hidden;}
.zx-window-stepper button, .zx-window-stepper input {min-width: 0; width: 100%; min-height: 42px; padding: 0; border: 0; text-align: center; color: var(--sheet-ink); background: #fff; border-radius: 0;}
.zx-window-stepper input {appearance: textfield; border-inline: 1px solid #e5eae1; font-weight: 650;}
.zx-window-stepper input::-webkit-inner-spin-button, .zx-window-stepper input::-webkit-outer-spin-button {appearance: none; margin: 0;}
.zx-window-stepper button {font-size: 20px; background: #f0f4ec;}
.zx-window-stepper :focus-visible {outline: 2px solid #607f64; outline-offset: -2px;}
#sheet-windows button:disabled {opacity: .48; cursor: default;}
.zx-window-limit, .zx-window-note {font-size: 12px; color: #5d715f; margin: 7px 0 0;}
.zx-window-topics {margin-top: 17px;}
.zx-window-topic {display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; margin-top: 7px;}
.zx-window-topic label {font-size: 13px; min-width: 41px;}
.zx-window-topic input {padding: 8px 10px; min-height: 41px;}
.zx-window-status {margin: 7px 3px 0; color: #8a4728; font-size: 13px;}
.zx-time-toggle {display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--sheet-line); font-weight: 620; cursor: pointer;}
.zx-time-toggle input {width: 19px; height: 19px; flex: none; margin: 0 2px; accent-color: #315c40;}
.zx-time-details {padding: 10px 2px 8px;}
.zx-time-details input {min-width: 0; min-height: 42px;}
.zx-time-range {display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px;}
.zx-time-hint {margin: 7px 0 0; font-size: 12px; color: #5d715f;}
.zx-time-actions {min-width: 0; margin: 18px 0 8px; padding: 0; border: 0;}
.zx-time-actions legend {padding: 0;}
.zx-time-action-options {display: flex; gap: 8px;}
.zx-time-action-options label {flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; justify-content: center; border: 1px solid var(--sheet-line); border-radius: 8px; background: #fff; cursor: pointer;}
.zx-time-action-options label:has(:checked) {background: #eaf1e6; border-color: #95ae95;}
.zx-time-action-options input {width: 15px; height: 15px; margin: 0; accent-color: #315c40;}
.time-paused {margin: 24px 0; padding: clamp(20px,5vw,36px); border: 1px solid #d6dfd1; border-radius: 12px; background: #fbfcf7; color: #334c3c;}
.time-paused h2 {margin: 0 0 10px; font-size: 21px;}
.time-gated .install-hint {display: none!important;}
.time-gated .identity {pointer-events: none;}
.time-paused p {margin: 0 0 18px; max-width: 40em; line-height: 1.6;}
.time-paused [data-nav="time"] {min-height: 44px; padding: 8px 16px; border: 1px solid #214838; border-radius: 8px; background: #214838; color: white;}
@media (max-width: 650px) {
  .sections button, .sections button:first-child {flex: 1 1 0;}
  .zx-sheet input:not([type="checkbox"]), .zx-sheet textarea, .zx-sheet select {font-size: 16px;}
}
@media (max-width: 350px) {
  .toolbar-actions .tool {padding-inline: 6px;}
  .toolbar-actions .tool .ico {display: none;}
}
@media (min-width: 650px) {
  .zx-sheet {inset: 0; margin: auto; width: min(430px, 90vw); height: fit-content; border-bottom: 1px solid #e0e5db; border-radius: 18px; padding: 23px 26px;}
  .zx-sheet-grip {display: none;}
}
.branded .search-origin{display:inline-block;margin-inline-start:.5em;font-size:.86em;font-weight:400;line-height:1.5}
.extra-body { flex: 1; min-width: 0; padding: 5px 0; }
.extra-body > .media-extra-details { display: block; }
.extra-body .extra-origin { display: block; font-size: 10px; color: #607160; }
.publisher-search { display: grid; gap: 5px; color: #435e4b; font-size: 12px; }
.publisher-search a { color: inherit; overflow-wrap: anywhere; padding: 4px 0; }
.publisher-help { padding: 6px 14px; font-size: 12px; color: #526856; }
.publisher-help summary { cursor: pointer; }
