/* Sugerencias: botón en la barra y ventana de vidrio (idea 3). Usa los colores de la app, así sigue el tema claro y oscuro. */
@property --sga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* tarjeta de la barra: misma forma que la de «Unidad», en amarillo claro; título verde oscuro y lamparita negra */
.sug-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background-color: #f6e9a4; background-image: linear-gradient(180deg, #fbf0b8, #f6e9a4); color: #2f4f3a; box-shadow: 0 12px 20px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .7); transition: transform .2s var(--ease);
}
/* al pasar el mouse: sube un poco y el resplandor dorado lo recorre, pero el amarillo de fondo se mantiene (el resplandor va encima) */
.sug-card:hover { transform: translateY(-1px); background-image: radial-gradient(130px circle at var(--x, 50%) 50%, rgb(230 190 55 / .6), rgb(230 190 55 / .2) 45%, transparent 72%), linear-gradient(180deg, #fbf0b8, #f6e9a4) !important; }
.sug-card:active { transform: scale(.98); }
.sug-card .av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #efdc84; box-shadow: inset 0 -2px 0 rgb(140 110 20 / .22); }
.sug-card .av svg { width: 21px; height: 21px; fill: none; stroke: #000; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sug-tx b { display: block; font-size: 14px; font-weight: 650; line-height: 1.25; color: #2f4f3a; }
.sug-tx small { display: block; font-size: 11.5px; color: #5b5f54; }
.sug-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #243d2c; color: #f6f0dc; font: 700 11px/20px system-ui, sans-serif; text-align: center; flex: none; }
.sug-n[hidden] { display: none; }
.app[data-rail="min"] .sug-card { justify-content: center; padding: 6px; }
.app[data-rail="min"] .sug-tx { display: none; }
.app[data-rail="min"] .sug-n { position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; margin: 0; }
/* Sonido y Tema con relieve (sombra abajo y filo de luz arriba) */
.tiles .tl-btn { box-shadow: 0 9px 16px -9px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .2), inset 0 -1px 0 rgb(0 0 0 / .2); }
.tiles .tl-btn:hover { box-shadow: 0 14px 22px -10px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .28); }
/* en el celular la tarjeta de la barra lateral no se ve: botón redondo en la barra de arriba (a la derecha del logo), mismo amarillo y lamparita negra */
.sug-m { display: none; }
@media (max-width: 880px) {
  .rail { position: relative; }
  .sug-m { display: grid; place-items: center; position: absolute; z-index: 3; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(180deg, #fbf0b8, #f3e394); color: #000; box-shadow: 0 0 0 2px rgb(246 240 220 / .25), 0 8px 14px -8px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .7); }
  .sug-m svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .sug-m .sug-n { position: absolute; top: -4px; right: -4px; margin: 0; }
}

.sug-vel { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 12px; box-sizing: border-box; background: rgb(26 28 26 / .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.sug-vel.o { opacity: 1; pointer-events: auto; }
.sug-md {
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: min(450px, 100%); max-height: calc(100dvh - 24px); overflow: visible; box-sizing: border-box; padding: 20px 20px 14px; border-radius: 24px; color: var(--ink);
  background: linear-gradient(160deg, rgb(255 253 244 / .94), rgb(239 232 207 / .92)); background: linear-gradient(160deg, light-dark(rgb(255 253 244 / .94), rgb(43 47 42 / .94)), light-dark(rgb(239 232 207 / .92), rgb(34 38 33 / .94)));
  box-shadow: 0 28px 70px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 1px rgb(198 176 106 / .6); box-shadow: 0 28px 70px rgb(0 0 0 / .5), inset 0 1px 0 light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .1)), 0 0 0 1px rgb(198 176 106 / .6);
  transform: translateY(26px) scale(.94); transition: transform .55s cubic-bezier(.2, 1.2, .3, 1);
}
.sug-vel.o .sug-md { transform: none; }
.sug-md::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none; background: conic-gradient(from var(--sga), transparent 0 72%, #c6b06a 86%, #fff3b8 93%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sug-vuelta 4s linear infinite; }
@keyframes sug-vuelta { to { --sga: 360deg; } }
.sug-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sug-x:hover { background: rgb(47 79 58 / .14); }
.sug-in { flex: 1 1 auto; min-height: 0; margin: 0 -8px; padding: 6px 8px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sug-hd, .sug-tabs { flex: none; }
.sug-hd { display: flex; gap: 12px; align-items: center; margin: 0 28px 10px 0; }
.sug-ring { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #2f4f3a, #4a6b50); color: #f6f0dc; box-shadow: 0 0 0 2px var(--gold-2); }
.sug-ring svg { width: 22px; height: 22px; }
.sug-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-2); opacity: 0; animation: sug-onda 2.4s ease-out infinite; }
@keyframes sug-onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.sug-md svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sug-hd h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.15; }
.sug-hd small { font-size: 12px; color: var(--muted); }
.sug-adm { display: inline-flex; gap: 5px; align-items: center; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; background: #e5edcc; background: light-dark(#e5edcc, #34401f); color: light-dark(#41531f, #d6e6a8); }
.sug-adm svg { width: 13px; height: 13px; }
.sug-ex { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: rgb(198 176 106 / .16); }
.sug-tabs { display: flex; gap: 0; margin: 0 0 12px; padding: 3px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 8%, transparent); }
.sug-tabs button { flex: 1; padding: 7px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 12.5px system-ui, sans-serif; cursor: pointer; transition: background .3s, color .3s; }
.sug-tabs button.on { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 12px -8px var(--brand); }
.sug-lab { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sug-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.sug-chip { display: grid; justify-items: center; gap: 3px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 600 12.5px system-ui, sans-serif; cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s, box-shadow .25s; }
.sug-chip svg { width: 20px; height: 20px; color: var(--brand); }
.sug-chip small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.sug-chip:hover { transform: translateY(-2px); }
.sug-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 18px -10px var(--brand); }
.sug-chip.on svg, .sug-chip.on small { color: var(--brand-ink); }
.sug-ta { position: relative; }
.sug-ta textarea { width: 100%; box-sizing: border-box; min-height: 104px; resize: none; padding: 11px 12px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 13.5px/1.45 system-ui, sans-serif; }
.sug-ta textarea:focus, .sug-rw input:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.sug-ta .c { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--muted); }
.sug-er { min-height: 15px; margin-top: 6px; font-size: 12px; color: #b5382a; color: light-dark(#b5382a, #f0a89d); }
.sug-rw { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.sug-rw input { width: 134px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 13px system-ui, sans-serif; }
.sug-env { margin-left: auto; display: flex; gap: 7px; align-items: center; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 600 13.5px system-ui, sans-serif; cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.sug-env svg { width: 17px; height: 17px; }
.sug-env:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 20px -10px var(--brand); }
.sug-env:disabled { opacity: .6; cursor: progress; }
.sug-pv { display: flex; gap: 7px; margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.sug-pv svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.sug-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sug-gr { padding: 14px 8px 4px; text-align: center; }
.sug-gr svg { width: 74px; height: 74px; }
.sug-gr circle { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-dasharray: 226; stroke-dashoffset: 226; animation: sug-trazo .7s .1s ease forwards; }
.sug-gr path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sug-trazo .5s .6s ease forwards; }
@keyframes sug-trazo { to { stroke-dashoffset: 0; } }
.sug-gr h4 { margin: 10px 0 4px; font-size: 18px; font-weight: 600; }
.sug-gr p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sug-gr .b2 { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px system-ui, sans-serif; cursor: pointer; }
.sug-fil { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.sug-fil button { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 12px system-ui, sans-serif; cursor: pointer; }
.sug-fil button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.sug-hl { display: grid; gap: 9px; }
.sug-hi { overflow: hidden; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; transition: opacity .45s, transform .45s, max-height .45s, padding .45s, margin .45s, border-width .45s; max-height: 400px; }
.sug-hi .tp { display: flex; gap: 7px; align-items: center; margin-bottom: 4px; font-size: 11.5px; color: var(--muted); }
.sug-tag { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sug-tag.Idea { background: #e5edcc; background: light-dark(#e5edcc, #34401f); color: light-dark(#41531f, #d6e6a8); }
.sug-tag.Error { background: #f6dcd6; background: light-dark(#f6dcd6, #4d2a24); color: light-dark(#7d2a1e, #f3c4bb); }
.sug-tag.Otra { background: #e6e2d1; background: light-dark(#e6e2d1, #383a2f); color: light-dark(#4b4a3c, #d5d2bd); }
.sug-hi .ac { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.sug-ar { display: flex; gap: 5px; align-items: center; padding: 4px 12px; border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent); border-radius: 999px; background: transparent; color: var(--brand); font: 600 12px system-ui, sans-serif; cursor: pointer; }
.sug-ar svg { width: 14px; height: 14px; }
.sug-ar:hover { background: var(--brand); color: var(--brand-ink); }
.sug-cf { font-size: 12px; color: var(--muted); }
.sug-cf button { margin-left: 6px; padding: 4px 11px; border: 0; border-radius: 999px; font: 600 12px system-ui, sans-serif; cursor: pointer; }
.sug-cf .si { background: #b5382a; color: #fff; }
.sug-cf .no { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink); }
.sug-hi.sale { opacity: 0; transform: translateX(40px) scale(.94); max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
.sug-vacio { padding: 26px 10px; text-align: center; font-size: 13px; color: var(--muted); }
.sug-vacio svg { display: block; width: 32px; height: 32px; margin: 0 auto 6px; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .sug-md, .sug-md::before, .sug-ring::after, .sug-gr circle, .sug-gr path { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* en pantallas bajas, la tarjeta se compacta igual que la de «Unidad» (esta hoja carga después de barra.css, por eso va acá) */
@media (min-width: 881px) and (max-height: 920px) { .sug-card { padding-top: 6px; padding-bottom: 6px; } }
@media (min-width: 881px) and (max-height: 740px) { .sug-card { padding-top: 4px; padding-bottom: 4px; } }

@media (pointer: coarse) { .sug-ta textarea, .sug-rw input { font-size: 16px; } }
