:root {
    --primary-color: #0f4774;
    --primary-light: #1f6faf;
    --secondary-color: #e6347f;
    --accent-color: #f4c542;
    --bg-dark: #eef4f8;
    --surface: #ffffff;
    --surface-soft: #f8fbfd;
    --text-light: #233142;
    --text-muted: #667085;
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(31, 111, 175, 0.16);
    --shadow-light: 0 12px 38px rgba(15, 71, 116, 0.12);
    --danger: #d92d20;
    --success: #079455;
    --warning: #b54708;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', Arial, sans-serif; }
body { background: linear-gradient(135deg, #f7fbff 0%, #eef4f8 52%, #fff4fb 100%); color: var(--text-light); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { user-select: none; }
a { color: inherit; }

.container { display: flex; min-height: 100vh; }
.sidebar { width: 266px; background: linear-gradient(180deg, #0f4774 0%, #173b68 48%, #683066 100%); padding: 24px 20px; color: white; position: fixed; height: 100vh; overflow-y: auto; z-index: 30; }
.logo-section { text-align: center; margin-bottom: 34px; }
.logo-img { width: 116px; height: 116px; object-fit: contain; border-radius: 28px; border: 3px solid rgba(255,255,255,0.32); background: rgba(255,255,255,0.92); padding: 10px; }
.brand-name { display: block; margin-top: 14px; font-weight: 700; color: rgba(255,255,255,0.88); }
.sidebar ul { list-style: none; display: grid; gap: 10px; }
.sidebar li { padding: 15px 16px; cursor: pointer; border-radius: 14px; transition: 0.25s ease; background: rgba(255,255,255,0.09); font-weight: 600; }
.sidebar li:hover, .sidebar li.active { background: rgba(255,255,255,0.20); transform: translateX(6px); }

.main-content { flex: 1; margin-left: 266px; padding: 90px 44px 46px; min-width: 0; }
.content-section { display: none; }
.content-section.active { display: block; }
.section-header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.section-header-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; color: #213047; }
h2 { font-size: 22px; margin-bottom: 14px; color: #213047; }
.section-header p, .welcome-row p { color: var(--text-muted); margin-top: 8px; }
.welcome-row { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.mascot-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); background: white; }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 22px; border: 1px solid var(--glass-border); box-shadow: var(--shadow-light); padding: 28px; }
.compact-panel { padding: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stat-card { background: var(--surface); padding: 22px; border-radius: 18px; box-shadow: 0 6px 18px rgba(15,71,116,0.07); text-align: center; border: 1px solid rgba(23,105,170,0.08); }
.stat-card h3 { color: var(--primary-color); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.stat-card p { font-size: 30px; font-weight: 700; margin-top: 8px; }
.stat-card .small-stat { font-size: 14px; font-weight: 400; color: var(--text-muted); line-height: 1.55; }
.subtle-card { text-align: left; }

.btn-primary, .btn-secondary, .btn-whatsapp, .btn-danger { border: none; padding: 11px 18px; border-radius: 12px; cursor: pointer; font-weight: 700; transition: 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary-light); color: white; box-shadow: 0 8px 18px rgba(31,111,175,.18); }
.btn-primary:hover { background: var(--primary-color); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 2px solid var(--primary-light); color: var(--primary-light); }
.btn-secondary:hover { background: var(--primary-light); color: white; transform: translateY(-1px); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-danger { background: rgba(217,45,32,.08); color: var(--danger); border: 1px solid rgba(217,45,32,.22); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-small { padding: 7px 10px; border-radius: 9px; font-size: 12px; }

.global-actions { position: fixed; top: 20px; right: 24px; display: flex; gap: 10px; z-index: 50; align-items: center; }
.btn-icon { background: white; border: 1px solid var(--glass-border); border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-light); transition: .2s ease; }
.btn-icon img { width: 24px; height: 24px; object-fit: contain; }
.btn-icon:hover { transform: scale(1.08); background: var(--primary-color); }
.btn-icon:hover img { filter: brightness(0) invert(1); }
.btn-logout { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; background: white; color: var(--primary-color); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-light); border: 1px solid var(--glass-border); }
.btn-logout:hover { background: var(--primary-color); color: white; }

.toolbar-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search-input, .filter-select, input, select, textarea { border: 1px solid #d8e0ea; background: white; border-radius: 12px; padding: 12px 14px; color: var(--text-light); outline: none; width: 100%; }
.search-input { flex: 1; min-width: 260px; }
.filter-select { width: 245px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(31,111,175,.12); }
textarea { resize: vertical; min-height: 78px; }

.glass-table-container { background: white; border-radius: 18px; overflow: auto; box-shadow: 0 6px 18px rgba(15,71,116,.07); border: 1px solid rgba(23,105,170,.08); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid #edf1f5; vertical-align: top; }
th { background: #f8fbfd; color: var(--primary-color); font-size: 12px; text-transform: uppercase; letter-spacing: .55px; }
tr:last-child td { border-bottom: none; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.empty-state, .muted { color: var(--text-muted); }
.empty-state { padding: 18px; }
.mini-list { display: grid; gap: 10px; }
.mini-item { padding: 12px 14px; background: #f8fbfd; border: 1px solid rgba(23,105,170,.10); border-radius: 14px; }

.badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #edf6ff; color: var(--primary-color); white-space: nowrap; }
.badge.status-Ativo { background: #eafaf2; color: #067647; }
.badge.status-Inadimplente, .badge.status-Atrasado { background: #fff1f0; color: #b42318; }
.badge.status-Lead { background: #fff7e6; color: #b54708; }
.badge.status-Pausado { background: #f2f4f7; color: #475467; }
.badge.status-Encerrado { background: #f2f4f7; color: #667085; }
.badge.status-Pago { background: #eafaf2; color: #067647; }
.badge.status-Pendente, .badge.status-Parcial { background: #fff7e6; color: #b54708; }

.modal { display: none; position: fixed; inset: 0; background: rgba(20,31,43,.58); justify-content: center; align-items: center; z-index: 1000; padding: 22px; backdrop-filter: blur(3px); }
.modal.is-open { display: flex; }
.modal-content { width: min(620px, 96vw); max-height: 92vh; overflow-y: auto; }
.modal-content h2 { margin-bottom: 18px; }
.modal-buttons { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.compact-form { margin-bottom: 22px; padding: 16px; border: 1px solid rgba(23,105,170,.08); background: #f8fbfd; border-radius: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.profile-modal { align-items: flex-start; }
.profile-content { width: min(1220px, 96vw); max-height: 92vh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.profile-header { padding: 24px 26px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid rgba(23,105,170,.10); background: white; }
.profile-header p { color: var(--text-muted); margin-top: 4px; }
.profile-tabs { display: flex; gap: 8px; padding: 14px 18px; overflow-x: auto; background: #f8fbfd; border-bottom: 1px solid rgba(23,105,170,.10); }
.profile-tab { border: 1px solid transparent; background: transparent; color: var(--text-muted); padding: 10px 13px; border-radius: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.profile-tab.active, .profile-tab:hover { background: white; color: var(--primary-color); border-color: rgba(23,105,170,.16); box-shadow: 0 4px 12px rgba(15,71,116,.06); }
.profile-panel { display: none; padding: 24px 26px; overflow-y: auto; }
.profile-panel.active { display: block; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.profile-info-card { background: #f8fbfd; border: 1px solid rgba(23,105,170,.10); border-radius: 16px; padding: 14px; }
.profile-info-card .label { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .45px; font-weight: 800; margin-bottom: 6px; }
.profile-info-card .value { font-weight: 600; white-space: pre-wrap; }
.inner-table { margin-top: 16px; box-shadow: none; }
.inner-table table { min-width: 680px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.pill { padding: 8px 12px; border-radius: 999px; background: #edf6ff; color: var(--primary-color); font-weight: 800; font-size: 12px; }
.message-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.message-output { min-height: 180px; margin-bottom: 14px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { border-left: 4px solid var(--primary-light); background: #f8fbfd; padding: 12px 14px; border-radius: 12px; }
.timeline-item small { color: var(--text-muted); display: block; margin-bottom: 4px; }

.contract-selector, .editor-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contract-panel { overflow-x: auto; }
.hidden { display: none !important; }
.paper { background: white; color: #222; width: 210mm; min-height: 297mm; padding: 18mm 17mm; margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,.09); line-height: 1.5; font-family: Arial, sans-serif; font-size: 12.2px; }
.paper p { text-align: justify; margin-bottom: 12px; }
.contract-logo { display: block; max-width: 118px; margin: 0 auto 18px; }
.contract-title { text-align: center; font-size: 18px; margin-bottom: 8px; }
.contract-subtitle { text-align: center; font-size: 14px; margin-bottom: 20px; }
.contract-section { page-break-inside: avoid; break-inside: avoid; }
.editable-field { display: inline-block; min-width: 92px; padding: 0 4px; border-bottom: 1px dashed #222; background-color: #f0f8ff; color: #000; line-height: 1.5; }
.editable-field:focus { outline: 2px solid rgba(23,105,170,.25); background: #fff; }
.signature-block { margin-top: 38px; text-align: center; page-break-inside: avoid; break-inside: avoid; }
.signature-block p { text-align: center; }

.boletim-panel { text-align: center; overflow-x: auto; }
.report-card { position: relative; display: inline-block; width: min(800px, 100%); aspect-ratio: 2 / 3; overflow: hidden; background: white; box-shadow: 0 10px 26px rgba(15,71,116,.12); }
.report-card-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.boletim-input { position: absolute; z-index: 10; border: 1px solid rgba(23,105,170,.36); background: rgba(255,255,255,.88); color: #263445; font-weight: 700; text-align: center; padding: 2px 6px; box-sizing: border-box; border-radius: 7px; font-size: clamp(9px, 1.38vw, 14px); line-height: 1.1; outline: none; }
.boletim-input:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(231,43,123,.18); background: white; }
.field-student-name { top: 35.15%; left: 30.5%; width: 60.2%; height: 2.35%; text-align: left; }
.field-month { top: 38.65%; left: 20.7%; width: 70.2%; height: 2.35%; text-align: left; }
.score-input { width: 10.9%; height: 2.65%; }
.cell-c1 { left: 37.0%; } .cell-c2 { left: 52.2%; } .cell-c3 { left: 67.1%; } .cell-c4 { left: 81.7%; }
.row-participation { top: 47.95%; } .row-english-use { top: 52.58%; } .row-homework { top: 57.25%; }
.report-card.exporting .boletim-input { border-color: transparent !important; background: transparent !important; box-shadow: none !important; color: #263445 !important; border-radius: 0 !important; }
.centered-actions { justify-content: center; }

.info-box { padding: 14px 16px; border-radius: 14px; background: #fff7e6; border: 1px solid #fedf89; color: #7a4300; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
#toast-container { position: fixed; top: 86px; right: 24px; z-index: 2000; display: grid; gap: 10px; }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--primary-color); color: white; box-shadow: var(--shadow-light); max-width: 360px; font-weight: 700; }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.success { background: var(--success); }

@media (max-width: 960px) {
    .container { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; padding: 18px; }
    .sidebar ul { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .sidebar li:hover, .sidebar li.active { transform: none; }
    .main-content { margin-left: 0; padding: 92px 18px 30px; }
    .global-actions { right: 12px; top: 12px; }
    .section-header { flex-direction: column; }
    .section-header-actions { justify-content: flex-start; width: 100%; }
    .paper { width: 100%; min-width: 720px; }
}

@media (max-width: 680px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .modal { padding: 10px; }
    .profile-header { flex-direction: column; }
    .filter-select { width: 100%; }
}

@media print {
    body { background: white; }
    .sidebar, .global-actions, .section-header, .contract-selector, .editor-actions, .modal, #toast-container { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .content-section { display: block !important; }
    #documento-area { box-shadow: none !important; width: 210mm !important; min-height: 297mm !important; margin: 0 !important; }
}


/* Versão 2.1 — Hoje na TMY */
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(230, 52, 127, .10);
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.today-hero {
    padding: 20px;
    border: 1px solid rgba(23,105,170,.10);
    border-radius: 24px;
    background: rgba(255,255,255,.60);
    box-shadow: 0 10px 30px rgba(15,71,116,.08);
}
.today-stats .stat-card:nth-child(3) p,
.today-stats .stat-card:nth-child(5) p,
.today-stats .stat-card:nth-child(6) p,
.today-stats .stat-card:nth-child(7) p {
    color: var(--primary-light);
}
.today-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    gap: 20px;
}
.today-card {
    min-height: 210px;
    position: relative;
    overflow: hidden;
}
.today-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--primary-light);
    opacity: .82;
}
.today-card.is-priority::before { background: var(--secondary-color); }
.today-card.is-warning::before { background: var(--warning); }
.today-card.is-danger::before { background: var(--danger); }
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.panel-header h2 { margin-bottom: 0; }
.count-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf6ff;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 13px;
}
.mini-item {
    position: relative;
}
.mini-item strong {
    display: block;
    line-height: 1.35;
}
.mini-item .item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.mini-item.danger {
    background: #fff6f5;
    border-color: rgba(217,45,32,.18);
}
.mini-item.warning {
    background: #fffbeb;
    border-color: rgba(181,71,8,.18);
}
.mini-item.success {
    background: #f0fdf4;
    border-color: rgba(7,148,85,.16);
}
.mini-item.info {
    background: #f0f7ff;
    border-color: rgba(31,111,175,.16);
}
.today-note {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}
@media (max-width: 780px) {
    .today-actions { align-items: stretch; flex-direction: column; }
    .quick-actions-row { justify-content: flex-start; }
    .today-grid { grid-template-columns: 1fr; }
}


/* Versão 2.1.1 — Dashboard compacto */
.today-card {
    height: 350px;
    display: flex;
    flex-direction: column;
}
.today-card .panel-header {
    flex: 0 0 auto;
}
.today-card .mini-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    align-content: start;
}
.today-card .mini-list::-webkit-scrollbar,
.dashboard-list-body::-webkit-scrollbar {
    width: 8px;
}
.today-card .mini-list::-webkit-scrollbar-thumb,
.dashboard-list-body::-webkit-scrollbar-thumb {
    background: rgba(23,105,170,.22);
    border-radius: 999px;
}
.dashboard-card-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding: 10px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.72), #fff 48%);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.dashboard-list-modal {
    align-items: flex-start;
}
.dashboard-list-content {
    width: min(860px, 96vw);
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.dashboard-list-header {
    padding: 24px 26px;
    background: white;
    border-bottom: 1px solid rgba(23,105,170,.10);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.dashboard-list-header h2 {
    margin-bottom: 4px;
}
.dashboard-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.dashboard-list-body {
    padding: 22px 26px 26px;
    overflow-y: auto;
    min-height: 180px;
}
.dashboard-list-body .mini-item {
    padding: 14px 16px;
}

@media (max-width: 780px) {
    .today-card { height: 330px; }
    .dashboard-list-header { flex-direction: column; }
    .dashboard-modal-actions { justify-content: flex-start; }
}

/* Versão 2.2 — Pipeline de novos alunos */
.pipeline-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(280px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}
.lead-column {
    min-height: 520px;
    max-height: 72vh;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(23,105,170,.12);
    border-radius: 22px;
    box-shadow: var(--shadow-light);
    padding: 16px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}
.lead-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(23,105,170,.10);
}
.lead-column-header h2 {
    margin: 0;
    font-size: 17px;
}
.lead-list {
    display: grid;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}
.lead-list::-webkit-scrollbar,
.pipeline-board::-webkit-scrollbar {
    height: 9px;
    width: 8px;
}
.lead-list::-webkit-scrollbar-thumb,
.pipeline-board::-webkit-scrollbar-thumb {
    background: rgba(23,105,170,.24);
    border-radius: 999px;
}
.lead-card {
    background: #fff;
    border: 1px solid rgba(23,105,170,.10);
    border-left: 5px solid var(--primary-light);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(15,71,116,.07);
}
.lead-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.lead-card-top strong {
    display: block;
    line-height: 1.25;
}
.lead-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}
.lead-meta {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
}
.lead-note {
    background: #f8fbfd;
    border: 1px solid rgba(23,105,170,.08);
    border-radius: 12px;
    padding: 9px 10px;
    color: var(--text-muted);
    font-size: 12px;
    white-space: pre-wrap;
}
.lead-status-row select {
    padding: 9px 10px;
    font-size: 13px;
}
.lead-actions {
    border-top: 1px solid rgba(23,105,170,.08);
    padding-top: 10px;
}
.pipeline-empty {
    grid-column: 1 / -1;
}
.small-empty {
    font-size: 13px;
    padding: 12px;
}
.small-pill {
    width: fit-content;
    font-size: 11px;
    padding: 5px 9px;
}
.lead-card.lead-status-Novo-contato { border-left-color: var(--warning); }
.lead-card.lead-status-Em-conversa { border-left-color: var(--primary-light); }
.lead-card.lead-status-Aula-experimental-marcada { border-left-color: var(--secondary-color); }
.lead-card.lead-status-Aula-realizada { border-left-color: #6941c6; }
.lead-card.lead-status-Proposta-enviada { border-left-color: var(--accent-color); }
.lead-card.lead-status-Fechou { border-left-color: var(--success); }
.lead-card.lead-status-Não-fechou { border-left-color: #667085; }
.badge.lead-status-Novo-contato { background: #fff7e6; color: #b54708; }
.badge.lead-status-Em-conversa { background: #edf6ff; color: var(--primary-color); }
.badge.lead-status-Aula-experimental-marcada { background: #fff0f6; color: var(--secondary-color); }
.badge.lead-status-Aula-realizada { background: #f4f3ff; color: #6941c6; }
.badge.lead-status-Proposta-enviada { background: #fffbe6; color: #946900; }
.badge.lead-status-Fechou { background: #eafaf2; color: #067647; }
.badge.lead-status-Não-fechou { background: #f2f4f7; color: #667085; }

@media (max-width: 1100px) {
    .pipeline-board { grid-template-columns: repeat(7, minmax(260px, 86vw)); }
    .lead-column { max-height: 68vh; }
}


/* Aula Experimental 2.3 */
.experimental-board .lead-column,
.pipeline-board .experimental-column {
    min-width: 310px;
}
.experimental-card {
    background: #fff;
    border: 1px solid rgba(125, 95, 255, 0.14);
    border-left: 5px solid var(--primary-color);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.08);
}
.experimental-card + .experimental-card { margin-top: 12px; }
.experimental-status-Marcada { border-left-color: #7d5fff; }
.experimental-status-Confirmada { border-left-color: #1e90ff; }
.experimental-status-Realizada { border-left-color: #20bf6b; }
.experimental-status-Faltou { border-left-color: #fa8231; }
.experimental-status-Follow-up { border-left-color: #f7b731; }
.experimental-status-Convertida { border-left-color: #2ecc71; }
.experimental-status-Não-fechou { border-left-color: #eb3b5a; }
.badge.experimental-status-Marcada,
.badge.experimental-status-Confirmada,
.badge.experimental-status-Realizada,
.badge.experimental-status-Faltou,
.badge.experimental-status-Follow-up,
.badge.experimental-status-Convertida,
.badge.experimental-status-Não-fechou {
    background: rgba(125, 95, 255, 0.12);
    color: #4b35b8;
}
.badge.experimental-status-Convertida,
.badge.experimental-status-Realizada { background: rgba(46, 204, 113, 0.12); color: #1f8f4f; }
.badge.experimental-status-Não-fechou { background: rgba(235, 59, 90, 0.12); color: #b12a40; }
.badge.experimental-status-Faltou,
.badge.experimental-status-Follow-up { background: rgba(247, 183, 49, 0.16); color: #946300; }

/* Central de Mensagens 2.4 */
.messages-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 20px;
    align-items: start;
}
.message-generator-panel {
    grid-column: 1 / -1;
}
.message-template-list {
    max-height: 560px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}
.message-template-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(125, 95, 255, 0.18);
    background: rgba(255,255,255,0.88);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: .2s ease;
    color: var(--text-light);
}
.message-template-card:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(125,95,255,.12);
}
.message-template-card span {
    display: inline-flex;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.message-template-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}
.message-template-card small {
    display: block;
    color: #666d7a;
    line-height: 1.45;
}
.variable-help {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(125,95,255,.08);
    color: #575d6a;
    font-size: 12px;
}
.variable-help strong {
    width: 100%;
    color: var(--primary-color);
}
.variable-help span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(125,95,255,.14);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.recipient-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(125,95,255,.16);
    color: #59606f;
}
.recipient-preview strong {
    color: var(--text-light);
}
.recipient-preview span {
    display: inline-flex;
    padding: 5px 9px;
    background: rgba(125,95,255,.08);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.compact-toolbar {
    margin-bottom: 14px;
}
.field-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #555c69;
}
@media (max-width: 1100px) {
    .messages-workspace { grid-template-columns: 1fr; }
}

/* Boletim IA 2.5 */
.compact-section-header { margin-bottom: 20px; }
.boletim-ia-panel { text-align: left; }
.boletim-ia-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: start;
}
.boletim-ia-form {
    min-width: 0;
}
.boletim-ia-side {
    display: grid;
    gap: 16px;
}
.reference-card {
    background: #ffffff;
    border: 1px solid rgba(23,105,170,.12);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15,71,116,.08);
    display: grid;
    gap: 12px;
}
.reference-card img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 14px;
    background: #f8fbfd;
    border: 1px solid rgba(23,105,170,.08);
}
.reference-card strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.reference-card p {
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
}
.reference-card a {
    color: var(--secondary-color);
    font-weight: 800;
    text-decoration: none;
}
.reference-card a:hover { text-decoration: underline; }
.score-board-editor {
    background: #f8fbfd;
    border: 1px solid rgba(23,105,170,.10);
    border-radius: 18px;
    padding: 16px;
}
.score-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.score-grid-labels,
.score-grid-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) repeat(4, minmax(58px, .55fr));
    gap: 8px;
    align-items: center;
}
.score-grid-labels {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.score-grid-row + .score-grid-row { margin-top: 9px; }
.score-grid-row strong { font-size: 13px; color: var(--text-light); }
.score-grid-row input { text-align: center; padding: 10px 8px; font-weight: 800; }
.strict-box ol {
    margin: 10px 0 0 20px;
    display: grid;
    gap: 6px;
}
.prompt-output {
    min-height: 460px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}
@media (max-width: 1100px) {
    .boletim-ia-layout { grid-template-columns: 1fr; }
    .reference-card { grid-template-columns: minmax(140px, 220px) 1fr; align-items: center; }
    .reference-card img { max-height: 260px; }
}
@media (max-width: 680px) {
    .reference-card { grid-template-columns: 1fr; }
    .score-grid-labels,
    .score-grid-row { grid-template-columns: 1fr repeat(4, minmax(42px, 1fr)); gap: 6px; }
    .score-grid-row strong { font-size: 12px; }
}

/* =========================================================
   Versão 3.0 — Cadastros e Planejamento
   ========================================================= */
.internal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 8px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31,38,135,0.06);
}
.internal-tab {
    border: 1px solid rgba(125, 95, 255, 0.22);
    background: white;
    color: var(--primary-color);
    border-radius: 14px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}
.internal-tab:hover,
.internal-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-1px);
}
.cadastros-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.cadastro-home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 230px;
}
.cadastro-home-card h2 {
    margin: 8px 0 10px;
}
.cadastro-home-card p {
    color: #606575;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}
.planejamento-tab-panel {
    display: none;
}
.planejamento-tab-panel.active {
    display: block;
}
.large-modal {
    width: min(920px, calc(100vw - 32px));
}
.field-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    color: #5f6270;
    font-weight: 700;
}
.field-label input,
.field-label select,
.field-label textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
    font: inherit;
    font-weight: 400;
}
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #414552;
}
.platform-help {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(125, 95, 255, 0.08);
    color: #4b40a7;
    border: 1px solid rgba(125, 95, 255, 0.14);
    line-height: 1.5;
}
.actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.small-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}
.status-pill.status-Rascunho,
.status-pill.status-Ideia {
    background: #eef2ff;
    color: #4b40a7;
}
.status-pill.status-Pronto,
.status-pill.status-Roteiro-pronto,
.status-pill.status-Agendado {
    background: #fff7dc;
    color: #8a6200;
}
.status-pill.status-Usado,
.status-pill.status-Postado {
    background: #e8fff4;
    color: #127545;
}
.status-pill.status-Arquivado {
    background: #f1f1f4;
    color: #666a78;
}
.status-pill.status-Gravado,
.status-pill.status-Editado {
    background: #fff0fb;
    color: #a0008a;
}
@media (max-width: 980px) {
    .cadastros-home-grid {
        grid-template-columns: 1fr;
    }
    .actions-cell {
        display: block;
    }
    .actions-cell .small-btn {
        margin: 2px 0;
    }
}

/* Backup Inteligente */
.backup-smart-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.backup-smart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.backup-status-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-light);
    min-height: 140px;
}

.backup-status-card span {
    display: block;
    color: #7b8090;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.backup-status-card strong {
    display: block;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.15;
}

.backup-status-card p {
    color: #6f7482;
    font-size: 13px;
    line-height: 1.45;
}

.backup-status-card.danger {
    border-color: rgba(255, 77, 77, .35);
    background: linear-gradient(180deg, #fff, #fff5f5);
}

.backup-status-card.danger strong {
    color: #d83232;
}

.backup-status-card.success {
    border-color: rgba(37, 211, 102, .35);
    background: linear-gradient(180deg, #fff, #f4fff8);
}

.backup-status-card.success strong {
    color: #159947;
}

.backup-panel-main {
    padding: 26px;
}

.backup-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.backup-toggle {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(125, 95, 255, .07);
    border: 1px solid rgba(125, 95, 255, .16);
    border-radius: 14px;
    padding: 14px 16px;
    color: #424756;
    line-height: 1.4;
}

.backup-toggle input {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.backup-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.backup-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.backup-check {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #eef0f7;
    background: #fff;
}

.backup-check span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.backup-check.ok span {
    background: rgba(37, 211, 102, .14);
    color: #159947;
}

.backup-check.warn span {
    background: rgba(255, 185, 0, .18);
    color: #b37600;
}

.backup-check p {
    margin: 0;
    color: #505666;
    font-size: 14px;
}

.backup-coverage {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    padding-right: 4px;
}

.backup-count-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f7;
    color: #505666;
}

.backup-count-row strong {
    color: var(--primary-color);
}

.backup-practices {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.backup-practices div {
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 16px;
    padding: 14px;
}

.backup-practices strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 10px;
}

.backup-practices p {
    margin: 0;
    color: #555b68;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .backup-smart-grid,
    .backup-practices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .backup-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .backup-smart-grid,
    .backup-practices {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HUB 3.2 — Operação de Aulas
   ========================================================= */
.operacao-panel { display: none; }
.operacao-panel.active { display: block; }
.operation-tabs { margin-bottom: 18px; }
.wrap-header { flex-wrap: wrap; gap: 16px; }
.no-margin { margin: 0; }
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.agenda-day {
    min-width: 180px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 12px;
}
.agenda-day header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.agenda-day header span { font-size: 12px; color: #6b6f7c; }
.agenda-day-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 410px;
    overflow-y: auto;
    padding-right: 4px;
}
.agenda-item {
    background: white;
    border-left: 5px solid var(--primary-color);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 14px rgba(31, 38, 135, 0.08);
}
.agenda-item strong,
.agenda-item span,
.agenda-item small { display: block; }
.agenda-item span { font-size: 12px; color: #606575; margin-top: 3px; }
.agenda-item small { font-size: 12px; margin-top: 5px; color: #444; }
.agenda-item.success, .agenda-item.feita, .agenda-item.reposicao-feita { border-left-color: #25d366; }
.agenda-item.warning, .agenda-item.remarcada, .agenda-item.faltou-com-aviso { border-left-color: #f5a623; }
.agenda-item.danger, .agenda-item.faltou-sem-aviso { border-left-color: #ff4d4d; }
.agenda-item.info { border-left-color: #3aa7ff; }
.checklist-operacao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    background: rgba(125, 95, 255, 0.07);
    border: 1px solid rgba(125, 95, 255, 0.16);
    border-radius: 16px;
    padding: 14px;
}
.checklist-operacao label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #3b4050;
}
.live-student-card {
    background: linear-gradient(135deg, rgba(125, 95, 255, 0.09), rgba(255, 77, 255, 0.08));
    border: 1px solid rgba(125, 95, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
}
.live-student-card h3 { margin: 0 0 5px; color: var(--primary-color); }
.live-student-card p { margin: 0 0 10px; color: #606575; }
.live-last-class { margin-top: 6px; color: #343846; }
.frequency-tools {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.mini-stats { margin-bottom: 18px; }
@media (max-width: 900px) {
    .agenda-grid { grid-template-columns: repeat(7, 180px); }
}

/* Aula ao Vivo em foco + Modo Escuro — Hotfix 3.3.1 */

.profile-subsection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(125, 95, 255, 0.08), rgba(255, 77, 255, 0.07));
    border: 1px solid rgba(125, 95, 255, 0.18);
}
.profile-subsection-header h3 {
    margin: 0 0 4px;
    color: var(--primary-color);
}
.profile-subsection-header p {
    margin: 0;
}
.evolution-form input[type="number"] {
    min-width: 0;
}
#profile-panel-evolucao .inner-table td:nth-child(2) {
    min-width: 230px;
}
#profile-panel-evolucao .inner-table td:nth-child(3) {
    min-width: 260px;
}
#boletim-ia-evolucao {
    min-height: 130px;
}
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 600;
    color: #3b4050;
}
.checkbox-line input {
    width: auto;
    accent-color: var(--primary-color);
}
@media (max-width: 760px) {
    .profile-subsection-header {
        flex-direction: column;
    }
}


/* Aula ao Vivo em foco + Modo Escuro — Hotfix 3.3.1 */
.theme-toggle-btn {
    font-size: 20px;
    line-height: 1;
    color: var(--primary-color);
}
.live-floating-button {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 15px 20px;
    color: white;
    font-weight: 900;
    letter-spacing: .2px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    box-shadow: 0 18px 44px rgba(230, 52, 127, .30);
    transition: .2s ease;
}
.live-floating-button:hover { transform: translateY(-3px) scale(1.02); }
.live-floating-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
}
.live-mode-active .container,
.live-mode-active .global-actions,
.live-mode-active .live-floating-button { display: none !important; }
.live-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 28px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 50%, #fff3fb 100%);
}
.live-screen.is-open { display: block; }
.live-screen-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(31,111,175,.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(230,52,127,.16), transparent 34%);
}
.live-screen-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}
.live-screen-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(31,111,175,.16);
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(12px);
}
.live-screen-header h1 { margin: 0; }
.live-screen-header p { color: var(--text-muted); margin-top: 8px; }
.live-back-btn {
    border: 1px solid rgba(31,111,175,.18);
    background: white;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15,71,116,.08);
}
.live-status-pill {
    align-self: center;
    justify-self: end;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
    color: var(--secondary-color);
    background: rgba(230,52,127,.10);
    border: 1px solid rgba(230,52,127,.18);
    white-space: nowrap;
}
.live-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 90px;
}
.live-bubble,
.live-context-box {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(31,111,175,.15);
    border-radius: 28px;
    box-shadow: 0 14px 32px rgba(15,71,116,.10);
    padding: 20px;
    backdrop-filter: blur(12px);
}
.live-bubble-primary,
.live-context-box,
.live-wide,
.live-actions { grid-column: 1 / -1; }
.live-bubble-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.editable-bubble {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 900;
}
.editable-bubble input,
.editable-bubble textarea,
.live-bubble-primary input,
.live-bubble-primary select {
    margin-top: 6px;
    border-radius: 18px;
}
.live-actions {
    position: sticky;
    bottom: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(31,111,175,.14);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(15,71,116,.12);
}
.live-screen .live-student-card {
    background: linear-gradient(135deg, rgba(31,111,175,.09), rgba(230,52,127,.07));
}

body.dark-mode {
    --bg-dark: #07131f;
    --surface: #101f31;
    --surface-soft: #13273d;
    --text-light: #eaf2fb;
    --text-muted: #a8b7c8;
    --glass-bg: rgba(15, 31, 49, 0.88);
    --glass-border: rgba(152, 198, 255, 0.16);
    --shadow-light: 0 16px 42px rgba(0, 0, 0, 0.30);
    background: linear-gradient(135deg, #07131f 0%, #0b1b2e 52%, #1f1026 100%);
    color: var(--text-light);
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .profile-info-card .value,
body.dark-mode .mini-item strong { color: #f4f8ff; }
body.dark-mode .sidebar { background: linear-gradient(180deg, #071927 0%, #10233a 48%, #361b3f 100%); }
body.dark-mode .glass-panel,
body.dark-mode .stat-card,
body.dark-mode .glass-table-container,
body.dark-mode .profile-header,
body.dark-mode .modal-content,
body.dark-mode .live-student-card,
body.dark-mode .compact-form,
body.dark-mode .profile-info-card,
body.dark-mode .mini-item,
body.dark-mode .agenda-day,
body.dark-mode .agenda-item,
body.dark-mode .lead-card,
body.dark-mode .pipeline-column,
body.dark-mode .today-actions,
body.dark-mode .profile-tabs,
body.dark-mode .profile-content {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-light);
}
body.dark-mode .profile-tabs,
body.dark-mode th,
body.dark-mode .compact-form,
body.dark-mode .mini-item { background: rgba(18, 39, 61, .92) !important; }
body.dark-mode th { color: #9ed0ff; }
body.dark-mode td,
body.dark-mode th { border-bottom-color: rgba(168,183,200,.13); }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .search-input,
body.dark-mode .filter-select {
    background: #0c1a2b;
    border-color: rgba(168,183,200,.20);
    color: #f4f8ff;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #75879a; }
body.dark-mode .btn-icon,
body.dark-mode .btn-logout,
body.dark-mode .live-back-btn { background: #10243a; color: #f4f8ff; border-color: var(--glass-border); }
body.dark-mode .btn-secondary { color: #9ed0ff; border-color: #5aa5e6; }
body.dark-mode .btn-secondary:hover { background: #1f6faf; color: #fff; }
body.dark-mode .muted,
body.dark-mode .empty-state,
body.dark-mode .agenda-item span,
body.dark-mode .agenda-item small,
body.dark-mode .profile-header p,
body.dark-mode .section-header p,
body.dark-mode .welcome-row p { color: var(--text-muted) !important; }
body.dark-mode .badge { background: rgba(154,208,255,.12); color: #9ed0ff; }
body.dark-mode .badge.status-Ativo,
body.dark-mode .badge.status-Pago { background: rgba(7,148,85,.18); color: #6ce7ad; }
body.dark-mode .badge.status-Inadimplente,
body.dark-mode .badge.status-Atrasado { background: rgba(217,45,32,.18); color: #ff9a92; }
body.dark-mode .badge.status-Lead,
body.dark-mode .badge.status-Pendente,
body.dark-mode .badge.status-Parcial { background: rgba(245,166,35,.18); color: #ffd28a; }
body.dark-mode .modal { background: rgba(0,0,0,.70); }
body.dark-mode .paper,
body.dark-mode #documento-area {
    background: #fff !important;
    color: #222 !important;
}
body.dark-mode .boletim-reference-card,
body.dark-mode .ia-prompt-output { background: rgba(16,31,49,.88); color: var(--text-light); }
body.dark-mode .live-screen {
    background: linear-gradient(135deg, #07131f 0%, #0b1b2e 52%, #1f1026 100%);
    color: var(--text-light);
}
body.dark-mode .live-screen-header,
body.dark-mode .live-bubble,
body.dark-mode .live-context-box,
body.dark-mode .live-actions {
    background: rgba(15,31,49,.90);
    border-color: rgba(152,198,255,.16);
    color: var(--text-light);
}
body.dark-mode .live-screen-header p { color: var(--text-muted); }
body.dark-mode .theme-toggle-btn { color: #f4f8ff; }

@media (max-width: 880px) {
    .live-form { grid-template-columns: 1fr; }
    .live-bubble-primary { grid-template-columns: 1fr; }
    .live-screen-header { grid-template-columns: 1fr; }
    .live-status-pill { justify-self: start; }
    .live-floating-button { right: 16px; bottom: 16px; padding: 13px 16px; }
}


/* Hotfix 3.3.2 — contraste do modo noturno, Aula ao Vivo compacta e Sticky Notes */
body.dark-mode .timeline-item,
body.dark-mode .message-template-card,
body.dark-mode .recipient-preview,
body.dark-mode .reference-card,
body.dark-mode .score-board-editor,
body.dark-mode .variable-help,
body.dark-mode .dashboard-list-content,
body.dark-mode .dashboard-list-body,
body.dark-mode .profile-panel,
body.dark-mode .boletim-ia-form,
body.dark-mode .boletim-ia-side,
body.dark-mode .ia-guide-card,
body.dark-mode .backup-smart-card,
body.dark-mode .evolution-summary,
body.dark-mode .metric-card,
body.dark-mode .live-note-card,
body.dark-mode .sticky-notes-panel,
body.dark-mode .sticky-note-item {
    background: rgba(15, 31, 49, .92) !important;
    color: #eaf2fb !important;
    border-color: rgba(150, 205, 255, .18) !important;
}
body.dark-mode .timeline-item small,
body.dark-mode .message-template-card small,
body.dark-mode .reference-card p,
body.dark-mode .variable-help,
body.dark-mode .recipient-preview,
body.dark-mode .score-grid-row strong,
body.dark-mode .live-note-card summary small,
body.dark-mode .sticky-note-item small,
body.dark-mode .sticky-note-item p {
    color: #b8c8da !important;
}
body.dark-mode .message-template-card strong,
body.dark-mode .reference-card strong,
body.dark-mode .score-board-editor h2,
body.dark-mode .score-board-editor h3,
body.dark-mode .live-note-card summary span,
body.dark-mode .sticky-notes-panel h2,
body.dark-mode .sticky-note-item strong {
    color: #f7fbff !important;
}
body.dark-mode .variable-help span {
    background: rgba(255,255,255,.08) !important;
    color: #eaf2fb !important;
    border-color: rgba(150,205,255,.18) !important;
}
body.dark-mode .score-board-editor input,
body.dark-mode .score-board-editor textarea,
body.dark-mode .score-board-editor select,
body.dark-mode .boletim-ia-form input,
body.dark-mode .boletim-ia-form textarea,
body.dark-mode .boletim-ia-form select {
    background: #071827 !important;
    color: #f7fbff !important;
    border-color: rgba(150,205,255,.22) !important;
}
body.dark-mode .paper,
body.dark-mode #documento-area {
    background: #fff !important;
    color: #1f2937 !important;
}
body.dark-mode .paper *,
body.dark-mode #documento-area * {
    color: #1f2937 !important;
}
body.dark-mode .paper span[contenteditable="true"],
body.dark-mode #documento-area span[contenteditable="true"] {
    background: #eef6ff !important;
    color: #111827 !important;
    border-bottom-color: #111827 !important;
}

.live-screen-shell-compact { max-width: 1360px; }
.live-screen-header-compact {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
}
.live-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.live-tool-btn {
    border: 1px solid rgba(31,111,175,.16);
    background: rgba(255,255,255,.88);
    color: var(--primary-color);
    border-radius: 999px;
    min-height: 44px;
    padding: 7px 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15,71,116,.10);
}
.live-tool-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.live-tool-btn:hover { transform: translateY(-1px); border-color: var(--primary-light); }
.live-form-compact {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    align-items: start;
}
.live-control-panel { grid-column: 1 / -1; }
.live-context-compact { grid-column: span 2; align-self: stretch; }
.live-note-card { grid-column: span 1; padding: 0; overflow: hidden; }
.live-note-card.live-wide { grid-column: span 2; }
.live-note-card summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 18px 16px;
    display: grid;
    gap: 6px;
}
.live-note-card summary::-webkit-details-marker { display: none; }
.live-note-card summary span {
    font-size: 15px;
    font-weight: 900;
    color: var(--primary-color);
}
.live-note-card summary small {
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.35;
}
.live-note-card[open] summary { border-bottom: 1px solid rgba(31,111,175,.10); }
.live-note-card input,
.live-note-card textarea {
    margin: 16px;
    width: calc(100% - 32px);
}
.live-actions-compact { grid-column: 1 / -1; }
body.dark-mode .live-tool-btn {
    background: rgba(15,31,49,.94);
    color: #f7fbff;
    border-color: rgba(150,205,255,.20);
}
@media (max-width: 1180px) {
    .live-form-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-context-compact, .live-note-card, .live-note-card.live-wide { grid-column: span 1; }
}
@media (max-width: 760px) {
    .live-screen { padding: 14px; }
    .live-form-compact { grid-template-columns: 1fr; }
    .live-screen-header-compact { grid-template-columns: 1fr; }
    .live-header-tools { justify-content: flex-start; }
    .live-control-panel, .live-context-compact, .live-note-card, .live-note-card.live-wide { grid-column: 1 / -1; }
}

.sticky-notes-toggle {
    position: fixed;
    right: 28px;
    bottom: 94px;
    z-index: 82;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #e6347f);
    color: #102235;
    box-shadow: 0 16px 38px rgba(230,52,127,.24);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}
.sticky-notes-toggle:hover { transform: translateY(-2px) scale(1.03); }
.sticky-icon { font-size: 24px; }
.sticky-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sticky-notes-panel {
    position: fixed;
    right: 28px;
    bottom: 158px;
    z-index: 2100;
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 190px));
    overflow-y: auto;
    display: none;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(31,111,175,.16);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15,71,116,.22);
    backdrop-filter: blur(14px);
    padding: 18px;
}
.sticky-notes-panel.is-open { display: block; }
.sticky-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.sticky-note-form { display: grid; gap: 10px; margin-bottom: 16px; }
.sticky-note-actions, .sticky-note-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-notes-list { display: grid; gap: 10px; }
.sticky-note-item {
    border: 1px solid rgba(31,111,175,.14);
    background: #fff9dd;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 10px;
}
.sticky-note-item.is-important { border-color: rgba(230,52,127,.32); background: #fff0f7; }
.sticky-note-item strong { color: var(--primary-color); display: block; margin-bottom: 3px; }
.sticky-note-item p { margin: 8px 0 0; color: #3b4553; white-space: pre-wrap; }
.small-btn { padding: 8px 11px !important; font-size: 12px !important; }
.live-mode-active .sticky-notes-toggle,
.live-mode-active .sticky-notes-panel { display: none !important; }
@media (max-width: 760px) {
    .sticky-notes-toggle { right: 18px; bottom: 86px; }
    .sticky-notes-panel { right: 16px; bottom: 146px; }
}

/* =========================================================
   HUB 3.4 — Financeiro Avançado e Dashboard Clean
   ========================================================= */
.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 20px 0 22px;
}
.dashboard-clean-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}
.dashboard-main-panel {
    min-height: 240px;
}
.finance-clean-panel {
    border-left: 4px solid var(--primary-color);
}
.dashboard-hidden-data {
    display: none !important;
}
.financeiro-tab-panel {
    display: none;
    margin-top: 18px;
}
.financeiro-tab-panel.active {
    display: block;
}
.finance-stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 18px;
}
.finance-overview-grid,
.finance-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: start;
}
.finance-mini-summary {
    display: grid;
    gap: 10px;
}
.finance-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(25, 83, 143, 0.12);
}
.finance-summary-line strong {
    color: var(--primary-color);
    white-space: nowrap;
}
.finance-summary-line.highlight {
    background: linear-gradient(135deg, rgba(0, 83, 151, 0.11), rgba(231, 0, 100, 0.08));
    border-color: rgba(44, 134, 214, 0.22);
}
.compact-month {
    width: auto;
    min-width: 160px;
}
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.danger-text { color: #d93232; }
.success-text { color: #087d45; }
.mt-6 { margin-top: 6px; }
.export-panel {
    max-width: 720px;
}
body.dark-mode .finance-summary-line {
    background: rgba(10, 28, 49, 0.88);
    border-color: rgba(112, 188, 255, 0.18);
    color: var(--text-light);
}
body.dark-mode .finance-summary-line strong {
    color: #8dc7ff;
}
body.dark-mode .finance-summary-line.highlight {
    background: linear-gradient(135deg, rgba(44, 134, 214, 0.22), rgba(231, 0, 100, 0.16));
}
body.dark-mode .danger-text { color: #ff8a8a; }
body.dark-mode .success-text { color: #73e6aa; }
@media (max-width: 1100px) {
    .dashboard-clean-grid,
    .finance-overview-grid,
    .finance-form-grid {
        grid-template-columns: 1fr;
    }
}


/* Comunicação Institucional — v3.5 */
.mensagens-tabs { margin-bottom: 18px; }
.mensagens-tab-panel { display: none; }
.mensagens-tab-panel.active { display: block; }
.communication-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.communication-card { text-align: left; cursor: default; }
.communication-card .item-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.birthday-panel-clean { border-color: rgba(255, 77, 255, 0.24); }
.birthday-today { box-shadow: inset 4px 0 0 rgba(255, 77, 255, 0.85); }
body.dark-mode .communication-card,
body.dark-mode .mensagens-tab-panel .glass-panel,
body.dark-mode .birthday-panel-clean { background: rgba(18, 22, 46, 0.84); color: var(--text-light); }
body.dark-mode .communication-card small,
body.dark-mode .communication-card span,
body.dark-mode .mensagens-tab-panel .muted { color: rgba(238, 241, 255, 0.72); }
body.dark-mode .mensagens-tab-panel input,
body.dark-mode .mensagens-tab-panel textarea,
body.dark-mode .mensagens-tab-panel select { background: rgba(9, 13, 30, 0.92); color: #f5f7ff; border-color: rgba(125, 95, 255, 0.35); }
@media (max-width: 980px) { .communication-grid { grid-template-columns: 1fr; } }

/* =========================================================
   HOTFIX 3.5.1 — Responsividade geral e UX multi-tela
   ========================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 88px;
}
body { min-width: 0; }
img, svg, canvas, video { max-width: 100%; height: auto; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button, .btn-primary, .btn-secondary, .btn-whatsapp, .btn-danger, .btn-icon, .profile-tab, .mensagens-tab, .financeiro-tab, .subtab, .tab-btn {
    min-height: 42px;
}
input, select, textarea { max-width: 100%; }
.glass-panel,
.stat-card,
.mini-item,
.profile-content,
.modal-content,
.live-bubble,
.live-context-box,
.live-note-card,
.sticky-notes-panel,
.communication-card { min-width: 0; }
.main-content { width: calc(100% - 266px); }
.section-header,
.panel-header,
.wrap-header,
.toolbar-row,
.form-actions,
.modal-buttons,
.action-buttons,
.item-actions,
.table-actions { min-width: 0; }
.section-header > *,
.panel-header > *,
.wrap-header > *,
.toolbar-row > *,
.form-actions > * { min-width: 0; }
.field-label { min-width: 0; }
.form-grid,
.profile-grid,
.stats-grid,
.dashboard-grid,
.finance-stats,
.dashboard-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.finance-overview-grid,
.finance-form-grid,
.communication-grid,
.dashboard-clean-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
.glass-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table { width: 100%; }
.table-actions .btn-small,
.action-buttons .btn-small,
.item-actions .btn-small { white-space: normal; }
.mobile-menu-toggle,
.mobile-menu-backdrop { display: none; }

/* A Aula ao Vivo não deve prender topo/rodapé sobre os balões */
.live-screen { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.live-screen-shell,
.live-screen-shell-compact { max-width: min(1600px, 100%); }
.live-screen-header-compact,
.live-actions,
.live-actions-compact {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
}
.live-form,
.live-form-compact { padding-bottom: clamp(28px, 5vw, 72px); }
.live-header-tools { min-width: 0; }
.live-tool-btn { flex: 0 1 auto; }
.live-note-card textarea { min-height: 112px; }
.live-bubble-primary.live-control-panel { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }

/* Botões flutuantes: pilha previsível e sem cobrir conteúdo importante */
.live-floating-button,
.sticky-notes-toggle { will-change: transform; }
.main-content { padding-bottom: max(46px, env(safe-area-inset-bottom)); }

/* Telas intermediárias: tablets e notebooks menores */
@media (max-width: 1180px) {
    .sidebar { width: 238px; padding: 22px 16px; }
    .main-content { margin-left: 238px; width: calc(100% - 238px); padding: 86px 28px 42px; }
    .logo-img { width: 96px; height: 96px; }
    .sidebar li { padding: 13px 13px; }
    .global-actions { right: 18px; top: 16px; }
    .btn-icon { width: 42px; height: 42px; }
    .btn-logout { min-height: 42px; }
    .live-form-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-context-compact, .live-note-card, .live-note-card.live-wide { grid-column: span 1; }
    .live-screen-header-compact { grid-template-columns: 1fr; }
    .live-header-tools { justify-content: flex-start; }
}

/* Layout sem sidebar fixa em telas com pouco espaço */
@media (max-width: 1024px) {
    body.menu-open { overflow: hidden; }
    .container { display: block; min-height: 100dvh; }
    .mobile-menu-toggle {
        display: inline-flex;
        position: fixed;
        left: max(14px, env(safe-area-inset-left));
        top: max(14px, env(safe-area-inset-top));
        z-index: 95;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(31,111,175,.18);
        border-radius: 999px;
        background: rgba(255,255,255,.94);
        color: var(--primary-color);
        box-shadow: var(--shadow-light);
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 900;
        cursor: pointer;
        backdrop-filter: blur(12px);
    }
    .mobile-menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 84;
        border: 0;
        background: rgba(8, 20, 34, .52);
        backdrop-filter: blur(2px);
    }
    body.menu-open .mobile-menu-backdrop { display: block; }
    .sidebar {
        transform: translateX(-105%);
        transition: transform .24s ease;
        z-index: 90;
        width: min(320px, 86vw);
        height: 100dvh;
        padding-top: 72px;
        box-shadow: 18px 0 50px rgba(0,0,0,.22);
    }
    body.menu-open .sidebar { transform: translateX(0); }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 88px 22px 112px;
    }
    .global-actions {
        top: max(14px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        gap: 7px;
        z-index: 88;
    }
    .global-actions .btn-icon { width: 42px; height: 42px; }
    .global-actions .btn-icon img { width: 22px; height: 22px; }
    .btn-logout {
        width: 42px;
        min-width: 42px;
        padding: 0;
        font-size: 0;
    }
    .btn-logout::before { content: '⏏'; font-size: 18px; line-height: 1; }
    .section-header,
    .panel-header,
    .wrap-header,
    .welcome-row { align-items: flex-start; }
    .profile-content { width: min(100vw - 24px, 1120px); max-height: calc(100dvh - 24px); }
    .modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .modal-content { max-height: calc(100dvh - 24px); }
    .live-screen { padding: 18px; }
    .live-screen-header { border-radius: 24px; padding: 18px; }
    .live-form-compact { grid-template-columns: 1fr 1fr; }
    .live-control-panel,
    .live-context-compact,
    .live-note-card.live-wide,
    .live-actions-compact { grid-column: 1 / -1; }
    .sticky-notes-panel { max-height: calc(100dvh - 120px); }
}

/* Celulares e tablets estreitos */
@media (max-width: 760px) {
    :root { --shadow-light: 0 10px 28px rgba(15, 71, 116, .14); }
    .main-content {
        padding: 82px 14px 122px;
    }
    h1 { font-size: clamp(24px, 7vw, 32px); }
    h2 { font-size: 19px; }
    .glass-panel { padding: 18px; border-radius: 20px; }
    .compact-panel { padding: 16px; }
    .stat-card { padding: 16px; border-radius: 16px; }
    .stat-card p { font-size: 25px; }
    .section-header,
    .panel-header,
    .wrap-header,
    .welcome-row,
    .profile-header,
    .sticky-notes-header {
        flex-direction: column;
        display: flex;
        gap: 12px;
    }
    .section-header-actions,
    .toolbar-row,
    .modal-buttons,
    .sticky-note-actions,
    .sticky-note-item-actions,
    .item-actions,
    .table-actions,
    .action-buttons {
        width: 100%;
        justify-content: stretch;
    }
    .section-header-actions > button,
    .section-header-actions > a,
    .toolbar-row > button,
    .toolbar-row > a,
    .modal-buttons > button,
    .sticky-note-actions > button,
    .item-actions > button,
    .table-actions > button,
    .action-buttons > button,
    .action-buttons > a {
        flex: 1 1 auto;
    }
    .search-input,
    .filter-select,
    .compact-month { min-width: 0; width: 100%; }
    .form-grid,
    .finance-overview-grid,
    .finance-form-grid,
    .communication-grid,
    .dashboard-clean-grid,
    .profile-grid,
    .dashboard-kpi-row,
    .stats-grid { grid-template-columns: 1fr !important; }
    table { min-width: 680px; }
    th, td { padding: 12px 12px; }
    .profile-content { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
    .profile-header { padding: 18px; }
    .profile-tabs { padding: 10px; }
    .profile-panel { padding: 16px; }
    .modal-content { width: calc(100vw - 20px); border-radius: 20px; }
    #toast-container { left: 12px; right: 12px; top: 74px; }
    .toast { width: 100%; }

    /* Dock flutuante compacto no mobile */
    .live-floating-button {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
        z-index: 80;
    }
    .live-floating-button span:not(.live-floating-icon) { display: none; }
    .live-floating-icon { font-size: 22px; }
    .sticky-notes-toggle {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px);
        width: 52px;
        height: 52px;
        z-index: 81;
    }
    .sticky-notes-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: min(82dvh, 720px);
        border-radius: 22px;
        padding: 16px;
    }

    /* Aula Ao Vivo mobile: nada fixo bloqueando balões */
    .live-screen { padding: 10px; }
    .live-screen-shell { width: 100%; }
    .live-screen-header,
    .live-screen-header-compact {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 16px;
        border-radius: 22px;
        margin-bottom: 14px;
    }
    .live-back-btn { justify-self: start; }
    .live-header-tools { justify-content: flex-start; gap: 8px; }
    .live-tool-btn { min-height: 40px; padding: 6px 10px; font-size: 13px; }
    .live-tool-btn img { width: 24px; height: 24px; }
    .live-status-pill { justify-self: start; white-space: normal; }
    .live-form,
    .live-form-compact { grid-template-columns: 1fr !important; gap: 12px; padding-bottom: 22px; }
    .live-bubble,
    .live-context-box { border-radius: 22px; padding: 16px; }
    .live-bubble-primary.live-control-panel { grid-template-columns: 1fr !important; }
    .live-note-card,
    .live-note-card.live-wide,
    .live-context-compact,
    .live-actions-compact,
    .live-control-panel { grid-column: 1 / -1 !important; }
    .live-note-card summary { padding: 15px; }
    .live-note-card input,
    .live-note-card textarea { margin: 12px; width: calc(100% - 24px); }
    .live-actions,
    .live-actions-compact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 12px;
        border-radius: 18px;
        margin-bottom: 8px;
    }
    .live-actions > button { width: 100%; }
}

/* Celulares muito pequenos */
@media (max-width: 430px) {
    .global-actions { gap: 5px; }
    .global-actions .btn-icon,
    .btn-logout { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
    .mobile-menu-toggle { width: 42px; height: 42px; }
    .main-content { padding-left: 10px; padding-right: 10px; }
    .glass-panel { padding: 14px; }
    .mascot-img { width: 66px; height: 66px; }
    .logo-img { width: 86px; height: 86px; }
    .sidebar li { padding: 12px; }
    table { min-width: 620px; }
}

/* Telas grandes: manter limpo e sem esticar demais */
@media (min-width: 1600px) {
    .main-content { padding-right: clamp(44px, 4vw, 86px); }
    .content-section.active { max-width: 1800px; margin: 0 auto; }
    .dashboard-kpi-row { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
    .dashboard-clean-grid { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr); }
    .finance-overview-grid { grid-template-columns: minmax(360px, .85fr) minmax(0, 1.4fr); }
}

/* Telas muito grandes/TV: evitar componentes gigantes */
@media (min-width: 2400px) {
    .content-section.active { max-width: 1960px; }
    .main-content { padding-top: 110px; }
    .live-screen-shell-compact { max-width: 1800px; }
}

body.dark-mode .mobile-menu-toggle {
    background: rgba(15,31,49,.94);
    color: #f7fbff;
    border-color: rgba(150,205,255,.20);
}
body.dark-mode .mobile-menu-backdrop { background: rgba(0, 0, 0, .62); }

/* =========================================================
   HOTFIX 3.5.1 — Correção mobile/tablet do espaço superior
   Causa: em telas menores, a sidebar recolhida herdava position:relative
   do breakpoint antigo e continuava ocupando espaço no fluxo da página.
   ========================================================= */
@media (max-width: 1024px) {
    .container {
        display: block !important;
        min-height: 100dvh !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        transform: translateX(-105%) !important;
        margin: 0 !important;
    }

    body.menu-open .sidebar {
        transform: translateX(0) !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 100dvh !important;
        padding-top: calc(76px + env(safe-area-inset-top)) !important;
    }

    .content-section.active {
        margin-top: 0 !important;
    }
}

@media (max-width: 760px) {
    .main-content {
        padding-top: calc(70px + env(safe-area-inset-top)) !important;
    }

    .today-hero,
    .glass-panel:first-child,
    .section-header:first-child {
        margin-top: 0 !important;
    }
}

@media (max-width: 430px) {
    .main-content {
        padding-top: calc(66px + env(safe-area-inset-top)) !important;
    }
}


/* =========================================================
   Versões 3.6 e 3.7 — Relatórios, Exportações e Campanhas
   ========================================================= */
.relatorios-tab-panel,
.planejamento-tab-panel { display: none; }
.relatorios-tab-panel.active,
.planejamento-tab-panel.active { display: block; }
.report-kpi-grid,
.campaign-stats { margin: 18px 0; }
.reports-overview-grid { align-items: stretch; }
.report-clean-panel,
.campaign-clean-panel { min-height: 220px; }
.campaign-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.campaign-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.campaign-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.campaign-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.campaign-metrics span { background: rgba(255,255,255,.62); border: 1px solid rgba(31,117,184,.12); border-radius: 14px; padding: 8px 10px; font-size: .86rem; }
.dark-mode .campaign-metrics span { background: rgba(13,29,49,.82); border-color: rgba(125,190,255,.22); color: var(--text-primary); }
.compact-label { min-width: 160px; }
.closing-panel .mini-item { margin-bottom: 10px; }
@media (max-width: 768px) {
    .campaign-board { grid-template-columns: 1fr; }
    .campaign-card-top { flex-direction: column; }
    .campaign-metrics { grid-template-columns: 1fr; }
    .section-header-actions .compact-label { width: 100%; }
    .report-clean-panel,
    .campaign-clean-panel { min-height: unset; }
}

/* =========================================================
   HOTFIX 3.7.1 — Mensagens > Modelos + créditos do HUB
   ========================================================= */
#mensagens .messages-workspace {
    grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
    gap: 22px;
    align-items: start;
}
#mensagens .message-models-panel,
#mensagens .message-editor-panel,
#mensagens .message-generator-panel {
    overflow: hidden;
}
#mensagens .message-models-panel .panel-header,
#mensagens .message-editor-panel .panel-header,
#mensagens .message-generator-panel .panel-header {
    margin-bottom: 14px;
}
#mensagens .compact-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 14px;
}
#mensagens .compact-toolbar .search-input,
#mensagens .compact-toolbar .filter-select {
    min-width: 0;
    width: 100%;
}
#mensagens .message-template-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: min(58vh, 620px);
    min-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 4px 2px;
    margin: 0;
    scrollbar-gutter: stable;
    color: var(--text-light);
}
#mensagens .message-template-list.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    border: 1px dashed rgba(31, 111, 175, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .56);
    color: var(--text-muted);
    text-align: center;
}
#mensagens .message-template-list::-webkit-scrollbar {
    width: 9px;
}
#mensagens .message-template-list::-webkit-scrollbar-track {
    background: rgba(31, 111, 175, .08);
    border-radius: 999px;
}
#mensagens .message-template-list::-webkit-scrollbar-thumb {
    background: rgba(31, 111, 175, .28);
    border-radius: 999px;
}
#mensagens .message-template-card {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    width: 100%;
    min-height: 122px;
    height: auto;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 111, 175, .16);
    border-left: 5px solid rgba(230, 52, 127, .78);
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,253,.92));
    color: var(--text-light);
    box-shadow: 0 8px 22px rgba(15, 71, 116, .07);
    text-align: left;
    cursor: pointer;
    white-space: normal;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}
#mensagens .message-template-card:hover,
#mensagens .message-template-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 111, 175, .34);
    border-left-color: var(--secondary-color);
    box-shadow: 0 12px 28px rgba(15, 71, 116, .12);
    outline: none;
}
#mensagens .message-template-card span {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 111, 175, .10);
    color: var(--primary-color);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .45px;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
#mensagens .message-template-card strong {
    display: block;
    margin: 0;
    color: #172b43;
    font-size: 15px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
#mensagens .message-template-card small {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
    color: #4f5f72;
    font-size: 12.5px;
    line-height: 1.45;
    overflow: hidden;
    overflow-wrap: anywhere;
}
body.dark-mode #mensagens .message-template-list {
    color: #f5f7ff;
}
body.dark-mode #mensagens .message-template-list.empty-state {
    background: rgba(9, 13, 30, .72);
    border-color: rgba(141, 199, 255, .22);
    color: rgba(238, 241, 255, .72);
}
body.dark-mode #mensagens .message-template-list::-webkit-scrollbar-track {
    background: rgba(141, 199, 255, .10);
}
body.dark-mode #mensagens .message-template-list::-webkit-scrollbar-thumb {
    background: rgba(141, 199, 255, .36);
}
body.dark-mode #mensagens .message-template-card {
    background: linear-gradient(135deg, rgba(15, 31, 49, .96), rgba(18, 22, 46, .94)) !important;
    border-color: rgba(141, 199, 255, .22) !important;
    border-left-color: rgba(230, 52, 127, .88) !important;
    color: #f5f7ff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
body.dark-mode #mensagens .message-template-card:hover,
body.dark-mode #mensagens .message-template-card:focus-visible {
    border-color: rgba(141, 199, 255, .42) !important;
    border-left-color: #ff5aa2 !important;
}
body.dark-mode #mensagens .message-template-card span {
    background: rgba(141, 199, 255, .13);
    color: #9cd0ff !important;
}
body.dark-mode #mensagens .message-template-card strong {
    color: #ffffff !important;
}
body.dark-mode #mensagens .message-template-card small {
    color: #c7d5e8 !important;
}
body.dark-mode #mensagens .message-editor-panel,
body.dark-mode #mensagens .message-generator-panel,
body.dark-mode #mensagens .message-models-panel {
    background: rgba(18, 22, 46, .88) !important;
}
.about-hub-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    border-color: rgba(230, 52, 127, .16);
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(238,246,255,.72), rgba(255,244,251,.72));
}
.about-hub-panel h2 {
    margin-bottom: 6px;
}
.about-hub-panel p {
    margin-top: 4px;
}
.about-hub-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 175, .10);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 12px;
}
body.dark-mode .about-hub-panel {
    background: linear-gradient(135deg, rgba(15, 31, 49, .92), rgba(18, 22, 46, .92)) !important;
    border-color: rgba(141, 199, 255, .20) !important;
    color: #f5f7ff !important;
}
body.dark-mode .about-hub-version {
    background: rgba(141, 199, 255, .13);
    color: #9cd0ff;
}
@media (max-width: 1100px) {
    #mensagens .messages-workspace {
        grid-template-columns: 1fr;
    }
    #mensagens .message-template-list {
        max-height: 480px;
    }
}
@media (max-width: 760px) {
    #mensagens .compact-toolbar {
        grid-template-columns: 1fr;
    }
    #mensagens .message-template-list {
        max-height: none;
        min-height: unset;
        overflow: visible;
        padding-right: 0;
    }
    #mensagens .message-template-card {
        min-height: 112px;
        padding: 14px;
    }
    .about-hub-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   TMY HUB 4.0 — Polimento Profissional + Movimento + Identidade Visual
   Camada visual segura: sem alteração de banco, autenticação ou fluxo de backup.
   ========================================================= */
:root {
    --tmy-blue-deep: #0b3f72;
    --tmy-blue-glow: rgba(31, 111, 175, .20);
    --tmy-pink-glow: rgba(230, 52, 127, .18);
    --tmy-purple-glow: rgba(122, 67, 164, .16);
    --tmy-radius-xl: 26px;
    --tmy-transition: 180ms cubic-bezier(.2, .7, .2, 1);
    --shadow-premium: 0 18px 54px rgba(15, 71, 116, .13);
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(31, 111, 175, .13), transparent 31%),
        radial-gradient(circle at 92% 12%, rgba(230, 52, 127, .14), transparent 30%),
        radial-gradient(circle at 68% 90%, rgba(116, 69, 170, .12), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #eef4f8 48%, #fff4fb 100%);
}

body::selection {
    background: rgba(230, 52, 127, .22);
}

.container,
.global-actions,
.mobile-menu-toggle,
.mobile-menu-backdrop,
.sticky-notes-toggle,
.sticky-notes-panel,
.live-screen,
.modal,
#toast-container {
    position: relative;
}

.container,
.global-actions,
.mobile-menu-toggle,
.sticky-notes-toggle,
.sticky-notes-panel,
.live-screen,
.modal,
#toast-container {
    z-index: 1;
}

.tmy-bg-parallax {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.tmy-bg-orb,
.tmy-bg-grid {
    position: absolute;
    display: block;
    pointer-events: none;
}

.tmy-bg-orb {
    width: clamp(210px, 24vw, 420px);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .68;
    transform: translate3d(0, 0, 0);
    animation: tmyFloat 12s ease-in-out infinite alternate;
}

.tmy-bg-orb.orb-blue {
    top: 8%;
    left: 22%;
    background: radial-gradient(circle, rgba(31, 111, 175, .20), rgba(31, 111, 175, 0) 68%);
}

.tmy-bg-orb.orb-pink {
    top: 22%;
    right: 3%;
    background: radial-gradient(circle, rgba(230, 52, 127, .18), rgba(230, 52, 127, 0) 70%);
    animation-duration: 15s;
    animation-delay: -3s;
}

.tmy-bg-orb.orb-purple {
    bottom: 1%;
    left: 52%;
    background: radial-gradient(circle, rgba(104, 48, 102, .16), rgba(104, 48, 102, 0) 70%);
    animation-duration: 18s;
    animation-delay: -7s;
}

.tmy-bg-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 71, 116, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 71, 116, .045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
    opacity: .38;
}

.sidebar {
    box-shadow: 16px 0 48px rgba(15, 71, 116, .20);
}

.logo-img {
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    transition: transform var(--tmy-transition), box-shadow var(--tmy-transition);
}

.logo-section:hover .logo-img {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .18);
}

.sidebar li {
    position: relative;
    overflow: hidden;
}

.sidebar li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.26), transparent 62%);
    transform: translateX(-105%);
    transition: transform 420ms ease;
}

.sidebar li:hover::before,
.sidebar li.active::before {
    transform: translateX(0);
}

.sidebar li.active {
    box-shadow: inset 3px 0 0 rgba(244, 197, 66, .95), 0 8px 18px rgba(0,0,0,.10);
}

.sidebar-signature {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
    color: rgba(255,255,255,.92);
}

.sidebar-mascot {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,.36);
    background: white;
}

.sidebar-signature strong,
.sidebar-signature small {
    display: block;
    line-height: 1.25;
}

.sidebar-signature strong {
    font-size: 13px;
    font-weight: 900;
}

.sidebar-signature small {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255,255,255,.72);
}

.main-content {
    position: relative;
}

.content-section.active {
    animation: tmyRise .34s ease both;
}

.section-header,
.welcome-row,
.glass-panel,
.stat-card,
.mini-item,
.profile-info-card,
.timeline-item,
.finance-summary-line,
.communication-card,
.campaign-card,
.report-alert-card,
.backup-practices > div,
.backup-checklist > div,
.backup-coverage > div {
    transition: transform var(--tmy-transition), box-shadow var(--tmy-transition), border-color var(--tmy-transition), background var(--tmy-transition);
}

.glass-panel {
    position: relative;
    border-radius: var(--tmy-radius-xl);
    box-shadow: var(--shadow-premium);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 44%, rgba(230,52,127,.06));
    opacity: .72;
}

.glass-panel > * {
    position: relative;
    z-index: 1;
}

.glass-panel:hover,
.stat-card:hover,
.mini-item:hover,
.profile-info-card:hover,
.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(15, 71, 116, .15);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -34px;
    bottom: -42px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(230, 52, 127, .16), transparent 68%);
}

.btn-primary,
.btn-secondary,
.btn-whatsapp,
.btn-danger,
.btn-icon,
.btn-logout,
.profile-tab,
.subtab-btn,
.tab-btn,
.floating-live-btn,
.sticky-notes-toggle {
    transition: transform var(--tmy-transition), box-shadow var(--tmy-transition), background var(--tmy-transition), color var(--tmy-transition), border-color var(--tmy-transition), filter var(--tmy-transition);
}

.btn-primary,
.btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.28), transparent);
    transform: translateX(-125%);
    transition: transform 520ms ease;
}

.btn-primary:hover::after,
.btn-whatsapp:hover::after {
    transform: translateX(125%);
}

button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-whatsapp:active,
.btn-danger:active,
.btn-icon:active,
.btn-logout:active {
    transform: translateY(1px) scale(.99);
}

.search-input,
.filter-select,
input,
select,
textarea {
    transition: border-color var(--tmy-transition), box-shadow var(--tmy-transition), background var(--tmy-transition), transform var(--tmy-transition);
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-1px);
}

.tmy-hero-motion {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.74), rgba(238,246,255,.72) 48%, rgba(255,244,251,.78)),
        radial-gradient(circle at top right, rgba(230,52,127,.16), transparent 38%);
}

.tmy-hero-motion::before {
    content: "";
    position: absolute;
    inset: -60% -20% auto auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, rgba(31,111,175,.15), rgba(230,52,127,.16), rgba(244,197,66,.13), rgba(31,111,175,.15));
    filter: blur(4px);
    opacity: .62;
    animation: tmySpin 18s linear infinite;
}

.tmy-hero-motion .mascot-img {
    width: 96px;
    height: 96px;
    border-width: 4px;
    border-color: rgba(230, 52, 127, .72);
    box-shadow: 0 12px 32px rgba(230, 52, 127, .18);
    animation: tmyMascotFloat 4.2s ease-in-out infinite;
}

.section-header {
    position: relative;
    overflow: hidden;
    padding: 4px 0;
}

#boletim .section-header::after,
#config .section-header::after,
#mensagens .section-header::after,
#relatorios .section-header::after,
#planejamento .section-header::after {
    content: "";
    position: absolute;
    right: clamp(4px, 2vw, 22px);
    top: 0;
    width: clamp(58px, 8vw, 94px);
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.24)), url('mascote.jpg') center/cover no-repeat;
    border: 1px solid rgba(31, 111, 175, .16);
    box-shadow: 0 16px 36px rgba(15, 71, 116, .12);
    opacity: .42;
    transform: rotate(3deg);
}

#boletim .section-header > *,
#config .section-header > *,
#mensagens .section-header > *,
#relatorios .section-header > *,
#planejamento .section-header > * {
    max-width: calc(100% - 110px);
}

.empty-state {
    border-radius: 18px;
}

.mini-list.empty-state,
.empty-state:not(.message-template-list) {
    background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(238,246,255,.56));
    border: 1px dashed rgba(31, 111, 175, .18);
}

.about-hub-panel-40 {
    grid-column: 1 / -1;
    overflow: hidden;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,246,255,.76), rgba(255,244,251,.78)),
        radial-gradient(circle at 88% 24%, rgba(230,52,127,.16), transparent 35%);
}

.about-hub-panel-40::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31,111,175,.15), transparent 72%);
}

.about-hub-mascot {
    width: 74px;
    height: 74px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 28px;
    border: 3px solid rgba(230, 52, 127, .34);
    background: white;
    box-shadow: 0 14px 34px rgba(15, 71, 116, .13);
}

.about-hub-version {
    box-shadow: inset 0 0 0 1px rgba(31, 111, 175, .08);
}

#mensagens .message-template-card,
#mensagens .message-editor-panel,
#mensagens .message-generator-panel,
#mensagens .message-models-panel {
    border-radius: 22px;
}

#mensagens .message-template-card:hover {
    transform: translateY(-2px) scale(1.003);
}

#backup-inteligente,
.backup-hero,
.backup-status-card {
    position: relative;
    overflow: hidden;
}

.backup-hero::after,
.backup-status-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: url('mascote.jpg') center/cover no-repeat;
    opacity: .16;
    transform: rotate(-4deg);
}

.report-alert-card:hover,
.campaign-card:hover,
.communication-card:hover,
.backup-practices > div:hover,
.backup-checklist > div:hover,
.backup-coverage > div:hover {
    transform: translateY(-2px);
}

@keyframes tmyRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tmyFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(18px, -22px, 0) scale(1.04); }
}

@keyframes tmyMascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes tmySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.dark-mode {
    background:
        radial-gradient(circle at 8% 8%, rgba(74, 144, 226, .13), transparent 31%),
        radial-gradient(circle at 92% 12%, rgba(255, 90, 162, .12), transparent 30%),
        radial-gradient(circle at 68% 90%, rgba(145, 99, 216, .12), transparent 34%),
        linear-gradient(135deg, #080f1d 0%, #101728 48%, #180e22 100%) !important;
}

body.dark-mode .tmy-bg-grid {
    background-image:
        linear-gradient(rgba(141, 199, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 199, 255, .055) 1px, transparent 1px);
    opacity: .28;
}

body.dark-mode .glass-panel::before {
    background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 45%, rgba(255,90,162,.05));
}

body.dark-mode .tmy-hero-motion {
    background:
        linear-gradient(135deg, rgba(15,31,49,.90), rgba(18,22,46,.86) 48%, rgba(42,20,44,.74)),
        radial-gradient(circle at top right, rgba(255,90,162,.12), transparent 38%) !important;
}

body.dark-mode #boletim .section-header::after,
body.dark-mode #config .section-header::after,
body.dark-mode #mensagens .section-header::after,
body.dark-mode #relatorios .section-header::after,
body.dark-mode #planejamento .section-header::after {
    border-color: rgba(141, 199, 255, .18);
    opacity: .32;
}

body.dark-mode .about-hub-panel-40 {
    background:
        linear-gradient(135deg, rgba(15,31,49,.94), rgba(18,22,46,.90), rgba(42,20,44,.78)),
        radial-gradient(circle at 88% 24%, rgba(255,90,162,.13), transparent 35%) !important;
}

@media (min-width: 961px) {
    .main-content {
        padding-top: 92px;
    }
}

@media (max-width: 960px) {
    .sidebar-signature {
        margin-top: 14px;
    }
    .tmy-bg-orb {
        opacity: .42;
    }
}

@media (max-width: 760px) {
    .tmy-hero-motion {
        align-items: flex-start;
    }
    .tmy-hero-motion .mascot-img {
        width: 74px;
        height: 74px;
    }
    #boletim .section-header::after,
    #config .section-header::after,
    #mensagens .section-header::after,
    #relatorios .section-header::after,
    #planejamento .section-header::after {
        display: none;
    }
    #boletim .section-header > *,
    #config .section-header > *,
    #mensagens .section-header > *,
    #relatorios .section-header > *,
    #planejamento .section-header > * {
        max-width: 100%;
    }
    .about-hub-mascot {
        width: 64px;
        height: 64px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
    .glass-panel:hover,
    .stat-card:hover,
    .mini-item:hover,
    .profile-info-card:hover,
    .timeline-item:hover,
    .report-alert-card:hover,
    .campaign-card:hover,
    .communication-card:hover {
        transform: none !important;
    }
}

@media print {
    .tmy-bg-parallax,
    .sidebar-signature,
    .glass-panel::before,
    .stat-card::after,
    .section-header::after,
    .backup-hero::after,
    .backup-status-card::after {
        display: none !important;
    }
}

/* 4.0 safety overrides: preservar posições flutuantes originais */
.global-actions { position: fixed !important; }
.modal { position: fixed !important; }
#toast-container { position: fixed !important; }
.sticky-notes-toggle { position: fixed !important; }
.sticky-notes-panel { position: fixed !important; }
.live-screen { position: fixed !important; }
.mobile-menu-toggle { position: fixed !important; }
.mobile-menu-backdrop { position: fixed !important; }
.global-actions { z-index: 88 !important; }
.modal { z-index: 1000 !important; }
#toast-container { z-index: 2000 !important; }
.sticky-notes-toggle { z-index: 82 !important; }
.sticky-notes-panel { z-index: 2100 !important; }
.live-screen { z-index: 2000 !important; }
.mobile-menu-toggle { z-index: 95 !important; }
.mobile-menu-backdrop { z-index: 84 !important; }

/* =========================================================
   Hotfix 4.0.1 — navegação enxuta, mascote reposicionada e créditos
   ========================================================= */
.sidebar {
    padding: 20px 18px !important;
}
.logo-section {
    margin-bottom: 22px !important;
}
.logo-img {
    width: 98px !important;
    height: 98px !important;
    border-radius: 26px !important;
}
.brand-name {
    margin-top: 10px !important;
    font-size: 13px !important;
}
.sidebar-main-nav,
.sidebar ul {
    gap: 8px !important;
}
.sidebar li {
    min-height: 44px;
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    border-radius: 14px !important;
}
.sidebar-signature {
    margin-top: 14px !important;
    padding: 10px !important;
    border-radius: 16px !important;
}
.sidebar-mascot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
}

/* A mascote não fica mais sobre títulos, botões ou cards internos. */
#boletim .section-header::after,
#config .section-header::after,
#mensagens .section-header::after,
#relatorios .section-header::after,
#planejamento .section-header::after,
.backup-hero::after,
.backup-status-card::after {
    display: none !important;
    content: none !important;
}
#boletim .section-header > *,
#config .section-header > *,
#mensagens .section-header > *,
#relatorios .section-header > *,
#planejamento .section-header > * {
    max-width: none !important;
}
.about-hub-mascot {
    display: none !important;
}

.module-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.module-hub-grid-docs {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.module-hub-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(238,246,255,.78)),
        radial-gradient(circle at 94% 8%, rgba(230,52,127,.12), transparent 34%);
}
.module-hub-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31,111,175,.14), transparent 72%);
    pointer-events: none;
}
.module-hub-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31,111,175,.14), rgba(230,52,127,.12));
    font-size: 25px;
    box-shadow: inset 0 0 0 1px rgba(31,111,175,.10);
}
.module-hub-card h2 {
    margin-bottom: 8px;
}
.module-hub-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.about-hub-panel-40 {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(24px, 4vw, 36px) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,249,255,.82), rgba(255,240,248,.84)),
        radial-gradient(circle at 96% 6%, rgba(230,52,127,.20), transparent 34%),
        radial-gradient(circle at 4% 94%, rgba(31,111,175,.13), transparent 38%) !important;
}
.about-hub-credit-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}
.about-hub-heading {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: clamp(22px, 2.4vw, 34px);
    color: #20324a;
}
.hub-word-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: white;
    font-weight: 950;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #e6347f, #ff5a7d);
    box-shadow: 0 12px 28px rgba(230,52,127,.22);
}
.credit-brand-name {
    display: block;
    font-size: clamp(25px, 3vw, 42px);
    line-height: 1.05;
    color: var(--primary-color);
    letter-spacing: -.04em;
}
.credit-for-line {
    margin: 4px 0 0 !important;
    font-size: clamp(16px, 1.6vw, 22px);
    color: #65305f;
    font-weight: 800;
}
.credit-creator-line {
    margin: 0 !important;
    color: var(--text-muted);
    font-weight: 600;
}
.credit-creator-line strong {
    color: #20324a;
}
.about-hub-version {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    border: 1px solid rgba(230,52,127,.18);
    background: rgba(255,255,255,.72);
    color: var(--secondary-color);
    font-weight: 900;
}
.live-theme-btn {
    background: rgba(255,255,255,.82) !important;
}
.live-theme-icon {
    font-size: 20px;
    line-height: 1;
}
body.dark-mode .module-hub-card {
    background:
        linear-gradient(145deg, rgba(17,35,56,.96), rgba(21,28,52,.84)),
        radial-gradient(circle at 94% 8%, rgba(255,90,162,.13), transparent 34%) !important;
}
body.dark-mode .module-hub-card p,
body.dark-mode .credit-creator-line {
    color: var(--text-muted);
}
body.dark-mode .about-hub-heading,
body.dark-mode .credit-creator-line strong {
    color: #f4f8ff;
}
body.dark-mode .credit-brand-name {
    color: #8dc7ff;
}
body.dark-mode .credit-for-line {
    color: #ff9bc5;
}
body.dark-mode .about-hub-version,
body.dark-mode .live-theme-btn {
    background: rgba(14,31,49,.82) !important;
    color: #f4f8ff !important;
    border-color: rgba(141,199,255,.18) !important;
}
@media (max-width: 960px) {
    .sidebar li {
        min-height: 42px;
    }
    .module-hub-card {
        min-height: 210px;
    }
}
@media (max-width: 680px) {
    .about-hub-panel-40 {
        flex-direction: column;
    }
    .about-hub-version {
        align-self: flex-start;
    }
    .credit-brand-name {
        letter-spacing: -.025em;
    }
}


/* =========================================================
   Hotfix 4.0.2 — créditos compactos e retorno aos grupos
   ========================================================= */
.sidebar-signature {
    align-items: center !important;
}
.sidebar-signature small {
    display: none !important;
}
.sidebar-signature strong {
    display: block;
    line-height: 1.15;
}

.group-back-row {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
}
.btn-group-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 111, 175, .18);
    background: rgba(255, 255, 255, .76);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(31, 111, 175, .10);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-group-back:hover {
    transform: translateX(-2px);
    border-color: rgba(230, 52, 127, .26);
    background: rgba(255, 247, 252, .92);
    box-shadow: 0 16px 34px rgba(31, 111, 175, .14);
}
.btn-group-back span {
    margin-right: 4px;
}

.about-hub-panel-40 {
    display: block !important;
    max-width: 860px;
    min-height: 0 !important;
    margin-top: 18px;
    padding: 18px 20px !important;
    overflow: hidden;
    border: 1px solid rgba(31, 111, 175, .12) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,249,255,.90), rgba(255,244,250,.92)) !important;
    box-shadow: 0 18px 45px rgba(31, 111, 175, .10) !important;
}
.about-hub-panel-40::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #e6347f, #1f6faf);
    border-radius: 999px 0 0 999px;
}
.about-hub-credit-copy {
    display: grid !important;
    gap: 10px !important;
}
.about-hub-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.about-hub-identity-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.about-hub-developed {
    margin: 0 0 2px !important;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
}
.about-hub-panel-40 .hub-word-pill {
    width: 64px;
    min-width: 64px;
    height: 52px;
    padding: 0;
    border-radius: 22px;
    font-size: 23px;
    line-height: 1;
    letter-spacing: .02em;
    box-shadow: 0 12px 26px rgba(230,52,127,.20);
}
.about-hub-panel-40 .credit-brand-name {
    font-size: clamp(23px, 2.4vw, 32px);
    line-height: 1.04;
    letter-spacing: -.035em;
    color: var(--primary-color);
}
.about-hub-panel-40 .credit-for-line {
    margin: 2px 0 0 !important;
    color: #65305f;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 850;
}
.about-hub-panel-40 .credit-creator-line {
    margin: -2px 0 0 !important;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}
.about-hub-panel-40 .credit-creator-line strong {
    color: #20324a;
    font-weight: 900;
}
.about-hub-panel-40 .about-hub-version {
    position: static !important;
    align-self: auto !important;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    border: 1px solid rgba(230,52,127,.14);
    background: rgba(255,255,255,.68);
    color: var(--secondary-color);
    white-space: nowrap;
}

body.dark-mode .btn-group-back {
    background: rgba(15, 31, 52, .84);
    color: #f4f8ff;
    border-color: rgba(141, 199, 255, .18);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
body.dark-mode .btn-group-back:hover {
    background: rgba(30, 44, 75, .96);
    border-color: rgba(255, 155, 197, .25);
}
body.dark-mode .about-hub-panel-40 {
    border-color: rgba(141,199,255,.16) !important;
    background:
        linear-gradient(135deg, rgba(17,35,56,.96), rgba(25,31,58,.94), rgba(53,30,63,.82)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.24) !important;
}
body.dark-mode .about-hub-developed,
body.dark-mode .about-hub-panel-40 .credit-creator-line {
    color: #b8c6d8;
}
body.dark-mode .about-hub-panel-40 .credit-brand-name {
    color: #8dc7ff;
}
body.dark-mode .about-hub-panel-40 .credit-for-line {
    color: #ff9bc5;
}
body.dark-mode .about-hub-panel-40 .credit-creator-line strong {
    color: #f4f8ff;
}
body.dark-mode .about-hub-panel-40 .about-hub-version {
    background: rgba(14,31,49,.82);
    color: #f4f8ff;
    border-color: rgba(141,199,255,.18);
}

@media (max-width: 680px) {
    .group-back-row {
        margin-bottom: 12px;
    }
    .btn-group-back {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .about-hub-panel-40 {
        max-width: none;
        padding: 16px 16px 16px 18px !important;
    }
    .about-hub-topline,
    .about-hub-identity-row {
        align-items: flex-start;
    }
    .about-hub-topline {
        flex-direction: column;
    }
    .about-hub-identity-row {
        gap: 12px;
    }
    .about-hub-panel-40 .hub-word-pill {
        width: 56px;
        min-width: 56px;
        height: 48px;
        border-radius: 20px;
        font-size: 20px;
    }
}


/* =========================================================
   Central de Ajuda TMY — Versão 4.1
   ========================================================= */
.help-action-btn { font-size: 21px; font-weight: 900; color: var(--primary-color); line-height: 1; }
.help-action-btn:hover { color: #fff; }
.help-center-section { animation: tmyRise .28s ease both; }
.help-main-header { margin-bottom: 18px; }
.help-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.help-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(230,52,127,.16), transparent 68%); pointer-events: none; }
.help-hero-copy h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; }
.help-hero-copy p { max-width: 790px; color: var(--text-muted); line-height: 1.7; }
.help-pill { display: inline-flex; width: fit-content; padding: 7px 12px; border-radius: 999px; background: rgba(230,52,127,.12); color: var(--secondary-color); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.help-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.help-hero-card { position: relative; z-index: 1; min-height: 210px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,244,251,.72)); border: 1px solid rgba(230,52,127,.16); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; box-shadow: 0 18px 45px rgba(15,71,116,.10); }
.help-hero-card strong { color: var(--primary-color); font-size: 20px; }
.help-hero-card span { color: var(--text-muted); font-size: 13px; margin-top: 5px; }
.help-hero-mascot { width: 96px; height: 96px; border-radius: 28px; object-fit: cover; margin-bottom: 12px; border: 3px solid rgba(255,255,255,.82); box-shadow: 0 12px 30px rgba(15,71,116,.12); }
.help-search-panel { margin-bottom: 20px; padding: 20px; }
.help-search-panel .field-label { margin: 0; }
.help-search-panel input { margin-top: 8px; }
.help-center-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.help-topic-list { position: sticky; top: 92px; display: grid; gap: 10px; padding: 16px; max-height: calc(100vh - 122px); overflow-y: auto; }
.help-topic-card { width: 100%; border: 1px solid rgba(31,111,175,.12); background: rgba(255,255,255,.82); border-radius: 16px; padding: 13px 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; text-align: left; cursor: pointer; transition: .2s ease; color: var(--text-light); }
.help-topic-card span { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 12px; background: rgba(31,111,175,.10); display: flex; align-items: center; justify-content: center; }
.help-topic-card strong { font-size: 14px; color: var(--primary-color); }
.help-topic-card small { color: var(--text-muted); line-height: 1.35; }
.help-topic-card:hover, .help-topic-card.active { transform: translateY(-1px); border-color: rgba(230,52,127,.30); background: linear-gradient(135deg, rgba(31,111,175,.10), rgba(230,52,127,.08)); box-shadow: 0 10px 24px rgba(15,71,116,.09); }
.help-topic-card.is-hidden-by-search { display: none; }
.help-panel-area { min-width: 0; }
.help-panel { display: none; min-height: 540px; }
.help-panel.active { display: block; animation: tmyRise .24s ease both; }
.help-panel p, .help-panel li { color: var(--text-muted); line-height: 1.7; }
.help-panel h3 { color: var(--primary-color); margin-bottom: 8px; }
.help-step-grid, .help-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.help-step-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); }
.help-step-grid > div, .help-feature-list > div, .manual-block { padding: 16px; border-radius: 18px; background: rgba(248,251,253,.82); border: 1px solid rgba(31,111,175,.12); }
.help-step-grid strong { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--secondary-color)); color: white; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.help-feature-list.three-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
.help-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.help-two-columns > div { padding: 18px; border-radius: 18px; background: rgba(248,251,253,.86); border: 1px solid rgba(31,111,175,.12); }
.help-checklist { display: grid; gap: 10px; margin: 16px 0; padding-left: 22px; }
.help-callout { margin-top: 18px; padding: 15px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(31,111,175,.10), rgba(230,52,127,.09)); border: 1px solid rgba(230,52,127,.16); color: var(--text-light); line-height: 1.6; }
.manual-block { margin-top: 14px; }
.manual-block ol { margin-top: 8px; padding-left: 22px; }
.learning-inline-tip { display: none; margin: -8px 0 22px; padding: 12px 14px; border-radius: 16px; background: rgba(244,197,66,.16); border: 1px solid rgba(244,197,66,.36); color: var(--text-light); box-shadow: 0 8px 22px rgba(15,71,116,.06); }
.learning-mode-enabled .learning-inline-tip { display: block; }
body.dark-mode .help-topic-card, body.dark-mode .help-step-grid > div, body.dark-mode .help-feature-list > div, body.dark-mode .manual-block, body.dark-mode .help-two-columns > div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.dark-mode .help-topic-card strong, body.dark-mode .help-panel h3, body.dark-mode .help-hero-card strong { color: #d7ecff; }
body.dark-mode .help-hero-card { background: linear-gradient(145deg, rgba(17,29,48,.92), rgba(83,41,83,.38)); border-color: rgba(255,255,255,.12); }
body.dark-mode .help-callout { background: rgba(255,255,255,.07); border-color: rgba(230,52,127,.32); }
body.dark-mode .learning-inline-tip { background: rgba(244,197,66,.12); color: #f8fbff; }
@media (max-width: 1000px) {
    .help-hero { grid-template-columns: 1fr; }
    .help-hero-card { min-height: auto; }
    .help-center-layout { grid-template-columns: 1fr; }
    .help-topic-list { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 720px) {
    .help-step-grid, .help-feature-list, .help-feature-list.three-cols, .help-two-columns { grid-template-columns: 1fr; }
    .help-topic-list { grid-template-columns: 1fr; }
    .help-hero, .help-search-panel, .help-panel { padding: 18px; }
}


/* =========================================================
   Hotfix 4.1.1 — Manual prático e tutoriais guiados
   ========================================================= */
.help-hero-practical { border-color: rgba(230, 52, 127, .18); }
.help-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.help-task-card { border: 1px solid rgba(31,111,175,.13); background: rgba(255,255,255,.86); border-radius: 18px; padding: 16px; text-align: left; cursor: pointer; transition: .22s ease; display: grid; gap: 8px; min-height: 148px; color: var(--text-light); box-shadow: 0 8px 20px rgba(15,71,116,.06); }
.help-task-card span { width: 42px; height: 42px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(31,111,175,.12), rgba(230,52,127,.10)); font-size: 20px; }
.help-task-card strong { color: var(--primary-color); font-size: 16px; line-height: 1.25; }
.help-task-card small { color: var(--text-muted); line-height: 1.45; }
.help-task-card:hover { transform: translateY(-3px); border-color: rgba(230,52,127,.32); box-shadow: 0 14px 30px rgba(15,71,116,.11); }
.tutorial-card { margin-top: 18px; padding: 20px; border-radius: 20px; background: rgba(248,251,253,.92); border: 1px solid rgba(31,111,175,.13); box-shadow: 0 8px 22px rgba(15,71,116,.05); }
.tutorial-card + .tutorial-card { margin-top: 16px; }
.tutorial-card h3 { margin-bottom: 12px; color: var(--primary-color); }
.tutorial-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tutorial-meta span { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(31,111,175,.09); color: var(--primary-color); font-size: 12px; font-weight: 800; line-height: 1.35; }
.tutorial-steps { counter-reset: helpStep; list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 12px 0 14px; }
.tutorial-steps li { position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; background: #fff; border: 1px solid rgba(31,111,175,.10); color: var(--text-muted); line-height: 1.62; }
.tutorial-steps li::before { counter-increment: helpStep; content: counter(helpStep); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-light), var(--secondary-color)); color: #fff; font-weight: 900; font-size: 12px; }
.tutorial-result, .tutorial-warning { margin-top: 12px; padding: 13px 15px; border-radius: 16px; line-height: 1.6; }
.tutorial-result { background: rgba(7,148,85,.08); border: 1px solid rgba(7,148,85,.18); color: var(--text-light); }
.tutorial-warning { background: rgba(230,52,127,.08); border: 1px solid rgba(230,52,127,.20); color: var(--text-light); }
.tutorial-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
body.dark-mode .help-task-card, body.dark-mode .tutorial-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.dark-mode .help-task-card strong, body.dark-mode .tutorial-card h3 { color: #d7ecff; }
body.dark-mode .tutorial-steps li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
body.dark-mode .tutorial-meta span { background: rgba(255,255,255,.08); color: #d7ecff; }
body.dark-mode .tutorial-result { background: rgba(7,148,85,.12); border-color: rgba(7,148,85,.28); }
body.dark-mode .tutorial-warning { background: rgba(230,52,127,.12); border-color: rgba(230,52,127,.30); }
@media (max-width: 720px) { .tutorial-steps li { padding-left: 46px; } .help-task-card { min-height: auto; } .tutorial-meta span { width: 100%; } }


/* =========================================================
   Hotfix 4.1.2 - Central de Ajuda limpa + Manual externo
   ========================================================= */
.help-clean-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.help-clean-hero::after { content: ""; position: absolute; right: -120px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(230,52,127,.14), transparent 68%); pointer-events: none; }
.help-clean-copy { position: relative; z-index: 1; }
.help-clean-copy h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.help-clean-copy p { color: var(--text-muted); line-height: 1.7; max-width: 820px; }
.help-clean-card { position: relative; z-index: 1; min-height: 210px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,244,251,.72)); border: 1px solid rgba(230,52,127,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; box-shadow: 0 18px 45px rgba(15,71,116,.10); }
.help-clean-logo { width: 102px; height: 102px; object-fit: contain; border-radius: 26px; background: white; padding: 8px; border: 1px solid rgba(31,111,175,.13); margin-bottom: 12px; }
.help-clean-card strong { color: var(--primary-color); font-size: 18px; }
.help-clean-card span { color: var(--text-muted); font-size: 13px; margin-top: 5px; }
.help-clean-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.help-clean-tile { text-decoration: none; border: 1px solid rgba(31,111,175,.13); background: rgba(255,255,255,.86); border-radius: 18px; padding: 16px; text-align: left; cursor: pointer; transition: .22s ease; display: grid; gap: 8px; min-height: 138px; color: var(--text-light); box-shadow: 0 8px 20px rgba(15,71,116,.06); }
.help-clean-tile span { width: 42px; height: 42px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(31,111,175,.12), rgba(230,52,127,.10)); font-size: 20px; }
.help-clean-tile strong { color: var(--primary-color); font-size: 16px; line-height: 1.25; }
.help-clean-tile small { color: var(--text-muted); line-height: 1.45; }
.help-clean-tile:hover, .help-clean-tile.active { transform: translateY(-3px); border-color: rgba(230,52,127,.32); box-shadow: 0 14px 30px rgba(15,71,116,.11); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,244,251,.80)); }
.help-clean-download { border-color: rgba(230,52,127,.24); }
.help-clean-panels { margin-top: 18px; }
.help-flow-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: center; margin: 18px 0; }
.help-flow-strip > div { padding: 14px; border-radius: 18px; background: rgba(248,251,253,.9); border: 1px solid rgba(31,111,175,.13); text-align: center; }
.help-flow-strip strong { display: block; color: var(--primary-color); }
.help-flow-strip span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.help-flow-strip b { text-align: center; color: var(--secondary-color); font-size: 20px; }
body.dark-mode .help-clean-card, body.dark-mode .help-clean-tile, body.dark-mode .help-flow-strip > div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.dark-mode .help-clean-card strong, body.dark-mode .help-clean-tile strong, body.dark-mode .help-flow-strip strong { color: #d7ecff; }
body.dark-mode .help-clean-logo { background: rgba(255,255,255,.90); }
@media (max-width: 900px) { .help-clean-hero { grid-template-columns: 1fr; } .help-clean-card { min-height: auto; } }
@media (max-width: 720px) { .help-flow-strip { grid-template-columns: 1fr; } .help-flow-strip b { transform: rotate(90deg); } .help-clean-tile { min-height: auto; } }


/* =========================================================
   Hotfix 4.1.2 - Central de Ajuda limpa + Manual externo
   ========================================================= */
.help-clean-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.help-clean-hero::after { content: ""; position: absolute; right: -120px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(230,52,127,.14), transparent 68%); pointer-events: none; }
.help-clean-copy { position: relative; z-index: 1; }
.help-clean-copy h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.help-clean-copy p { color: var(--text-muted); line-height: 1.7; max-width: 820px; }
.help-clean-card { position: relative; z-index: 1; min-height: 210px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,244,251,.72)); border: 1px solid rgba(230,52,127,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; box-shadow: 0 18px 45px rgba(15,71,116,.10); }
.help-clean-logo { width: 102px; height: 102px; object-fit: contain; border-radius: 26px; background: white; padding: 8px; border: 1px solid rgba(31,111,175,.13); margin-bottom: 12px; }
.help-clean-card strong { color: var(--primary-color); font-size: 18px; }
.help-clean-card span { color: var(--text-muted); font-size: 13px; margin-top: 5px; }
.help-clean-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.help-clean-tile { text-decoration: none; border: 1px solid rgba(31,111,175,.13); background: rgba(255,255,255,.86); border-radius: 18px; padding: 16px; text-align: left; cursor: pointer; transition: .22s ease; display: grid; gap: 8px; min-height: 138px; color: var(--text-light); box-shadow: 0 8px 20px rgba(15,71,116,.06); }
.help-clean-tile span { width: 42px; height: 42px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(31,111,175,.12), rgba(230,52,127,.10)); font-size: 20px; }
.help-clean-tile strong { color: var(--primary-color); font-size: 16px; line-height: 1.25; }
.help-clean-tile small { color: var(--text-muted); line-height: 1.45; }
.help-clean-tile:hover, .help-clean-tile.active { transform: translateY(-3px); border-color: rgba(230,52,127,.32); box-shadow: 0 14px 30px rgba(15,71,116,.11); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,244,251,.80)); }
.help-clean-download { border-color: rgba(230,52,127,.24); }
.help-clean-panels { margin-top: 18px; }
.help-flow-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: center; margin: 18px 0; }
.help-flow-strip > div { padding: 14px; border-radius: 18px; background: rgba(248,251,253,.9); border: 1px solid rgba(31,111,175,.13); text-align: center; }
.help-flow-strip strong { display: block; color: var(--primary-color); }
.help-flow-strip span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.help-flow-strip b { text-align: center; color: var(--secondary-color); font-size: 20px; }
body.dark-mode .help-clean-card, body.dark-mode .help-clean-tile, body.dark-mode .help-flow-strip > div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.dark-mode .help-clean-card strong, body.dark-mode .help-clean-tile strong, body.dark-mode .help-flow-strip strong { color: #d7ecff; }
body.dark-mode .help-clean-logo { background: rgba(255,255,255,.90); }
@media (max-width: 900px) { .help-clean-hero { grid-template-columns: 1fr; } .help-clean-card { min-height: auto; } }
@media (max-width: 720px) { .help-flow-strip { grid-template-columns: 1fr; } .help-flow-strip b { transform: rotate(90deg); } .help-clean-tile { min-height: auto; } }
.help-clean-tile span { grid-row: auto; }
.help-clean-tile.is-hidden-by-search { display: none; }


/* =========================================================
   Hotfix 4.1.3 - Correção visual dos cards da Central de Ajuda
   ========================================================= */
.help-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
    align-items: stretch;
}
.help-clean-grid .help-clean-tile,
.help-clean-grid .help-topic-card {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: 176px;
    padding: 22px;
    width: 100%;
    line-height: 1.45;
    grid-template-columns: none !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.help-clean-grid .help-clean-tile span,
.help-clean-grid .help-topic-card span {
    flex: 0 0 auto;
    grid-row: auto !important;
    width: 48px;
    height: 48px;
    border-radius: 18px;
}
.help-clean-grid .help-clean-tile strong,
.help-clean-grid .help-topic-card strong {
    display: block;
    width: 100%;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
}
.help-clean-grid .help-clean-tile small,
.help-clean-grid .help-topic-card small {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.help-hero-actions .btn-primary,
.help-hero-actions .btn-secondary {
    min-height: 44px;
}
@media (max-width: 1180px) {
    .help-clean-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .help-clean-grid { grid-template-columns: 1fr; }
    .help-clean-grid .help-clean-tile,
    .help-clean-grid .help-topic-card { min-height: auto; padding: 18px; }
}


/* =========================================================
   TMY HUB 4.2 — Busca Global Inteligente
   ========================================================= */
.global-search-action-btn {
    font-size: 19px;
    color: var(--primary-color);
    font-weight: 900;
}
.global-search-action-btn:hover {
    color: #fff;
}
.global-search-content {
    width: min(980px, 96vw);
    max-height: min(86vh, 820px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
}
.global-search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.global-search-header h2 {
    margin-bottom: 6px;
}
.global-search-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(31,111,175,.18);
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 10px 28px rgba(15,71,116,.08);
}
.global-search-box span {
    font-size: 20px;
}
.global-search-box input {
    border: 0;
    box-shadow: none;
    padding: 10px 4px;
    background: transparent;
    min-height: 44px;
}
.global-search-box input:focus {
    border: 0;
    box-shadow: none;
}
.global-search-helper {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}
.global-search-shortcut {
    background: rgba(31,111,175,.08);
    color: var(--primary-color);
    border: 1px solid rgba(31,111,175,.12);
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
}
.global-search-results {
    overflow-y: auto;
    padding-right: 4px;
    display: grid;
    gap: 16px;
}
.global-search-start,
.global-search-empty {
    border: 1px dashed rgba(31,111,175,.24);
    background: rgba(248,251,253,.86);
    border-radius: 18px;
    padding: 18px;
    color: var(--text-muted);
}
.global-search-start strong,
.global-search-empty strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.global-search-group {
    border: 1px solid rgba(31,111,175,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    overflow: hidden;
}
.global-search-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(31,111,175,.10), rgba(230,52,127,.08));
    color: var(--primary-color);
    font-weight: 900;
}
.global-search-group-title span:last-child {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.global-search-list {
    display: grid;
    gap: 0;
}
.global-search-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid rgba(31,111,175,.08);
    align-items: center;
}
.global-search-item:first-child {
    border-top: 0;
}
.global-search-item-main strong {
    display: block;
    color: #213047;
    margin-bottom: 4px;
}
.global-search-item-main p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
    font-size: 13px;
}
.global-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.global-search-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(31,111,175,.08);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
}
.global-search-action {
    align-self: center;
}
body.dark-mode .global-search-box,
body.dark-mode .global-search-group,
body.dark-mode .global-search-start,
body.dark-mode .global-search-empty {
    background: rgba(17,24,39,.72);
    border-color: rgba(255,255,255,.12);
}
body.dark-mode .global-search-group-title {
    background: linear-gradient(135deg, rgba(31,111,175,.22), rgba(230,52,127,.16));
    color: #d8ecff;
}
body.dark-mode .global-search-item {
    border-color: rgba(255,255,255,.08);
}
body.dark-mode .global-search-item-main strong {
    color: #f8fbff;
}
body.dark-mode .global-search-tag,
body.dark-mode .global-search-shortcut {
    background: rgba(255,255,255,.08);
    color: #d8ecff;
    border-color: rgba(255,255,255,.12);
}
@media (max-width: 720px) {
    .global-search-content {
        padding: 20px;
        max-height: 88vh;
    }
    .global-search-header,
    .global-search-helper,
    .global-search-item {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .global-search-item {
        display: grid;
    }
    .global-search-action {
        width: 100%;
    }
    .global-search-action .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   Hotfix 4.2.1 — Busca Global legível + ações globais recolhíveis
   ========================================================= */
.global-search-modal {
    align-items: center !important;
    padding: 20px !important;
}
.global-search-content {
    width: min(1040px, calc(100vw - 32px)) !important;
    height: min(86vh, 820px) !important;
    max-height: calc(100dvh - 40px) !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
.global-search-header {
    flex: 0 0 auto;
    padding: 24px 24px 14px !important;
    border-bottom: 1px solid rgba(31,111,175,.10);
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,244,251,.86));
}
.global-search-box {
    flex: 0 0 auto;
    margin: 18px 24px 10px !important;
}
.global-search-helper {
    flex: 0 0 auto;
    margin: 0 24px 12px !important;
}
.global-search-results {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 4px 24px 24px !important;
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    scrollbar-gutter: stable;
}
.global-search-group {
    overflow: visible !important;
    border-radius: 18px !important;
}
.global-search-group.is-primary {
    border-color: rgba(230,52,127,.26) !important;
    box-shadow: 0 12px 28px rgba(230,52,127,.08);
}
.global-search-group.is-primary .global-search-group-title {
    background: linear-gradient(135deg, rgba(230,52,127,.16), rgba(31,111,175,.10)) !important;
}
.global-search-group-title {
    padding: 10px 14px !important;
}
.global-search-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px !important;
    padding: 12px 14px !important;
    min-height: 0 !important;
    align-items: center !important;
}
.global-search-item-main {
    min-width: 0 !important;
}
.global-search-item-main strong {
    margin-bottom: 2px !important;
    line-height: 1.25 !important;
}
.global-search-item-main p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35 !important;
}
.global-search-tags {
    margin-top: 7px !important;
}
.global-search-action {
    align-self: center !important;
    justify-self: end !important;
    min-width: 132px;
}
.global-search-action .btn-secondary {
    width: 100%;
    min-height: 38px;
}
.global-search-more {
    padding: 10px 14px 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    background: rgba(248,251,253,.74);
    border-top: 1px dashed rgba(31,111,175,.16);
}
body.dark-mode .global-search-header {
    background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(52,18,45,.86));
    border-bottom-color: rgba(255,255,255,.10);
}
body.dark-mode .global-search-more {
    background: rgba(255,255,255,.04);
    border-top-color: rgba(255,255,255,.12);
}
.global-actions-toggle {
    display: none;
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1;
}
.global-actions.is-collapsed {
    transition: transform .22s ease, opacity .22s ease, gap .22s ease;
}
.global-actions.is-collapsed .global-actions-toggle {
    display: flex !important;
}
.global-actions.is-collapsed:not(:hover):not(:focus-within):not(.is-touch-open) {
    gap: 0 !important;
}
.global-actions.is-collapsed:not(:hover):not(:focus-within):not(.is-touch-open) > :not(.global-actions-toggle) {
    display: none !important;
}
.global-actions.is-collapsed:hover,
.global-actions.is-collapsed:focus-within,
.global-actions.is-collapsed.is-touch-open {
    gap: 10px !important;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(31,111,175,.12);
    box-shadow: 0 16px 42px rgba(15,71,116,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.dark-mode .global-actions.is-collapsed:hover,
body.dark-mode .global-actions.is-collapsed:focus-within,
body.dark-mode .global-actions.is-collapsed.is-touch-open {
    background: rgba(17,24,39,.78);
    border-color: rgba(255,255,255,.12);
}
body.dark-mode .global-actions-toggle {
    color: #d8ecff;
}
@media (max-width: 720px) {
    .global-search-modal { padding: 10px !important; }
    .global-search-content {
        width: calc(100vw - 20px) !important;
        height: calc(100dvh - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        border-radius: 24px !important;
    }
    .global-search-header {
        padding: 18px 18px 12px !important;
    }
    .global-search-box { margin: 14px 18px 8px !important; }
    .global-search-helper { margin: 0 18px 10px !important; }
    .global-search-results { padding: 4px 18px 18px !important; }
    .global-search-item {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }
    .global-search-action {
        min-width: 0;
        width: 100%;
        justify-self: stretch !important;
    }
    .global-actions.is-collapsed:hover,
    .global-actions.is-collapsed:focus-within,
    .global-actions.is-collapsed.is-touch-open {
        gap: 7px !important;
        padding: 6px;
        max-width: calc(100vw - 28px);
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}



/* =========================================================
   HUB 4.3 — Perfil 360º do Aluno
   ========================================================= */
.profile-360-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(230,52,127,.13), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,246,255,.84));
    border: 1px solid rgba(31,111,175,.14);
    box-shadow: 0 14px 36px rgba(15,71,116,.10);
    margin-bottom: 18px;
}
.profile-360-hero h3 { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 8px; color: #183452; }
.profile-360-hero p { color: var(--text-muted); max-width: 780px; line-height: 1.58; }
.profile-360-tags, .profile-360-inline-actions, .profile-360-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-360-tags { margin-top: 14px; }
.profile-360-tags span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(31,111,175,.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
}
.profile-360-actions { justify-content: flex-end; min-width: 230px; }
.profile-360-kpis { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.profile-360-kpi {
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(31,111,175,.12);
    box-shadow: 0 8px 22px rgba(15,71,116,.07);
}
.profile-360-kpi span { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .45px; color: var(--text-muted); margin-bottom: 6px; }
.profile-360-kpi strong { font-size: 18px; color: #183452; }
.profile-360-kpi.success { border-color: rgba(7,148,85,.22); background: linear-gradient(135deg, #ffffff, #ecfdf3); }
.profile-360-kpi.warning { border-color: rgba(245,158,11,.25); background: linear-gradient(135deg, #ffffff, #fff8e6); }
.profile-360-kpi.danger { border-color: rgba(217,45,32,.25); background: linear-gradient(135deg, #ffffff, #fff1f0); }
.profile-360-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-360-bottom-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 14px; margin-top: 14px; }
.profile-360-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(31,111,175,.13);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15,71,116,.08);
    min-height: 168px;
}
.profile-360-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.profile-360-card h3 { color: #17466f; font-size: 17px; margin: 0; }
.profile-360-card p { color: var(--text-muted); line-height: 1.55; margin: 7px 0; }
.profile-360-card strong { color: #25324a; }
.profile-360-list { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--text-muted); }
.profile-360-list li { line-height: 1.55; padding-left: 2px; }
.profile-360-empty { padding: 14px; border-radius: 14px; background: rgba(7,148,85,.07); color: #067647; font-weight: 700; }
.profile-360-inline-actions { margin-top: 12px; }
.finance-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(236,253,243,.78)); }
.class-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,248,255,.78)); }
.evolution-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,244,251,.78)); }
.document-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,243,255,.78)); }
.communication-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.78)); }
.referral-card { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,251,235,.78)); }
.next-card { border-color: rgba(230,52,127,.20); }
.flow-card { border-color: rgba(31,111,175,.20); }
.history-card { border-color: rgba(100,116,139,.18); }

body.dark-mode .profile-360-hero,
body.dark-mode .profile-360-kpi,
body.dark-mode .profile-360-card {
    background: rgba(17, 27, 44, .92);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
body.dark-mode .profile-360-hero h3,
body.dark-mode .profile-360-kpi strong,
body.dark-mode .profile-360-card h3,
body.dark-mode .profile-360-card strong { color: #f8fbff; }
body.dark-mode .profile-360-hero p,
body.dark-mode .profile-360-card p,
body.dark-mode .profile-360-list { color: rgba(235,242,255,.76); }
body.dark-mode .profile-360-tags span { background: rgba(255,255,255,.10); color: #eaf4ff; }
body.dark-mode .profile-360-empty { background: rgba(7,148,85,.14); color: #8ef0bd; }

@media (max-width: 1180px) {
    .profile-360-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-360-grid, .profile-360-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .profile-360-hero { flex-direction: column; }
    .profile-360-actions { justify-content: flex-start; min-width: 0; }
    .profile-360-kpis, .profile-360-grid, .profile-360-bottom-grid { grid-template-columns: 1fr; }
    .profile-360-card-head { flex-direction: column; }
}


/* =========================================================
   HUB 4.3.1 — Hotfix Perfil 360º
   Corrige quebra visual do modal do aluno e das abas superiores.
   ========================================================= */
.profile-content {
    width: min(1280px, calc(100vw - 42px));
    height: min(92vh, calc(100vh - 44px));
    max-height: none;
    overflow: hidden;
}
.profile-header {
    flex: 0 0 auto;
}
.profile-tabs {
    flex: 0 0 auto;
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 8px;
    column-gap: 8px;
    padding: 12px 18px;
    scrollbar-width: thin;
}
.profile-tab {
    font-size: 14px;
    line-height: 1.15;
    padding: 9px 12px;
}
.profile-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 26px 34px;
}
.profile-panel.active {
    display: block;
}
.profile-360-hero {
    margin-top: 0;
    align-items: flex-start;
}
.profile-360-actions {
    min-width: 0;
    width: auto;
    max-width: 320px;
}
.profile-360-actions .btn-small {
    min-width: 112px;
}
.profile-360-hero p {
    max-width: 820px;
}

@media (max-width: 900px) {
    .profile-content {
        width: calc(100vw - 22px);
        height: calc(100vh - 22px);
    }
    .profile-header {
        padding: 18px 18px;
    }
    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 14px;
    }
    .profile-panel {
        padding: 18px 16px 28px;
    }
    .profile-360-actions {
        max-width: none;
        justify-content: flex-start;
    }
}

/* =========================================================
   HUB 4.4 — Saúde do HUB + Integridade + Backup
   ========================================================= */
.hub-health-panel {
    padding: 26px;
    position: relative;
    overflow: hidden;
}
.hub-health-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 10%, rgba(31, 111, 175, .10), transparent 30%),
        radial-gradient(circle at 96% 2%, rgba(230, 52, 127, .10), transparent 32%);
}
.hub-health-panel > * { position: relative; z-index: 1; }
.hub-health-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.hub-health-header h2 { margin-bottom: 8px; }
.hub-health-header p { color: var(--text-muted); max-width: 780px; line-height: 1.55; }
.hub-health-badge {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    color: var(--primary-color);
    background: rgba(31, 111, 175, .10);
    border: 1px solid rgba(31, 111, 175, .18);
    white-space: nowrap;
}
.hub-health-badge.success { color: #067647; background: rgba(7, 148, 85, .10); border-color: rgba(7, 148, 85, .22); }
.hub-health-badge.warning { color: #b54708; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .28); }
.hub-health-badge.danger { color: #b42318; background: rgba(217, 45, 32, .10); border-color: rgba(217, 45, 32, .24); }
.hub-health-score-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.hub-health-score-card,
.hub-health-card {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(31, 111, 175, .14);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 71, 116, .08);
}
.hub-health-score-card { padding: 16px; min-height: 118px; }
.hub-health-score-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 800;
    margin-bottom: 8px;
}
.hub-health-score-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.hub-health-score-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}
.hub-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.hub-health-card { padding: 18px; }
.hub-health-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.hub-health-card-head h3 {
    color: var(--primary-color);
    font-size: 17px;
    margin: 0;
}
.hub-health-list { display: grid; gap: 9px; }
.hub-health-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(31,111,175,.10);
    color: var(--text-muted);
    line-height: 1.4;
}
.hub-health-item span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}
.hub-health-item strong { color: var(--text-light); }
.hub-health-item.success span { background: rgba(7, 148, 85, .12); color: #067647; }
.hub-health-item.warning span { background: rgba(245, 158, 11, .14); color: #b54708; }
.hub-health-item.danger span { background: rgba(217, 45, 32, .12); color: #b42318; }
.hub-health-item.neutral span { background: rgba(31, 111, 175, .12); color: var(--primary-color); }
.hub-health-module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    padding-right: 4px;
}
.hub-health-module-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(31,111,175,.10);
    color: var(--text-muted);
    font-size: 13px;
}
.hub-health-module-row strong { color: var(--primary-color); }
.hub-health-routine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hub-health-routine-grid div {
    padding: 13px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(31,111,175,.10);
}
.hub-health-routine-grid strong { color: var(--primary-color); display: block; margin-bottom: 5px; }
.hub-health-routine-grid p { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
body.dark-mode .hub-health-score-card,
body.dark-mode .hub-health-card,
body.dark-mode .hub-health-item,
body.dark-mode .hub-health-module-row,
body.dark-mode .hub-health-routine-grid div {
    background: rgba(15, 31, 49, .92) !important;
    border-color: rgba(150, 205, 255, .18) !important;
    color: #dce9f7 !important;
}
body.dark-mode .hub-health-header p,
body.dark-mode .hub-health-score-card p,
body.dark-mode .hub-health-score-card span,
body.dark-mode .hub-health-item,
body.dark-mode .hub-health-module-row,
body.dark-mode .hub-health-routine-grid p { color: #b8c8da !important; }
body.dark-mode .hub-health-card-head h3,
body.dark-mode .hub-health-score-card strong,
body.dark-mode .hub-health-item strong,
body.dark-mode .hub-health-routine-grid strong,
body.dark-mode .hub-health-module-row strong { color: #f7fbff !important; }
@media (max-width: 1180px) {
    .hub-health-score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-health-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .hub-health-panel { padding: 18px; }
    .hub-health-header { flex-direction: column; }
    .hub-health-score-row,
    .hub-health-module-list,
    .hub-health-routine-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Hotfix 4.4.1 — Configurações organizadas
   ========================================================= */
.config-clean-header {
    margin-bottom: 16px;
}
.config-tabs {
    position: sticky;
    top: 82px;
    z-index: 8;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.config-tab-panel {
    display: none;
}
.config-tab-panel.active {
    display: block;
    animation: tmyFadeUp .22s ease both;
}
.config-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.config-setting-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}
.config-setting-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 6px;
}
.config-setting-card p {
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
}
.primary-setting-card {
    background:
        radial-gradient(circle at 92% 10%, rgba(230,52,127,.13), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,246,255,.78));
}
.setting-control {
    margin-top: auto;
    min-height: 46px;
    font-weight: 700;
}
.config-manual-grid .config-setting-card {
    min-height: 170px;
}
body.dark-mode .config-tabs,
body.dark-mode .primary-setting-card,
body.dark-mode .config-setting-card {
    background: rgba(17,24,39,.84) !important;
    border-color: rgba(255,255,255,.10) !important;
}
body.dark-mode .config-setting-card h3 {
    color: #d8ecff !important;
}
body.dark-mode .config-setting-card p {
    color: #b8c8da !important;
}
body.dark-mode .setting-control {
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(255,255,255,.14) !important;
    color: #f7fbff !important;
}
body.density-compact .main-content {
    padding-top: 78px;
}
body.density-compact .glass-panel,
body.density-compact .compact-panel,
body.density-compact .config-setting-card,
body.density-compact .hub-health-card,
body.density-compact .hub-health-score-card,
body.density-compact .backup-status-card,
body.density-compact .stat-card {
    padding: 16px !important;
}
body.density-compact .section-header {
    margin-bottom: 16px;
}
body.density-compact .dashboard-clean-grid,
body.density-compact .config-home-grid,
body.density-compact .hub-health-grid,
body.density-compact .backup-smart-grid {
    gap: 12px !important;
}
body.motion-reduced *,
body.motion-reduced *::before,
body.motion-reduced *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
}
body.global-actions-expanded .global-actions.is-collapsed {
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
body.global-actions-expanded .global-actions.is-collapsed > :not(.global-actions-toggle) {
    display: flex !important;
}
body.global-actions-expanded .global-actions-toggle {
    display: none !important;
}
@media (max-width: 720px) {
    .config-tabs {
        position: static;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .config-tabs .internal-tab {
        white-space: nowrap;
    }
    .config-home-grid {
        grid-template-columns: 1fr;
    }
    .config-setting-card {
        min-height: auto;
    }
}


/* =========================================================
   VERSÃO 4.5.2 — Seasonal Visual Packs
   ========================================================= */
body[data-theme-pack="tmy-original"] {
    --primary-color: #0f4774;
    --primary-light: #1f6faf;
    --secondary-color: #e6347f;
    --accent-color: #f4c542;
}
body[data-theme-pack="candy-cats"] {
    --primary-color: #7f4acb;
    --primary-light: #9f7aea;
    --secondary-color: #ff5c9f;
    --accent-color: #ffd166;
    --glass-border: rgba(159, 122, 234, .20);
}
body[data-theme-pack="lavender-purr"] {
    --primary-color: #5f4b8b;
    --primary-light: #8b6fd6;
    --secondary-color: #d66ba0;
    --accent-color: #f2c6de;
    --glass-border: rgba(139, 111, 214, .20);
}
body[data-theme-pack="mint-paws"] {
    --primary-color: #236b63;
    --primary-light: #2aa198;
    --secondary-color: #f06c9b;
    --accent-color: #a9f0d1;
    --glass-border: rgba(42, 161, 152, .20);
}
body[data-theme-pack="peach-meow"] {
    --primary-color: #9b4d64;
    --primary-light: #d66a82;
    --secondary-color: #ff8a5b;
    --accent-color: #ffd7ba;
    --glass-border: rgba(214, 106, 130, .20);
}
body[data-theme-pack="sky-kitten"] {
    --primary-color: #2f5e9e;
    --primary-light: #5fa8d3;
    --secondary-color: #c75c9b;
    --accent-color: #bde0fe;
    --glass-border: rgba(95, 168, 211, .20);
}
body.dark-mode[data-theme-pack="candy-cats"],
body.dark-mode[data-theme-pack="lavender-purr"],
body.dark-mode[data-theme-pack="mint-paws"],
body.dark-mode[data-theme-pack="peach-meow"],
body.dark-mode[data-theme-pack="sky-kitten"] {
    --glass-bg: rgba(15, 31, 49, 0.90);
    --text-light: #f4f8ff;
    --text-muted: #a8b7c8;
}
body[data-wallpaper="kitty-clouds"] {
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 182, 213, .32), transparent 25%),
        radial-gradient(circle at 82% 22%, rgba(189, 224, 254, .32), transparent 28%),
        linear-gradient(135deg, #fff8fd 0%, #eef8ff 48%, #fff0f7 100%);
}
body[data-wallpaper="paw-bubbles"] {
    background:
        radial-gradient(circle at 20% 20%, rgba(42,161,152,.18), transparent 24%),
        radial-gradient(circle at 78% 72%, rgba(240,108,155,.18), transparent 30%),
        linear-gradient(135deg, #f6fff9 0%, #effaf8 48%, #fff5fb 100%);
}
body[data-wallpaper="soft-hearts"] {
    background:
        radial-gradient(circle at 16% 80%, rgba(255,138,91,.18), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(255,92,159,.22), transparent 28%),
        linear-gradient(135deg, #fff8f1 0%, #fff3fa 48%, #f7f1ff 100%);
}
body[data-wallpaper="star-kittens"] {
    background:
        radial-gradient(circle at 12% 24%, rgba(255,209,102,.22), transparent 22%),
        radial-gradient(circle at 86% 66%, rgba(159,122,234,.20), transparent 30%),
        linear-gradient(135deg, #fbf8ff 0%, #f2f7ff 52%, #fff7d6 100%);
}
body[data-wallpaper="clean-gradient"] {
    background: linear-gradient(135deg, #f8fbff 0%, #f6f2ff 44%, #fff5fa 100%);
}
body.dark-mode[data-wallpaper="kitty-clouds"],
body.dark-mode[data-wallpaper="paw-bubbles"],
body.dark-mode[data-wallpaper="soft-hearts"],
body.dark-mode[data-wallpaper="star-kittens"],
body.dark-mode[data-wallpaper="clean-gradient"] {
    background:
        radial-gradient(circle at 18% 16%, rgba(159,122,234,.18), transparent 26%),
        radial-gradient(circle at 84% 78%, rgba(230,52,127,.14), transparent 30%),
        linear-gradient(135deg, #07131f 0%, #0b1b2e 52%, #1f1026 100%);
}
body[data-wallpaper] .tmy-bg-parallax::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .13;
    font-size: 38px;
    letter-spacing: 34px;
    line-height: 3.1;
    padding: 72px 36px;
    color: var(--secondary-color);
    white-space: pre-wrap;
    filter: saturate(.95);
}
body[data-wallpaper="kitty-clouds"] .tmy-bg-parallax::after { content: "🐱  ☁️  🐾  ☁️  🐱\A  ☁️  🐾  🐱  ☁️  🐾\A🐾  ☁️  🐱  🐾  ☁️"; }
body[data-wallpaper="paw-bubbles"] .tmy-bg-parallax::after { content: "🐾  ○  🐾  ○  🐾\A  ○  🐱  ○  🐾  ○\A🐾  ○  🐾  ○  🐱"; }
body[data-wallpaper="soft-hearts"] .tmy-bg-parallax::after { content: "♡  🐱  ♡  🐾  ♡\A  🐾  ♡  🐱  ♡  🐾\A♡  🐾  ♡  🐱  ♡"; }
body[data-wallpaper="star-kittens"] .tmy-bg-parallax::after { content: "✦  🐱  ✧  🐾  ✦\A  🐾  ✦  🐱  ✧  🐾\A✧  🐾  ✦  🐱  ✧"; }
body[data-wallpaper="clean-gradient"] .tmy-bg-parallax::after { content: ""; }

.visual-test-card { border-style: dashed; }
.tmy-start-button {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 46px rgba(15,71,116,.22);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
    cursor: pointer;
    padding: 8px;
    border: 1px solid var(--glass-border);
}
.tmy-start-button img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.tmy-start-menu {
    position: fixed;
    left: 22px;
    bottom: 102px;
    width: min(520px, calc(100vw - 44px));
    max-height: min(72vh, 620px);
    overflow: auto;
    z-index: 79;
    display: none;
    padding: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15,71,116,.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.tmy-start-menu.is-open { display: block; }
.tmy-start-header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.tmy-start-header img { width: 58px; height: 58px; object-fit: contain; border-radius: 18px; background: white; padding: 6px; border: 1px solid rgba(31,111,175,.14); }
.tmy-start-header strong { display: block; font-size: 22px; color: var(--primary-color); }
.tmy-start-header small { display: block; color: var(--text-muted); font-weight: 600; }
.tmy-start-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tmy-start-tiles button, .tmy-desktop-icons button {
    border: 1px solid rgba(31,111,175,.12);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
    border-radius: 20px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15,71,116,.08);
    transition: .2s ease;
    color: var(--text-light);
}
.tmy-start-tiles button:hover, .tmy-desktop-icons button:hover { transform: translateY(-2px); border-color: var(--primary-light); box-shadow: 0 18px 38px rgba(15,71,116,.14); }
.tmy-start-tiles span, .tmy-desktop-icons span { display: block; font-size: 28px; margin-bottom: 8px; }
.tmy-start-tiles strong, .tmy-desktop-icons strong { display: block; color: var(--primary-color); }
.tmy-desktop-icons small { display: block; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.tmy-desktop-home { display: none; min-height: calc(100vh - 150px); align-content: start; gap: 22px; }
.tmy-desktop-hero { max-width: 900px; }
.tmy-desktop-hero h2 { font-size: clamp(30px, 5vw, 54px); margin-bottom: 10px; }
.tmy-desktop-tip { margin-top: 14px; display: inline-flex; padding: 10px 14px; border-radius: 999px; background: rgba(230,52,127,.10); color: var(--secondary-color); font-weight: 800; }
.tmy-desktop-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 980px; }
body.interface-desktop .sidebar { transform: translateX(-120%); opacity: 0; pointer-events: none; }
body.interface-desktop .main-content { margin-left: 0; padding-left: clamp(22px, 5vw, 76px); padding-bottom: 110px; }
body.interface-desktop .mobile-menu-toggle,
body.interface-desktop .mobile-menu-backdrop { display: none !important; }
body.interface-desktop .tmy-start-button { display: flex; }
body.interface-desktop #dashboard .today-hero,
body.interface-desktop #dashboard .dashboard-kpi-row,
body.interface-desktop #dashboard .dashboard-clean-grid { display: none; }
body.interface-desktop #dashboard .tmy-desktop-home { display: grid; }
body.interface-desktop .global-actions { right: 24px; }
body.dark-mode .tmy-start-button,
body.dark-mode .tmy-start-menu { background: rgba(15, 31, 49, .92); border-color: var(--glass-border); color: var(--text-light); }
body.dark-mode .tmy-start-tiles button,
body.dark-mode .tmy-desktop-icons button { background: rgba(15, 31, 49, .88); border-color: var(--glass-border); color: var(--text-light); }
body.dark-mode .tmy-start-header strong,
body.dark-mode .tmy-start-tiles strong,
body.dark-mode .tmy-desktop-icons strong { color: #f4f8ff; }
@media (max-width: 760px) {
    .tmy-start-button { width: 58px; height: 58px; left: 14px; bottom: 14px; border-radius: 19px; }
    .tmy-start-menu { left: 14px; bottom: 84px; width: calc(100vw - 28px); }
    .tmy-start-tiles { grid-template-columns: 1fr; }
    body.interface-desktop .main-content { padding: 84px 18px 100px; }
    .tmy-desktop-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tmy-desktop-icons button { padding: 13px; }
}

/* =========================================================
   VERSÃO 4.5.2 — Wallpapers completos, Desktop circular e rastros
   ========================================================= */
body {
    --sidebar-start: #0f4774;
    --sidebar-middle: #173b68;
    --sidebar-end: #683066;
    --trail-color: var(--secondary-color);
}
.sidebar {
    background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-middle) 52%, var(--sidebar-end) 100%) !important;
}
body[data-theme-pack="tmy-original"] {
    --sidebar-start: #0f4774;
    --sidebar-middle: #173b68;
    --sidebar-end: #683066;
    --trail-color: #e6347f;
}
body[data-theme-pack="candy-cats"] {
    --sidebar-start: #7f4acb;
    --sidebar-middle: #9f7aea;
    --sidebar-end: #ff5c9f;
    --trail-color: #ff5c9f;
}
body[data-theme-pack="lavender-purr"] {
    --sidebar-start: #4f3b78;
    --sidebar-middle: #8b6fd6;
    --sidebar-end: #d66ba0;
    --trail-color: #d66ba0;
}
body[data-theme-pack="mint-paws"] {
    --sidebar-start: #236b63;
    --sidebar-middle: #2aa198;
    --sidebar-end: #f06c9b;
    --trail-color: #2aa198;
}
body[data-theme-pack="peach-meow"] {
    --sidebar-start: #9b4d64;
    --sidebar-middle: #d66a82;
    --sidebar-end: #ff8a5b;
    --trail-color: #ff8a5b;
}
body[data-theme-pack="sky-kitten"] {
    --sidebar-start: #2f5e9e;
    --sidebar-middle: #5fa8d3;
    --sidebar-end: #c75c9b;
    --trail-color: #5fa8d3;
}
body.dark-mode[data-theme-pack] {
    --sidebar-start: color-mix(in srgb, var(--primary-color) 72%, #020817);
    --sidebar-middle: color-mix(in srgb, var(--primary-light) 58%, #07131f);
    --sidebar-end: color-mix(in srgb, var(--secondary-color) 42%, #13081a);
}
body[data-wallpaper] {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}
body[data-wallpaper="puppy-clouds"] {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 207, 222, .30), transparent 25%),
        radial-gradient(circle at 82% 24%, rgba(189, 224, 254, .34), transparent 28%),
        radial-gradient(circle at 52% 84%, rgba(255, 221, 166, .24), transparent 32%),
        linear-gradient(135deg, #fff8fc 0%, #eff9ff 46%, #fff7e8 100%);
}
body[data-wallpaper="dog-paws"] {
    background:
        radial-gradient(circle at 14% 22%, rgba(166, 225, 250, .24), transparent 24%),
        radial-gradient(circle at 86% 72%, rgba(255, 186, 215, .22), transparent 30%),
        linear-gradient(135deg, #f8fcff 0%, #fffaf0 48%, #fff5fb 100%);
}
body[data-wallpaper="pet-hearts"] {
    background:
        radial-gradient(circle at 16% 78%, rgba(255, 92, 159, .18), transparent 26%),
        radial-gradient(circle at 80% 18%, rgba(95, 168, 211, .20), transparent 28%),
        linear-gradient(135deg, #fff7fb 0%, #f6f2ff 48%, #effbff 100%);
}
body[data-wallpaper="puppy-stars"] {
    background:
        radial-gradient(circle at 16% 28%, rgba(255, 209, 102, .22), transparent 22%),
        radial-gradient(circle at 86% 68%, rgba(159, 122, 234, .20), transparent 30%),
        linear-gradient(135deg, #fffbf0 0%, #f6f3ff 52%, #eff9ff 100%);
}
body.dark-mode[data-wallpaper="puppy-clouds"],
body.dark-mode[data-wallpaper="dog-paws"],
body.dark-mode[data-wallpaper="pet-hearts"],
body.dark-mode[data-wallpaper="puppy-stars"] {
    background:
        radial-gradient(circle at 18% 18%, rgba(159,122,234,.18), transparent 26%),
        radial-gradient(circle at 84% 78%, rgba(230,52,127,.14), transparent 30%),
        linear-gradient(135deg, #07131f 0%, #0b1b2e 52%, #1f1026 100%);
}
body[data-wallpaper] .tmy-bg-parallax::after {
    content: "";
    width: 100vw;
    height: 100vh;
    display: block;
    overflow: hidden;
    opacity: .16;
    font-size: clamp(22px, 3vw, 42px);
    line-height: 2.5;
    letter-spacing: clamp(12px, 4vw, 58px);
    word-spacing: clamp(10px, 3vw, 42px);
    padding: 5vh 4vw;
    text-align: justify;
    white-space: pre-wrap;
}
body[data-wallpaper="kitty-clouds"] .tmy-bg-parallax::after { content: "🐱 ☁️ 🐾 ☁️ 🐱 🐾 ☁️ 🐱 ☁️ 🐾 🐱 ☁️ 🐾 ☁️ 🐱\A☁️ 🐾 🐱 ☁️ 🐾 ☁️ 🐱 🐾 ☁️ 🐱 ☁️ 🐾 🐱 ☁️ 🐾\A🐾 ☁️ 🐱 🐾 ☁️ 🐱 ☁️ 🐾 🐱 ☁️ 🐾 ☁️ 🐱 🐾 ☁️\A🐱 ☁️ 🐾 ☁️ 🐱 🐾 ☁️ 🐱 ☁️ 🐾 🐱 ☁️ 🐾 ☁️ 🐱"; }
body[data-wallpaper="paw-bubbles"] .tmy-bg-parallax::after { content: "🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾\A○ 🐱 ○ 🐾 ○ 🐱 ○ 🐾 ○ 🐱 ○ 🐾 ○ 🐱 ○\A🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾 ○ 🐾\A○ 🐱 ○ 🐾 ○ 🐱 ○ 🐾 ○ 🐱 ○ 🐾 ○ 🐱 ○"; }
body[data-wallpaper="soft-hearts"] .tmy-bg-parallax::after { content: "♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡\A🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱\A♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡\A🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾 ♡ 🐱 ♡ 🐾"; }
body[data-wallpaper="star-kittens"] .tmy-bg-parallax::after { content: "✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧\A🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱\A✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦\A🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾 ✦ 🐱 ✧ 🐾"; }
body[data-wallpaper="puppy-clouds"] .tmy-bg-parallax::after { content: "🐶 ☁️ 🐾 ☁️ 🐶 🐾 ☁️ 🐶 ☁️ 🐾 🐶 ☁️ 🐾 ☁️ 🐶\A☁️ 🐾 🐶 ☁️ 🐾 ☁️ 🐶 🐾 ☁️ 🐶 ☁️ 🐾 🐶 ☁️ 🐾\A🐾 ☁️ 🐶 🐾 ☁️ 🐶 ☁️ 🐾 🐶 ☁️ 🐾 ☁️ 🐶 🐾 ☁️\A🐶 ☁️ 🐾 ☁️ 🐶 🐾 ☁️ 🐶 ☁️ 🐾 🐶 ☁️ 🐾 ☁️ 🐶"; }
body[data-wallpaper="dog-paws"] .tmy-bg-parallax::after { content: "🐾 🐶 🐾 ○ 🐾 🐶 🐾 ○ 🐾 🐶 🐾 ○ 🐾 🐶 🐾\A○ 🐾 ○ 🐶 ○ 🐾 ○ 🐶 ○ 🐾 ○ 🐶 ○ 🐾 ○\A🐶 🐾 🐶 🐾 ○ 🐶 🐾 🐶 🐾 ○ 🐶 🐾 🐶 🐾 ○\A🐾 ○ 🐶 ○ 🐾 ○ 🐶 ○ 🐾 ○ 🐶 ○ 🐾 ○ 🐶"; }
body[data-wallpaper="pet-hearts"] .tmy-bg-parallax::after { content: "♡ 🐱 ♡ 🐶 ♡ 🐾 ♡ 🐱 ♡ 🐶 ♡ 🐾 ♡ 🐱 ♡\A🐾 ♡ 🐶 ♡ 🐱 ♡ 🐾 ♡ 🐶 ♡ 🐱 ♡ 🐾 ♡ 🐶\A🐱 ♡ 🐾 ♡ 🐶 ♡ 🐱 ♡ 🐾 ♡ 🐶 ♡ 🐱 ♡ 🐾\A♡ 🐶 ♡ 🐱 ♡ 🐾 ♡ 🐶 ♡ 🐱 ♡ 🐾 ♡ 🐶 ♡"; }
body[data-wallpaper="puppy-stars"] .tmy-bg-parallax::after { content: "✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧\A🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶\A✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦\A🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾 ✦ 🐶 ✧ 🐾"; }
body[data-wallpaper="clean-gradient"] .tmy-bg-parallax::after { content: ""; }
body.interface-desktop .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px clamp(22px, 5vw, 76px) 112px !important;
}
body.interface-desktop #dashboard {
    width: min(1180px, 100%);
}
.tmy-desktop-home {
    min-height: calc(100vh - 210px);
    align-content: center !important;
    justify-items: center;
    text-align: center;
}
.tmy-desktop-hero {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}
.tmy-desktop-tip {
    justify-content: center;
}
.tmy-desktop-icons {
    width: min(960px, 100%);
    max-width: 960px;
    margin: 8px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, 138px);
    justify-content: center;
    gap: 24px 26px;
}
.tmy-start-tiles {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    justify-items: center;
    gap: 18px;
}
.tmy-start-tiles button,
.tmy-desktop-icons button {
    width: 138px;
    height: 138px;
    aspect-ratio: 1;
    border-radius: 999px !important;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
    background:
        radial-gradient(circle at 32% 22%, rgba(255,255,255,.96), rgba(255,255,255,.72) 58%, rgba(255,255,255,.58)),
        linear-gradient(135deg, color-mix(in srgb, var(--primary-light) 13%, white), color-mix(in srgb, var(--secondary-color) 10%, white));
    border: 1px solid color-mix(in srgb, var(--primary-light) 20%, transparent);
}
.tmy-start-tiles span,
.tmy-desktop-icons span {
    font-size: 34px;
    margin: 0 0 6px;
    line-height: 1;
}
.tmy-start-tiles strong,
.tmy-desktop-icons strong {
    font-size: 13px;
    line-height: 1.15;
    max-width: 104px;
    margin-inline: auto;
}
.tmy-start-tiles small,
.tmy-desktop-icons small {
    display: none !important;
}
.tmy-start-menu {
    width: min(640px, calc(100vw - 44px));
}
.mouse-trail-particle {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    color: var(--trail-color);
    text-shadow: 0 2px 8px rgba(255,255,255,.68);
    font-size: 15px;
    animation: tmyTrailFade .86s ease-out forwards;
    will-change: transform, opacity;
}
.mouse-trail-particle.trail-hearts { color: var(--secondary-color); }
.mouse-trail-particle.trail-stars { color: var(--accent-color); }
.mouse-trail-particle.trail-paws { color: var(--primary-light); }
@keyframes tmyTrailFade {
    0% { opacity: .95; transform: translate(-50%, -50%) scale(.72) rotate(0deg); }
    65% { opacity: .72; transform: translate(-50%, -88%) scale(1.05) rotate(16deg); }
    100% { opacity: 0; transform: translate(-50%, -132%) scale(.40) rotate(34deg); }
}
body.motion-reduced .mouse-trail-particle { display: none !important; }
@media (hover: none), (pointer: coarse) {
    .mouse-trail-particle { display: none !important; }
}
@media (max-width: 760px) {
    body.interface-desktop .main-content { padding: 82px 18px 96px !important; align-items: flex-start; }
    .tmy-desktop-home { align-content: start !important; padding-top: 20px; }
    .tmy-desktop-icons { grid-template-columns: repeat(2, 122px); gap: 16px; }
    .tmy-start-tiles button, .tmy-desktop-icons button { width: 122px; height: 122px; }
    .tmy-start-tiles span, .tmy-desktop-icons span { font-size: 29px; }
}


/* =========================================================
   VERSÃO 4.6 — Desktop TMY Inteligente
   ========================================================= */
body.interface-desktop .global-actions {
    display: none !important;
}
.tmy-start-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(31,111,175,.14);
}
.tmy-start-actions-title {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin: 0 0 10px 2px;
}
.tmy-start-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.tmy-start-action-grid button {
    min-height: 82px;
    border: 1px solid rgba(31,111,175,.12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.72));
    box-shadow: 0 10px 28px rgba(15,71,116,.08);
    color: var(--text-light);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    padding: 12px 10px;
}
.tmy-start-action-grid button:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 18px 38px rgba(15,71,116,.15);
}
.tmy-start-action-grid span { display: block; font-size: 24px; margin-bottom: 5px; }
.tmy-start-action-grid strong { display: block; color: var(--primary-color); font-size: 12px; }
.desktop-smart-tip {
    position: fixed;
    right: 28px;
    bottom: 26px;
    z-index: 78;
    display: none;
    align-items: center;
    gap: 10px;
    max-width: min(410px, calc(100vw - 118px));
    pointer-events: none;
}
body.interface-desktop .desktop-smart-tip[aria-hidden="false"] { display: flex; }
.desktop-smart-tip-toggle {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    color: white;
    box-shadow: 0 18px 42px rgba(15,71,116,.20);
    cursor: pointer;
    pointer-events: auto;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.desktop-smart-tip-body {
    width: 330px;
    transform-origin: right center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 58px rgba(15,71,116,.22);
    border-radius: 24px;
    padding: 14px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
    overflow: hidden;
    transition: max-width .32s ease, opacity .24s ease, transform .32s cubic-bezier(.2,.8,.2,1), padding .24s ease;
}
.desktop-smart-tip-body strong { display: block; color: var(--primary-color); margin-bottom: 4px; }
.desktop-smart-tip-body p { margin: 0; color: var(--text-muted); line-height: 1.45; font-size: 13px; }
.desktop-smart-tip.is-open .desktop-smart-tip-body {
    max-width: 330px;
    opacity: 1;
    transform: scaleX(1);
}
.desktop-smart-tip.is-compact .desktop-smart-tip-body {
    max-width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    transform: scaleX(.12);
}
body.dark-mode .tmy-start-action-grid button,
body.dark-mode .desktop-smart-tip-body {
    background: rgba(15, 31, 49, .92);
    border-color: var(--glass-border);
    color: var(--text-light);
}
body.dark-mode .tmy-start-action-grid strong,
body.dark-mode .desktop-smart-tip-body strong { color: #f4f8ff; }
body.dark-mode .desktop-smart-tip-body p { color: #c9d6e8; }
body.motion-reduced .desktop-smart-tip-body,
body.motion-reduced .tmy-start-action-grid button,
body.motion-reduced .desktop-smart-tip-toggle { transition: none !important; }
@media (max-width: 760px) {
    .tmy-start-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desktop-smart-tip { display: none !important; }
}


/* =========================================================
   VERSÃO 4.6 — Seasonal Visual Packs
   ========================================================= */
body.interface-desktop .learning-inline-tip {
    display: none !important;
}
body.interface-desktop .config-tabs {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}
body.interface-desktop .main-content {
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    min-height: 100vh;
    padding: 72px clamp(22px, 5vw, 76px) 112px !important;
}
body.interface-desktop .content-section.active {
    width: min(1480px, calc(100vw - 120px));
    margin-inline: auto;
}
body.interface-desktop #dashboard.content-section.active {
    width: min(1180px, 100%);
}
body.interface-desktop #dashboard .tmy-desktop-home {
    min-height: calc(100vh - 180px);
    display: grid;
    align-content: center !important;
    justify-items: center;
    gap: 24px;
    padding: 12px 0 34px;
}
body.interface-desktop .tmy-desktop-hero {
    width: min(760px, 100%);
    min-height: auto;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    text-align: left;
    padding: 24px 28px !important;
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--secondary-color) 14%, transparent), transparent 28%),
        radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--primary-light) 16%, transparent), transparent 34%),
        rgba(255,255,255,.80);
    box-shadow: 0 24px 76px rgba(15,71,116,.15);
}
body.dark-mode.interface-desktop .tmy-desktop-hero {
    background:
        radial-gradient(circle at 10% 15%, rgba(230,52,127,.18), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(159,122,234,.18), transparent 34%),
        rgba(11,23,38,.78);
}
.tmy-desktop-widget-icon {
    width: 76px;
    height: 76px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-color) 20%, white), color-mix(in srgb, var(--primary-light) 18%, white));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 14px 38px rgba(15,71,116,.12);
}
.tmy-desktop-widget-copy h2 {
    font-size: clamp(24px, 3vw, 36px) !important;
    margin: 4px 0 6px !important;
}
.tmy-desktop-widget-copy p {
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.desktop-widget-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.desktop-widget-pills button {
    border: 1px solid color-mix(in srgb, var(--primary-light) 20%, transparent);
    background: rgba(255,255,255,.72);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15,71,116,.08);
}
.desktop-widget-pills button:hover { transform: translateY(-1px); border-color: var(--secondary-color); }
body.dark-mode .desktop-widget-pills button { background: rgba(255,255,255,.09); color: #f8fbff; }

body.interface-desktop .internal-tabs {
    position: relative;
    justify-content: center;
    border-radius: 999px;
    padding: 10px;
    background: rgba(255,255,255,.62);
}
body.dark-mode.interface-desktop .internal-tabs { background: rgba(11,23,38,.68); }
body.interface-desktop .internal-tab { border-radius: 999px; }
body.interface-desktop .glass-panel,
body.interface-desktop .stat-card,
body.interface-desktop .compact-panel,
body.interface-desktop .profile-360-card,
body.interface-desktop .profile-360-hero,
body.interface-desktop .profile-360-kpi {
    border-radius: 28px;
}
body.interface-desktop .profile-360-hero {
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--secondary-color) 14%, transparent), transparent 32%),
        rgba(255,255,255,.82);
}
body.dark-mode.interface-desktop .profile-360-hero {
    background:
        radial-gradient(circle at 92% 10%, rgba(230,52,127,.16), transparent 32%),
        rgba(11,23,38,.82) !important;
}

/* Dica animada do Desktop: centralizada e fora dos botões flutuantes */
.desktop-smart-tip {
    left: 50% !important;
    right: auto !important;
    bottom: 94px !important;
    transform: translateX(-50%);
    z-index: 76 !important;
    max-width: min(540px, calc(100vw - 170px)) !important;
    flex-direction: row-reverse;
}
.desktop-smart-tip-body {
    width: min(420px, calc(100vw - 240px));
    transform-origin: center bottom !important;
    border-radius: 999px 26px 26px 999px;
}
.desktop-smart-tip.is-open .desktop-smart-tip-body {
    animation: desktopTipStretch .32s cubic-bezier(.2,.8,.2,1) both;
}
.desktop-smart-tip.is-compact .desktop-smart-tip-body {
    width: 0 !important;
    max-width: 0 !important;
}
@keyframes desktopTipStretch {
    from { transform: scaleX(.45) translateY(4px); opacity: .20; }
    to { transform: scaleX(1) translateY(0); opacity: 1; }
}

/* Sticky Notes no Desktop: dock lateral sempre visível e sem disputar com Aula ao Vivo */
body.interface-desktop .sticky-notes-toggle {
    right: 18px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 58px;
    height: 76px;
    border-radius: 28px 0 0 28px;
    z-index: 84 !important;
}
body.interface-desktop .sticky-notes-toggle:hover {
    transform: translateY(-50%) translateX(-3px) scale(1.02);
}
body.interface-desktop .sticky-notes-panel {
    right: 86px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    max-height: min(78vh, 720px);
    border-radius: 30px;
}
body.interface-desktop .sticky-note-item {
    border-radius: 22px;
    background: linear-gradient(135deg, #fff8ce, #fff0f7);
}
body.dark-mode.interface-desktop .sticky-note-item {
    background: linear-gradient(135deg, rgba(255,209,102,.16), rgba(230,52,127,.12));
}

/* Aula ao Vivo no Desktop TMY: mesma lógica, acabamento mais fofinho e premium */
body.interface-desktop .live-screen-bg {
    background:
        radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--primary-light) 22%, transparent), transparent 34%),
        radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--secondary-color) 20%, transparent), transparent 36%),
        radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent 40%),
        rgba(5, 16, 29, .70);
}
body.interface-desktop .live-screen-shell {
    border-radius: 34px;
    background: rgba(255,255,255,.88);
    border: 1px solid color-mix(in srgb, var(--primary-light) 20%, transparent);
    box-shadow: 0 32px 90px rgba(15,71,116,.26);
}
body.dark-mode.interface-desktop .live-screen-shell { background: rgba(9,20,35,.90); }
body.interface-desktop .live-screen-header,
body.interface-desktop .live-bubble,
body.interface-desktop .live-context-box,
body.interface-desktop .live-actions {
    border-radius: 28px !important;
}
body.interface-desktop .live-tool-btn,
body.interface-desktop .live-back-btn {
    border-radius: 999px;
}

@media (max-width: 900px) {
    body.interface-desktop .content-section.active { width: min(100%, calc(100vw - 32px)); }
    body.interface-desktop .tmy-desktop-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .desktop-smart-tip { display: none !important; }
    body.interface-desktop .sticky-notes-toggle { top: auto !important; right: 18px !important; bottom: 86px !important; transform: none; border-radius: 999px; width: 54px; height: 54px; }
    body.interface-desktop .sticky-notes-panel { right: 16px !important; top: auto !important; bottom: 146px !important; transform: none; }
}

/* 4.5.2 ajuste final: Sticky Notes também acessível durante Aula ao Vivo no Desktop */
body.interface-desktop.live-mode-active .sticky-notes-toggle {
    display: inline-flex !important;
    z-index: 2210 !important;
}
body.interface-desktop.live-mode-active .sticky-notes-panel.is-open {
    display: block !important;
    z-index: 2220 !important;
}


/* =========================================================
   VERSÃO 4.6 — Seasonal Visual Packs oficiais
   Assets vetoriais próprios, sem dependência externa.
   ========================================================= */
body[data-theme-pack="tmy-original"],
body[data-theme-pack="candy-cats"],
body[data-theme-pack="lavender-purr"],
body[data-theme-pack="mint-paws"],
body[data-theme-pack="peach-meow"],
body[data-theme-pack="sky-kitten"],
body[data-theme-pack="inspired-taylor"],
body[data-theme-pack="halloween-kawaii"],
body[data-theme-pack="spelling-bee"],
body[data-theme-pack="christmas-cozy"],
body[data-theme-pack="new-year-glow"],
body[data-theme-pack="birthday-party"],
body[data-theme-pack="spring-blossom"],
body[data-theme-pack="summer-sunshine"],
body[data-theme-pack="autumn-cozy"],
body[data-theme-pack="winter-snow"] {
    --pack-card-tint: rgba(255,255,255,.86);
}
body[data-theme-pack="tmy-original"] { --primary-color:#0f4774; --primary-light:#1f6faf; --secondary-color:#e6347f; --accent-color:#f4c542; --sidebar-start:#0f4774; --sidebar-middle:#173b68; --sidebar-end:#683066; --trail-color:#e6347f; }
body[data-theme-pack="candy-cats"] { --primary-color:#6d5dd3; --primary-light:#8a7cff; --secondary-color:#ff5c9f; --accent-color:#ffd1ea; --sidebar-start:#7f4acb; --sidebar-middle:#9f7aea; --sidebar-end:#ff5c9f; --trail-color:#ff5c9f; }
body[data-theme-pack="lavender-purr"] { --primary-color:#4f3b78; --primary-light:#8b6fd6; --secondary-color:#d66ba0; --accent-color:#d9c8ff; --sidebar-start:#4f3b78; --sidebar-middle:#8b6fd6; --sidebar-end:#d66ba0; --trail-color:#d66ba0; }
body[data-theme-pack="mint-paws"] { --primary-color:#236b63; --primary-light:#2aa198; --secondary-color:#f06c9b; --accent-color:#b9f5df; --sidebar-start:#236b63; --sidebar-middle:#2aa198; --sidebar-end:#f06c9b; --trail-color:#2aa198; }
body[data-theme-pack="peach-meow"] { --primary-color:#9b4d64; --primary-light:#d66a82; --secondary-color:#ff8a5b; --accent-color:#ffd6a8; --sidebar-start:#9b4d64; --sidebar-middle:#d66a82; --sidebar-end:#ff8a5b; --trail-color:#ff8a5b; }
body[data-theme-pack="sky-kitten"] { --primary-color:#2f5e9e; --primary-light:#5fa8d3; --secondary-color:#c75c9b; --accent-color:#bde0fe; --sidebar-start:#2f5e9e; --sidebar-middle:#5fa8d3; --sidebar-end:#c75c9b; --trail-color:#5fa8d3; }
body[data-theme-pack="inspired-taylor"] { --primary-color:#33236f; --primary-light:#7b61ff; --secondary-color:#ff7bbd; --accent-color:#ffd76a; --sidebar-start:#17102e; --sidebar-middle:#5d3fd3; --sidebar-end:#ff7bbd; --trail-color:#ffd76a; }
body[data-theme-pack="halloween-kawaii"] { --primary-color:#3b1d5f; --primary-light:#7c3aed; --secondary-color:#ff8a00; --accent-color:#ffd166; --sidebar-start:#1b1028; --sidebar-middle:#4c1d95; --sidebar-end:#ff8a00; --trail-color:#ff8a00; }
body[data-theme-pack="spelling-bee"] { --primary-color:#5f3b00; --primary-light:#b7791f; --secondary-color:#f6c945; --accent-color:#fff3b0; --sidebar-start:#3a2c13; --sidebar-middle:#8a5a00; --sidebar-end:#f6c945; --trail-color:#f6c945; }
body[data-theme-pack="christmas-cozy"] { --primary-color:#064e3b; --primary-light:#0f766e; --secondary-color:#e11d48; --accent-color:#fcd34d; --sidebar-start:#063826; --sidebar-middle:#0f766e; --sidebar-end:#b91c1c; --trail-color:#fcd34d; }
body[data-theme-pack="new-year-glow"] { --primary-color:#0f1d4d; --primary-light:#2563eb; --secondary-color:#f59e0b; --accent-color:#fde68a; --sidebar-start:#0b102c; --sidebar-middle:#1d4ed8; --sidebar-end:#6d28d9; --trail-color:#fde68a; }
body[data-theme-pack="birthday-party"] { --primary-color:#831843; --primary-light:#ec4899; --secondary-color:#8b5cf6; --accent-color:#fef08a; --sidebar-start:#831843; --sidebar-middle:#ec4899; --sidebar-end:#8b5cf6; --trail-color:#fef08a; }
body[data-theme-pack="spring-blossom"] { --primary-color:#14532d; --primary-light:#16a34a; --secondary-color:#fb7185; --accent-color:#bbf7d0; --sidebar-start:#14532d; --sidebar-middle:#16a34a; --sidebar-end:#fb7185; --trail-color:#fb7185; }
body[data-theme-pack="summer-sunshine"] { --primary-color:#075985; --primary-light:#0284c7; --secondary-color:#f97316; --accent-color:#fde047; --sidebar-start:#075985; --sidebar-middle:#0ea5e9; --sidebar-end:#f97316; --trail-color:#fde047; }
body[data-theme-pack="autumn-cozy"] { --primary-color:#7c2d12; --primary-light:#b45309; --secondary-color:#dc2626; --accent-color:#fdba74; --sidebar-start:#431407; --sidebar-middle:#92400e; --sidebar-end:#dc2626; --trail-color:#fdba74; }
body[data-theme-pack="winter-snow"] { --primary-color:#1e3a8a; --primary-light:#2563eb; --secondary-color:#38bdf8; --accent-color:#e0f2fe; --sidebar-start:#0f172a; --sidebar-middle:#1e40af; --sidebar-end:#38bdf8; --trail-color:#e0f2fe; }

body.dark-mode[data-theme-pack] {
    --glass-bg: rgba(12,24,40,.84);
    --glass-border: rgba(255,255,255,.14);
}
body.dark-mode[data-theme-pack="spelling-bee"] { --secondary-color:#facc15; --accent-color:#fef3c7; }
body.dark-mode[data-theme-pack="christmas-cozy"] { --secondary-color:#fb7185; --accent-color:#fde68a; }
body.dark-mode[data-theme-pack="winter-snow"] { --secondary-color:#7dd3fc; --accent-color:#eff6ff; }

body[data-wallpaper="inspired-stars"] {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,123,189,.24), transparent 28%),
        radial-gradient(circle at 82% 28%, rgba(255,215,106,.22), transparent 30%),
        linear-gradient(135deg, #fff4fb 0%, #f1edff 48%, #eef6ff 100%);
}
body[data-wallpaper="halloween-cute"] {
    background:
        radial-gradient(circle at 18% 25%, rgba(255,138,0,.28), transparent 24%),
        radial-gradient(circle at 82% 72%, rgba(124,58,237,.25), transparent 30%),
        linear-gradient(135deg, #fff8f0 0%, #f6edff 48%, #fff1d6 100%);
}
body[data-wallpaper="bee-garden"] {
    background:
        radial-gradient(circle at 20% 22%, rgba(246,201,69,.30), transparent 26%),
        radial-gradient(circle at 84% 74%, rgba(34,197,94,.18), transparent 30%),
        linear-gradient(135deg, #fffbea 0%, #f7fff0 50%, #fff6cc 100%);
}
body[data-wallpaper="christmas-magic"] {
    background:
        radial-gradient(circle at 16% 22%, rgba(225,29,72,.22), transparent 28%),
        radial-gradient(circle at 84% 76%, rgba(15,118,110,.24), transparent 30%),
        linear-gradient(135deg, #f4fff9 0%, #fff5f5 52%, #fffbeb 100%);
}
body[data-wallpaper="new-year-sparkle"] {
    background:
        radial-gradient(circle at 18% 30%, rgba(245,158,11,.24), transparent 24%),
        radial-gradient(circle at 78% 22%, rgba(37,99,235,.24), transparent 28%),
        linear-gradient(135deg, #eef2ff 0%, #fff7ed 48%, #f5f3ff 100%);
}
body[data-wallpaper="birthday-confetti"] {
    background:
        radial-gradient(circle at 22% 22%, rgba(236,72,153,.22), transparent 24%),
        radial-gradient(circle at 80% 78%, rgba(139,92,246,.22), transparent 32%),
        linear-gradient(135deg, #fff1f8 0%, #f5f3ff 48%, #fffbeb 100%);
}
body[data-wallpaper="spring-flowers"] {
    background:
        radial-gradient(circle at 16% 24%, rgba(251,113,133,.23), transparent 24%),
        radial-gradient(circle at 86% 74%, rgba(22,163,74,.18), transparent 30%),
        linear-gradient(135deg, #f0fdf4 0%, #fff1f2 48%, #fdf4ff 100%);
}
body[data-wallpaper="summer-popsicle"] {
    background:
        radial-gradient(circle at 16% 24%, rgba(14,165,233,.24), transparent 26%),
        radial-gradient(circle at 84% 76%, rgba(249,115,22,.23), transparent 30%),
        linear-gradient(135deg, #ecfeff 0%, #fff7ed 48%, #fef9c3 100%);
}
body[data-wallpaper="autumn-leaves"] {
    background:
        radial-gradient(circle at 18% 24%, rgba(180,83,9,.24), transparent 26%),
        radial-gradient(circle at 82% 72%, rgba(220,38,38,.18), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef2f2 100%);
}
body[data-wallpaper="winter-snowfall"] {
    background:
        radial-gradient(circle at 16% 26%, rgba(56,189,248,.22), transparent 26%),
        radial-gradient(circle at 84% 70%, rgba(37,99,235,.20), transparent 30%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 48%, #ecfeff 100%);
}
body.dark-mode[data-wallpaper="inspired-stars"],
body.dark-mode[data-wallpaper="halloween-cute"],
body.dark-mode[data-wallpaper="bee-garden"],
body.dark-mode[data-wallpaper="christmas-magic"],
body.dark-mode[data-wallpaper="new-year-sparkle"],
body.dark-mode[data-wallpaper="birthday-confetti"],
body.dark-mode[data-wallpaper="spring-flowers"],
body.dark-mode[data-wallpaper="summer-popsicle"],
body.dark-mode[data-wallpaper="autumn-leaves"],
body.dark-mode[data-wallpaper="winter-snowfall"] {
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary-light) 26%, transparent), transparent 28%),
        radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--secondary-color) 20%, transparent), transparent 32%),
        linear-gradient(135deg, #07131f 0%, #0b1b2e 52%, #1f1026 100%);
}
body[data-wallpaper="inspired-stars"] .tmy-bg-parallax::after { content: "✦ ♡ ✧ ✨ ♫ ✦ ♡ ✧ ✨ ♫ ✦ ♡ ✧ ✨\A♡ ✧ ✦ ♫ ✨ ♡ ✧ ✦ ♫ ✨ ♡ ✧ ✦ ♫\A✧ ✨ ♡ ✦ ♫ ✧ ✨ ♡ ✦ ♫ ✧ ✨ ♡ ✦"; }
body[data-wallpaper="halloween-cute"] .tmy-bg-parallax::after { content: "🎃 ✦ 👻 🦇 ✧ 🎃 ✦ 👻 🦇 ✧ 🎃 ✦ 👻\A✧ 👻 🎃 ✦ 🦇 ✧ 👻 🎃 ✦ 🦇 ✧ 👻 🎃\A🦇 ✧ 🎃 👻 ✦ 🦇 ✧ 🎃 👻 ✦ 🦇 ✧ 🎃"; }
body[data-wallpaper="bee-garden"] .tmy-bg-parallax::after { content: "🐝 ✿ ✦ 🌼 🐝 ✿ ✦ 🌼 🐝 ✿ ✦ 🌼\A✿ 🐝 🌼 ✦ ✿ 🐝 🌼 ✦ ✿ 🐝 🌼 ✦\A🌼 ✦ 🐝 ✿ 🌼 ✦ 🐝 ✿ 🌼 ✦ 🐝 ✿"; }
body[data-wallpaper="christmas-magic"] .tmy-bg-parallax::after { content: "🎄 ✦ ❄ ♡ 🎁 ✧ 🎄 ✦ ❄ ♡ 🎁 ✧\A❄ 🎁 ✦ 🎄 ✧ ♡ ❄ 🎁 ✦ 🎄 ✧ ♡\A♡ ✧ 🎄 ❄ 🎁 ✦ ♡ ✧ 🎄 ❄ 🎁 ✦"; }
body[data-wallpaper="new-year-sparkle"] .tmy-bg-parallax::after { content: "✺ ✦ ✨ 2026 ✧ ✺ ✦ ✨ ✧ ✺ ✦ ✨\A✨ ✧ ✺ ✦ ✨ ✧ ✺ ✦ ✨ ✧ ✺ ✦\A✦ ✺ ✧ ✨ ✦ ✺ ✧ ✨ ✦ ✺ ✧ ✨"; }
body[data-wallpaper="birthday-confetti"] .tmy-bg-parallax::after { content: "🎂 ✦ ◆ ● ★ 🎈 ✧ 🎂 ✦ ◆ ● ★ 🎈\A◆ 🎈 ✧ 🎂 ● ✦ ◆ 🎈 ✧ 🎂 ● ✦\A★ ● 🎂 ✧ 🎈 ◆ ★ ● 🎂 ✧ 🎈 ◆"; }
body[data-wallpaper="spring-flowers"] .tmy-bg-parallax::after { content: "🌸 ✿ ✦ 🌷 ✧ 🌸 ✿ ✦ 🌷 ✧ 🌸 ✿\A✿ 🌷 🌸 ✦ ✿ 🌷 🌸 ✦ ✿ 🌷 🌸 ✦\A🌷 ✦ ✿ 🌸 🌷 ✦ ✿ 🌸 🌷 ✦ ✿ 🌸"; }
body[data-wallpaper="summer-popsicle"] .tmy-bg-parallax::after { content: "☀ 🍦 ✦ 🌊 ✧ ☀ 🍦 ✦ 🌊 ✧ ☀ 🍦\A🌊 ✦ 🍦 ☀ ✧ 🌊 ✦ 🍦 ☀ ✧ 🌊 ✦\A🍦 ✧ ☀ 🌊 ✦ 🍦 ✧ ☀ 🌊 ✦ 🍦 ✧"; }
body[data-wallpaper="autumn-leaves"] .tmy-bg-parallax::after { content: "🍂 ✦ 🍁 ✧ ☕ 🍂 ✦ 🍁 ✧ ☕ 🍂 ✦\A🍁 ☕ ✧ 🍂 ✦ 🍁 ☕ ✧ 🍂 ✦ 🍁 ☕\A☕ ✦ 🍂 🍁 ✧ ☕ ✦ 🍂 🍁 ✧ ☕ ✦"; }
body[data-wallpaper="winter-snowfall"] .tmy-bg-parallax::after { content: "❄ ✦ ❅ ✧ ☃ ❄ ✦ ❅ ✧ ☃ ❄ ✦\A❅ ☃ ✧ ❄ ✦ ❅ ☃ ✧ ❄ ✦ ❅ ☃\A☃ ✦ ❄ ❅ ✧ ☃ ✦ ❄ ❅ ✧ ☃ ✦"; }

.mouse-trail-particle.trail-sparkles { color: #ffd76a; }
.mouse-trail-particle.trail-butterflies { color: #a855f7; }
.mouse-trail-particle.trail-bees { color: #facc15; }
.mouse-trail-particle.trail-snowflakes { color: #7dd3fc; }
.mouse-trail-particle.trail-confetti { color: var(--secondary-color); }
.mouse-trail-particle.trail-pumpkins { color: #fb923c; }
.mouse-trail-particle.trail-candy-canes { color: #fb7185; }
.mouse-trail-particle.trail-fireworks { color: #fde68a; }
.mouse-trail-particle.trail-leaves { color: #d97706; }
.mouse-trail-particle.trail-flowers { color: #fb7185; }
.mouse-trail-particle.trail-music-notes { color: #ff7bbd; }
.mouse-trail-particle.trail-moons { color: #c4b5fd; }
.seasonal-pack-note { border-style: dashed; background: color-mix(in srgb, var(--accent-color) 16%, var(--glass-bg)); }


/* =========================================================
   TMY HUB 4.6.2 — Visual Packs Expansion + Desktop Start Menu
   Packs automáticos, UI limpa e correções de legibilidade.
   ========================================================= */
.config-tabs,
body.interface-desktop .config-tabs,
body:not(.interface-desktop) .config-tabs {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}
body .internal-tabs { position: static; }

body[data-appearance-mode="pack"] .custom-visual-card { display: none !important; }
body[data-appearance-mode="custom"] .custom-visual-card { display: block; }
body[data-appearance-mode="pack"] .visual-mode-card,
body[data-appearance-mode="pack"] #setting-visual-pack { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 18%, transparent); }
.seasonal-pack-note { display: none !important; }

select,
.setting-control,
.filter-select,
.search-input,
input,
textarea {
    background-color: color-mix(in srgb, var(--surface) 94%, white) !important;
    color: var(--text-light) !important;
    border-color: color-mix(in srgb, var(--primary-light) 20%, #d8e0ea) !important;
}
select option {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}
body.dark-mode select,
body.dark-mode .setting-control,
body.dark-mode .filter-select,
body.dark-mode .search-input,
body.dark-mode input,
body.dark-mode textarea {
    background-color: #151d2f !important;
    color: #f5f8ff !important;
    border-color: rgba(255,255,255,.20) !important;
}
body.dark-mode select option {
    background-color: #151d2f !important;
    color: #f5f8ff !important;
}
body.dark-mode select option:checked,
body.dark-mode select option:hover {
    background-color: color-mix(in srgb, var(--primary-light) 45%, #151d2f) !important;
    color: #ffffff !important;
}

body.theme-dark-fallback.dark-mode[data-theme-pack] {
    --primary-color: #8ab8ff;
    --primary-light: #60a5fa;
    --secondary-color: #f472b6;
    --accent-color: #facc15;
    --surface: #101b2c;
    --surface-soft: #0b1422;
    --text-light: #f7fbff;
    --text-muted: #c9d6e8;
    --glass-bg: rgba(11, 23, 38, .86);
    --glass-border: rgba(255,255,255,.16);
    --sidebar-start: #07131f;
    --sidebar-middle: #0f2742;
    --sidebar-end: #25112d;
}

/* Dicas rápidas: deixam de ser flutuantes e entram no fluxo da página */
.desktop-smart-tip { display: none !important; }
.desktop-inline-tip {
    display: none;
    width: min(100%, 1180px);
    margin: -6px 0 18px;
    padding: 10px 14px;
    align-items: center;
    gap: 10px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--accent-color) 44%, var(--glass-border));
    background: color-mix(in srgb, var(--accent-color) 14%, var(--glass-bg));
    box-shadow: 0 12px 28px rgba(15,71,116,.08);
    overflow: hidden;
}
body.interface-desktop .desktop-inline-tip { display: flex; }
.desktop-inline-tip-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--secondary-color) 24%, transparent);
}
.desktop-inline-tip-content {
    display: grid;
    gap: 2px;
    min-width: 0;
    transform-origin: left center;
    transition: max-height .26s ease, opacity .22s ease, transform .26s ease;
}
.desktop-inline-tip-content strong { color: var(--primary-color); font-weight: 900; }
.desktop-inline-tip-content span { color: var(--text-muted); line-height: 1.45; }
.desktop-inline-tip.is-compact .desktop-inline-tip-content {
    max-height: 0;
    opacity: 0;
    transform: scaleY(.3);
}
.desktop-inline-tip.is-compact {
    width: max-content;
    max-width: 100%;
    padding: 8px;
}
body.dark-mode .desktop-inline-tip {
    background: color-mix(in srgb, var(--accent-color) 10%, rgba(12,24,40,.92));
    border-color: color-mix(in srgb, var(--accent-color) 32%, rgba(255,255,255,.14));
}
body.dark-mode .desktop-inline-tip-content strong { color: #ffffff; }
body.dark-mode .desktop-inline-tip-content span { color: #d3def0; }
body.motion-reduced .desktop-inline-tip-content { transition: none !important; }

/* Packs: decoração mais temática e ambientes completos */
body[data-wallpaper] .tmy-bg-parallax::after {
    inset: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: .18;
    text-align: justify;
}
body[data-theme-pack="inspired-taylor"] .tmy-desktop-widget-icon::after { content: "✨"; }
body[data-wallpaper="inspired-stars"] .tmy-bg-parallax::after { content: "✦ ✨ ♫ ♡ ✧ ✦ ✨ ♫ ♡ ✧ ✦ ✨ ♫ ♡ ✧\A♡ ✧ ✦ 🎤 ✨ ♫ ✦ ♡ ✧ ✨ ♫ ✦ ♡ ✧ ✨\A✨ ♫ ✦ ♡ ✧ ✨ ♫ ✦ ♡ ✧ ✨ ♫ ✦ ♡ ✧\A✦ ♡ ✨ ♫ ✧ ✦ ♡ ✨ ♫ ✧ ✦ ♡ ✨ ♫ ✧" !important; }
body[data-wallpaper="halloween-cute"] .tmy-bg-parallax::after { content: "🎃 🦇 🕸️ ✦ 🧙‍♀️ 👻 🎃 🦇 🕸️ ✦ 🧙‍♀️ 👻\A👻 ✧ 🦇 🎃 🕷️ ✦ 👻 ✧ 🦇 🎃 🕷️ ✦\A🕸️ 🎃 🧙‍♀️ 🦇 ✧ 👻 🕸️ 🎃 🧙‍♀️ 🦇 ✧ 👻\A🦇 ✦ 🎃 👻 🕸️ 🧙‍♀️ 🦇 ✦ 🎃 👻 🕸️" !important; }
body[data-wallpaper="bee-garden"] .tmy-bg-parallax::after { content: "🐝 z z 🌼 ✿ 🍯 🐝 z z 🌼 ✿ 🍯\A🌼 🐝 z z ✦ ✿ 🌼 🐝 z z ✦ ✿\A🍯 ✿ 🐝 z z 🌼 🍯 ✿ 🐝 z z 🌼\A🐝 z z 🌻 ✦ 🍯 🐝 z z 🌻 ✦ 🍯" !important; }
body[data-wallpaper="christmas-magic"] .tmy-bg-parallax::after { content: "🎄 🎁 ❄ 🎅 🦌 ✦ 🎄 🎁 ❄ 🎅 🦌 ✦\A❄ 🎁 🎄 ✨ 🎅 🦌 ❄ 🎁 🎄 ✨ 🎅 🦌\A🦌 🎅 🎁 ❄ 🎄 ✦ 🦌 🎅 🎁 ❄ 🎄 ✦\A🎁 ❄ 🎄 🦌 🎅 ✨ 🎁 ❄ 🎄 🦌 🎅" !important; }
body[data-wallpaper="new-year-sparkle"] .tmy-bg-parallax::after { content: "🎆 ✨ ✦ 2026 🎇 ✺ 🎆 ✨ ✦ 🎇 ✺\A✺ 🎇 ✨ ✦ 🎆 ✧ ✺ 🎇 ✨ ✦ 🎆 ✧\A✨ ✦ 🎆 🎇 ✺ ✧ ✨ ✦ 🎆 🎇 ✺ ✧" !important; }
body[data-wallpaper="birthday-confetti"] .tmy-bg-parallax::after { content: "🎂 🎈 🎁 ✦ ◆ ● 🎂 🎈 🎁 ✦ ◆ ●\A🎉 ✧ 🎂 🎈 ◆ ● 🎉 ✧ 🎂 🎈 ◆ ●\A🎁 🎉 🎂 ✦ 🎈 ● 🎁 🎉 🎂 ✦ 🎈 ●" !important; }
body[data-wallpaper="winter-snowfall"] .tmy-bg-parallax::after { content: "❄ ❅ ☃ ⛄ ✦ ❄ ❅ ☃ ⛄ ✦\A☃ ❄ ❅ ✧ ⛄ ☃ ❄ ❅ ✧ ⛄\A❅ ⛄ ❄ ☃ ✦ ❅ ⛄ ❄ ☃ ✦" !important; }
body[data-theme-pack="spelling-bee"] .glass-panel,
body[data-theme-pack="spelling-bee"] .stat-card { border-style: solid; border-color: color-mix(in srgb, var(--secondary-color) 36%, var(--glass-border)); }
body[data-theme-pack="halloween-kawaii"] .glass-panel { box-shadow: 0 18px 52px rgba(76,29,149,.16); }
body[data-theme-pack="christmas-cozy"] .glass-panel { box-shadow: 0 18px 52px rgba(6,78,59,.14); }

/* Rastro temático extra */
.mouse-trail-particle.trail-bats { color: #a78bfa; }
.mouse-trail-particle.trail-buzzes { color: #facc15; font-weight: 900; text-shadow: 0 0 8px rgba(250,204,21,.45); }
.mouse-trail-particle.trail-gifts { color: #fb7185; }
.mouse-trail-particle.trail-santa-hats { color: #ef4444; }

@media (max-width: 900px) {
    body.interface-desktop .desktop-inline-tip { display: none !important; }
}


/* =========================================================
   TMY HUB 4.6.2 — Visual Packs Expansion + Desktop Start Menu
   Novos packs, menu iniciar temático, atalhos menores e microvida.
   ========================================================= */
body[data-theme-pack="kpop-stage"] { --primary-color:#32105f; --primary-light:#b14dff; --secondary-color:#ff4fb8; --accent-color:#64f4ff; --sidebar-start:#110622; --sidebar-middle:#32105f; --sidebar-end:#ff4fb8; --trail-color:#ff4fb8; }
body[data-theme-pack="dorama-soft"] { --primary-color:#6d3f5b; --primary-light:#b7789c; --secondary-color:#f59ab6; --accent-color:#ffe1eb; --sidebar-start:#3f2535; --sidebar-middle:#8f5f7e; --sidebar-end:#f59ab6; --trail-color:#f59ab6; }
body[data-theme-pack="anime-inspired"] { --primary-color:#14213d; --primary-light:#3b82f6; --secondary-color:#22d3ee; --accent-color:#fde047; --sidebar-start:#07111f; --sidebar-middle:#14213d; --sidebar-end:#0ea5e9; --trail-color:#fde047; }
body[data-theme-pack="japan-sakura"] { --primary-color:#7f1d4e; --primary-light:#d9468f; --secondary-color:#f9a8d4; --accent-color:#ffe4ef; --sidebar-start:#4a102e; --sidebar-middle:#a92565; --sidebar-end:#f9a8d4; --trail-color:#f9a8d4; }
body[data-theme-pack="brazil-vibes"] { --primary-color:#065f46; --primary-light:#16a34a; --secondary-color:#facc15; --accent-color:#38bdf8; --sidebar-start:#063d2b; --sidebar-middle:#087a3f; --sidebar-end:#facc15; --trail-color:#facc15; }
body[data-theme-pack="flamengo-inspired"] { --primary-color:#230808; --primary-light:#ef4444; --secondary-color:#111111; --accent-color:#fff4d8; --sidebar-start:#120404; --sidebar-middle:#1b0a0a; --sidebar-end:#b91c1c; --trail-color:#ef4444; }
body[data-theme-pack="unicorn-dreams"] { --primary-color:#6d28d9; --primary-light:#a78bfa; --secondary-color:#ff72c6; --accent-color:#fef3c7; --sidebar-start:#5b21b6; --sidebar-middle:#a78bfa; --sidebar-end:#ff72c6; --trail-color:#ff72c6; }
body[data-theme-pack="windows-aero"] { --primary-color:#0a4f8f; --primary-light:#2da8ff; --secondary-color:#7dd3fc; --accent-color:#e0f2fe; --sidebar-start:rgba(7,72,128,.92); --sidebar-middle:rgba(22,117,193,.88); --sidebar-end:rgba(118,75,162,.72); --trail-color:#7dd3fc; --glass-bg:rgba(255,255,255,.60); --glass-border:rgba(255,255,255,.42); }
body[data-theme-pack="cyberpunk-city"] { --primary-color:#10131c; --primary-light:#00f5d4; --secondary-color:#ff2ea6; --accent-color:#f8f32b; --sidebar-start:#0a0d14; --sidebar-middle:#111827; --sidebar-end:#ff2ea6; --trail-color:#f8f32b; }
body.dark-mode[data-theme-pack="kpop-stage"],
body.dark-mode[data-theme-pack="dorama-soft"],
body.dark-mode[data-theme-pack="anime-inspired"],
body.dark-mode[data-theme-pack="flamengo-inspired"],
body.dark-mode[data-theme-pack="unicorn-dreams"],
body.dark-mode[data-theme-pack="windows-aero"],
body[data-theme-pack="cyberpunk-city"],
body.dark-mode[data-theme-pack="cyberpunk-city"] { --surface:#101827; --surface-soft:#0b1220; --text-light:#f8fbff; --text-muted:#cbd5e1; --glass-bg:rgba(10,18,32,.82); --glass-border:rgba(255,255,255,.16); }

body[data-wallpaper="kpop-neon"] { background: radial-gradient(circle at 18% 18%, rgba(255,79,184,.28), transparent 28%), radial-gradient(circle at 82% 22%, rgba(100,244,255,.26), transparent 28%), radial-gradient(circle at 54% 85%, rgba(177,77,255,.28), transparent 32%), linear-gradient(135deg,#120622 0%,#20134a 52%,#3a0f47 100%); }
body[data-wallpaper="dorama-bokeh"] { background: radial-gradient(circle at 16% 20%, rgba(255,225,235,.52), transparent 28%), radial-gradient(circle at 82% 68%, rgba(245,154,182,.34), transparent 28%), linear-gradient(135deg,#fff7fb 0%,#f9eff5 55%,#f0f7ff 100%); }
body[data-wallpaper="game-arcade"] { background: radial-gradient(circle at 18% 18%, rgba(59,130,246,.28), transparent 26%), radial-gradient(circle at 82% 24%, rgba(34,211,238,.24), transparent 28%), radial-gradient(circle at 58% 84%, rgba(253,224,71,.20), transparent 36%), linear-gradient(135deg,#050816 0%,#0b1630 50%,#111827 100%); }
body[data-wallpaper="japan-sakura-bg"] { background: radial-gradient(circle at 18% 16%, rgba(249,168,212,.34), transparent 28%), radial-gradient(circle at 84% 72%, rgba(255,228,239,.58), transparent 34%), linear-gradient(135deg,#fff7fb 0%,#fff1f5 48%,#f8fafc 100%); }
body[data-wallpaper="brazil-festa"] { background: radial-gradient(circle at 18% 16%, rgba(34,197,94,.22), transparent 30%), radial-gradient(circle at 84% 28%, rgba(250,204,21,.28), transparent 28%), radial-gradient(circle at 50% 86%, rgba(56,189,248,.24), transparent 32%), linear-gradient(135deg,#f0fdf4 0%,#eff6ff 50%,#fefce8 100%); }
body[data-wallpaper="flamengo-glow"] { background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.08), transparent 24%), radial-gradient(circle at 82% 72%, rgba(239,68,68,.18), transparent 30%), repeating-linear-gradient(180deg, #120404 0 84px, #d71920 84px 168px), linear-gradient(135deg,#140707 0%,#1d0b0b 48%,#3d0f10 100%); }
body[data-wallpaper="unicorn-clouds"] { background: radial-gradient(circle at 18% 22%, rgba(167,139,250,.28), transparent 30%), radial-gradient(circle at 82% 30%, rgba(255,114,198,.24), transparent 30%), radial-gradient(circle at 52% 84%, rgba(254,243,199,.30), transparent 34%), linear-gradient(135deg,#fbf7ff 0%,#fff7fb 46%,#f0f9ff 100%); }
body[data-wallpaper="aero-glass"] { background: radial-gradient(circle at 20% 18%, rgba(125,211,252,.30), transparent 30%), radial-gradient(circle at 80% 76%, rgba(45,168,255,.24), transparent 32%), linear-gradient(135deg,#e0f2fe 0%,#f8fafc 52%,#dbeafe 100%); }
body[data-wallpaper="cyberpunk-city"] { background: radial-gradient(circle at 18% 18%, rgba(0,245,212,.18), transparent 28%), radial-gradient(circle at 82% 20%, rgba(255,46,166,.18), transparent 28%), radial-gradient(circle at 56% 82%, rgba(248,243,43,.14), transparent 34%), linear-gradient(135deg,#080912 0%,#111827 46%,#1d1027 100%); }
body.dark-mode[data-wallpaper="kpop-neon"], body.dark-mode[data-wallpaper="dorama-bokeh"], body.dark-mode[data-wallpaper="game-arcade"], body.dark-mode[data-wallpaper="japan-sakura-bg"], body.dark-mode[data-wallpaper="brazil-festa"], body.dark-mode[data-wallpaper="flamengo-glow"], body.dark-mode[data-wallpaper="unicorn-clouds"], body.dark-mode[data-wallpaper="aero-glass"], body[data-wallpaper="cyberpunk-city"], body.dark-mode[data-wallpaper="cyberpunk-city"] { background: radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary-light) 28%, transparent), transparent 28%), radial-gradient(circle at 86% 76%, color-mix(in srgb, var(--secondary-color) 24%, transparent), transparent 34%), linear-gradient(135deg,#07131f 0%,#0b1220 50%,#1f1026 100%); }
body[data-wallpaper="kpop-neon"] .tmy-bg-parallax::after { content:"🎤 ✨ 💖 ♫ ⭐ 🎧 🎤 ✨ 💖 ♫ ⭐\A💖 🎧 ✨ 🎤 ♫ ⭐ 💖 🎧 ✨ 🎤 ♫\A⭐ ♫ 🎤 ✨ 💖 🎧 ⭐ ♫ 🎤 ✨ 💖" !important; }
body[data-wallpaper="dorama-bokeh"] .tmy-bg-parallax::after { content:"🎬 💌 🌷 ✨ ☕ 🎬 💌 🌷 ✨ ☕\A🌷 ✨ 🎬 💌 ☕ 🌷 ✨ 🎬 💌 ☕\A💌 ☕ ✨ 🎬 🌷 💌 ☕ ✨ 🎬 🌷" !important; }
body[data-wallpaper="game-arcade"] .tmy-bg-parallax::after { content:"🎮 ✦ 🕹️ ★ 💾 ⬢ 🎮 ✦ 🕹️ ★ 💾\A⚡ 🕹️ ✦ 🎮 ★ ⚡ 🕹️ ✦ 🎮 ★ ⚡\A💾 ★ 🎮 ✦ 🕹️ 💾 ★ 🎮 ✦ 🕹️" !important; }
body[data-wallpaper="japan-sakura-bg"] .tmy-bg-parallax::after { content:"🌸 ✿ ⛩️ 🍵 🌸 ✿ ⛩️ 🍵\A✿ 🌸 🍵 ⛩️ ✿ 🌸 🍵 ⛩️\A🍵 🌸 ✿ ⛩️ 🍵 🌸 ✿ ⛩️" !important; }
body[data-wallpaper="brazil-festa"] .tmy-bg-parallax::after { content:"🇧🇷 ⭐ 💚 💛 💙 🇧🇷 ⭐ 💚 💛 💙\A💚 💛 ⭐ 🇧🇷 💙 💚 💛 ⭐ 🇧🇷 💙\A💙 ⭐ 🇧🇷 💚 💛 💙 ⭐ 🇧🇷 💚 💛" !important; }
body[data-wallpaper="flamengo-glow"] .tmy-bg-parallax::after { content:"⚽ 🔴 ⚫ 🏟️ 🥅 ⚽ 🔴 ⚫ 🏟️ 🥅\A🔴 ⚫ ⚽ 🚩 🏟️ 🔴 ⚫ ⚽ 🚩 🏟️\A🥅 ⚽ 🔴 ⚫ 🏁 🥅 ⚽ 🔴 ⚫ 🏁" !important; opacity:.13 !important; }
body[data-wallpaper="unicorn-clouds"] .tmy-bg-parallax::after { content:"🦄 🌈 ☁️ ✨ 💖 🦄 🌈 ☁️ ✨\A🌈 ✨ 🦄 ☁️ 💖 🌈 ✨ 🦄 ☁️\A☁️ 💖 🌈 🦄 ✨ ☁️ 💖 🌈 🦄" !important; }
body[data-wallpaper="aero-glass"] .tmy-bg-parallax::after { content:"◇ ○ ✦ 🪟 ○ ◇ ✦ 🪟 ○ ◇\A○ ✦ ◇ ○ 🪟 ✦ ○ ◇ ○ 🪟\A✦ 🪟 ○ ◇ ✦ 🪟 ○ ◇ ✦" !important; opacity:.12 !important; }
body[data-wallpaper="cyberpunk-city"] .tmy-bg-parallax::after { content:"⚡ ◈ ▣ ✦ 📡 ⚡ ◈ ▣ ✦ 📡\A▣ ✦ ⚡ ◈ ✧ ▣ ✦ ⚡ ◈ ✧\A📡 ⚡ ✦ ▣ ◈ 📡 ⚡ ✦ ▣ ◈" !important; opacity:.14 !important; }

.tmy-start-theme-icon { display:none; place-items:center; width:100%; height:100%; font-size:30px; border-radius:inherit; background:linear-gradient(135deg, color-mix(in srgb, var(--primary-light) 22%, white), color-mix(in srgb, var(--secondary-color) 20%, white)); }
.tmy-start-visual-packs { margin:14px 0 12px; padding:12px; border:1px solid var(--glass-border); border-radius:20px; background:color-mix(in srgb, var(--surface) 74%, transparent); }
.tmy-start-pack-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; max-height:158px; overflow:auto; padding-right:2px; }
.tmy-start-pack-option { border:1px solid var(--glass-border); border-radius:15px; background:color-mix(in srgb, var(--surface) 90%, transparent); padding:9px 6px; cursor:pointer; transition:.18s ease; text-align:center; color:var(--text-light); }
.tmy-start-pack-option span { display:block; font-size:21px; line-height:1.1; }
.tmy-start-pack-option strong { display:block; font-size:10.5px; line-height:1.15; margin-top:4px; color:var(--primary-color); }
.tmy-start-pack-option:hover, .tmy-start-pack-option.is-active { transform:translateY(-1px); border-color:var(--secondary-color); box-shadow:0 10px 20px color-mix(in srgb, var(--secondary-color) 18%, transparent); }
body.dark-mode .tmy-start-pack-option { background:rgba(15,31,49,.82); color:#f8fbff; }
body.dark-mode .tmy-start-pack-option strong { color:#f8fbff; }

body.interface-desktop .tmy-desktop-icons { grid-template-columns:repeat(auto-fit, minmax(96px, 96px)) !important; gap:18px 22px !important; justify-content:center; align-items:start; max-width:960px; margin:0 auto; }
body.interface-desktop .tmy-desktop-icons button { width:96px !important; height:96px !important; min-height:96px !important; padding:10px 8px !important; border-radius:50% !important; text-align:center; align-content:center; justify-self:center; border-width:2px !important; box-shadow:0 16px 32px rgba(18,79,139,.14), inset 0 1px 0 rgba(255,255,255,.86); }
body.interface-desktop .tmy-desktop-icons span { font-size:23px !important; margin-bottom:4px !important; animation:tmyDesktopIconBreath 8.5s ease-in-out infinite; }
body.interface-desktop .tmy-desktop-icons strong { font-size:12px; line-height:1.1; max-width:82px; }
body.interface-desktop .tmy-desktop-icons small { display:none; }
body.interface-desktop .tmy-desktop-icons button:nth-child(2n) span { animation-delay:-1.5s; }
body.interface-desktop .tmy-desktop-icons button:nth-child(3n) span { animation-delay:-3.1s; }
@keyframes tmyDesktopIconBreath { 0%,100%{ transform:translateY(0) scale(1); filter:drop-shadow(0 0 0 transparent); } 45%{ transform:translateY(-3px) scale(1.035); filter:drop-shadow(0 8px 12px color-mix(in srgb, var(--secondary-color) 24%, transparent)); } }
body.motion-reduced .tmy-desktop-icons span { animation:none !important; }
.tmy-desktop-icons button:hover span { transform:translateY(-3px) scale(1.12); }

.desktop-inline-tip.is-compact { width:48px !important; height:48px !important; padding:4px !important; background:transparent !important; border-color:transparent !important; box-shadow:none !important; overflow:visible !important; }
.desktop-inline-tip.is-compact .desktop-inline-tip-toggle { flex-basis:40px; }
.desktop-inline-tip.is-compact .desktop-inline-tip-content { display:none !important; }

.content-section .internal-tabs, .config-tabs, body.interface-desktop .config-tabs { position:relative !important; top:auto !important; z-index:auto !important; transform:none !important; }
body.dark-mode select, body.dark-mode .setting-control, body.dark-mode .filter-select { color-scheme:dark; }
body:not(.dark-mode) select, body:not(.dark-mode) .setting-control, body:not(.dark-mode) .filter-select { color-scheme:light; }
body.dark-mode select option:disabled { color:#94a3b8 !important; }

.mouse-trail-particle.trail-kpop-hearts { color:#ff4fb8; text-shadow:0 0 10px rgba(255,79,184,.45); }
.mouse-trail-particle.trail-dorama-sparkles { color:#f59ab6; }
.mouse-trail-particle.trail-pixel-bits { color:#fde047; text-shadow:0 0 10px rgba(34,211,238,.40); }
.mouse-trail-particle.trail-sakura-petals { color:#f9a8d4; }
.mouse-trail-particle.trail-brazil-stars { color:#facc15; text-shadow:0 0 8px rgba(34,197,94,.40); }
.mouse-trail-particle.trail-red-black-sparks { color:#ef4444; text-shadow:0 0 8px rgba(239,68,68,.40); }
.mouse-trail-particle.trail-unicorns { color:#ff72c6; }
.mouse-trail-particle.trail-aero-bubbles { color:#7dd3fc; text-shadow:0 0 10px rgba(125,211,252,.50); }
.mouse-trail-particle.trail-cyber-shards { color:#f8f32b; text-shadow:0 0 12px rgba(0,245,212,.44); }

body[data-theme-pack="windows-aero"] .glass-panel,
body[data-theme-pack="windows-aero"] .stat-card,
body[data-theme-pack="windows-aero"] .tmy-start-menu,
body[data-theme-pack="windows-aero"] .tmy-desktop-icons button { backdrop-filter:blur(22px) saturate(1.35); -webkit-backdrop-filter:blur(22px) saturate(1.35); background:linear-gradient(135deg, rgba(255,255,255,.52), rgba(255,255,255,.28)); border-color:rgba(255,255,255,.48); box-shadow:inset 0 1px 0 rgba(255,255,255,.56), 0 18px 50px rgba(10,79,143,.18); }
body.dark-mode[data-theme-pack="windows-aero"] .glass-panel,
body.dark-mode[data-theme-pack="windows-aero"] .stat-card,
body.dark-mode[data-theme-pack="windows-aero"] .tmy-start-menu,
body.dark-mode[data-theme-pack="windows-aero"] .tmy-desktop-icons button { background:linear-gradient(135deg, rgba(17,34,56,.70), rgba(15,23,42,.42)); border-color:rgba(125,211,252,.22); }
@media (max-width:760px){ .tmy-start-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));} body.interface-desktop .tmy-desktop-icons{grid-template-columns:repeat(2,108px)!important;} }


/* ========================================================
   Versão 4.6.3 — Kawaii Rachel Pack
   ======================================================== */
body[data-theme-pack="kawaii-rachel"] {
    --primary-color:#124f8b;
    --primary-light:#5b9dff;
    --secondary-color:#ff5ca8;
    --accent-color:#ffd255;
    --sidebar-start:#0d2d53;
    --sidebar-middle:#1766ab;
    --sidebar-end:#ff5ca8;
    --trail-color:#ffd255;
}
body.dark-mode[data-theme-pack="kawaii-rachel"] {
    --surface:#0d1627;
    --surface-soft:#0a1120;
    --text-light:#f9fbff;
    --text-muted:#d9e5f7;
    --glass-bg:rgba(12,23,40,.82);
    --glass-border:rgba(255,255,255,.14);
}
body[data-wallpaper="kawaii-rachel-party"] {
    background:
      radial-gradient(circle at 18% 18%, rgba(255,92,168,.18), transparent 28%),
      radial-gradient(circle at 82% 20%, rgba(91,157,255,.18), transparent 28%),
      radial-gradient(circle at 50% 85%, rgba(255,210,85,.18), transparent 34%),
      linear-gradient(135deg,#fdfcff 0%, #f8fbff 44%, #fff9fc 100%);
}
body.dark-mode[data-wallpaper="kawaii-rachel-party"] {
    background:
      radial-gradient(circle at 18% 18%, rgba(255,92,168,.20), transparent 28%),
      radial-gradient(circle at 82% 20%, rgba(91,157,255,.18), transparent 28%),
      radial-gradient(circle at 50% 85%, rgba(255,210,85,.12), transparent 34%),
      linear-gradient(135deg,#07131f 0%, #0b1220 50%, #1d1131 100%);
}
body[data-wallpaper="kawaii-rachel-party"] .tmy-bg-parallax::after {
    content:"🎀 ✦ 💖 📘 💙 ✨ 🎀 ✦ 💖 📘 💙 ✨\A✨ 💻 🎀 ✦ 💛 💖 ✨ 💻 🎀 ✦ 💛 💖\A📚 ✨ 💙 🎀 📋 ✦ 📚 ✨ 💙 🎀 📋 ✦\A💖 ✨ 🎀 💻 📘 ✦ 💖 ✨ 🎀 💻 📘 ✦" !important;
    opacity:.14 !important;
}
.tmy-start-theme-icon.image-mode {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0 !important;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 12px 26px rgba(15,71,116,.16);
}
body[data-theme-pack="kawaii-rachel"] .tmy-start-theme-icon.image-mode {
    background-color:#fff;
}
.tmy-start-pack-option span img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 12px;
    display: inline-block;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15,71,116,.14);
}
[data-tmy-shortcut].has-illustration span {
    font-size: 0 !important;
    margin-bottom: 6px !important;
    display: grid;
    place-items: center;
}
[data-tmy-shortcut].has-illustration span img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 24px rgba(15,71,116,.12);
    transition: transform .22s ease, box-shadow .22s ease;
}
.tmy-start-tiles [data-tmy-shortcut].has-illustration span img,
.tmy-start-menu [data-tmy-shortcut].has-illustration span img {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}
body.interface-desktop .tmy-desktop-icons button.has-illustration:hover span img,
.tmy-start-tiles button.has-illustration:hover span img {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 16px 26px rgba(15,71,116,.18);
}
body.interface-desktop[data-theme-pack="kawaii-rachel"] .tmy-desktop-icons button {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
    border-color: rgba(255,92,168,.34);
    box-shadow: 0 18px 34px rgba(18,79,139,.14), inset 0 1px 0 rgba(255,255,255,.88), 0 0 0 4px rgba(255,255,255,.42);
}
body.interface-desktop.dark-mode[data-theme-pack="kawaii-rachel"] .tmy-desktop-icons button {
    background: linear-gradient(180deg, rgba(15,28,48,.92), rgba(11,23,38,.82));
    border-color: rgba(91,157,255,.20);
}
body[data-theme-pack="kawaii-rachel"] .tmy-desktop-hero {
    position: relative;
    overflow: hidden;
    padding-right: clamp(172px, 24vw, 232px) !important;
}
body[data-theme-pack="kawaii-rachel"] .tmy-desktop-widget-copy {
    position: relative;
    z-index: 1;
}
body[data-theme-pack="kawaii-rachel"] .tmy-desktop-hero::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 20px;
    width: clamp(132px, 16vw, 170px);
    height: clamp(132px, 16vw, 170px);
    border-radius: 32px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.18)),
      url('visual-packs/kawaii-rachel/welcome-rachel-v4666.webp') center center / 86% auto no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 18px 40px rgba(18,79,139,.12);
    opacity: .30;
    pointer-events: none;
    filter: saturate(1.02) drop-shadow(0 14px 24px rgba(18,79,139,.10));
}
body[data-theme-pack="kawaii-rachel"] .tmy-desktop-widget-icon {
    background: linear-gradient(135deg, rgba(255,92,168,.16), rgba(91,157,255,.18));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 14px 38px rgba(18,79,139,.10);
}
body[data-theme-pack="kawaii-rachel"] .tmy-start-button {
    box-shadow: 0 16px 32px rgba(18,79,139,.20), inset 0 1px 0 rgba(255,255,255,.46);
}
body[data-theme-pack="kawaii-rachel"] .tmy-start-pack-option:hover,
body[data-theme-pack="kawaii-rachel"] .tmy-start-pack-option.is-active {
    box-shadow: 0 12px 24px rgba(255,92,168,.18);
}
body[data-theme-pack="kawaii-rachel"] .desktop-widget-pills button {
    background: rgba(255,255,255,.80);
}
body.dark-mode[data-theme-pack="kawaii-rachel"] .desktop-widget-pills button {
    background: rgba(255,255,255,.10);
}
@media (max-width: 760px) {
    [data-tmy-shortcut].has-illustration span img {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    body.interface-desktop .tmy-desktop-icons { grid-template-columns: repeat(2, 92px) !important; gap: 14px 16px !important; }
    body.interface-desktop .tmy-desktop-icons button { width: 92px !important; height: 92px !important; min-height: 92px !important; }
    body[data-theme-pack="kawaii-rachel"] .tmy-desktop-hero {
        padding-right: 28px !important;
    }
    body[data-theme-pack="kawaii-rachel"] .tmy-desktop-hero::after {
        width: 102px;
        height: 102px;
        top: 14px;
        right: 14px;
        opacity: .16;
    }
}


/* ========================================================
   Versão 4.6.4 — Desktop Motion + Theme Rework
   ======================================================== */
body.interface-desktop #dashboard .tmy-desktop-home {
    align-content: start !important;
    gap: 18px;
    padding-top: 8px;
}
body.interface-desktop .tmy-desktop-hero {
    width: min(860px, 100%);
}
body.interface-desktop .tmy-desktop-icons {
    width: min(980px, 100%);
    grid-template-columns: repeat(4, minmax(112px, 132px)) !important;
    justify-content: center;
    align-items: start;
    gap: 18px 26px !important;
    margin: 0 auto;
    padding: 8px 0 2px;
}
body.interface-desktop .tmy-desktop-icons button {
    width: 124px !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 4px 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow: visible;
    text-align: center;
}
body.interface-desktop .tmy-desktop-icons button span {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 !important;
    font-size: 28px !important;
    border: 3px solid color-mix(in srgb, var(--primary-light) 24%, white);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.85));
    box-shadow: 0 18px 36px rgba(18,79,139,.14), inset 0 1px 0 rgba(255,255,255,.92), 0 0 0 5px rgba(255,255,255,.45);
    animation: tmyDesktopFloat 6.8s ease-in-out infinite;
}
body.dark-mode.interface-desktop .tmy-desktop-icons button span {
    background: linear-gradient(180deg, rgba(17,31,51,.95), rgba(10,20,35,.88));
    border-color: color-mix(in srgb, var(--primary-light) 28%, rgba(255,255,255,.1));
    box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(255,255,255,.03);
}
body.interface-desktop .tmy-desktop-icons button strong {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.22;
    text-align: center;
    color: var(--primary-color);
    max-width: 118px;
    margin: 0 auto;
}
body.dark-mode.interface-desktop .tmy-desktop-icons button strong {
    color: #f5f8ff;
}
body.interface-desktop .tmy-desktop-icons button small { display: none !important; }
body.interface-desktop .tmy-desktop-icons button:nth-child(2n) span { animation-delay: -.9s; }
body.interface-desktop .tmy-desktop-icons button:nth-child(3n) span { animation-delay: -1.7s; }
body.interface-desktop .tmy-desktop-icons button:nth-child(4n) span { animation-delay: -2.5s; }
body.interface-desktop .tmy-desktop-icons button:hover { transform: none !important; }
body.interface-desktop .tmy-desktop-icons button:hover span {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 22px 42px rgba(18,79,139,.18), inset 0 1px 0 rgba(255,255,255,.92), 0 0 0 5px rgba(255,255,255,.5);
}
@keyframes tmyDesktopFloat {
    0%,100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(-9px); }
    75% { transform: translateY(-4px); }
}
body.motion-reduced .tmy-desktop-icons button span { animation: none !important; }
body.interface-desktop [data-tmy-shortcut].has-illustration span {
    display: grid;
    place-items: center;
    font-size: 0 !important;
}
body.interface-desktop [data-tmy-shortcut].has-illustration span img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
}
body.interface-desktop[data-theme-pack="kawaii-rachel"] .tmy-desktop-icons button span {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,250,.92));
    border-color: rgba(255,92,168,.30);
}
body.interface-desktop.dark-mode[data-theme-pack="kawaii-rachel"] .tmy-desktop-icons button span {
    background: linear-gradient(180deg, rgba(18,28,46,.96), rgba(12,20,34,.88));
    border-color: rgba(91,157,255,.22);
}
body.interface-desktop[data-theme-pack="flamengo-inspired"] .tmy-desktop-icons button span {
    background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.18), transparent 26%), linear-gradient(180deg, rgba(34,10,10,.98), rgba(180,24,33,.94));
    border-color: rgba(255,230,153,.32);
}
body.interface-desktop[data-theme-pack="anime-inspired"] .tmy-desktop-icons button span {
    background: radial-gradient(circle at 50% 24%, rgba(34,211,238,.18), transparent 28%), linear-gradient(180deg, rgba(10,16,32,.98), rgba(13,40,79,.92));
    border-color: rgba(253,224,71,.30);
}
body.interface-desktop[data-theme-pack="cyberpunk-city"] .tmy-desktop-icons button span {
    background: linear-gradient(180deg, rgba(12,14,24,.98), rgba(21,15,41,.94));
    border-color: rgba(248,243,43,.34);
    box-shadow: 0 18px 36px rgba(0,0,0,.32), inset 0 0 0 1px rgba(0,245,212,.16), 0 0 18px rgba(255,46,166,.14);
}
body[data-theme-pack="japan-sakura"]::before,
body[data-theme-pack="japan-sakura"]::after {
    content: "🌸  ✿  ❀  🌸  ✿  ❀  🌸  ✿";
    position: fixed;
    top: -6%;
    left: -10%;
    width: 120%;
    white-space: pre;
    font-size: 24px;
    line-height: 2.3;
    opacity: .16;
    pointer-events: none;
    z-index: 0;
    animation: tmyPetalDrift 22s linear infinite;
}
body[data-theme-pack="japan-sakura"]::after {
    left: -2%;
    animation-duration: 28s;
    animation-delay: -9s;
    opacity: .12;
}
@keyframes tmyPetalDrift {
    0% { transform: translate3d(0, -6%, 0) rotate(0deg); }
    100% { transform: translate3d(5%, 108vh, 0) rotate(10deg); }
}
body[data-theme-pack="flamengo-inspired"] .content-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(circle at 50% 76%, rgba(20,120,40,.12), transparent 20%),
      linear-gradient(180deg, transparent 0 78%, rgba(255,255,255,.07) 78% 79%, transparent 79% 100%),
      linear-gradient(90deg, transparent 0 14%, rgba(255,255,255,.06) 14% 14.6%, transparent 14.6% 85.4%, rgba(255,255,255,.06) 85.4% 86%, transparent 86%);
    opacity: .35;
}
body[data-theme-pack="cyberpunk-city"] .content-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      repeating-linear-gradient(180deg, rgba(248,243,43,.05) 0 2px, transparent 2px 8px),
      linear-gradient(90deg, transparent 0 72%, rgba(0,245,212,.05) 72% 72.4%, transparent 72.4% 100%);
    mix-blend-mode: screen;
    opacity: .45;
}
body[data-theme-pack="cyberpunk-city"] .glass-panel,
body[data-theme-pack="cyberpunk-city"] .stat-card,
body[data-theme-pack="cyberpunk-city"] .tmy-start-menu {
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,245,212,.12);
}
body[data-theme-pack="anime-inspired"] .glass-panel,
body[data-theme-pack="anime-inspired"] .stat-card,
body[data-theme-pack="anime-inspired"] .tmy-start-menu {
    box-shadow: 0 18px 44px rgba(8,16,34,.18), inset 0 0 0 1px rgba(34,211,238,.10);
}
body.dark-mode select option,
body.dark-mode .setting-control option,
body.dark-mode .filter-select option {
    background: #0f172a !important;
    color: #f8fbff !important;
}
@media (max-width: 900px) {
    body.interface-desktop .tmy-desktop-icons {
        grid-template-columns: repeat(3, minmax(100px, 114px)) !important;
        gap: 16px 18px !important;
    }
}
@media (max-width: 760px) {
    body.interface-desktop .tmy-desktop-icons {
        grid-template-columns: repeat(2, minmax(100px, 112px)) !important;
        gap: 14px 16px !important;
    }
    body.interface-desktop .tmy-desktop-icons button {
        width: 108px !important;
    }
    body.interface-desktop .tmy-desktop-icons button span {
        width: 86px;
        height: 86px;
    }
    body.interface-desktop [data-tmy-shortcut].has-illustration span img {
        width: 54px;
        height: 54px;
    }
}


/* ========================================================
   TMY HUB 4.6.5 — Premium Theme Engine
   ======================================================== */
body {
    --glow-color: rgba(31,111,175,.22);
    --glass-highlight: rgba(255,255,255,.62);
    --icon-gradient-a: rgba(255,255,255,.96);
    --icon-gradient-b: rgba(255,255,255,.78);
    --mesh-orb-a: rgba(91,157,255,.22);
    --mesh-orb-b: rgba(255,92,168,.18);
    --mesh-orb-c: rgba(255,210,85,.16);
    --theme-shadow: 0 16px 40px rgba(10,35,70,.16);
    --taskbar-bg: rgba(255,255,255,.55);
    --taskbar-border: rgba(255,255,255,.55);
}
body.dark-mode {
    --glass-highlight: rgba(141,180,255,.20);
    --theme-shadow: 0 18px 46px rgba(0,0,0,.28);
    --taskbar-bg: rgba(14,22,36,.62);
    --taskbar-border: rgba(255,255,255,.14);
}
.tmy-bg-parallax::before,
.tmy-bg-parallax::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(84px);
    opacity: .58;
    animation: tmyMeshFloatA 26s ease-in-out infinite alternate;
}
.tmy-bg-parallax::before {
    left: -12vw;
    top: 8vh;
    background: radial-gradient(circle, var(--mesh-orb-a) 0%, transparent 65%);
}
.tmy-bg-parallax::after {
    right: -10vw;
    bottom: 8vh;
    background: radial-gradient(circle, var(--mesh-orb-b) 0%, transparent 65%);
    animation-name: tmyMeshFloatB;
    animation-duration: 30s;
}
@keyframes tmyMeshFloatA { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(8vw, 4vh, 0) scale(1.14); } }
@keyframes tmyMeshFloatB { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-10vw, -5vh, 0) scale(1.18); } }
body.motion-reduced .tmy-bg-parallax::before,
body.motion-reduced .tmy-bg-parallax::after { animation: none !important; }
.glass-panel,
.tmy-start-menu,
.tmy-start-tiles button,
.tmy-start-action-grid button,
body.interface-desktop .tmy-desktop-icons button span,
.tmy-w11-taskbar {
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.glass-panel,
.tmy-start-menu {
    box-shadow: inset 0 1px 1px var(--glass-highlight), inset 0 0 0 1px rgba(255,255,255,.18), var(--theme-shadow);
}
.tmy-start-tiles button,
.tmy-start-action-grid button,
body.interface-desktop .tmy-desktop-icons button span,
.tmy-start-pack-option {
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, background .28s ease;
}
.tmy-start-tiles button:hover,
.tmy-start-action-grid button:hover,
.tmy-start-pack-option:hover,
body.interface-desktop .tmy-desktop-icons button:hover span {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 22px 44px rgba(10,35,70,.18), 0 0 0 1px rgba(255,255,255,.08), 0 0 22px var(--glow-color);
}
body.interface-desktop .tmy-desktop-icons button span,
.tmy-start-tiles button span,
.tmy-start-action-grid button span {
    filter: drop-shadow(0 10px 16px rgba(31,111,175,.22));
}
.tmy-start-button.is-theme-locked,
.theme-toggle-btn.is-theme-locked { box-shadow: 0 0 0 2px rgba(255,210,85,.25), 0 16px 34px rgba(10,35,70,.18); }
.special-theme-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.special-theme-layer .theme-petal {
    position: absolute;
    top: -10vh;
    color: rgba(255,161,197,.92);
    font-size: clamp(14px, 1.4vw, 24px);
    text-shadow: 0 0 8px rgba(255,255,255,.32);
    transform: translate3d(0,0,0) scale(var(--petal-scale, 1));
    animation: tmyPetalFall linear infinite;
}
@keyframes tmyPetalFall {
    0% { transform: translate3d(0, -8vh, 0) rotate(0deg) scale(var(--petal-scale, 1)); }
    25% { transform: translate3d(calc(var(--petal-drift, 0vw) * .35), 24vh, 0) rotate(70deg) scale(var(--petal-scale, 1)); }
    50% { transform: translate3d(calc(var(--petal-drift, 0vw) * .7), 54vh, 0) rotate(140deg) scale(var(--petal-scale, 1)); }
    75% { transform: translate3d(calc(var(--petal-drift, 0vw)), 80vh, 0) rotate(210deg) scale(var(--petal-scale, 1)); }
    100% { transform: translate3d(calc(var(--petal-drift, 0vw) * 1.15), 112vh, 0) rotate(280deg) scale(var(--petal-scale, 1)); }
}
/* Theme vars */
body[data-theme-pack="anime-inspired"] { --glow-color: rgba(34,211,238,.24); --mesh-orb-a: rgba(59,130,246,.25); --mesh-orb-b: rgba(34,211,238,.16); --mesh-orb-c: rgba(253,224,71,.14); }
body[data-theme-pack="cyberpunk-city"] { --glow-color: rgba(248,243,43,.24); --mesh-orb-a: rgba(0,245,212,.22); --mesh-orb-b: rgba(255,46,166,.20); --mesh-orb-c: rgba(248,243,43,.16); }
body[data-theme-pack="windows-aero"] { --glow-color: rgba(125,211,252,.22); --mesh-orb-a: rgba(160,215,255,.28); --mesh-orb-b: rgba(80,170,255,.16); --mesh-orb-c: rgba(255,255,255,.16); --icon-gradient-a: rgba(255,255,255,.88); --icon-gradient-b: rgba(208,234,255,.68); }
body[data-theme-pack="windows-11"] { --glow-color: rgba(96,165,250,.24); --mesh-orb-a: rgba(120,180,255,.22); --mesh-orb-b: rgba(255,255,255,.18); --mesh-orb-c: rgba(59,130,246,.14); --taskbar-bg: rgba(255,255,255,.58); --taskbar-border: rgba(255,255,255,.58); }
body.dark-mode[data-theme-pack="windows-11"] { --taskbar-bg: rgba(13,22,38,.70); --taskbar-border: rgba(255,255,255,.14); }
/* Improve Aero */
body[data-theme-pack="windows-aero"] .glass-panel,
body[data-theme-pack="windows-aero"] .tmy-start-menu,
body[data-theme-pack="windows-aero"] .tmy-start-tiles button,
body[data-theme-pack="windows-aero"] .tmy-start-action-grid button {
    background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(198,229,255,.28));
    border-color: rgba(255,255,255,.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 0 0 1px rgba(255,255,255,.34), 0 22px 44px rgba(37,114,183,.18);
}
body.dark-mode[data-theme-pack="windows-aero"] .glass-panel,
body.dark-mode[data-theme-pack="windows-aero"] .tmy-start-menu,
body.dark-mode[data-theme-pack="windows-aero"] .tmy-start-tiles button,
body.dark-mode[data-theme-pack="windows-aero"] .tmy-start-action-grid button {
    background: linear-gradient(180deg, rgba(20,40,70,.62), rgba(8,18,35,.46));
    border-color: rgba(160,215,255,.28);
    box-shadow: inset 0 1px 0 rgba(210,235,255,.26), inset 0 0 0 1px rgba(165,215,255,.14), 0 24px 48px rgba(0,0,0,.26);
}
body[data-wallpaper="aero-glass"] {
    background:
      radial-gradient(circle at 18% 18%, rgba(191,227,255,.42), transparent 24%),
      radial-gradient(circle at 82% 16%, rgba(122,205,255,.28), transparent 26%),
      radial-gradient(circle at 68% 72%, rgba(255,255,255,.24), transparent 28%),
      linear-gradient(135deg,#d8ecff 0%,#eff7ff 38%,#cfe7ff 100%);
}
body.dark-mode[data-wallpaper="aero-glass"] {
    background:
      radial-gradient(circle at 18% 18%, rgba(117,199,255,.22), transparent 24%),
      radial-gradient(circle at 82% 16%, rgba(92,154,255,.18), transparent 26%),
      radial-gradient(circle at 68% 72%, rgba(255,255,255,.08), transparent 28%),
      linear-gradient(135deg,#07111d 0%,#0d1728 44%,#10233c 100%);
}
body[data-wallpaper="aero-glass"] .tmy-bg-parallax::after { content:"◇ ○ ✦ ⟡ ○ ◇ ✦ ⟡ ○ ◇\A○ ✦ ◇ ○ ⟡ ✦ ○ ◇ ○ ⟡\A✦ ⟡ ○ ◇ ✦ ⟡ ○ ◇ ✦" !important; opacity:.10 !important; }
/* Windows 11 theme */
body[data-wallpaper="windows-11-bloom"] {
    background:
      radial-gradient(circle at 30% 24%, rgba(200,228,255,.52), transparent 22%),
      radial-gradient(circle at 62% 52%, rgba(130,190,255,.28), transparent 22%),
      radial-gradient(circle at 76% 28%, rgba(255,255,255,.34), transparent 18%),
      linear-gradient(135deg,#edf6ff 0%,#f8fbff 42%,#deedff 100%);
}
body.dark-mode[data-wallpaper="windows-11-bloom"] {
    background:
      radial-gradient(circle at 30% 24%, rgba(72,129,255,.22), transparent 22%),
      radial-gradient(circle at 62% 52%, rgba(110,206,255,.18), transparent 22%),
      radial-gradient(circle at 76% 28%, rgba(255,255,255,.08), transparent 18%),
      linear-gradient(135deg,#070f1a 0%,#0d1524 42%,#102038 100%);
}
body[data-theme-pack="windows-11"] .glass-panel,
body[data-theme-pack="windows-11"] .tmy-start-menu,
body[data-theme-pack="windows-11"] .tmy-start-tiles button,
body[data-theme-pack="windows-11"] .tmy-start-action-grid button {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
    border-color: rgba(255,255,255,.64);
}
body.dark-mode[data-theme-pack="windows-11"] .glass-panel,
body.dark-mode[data-theme-pack="windows-11"] .tmy-start-menu,
body.dark-mode[data-theme-pack="windows-11"] .tmy-start-tiles button,
body.dark-mode[data-theme-pack="windows-11"] .tmy-start-action-grid button {
    background: linear-gradient(180deg, rgba(17,28,46,.76), rgba(11,18,32,.56));
    border-color: rgba(255,255,255,.16);
}
.tmy-w11-taskbar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(960px, calc(100vw - 34px));
    padding: 10px 14px;
    border-radius: 22px;
    background: var(--taskbar-bg);
    border: 1px solid var(--taskbar-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 22px 52px rgba(0,0,0,.18);
    z-index: 81;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tmy-w11-taskbar.is-visible { display: flex; }
.tmy-w11-taskbar-center,
.tmy-w11-tray { display: flex; align-items: center; gap: 10px; }
.tmy-w11-taskbar-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.34);
    background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.42));
    color: var(--primary-color);
    font-size: 19px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1), background .28s ease;
    box-shadow: 0 10px 24px rgba(10,35,70,.10);
}
body.dark-mode .tmy-w11-taskbar-btn {
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    color: #f8fbff;
    border-color: rgba(255,255,255,.12);
}
.tmy-w11-taskbar-btn:hover,
.tmy-w11-taskbar-btn.active {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 28px rgba(10,35,70,.18), 0 0 18px var(--glow-color);
}
.tmy-w11-taskbar-btn.start-btn { font-size: 22px; font-weight: 700; }
.tmy-w11-clock {
    min-width: 78px;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.24);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.tmy-w11-clock span { font-weight: 700; font-size: 14px; }
.tmy-w11-clock small { font-size: 11px; opacity: .86; }
body.interface-desktop[data-theme-pack="windows-11"] .tmy-start-button { display: none !important; }
body.interface-desktop[data-theme-pack="windows-11"] .main-content { padding-bottom: 118px; }
/* Remove Flamengo visuals from active lists by leaving no active option */
/* Responsive taskbar */
@media (max-width: 920px) {
    .tmy-w11-taskbar { width: calc(100vw - 20px); gap: 10px; padding: 8px 10px; }
    .tmy-w11-taskbar-center { gap: 7px; overflow-x: auto; padding-bottom: 2px; }
    .tmy-w11-taskbar-btn { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; flex: 0 0 auto; }
}
@media (max-width: 700px) {
    .tmy-w11-clock { display: none; }
    .tmy-w11-tray { gap: 8px; }
}


/* ========================================================
   TMY HUB 4.6.6 — Smart Start Theme Library
   ======================================================== */
.tmy-theme-library {
    display: block !important;
}
.tmy-theme-library-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    border: 1px solid var(--glass-border);
}
.tmy-theme-library-head strong {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
}
body.dark-mode .tmy-theme-library-head strong { color: #f8fbff; }
.tmy-theme-library-head small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}
.tmy-theme-back-btn {
    border: 1px solid color-mix(in srgb, var(--primary-light) 26%, transparent);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
body.dark-mode .tmy-theme-back-btn { color: #f8fbff; background: rgba(255,255,255,.08); }
.tmy-theme-category-grid,
.tmy-theme-pack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}
.tmy-theme-category-card,
.tmy-theme-pack-card {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-soft) 76%, transparent));
    color: var(--text-light);
    padding: 12px 9px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 12px 24px rgba(15,71,116,.08);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease;
}
.tmy-theme-category-card:hover,
.tmy-theme-pack-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 18px 34px color-mix(in srgb, var(--secondary-color) 17%, transparent);
}
.tmy-theme-category-card.is-current,
.tmy-theme-pack-card.is-active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--secondary-color) 16%, transparent), 0 16px 30px color-mix(in srgb, var(--secondary-color) 14%, transparent);
}
.tmy-theme-category-card span,
.theme-pack-preview {
    width: 44px;
    height: 44px;
    margin: 0 auto 7px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-light) 16%, white), color-mix(in srgb, var(--secondary-color) 12%, white));
    font-size: 22px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.70), 0 10px 20px rgba(15,71,116,.10);
    overflow: hidden;
}
.theme-pack-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tmy-theme-category-card strong,
.tmy-theme-pack-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 12px;
    line-height: 1.15;
}
body.dark-mode .tmy-theme-category-card strong,
body.dark-mode .tmy-theme-pack-card strong { color: #f8fbff; }
.tmy-theme-category-card small,
.tmy-theme-pack-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.1;
}
.theme-mode-badge {
    display: inline-flex;
    margin-top: 6px;
    border-radius: 999px;
    padding: 3px 7px;
    font-style: normal;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    background: rgba(255,255,255,.46);
    border: 1px solid rgba(255,255,255,.28);
    color: var(--primary-color);
}
body.dark-mode .theme-mode-badge { background: rgba(255,255,255,.10); color: #f8fbff; }
.theme-mode-badge.dark { color: #8b5cf6; }
.theme-mode-badge.light { color: #d97706; }
.theme-mode-badge.both { color: #0f766e; }
.theme-active-seal {
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff !important;
    padding: 3px 7px;
    font-size: 9px !important;
    font-weight: 900;
}

/* Tooltips for OS bars/docks */
.tmy-os-shell button[data-label] {
    position: relative;
}
.tmy-os-shell button[data-label]::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    color: #f8fbff;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    transition: opacity .18s ease, transform .18s ease;
}
.tmy-os-shell button[data-label]:hover::after,
.tmy-os-shell button[data-label]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Shared OS shells */
.tmy-w11-taskbar,
.tmy-macos-dock,
.tmy-linux-panel {
    display: none;
}
.tmy-w11-taskbar.is-visible,
.tmy-macos-dock.is-visible,
.tmy-linux-panel.is-visible {
    display: flex;
}
body.interface-desktop[data-theme-pack^="windows-"] .tmy-start-button,
body.interface-desktop[data-theme-pack^="macos-"] .tmy-start-button,
body.interface-desktop[data-theme-pack="ubuntu-inspired"] .tmy-start-button,
body.interface-desktop[data-theme-pack="linux-mint-inspired"] .tmy-start-button,
body.interface-desktop[data-theme-pack="fedora-inspired"] .tmy-start-button,
body.interface-desktop[data-theme-pack="debian-inspired"] .tmy-start-button,
body.interface-desktop[data-theme-pack="arch-inspired"] .tmy-start-button,
body.interface-desktop[data-theme-pack="kali-inspired"] .tmy-start-button {
    display: none !important;
}

/* Windows taskbar family */
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 32px));
    min-height: 62px;
    padding: 9px 14px;
    border-radius: 22px;
    z-index: 82;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: color-mix(in srgb, var(--taskbar-bg) 78%, transparent);
    border: 1px solid var(--taskbar-border);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.52), 0 22px 52px rgba(0,0,0,.18);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar-center,
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-tray {
    display: flex;
    align-items: center;
    gap: 9px;
}
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.28);
    background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.34));
    color: var(--primary-color);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10,35,70,.10);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
body.interface-desktop.dark-mode[data-theme-pack^="windows-"] .tmy-w11-taskbar-btn {
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
    color: #f8fbff;
    border-color: rgba(255,255,255,.12);
}
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar-btn:hover,
body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar-btn.active {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 28px rgba(10,35,70,.18), 0 0 18px var(--glow-color);
}
.tmy-w11-clock,
.tmy-macos-clock,
.tmy-linux-clock {
    min-width: 76px;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    color: var(--text-light);
}
.tmy-w11-clock span,
.tmy-macos-clock span,
.tmy-linux-clock span { font-weight: 800; font-size: 14px; }
.tmy-w11-clock small,
.tmy-macos-clock small,
.tmy-linux-clock small { font-size: 10px; opacity: .78; }

/* Windows version personalities */
body[data-theme-pack="windows-xp"] {
    --primary-color:#0f4aad; --primary-light:#3b82f6; --secondary-color:#4ade80; --accent-color:#facc15;
    --sidebar-start:#0958d8; --sidebar-middle:#1d64d8; --sidebar-end:#3b82f6;
    --taskbar-bg: rgba(20,92,222,.94); --taskbar-border: rgba(255,255,255,.26);
    --glow-color: rgba(74,222,128,.22); --mesh-orb-a: rgba(59,130,246,.28); --mesh-orb-b: rgba(74,222,128,.18);
}
body[data-theme-pack="windows-vista"] {
    --primary-color:#0f172a; --primary-light:#38bdf8; --secondary-color:#60a5fa; --accent-color:#a78bfa;
    --sidebar-start:#070b14; --sidebar-middle:#14203a; --sidebar-end:#2563eb;
    --taskbar-bg: rgba(9,16,30,.72); --taskbar-border: rgba(148,211,255,.28);
    --glow-color: rgba(56,189,248,.22); --mesh-orb-a: rgba(37,99,235,.24); --mesh-orb-b: rgba(167,139,250,.18);
}
body[data-theme-pack="windows-98"] {
    --primary-color:#111827; --primary-light:#9ca3af; --secondary-color:#2563eb; --accent-color:#f3f4f6;
    --sidebar-start:#6b7280; --sidebar-middle:#9ca3af; --sidebar-end:#d1d5db;
    --taskbar-bg: rgba(192,192,192,.96); --taskbar-border: rgba(64,64,64,.65);
    --glow-color: rgba(37,99,235,.12); --mesh-orb-a: rgba(209,213,219,.20); --mesh-orb-b: rgba(156,163,175,.12);
}
body[data-theme-pack="windows-xp"] .tmy-w11-taskbar {
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(55,141,255,.98), rgba(13,85,205,.98));
    border-color: rgba(255,255,255,.24);
}
body[data-theme-pack="windows-xp"] .tmy-w11-taskbar-btn.start-btn {
    width: 72px;
    border-radius: 18px;
    background: linear-gradient(180deg, #6ee78d, #15803d);
    color: #fff;
}
body[data-theme-pack="windows-98"] .tmy-w11-taskbar {
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    min-height: 48px;
    padding: 5px 8px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: inset 0 -2px 0 #808080;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body[data-theme-pack="windows-98"] .tmy-w11-taskbar-btn {
    border-radius: 0 !important;
    background: #c0c0c0 !important;
    border-top: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    border-right: 2px solid #404040 !important;
    border-bottom: 2px solid #404040 !important;
    color: #111827 !important;
    box-shadow: none !important;
}
body[data-theme-pack="windows-vista"] .tmy-w11-taskbar {
    background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(8,16,30,.72));
    border-color: rgba(255,255,255,.30);
}
body[data-theme-pack="windows-vista"] .tmy-w11-taskbar-btn.start-btn {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.78), rgba(34,197,94,.48) 32%, rgba(37,99,235,.72) 66%, rgba(15,23,42,.9));
}

/* macOS Dock */
.tmy-macos-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 83;
    align-items: end;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 26px;
    background: rgba(255,255,255,.38);
    border: 1px solid rgba(255,255,255,.50);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.56), 0 24px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
}
body.dark-mode .tmy-macos-dock {
    background: rgba(12,20,34,.58);
    border-color: rgba(255,255,255,.14);
}
.tmy-macos-dock-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.42));
    box-shadow: 0 12px 22px rgba(15,71,116,.12), inset 0 1px 1px rgba(255,255,255,.74);
    font-size: 19px;
    cursor: pointer;
    color: var(--primary-color);
    transform-origin: bottom center;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
body.dark-mode .tmy-macos-dock-btn {
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}
.tmy-macos-dock-btn:hover,
.tmy-macos-dock-btn.active {
    transform: translateY(-8px) scale(1.22);
    box-shadow: 0 24px 36px rgba(15,71,116,.20), 0 0 20px var(--glow-color);
}
.tmy-macos-clock {
    align-self: center;
}

/* Linux panels */
.tmy-linux-panel {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 83;
    width: min(970px, calc(100vw - 30px));
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 20px 46px rgba(0,0,0,.20);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.tmy-linux-panel-left,
.tmy-linux-panel-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tmy-linux-panel-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: #f8fbff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 17px;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, background .24s ease;
}
.tmy-linux-panel-btn:hover,
.tmy-linux-panel-btn.active {
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--primary-light) 24%, rgba(255,255,255,.08));
    box-shadow: 0 16px 28px rgba(0,0,0,.24), 0 0 18px var(--glow-color);
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel {
    left: 18px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    min-height: auto;
    flex-direction: column;
    padding: 12px 8px;
    border-radius: 22px;
    background: rgba(49,17,83,.74);
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-left,
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-right {
    flex-direction: column;
}
body[data-theme-pack="linux-mint-inspired"] .tmy-linux-panel {
    background: rgba(21,128,61,.82);
}
body[data-theme-pack="fedora-inspired"] .tmy-linux-panel {
    background: rgba(15,76,129,.78);
}
body[data-theme-pack="debian-inspired"] .tmy-linux-panel {
    background: rgba(88,28,46,.78);
}
body[data-theme-pack="arch-inspired"] .tmy-linux-panel,
body[data-theme-pack="kali-inspired"] .tmy-linux-panel {
    background: rgba(2,6,23,.84);
}

/* New OS theme variables */
body[data-theme-pack="macos-aqua"] { --primary-color:#0a4f8f; --primary-light:#5bbcff; --secondary-color:#7dd3fc; --accent-color:#ffffff; --sidebar-start:#055c99; --sidebar-middle:#3aa4f8; --sidebar-end:#c7e9ff; --glow-color:rgba(91,188,255,.24); --mesh-orb-a:rgba(91,188,255,.28); --mesh-orb-b:rgba(255,255,255,.18); }
body[data-theme-pack="macos-big-sur"] { --primary-color:#37517e; --primary-light:#93c5fd; --secondary-color:#f9a8d4; --accent-color:#fef3c7; --sidebar-start:#476a9b; --sidebar-middle:#9cc7f8; --sidebar-end:#f9a8d4; --glow-color:rgba(147,197,253,.24); --mesh-orb-a:rgba(147,197,253,.28); --mesh-orb-b:rgba(249,168,212,.18); }
body[data-theme-pack="macos-sonoma"] { --primary-color:#4c1d95; --primary-light:#a78bfa; --secondary-color:#fb7185; --accent-color:#38bdf8; --sidebar-start:#2e1065; --sidebar-middle:#7c3aed; --sidebar-end:#fb7185; --glow-color:rgba(167,139,250,.24); --mesh-orb-a:rgba(167,139,250,.24); --mesh-orb-b:rgba(251,113,133,.18); }
body[data-theme-pack="macos-dark-glass"] { --primary-color:#0f172a; --primary-light:#60a5fa; --secondary-color:#c084fc; --accent-color:#e0f2fe; --sidebar-start:#020617; --sidebar-middle:#0f172a; --sidebar-end:#312e81; --glow-color:rgba(96,165,250,.24); --mesh-orb-a:rgba(96,165,250,.20); --mesh-orb-b:rgba(192,132,252,.16); }
body[data-theme-pack="macos-classic"] { --primary-color:#111827; --primary-light:#9ca3af; --secondary-color:#2563eb; --accent-color:#f3f4f6; --sidebar-start:#e5e7eb; --sidebar-middle:#d1d5db; --sidebar-end:#9ca3af; --glow-color:rgba(37,99,235,.12); --mesh-orb-a:rgba(209,213,219,.24); --mesh-orb-b:rgba(156,163,175,.12); }
body[data-theme-pack="ubuntu-inspired"] { --primary-color:#5f1d7a; --primary-light:#f97316; --secondary-color:#a855f7; --accent-color:#fef3c7; --sidebar-start:#2d093f; --sidebar-middle:#5f1d7a; --sidebar-end:#f97316; --glow-color:rgba(249,115,22,.22); --mesh-orb-a:rgba(249,115,22,.24); --mesh-orb-b:rgba(168,85,247,.18); }
body[data-theme-pack="linux-mint-inspired"] { --primary-color:#14532d; --primary-light:#22c55e; --secondary-color:#86efac; --accent-color:#ecfccb; --sidebar-start:#064e3b; --sidebar-middle:#15803d; --sidebar-end:#86efac; --glow-color:rgba(34,197,94,.22); --mesh-orb-a:rgba(34,197,94,.24); --mesh-orb-b:rgba(134,239,172,.18); }
body[data-theme-pack="fedora-inspired"] { --primary-color:#1d4ed8; --primary-light:#60a5fa; --secondary-color:#38bdf8; --accent-color:#dbeafe; --sidebar-start:#0b2a5b; --sidebar-middle:#1d4ed8; --sidebar-end:#38bdf8; --glow-color:rgba(96,165,250,.22); --mesh-orb-a:rgba(96,165,250,.24); --mesh-orb-b:rgba(56,189,248,.16); }
body[data-theme-pack="debian-inspired"] { --primary-color:#881337; --primary-light:#be123c; --secondary-color:#fda4af; --accent-color:#fff1f2; --sidebar-start:#4c0519; --sidebar-middle:#881337; --sidebar-end:#e11d48; --glow-color:rgba(225,29,72,.18); --mesh-orb-a:rgba(190,18,60,.22); --mesh-orb-b:rgba(253,164,175,.14); }
body[data-theme-pack="arch-inspired"] { --primary-color:#0f172a; --primary-light:#38bdf8; --secondary-color:#0ea5e9; --accent-color:#e0f2fe; --sidebar-start:#020617; --sidebar-middle:#0f172a; --sidebar-end:#0284c7; --glow-color:rgba(56,189,248,.22); --mesh-orb-a:rgba(56,189,248,.18); --mesh-orb-b:rgba(14,165,233,.14); }
body[data-theme-pack="kali-inspired"] { --primary-color:#0b1220; --primary-light:#22d3ee; --secondary-color:#2563eb; --accent-color:#dbeafe; --sidebar-start:#020617; --sidebar-middle:#0f172a; --sidebar-end:#1d4ed8; --glow-color:rgba(34,211,238,.22); --mesh-orb-a:rgba(34,211,238,.18); --mesh-orb-b:rgba(37,99,235,.18); }

/* New OS wallpapers */
body[data-wallpaper="windows-xp-bliss"] { background: radial-gradient(circle at 72% 20%, rgba(255,255,255,.52), transparent 14%), linear-gradient(180deg,#7dc6ff 0%,#bfe8ff 46%,#56b85b 47%,#3f9d40 100%); }
body[data-wallpaper="windows-vista-glass"] { background: radial-gradient(circle at 24% 18%, rgba(255,255,255,.22), transparent 18%), radial-gradient(circle at 80% 75%, rgba(59,130,246,.22), transparent 28%), linear-gradient(135deg,#050814 0%,#101a30 52%,#17376a 100%); }
body[data-wallpaper="windows-98-classic"] { background: linear-gradient(135deg,#008080 0%,#006f73 52%,#005f61 100%); }
body[data-wallpaper="macos-aqua"] { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.62), transparent 16%), radial-gradient(circle at 70% 78%, rgba(91,188,255,.28), transparent 28%), linear-gradient(135deg,#dff4ff 0%,#9bd8ff 52%,#f8fbff 100%); }
body[data-wallpaper="macos-big-sur"] { background: radial-gradient(circle at 20% 18%, rgba(147,197,253,.42), transparent 22%), radial-gradient(circle at 80% 28%, rgba(249,168,212,.30), transparent 24%), radial-gradient(circle at 52% 82%, rgba(254,243,199,.34), transparent 28%), linear-gradient(135deg,#f8fbff 0%,#eff6ff 52%,#fff1f2 100%); }
body[data-wallpaper="macos-sonoma"] { background: radial-gradient(circle at 22% 20%, rgba(167,139,250,.32), transparent 24%), radial-gradient(circle at 72% 32%, rgba(251,113,133,.26), transparent 24%), radial-gradient(circle at 54% 82%, rgba(56,189,248,.22), transparent 30%), linear-gradient(135deg,#f8f7ff 0%,#fff1f2 48%,#eff6ff 100%); }
body[data-wallpaper="macos-dark-glass"] { background: radial-gradient(circle at 24% 20%, rgba(96,165,250,.22), transparent 26%), radial-gradient(circle at 82% 74%, rgba(192,132,252,.18), transparent 30%), linear-gradient(135deg,#020617 0%,#0f172a 52%,#1e1b4b 100%); }
body[data-wallpaper="macos-classic"] { background: repeating-linear-gradient(45deg, #e5e7eb 0 12px, #d1d5db 12px 24px); }
body[data-wallpaper="ubuntu-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(249,115,22,.28), transparent 26%), radial-gradient(circle at 82% 72%, rgba(168,85,247,.22), transparent 32%), linear-gradient(135deg,#2d093f 0%,#5b1f73 52%,#dd4814 100%); }
body[data-wallpaper="linux-mint-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(34,197,94,.24), transparent 28%), radial-gradient(circle at 82% 72%, rgba(134,239,172,.28), transparent 32%), linear-gradient(135deg,#ecfdf5 0%,#dcfce7 52%,#bbf7d0 100%); }
body[data-wallpaper="fedora-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(96,165,250,.28), transparent 28%), radial-gradient(circle at 82% 72%, rgba(56,189,248,.22), transparent 32%), linear-gradient(135deg,#eff6ff 0%,#dbeafe 52%,#bfdbfe 100%); }
body[data-wallpaper="debian-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(225,29,72,.22), transparent 28%), radial-gradient(circle at 82% 72%, rgba(253,164,175,.18), transparent 32%), linear-gradient(135deg,#fff1f2 0%,#ffe4e6 52%,#fecdd3 100%); }
body[data-wallpaper="arch-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(56,189,248,.18), transparent 28%), radial-gradient(circle at 82% 72%, rgba(14,165,233,.14), transparent 32%), linear-gradient(135deg,#020617 0%,#0f172a 52%,#082f49 100%); }
body[data-wallpaper="kali-inspired"] { background: radial-gradient(circle at 20% 18%, rgba(34,211,238,.18), transparent 28%), radial-gradient(circle at 82% 72%, rgba(37,99,235,.18), transparent 32%), linear-gradient(135deg,#020617 0%,#0b1220 52%,#172554 100%); }

body.dark-mode[data-wallpaper="linux-mint-inspired"],
body.dark-mode[data-wallpaper="fedora-inspired"],
body.dark-mode[data-wallpaper="debian-inspired"] {
    background: radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary-light) 24%, transparent), transparent 28%), radial-gradient(circle at 86% 76%, color-mix(in srgb, var(--secondary-color) 18%, transparent), transparent 34%), linear-gradient(135deg,#07131f 0%,#0b1220 50%,#1f1026 100%);
}

/* UI polish by OS family */
body[data-theme-pack^="macos-"] .glass-panel,
body[data-theme-pack^="macos-"] .tmy-start-menu,
body[data-theme-pack^="macos-"] .tmy-start-tiles button {
    border-radius: 28px;
}
body[data-theme-pack="windows-98"] .glass-panel,
body[data-theme-pack="windows-98"] .tmy-start-menu,
body[data-theme-pack="windows-98"] .tmy-start-tiles button,
body[data-theme-pack="macos-classic"] .glass-panel,
body[data-theme-pack="macos-classic"] .tmy-start-menu,
body[data-theme-pack="macos-classic"] .tmy-start-tiles button {
    border-radius: 0 !important;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.85), inset -2px -2px 0 rgba(80,80,80,.45), 0 12px 26px rgba(0,0,0,.12) !important;
}
body[data-theme-pack="windows-98"] .tmy-start-menu,
body[data-theme-pack="macos-classic"] .tmy-start-menu {
    background: #c0c0c0 !important;
    color: #111827 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
@media (max-width: 920px) {
    .tmy-theme-category-grid,
    .tmy-theme-pack-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar,
    .tmy-linux-panel { width: calc(100vw - 20px); padding: 8px 10px; }
    body.interface-desktop[data-theme-pack^="windows-"] .tmy-w11-taskbar-center,
    .tmy-macos-dock,
    .tmy-linux-panel-left { overflow-x: auto; }
}
@media (max-width: 700px) {
    .tmy-w11-clock, .tmy-macos-clock, .tmy-linux-clock { display:none; }
    .tmy-macos-dock { width: calc(100vw - 18px); justify-content: start; overflow-x: auto; }
}


/* ========================================================
   TMY HUB 4.6.6.1 — Smart Theme Library + OS Bars Hotfix
   ======================================================== */

/* Premium polish seguro em cima da base existente */
body {
    --glass-blur: 22px;
    --glass-edge: rgba(255,255,255,.48);
    --glass-frost: rgba(255,255,255,.18);
    --shadow-premium: 0 18px 46px rgba(15, 35, 70, .14);
}
body.dark-mode {
    --glass-edge: rgba(160,190,255,.18);
    --glass-frost: rgba(15,23,42,.22);
    --shadow-premium: 0 22px 54px rgba(0,0,0,.30);
}
.glass-panel,
.stat-card,
.tmy-start-menu,
.tmy-start-visual-packs,
.tmy-w11-taskbar,
.tmy-macos-dock,
.tmy-linux-panel {
    box-shadow:
        inset 0 1px 0 var(--glass-edge),
        inset 0 0 0 1px rgba(255,255,255,.10),
        var(--shadow-premium) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
}

/* Menu Iniciar: biblioteca em subabas circulares, sem lista/cartão com rolagem */
.tmy-start-menu {
    overflow: visible;
}
.tmy-start-visual-packs {
    max-height: none !important;
    overflow: visible !important;
    padding: 14px 12px 16px !important;
}
.tmy-start-pack-grid,
.tmy-theme-library,
.tmy-theme-category-grid,
.tmy-theme-pack-grid {
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 0 0 !important;
}
.tmy-theme-library-head {
    margin-bottom: 12px !important;
    align-items: center;
}
.tmy-theme-library-head strong {
    font-size: 15px;
}
.tmy-theme-library-head small {
    display: block;
    font-size: 11px;
    max-width: 330px;
}
.tmy-theme-category-grid,
.tmy-theme-pack-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px 16px !important;
}
.tmy-theme-category-card,
.tmy-theme-pack-card {
    width: 82px !important;
    min-height: 94px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: var(--text-light);
}
.tmy-theme-category-card span,
.tmy-theme-pack-card .theme-pack-preview {
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.92), rgba(255,255,255,.28) 34%, transparent 62%),
        linear-gradient(145deg, color-mix(in srgb, var(--primary-light) 40%, white), color-mix(in srgb, var(--secondary-color) 26%, white));
    border: 1px solid rgba(255,255,255,.54);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.82),
        inset 0 -10px 20px rgba(15,71,116,.06),
        0 14px 26px color-mix(in srgb, var(--primary-color) 14%, transparent),
        0 0 20px color-mix(in srgb, var(--secondary-color) 18%, transparent);
    font-size: 23px !important;
    transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease, border-color .26s ease;
    filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--primary-color) 14%, transparent));
}
body.dark-mode .tmy-theme-category-card span,
body.dark-mode .tmy-theme-pack-card .theme-pack-preview {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), rgba(255,255,255,.08) 35%, transparent 64%),
        linear-gradient(145deg, color-mix(in srgb, var(--primary-light) 32%, #111827), color-mix(in srgb, var(--secondary-color) 28%, #020617));
    border-color: rgba(255,255,255,.16);
}
.tmy-theme-category-card strong,
.tmy-theme-pack-card strong {
    display: block;
    width: 92px;
    max-width: 92px;
    color: var(--primary-color);
    text-align: center;
    font-size: 10.8px !important;
    font-weight: 900;
    line-height: 1.12;
    word-break: normal;
}
body.dark-mode .tmy-theme-category-card strong,
body.dark-mode .tmy-theme-pack-card strong {
    color: #f8fbff;
}
.tmy-theme-category-card small:not(.theme-active-seal),
.tmy-theme-pack-card small:not(.theme-active-seal),
.tmy-theme-pack-card .theme-mode-badge {
    display: none !important;
}
.tmy-theme-category-card:hover span,
.tmy-theme-pack-card:hover .theme-pack-preview,
.tmy-theme-category-card.is-current span,
.tmy-theme-pack-card.is-active .theme-pack-preview {
    transform: translateY(-5px) scale(1.08);
    border-color: color-mix(in srgb, var(--secondary-color) 55%, white);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.82),
        0 20px 34px color-mix(in srgb, var(--primary-color) 18%, transparent),
        0 0 26px color-mix(in srgb, var(--secondary-color) 30%, transparent);
}
.theme-active-seal {
    position: absolute;
    top: -2px;
    right: 4px;
    display: grid !important;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: white !important;
    font-size: 0 !important;
    box-shadow: 0 8px 16px rgba(22,163,74,.26);
}
.theme-active-seal::before {
    content: '✓';
    font-size: 13px;
    font-weight: 900;
}

/* Tooltips reforçados nas barras/docks/painéis */
.tmy-os-shell button[data-label] {
    position: relative !important;
}
.tmy-os-shell button[data-label]::after {
    color: #fff !important;
    background: rgba(15,23,42,.96) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 20px color-mix(in srgb, var(--glow-color) 40%, transparent) !important;
    letter-spacing: .01em;
}
body[data-theme-pack="windows-98"] .tmy-os-shell button[data-label]::after {
    border-radius: 2px !important;
    background: #ffffe1 !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,.28) !important;
}

/* Windows: cada versão com barra própria */
body.interface-desktop[data-theme-pack="windows-11"] .tmy-w11-taskbar {
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    width: min(960px, calc(100vw - 34px)) !important;
    min-height: 62px !important;
    border-radius: 22px !important;
    justify-content: space-between !important;
    background: color-mix(in srgb, var(--taskbar-bg) 82%, transparent) !important;
}
body.interface-desktop[data-theme-pack="windows-aero"] .tmy-w11-taskbar,
body.interface-desktop[data-theme-pack="windows-vista"] .tmy-w11-taskbar,
body.interface-desktop[data-theme-pack="windows-xp"] .tmy-w11-taskbar,
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-taskbar {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: none !important;
    border-radius: 0 !important;
    justify-content: space-between !important;
}
body.interface-desktop[data-theme-pack="windows-aero"] .tmy-w11-taskbar,
body.interface-desktop[data-theme-pack="windows-vista"] .tmy-w11-taskbar {
    min-height: 56px !important;
    padding: 7px 12px !important;
}
body.interface-desktop[data-theme-pack="windows-aero"] .tmy-w11-taskbar {
    background:
        linear-gradient(180deg, rgba(255,255,255,.44), rgba(80,160,225,.30) 45%, rgba(25,91,160,.52)) !important;
    border-top: 1px solid rgba(255,255,255,.66) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74), inset 0 -1px 0 rgba(10,40,80,.25), 0 -12px 34px rgba(20,95,160,.14) !important;
}
body.interface-desktop[data-theme-pack="windows-aero"] .tmy-w11-taskbar-btn.start-btn,
body.interface-desktop[data-theme-pack="windows-vista"] .tmy-w11-taskbar-btn.start-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 999px !important;
    font-size: 20px !important;
    background:
        radial-gradient(circle at 35% 24%, rgba(255,255,255,.98), rgba(255,255,255,.28) 26%, transparent 42%),
        conic-gradient(from 25deg, #ef4444, #facc15, #22c55e, #3b82f6, #ef4444) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.38);
    border: 2px solid rgba(255,255,255,.72) !important;
}
body.interface-desktop[data-theme-pack="windows-vista"] .tmy-w11-taskbar {
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(16,24,42,.72) 48%, rgba(2,8,23,.90)) !important;
    border-top-color: rgba(180,220,255,.38) !important;
}
body.interface-desktop[data-theme-pack="windows-xp"] .tmy-w11-taskbar {
    min-height: 48px !important;
    padding: 5px 8px !important;
    background: linear-gradient(180deg, #3d93ff 0%, #1c63d7 46%, #0e49ad 100%) !important;
    border-top: 1px solid rgba(255,255,255,.54) !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 -8px 20px rgba(12,69,160,.20) !important;
}
body.interface-desktop[data-theme-pack="windows-xp"] .tmy-w11-taskbar-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,.12)) !important;
    border: 1px solid rgba(255,255,255,.26) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
body.interface-desktop[data-theme-pack="windows-xp"] .tmy-w11-taskbar-btn.start-btn {
    width: 92px !important;
    border-radius: 18px 28px 28px 18px !important;
    background: linear-gradient(180deg, #84ef8e, #1d9c3a 46%, #0f6f25) !important;
    font-size: 15px !important;
    font-style: italic;
    font-weight: 900;
    text-transform: lowercase;
    justify-items: center;
}
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-taskbar {
    min-height: 42px !important;
    padding: 4px 6px !important;
    background: #c0c0c0 !important;
    border-top: 2px solid #fff !important;
    box-shadow: inset 0 -2px 0 #808080 !important;
}
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-taskbar-center,
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-tray {
    gap: 4px !important;
}
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-taskbar-btn {
    width: 34px !important;
    height: 30px !important;
    border-radius: 0 !important;
    background: #c0c0c0 !important;
    border-top: 2px solid #fff !important;
    border-left: 2px solid #fff !important;
    border-right: 2px solid #404040 !important;
    border-bottom: 2px solid #404040 !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 15px !important;
}
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-taskbar-btn.start-btn {
    width: 72px !important;
    font-size: 14px !important;
    font-weight: 900;
    justify-items: center;
}
body.interface-desktop[data-theme-pack="windows-98"] .tmy-w11-clock {
    border-radius: 0 !important;
    background: #c0c0c0 !important;
    border-top: 2px solid #808080 !important;
    border-left: 2px solid #808080 !important;
    border-right: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    color: #111 !important;
}

/* macOS Dock polish */
.tmy-macos-dock {
    gap: 10px !important;
}
.tmy-macos-dock-btn {
    position: relative !important;
}
body[data-theme-pack="macos-classic"] .tmy-macos-dock {
    border-radius: 8px !important;
    background: #d9d9d9 !important;
    border: 2px solid #777 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,.18) !important;
}
body[data-theme-pack="macos-classic"] .tmy-macos-dock-btn {
    border-radius: 6px !important;
    background: #f5f5f5 !important;
    color: #111 !important;
    border-color: #777 !important;
}

/* Linux: alto contraste nos ícones e personalidade dos painéis */
.tmy-linux-panel-btn {
    color: #ffffff !important;
    background: rgba(0,0,0,.28) !important;
    border-color: rgba(255,255,255,.22) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 18px rgba(0,0,0,.18);
}
.tmy-linux-clock {
    color: #ffffff !important;
    background: rgba(0,0,0,.24) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
body[data-theme-pack="linux-mint-inspired"] .tmy-linux-panel {
    background: linear-gradient(180deg, rgba(31,157,85,.94), rgba(16,110,60,.96)) !important;
}
body[data-theme-pack="linux-mint-inspired"] .tmy-linux-panel-btn {
    background: rgba(3,55,30,.42) !important;
}
body[data-theme-pack="fedora-inspired"] .tmy-linux-panel {
    background: linear-gradient(180deg, rgba(27,104,185,.90), rgba(10,62,126,.94)) !important;
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="debian-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="arch-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="kali-inspired"] .tmy-linux-panel-btn {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}
body[data-theme-pack="arch-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="kali-inspired"] .tmy-linux-panel-btn {
    border-color: rgba(34,211,238,.24) !important;
}

/* Compactação mobile do menu circular */
@media (max-width: 760px) {
    .tmy-start-menu {
        overflow: auto;
        max-height: min(78vh, 640px);
    }
    .tmy-theme-category-grid,
    .tmy-theme-pack-grid {
        gap: 12px !important;
    }
    .tmy-theme-category-card,
    .tmy-theme-pack-card {
        width: 72px !important;
    }
    .tmy-theme-category-card span,
    .tmy-theme-pack-card .theme-pack-preview {
        width: 56px !important;
        height: 56px !important;
    }
}


/* ========================================================
   TMY HUB 4.6.6.2 — Emergency Start Menu + GNOME Fix
   ======================================================== */
:root {
    --tmy-menu-max-height: min(680px, calc(100vh - 132px));
}
.tmy-start-menu {
    z-index: 160 !important;
    width: min(540px, calc(100vw - 36px)) !important;
    max-height: var(--tmy-menu-max-height) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.tmy-start-menu.is-open {
    display: block !important;
}
body.start-menu-open .tmy-os-shell {
    z-index: 70 !important;
    opacity: .28;
    pointer-events: none;
    filter: saturate(.75) blur(.2px);
    transition: opacity .18s ease, filter .18s ease;
}
body.start-menu-open[data-theme-pack="ubuntu-inspired"] .tmy-start-menu,
body.start-menu-open[data-theme-pack="linux-mint-inspired"] .tmy-start-menu,
body.start-menu-open[data-theme-pack="fedora-inspired"] .tmy-start-menu,
body.start-menu-open[data-theme-pack="debian-inspired"] .tmy-start-menu,
body.start-menu-open[data-theme-pack="arch-inspired"] .tmy-start-menu,
body.start-menu-open[data-theme-pack="kali-inspired"] .tmy-start-menu {
    left: 72px !important;
    bottom: 84px !important;
}
.tmy-start-visual-packs {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 0 !important;
    margin-top: 12px !important;
}
.tmy-start-visual-packs > .tmy-start-actions-title {
    padding-left: 2px;
    margin-bottom: 8px;
}
.tmy-theme-library-head {
    min-height: 0 !important;
    padding: 0 2px 8px !important;
    margin: 0 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    display: flex !important;
    gap: 9px;
}
.tmy-theme-library-head strong {
    font-size: 14px !important;
    line-height: 1.15;
}
.tmy-theme-library-head small {
    font-size: 10px !important;
    max-width: 360px !important;
    opacity: .82;
}
.tmy-theme-back-btn {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    font-size: 12px !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
}
.tmy-theme-category-grid,
.tmy-theme-pack-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 72px) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: 12px 14px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 4px !important;
}
.tmy-theme-category-card,
.tmy-theme-pack-card {
    width: 72px !important;
    min-height: 82px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    cursor: pointer;
    overflow: visible !important;
}
.tmy-theme-category-card span,
.tmy-theme-pack-card .theme-pack-preview {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 999px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 21px !important;
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.94), rgba(255,255,255,.34) 34%, transparent 64%),
        linear-gradient(145deg, color-mix(in srgb, var(--primary-light) 38%, white), color-mix(in srgb, var(--secondary-color) 24%, white)) !important;
    border: 1px solid rgba(255,255,255,.62) !important;
    color: color-mix(in srgb, var(--primary-color) 76%, #111827) !important;
    text-shadow: 0 1px 1px rgba(255,255,255,.30);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.86),
        0 10px 18px color-mix(in srgb, var(--primary-color) 12%, transparent),
        0 0 18px color-mix(in srgb, var(--secondary-color) 18%, transparent) !important;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease !important;
    overflow: hidden;
}
body.dark-mode .tmy-theme-category-card span,
body.dark-mode .tmy-theme-pack-card .theme-pack-preview {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.70);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.26), rgba(255,255,255,.10) 36%, transparent 66%),
        linear-gradient(145deg, color-mix(in srgb, var(--primary-light) 34%, #0b1220), color-mix(in srgb, var(--secondary-color) 30%, #020617)) !important;
    border-color: rgba(255,255,255,.18) !important;
}
.tmy-theme-category-card strong,
.tmy-theme-pack-card strong {
    width: 82px !important;
    max-width: 82px !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    font-size: 10.2px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-mode .tmy-theme-category-card strong,
body.dark-mode .tmy-theme-pack-card strong { color: #f8fbff !important; }
.tmy-theme-category-card:hover span,
.tmy-theme-pack-card:hover .theme-pack-preview,
.tmy-theme-category-card.is-current span,
.tmy-theme-pack-card.is-active .theme-pack-preview {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.88),
        0 15px 24px color-mix(in srgb, var(--primary-color) 17%, transparent),
        0 0 24px color-mix(in srgb, var(--secondary-color) 30%, transparent) !important;
}
.theme-active-seal {
    top: -4px !important;
    right: 4px !important;
    width: 18px !important;
    height: 18px !important;
}
.theme-active-seal::before { font-size: 11px !important; }
.theme-mode-badge { display: none !important; }

/* Linux/GNOME contrast and non-broken layering */
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel {
    z-index: 82 !important;
    left: 14px !important;
    width: 58px !important;
    padding: 10px 6px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(92,38,132,.92), rgba(54,24,91,.96)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 18px 42px rgba(25,10,50,.28) !important;
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-left,
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-right {
    width: 100% !important;
    gap: 8px !important;
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-panel-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.09)) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.24) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.75) !important;
    font-weight: 900 !important;
}
body[data-theme-pack="ubuntu-inspired"] .tmy-linux-clock {
    width: 42px !important;
    font-size: 10px !important;
    color: #fff !important;
    background: rgba(0,0,0,.30) !important;
}
body.interface-desktop[data-theme-pack="ubuntu-inspired"] .main-content {
    padding-left: clamp(96px, 8vw, 132px) !important;
}
body[data-theme-pack="linux-mint-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="fedora-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="debian-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="arch-inspired"] .tmy-linux-panel-btn,
body[data-theme-pack="kali-inspired"] .tmy-linux-panel-btn {
    color: #fff !important;
    background: rgba(0,0,0,.34) !important;
    border-color: rgba(255,255,255,.24) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.78) !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    .tmy-start-menu {
        left: 12px !important;
        bottom: 76px !important;
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 92px) !important;
    }
    .tmy-theme-category-grid,
    .tmy-theme-pack-grid {
        grid-template-columns: repeat(4, 68px) !important;
        gap: 11px 10px !important;
    }
    .tmy-theme-category-card,
    .tmy-theme-pack-card { width: 68px !important; }
    .tmy-theme-category-card span,
    .tmy-theme-pack-card .theme-pack-preview {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
}

/* === External wallpaper overrides pack === */
body[data-wallpaper="inspired-stars"],
body[data-wallpaper="windows-xp-bliss"],
body[data-wallpaper="windows-vista-glass"],
body[data-wallpaper="windows-98-classic"],
body[data-wallpaper="windows-11-bloom"],
body[data-wallpaper="aero-glass"],
body[data-wallpaper="macos-aqua"],
body[data-wallpaper="macos-big-sur"],
body[data-wallpaper="macos-sonoma"],
body[data-wallpaper="macos-dark-glass"],
body[data-wallpaper="macos-classic"],
body[data-wallpaper="ubuntu-inspired"],
body[data-wallpaper="linux-mint-inspired"],
body[data-wallpaper="fedora-inspired"],
body[data-wallpaper="debian-inspired"],
body[data-wallpaper="arch-inspired"],
body[data-wallpaper="kali-inspired"] {
  background-color: #0b1020;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body[data-wallpaper="inspired-stars"] {
  background-image:
    linear-gradient(135deg, rgba(255,246,251,.78) 0%, rgba(250,241,255,.66) 42%, rgba(237,244,255,.68) 100%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.36), transparent 22%),
    url('visual-packs/theme-backgrounds/taylor-inspired-bg-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="inspired-stars"] {
  background-image:
    linear-gradient(135deg, rgba(13,18,38,.72) 0%, rgba(38,18,53,.68) 46%, rgba(15,22,40,.72) 100%),
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.10), transparent 18%),
    url('visual-packs/theme-backgrounds/taylor-inspired-bg-v4666.webp') !important;
}

body[data-wallpaper="windows-11-bloom"] {
  background-image:
    linear-gradient(135deg, rgba(245,248,255,.60) 0%, rgba(248,250,255,.56) 100%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.32), transparent 20%),
    url('visual-packs/theme-backgrounds/windows-11-light-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="windows-11-bloom"] {
  background-image:
    linear-gradient(135deg, rgba(8,14,28,.58) 0%, rgba(12,18,34,.54) 100%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.10), transparent 18%),
    url('visual-packs/theme-backgrounds/windows-11-dark-v4666.webp') !important;
}

body[data-wallpaper="aero-glass"] {
  background-image:
    linear-gradient(135deg, rgba(236,245,255,.52) 0%, rgba(242,248,255,.40) 100%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.26), transparent 18%),
    url('visual-packs/theme-backgrounds/windows-vista-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="aero-glass"] {
  background-image:
    linear-gradient(135deg, rgba(7,17,30,.46) 0%, rgba(9,21,34,.42) 100%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.10), transparent 18%),
    url('visual-packs/theme-backgrounds/windows-vista-v4666.webp') !important;
}

body[data-wallpaper="windows-xp-bliss"] {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.10) 100%),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.36), transparent 14%),
    url('visual-packs/theme-backgrounds/windows-xp-v4666.webp') !important;
}

body[data-wallpaper="windows-vista-glass"] {
  background-image:
    linear-gradient(135deg, rgba(5,8,20,.38) 0%, rgba(16,26,48,.34) 52%, rgba(23,55,106,.34) 100%),
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.16), transparent 18%),
    url('visual-packs/theme-backgrounds/windows-vista-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="windows-vista-glass"] {
  background-image:
    linear-gradient(135deg, rgba(5,8,20,.50) 0%, rgba(16,26,48,.46) 52%, rgba(23,55,106,.44) 100%),
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.12), transparent 18%),
    url('visual-packs/theme-backgrounds/windows-vista-v4666.webp') !important;
}

body[data-wallpaper="windows-98-classic"] {
  background-image:
    linear-gradient(135deg, rgba(0,128,128,.18) 0%, rgba(0,111,115,.20) 52%, rgba(0,95,97,.22) 100%),
    url('visual-packs/theme-backgrounds/windows-98-v4666.webp') !important;
}

body[data-wallpaper="macos-aqua"] {
  background-image:
    linear-gradient(135deg, rgba(250,253,255,.40) 0%, rgba(235,247,255,.34) 100%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.42), transparent 16%),
    url('visual-packs/theme-backgrounds/macos-aqua-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="macos-aqua"] {
  background-image:
    linear-gradient(135deg, rgba(8,16,28,.44) 0%, rgba(10,22,38,.38) 100%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 16%),
    url('visual-packs/theme-backgrounds/macos-aqua-v4666.webp') !important;
}

body[data-wallpaper="macos-big-sur"] {
  background-image:
    linear-gradient(135deg, rgba(251,252,255,.34) 0%, rgba(248,248,255,.28) 100%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.24), transparent 22%),
    url('visual-packs/theme-backgrounds/macos-big-sur-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="macos-big-sur"] {
  background-image:
    linear-gradient(135deg, rgba(8,14,26,.38) 0%, rgba(16,20,34,.34) 100%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.10), transparent 22%),
    url('visual-packs/theme-backgrounds/macos-big-sur-v4666.webp') !important;
}

body[data-wallpaper="macos-sonoma"] {
  background-image:
    linear-gradient(135deg, rgba(252,249,255,.32) 0%, rgba(255,243,246,.30) 48%, rgba(239,246,255,.30) 100%),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.24), transparent 24%),
    url('visual-packs/theme-backgrounds/macos-sonoma-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="macos-sonoma"] {
  background-image:
    linear-gradient(135deg, rgba(10,14,28,.42) 0%, rgba(18,18,34,.36) 100%),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.10), transparent 24%),
    url('visual-packs/theme-backgrounds/macos-sonoma-v4666.webp') !important;
}

body[data-wallpaper="macos-dark-glass"],
body.dark-mode[data-wallpaper="macos-dark-glass"] {
  background-image:
    linear-gradient(135deg, rgba(3,8,18,.44) 0%, rgba(9,16,28,.40) 100%),
    radial-gradient(circle at 24% 20%, rgba(255,255,255,.10), transparent 22%),
    url('visual-packs/theme-backgrounds/macos-dark-glass-v4666.webp') !important;
}

body[data-wallpaper="macos-classic"] {
  background-image:
    linear-gradient(135deg, rgba(250,250,250,.24) 0%, rgba(229,231,235,.22) 100%),
    url('visual-packs/theme-backgrounds/macos-classic-v4666.webp') !important;
}

body[data-wallpaper="ubuntu-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(45,9,63,.26) 0%, rgba(91,31,115,.24) 52%, rgba(221,72,20,.22) 100%),
    radial-gradient(circle at 20% 18%, rgba(249,115,22,.18), transparent 26%),
    url('visual-packs/theme-backgrounds/ubuntu-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="ubuntu-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(10,14,26,.42) 0%, rgba(18,15,34,.34) 100%),
    radial-gradient(circle at 20% 18%, rgba(249,115,22,.12), transparent 26%),
    url('visual-packs/theme-backgrounds/ubuntu-v4666.webp') !important;
}

body[data-wallpaper="linux-mint-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(236,253,245,.30) 0%, rgba(220,252,231,.24) 52%, rgba(187,247,208,.24) 100%),
    url('visual-packs/theme-backgrounds/linux-mint-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="linux-mint-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(7,18,16,.42) 0%, rgba(10,30,26,.36) 100%),
    url('visual-packs/theme-backgrounds/linux-mint-v4666.webp') !important;
}

body[data-wallpaper="fedora-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(239,246,255,.26) 0%, rgba(219,234,254,.24) 52%, rgba(191,219,254,.22) 100%),
    url('visual-packs/theme-backgrounds/fedora-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="fedora-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(6,14,28,.46) 0%, rgba(11,22,43,.38) 100%),
    url('visual-packs/theme-backgrounds/fedora-v4666.webp') !important;
}

body[data-wallpaper="debian-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(255,241,242,.26) 0%, rgba(255,228,230,.22) 52%, rgba(254,205,211,.20) 100%),
    url('visual-packs/theme-backgrounds/debian-v4666.webp') !important;
}
body.dark-mode[data-wallpaper="debian-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(24,8,16,.54) 0%, rgba(52,12,28,.44) 100%),
    url('visual-packs/theme-backgrounds/debian-v4666.webp') !important;
}

body[data-wallpaper="arch-inspired"],
body.dark-mode[data-wallpaper="arch-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(2,6,23,.42) 0%, rgba(15,23,42,.40) 52%, rgba(8,47,73,.34) 100%),
    url('visual-packs/theme-backgrounds/arch-v4666.webp') !important;
}

body[data-wallpaper="kali-inspired"],
body.dark-mode[data-wallpaper="kali-inspired"] {
  background-image:
    linear-gradient(135deg, rgba(2,6,23,.46) 0%, rgba(11,18,32,.42) 52%, rgba(23,37,84,.34) 100%),
    url('visual-packs/theme-backgrounds/kali-v4666.webp') !important;
}

body[data-wallpaper="inspired-stars"] .tmy-bg-parallax::after,
body[data-wallpaper="windows-11-bloom"] .tmy-bg-parallax::after,
body[data-wallpaper="aero-glass"] .tmy-bg-parallax::after,
body[data-wallpaper="windows-xp-bliss"] .tmy-bg-parallax::after,
body[data-wallpaper="windows-vista-glass"] .tmy-bg-parallax::after,
body[data-wallpaper="windows-98-classic"] .tmy-bg-parallax::after,
body[data-wallpaper="macos-aqua"] .tmy-bg-parallax::after,
body[data-wallpaper="macos-big-sur"] .tmy-bg-parallax::after,
body[data-wallpaper="macos-sonoma"] .tmy-bg-parallax::after,
body[data-wallpaper="macos-dark-glass"] .tmy-bg-parallax::after,
body[data-wallpaper="macos-classic"] .tmy-bg-parallax::after,
body[data-wallpaper="ubuntu-inspired"] .tmy-bg-parallax::after,
body[data-wallpaper="linux-mint-inspired"] .tmy-bg-parallax::after,
body[data-wallpaper="fedora-inspired"] .tmy-bg-parallax::after,
body[data-wallpaper="debian-inspired"] .tmy-bg-parallax::after,
body[data-wallpaper="arch-inspired"] .tmy-bg-parallax::after,
body[data-wallpaper="kali-inspired"] .tmy-bg-parallax::after {
  content: "" !important;
  opacity: 0 !important;
}


/* === Windows 8 Metro Theme === */
body[data-theme-pack="windows-8"] {
    --primary-color:#ffffff;
    --primary-light:#38bdf8;
    --secondary-color:#06b6d4;
    --accent-color:#f59e0b;
    --sidebar-start:#0b5f8f;
    --sidebar-middle:#0f7ab5;
    --sidebar-end:#18a2c4;
    --taskbar-bg: rgba(18,18,18,.98);
    --taskbar-border: rgba(255,255,255,.12);
    --glow-color: rgba(56,189,248,.26);
    --mesh-orb-a: rgba(0,185,255,.22);
    --mesh-orb-b: rgba(255,255,255,.10);
    --mesh-orb-c: rgba(255,196,0,.12);
}
body[data-theme-pack="windows-8"] .glass-panel,
body[data-theme-pack="windows-8"] .stat-card,
body[data-theme-pack="windows-8"] .tmy-start-menu,
body[data-theme-pack="windows-8"] .tmy-start-tiles button,
body[data-theme-pack="windows-8"] .tmy-start-action-grid button {
    border-radius: 10px;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}
body[data-theme-pack="windows-8"] .glass-panel,
body[data-theme-pack="windows-8"] .stat-card,
body[data-theme-pack="windows-8"] .tmy-start-menu {
    background: linear-gradient(180deg, rgba(8,54,82,.80), rgba(10,96,143,.72));
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
body.interface-desktop[data-theme-pack="windows-8"] .main-content { padding-bottom: 88px; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons {
    width: min(1080px, 100%);
    grid-template-columns: repeat(4, minmax(128px, 156px)) !important;
    gap: 18px !important;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button {
    width: 138px !important;
    min-height: auto !important;
    padding: 0 2px 8px !important;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button span {
    width: 106px;
    height: 106px;
    border-radius: 8px;
    border: 0;
    box-shadow: 0 16px 30px rgba(0,0,0,.18);
    color: #fff;
    background: linear-gradient(135deg, #00a2ed, #0078d7);
    animation: tmyMetroFloat 5.8s ease-in-out infinite;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(2n) span { background: linear-gradient(135deg, #00b7c3, #008a9e); }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(3n) span { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(4n) span { background: linear-gradient(135deg, #f59e0b, #d97706); }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button strong {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:hover span {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 38px rgba(0,0,0,.22), 0 0 0 2px rgba(255,255,255,.18) inset;
}
@keyframes tmyMetroFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar {
    left: 0;
    bottom: 0;
    transform: none;
    width: 100vw;
    min-height: 50px;
    padding: 6px 10px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(32,32,32,.98), rgba(18,18,18,.98));
    border-top: 1px solid rgba(255,255,255,.10);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -4px 18px rgba(0,0,0,.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-center,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-tray {
    gap: 8px;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    color: #f8fbff;
    box-shadow: none;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn:hover,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn.active {
    transform: translateY(-1px);
    background: rgba(0,120,215,.95);
    box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn.start-btn {
    width: 46px;
    font-size: 22px;
    background: #0078d7;
    border-color: rgba(255,255,255,.10);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn.start-btn:hover,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-btn.start-btn.active {
    background: #1491ff;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-clock {
    min-width: 82px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-menu {
    border-radius: 0 14px 0 0;
    background: linear-gradient(180deg, rgba(4,46,71,.96), rgba(8,78,118,.92));
    border-color: rgba(255,255,255,.14);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles button,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid button,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-category-card,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-card {
    border-radius: 8px;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: none;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-category-card span,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-card .theme-pack-preview {
    border-radius: 6px;
}
body.interface-desktop[data-theme-pack="windows-8"] .desktop-widget {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6,54,81,.78), rgba(0,123,193,.52));
}

body[data-wallpaper="windows-8-metro"] {
  background-image:
    linear-gradient(135deg, rgba(5,22,36,.22) 0%, rgba(7,64,98,.18) 52%, rgba(0,120,215,.12) 100%),
    url('visual-packs/theme-backgrounds/windows-8-v4666.webp') !important;
  background-color: #0b6aa6;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}
body.dark-mode[data-wallpaper="windows-8-metro"] {
  background-image:
    linear-gradient(135deg, rgba(3,10,18,.52) 0%, rgba(3,25,42,.46) 52%, rgba(0,70,130,.36) 100%),
    url('visual-packs/theme-backgrounds/windows-8-v4666.webp') !important;
}
body[data-wallpaper="windows-8-metro"] .tmy-bg-parallax::after { content: "" !important; opacity: 0 !important; }


/* === Responsive wallpaper hotfix (viewport-adaptive backgrounds) === */
body[data-wallpaper] .tmy-bg-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--theme-wallpaper-overlay, none), var(--theme-wallpaper-image, none);
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: var(--theme-wallpaper-position, center center) !important;
    background-attachment: scroll !important;
    transform: translateZ(0);
    will-change: transform;
}

.tmy-bg-orb,
.tmy-bg-grid,
body[data-wallpaper] .tmy-bg-parallax::after {
    z-index: 1;
}

body[data-wallpaper="inspired-stars"],
body[data-wallpaper="windows-xp-bliss"],
body[data-wallpaper="windows-vista-glass"],
body[data-wallpaper="windows-98-classic"],
body[data-wallpaper="windows-11-bloom"],
body[data-wallpaper="aero-glass"],
body[data-wallpaper="macos-aqua"],
body[data-wallpaper="macos-big-sur"],
body[data-wallpaper="macos-sonoma"],
body[data-wallpaper="macos-dark-glass"],
body[data-wallpaper="macos-classic"],
body[data-wallpaper="ubuntu-inspired"],
body[data-wallpaper="linux-mint-inspired"],
body[data-wallpaper="fedora-inspired"],
body[data-wallpaper="debian-inspired"],
body[data-wallpaper="arch-inspired"],
body[data-wallpaper="kali-inspired"],
body[data-wallpaper="windows-8-metro"] {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
}

body[data-wallpaper="inspired-stars"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(255,246,251,.78) 0%, rgba(250,241,255,.66) 42%, rgba(237,244,255,.68) 100%), radial-gradient(circle at 18% 18%, rgba(255,255,255,.36), transparent 22%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/taylor-inspired-bg-v4666.webp');
    --theme-wallpaper-position: 72% center;
}
body.dark-mode[data-wallpaper="inspired-stars"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(13,18,38,.72) 0%, rgba(38,18,53,.68) 46%, rgba(15,22,40,.72) 100%), radial-gradient(circle at 16% 18%, rgba(255,255,255,.10), transparent 18%);
}

body[data-wallpaper="windows-11-bloom"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(245,248,255,.60) 0%, rgba(248,250,255,.56) 100%), radial-gradient(circle at 20% 18%, rgba(255,255,255,.32), transparent 20%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-11-light-v4666.webp');
}
body.dark-mode[data-wallpaper="windows-11-bloom"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(8,14,28,.58) 0%, rgba(12,18,34,.54) 100%), radial-gradient(circle at 20% 18%, rgba(255,255,255,.10), transparent 18%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-11-dark-v4666.webp');
}

body[data-wallpaper="aero-glass"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(236,245,255,.52) 0%, rgba(242,248,255,.40) 100%), radial-gradient(circle at 18% 18%, rgba(255,255,255,.26), transparent 18%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-vista-v4666.webp');
}
body.dark-mode[data-wallpaper="aero-glass"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(7,17,30,.46) 0%, rgba(9,21,34,.42) 100%), radial-gradient(circle at 18% 18%, rgba(255,255,255,.10), transparent 18%);
}

body[data-wallpaper="windows-xp-bliss"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.10) 100%), radial-gradient(circle at 72% 20%, rgba(255,255,255,.36), transparent 14%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-xp-v4666.webp');
}
body[data-wallpaper="windows-vista-glass"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(5,8,20,.38) 0%, rgba(16,26,48,.34) 52%, rgba(23,55,106,.34) 100%), radial-gradient(circle at 24% 18%, rgba(255,255,255,.16), transparent 18%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-vista-v4666.webp');
}
body.dark-mode[data-wallpaper="windows-vista-glass"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(5,8,20,.50) 0%, rgba(16,26,48,.46) 52%, rgba(23,55,106,.44) 100%), radial-gradient(circle at 24% 18%, rgba(255,255,255,.12), transparent 18%);
}
body[data-wallpaper="windows-98-classic"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(0,128,128,.18) 0%, rgba(0,111,115,.20) 52%, rgba(0,95,97,.22) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-98-v4666.webp');
}

body[data-wallpaper="macos-aqua"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(250,253,255,.40) 0%, rgba(235,247,255,.34) 100%), radial-gradient(circle at 30% 20%, rgba(255,255,255,.42), transparent 16%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/macos-aqua-v4666.webp');
}
body.dark-mode[data-wallpaper="macos-aqua"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(8,16,28,.44) 0%, rgba(10,22,38,.38) 100%), radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 16%);
}
body[data-wallpaper="macos-big-sur"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(251,252,255,.34) 0%, rgba(248,248,255,.28) 100%), radial-gradient(circle at 20% 18%, rgba(255,255,255,.24), transparent 22%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/macos-big-sur-v4666.webp');
}
body.dark-mode[data-wallpaper="macos-big-sur"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(8,14,26,.38) 0%, rgba(16,20,34,.34) 100%), radial-gradient(circle at 20% 18%, rgba(255,255,255,.10), transparent 22%);
}
body[data-wallpaper="macos-sonoma"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(252,249,255,.32) 0%, rgba(255,243,246,.30) 48%, rgba(239,246,255,.30) 100%), radial-gradient(circle at 22% 20%, rgba(255,255,255,.24), transparent 24%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/macos-sonoma-v4666.webp');
}
body.dark-mode[data-wallpaper="macos-sonoma"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(10,14,28,.42) 0%, rgba(18,18,34,.36) 100%), radial-gradient(circle at 22% 20%, rgba(255,255,255,.10), transparent 24%);
}
body[data-wallpaper="macos-dark-glass"],
body.dark-mode[data-wallpaper="macos-dark-glass"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(3,8,18,.44) 0%, rgba(9,16,28,.40) 100%), radial-gradient(circle at 24% 20%, rgba(255,255,255,.10), transparent 22%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/macos-dark-glass-v4666.webp');
}
body[data-wallpaper="macos-classic"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(250,250,250,.24) 0%, rgba(229,231,235,.22) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/macos-classic-v4666.webp');
}

body[data-wallpaper="ubuntu-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(45,9,63,.26) 0%, rgba(91,31,115,.24) 52%, rgba(221,72,20,.22) 100%), radial-gradient(circle at 20% 18%, rgba(249,115,22,.18), transparent 26%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/ubuntu-v4666.webp');
}
body.dark-mode[data-wallpaper="ubuntu-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(10,14,26,.42) 0%, rgba(18,15,34,.34) 100%), radial-gradient(circle at 20% 18%, rgba(249,115,22,.12), transparent 26%);
}
body[data-wallpaper="linux-mint-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(236,253,245,.30) 0%, rgba(220,252,231,.24) 52%, rgba(187,247,208,.24) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/linux-mint-v4666.webp');
}
body.dark-mode[data-wallpaper="linux-mint-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(7,18,16,.42) 0%, rgba(10,30,26,.36) 100%);
}
body[data-wallpaper="fedora-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(239,246,255,.26) 0%, rgba(219,234,254,.24) 52%, rgba(191,219,254,.22) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/fedora-v4666.webp');
}
body.dark-mode[data-wallpaper="fedora-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(6,14,28,.46) 0%, rgba(11,22,43,.38) 100%);
}
body[data-wallpaper="debian-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(255,241,242,.26) 0%, rgba(255,228,230,.22) 52%, rgba(254,205,211,.20) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/debian-v4666.webp');
}
body.dark-mode[data-wallpaper="debian-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(24,8,16,.54) 0%, rgba(52,12,28,.44) 100%);
}
body[data-wallpaper="arch-inspired"],
body.dark-mode[data-wallpaper="arch-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(2,6,23,.42) 0%, rgba(15,23,42,.40) 52%, rgba(8,47,73,.34) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/arch-v4666.webp');
}
body[data-wallpaper="kali-inspired"],
body.dark-mode[data-wallpaper="kali-inspired"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(2,6,23,.46) 0%, rgba(11,18,32,.42) 52%, rgba(23,37,84,.34) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/kali-v4666.webp');
}
body[data-wallpaper="windows-8-metro"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(5,22,36,.22) 0%, rgba(7,64,98,.18) 52%, rgba(0,120,215,.12) 100%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/windows-8-v4666.webp');
}
body.dark-mode[data-wallpaper="windows-8-metro"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(3,10,18,.52) 0%, rgba(3,25,42,.46) 52%, rgba(0,70,130,.36) 100%);
}

@media (max-width: 900px), (orientation: portrait) {
    body[data-wallpaper] .tmy-bg-parallax::before {
        background-position: var(--theme-wallpaper-position-mobile, var(--theme-wallpaper-position, center center)) !important;
    }
    body[data-wallpaper="inspired-stars"] {
        --theme-wallpaper-position-mobile: 78% center;
    }
}


/* === TMY HUB 4.6.6.5 seasonal wallpapers + Metro polish === */
body[data-wallpaper="spring-flowers"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(255,248,253,.38) 0%, rgba(245,238,255,.30) 48%, rgba(239,247,255,.26) 100%), radial-gradient(circle at 22% 18%, rgba(255,255,255,.28), transparent 24%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/spring-v4666.webp');
    --theme-wallpaper-position: center center;
    --theme-wallpaper-position-mobile: 56% center;
}
body[data-wallpaper="summer-popsicle"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(250,255,255,.26) 0%, rgba(240,255,249,.22) 52%, rgba(255,250,232,.18) 100%), radial-gradient(circle at 18% 16%, rgba(255,255,255,.24), transparent 22%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/summer-v4666.webp');
    --theme-wallpaper-position: center center;
    --theme-wallpaper-position-mobile: 62% center;
}
body[data-wallpaper="autumn-leaves"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(255,249,240,.28) 0%, rgba(255,237,213,.20) 44%, rgba(251,191,36,.12) 100%), radial-gradient(circle at 18% 16%, rgba(255,255,255,.22), transparent 20%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/autumn-v4666.webp');
    --theme-wallpaper-position: center center;
    --theme-wallpaper-position-mobile: 64% center;
}
body[data-wallpaper="winter-snowfall"] {
    --theme-wallpaper-overlay: linear-gradient(135deg, rgba(244,248,255,.24) 0%, rgba(231,241,255,.18) 48%, rgba(191,219,254,.14) 100%), radial-gradient(circle at 82% 12%, rgba(255,244,214,.20), transparent 18%);
    --theme-wallpaper-image: url('visual-packs/theme-backgrounds/winter-v4666.webp');
    --theme-wallpaper-position: center center;
    --theme-wallpaper-position-mobile: 70% center;
}
body[data-wallpaper="spring-flowers"] .tmy-bg-parallax::after,
body[data-wallpaper="summer-popsicle"] .tmy-bg-parallax::after,
body[data-wallpaper="autumn-leaves"] .tmy-bg-parallax::after,
body[data-wallpaper="winter-snowfall"] .tmy-bg-parallax::after {
    content: "" !important;
    opacity: 0 !important;
}

/* Fine tuning subject positioning for viewport adaptation */
body[data-wallpaper="windows-xp-bliss"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 64% center; }
body[data-wallpaper="windows-vista-glass"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 52% center; }
body[data-wallpaper="windows-98-classic"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: center center; }
body[data-wallpaper="aero-glass"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 52% center; }
body[data-wallpaper="macos-aqua"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 56% center; }
body[data-wallpaper="macos-big-sur"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 54% center; }
body[data-wallpaper="macos-sonoma"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 48% center; }
body[data-wallpaper="macos-dark-glass"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 52% center; }
body[data-wallpaper="macos-classic"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: center center; }
body[data-wallpaper="ubuntu-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 58% center; }
body[data-wallpaper="linux-mint-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 54% center; }
body[data-wallpaper="fedora-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 56% center; }
body[data-wallpaper="debian-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 58% center; }
body[data-wallpaper="arch-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 56% center; }
body[data-wallpaper="kali-inspired"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 54% center; }
body[data-wallpaper="windows-11-bloom"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: 60% center; }
body[data-wallpaper="windows-8-metro"] { --theme-wallpaper-position: center center; --theme-wallpaper-position-mobile: center center; }

/* Metro redesign */
body[data-theme-pack="windows-8"] .tmy-desktop-hero {
    max-width: 940px;
    border-radius: 0;
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(0,104,183,.90), rgba(13,76,132,.82));
    box-shadow: 0 26px 52px rgba(0,0,0,.22);
}
body[data-theme-pack="windows-8"] .tmy-desktop-widget-icon {
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons {
    width: min(920px, 100%);
    grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
    grid-auto-rows: 100px;
    gap: 14px !important;
    justify-content: center;
    align-items: stretch;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button {
    width: 100% !important;
    height: 100% !important;
    min-height: 100px !important;
    padding: 14px !important;
    border-radius: 2px !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.18) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button::after {
    content: "";
    position: absolute;
    inset: auto -10% -42% auto;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button span {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    animation: none !important;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button strong {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    max-width: none;
    color: #fff;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:hover {
    transform: scale(1.02) !important;
    filter: brightness(1.06);
    box-shadow: 0 18px 36px rgba(0,0,0,.22) !important;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:hover span { transform: none !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(1) { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #0078d7, #00a4ef) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(2) { grid-row: span 1; background: linear-gradient(135deg, #e81123, #c50f1f) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(3) { grid-row: span 1; background: linear-gradient(135deg, #00b7c3, #008272) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(4) { grid-column: span 2; background: linear-gradient(135deg, #7c3aed, #5b21b6) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(5) { grid-column: span 2; background: linear-gradient(135deg, #ff8c00, #f7630c) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(6) { background: linear-gradient(135deg, #2d7d9a, #1b5f75) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(7) { background: linear-gradient(135deg, #6b69d6, #4b48c4) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(8) { background: linear-gradient(135deg, #107c10, #0f6c0f) !important; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar {
    background: linear-gradient(180deg, rgba(30,30,30,.98), rgba(18,18,18,.98));
    min-height: 54px;
    padding: 7px 12px;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-w11-taskbar-center { justify-content: flex-start; }
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-menu {
    width: min(1040px, calc(100vw - 24px));
    max-width: 1040px;
    border-radius: 0;
    left: 12px;
    bottom: 58px;
    transform: none;
    background: linear-gradient(180deg, rgba(2,44,70,.98), rgba(8,83,123,.96));
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-pack-grid,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-family-grid,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles button,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid button,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-category-card,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-card {
    min-height: 96px;
    border-radius: 2px;
    border: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
    box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles button:hover,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid button:hover,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-category-card:hover,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-card:hover {
    transform: scale(1.02);
}
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles button span,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid button span,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-category-card span,
body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-card .theme-pack-preview {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
@media (max-width: 980px) {
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-hero {
        max-width: 100%;
        border-radius: 16px;
    }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons {
        grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
        grid-auto-rows: 92px;
        width: min(520px, 100%);
    }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(1),
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(4),
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button:nth-child(5) { grid-column: span 2; }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-menu {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        bottom: 60px;
    }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-tiles,
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-action-grid,
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-start-pack-grid,
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-family-grid,
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-theme-pack-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 640px) {
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons {
        grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
        grid-auto-rows: 84px;
        gap: 10px !important;
    }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button {
        min-height: 84px !important;
        padding: 12px !important;
    }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button strong { font-size: 12px; }
    body.interface-desktop[data-theme-pack="windows-8"] .tmy-desktop-icons button span { font-size: 24px; }
}


/* === Optimized wallpaper asset rules 4.6.6.6 === */
body[data-wallpaper] .tmy-bg-parallax::before {
    image-rendering: auto;
    backface-visibility: hidden;
}
body[data-wallpaper] .tmy-bg-orb {
    opacity: .48;
}
body.motion-reduced[data-wallpaper] .tmy-bg-orb {
    animation: none !important;
}

/* === HUB Tell Me You Final Edition*/
body.tmy-desktop-beta02 .btn-logout {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
body.tmy-desktop-beta02 .tmy-light-toggle {
    width: auto;
    min-width: 58px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}
body.tmy-desktop-beta02 .tmy-light-toggle.is-active,
body.tmy-light-performance .tmy-light-toggle {
    background: linear-gradient(135deg, #fef3c7, #dbeafe) !important;
    color: #0f4774 !important;
    border-color: rgba(15,71,116,.18) !important;
}
#tmy-desktop-tools {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 118;
    display: none;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15,23,42,.58);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 40px rgba(0,0,0,.20);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
body.interface-desktop #tmy-desktop-tools { display: flex; }
body.interface-desktop[data-theme-pack^="windows-"] #tmy-desktop-tools,
body.interface-desktop[data-theme-pack^="macos-"] #tmy-desktop-tools,
body.interface-desktop[data-theme-pack$="inspired"] #tmy-desktop-tools { bottom: 86px; }
#tmy-desktop-tools button {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font: 800 11px Poppins, system-ui, sans-serif;
    cursor: pointer;
}
#tmy-desktop-tools button:hover { background: rgba(255,255,255,.22); }
#tmy-desktop-beta-toast {
    position: fixed;
    right: 16px;
    bottom: 132px;
    z-index: 160;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px 13px;
    border-radius: 16px;
    background: rgba(15,23,42,.86);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
    font: 700 12px Poppins, system-ui, sans-serif;
}
#tmy-desktop-beta-toast.is-visible { opacity: 1; transform: translateY(0); }
#tmy-desktop-beta-toast.is-error { background: rgba(127,29,29,.92); }
#tmy-closing-backup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: rgba(2,6,23,.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
#tmy-closing-backup-overlay.is-visible { opacity: 1; pointer-events: auto; }
#tmy-closing-backup-overlay > div {
    width: min(420px, calc(100vw - 32px));
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,246,255,.90));
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
    text-align: center;
}
#tmy-closing-backup-overlay strong { display:block; color:#0f4774; font-size: 18px; margin-bottom: 6px; }
#tmy-closing-backup-overlay span { display:block; color:#41566f; font-size: 13px; line-height: 1.45; }
#tmy-desktop-utility-note {
    position: fixed;
    right: 16px;
    top: 86px;
    z-index: 150;
    width: min(380px, calc(100vw - 32px));
    border-radius: 18px;
    padding: 14px 42px 14px 14px;
    background: rgba(15,23,42,.90);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
#tmy-desktop-utility-note.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#tmy-desktop-utility-note button { position:absolute; right:10px; top:8px; width:26px; height:26px; border-radius:50%; border:0; cursor:pointer; }
#tmy-desktop-utility-note p { margin:0; font-size:12px; line-height:1.45; }

/* Authoritative wallpaper rendering: body fallback + fixed layer */
body[data-wallpaper="inspired-stars"],
body[data-wallpaper="windows-xp-bliss"],
body[data-wallpaper="windows-vista-glass"],
body[data-wallpaper="windows-98-classic"],
body[data-wallpaper="windows-11-bloom"],
body[data-wallpaper="aero-glass"],
body[data-wallpaper="macos-aqua"],
body[data-wallpaper="macos-big-sur"],
body[data-wallpaper="macos-sonoma"],
body[data-wallpaper="macos-dark-glass"],
body[data-wallpaper="macos-classic"],
body[data-wallpaper="ubuntu-inspired"],
body[data-wallpaper="linux-mint-inspired"],
body[data-wallpaper="fedora-inspired"],
body[data-wallpaper="debian-inspired"],
body[data-wallpaper="arch-inspired"],
body[data-wallpaper="kali-inspired"],
body[data-wallpaper="windows-8-metro"],
body[data-wallpaper="spring-flowers"],
body[data-wallpaper="summer-popsicle"],
body[data-wallpaper="autumn-leaves"],
body[data-wallpaper="winter-snowfall"] {
    background-image: var(--theme-wallpaper-overlay, linear-gradient(135deg, rgba(247,251,255,.65), rgba(255,244,251,.55))), var(--theme-wallpaper-image, none) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: var(--theme-wallpaper-position, center center) !important;
    background-attachment: fixed !important;
}
body[data-wallpaper="inspired-stars"] .tmy-bg-parallax::before,
body[data-wallpaper="windows-xp-bliss"] .tmy-bg-parallax::before,
body[data-wallpaper="windows-vista-glass"] .tmy-bg-parallax::before,
body[data-wallpaper="windows-98-classic"] .tmy-bg-parallax::before,
body[data-wallpaper="windows-11-bloom"] .tmy-bg-parallax::before,
body[data-wallpaper="aero-glass"] .tmy-bg-parallax::before,
body[data-wallpaper="macos-aqua"] .tmy-bg-parallax::before,
body[data-wallpaper="macos-big-sur"] .tmy-bg-parallax::before,
body[data-wallpaper="macos-sonoma"] .tmy-bg-parallax::before,
body[data-wallpaper="macos-dark-glass"] .tmy-bg-parallax::before,
body[data-wallpaper="macos-classic"] .tmy-bg-parallax::before,
body[data-wallpaper="ubuntu-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="linux-mint-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="fedora-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="debian-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="arch-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="kali-inspired"] .tmy-bg-parallax::before,
body[data-wallpaper="windows-8-metro"] .tmy-bg-parallax::before,
body[data-wallpaper="spring-flowers"] .tmy-bg-parallax::before,
body[data-wallpaper="summer-popsicle"] .tmy-bg-parallax::before,
body[data-wallpaper="autumn-leaves"] .tmy-bg-parallax::before,
body[data-wallpaper="winter-snowfall"] .tmy-bg-parallax::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1 !important;
    background-image: var(--theme-wallpaper-overlay, linear-gradient(135deg, rgba(247,251,255,.65), rgba(255,244,251,.55))), var(--theme-wallpaper-image, none) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: var(--theme-wallpaper-position, center center) !important;
    background-attachment: scroll !important;
}
@media (max-width: 900px), (orientation: portrait) {
    body[data-wallpaper="inspired-stars"],
    body[data-wallpaper="windows-xp-bliss"],
    body[data-wallpaper="windows-vista-glass"],
    body[data-wallpaper="windows-98-classic"],
    body[data-wallpaper="windows-11-bloom"],
    body[data-wallpaper="aero-glass"],
    body[data-wallpaper="macos-aqua"],
    body[data-wallpaper="macos-big-sur"],
    body[data-wallpaper="macos-sonoma"],
    body[data-wallpaper="macos-dark-glass"],
    body[data-wallpaper="macos-classic"],
    body[data-wallpaper="ubuntu-inspired"],
    body[data-wallpaper="linux-mint-inspired"],
    body[data-wallpaper="fedora-inspired"],
    body[data-wallpaper="debian-inspired"],
    body[data-wallpaper="arch-inspired"],
    body[data-wallpaper="kali-inspired"],
    body[data-wallpaper="windows-8-metro"],
    body[data-wallpaper="spring-flowers"],
    body[data-wallpaper="summer-popsicle"],
    body[data-wallpaper="autumn-leaves"],
    body[data-wallpaper="winter-snowfall"] {
        background-position: var(--theme-wallpaper-position-mobile, var(--theme-wallpaper-position, center center)) !important;
    }
    body[data-wallpaper] .tmy-bg-parallax::before {
        background-position: var(--theme-wallpaper-position-mobile, var(--theme-wallpaper-position, center center)) !important;
    }
}

/* Optional Light performance mode */
body.tmy-light-performance *,
body.tmy-light-performance *::before,
body.tmy-light-performance *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .08s !important;
    scroll-behavior: auto !important;
}
body.tmy-light-performance .tmy-bg-orb,
body.tmy-light-performance .tmy-bg-grid,
body.tmy-light-performance .desktop-smart-tip,
body.tmy-light-performance .tmy-sakura-layer,
body.tmy-light-performance .cursor-trail,
body.tmy-light-performance [class*="particle"],
body.tmy-light-performance [class*="sparkle"] {
    display: none !important;
}
body.tmy-light-performance .glass-panel,
body.tmy-light-performance .stat-card,
body.tmy-light-performance .modal-content,
body.tmy-light-performance .tmy-start-menu,
body.tmy-light-performance .tmy-w11-taskbar,
body.tmy-light-performance .tmy-macos-dock,
body.tmy-light-performance .tmy-linux-panel,
body.tmy-light-performance .sidebar,
body.tmy-light-performance .tmy-desktop-icons button span,
body.tmy-light-performance .tmy-start-tiles button,
body.tmy-light-performance .tmy-start-action-grid button,
body.tmy-light-performance .tmy-theme-category-card,
body.tmy-light-performance .tmy-theme-pack-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
}
body.tmy-light-performance .tmy-bg-parallax::before {
    filter: none !important;
}
body.tmy-light-performance.interface-desktop .tmy-desktop-icons button span {
    animation: none !important;
}
body.tmy-light-performance .main-content,
body.tmy-light-performance .content-section {
    transform: none !important;
}


/* === HUB Tell Me You Final Edition*/
#tmy-desktop-tools { display:none !important; }
.tmy-desktop-start-tools {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent);
}
.tmy-desktop-start-tools-note {
    margin: 2px 0 12px;
    font-size: 11px;
    line-height: 1.45;
    color: color-mix(in srgb, var(--primary-color) 72%, #64748b);
}
.tmy-start-action-grid-desktop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tmy-start-action-grid-desktop button small {
    display:block;
    margin-top:4px;
    font-size:10px;
    font-weight:600;
    color: color-mix(in srgb, var(--primary-color) 64%, #64748b);
}
.tmy-desktop-config-card {
    grid-column: 1 / -1;
}
.tmy-desktop-config-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}
.tmy-desktop-config-actions .btn-secondary {
    min-width: 150px;
}
body.interface-desktop .global-actions .tmy-light-toggle {
    display:none;
}
body.tmy-desktop-beta02 .main-content,
body.tmy-desktop-beta02 .content-section,
body.tmy-desktop-beta02 .glass-panel,
body.tmy-desktop-beta02 .sidebar,
body.tmy-desktop-beta02 .tmy-start-menu,
body.tmy-desktop-beta02 .dashboard-grid,
body.tmy-desktop-beta02 .stats-grid {
    contain: layout paint style;
}
@media (max-width: 900px) {
    .tmy-start-action-grid-desktop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tmy-desktop-config-actions .btn-secondary {
        min-width: calc(50% - 5px);
    }
}


/* === HUB Tell Me You Final Edition*/
#modal-editar-aluno.is-open,
#modal-editar-aluno.modal-stack-top {
    z-index: 22000 !important;
}
#modal-editar-aluno.modal-stack-top .modal-content {
    position: relative;
    z-index: 22001 !important;
}
body.tmy-window-inactive *,
body.tmy-window-inactive *::before,
body.tmy-window-inactive *::after {
    animation-play-state: paused !important;
}
body.tmy-desktop-beta02 .modal,
body.tmy-desktop-beta02 .profile-content,
body.tmy-desktop-beta02 .profile-panel,
body.tmy-desktop-beta02 .glass-table-container,
body.tmy-desktop-beta02 .tmy-start-menu,
body.tmy-desktop-beta02 .tmy-desktop-icons {
    contain: layout paint style;
}
body.tmy-old-mac-performance *,
body.tmy-old-mac-performance *::before,
body.tmy-old-mac-performance *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
}
body.tmy-old-mac-performance .tmy-bg-orb,
body.tmy-old-mac-performance .tmy-bg-grid,
body.tmy-old-mac-performance .desktop-smart-tip,
body.tmy-old-mac-performance .tmy-sakura-layer,
body.tmy-old-mac-performance .cursor-trail,
body.tmy-old-mac-performance [class*="particle"],
body.tmy-old-mac-performance [class*="sparkle"] {
    display: none !important;
}
body.tmy-old-mac-performance .glass-panel,
body.tmy-old-mac-performance .modal-content,
body.tmy-old-mac-performance .tmy-start-menu,
body.tmy-old-mac-performance .sidebar,
body.tmy-old-mac-performance .tmy-w11-taskbar,
body.tmy-old-mac-performance .tmy-macos-dock,
body.tmy-old-mac-performance .tmy-linux-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.tmy-start-action-grid-desktop button.is-active,
.tmy-desktop-config-actions button.is-active {
    outline: 2px solid color-mix(in srgb, var(--primary-light) 70%, white);
    outline-offset: 2px;
}

/* === HUB Tell Me You Final Edition*/
.tmy-db-foundation-card {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}
.tmy-db-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.tmy-db-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px;
}
.tmy-db-status-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.tmy-db-status-list div {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.62);
}
body.dark-mode .tmy-db-status-list div { background: rgba(15,23,42,.52); }
.tmy-db-status-list span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: .72;
    margin-bottom: 4px;
}
.tmy-db-status-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 15px;
}
.tmy-db-path {
    font-size: 11px;
    word-break: break-all;
}
.tmy-db-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.tmy-db-plan-card {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 28px rgba(15,71,116,.08);
}
body.dark-mode .tmy-db-plan-card { background: rgba(15,23,42,.56); }
.tmy-db-plan-card > strong {
    display:block;
    font-size: 18px;
    color: var(--primary-color);
}
.tmy-db-plan-card > small {
    display:block;
    margin: 2px 0 8px;
    font-weight: 700;
    color: var(--secondary-color);
}
.tmy-db-plan-card p {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 8px;
}
.tmy-db-plan-card ul {
    padding-left: 18px;
    margin: 8px 0;
    font-size: 12px;
}
.tmy-db-plan-card li small {
    display:block;
    opacity:.72;
}
.tmy-db-benefits {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top: 8px;
}
.tmy-db-benefits span {
    border-radius:999px;
    padding:4px 8px;
    background: color-mix(in srgb, var(--accent-color) 52%, white);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 800;
}
@media (max-width: 900px) {
    .tmy-db-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tmy-db-plan-grid { grid-template-columns: 1fr; }
}

/* === HUB Tell Me You Final Edition*/
.tmy-database-panel-grid {
    display: grid;
    gap: 18px;
}
.tmy-database-panel-intro {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 10%, white), color-mix(in srgb, var(--secondary-color) 8%, white));
}
body.dark-mode .tmy-database-panel-intro {
    background: linear-gradient(135deg, rgba(15,23,42,.78), rgba(30,41,59,.7));
}
#tmy-db-foundation-host .tmy-db-foundation-card {
    grid-column: 1 / -1;
}
.tmy-recovery-card {
    display: grid;
    gap: 14px;
}
.tmy-recovery-list {
    display: grid;
    gap: 10px;
}
.tmy-recovery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255,255,255,.68);
}
body.dark-mode .tmy-recovery-row {
    background: rgba(15,23,42,.48);
}
.tmy-recovery-row p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}
body.dark-mode .tmy-recovery-row p { color: #cbd5e1; }
.tmy-recovery-row .action-buttons {
    flex-wrap: nowrap;
}
@media (max-width: 760px) {
    .tmy-recovery-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* === HUB Tell Me You Final Edition*/
.tmy-cross-module-helper {
    margin-bottom: 18px;
}
.checklist-day-class {
    width: 100%;
    text-align: left;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.74);
    color: var(--text-light);
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.checklist-day-class:hover {
    transform: translateY(-1px);
    border-color: var(--primary-light);
    box-shadow: 0 14px 30px rgba(15,71,116,.12);
}
.checklist-day-class strong,
.checklist-day-class span {
    display: block;
}
.checklist-day-class span {
    margin-top: 4px;
    font-size: 12px;
    opacity: .82;
}
body.dark-mode .checklist-day-class {
    background: rgba(15,31,49,.7);
    color: var(--text-light);
}


/* === HUB Tell Me You Final Edition*/
body.tmy-desktop-beta109 .btn-whatsapp {
    will-change: auto;
}
body.tmy-desktop-beta109[data-whatsapp-mode="desktop-app"] .btn-whatsapp::before {
    content: "";
}

/* ========================================================
   HUB Tell Me You Final Edition
   Menu iniciar compacto + perfil Mac antigo
   ======================================================== */
body.interface-desktop .tmy-start-menu {
    width: min(500px, calc(100vw - 38px)) !important;
    max-height: min(82vh, 690px) !important;
    padding: 14px 16px 16px !important;
    border-radius: 24px !important;
}
body.interface-desktop .tmy-start-header {
    gap: 10px !important;
    margin-bottom: 12px !important;
}
body.interface-desktop .tmy-start-header img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    padding: 5px !important;
}
body.interface-desktop .tmy-start-header strong {
    font-size: 19px !important;
}
body.interface-desktop .tmy-start-header small {
    font-size: 12px !important;
}
body.interface-desktop .tmy-start-tiles {
    grid-template-columns: repeat(4, 88px) !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 12px 14px !important;
}
body.interface-desktop .tmy-start-tiles button {
    width: 88px !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 8px 6px !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 22px rgba(18,79,139,.12), inset 0 1px 0 rgba(255,255,255,.62) !important;
}
body.interface-desktop .tmy-start-tiles span {
    font-size: 23px !important;
    margin: 0 0 4px !important;
    line-height: 1 !important;
}
body.interface-desktop .tmy-start-tiles strong {
    font-size: 10.8px !important;
    line-height: 1.05 !important;
    max-width: 70px !important;
}
body.interface-desktop .tmy-start-actions {
    margin-top: 12px !important;
    padding-top: 10px !important;
}
body.interface-desktop .tmy-start-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
body.interface-desktop .tmy-start-action-grid button {
    min-height: 58px !important;
    padding: 8px 6px !important;
    border-radius: 16px !important;
}
body.interface-desktop .tmy-start-action-grid span {
    font-size: 18px !important;
    margin-bottom: 3px !important;
}
body.interface-desktop .tmy-start-action-grid strong {
    font-size: 10.5px !important;
    line-height: 1.08 !important;
}
body.interface-desktop .tmy-start-visual-packs {
    margin-top: 10px !important;
    padding-top: 6px !important;
}
body.interface-desktop .tmy-theme-library-head strong {
    font-size: 13px !important;
}
body.interface-desktop .tmy-theme-library-head small {
    font-size: 9.8px !important;
}
body.interface-desktop .tmy-theme-category-grid,
body.interface-desktop .tmy-theme-pack-grid {
    grid-template-columns: repeat(5, 74px) !important;
    gap: 10px 9px !important;
    justify-content: center !important;
}
body.interface-desktop .tmy-theme-category-card,
body.interface-desktop .tmy-theme-pack-card {
    width: 74px !important;
}
body.interface-desktop .tmy-theme-category-card span,
body.interface-desktop .tmy-theme-pack-card .theme-pack-preview {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
}
body.interface-desktop .tmy-theme-category-card strong,
body.interface-desktop .tmy-theme-pack-card strong {
    font-size: 9.5px !important;
    line-height: 1.05 !important;
}
body.interface-desktop .tmy-start-pack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
}
body.interface-desktop .tmy-start-pack-option {
    padding: 7px 5px !important;
    border-radius: 13px !important;
}
body.interface-desktop .tmy-start-pack-option span { font-size: 18px !important; }
body.interface-desktop .tmy-start-pack-option strong { font-size: 9.5px !important; }

body.performance-legacy-mac {
    --glass-blur: 9px;
    --shadow-premium: 0 12px 28px rgba(2, 8, 23, .22);
}
body.performance-legacy-mac .tmy-bg-parallax,
body.performance-legacy-mac .mouse-trail-particle,
body.performance-legacy-mac .desktop-inline-tip,
body.performance-legacy-mac #desktop-smart-tip,
body.performance-legacy-mac .live-glow,
body.performance-legacy-mac .floating-heart,
body.performance-legacy-mac .floating-star {
    display: none !important;
}
body.performance-legacy-mac .tmy-bg-orb {
    filter: none !important;
    opacity: .10 !important;
    animation: none !important;
    transform: none !important;
}
body.performance-legacy-mac *,
body.performance-legacy-mac *::before,
body.performance-legacy-mac *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
}
body.performance-legacy-mac .glass-panel,
body.performance-legacy-mac .stat-card,
body.performance-legacy-mac .tmy-start-menu,
body.performance-legacy-mac .tmy-start-button,
body.performance-legacy-mac .tmy-w11-taskbar,
body.performance-legacy-mac .tmy-macos-dock,
body.performance-legacy-mac .tmy-linux-panel,
body.performance-legacy-mac .modal-content,
body.performance-legacy-mac .profile-360-shell,
body.performance-legacy-mac .global-search-modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 12px 28px rgba(2, 8, 23, .20) !important;
}
body.performance-legacy-mac .tmy-desktop-icons span,
body.performance-legacy-mac .tmy-start-tiles span,
body.performance-legacy-mac .tmy-theme-pack-card,
body.performance-legacy-mac .tmy-theme-category-card,
body.performance-legacy-mac .mascot-img,
body.performance-legacy-mac .tmy-hero-motion {
    animation: none !important;
    transform: none !important;
}
body.performance-legacy-mac[data-wallpaper] {
    background-attachment: scroll !important;
}
body.performance-legacy-mac .content-section,
body.performance-legacy-mac .profile-360-shell,
body.performance-legacy-mac .modal-content {
    will-change: auto !important;
}
body.performance-legacy-mac .tmy-desktop-home {
    align-content: start !important;
    padding-top: 18px !important;
}
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons {
    gap: 14px 18px !important;
}
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button {
    width: 88px !important;
    height: 88px !important;
    min-height: 88px !important;
}
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons span {
    font-size: 21px !important;
}

@media (max-width: 1120px) {
    body.interface-desktop .tmy-start-menu {
        width: min(468px, calc(100vw - 28px)) !important;
    }
    body.interface-desktop .tmy-start-tiles {
        grid-template-columns: repeat(4, 82px) !important;
        gap: 10px 11px !important;
    }
    body.interface-desktop .tmy-start-tiles button {
        width: 82px !important;
        height: 82px !important;
        min-height: 82px !important;
    }
}
@media (max-width: 760px) {
    body.interface-desktop .tmy-start-tiles {
        grid-template-columns: repeat(3, 78px) !important;
    }
    body.interface-desktop .tmy-start-tiles button {
        width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
    }
    body.interface-desktop .tmy-start-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}



/* ========================================================
   HUB Tell Me You Final Edition
   Restaura SOMENTE os círculos da área de trabalho.
   O Menu Iniciar continua compacto pela Final Edition.
   ======================================================== */
body.interface-desktop #dashboard .tmy-desktop-home {
    align-content: start !important;
    gap: 18px !important;
    padding-top: 8px !important;
}
body.interface-desktop .tmy-desktop-icons,
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons {
    width: min(980px, 100%) !important;
    max-width: 980px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(112px, 132px)) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: 18px 26px !important;
    margin: 0 auto !important;
    padding: 8px 0 2px !important;
}
body.interface-desktop .tmy-desktop-icons button,
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button {
    width: 124px !important;
    min-width: 124px !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 4px 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow: visible !important;
    text-align: center !important;
    justify-self: center !important;
}
body.interface-desktop .tmy-desktop-icons button span,
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button span {
    width: 94px !important;
    height: 94px !important;
    min-width: 94px !important;
    min-height: 94px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: 3px solid color-mix(in srgb, var(--primary-light) 24%, white) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.85)) !important;
    box-shadow: 0 18px 36px rgba(18,79,139,.14), inset 0 1px 0 rgba(255,255,255,.92), 0 0 0 5px rgba(255,255,255,.45) !important;
}
body.dark-mode.interface-desktop .tmy-desktop-icons button span,
body.dark-mode.performance-legacy-mac.interface-desktop .tmy-desktop-icons button span {
    background: linear-gradient(180deg, rgba(17,31,51,.95), rgba(10,20,35,.88)) !important;
    border-color: color-mix(in srgb, var(--primary-light) 28%, rgba(255,255,255,.1)) !important;
    box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(255,255,255,.03) !important;
}
body.interface-desktop .tmy-desktop-icons button strong,
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button strong {
    display: block !important;
    width: 100% !important;
    max-width: 118px !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    line-height: 1.22 !important;
    text-align: center !important;
}
body.interface-desktop .tmy-desktop-icons button small,
body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button small {
    display: none !important;
}
body.interface-desktop .tmy-desktop-icons button:hover {
    transform: none !important;
}
body.interface-desktop .tmy-desktop-icons button:hover span {
    transform: translateY(-4px) scale(1.05) !important;
}
@media (max-width: 760px) {
    body.interface-desktop .tmy-desktop-icons,
    body.performance-legacy-mac.interface-desktop .tmy-desktop-icons {
        grid-template-columns: repeat(2, 112px) !important;
        gap: 14px 16px !important;
    }
    body.interface-desktop .tmy-desktop-icons button,
    body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button {
        width: 112px !important;
        min-width: 112px !important;
    }
    body.interface-desktop .tmy-desktop-icons button span,
    body.performance-legacy-mac.interface-desktop .tmy-desktop-icons button span {
        width: 86px !important;
        height: 86px !important;
        min-width: 86px !important;
        min-height: 86px !important;
        font-size: 25px !important;
    }
}


/* ========================================================
   HUB Tell Me You Final Edition
   Otimização específica para Modo Clássico em Mac Intel antigo.
   Preserva o Desktop restaurado da Final Edition e o Menu Iniciar compacto da 1.0.10.
   ======================================================== */
body.tmy-classic-performance:not(.interface-desktop) {
    background-attachment: scroll !important;
}
body.tmy-classic-performance:not(.interface-desktop) .tmy-bg-parallax::before,
body.tmy-classic-performance:not(.interface-desktop) .tmy-bg-parallax::after,
body.tmy-classic-performance:not(.interface-desktop) .content-wrapper::before,
body.tmy-classic-performance:not(.interface-desktop) .content-wrapper::after,
body.tmy-classic-performance:not(.interface-desktop) .tmy-bg-orb,
body.tmy-classic-performance:not(.interface-desktop) .tmy-bg-grid,
body.tmy-classic-performance:not(.interface-desktop) .desktop-inline-tip,
body.tmy-classic-performance:not(.interface-desktop) .desktop-smart-tip,
body.tmy-classic-performance:not(.interface-desktop) .mouse-trail-particle,
body.tmy-classic-performance:not(.interface-desktop) .floating-heart,
body.tmy-classic-performance:not(.interface-desktop) .floating-star,
body.tmy-classic-performance:not(.interface-desktop) .tmy-sakura-layer {
    display: none !important;
    animation: none !important;
}
body.tmy-classic-performance:not(.interface-desktop) .glass-panel,
body.tmy-classic-performance:not(.interface-desktop) .compact-panel,
body.tmy-classic-performance:not(.interface-desktop) .stat-card,
body.tmy-classic-performance:not(.interface-desktop) .profile-360-card,
body.tmy-classic-performance:not(.interface-desktop) .profile-360-hero,
body.tmy-classic-performance:not(.interface-desktop) .profile-360-kpi,
body.tmy-classic-performance:not(.interface-desktop) .config-setting-card,
body.tmy-classic-performance:not(.interface-desktop) .hub-health-card,
body.tmy-classic-performance:not(.interface-desktop) .backup-status-card,
body.tmy-classic-performance:not(.interface-desktop) .modal-content,
body.tmy-classic-performance:not(.interface-desktop) .global-search-modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 18px rgba(2, 8, 23, .14) !important;
    transform: none !important;
    will-change: auto !important;
}
body.tmy-classic-performance:not(.interface-desktop) .glass-panel,
body.tmy-classic-performance:not(.interface-desktop) .compact-panel,
body.tmy-classic-performance:not(.interface-desktop) .stat-card,
body.tmy-classic-performance:not(.interface-desktop) .profile-360-card,
body.tmy-classic-performance:not(.interface-desktop) .config-setting-card {
    content-visibility: auto;
    contain-intrinsic-size: 240px;
}
body.tmy-classic-performance:not(.interface-desktop) .content-section:not(.active) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
body.tmy-classic-performance:not(.interface-desktop) .content-section.active {
    contain: layout paint style;
}
body.tmy-classic-performance:not(.interface-desktop) .main-content,
body.tmy-classic-performance:not(.interface-desktop) .sidebar {
    contain: layout paint style;
}
body.tmy-classic-performance:not(.interface-desktop) .sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 8px 0 24px rgba(2,8,23,.10) !important;
}
body.tmy-classic-performance:not(.interface-desktop) .sidebar li,
body.tmy-classic-performance:not(.interface-desktop) button,
body.tmy-classic-performance:not(.interface-desktop) .btn-primary,
body.tmy-classic-performance:not(.interface-desktop) .btn-secondary,
body.tmy-classic-performance:not(.interface-desktop) .btn-whatsapp,
body.tmy-classic-performance:not(.interface-desktop) .btn-danger {
    transition-duration: .08s !important;
}
body.tmy-classic-performance:not(.interface-desktop) .sidebar li:hover,
body.tmy-classic-performance:not(.interface-desktop) .sidebar li.active,
body.tmy-classic-performance:not(.interface-desktop) .btn-primary:hover,
body.tmy-classic-performance:not(.interface-desktop) .btn-secondary:hover,
body.tmy-classic-performance:not(.interface-desktop) .btn-danger:hover,
body.tmy-classic-performance:not(.interface-desktop) .btn-whatsapp:hover {
    transform: none !important;
}
body.tmy-classic-performance:not(.interface-desktop) img,
body.tmy-classic-performance:not(.interface-desktop) video,
body.tmy-classic-performance:not(.interface-desktop) canvas {
    content-visibility: auto;
}
body.tmy-classic-performance:not(.interface-desktop) .profile-360-shell {
    animation: none !important;
}
body.tmy-classic-performance:not(.interface-desktop) .global-actions {
    contain: layout paint style;
}
body.tmy-classic-performance:not(.interface-desktop) .sticky-notes-panel,
body.tmy-classic-performance:not(.interface-desktop) .modal {
    will-change: auto !important;
}
body.tmy-classic-performance:not(.interface-desktop).dark-mode .glass-panel,
body.tmy-classic-performance:not(.interface-desktop).dark-mode .compact-panel,
body.tmy-classic-performance:not(.interface-desktop).dark-mode .stat-card,
body.tmy-classic-performance:not(.interface-desktop).dark-mode .profile-360-card,
body.tmy-classic-performance:not(.interface-desktop).dark-mode .config-setting-card,
body.tmy-classic-performance:not(.interface-desktop).dark-mode .modal-content {
    background: rgba(12, 23, 38, .94) !important;
    border-color: rgba(255,255,255,.10) !important;
}
body.tmy-classic-performance:not(.interface-desktop):not(.dark-mode) .glass-panel,
body.tmy-classic-performance:not(.interface-desktop):not(.dark-mode) .compact-panel,
body.tmy-classic-performance:not(.interface-desktop):not(.dark-mode) .stat-card,
body.tmy-classic-performance:not(.interface-desktop):not(.dark-mode) .config-setting-card,
body.tmy-classic-performance:not(.interface-desktop):not(.dark-mode) .modal-content {
    background: rgba(255, 255, 255, .94) !important;
}
body.tmy-classic-performance:not(.interface-desktop) .table-wrap,
body.tmy-classic-performance:not(.interface-desktop) .finance-table,
body.tmy-classic-performance:not(.interface-desktop) .report-preview,
body.tmy-classic-performance:not(.interface-desktop) .student-profile-area {
    contain: layout paint style;
}
body.tmy-classic-performance:not(.interface-desktop) .tmy-start-button,
body.tmy-classic-performance:not(.interface-desktop) .tmy-start-menu {
    display: none !important;
}

/* Guard rail: o polimento 1.0.12 nunca compacta os ícones do Desktop. */
body.tmy-desktop-beta112.interface-desktop .tmy-desktop-icons button span {
    flex: 0 0 auto !important;
}
body.tmy-desktop-beta112.interface-desktop.performance-legacy-mac .tmy-desktop-icons button,
body.tmy-desktop-beta112.interface-desktop.performance-legacy-mac .tmy-desktop-icons button span {
    transform-origin: center center !important;
}

/* Final Edition 1.1.7 — Windows 11/Mac/Linux, backup portátil, PDF local e desempenho equilibrado. */
.panel-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.emoji-picker {
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--primary-light) 22%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-light) 5%, var(--surface));
}
.emoji-picker > strong {
    display: block;
    margin-bottom: 9px;
    color: var(--primary-color);
    font-size: 12px;
}
.emoji-picker-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.emoji-picker-buttons button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--primary-light) 18%, transparent);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 4px 10px rgba(15,71,116,.07);
    font-size: 20px;
    cursor: pointer;
}
.emoji-picker-buttons button:hover,
.emoji-picker-buttons button:focus-visible {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}
body.performance-zorin-lite {
    --glass-blur: 11px;
    --shadow-premium: 0 12px 28px rgba(2, 8, 23, .18);
    background-attachment: scroll !important;
}
body.performance-zorin-lite .glass-panel,
body.performance-zorin-lite .stat-card,
body.performance-zorin-lite .tmy-start-menu,
body.performance-zorin-lite .tmy-start-button,
body.performance-zorin-lite .tmy-w11-taskbar,
body.performance-zorin-lite .tmy-macos-dock,
body.performance-zorin-lite .tmy-linux-panel,
body.performance-zorin-lite .modal-content,
body.performance-zorin-lite .profile-360-shell,
body.performance-zorin-lite .global-search-modal-content {
    backdrop-filter: blur(10px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    box-shadow: 0 11px 26px rgba(2, 8, 23, .16) !important;
}
body.performance-zorin-lite .tmy-bg-orb {
    filter: none !important;
    opacity: .22 !important;
    animation-duration: 52s !important;
}
body.performance-zorin-lite .tmy-bg-parallax::before,
body.performance-zorin-lite .tmy-bg-parallax::after {
    animation-duration: 55s !important;
}
body.performance-zorin-lite .content-section,
body.performance-zorin-lite .profile-360-shell,
body.performance-zorin-lite .modal-content,
body.performance-zorin-lite .tmy-desktop-icons span {
    will-change: auto !important;
}
body.performance-zorin-lite.interface-desktop .tmy-desktop-icons button span {
    filter: none !important;
    animation-duration: 12s !important;
}
