/* LittleMinty modern read-only page guide */
:root {
  --lm-bg: rgba(16, 19, 22, .97);
  --lm-bg-soft: rgba(28, 33, 37, .96);
  --lm-line: rgba(255,255,255,.11);
  --lm-text: #f5f7f8;
  --lm-muted: #aab4bb;
  --lm-accent: #9df1d5;
  --lm-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.littleminty-root {
  --lm-launcher-bottom: 92px;
  position:relative; z-index:9900;
}
.littleminty-launcher {
  position:fixed; right:24px; top:43vh; bottom:auto; z-index:9901;
  display:flex; align-items:center; gap:10px; min-height:54px;
  padding:7px 14px 7px 7px; border:1px solid rgba(255,255,255,.16);
  border-radius:999px; background:rgba(18,22,25,.92); color:var(--lm-text);
  box-shadow:0 12px 34px rgba(0,0,0,.28); backdrop-filter:blur(18px);
  cursor:pointer; font:inherit; text-align:left;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.littleminty-launcher:hover { transform:translateY(-2px); border-color:rgba(157,241,213,.55); }
.littleminty-launcher img { width:40px; height:40px; border-radius:50%; object-fit:cover; background:#dff8ef; }
.littleminty-launcher span { display:flex; flex-direction:column; line-height:1.08; }
.littleminty-launcher strong { font-size:13px; }
.littleminty-launcher small { margin-top:4px; color:var(--lm-muted); font-size:10px; }

.littleminty-panel {
  position:fixed; left:auto; right:24px; top:20vh; bottom:auto; z-index:9902;
  width:min(410px, calc(100vw - 28px)); max-height:min(680px, 76vh);
  border:1px solid rgba(255,255,255,.22); border-radius:28px;
  background:rgba(248,251,250,.94); color:#18211f;
  box-shadow:0 28px 80px rgba(3,12,10,.28),0 1px 0 rgba(255,255,255,.75) inset;
  overflow:hidden; backdrop-filter:blur(26px) saturate(1.12);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.littleminty-header { display:flex; align-items:center; gap:12px; padding:16px 16px 12px; border-bottom:0; }
.littleminty-header img { width:46px; height:46px; border-radius:14px; object-fit:cover; background:#dff8ef; }
.littleminty-header div { display:flex; min-width:0; flex:1; flex-direction:column; }
.littleminty-header strong { color:#14201c; font-size:15px; letter-spacing:-.01em; }
.littleminty-header span { margin-top:3px; color:#6f7c78; font-size:11px; }
#littleminty-close { width:32px; height:32px; border:1px solid rgba(18,42,34,.10); border-radius:999px; background:rgba(18,42,34,.055); color:#355149; font-size:20px; cursor:pointer; }

.littleminty-statusrow { display:flex; align-items:center; gap:8px; padding:0 16px 8px; overflow:hidden; }
.littleminty-status { flex:0 0 auto; padding:5px 9px; border:0; border-radius:999px; background:#e3f5ee; color:#246653; font-size:9.5px; font-weight:800; text-transform:uppercase; letter-spacing:.065em; }
.littleminty-context { min-width:0; overflow:hidden; color:#7a8783; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }

.littleminty-ownerbar { margin:7px 14px 2px; padding:9px 10px; border:1px solid rgba(122,169,255,.25); border-radius:12px; background:rgba(83,120,189,.09); }
.littleminty-ownerbar strong { display:block; color:#dce8ff; font-size:11px; }
.littleminty-ownerbar span { display:block; margin-top:3px; color:#97a9c6; font-size:10px; line-height:1.35; }

.littleminty-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; padding:8px 14px 10px; }
.littleminty-actions--owner { grid-template-columns:1fr 1fr; padding-top:6px; padding-bottom:4px; }
.littleminty-actions--mode { grid-template-columns:1fr; padding-top:4px; }
.littleminty-actions button { min-height:40px; padding:7px 8px; border:1px solid var(--lm-line); border-radius:11px; background:rgba(255,255,255,.045); color:#e9eef0; font:600 11px/1.2 inherit; cursor:pointer; }
.littleminty-actions button:hover { border-color:rgba(157,241,213,.38); background:rgba(157,241,213,.08); color:#fff; }
.littleminty-actions--owner button { border-color:rgba(122,169,255,.28); background:rgba(83,120,189,.08); }

.littleminty-log { display:flex; flex-direction:column; gap:9px; min-height:132px; max-height:320px; padding:12px 16px 14px; overflow-y:auto; background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(226,239,234,.58)); }
.littleminty-msg { display:flex; flex-direction:column; max-width:94%; }
.littleminty-msg--assistant { align-self:flex-start; }
.littleminty-msg--user { align-self:flex-end; align-items:flex-end; }
.littleminty-bubble { margin:0; padding:11px 13px; border:1px solid rgba(21,52,42,.09); border-radius:16px; background:rgba(255,255,255,.88); color:#20302b; box-shadow:0 8px 24px rgba(24,52,44,.07); font-size:12.5px; line-height:1.45; white-space:pre-wrap; }
.littleminty-bubble--code { max-width:100%; overflow:auto; color:#dbe8df; background:rgba(0,0,0,.28); font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.littleminty-msg--user .littleminty-bubble { border-color:rgba(79,213,173,.25); background:rgba(79,213,173,.1); }
.littleminty-meta { margin-top:4px; padding:0 4px; color:#77848b; font-size:9.5px; }

.littleminty-compose { display:grid; grid-template-columns:1fr auto; gap:8px; padding:12px 16px 14px; border-top:0; background:rgba(248,251,250,.96); }
#littleminty-input { width:100%; min-height:46px; resize:none; padding:11px 12px; border:1px solid rgba(24,58,47,.12); border-radius:15px; outline:none; background:#fff; color:#1e2b27; box-shadow:0 6px 18px rgba(25,57,48,.05) inset; font:12px/1.35 inherit; }
#littleminty-input:focus { border-color:rgba(157,241,213,.52); box-shadow:0 0 0 3px rgba(79,213,173,.08); }
#littleminty-send { align-self:stretch; min-width:68px; padding:0 15px; border:0; border-radius:15px; background:#153b31; color:#f1fff9; box-shadow:0 8px 18px rgba(21,59,49,.18); font:800 12px/1 inherit; cursor:pointer; }
#littleminty-send:disabled { opacity:.55; cursor:wait; }

.littleminty-panel footer { display:flex; justify-content:space-between; gap:12px; padding:7px 16px 11px; border-top:0; color:#82908b; font-size:9.5px; }
body[data-mint-state="minting"] .littleminty-root,
body[data-mint-state="minted"] .littleminty-root,
body[data-exported="true"] .littleminty-root { display:none !important; pointer-events:none !important; }

@media (max-width:600px) {
  .littleminty-root { --lm-launcher-bottom:max(76px, calc(env(safe-area-inset-bottom) + 64px)); }
  .littleminty-launcher { right:12px; top:auto; bottom:var(--lm-launcher-bottom); }
  .littleminty-panel { left:12px !important; right:12px !important; top:auto !important; bottom:calc(var(--lm-launcher-bottom) + 68px) !important; width:auto; max-height:76vh; border-radius:24px; }
  .littleminty-actions { grid-template-columns:1fr; }
  .littleminty-actions--owner { grid-template-columns:1fr 1fr; }
  .littleminty-log { max-height:280px; }
}
@media (prefers-reduced-motion:reduce) {
  .littleminty-launcher { transition:none; }
}


/* LittleMinty Companion Mode */
.littleminty-launcher {
  overflow:visible;
  background:
    radial-gradient(circle at 18% 22%,rgba(157,241,213,.18),transparent 34%),
    linear-gradient(145deg,rgba(22,29,32,.96),rgba(11,14,17,.92));
  box-shadow:0 16px 42px rgba(0,0,0,.34),0 0 0 1px rgba(157,241,213,.04) inset;
}
.littleminty-launcher::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:1px solid rgba(157,241,213,.24);
  box-shadow:0 0 24px rgba(157,241,213,.10);
  opacity:.55;
  pointer-events:none;
  animation:littlemintyHalo 2.8s ease-in-out infinite;
}
.littleminty-launcher img {
  box-shadow:0 0 0 1px rgba(255,255,255,.15),0 8px 20px rgba(0,0,0,.28);
}
.littleminty-launcher:not(.is-open):not(.is-guiding) {
  animation:littlemintyHover 3.6s ease-in-out infinite;
}
.littleminty-launcher:not(.is-open):not(.is-guiding) img {
  animation:littlemintyLean 3.6s ease-in-out infinite;
}
.littleminty-launcher.is-guiding {
  transform:translateY(-5px) rotate(-1.5deg);
  border-color:rgba(157,241,213,.66);
  box-shadow:0 20px 50px rgba(0,0,0,.38),0 0 28px rgba(157,241,213,.12);
}
.littleminty-panel {
  border-color:rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 8% 0%,rgba(153,224,200,.22),transparent 34%),
    rgba(248,251,250,.94);
  box-shadow:0 30px 90px rgba(4,18,14,.28),0 1px 0 rgba(255,255,255,.9) inset;
}
.littleminty-companion-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  padding:10px 14px 6px;
}
.littleminty-companion-actions button {
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:9px;
  align-items:center;
  min-height:58px;
  padding:10px 11px;
  border:1px solid rgba(25,68,54,.10);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  color:#1b2a25;
  box-shadow:0 8px 24px rgba(23,55,45,.06);
  cursor:pointer;
  text-align:left;
}
.littleminty-companion-actions button:hover {
  transform:translateY(-1px);
  border-color:rgba(42,116,92,.24);
  background:#f7fffb;
  box-shadow:0 12px 28px rgba(23,55,45,.10);
}
.littleminty-companion-actions button > span {
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#e5f5ef;
  color:#2a745c;
  font-size:17px;
  font-weight:800;
}
.littleminty-companion-actions strong { font-size:11.5px; }
.littleminty-companion-actions small { margin-top:2px; color:#7a8783; font-size:9.5px; }
.littleminty-field-spotlight {
  position:relative;
  z-index:9898 !important;
  border-radius:10px;
  outline:2px solid rgba(157,241,213,.78) !important;
  outline-offset:4px;
  box-shadow:0 0 0 8px rgba(157,241,213,.08),0 0 28px rgba(157,241,213,.16) !important;
  transition:outline-color .18s ease,box-shadow .18s ease;
}
.littleminty-coachmark {
  position:fixed;
  z-index:9904;
  padding:12px;
  border:1px solid rgba(157,241,213,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 12% 0%,rgba(157,241,213,.12),transparent 35%),
    rgba(13,17,20,.985);
  color:var(--lm-text);
  box-shadow:0 24px 70px rgba(0,0,0,.46);
  backdrop-filter:blur(22px);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.littleminty-coachmark__top { display:flex; gap:10px; align-items:flex-start; }
.littleminty-coachmark__avatar {
  width:42px; height:42px; flex:0 0 42px; border-radius:13px; object-fit:cover;
  background:#dff8ef; transform:rotate(-4deg);
  box-shadow:0 8px 20px rgba(0,0,0,.24);
}
.littleminty-coachmark__copy { display:flex; min-width:0; flex-direction:column; gap:4px; }
.littleminty-coachmark__copy strong { font-size:12.5px; }
.littleminty-coachmark__copy span { color:#c9d2d6; font-size:11.5px; line-height:1.42; }
.littleminty-coachmark__actions { display:flex; justify-content:flex-end; gap:7px; margin-top:11px; }
.littleminty-coachmark__actions button {
  min-height:34px; padding:0 11px; border:1px solid var(--lm-line); border-radius:10px;
  background:rgba(255,255,255,.045); color:#e9eef0; font:700 10.5px/1 inherit; cursor:pointer;
}
.littleminty-coachmark__actions .littleminty-coachmark__primary {
  border-color:rgba(157,241,213,.28); background:rgba(157,241,213,.12); color:#eafff8;
}
@keyframes littlemintyHover {
  0%,100% { transform:translateY(0) rotate(0deg); }
  50% { transform:translateY(-8px) rotate(-.7deg); }
}
@keyframes littlemintyLean {
  0%,100% { transform:translateY(0) rotate(0deg) scale(1); }
  50% { transform:translateY(-1px) rotate(-4deg) scale(1.045); }
}
@keyframes littlemintyHalo {
  0%,100% { opacity:.28; transform:scale(.985); }
  50% { opacity:.72; transform:scale(1.035); }
}
@media (max-width:600px) {
  .littleminty-companion-actions { grid-template-columns:1fr 1fr; }
  .littleminty-coachmark { max-width:calc(100vw - 24px); }
}
@media (prefers-reduced-motion:reduce) {
  .littleminty-launcher:not(.is-open):not(.is-guiding) img { animation:none; }
  .littleminty-companion-actions button { transition:none; }
  .littleminty-field-spotlight { transition:none; }
}

.littleminty-nudge {
  position:fixed;
  right:28px;
  bottom:calc(var(--lm-launcher-bottom) + 62px);
  z-index:9903;
  max-width:180px;
  padding:8px 11px;
  border:1px solid rgba(157,241,213,.28);
  border-radius:14px 14px 4px 14px;
  background:rgba(15,20,23,.96);
  color:#effff9;
  box-shadow:0 14px 38px rgba(0,0,0,.36);
  font:700 11px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  opacity:0;
  transform:translateY(6px) scale(.96);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.littleminty-nudge.is-visible {
  opacity:1;
  transform:translateY(0) scale(1);
}
.littleminty-nudge::after {
  content:"";
  position:absolute;
  right:16px;
  bottom:-6px;
  width:10px;
  height:10px;
  border-right:1px solid rgba(157,241,213,.28);
  border-bottom:1px solid rgba(157,241,213,.28);
  background:rgba(15,20,23,.96);
  transform:rotate(45deg);
}
@media (max-width:600px) {
  .littleminty-nudge {
    right:18px;
    bottom:calc(var(--lm-launcher-bottom) + 60px);
  }
}
@media (prefers-reduced-motion:reduce) {
  .littleminty-launcher:not(.is-open):not(.is-guiding),
  .littleminty-launcher:not(.is-open):not(.is-guiding) img,
  .littleminty-launcher::after { animation:none !important; }
  .littleminty-nudge { transition:none; }
}


/* LittleMinty visual personality pass */
.littleminty-root {
  --lm-mint:#49e3b3;
  --lm-mint-deep:#138d72;
  --lm-aqua:#5bdcf0;
  --lm-violet:#8e7cff;
  --lm-ink:#14251f;
  --lm-soft:#f5fbf8;
}
.littleminty-launcher {
  min-height:62px;
  padding:8px 16px 8px 8px;
  gap:11px;
  border-color:rgba(91,220,240,.30);
  background:
    radial-gradient(circle at 18% 20%,rgba(73,227,179,.34),transparent 34%),
    linear-gradient(135deg,#173f35 0%,#16324a 62%,#2f2857 100%);
  color:#f6fffb;
  box-shadow:
    0 18px 44px rgba(10,31,27,.34),
    0 0 30px rgba(73,227,179,.11),
    0 1px 0 rgba(255,255,255,.16) inset;
}
.littleminty-launcher strong { font-size:13.5px; letter-spacing:-.01em; }
.littleminty-launcher small { color:rgba(233,255,248,.72); font-size:10px; }
.littleminty-launcher img,
.littleminty-header img,
.littleminty-coachmark__avatar {
  filter:saturate(1.38) contrast(1.10) brightness(1.04);
}
.littleminty-launcher img {
  width:46px;
  height:46px;
  border-radius:15px;
  background:
    radial-gradient(circle at 35% 22%,#effff9 0%,#b8f7e2 42%,#5bdcf0 76%,#8e7cff 120%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.52),
    0 8px 22px rgba(3,27,22,.32),
    0 0 20px rgba(91,220,240,.18);
}
.littleminty-launcher::after {
  border-color:rgba(91,220,240,.32);
  box-shadow:0 0 28px rgba(73,227,179,.15),0 0 42px rgba(142,124,255,.07);
}
.littleminty-panel {
  isolation:isolate;
  border-color:rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 7% 0%,rgba(73,227,179,.26),transparent 30%),
    radial-gradient(circle at 100% 10%,rgba(91,220,240,.18),transparent 28%),
    radial-gradient(circle at 88% 100%,rgba(142,124,255,.11),transparent 32%),
    rgba(248,252,250,.96);
  color:var(--lm-ink);
  box-shadow:
    0 32px 96px rgba(5,28,23,.28),
    0 0 0 1px rgba(73,227,179,.08),
    0 1px 0 rgba(255,255,255,.92) inset;
}
.littleminty-panel::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--lm-mint),var(--lm-aqua) 56%,var(--lm-violet));
}
.littleminty-header {
  padding:18px 18px 11px;
}
.littleminty-header img {
  width:52px;
  height:52px;
  border-radius:17px;
  background:
    radial-gradient(circle at 35% 22%,#effff9 0%,#b8f7e2 45%,#5bdcf0 82%,#8e7cff 125%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.78),
    0 9px 24px rgba(18,73,60,.17);
}
.littleminty-header strong {
  display:inline-block;
  width:max-content;
  font-size:16px;
  background:linear-gradient(92deg,#126e59,#168aa3 62%,#6755c9);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.littleminty-header span { color:#60736c; }
.littleminty-status {
  background:linear-gradient(110deg,rgba(73,227,179,.22),rgba(91,220,240,.20));
  color:#126a56;
  box-shadow:0 0 0 1px rgba(19,141,114,.08) inset;
}
.littleminty-context { color:#667a73; }
.littleminty-companion-actions { gap:10px; padding:11px 16px 8px; }
.littleminty-companion-actions button {
  min-height:64px;
  border-color:rgba(18,110,89,.10);
  background:
    linear-gradient(150deg,rgba(255,255,255,.95),rgba(237,250,245,.88));
  box-shadow:
    0 10px 28px rgba(17,75,61,.075),
    0 1px 0 rgba(255,255,255,.8) inset;
}
.littleminty-companion-actions button:first-child > span {
  background:linear-gradient(145deg,#dffbed,#d8f7ff);
  color:#12745f;
  box-shadow:0 6px 16px rgba(73,227,179,.14);
}
.littleminty-companion-actions button:nth-child(2) > span {
  background:linear-gradient(145deg,#e0f7ff,#eee9ff);
  color:#5f55b8;
  box-shadow:0 6px 16px rgba(142,124,255,.12);
}
.littleminty-companion-actions button:hover {
  border-color:rgba(18,110,89,.22);
  background:
    linear-gradient(150deg,#ffffff,#eafff7);
  box-shadow:
    0 14px 34px rgba(17,75,61,.11),
    0 0 22px rgba(73,227,179,.07);
}
.littleminty-log {
  margin:3px 12px 0;
  border:1px solid rgba(18,110,89,.07);
  border-radius:20px;
  background:
    radial-gradient(circle at 0% 0%,rgba(73,227,179,.10),transparent 36%),
    linear-gradient(180deg,rgba(255,255,255,.66),rgba(235,247,243,.72));
}
.littleminty-msg--assistant .littleminty-bubble {
  border-color:rgba(19,141,114,.10);
  background:linear-gradient(145deg,#ffffff,#effaf6);
  color:#1d332b;
}
.littleminty-msg--user .littleminty-bubble {
  border-color:rgba(103,85,201,.12);
  background:linear-gradient(145deg,#f5f2ff,#edf8ff);
  color:#28293c;
}
.littleminty-compose { padding:12px 16px 15px; }
#littleminty-input {
  border-color:rgba(19,141,114,.14);
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 20px rgba(18,73,60,.045);
}
#littleminty-input:focus {
  border-color:rgba(19,141,114,.36);
  box-shadow:
    0 0 0 4px rgba(73,227,179,.12),
    0 8px 22px rgba(18,73,60,.06);
}
#littleminty-send {
  background:linear-gradient(135deg,#137f68 0%,#168aa3 58%,#6657c6 125%);
  box-shadow:0 10px 24px rgba(20,114,94,.20);
}
#littleminty-send:hover { transform:translateY(-1px); }
.littleminty-nudge {
  border-color:rgba(91,220,240,.34);
  background:linear-gradient(135deg,#173f35,#233758 72%,#3a3267);
  color:#f4fffb;
  box-shadow:0 16px 42px rgba(7,30,25,.34),0 0 22px rgba(73,227,179,.10);
}
.littleminty-nudge::after {
  border-color:rgba(91,220,240,.26);
  background:#233758;
}
.littleminty-coachmark {
  border-color:rgba(91,220,240,.24);
  background:
    radial-gradient(circle at 5% 0%,rgba(73,227,179,.22),transparent 34%),
    radial-gradient(circle at 100% 100%,rgba(142,124,255,.12),transparent 30%),
    rgba(249,252,251,.97);
  color:#173029;
  box-shadow:0 26px 72px rgba(4,30,24,.28);
}
.littleminty-coachmark__copy span { color:#5d7069; }
.littleminty-coachmark__actions button {
  border-color:rgba(20,91,72,.12);
  background:#fff;
  color:#25443a;
}
.littleminty-coachmark__actions .littleminty-coachmark__primary {
  border:0;
  background:linear-gradient(135deg,#16886f,#168ca1);
  color:#f5fffb;
}
