.protected-time {
  padding: 12px;
  border: 1px solid #d5e0ed;
  border-radius: 10px;
  background: var(--color-brand-faint);
}
.protected-time h3 { margin: 0 0 8px; font-size: 14px; }
.protected-time summary, .focus-environment summary { cursor: pointer; }
.protected-row { border-top: 1px solid #d5e0ed; }
.protected-row summary, .protected-add summary { padding: 8px 0; min-height: 36px; }
.protected-row summary strong { font-weight: 600; margin-inline: 6px; overflow-wrap: anywhere; }
.protected-row summary small { color: #465974; white-space: nowrap; }
.protected-add p { color: #465974; margin: 4px 0 10px; font-size: 12px; }
.protected-form, .focus-env-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
}
.protected-form label, .focus-env-fields label { min-width: 0; }
.protected-form input, .protected-form select, .focus-env-fields select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 4px 6px;
  margin-top: 4px;
  color: var(--color-ink);
  border: 1px solid #bbc8d9;
  border-radius: 6px;
  background: var(--color-canvas);
  font: inherit;
}
.protected-actions, .protected-error, .focus-env-fields p { grid-column: 1 / -1; }
.protected-error { color: #a12b2b; font-size: 12px; }
.protected-error:empty { display: none; }
.protected-marker {
  display: block;
  width: 100%;
  text-align: start;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: #294971;
  background: var(--color-brand-soft);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.tl-protected-block {
  position: absolute;
  inset-inline: 0;
  border-left: 3px solid #6a88ad;
  background: rgb(230 240 255 / 77%);
  color: #21466e;
  overflow: hidden;
  pointer-events: none;
}
.tl-protected-block span { display: block; padding-inline: 5px; font-size: 11px; }
.focus-environment { width: min(100%, 320px); margin: 8px auto; text-align: start; color: #465974; font-size: 13px; }
.focus-environment summary { padding: 8px 0; }
.focus-env-fields p { margin: 4px 0 0; line-height: 1.4; }
.rest-content { width: min(100%, 360px); margin: auto; padding: 16px; text-align: center; }
.rest-label { color: #294971; font-size: 15px; font-weight: 600; }
.rest-clock { color: var(--color-ink); font-size: clamp(52px, 12vw, 80px); line-height: 1.15; font-weight: 650; }
.rest-content p { color: #465974; margin: 6px 0 12px; }
.rest-task { display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.rest-actions { display: flex; justify-content: center; gap: 4px 12px; flex-wrap: wrap; }
.rest-link { min-height: 40px; border: 0; background: transparent; color: var(--color-brand); padding: 4px 6px; cursor: pointer; font: inherit; font-size: 13px; }
.rest-hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--color-brand-soft); color: #294971; padding-inline: 10px; border-radius: 8px; margin: 12px 0; font-size: 13px; }
.rest-hint .rest-link { min-width: 40px; font-size: 19px; }
.rest-content .btn-primary { margin: 8px auto 2px; }

@supports selector(:has(*)) {
  .protected-form:not(:has(option[value="custom"]:checked)) .protected-custom { display: none; }
  .protected-form:not(:has(option[value="custom"]:checked)) label:has(select[name="kind"]) { grid-column: 1 / -1; }
}

.protected-form .protected-remind { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-height: 32px; }
.protected-form .protected-remind input { width: 16px; min-height: auto; height: 16px; margin: 0; accent-color: var(--color-brand); }
.protected-reminder {
  position: fixed;
  z-index: 76;
  inset-block-start: max(76px, env(safe-area-inset-top));
  inset-inline-end: 16px;
  width: min(360px, calc(100% - 32px));
  margin: 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgb(16 24 40 / 10%);
}
.protected-reminder[hidden] { display: none; }
.protected-reminder p { margin: 8px 0; overflow-wrap: anywhere; }
.protected-reminder .rest-link { flex: none; min-height: 44px; font-size: 13px; }
.phone > .protected-reminder { left: 50%; right: auto; transform: translateX(-50%); }

.protected-capacity { margin: 0 0 8px; color: var(--color-secondary); font-size: 12px; line-height: 1.5; }
