/* Seedtape Gate / Seedtape Desk — account (Appily-onehundredtwelve / V K Enterprises)
   Perforated tear panels → single unfurling sheet below.
   Retires Lattice Latch twin hinges · Plot Passport · Mixer card desk.
   Not: L/R twin auth · vertical spine · typecase · badge flip · sundial · pegboard tabs. */

body.a112-body.page-a112-seedtape {
  background:
    radial-gradient(900px 420px at 12% -6%, rgba(82, 183, 136, 0.22), transparent 55%),
    radial-gradient(760px 380px at 100% 8%, rgba(244, 162, 97, 0.18), transparent 52%),
    linear-gradient(180deg, var(--a112-glass) 0%, var(--a112-plot) 48%, var(--a112-warm) 100%);
}

.st-main { padding-bottom: 1rem; }

/* —— Plant-stake mast —— */
.st-mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: end;
  padding: clamp(1.35rem, 3.5vw, 2.35rem) 0 1.15rem;
}

.st-stake {
  position: relative;
  width: 4.5rem;
  height: 5.6rem;
  flex-shrink: 0;
}

.st-stake-stick {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 72%;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, #8B5E3C, #5C4033);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
}

.st-stake-tag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 0.35rem 0.65rem;
  background: var(--a112-sun);
  color: var(--a112-sun-ink);
  border: 2px solid var(--a112-moss);
  border-radius: 4px 4px 10px 10px;
  transform: rotate(-6deg);
  text-align: center;
  line-height: 1.05;
  box-shadow: 0 10px 22px rgba(15, 31, 23, 0.12);
}

.st-stake-tag em {
  display: block;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.st-stake-tag strong {
  display: block;
  font-family: var(--a112-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.st-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-bloom-deep);
}

.st-mast h1 {
  margin: 0 0 0.4rem;
  font-family: var(--a112-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--a112-leaf-deep);
  line-height: 1.08;
}

.st-mast-copy > p:last-child {
  margin: 0;
  max-width: 38rem;
  color: var(--a112-mute);
}

.st-stage { padding-bottom: 2rem; }

.st-loading { margin-bottom: 1rem; }

.st-lede {
  margin: 0 0 1.1rem;
  color: var(--a112-mute);
  max-width: 40rem;
}

/* —— Perforated seed tape —— */
.st-tape {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 0.85rem;
  padding: 0.45rem;
  background:
    repeating-linear-gradient(
      90deg,
      #F7FBF5 0 18px,
      #E8F2E4 18px 20px
    );
  border: 2px solid var(--a112-moss);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 31, 23, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.st-sprocket {
  flex: 0 0 1.1rem;
  margin: 0.35rem 0.25rem;
  background:
    radial-gradient(circle at 50% 18%, transparent 28%, var(--a112-moss) 29% 42%, transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 28%, var(--a112-moss) 29% 42%, transparent 43%),
    radial-gradient(circle at 50% 82%, transparent 28%, var(--a112-moss) 29% 42%, transparent 43%);
  opacity: 0.55;
}

.st-tear {
  position: relative;
  flex: 1 1 0;
  min-width: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  margin: 0.15rem;
  padding: 0.75rem 0.9rem;
  appearance: none;
  border: 1.5px dashed rgba(27, 67, 50, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--a112-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.st-tear + .st-tear {
  border-left-style: dashed;
}

.st-tear:hover,
.st-tear:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--a112-leaf);
  outline: none;
  box-shadow: 0 8px 18px rgba(15, 31, 23, 0.1);
}

.st-tear.is-active {
  background: var(--a112-leaf);
  color: #F1FAF4;
  border-style: solid;
  border-color: var(--a112-moss);
  box-shadow: 0 10px 22px rgba(27, 67, 50, 0.22);
  transform: translateY(-3px);
}

.st-tear-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.st-tear.is-active .st-tear-num { color: var(--a112-sun); opacity: 1; }

.st-tear-label {
  font-family: var(--a112-font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

/* —— Unfurling sheet —— */
.st-unfurl {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--a112-surface);
  border: 1px solid var(--a112-border);
  border-radius: 0 0 var(--a112-radius-lg) var(--a112-radius-lg);
  box-shadow: 0 16px 36px rgba(15, 31, 23, 0.08);
  animation: st-unroll 380ms ease both;
}

.st-unfurl::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 10px;
  background:
    radial-gradient(circle at 12px 0, transparent 6px, var(--a112-border) 6.5px) repeat-x;
  background-size: 24px 10px;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes st-unroll {
  from { opacity: 0; transform: translateY(-10px) scaleY(0.98); transform-origin: top center; }
  to { opacity: 1; transform: none; }
}

.st-unfurl[data-panel],
.st-unfurl[data-active] {
  animation: none;
}

.st-unfurl[data-panel="profile"] #dashProfile,
.st-unfurl[data-panel="orders"] #dashOrders,
.st-unfurl[data-panel="password"] #dashPassword,
.st-unfurl[data-panel="prefs"] #dashPrefs {
  animation: st-unroll 320ms ease both;
}

.st-sheet h2,
.dash-panel h3 {
  margin: 0 0 0.4rem;
  font-family: var(--a112-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--a112-leaf-deep);
}

.st-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

/* —— Signed-in identity —— */
.st-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  background: var(--a112-night);
  color: var(--a112-on-night);
  border-radius: var(--a112-radius-md);
  box-shadow: 0 14px 30px rgba(15, 31, 23, 0.18);
}

.st-identity-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 40% 12px 40% 12px;
  background:
    linear-gradient(135deg, var(--a112-lime) 0 45%, var(--a112-sun) 45% 70%, var(--a112-bloom) 70%);
  flex-shrink: 0;
}

.st-identity-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-sun);
  margin-bottom: 0.2rem;
}

.st-identity h2 {
  margin: 0;
  font-family: var(--a112-font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: #fff;
}

.st-identity-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.st-identity .a112-btn--ghost {
  background: rgba(244, 251, 246, 0.08);
  color: #F4FBF6;
  border-color: rgba(244, 251, 246, 0.35);
  box-shadow: none;
}

.st-identity .a112-btn--ghost:hover {
  background: rgba(244, 251, 246, 0.16);
  color: #fff;
}

/* —— Forms & profile —— */
.auth-form {
  display: grid;
  gap: 0.15rem;
  max-width: 28rem;
}

.auth-forgot-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--a112-border);
}

.auth-forgot-block h3,
.st-reset h3 {
  margin: 0 0 0.75rem;
  font-family: var(--a112-font-display);
  font-size: 1.1rem;
  color: var(--a112-leaf-deep);
}

.st-reset { margin-top: 1rem; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--a112-border);
  border-radius: var(--a112-radius-sm);
  background: var(--a112-plot);
}

.profile-item .k {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-mute);
  margin-bottom: 0.25rem;
}

.profile-item .v {
  font-weight: 700;
  color: var(--a112-ink);
  word-break: break-word;
}

.profile-item .v.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.order-list { display: grid; gap: 0.65rem; }

.order-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--a112-border);
  border-radius: var(--a112-radius-sm);
  background: var(--a112-plot);
}

.order-row .mini-copy {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--a112-mute);
}

.order-row .btn,
.order-row .btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--a112-moss);
  border-radius: var(--a112-radius-sm);
  background: var(--a112-surface);
  color: var(--a112-leaf-deep) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.st-prefs {
  display: grid;
  gap: 0.65rem;
  max-width: 32rem;
}

.st-prefs label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--a112-border);
  border-radius: var(--a112-radius-sm);
  background: var(--a112-plot);
  cursor: pointer;
}

.st-prefs input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--a112-leaf);
}

.st-prefs small {
  color: var(--a112-mute);
}

#profileVerifyNotice.notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--a112-radius-sm);
  border: 1px solid var(--a112-border);
  font-weight: 700;
}

#profileVerifyNotice.notice.success {
  background: var(--a112-glass);
  border-color: var(--a112-lime);
  color: var(--a112-leaf-deep);
}

#profileVerifyNotice.notice.warning {
  background: #FFF4E8;
  border-color: var(--a112-sun);
  color: var(--a112-sun-ink);
}

/* —— Benefits —— */
.st-benefits {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.st-benefit {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--a112-surface);
  border: 1px solid var(--a112-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--a112-leaf-deep);
  box-shadow: 0 6px 14px rgba(15, 31, 23, 0.05);
  animation: st-sprout 420ms ease both;
  animation-delay: calc(var(--st-i, 0) * 60ms);
}

@keyframes st-sprout {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* —— Toast —— */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9500;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: var(--a112-radius-md);
  background: var(--a112-night);
  color: #F4FBF6;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.toast.error { background: #8B1E2D; }
.toast.success { background: var(--a112-leaf); }

/* Auth sheets: only active visible via [hidden] + data-active fallback */
.st-unfurl--auth[data-active="signin"] .st-sheet[data-auth-panel="join"],
.st-unfurl--auth[data-active="join"] .st-sheet[data-auth-panel="signin"] {
  display: none;
}

.page-a112-seedtape .a112-field:focus-within > span {
  color: var(--a112-bloom-deep);
  transform: translateX(2px);
  transition: color 180ms ease, transform 180ms ease;
}

.page-a112-seedtape .a112-field input:focus {
  border-color: var(--a112-leaf);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .st-tear,
  .st-unfurl,
  .dash-panel,
  .st-benefit { animation: none !important; transition: none !important; }
}

@media (max-width: 720px) {
  .st-mast {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .st-stake { width: 3.8rem; height: 4.8rem; }

  .st-identity-actions { margin-left: 0; width: 100%; }
  .st-identity-actions .a112-btn { flex: 1 1 auto; }

  .profile-grid { grid-template-columns: 1fr; }

  .st-tear { min-width: 6.5rem; }
}
