/* Treatly plans your day: the card on Today (glass-planner.js). */
.gpl-host {
  margin: 0 16px 14px;
}
.gpl-host[hidden] {
  display: none;
}
.gpl {
  border-radius: 26px;
  padding: 12px 12px 10px;
}
.gpl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 8px;
  color: var(--ink);
  font-size: 15px;
}
.gpl-head i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
}
.gpl-head b {
  font-weight: 700;
}
.gpl-note {
  margin: 0 4px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.gpl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gpl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.gpl-item:first-child {
  border-top: 0;
}
.gpl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gpl-text strong {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.gpl-text small {
  font-size: 13px;
  color: var(--ink-2);
}
.gpl-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.gpl-x,
.gpl-add {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.gpl-x {
  background: transparent;
  color: var(--ink-3);
}
.gpl-add {
  background: #fff;
  color: #000;
}
.gpl-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.gpl-btn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.gpl-btn.is-main {
  background: #fff;
  color: #000;
}
.g-set-row.is-on > i {
  color: #c4b5fd;
}

/* Pro page: what's free, under each perk (glass-pro.js) */
.g-pro-perk .g-pro-free {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------- the strip on Today: Ask Treatly, goals, + Goal ---------- */
.gpl-strip {
  display: flex;
  gap: 8px;
  margin: 0 -16px 10px;
  padding: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gpl-strip::-webkit-scrollbar {
  display: none;
}
.gpl-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 230px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.gpl-pill span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gpl-pill b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.gpl-pill .gi,
.gpl-pill svg {
  flex: none;
  color: #c4b5fd;
}
.gpl-pill.is-ask {
  background: rgba(167, 139, 250, 0.2);
}
.gpl-pill.is-add {
  color: var(--ink-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.gpl-pill.is-add .gi,
.gpl-pill.is-add svg {
  color: var(--ink-2);
}

.gpl.is-week {
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.25);
}
.gpl-msg-line {
  margin: 0 4px 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.gpl-item.is-done,
.gpl-item.is-skipped,
.gpl-item.is-gone {
  opacity: 0.45;
}
.gpl-item.is-skipped .gpl-text strong,
.gpl-item.is-gone .gpl-text strong {
  text-decoration: line-through;
}
.gpl-state {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-2);
}
.gpl-foot--wrap {
  flex-wrap: wrap;
}

/* ---------- sheets: a goal, a new goal, the chat ---------- */
.gpl-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gpl-sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
.gpl-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: calc(100% - 40px);
  padding: 14px 16px calc(16px + var(--safe-b, 0px));
  border-radius: 28px 28px 0 0;
  background: rgba(18, 18, 22, 0.94);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 1, 0.3, 1);
}
.gpl-sheet-wrap.is-open .gpl-sheet-bg {
  opacity: 1;
}
.gpl-sheet-wrap.is-open .gpl-sheet {
  transform: none;
}
@media (min-width: 900px) {
  .gpl-sheet-wrap {
    align-items: center;
  }
  .gpl-sheet {
    border-radius: 28px;
    max-height: min(760px, calc(100% - 80px));
  }
}
.gpl-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 10px;
}
.gpl-sheet-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gpl-sheet-x,
.gpl-sheet-clear {
  flex: none;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.gpl-sheet-x {
  display: grid;
  place-items: center;
  width: 32px;
  padding: 0;
}
.gpl-sheet-clear {
  padding: 0 12px;
}
.gpl-sheet-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gpl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.gpl-field input {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}
.gpl-err {
  margin: 0 2px 6px;
  font-size: 13px;
  color: #fca5a5;
}
.gpl-err:empty {
  display: none;
}

/* one goal */
.gpl-goal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 14px;
}
.gpl-ring {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}
.gpl-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.gpl-ring circle {
  fill: none;
  stroke-width: 3.4;
}
.gpl-ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}
.gpl-ring-on {
  stroke: #c4b5fd;
  stroke-linecap: round;
}
.gpl-ring b {
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gpl-goal-words {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gpl-goal-words small {
  font-size: 12px;
  color: var(--ink-3);
}
.gpl-goal-words strong {
  font-size: 15px;
  color: var(--ink);
}
.gpl-goal-words em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-2);
}
.gpl-tasks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.gpl-task {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.gpl-task i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
}
.gpl-task span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gpl-task small {
  font-size: 12px;
  color: var(--ink-3);
}
.gpl-task.is-done span {
  color: var(--ink-3);
  text-decoration: line-through;
}
.gpl-task.is-done i {
  background: #fff;
  color: #000;
}

/* the chat */
.gpl-sheet--chat .gpl-sheet {
  height: calc(100% - 40px);
}
.gpl-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 10px;
}
.gpl-sheet--chat .gpl-sheet-body {
  flex: 1;
  overflow: hidden;
}
.gpl-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gpl-bubble.is-me {
  align-self: flex-end;
  background: rgba(167, 139, 250, 0.32);
  border-bottom-right-radius: 6px;
}
.gpl-bubble.is-tr {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 6px;
}
.gpl-bubble.is-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.gpl-bubble.is-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: gpl-dot 1s infinite ease-in-out;
}
.gpl-bubble.is-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.gpl-bubble.is-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes gpl-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gpl-bubble.is-typing i {
    animation: none;
  }
}
.gpl-list--chat {
  align-self: stretch;
  padding: 4px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.gpl-chat-pro {
  align-self: flex-start;
}
.gpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gpl-chip {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.gpl-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}
.gpl-chat-form textarea {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: none;
  outline: none;
}
.gpl-chat-form textarea::placeholder {
  color: var(--ink-3);
}
