#objective-chip,
.objective-chip {
  position: absolute;
  top: 58px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  min-width: 0;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(225, 224, 207, .34);
  border-radius: 999px;
  background: rgba(22, 29, 25, .91);
  color: #f4f1ea;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .30);
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#objective-chip::before,
.objective-chip::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #b9c99a;
  content: "";
}

#objective-chip #objective-title,
.objective-chip #objective-title {
  min-width: 0;
  overflow: hidden;
  color: #f4f1ea;
  font-weight: 600;
  text-overflow: ellipsis;
}

#objective-chip #objective-progress,
.objective-chip #objective-progress {
  flex: 0 0 auto;
  color: #c5d2ac;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#objective-chip:hover,
.objective-chip:hover {
  border-color: rgba(220, 230, 201, .7);
  background: rgba(28, 39, 32, .97);
}

#objective-chip:focus-visible,
.objective-chip:focus-visible {
  outline: 2px solid #d4dfb4;
  outline-offset: 2px;
}

#objective-chip[hidden],
.objective-chip[hidden] {
  display: none !important;
}

#goals-drawer {
  width: min(360px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  gap: 0;
  overscroll-behavior: contain;
}

#goals-drawer[hidden] {
  display: none !important;
}

#goals-drawer .garden-guide-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(195, 183, 170, .42) transparent;
  scrollbar-width: thin;
}

#goals-drawer .garden-guide-goals,
#goals-drawer .garden-guide-tutorial {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#goals-drawer .garden-guide-goals[hidden],
#goals-drawer .garden-guide-tutorial[hidden] {
  display: none !important;
}

#goals-drawer #goal-purpose {
  color: #e2e0d8;
  font-size: 12px;
  line-height: 1.65;
}

#goals-drawer #goal-summary {
  color: #b9c99a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#goals-drawer #goal-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#goals-drawer .goal-row {
  min-width: 0;
  margin: 0;
  padding: 0;
}

#goals-drawer .goal-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px 9px;
  border: 1px solid rgba(244, 241, 234, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: #f4f1ea;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}

#goals-drawer .goal-item:hover:not(:disabled) {
  border-color: rgba(190, 210, 166, .52);
  background: rgba(176, 199, 153, .09);
}

#goals-drawer .goal-item:focus-visible,
#goals-drawer .tutorial-nav button:focus-visible,
#goals-drawer #tutorial-skip:focus-visible,
#goals-drawer #tutorial-replay:focus-visible {
  outline: 2px solid #d4dfb4;
  outline-offset: 2px;
}

#goals-drawer .goal-item:disabled {
  cursor: default;
  opacity: .68;
}

#goals-drawer .goal-mark {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(229, 224, 207, .42);
  border-radius: 50%;
  color: #172018;
  font-size: 11px;
  font-weight: 700;
}

#goals-drawer .goal-item.is-done .goal-mark {
  border-color: #b9c99a;
  background: #b9c99a;
}

#goals-drawer .goal-item.is-done .goal-mark::before {
  content: "✓";
}

#goals-drawer .goal-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#goals-drawer .goal-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#goals-drawer .goal-detail {
  overflow: hidden;
  color: #c3b7aa;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#goals-drawer .goal-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #c3b7aa;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#goals-drawer .goal-value {
  color: #e5dfcf;
}

#goals-drawer .goal-item.is-done .goal-status {
  color: #b9c99a;
}

#goals-drawer .goal-empty {
  padding: 10px 2px;
  color: #c3b7aa;
  font-size: 12px;
  line-height: 1.5;
}

#goals-drawer #tutorial-replay {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(244, 241, 234, .20);
  color: #d8d6cc;
  font-size: 11px;
}

#goals-drawer .tutorial-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 142px;
  padding: 14px;
  border: 1px solid rgba(211, 203, 177, .22);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(139, 164, 126, .14), transparent 56%),
    rgba(255, 255, 255, .035);
}

#goals-drawer .tutorial-page-title {
  color: #eadfbe;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

#goals-drawer .tutorial-page-copy {
  color: #efeee7;
  font-size: 13px;
  line-height: 1.75;
}

#goals-drawer .tutorial-page-hint {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid rgba(185, 201, 154, .26);
  border-radius: 999px;
  background: rgba(185, 201, 154, .08);
  color: #c8d7af;
  font-size: 10px;
  line-height: 1.35;
}

#goals-drawer .tutorial-page-counter {
  color: #c3b7aa;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#goals-drawer .tutorial-nav {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

#goals-drawer .tutorial-nav button,
#goals-drawer #tutorial-skip {
  min-height: 42px;
  font-size: 12px;
}

#goals-drawer #tutorial-next {
  border-color: #b9c99a;
  background: #b9c99a;
  color: #152019;
  font-weight: 650;
}

#goals-drawer #tutorial-next:hover:not(:disabled) {
  background: #c9d8ad;
}

#goals-drawer #tutorial-prev:disabled {
  cursor: default;
  opacity: .42;
}

#goals-drawer #tutorial-skip {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 10px;
  border-color: transparent;
  color: #c3b7aa;
  font-size: 11px;
}

@media (max-width: 600px) {
  #objective-chip,
  .objective-chip {
    top: 58px;
    right: 12px;
    max-width: calc(100vw - 32px);
  }

  #goals-drawer {
    width: auto;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #objective-chip,
  .objective-chip,
  #goals-drawer .goal-item {
    transition: none;
    scroll-behavior: auto;
  }
}

#goals-drawer .goal-detail{white-space:normal;overflow:visible;font-size:12px;line-height:1.65}
#goals-drawer .goal-title{white-space:normal;font-size:14px}#goals-drawer .goal-item{align-items:start;padding:12px 10px}
#goals-drawer .goal-metrics{font-size:11px}#goals-drawer .tutorial-page-hint{font-size:12px}

body #objective-chip{left:12px;right:auto;top:48px;height:32px;min-height:32px;max-height:32px;max-width:min(290px,calc(100vw - 24px));border-radius:9px}
@media(max-width:600px){body #objective-chip{top:58px}}
