/* iCifra 0.8.43 — home dashboard: main column is a stack (featured list + panels that app.js may move under it).
   The grid keeps align-items:start, so neither column is stretched; panels keep their natural height. */
.dashboard-main{display:flex;flex-direction:column;gap:8px;min-width:0}
/* sidebar panels look the same wherever they are placed */
.dashboard-main .side-panel .dashboard-heading{margin-bottom:10px}
.dashboard-main .side-panel h2{font-size:15px;gap:8px}

/* Secondary home actions share the page palette and remain easy to tap. */
.home-more{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 0;padding:16px 0 4px;border-top:1px solid var(--line)}
.home-more-title{margin-right:auto;color:var(--muted);font-size:13px;font-weight:600}
.home-more button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;line-height:1.3;cursor:pointer}
.home-more button:hover{border-color:var(--accent-2);background:var(--surface-2)}
.home-more button:focus-visible{outline:3px solid var(--accent-2);outline-offset:3px}
@media(max-width:599px){.home-more{gap:8px}.home-more-title{flex-basis:100%;margin:0 0 2px}.home-more button{flex:1 1 auto;padding:10px 12px}}
.home-beta-notice{margin:12px 16px 0;padding:8px 12px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.4}
.feedback-widget{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:80;width:240px;padding:14px;border:1px solid var(--accent-2);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 6px 24px #0005;font-size:13px}
.feedback-intro strong{display:block;padding-right:24px;color:var(--accent);font-size:13px}.feedback-intro p{margin:6px 0 10px;font-size:12px;line-height:1.45;color:var(--muted)}
.feedback-open{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;padding:8px 12px;border:1px solid var(--accent-2);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:14px;font-weight:700}
.feedback-minimize{position:absolute;right:5px;top:3px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);font-size:23px}
.feedback-widget.is-compact{width:auto;padding:0;border:0;box-shadow:none;background:none}.feedback-widget.is-compact .feedback-intro,.feedback-widget.is-compact .feedback-minimize{display:none}.feedback-widget.is-compact .feedback-open{min-width:44px;width:44px;height:44px;padding:0;background:var(--surface);box-shadow:0 4px 16px #0005;font-size:23px}.feedback-widget.is-compact .feedback-open span{display:none}
.feedback-form label{display:block;margin:16px 0 7px;font-size:14px;font-weight:600}.feedback-form textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:130px;max-height:35vh;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:16px}.feedback-form p{color:var(--muted);line-height:1.5}.feedback-form .feedback-delivery{font-size:12px}.feedback-actions{display:flex;gap:8px;flex-wrap:wrap}.feedback-actions button{min-height:44px}.feedback-form #feedbackStatus{font-size:13px}
body:has(.metronome-pill:not([hidden])) .feedback-widget{bottom:86px}
@media(max-width:599px){.feedback-widget{right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:210px;padding:10px}.home-beta-notice{margin:10px 0 0}.feedback-widget.is-compact{padding:0}}
@media print{.feedback-widget,.home-beta-notice{display:none!important}}

/* 0.8.107 — "Mostrar outra música": discreet per-card swap on the discovery tabs, with a short fade. */
.dashboard-swap{display:grid;place-items:center;flex-shrink:0;width:36px;min-height:44px;padding:0;border:0;border-radius:10px;background:none;color:var(--muted);font-size:17px;line-height:1;opacity:.7;cursor:pointer;transition:opacity .15s,color .15s,background-color .15s}
.dashboard-swap:hover,.dashboard-swap:focus-visible{opacity:1;color:var(--accent-2);background:var(--surface-2)}
#featuredGrid .dashboard-song{transition:opacity .14s ease,transform .18s ease}
#featuredGrid .dashboard-song.is-leaving{opacity:0;transform:scale(.985)}
#featuredGrid .dashboard-song.is-entering{opacity:0;transform:translateY(4px)}
@media(prefers-reduced-motion:reduce){#featuredGrid .dashboard-song{transition:none}}
@media(max-width:600px){.dashboard-swap{width:30px;font-size:16px}}

/* 0.8.107 — "Vistas recentemente": one compact row per song (cover left, title/artist, date right); no reserved height. */
#dashboardRecent .recent-entry{display:flex;align-items:center;gap:10px;margin:0;padding:6px 0;border-bottom:1px solid #243c52}
#dashboardRecent .recent-entry:first-child{padding-top:0}
#dashboardRecent .recent-entry:last-child{padding-bottom:0;border-bottom:0}
#dashboardRecent .recent-entry .dashboard-song{flex:1 1 auto;min-width:0;min-height:0;padding:0;gap:0}
#dashboardRecent .recent-entry .dashboard-song-open{min-height:44px;gap:12px}
#dashboardRecent .recent-entry .dashboard-art{flex-shrink:0;width:44px;height:44px}
#dashboardRecent .recent-entry .dashboard-identity{min-width:0}
#dashboardRecent .recent-entry .dashboard-identity strong,#dashboardRecent .recent-entry .dashboard-identity>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#dashboardRecent .recent-entry time{flex-shrink:0;font-size:11px;line-height:1.3;white-space:nowrap}
[data-theme="light"] #dashboardRecent .recent-entry{border-color:var(--line)}
