/* Final Impeccable polish overrides. Loaded from /public so it is easy to inspect and rollback. */

.focusCard {
  position: relative !important;
  overflow: hidden !important;
  padding-top: 74px !important;
  border: 1px solid rgba(18,104,255,.22) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(183,255,56,.20), transparent 8rem),
    radial-gradient(circle at 92% 8%, rgba(0,194,255,.13), transparent 7rem),
    #fff !important;
  box-shadow: 0 24px 58px rgba(7,24,47,.16) !important;
}

.focusCard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--blue));
}

.focusHeader {
  position: absolute !important;
  top: 12px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 3;
  min-height: 34px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  pointer-events: none;
}

.focusLabel {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: var(--lime) !important;
  color: var(--ink) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  letter-spacing: .105em !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 .01px var(--ink), 0 0 .01px var(--ink) !important;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 10px 20px rgba(183,255,56,.28), inset 0 0 0 1px rgba(7,24,47,.08) !important;
  white-space: nowrap;
}

.focusHeader small {
  position: absolute;
  top: 38px;
  right: 12px;
  max-width: 142px;
  min-height: 24px;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18,104,255,.08);
  color: var(--blue) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.focusBody {
  padding: 0 70px 0 0 !important;
}

.focusIcon {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.92), transparent 42%),
    linear-gradient(145deg, #fff7df, #eaf7ff) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.86), 0 12px 26px rgba(7,24,47,.10) !important;
}

.dayTemplateCard,
.templateDrawer {
  margin-top: 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--soft);
}

.dayTemplateCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at 0% 0%, rgba(183,255,56,.20), transparent 8rem),
    linear-gradient(145deg, #ffffff, #f7fbff);
}

.dayTemplateCard h2,
.dayTemplateCard p,
.templateDrawerHeader strong,
.templateDrawerHeader small {
  display: block;
  margin: 0;
}

.dayTemplateCard h2 {
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.055em;
}

.dayTemplateCard p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.dayTemplateCard button {
  min-height: 46px;
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 950;
}

.templatePreviewIcons {
  display: flex;
  align-items: center;
  min-width: 84px;
}

.templatePreviewIcons span {
  width: 38px;
  height: 38px;
  margin-right: -9px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff7df, #eaf7ff);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 9px 18px rgba(7,24,47,.10);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: 19px;
}

.templatePreviewIcons.small {
  min-width: 76px;
}

.templatePreviewIcons.small span {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  font-size: 17px;
}

.templateDrawer {
  overflow: hidden;
}

.templateDrawerHeader {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: transparent;
  text-align: left;
}

.templateDrawerHeader strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.04em;
}

.templateDrawerHeader small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.templateDrawer .sectionChevron {
  justify-self: end;
}

.templateDrawer.open .sectionChevron {
  transform: rotate(180deg);
}

.templateList {
  padding: 0 14px 14px;
}

.sectionPanel {
  margin-top: 12px !important;
}

.sectionPanel.collapsed {
  background: rgba(255,255,255,.92) !important;
}

.sectionToggle {
  min-height: 58px !important;
}

.setting {
  overflow: hidden;
}

.setting > div:first-child {
  min-width: 0;
}

.numberWithUnit {
  width: min(132px, 100%);
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 16px;
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px #dce9ff;
}

.numberWithUnit input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
  font-weight: 950;
}

.numberWithUnit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.timeSelect24 {
  width: min(132px, 100%);
  max-width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  padding: 0 38px 0 12px;
  background: #f4f8ff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #dce9ff;
  font-weight: 950;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@media (max-width: 430px) {
  .focusCard {
    padding-top: 78px !important;
  }

  .focusHeader {
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
  }

  .focusLabel {
    min-height: 32px !important;
    padding-inline: 12px !important;
    font-size: 9px !important;
    font-weight: 1000 !important;
  }

  .focusHeader small {
    display: inline-flex !important;
    top: 38px;
    right: 10px;
    max-width: 138px;
    font-size: 9.5px;
  }

  .dayTemplateCard {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dayTemplateCard button {
    grid-column: 1 / -1;
  }
}
