/* GENERATED FILE - DO NOT EDIT.
   Source: shared/lakbi-plan-day.css - run `npm run sync:shared` after editing. */

/* "✨ Surprise me" — LakBi fills the day (shared/lakbi-plan-day.js) — web + app.
   Uses each app's tokens (--cream, --ink, --ink-soft, --forest, --line, --gold); fallbacks inline.
   Phone (and the app): a bottom sheet. Web desktop: a side sheet on the right. */

.lbpd {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.lbpd.is-on,
.lbpd.is-closing {
  pointer-events: auto;
}

.lbpd.is-closing {
  pointer-events: none;
}

.lbpd-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 15, 0.46);
  opacity: 0;
  transition: opacity 200ms ease;
}

.lbpd.is-on .lbpd-scrim {
  opacity: 1;
}

.lbpd-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 36rem);
  max-height: min(92vh, 52rem);
  max-height: min(92dvh, 52rem);
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--cream, #fbf6ec);
  color: var(--ink, #1a1410);
  box-shadow: 0 -12px 40px rgba(12, 18, 15, 0.22);
  transform: translateY(104%);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  padding-bottom: var(--safe-bot, env(safe-area-inset-bottom, 0px));
}

.lbpd.is-on .lbpd-sheet {
  transform: none;
}

.lbpd.is-closing .lbpd-sheet {
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

@media (min-width: 900px) {
  .lbpd.is-web {
    align-items: stretch;
    justify-content: flex-end;
  }

  .lbpd.is-web .lbpd-sheet {
    width: min(30rem, 100%);
    max-height: none;
    height: 100%;
    border-radius: 1.1rem 0 0 1.1rem;
    transform: translateX(104%);
    box-shadow: -14px 0 40px rgba(12, 18, 15, 0.2);
  }

  .lbpd.is-web.is-on .lbpd-sheet {
    transform: none;
  }

  .lbpd.is-web .lbpd-grip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lbpd-sheet,
  .lbpd-scrim {
    transition: none;
  }
}

.lbpd-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1rem 0.6rem;
}

.lbpd-grip {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 2.4rem;
  height: 0.28rem;
  margin-left: -1.2rem;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.18);
}

.lbpd-head-text {
  flex: 1;
  min-width: 0;
}

.lbpd-kick {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a6420;
}

.lbpd-head h2 {
  margin: 0;
  font: 700 1.3rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.lbpd-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-x {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.07);
  color: inherit;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lbpd-paces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0 1rem 0.7rem;
}

.lbpd-pace {
  display: grid;
  gap: 0.05rem;
  min-height: 2.9rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line, rgba(26, 20, 16, 0.14));
  border-radius: 0.8rem;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lbpd-pace b {
  font-size: 0.9rem;
}

.lbpd-pace small {
  font-size: 0.72rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-pace.is-on {
  border-color: #2c5b44;
  background: #eef2e4;
  box-shadow: inset 0 0 0 1px #2c5b44;
}

.lbpd-pace:disabled {
  opacity: 0.6;
  cursor: default;
}

.lbpd-body {
  flex: 1;
  min-height: 8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.2rem 1rem 0.8rem;
  border-top: 1px solid var(--line, rgba(26, 20, 16, 0.1));
}

.lbpd-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-spin {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(44, 91, 68, 0.25);
  border-top-color: #2c5b44;
  border-radius: 50%;
  animation: lbpd-spin 800ms linear infinite;
}

@keyframes lbpd-spin {
  to {
    transform: rotate(360deg);
  }
}

.lbpd-tl {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.lbpd-tl.is-skeleton li {
  height: 4.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, rgba(26, 20, 16, 0.05), rgba(26, 20, 16, 0.1), rgba(26, 20, 16, 0.05));
  background-size: 200% 100%;
  animation: lbpd-shimmer 1.2s ease-in-out infinite;
}

@keyframes lbpd-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.lbpd-row {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.lbpd-row > time {
  padding-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft, #4a3f36);
  white-space: nowrap;
}

.lbpd-card {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line, rgba(26, 20, 16, 0.14));
  border-radius: 0.9rem;
  background: #fff;
}

.lbpd-row.is-new .lbpd-card {
  border-color: #e0c27a;
  background: #fffaf0;
  box-shadow: inset 3px 0 0 #c99a3b;
}

.lbpd-row.is-existing .lbpd-card {
  background: rgba(26, 20, 16, 0.04);
  color: rgba(26, 20, 16, 0.6);
}

.lbpd-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.lbpd-type {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.07);
}

.lbpd-lock,
.lbpd-short {
  font-weight: 600;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-short {
  color: #8a6420;
}

.lbpd-name {
  font-size: 0.98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lbpd-meta {
  font-size: 0.78rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-why,
.lbpd-say,
.lbpd-fine {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lbpd-say {
  margin-top: 0.7rem;
  color: #2c5b44;
}

.lbpd-fine {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-reco {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(201, 154, 59, 0.12);
}

.lbpd-reco p {
  display: grid;
  gap: 0.05rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lbpd-reco b {
  font-size: 0.72rem;
  color: #6b4c16;
}

.lbpd-acts {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.lbpd-pill,
.lbpd-entry {
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef2e4;
  color: #2c5b44;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.lbpd-pill.is-x {
  min-width: 2rem;
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  background: transparent;
  border-color: rgba(26, 20, 16, 0.16);
  color: var(--ink-soft, #4a3f36);
  font-size: 1rem;
}

.lbpd-pill:disabled,
.lbpd-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.lbpd-note {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(201, 154, 59, 0.14);
  font-size: 0.86rem;
}

.lbpd-note p {
  margin: 0 0 0.4rem;
}

.lbpd-note.is-error {
  background: rgba(176, 58, 46, 0.1);
}

.lbpd-foot {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 1rem 0.9rem;
  border-top: 1px solid var(--line, rgba(26, 20, 16, 0.1));
  background: var(--cream, #fbf6ec);
}

.lbpd-quota {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft, #4a3f36);
}

.lbpd-quota.is-low {
  color: #8a6420;
  font-weight: 700;
}

.lbpd-quota.is-out {
  color: #9b3b2e;
  font-weight: 700;
}

.lbpd-foot-row {
  display: flex;
  gap: 0.5rem;
}

.lbpd-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.lbpd-btn.is-quiet {
  background: transparent;
  border-color: rgba(44, 91, 68, 0.4);
  color: #2c5b44;
}

.lbpd-btn.is-primary {
  flex: 1;
  background: var(--forest, #1e3a2f);
  color: #fff;
}

/* Entry points on the day (both apps). */
.lbpd-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-color: #e0c27a;
  background: #fff6e0;
  color: #6b4c16;
}

.lbpd-entry.is-big {
  min-height: 2.6rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.lbpd-entry.is-tool {
  min-height: 2.4rem;
}

.agenda-gap .lbpd-entry {
  position: relative;
  z-index: 1;
  margin-left: 0.5rem;
  min-height: 1.8rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.lbpd-empty {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin: 0.3rem 0 0.6rem;
  padding: 0.85rem 0.9rem;
  border: 1px dashed #e0c27a;
  border-radius: 0.9rem;
  background: #fffaf0;
  list-style: none;
}

.lbpd-empty p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

/* LakBi's tip on an activity card's detail (web + app). */
.lbpd-tipbox .nu-sp-text {
  white-space: normal;
}

.lbpd-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + var(--safe-bot, env(safe-area-inset-bottom, 0px)));
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(calc(100% - 2rem), 30rem);
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  border-radius: 0.9rem;
  background: #1a1410;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  font-size: 0.88rem;
}

.lbpd-toast.is-app {
  bottom: calc(5.4rem + var(--safe-bot, env(safe-area-inset-bottom, 0px)));
}

.lbpd-toast p {
  flex: 1;
  margin: 0;
  line-height: 1.35;
}

.lbpd-toast-undo {
  min-height: 2.2rem;
  padding: 0.3rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #f3d98f;
  color: #1a1410;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* #6 Reorder in the preview: ⠿ drag handle + ↑ / ↓ (same pill look) */
.lbpd-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  color: var(--ink-soft, #4a3f36);
  font-size: 1.05rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.lbpd-pill.is-move {
  min-width: 2rem;
  padding: 0.2rem 0.5rem;
}

.lbpd-row.is-dragging .lbpd-card {
  opacity: 0.6;
  box-shadow: 0 0 0 2px #c9a24a;
}

.lbpd-row.is-drop .lbpd-card {
  box-shadow: 0 0 0 2px #2c5b44;
}
