﻿:root{
  --bg:#0B0F14;--panel:rgba(255,255,255,.03);
  --text:#E6EAF0;--muted:#9AA4B2;
  --stroke:rgba(255,255,255,.09);--stroke2:rgba(255,255,255,.20);
  --accent:rgba(138,91,255,.95);--accent2:rgba(0,214,255,.95);
  --green:#4ADE80;--red:#F87171;--orange:#FB923C;--yellow:#FBBF24;
  --radius:18px;--radius2:14px;--nav-h:54px;
  --ht-surface:rgba(255,255,255,.018);
  --ht-surface-strong:rgba(255,255,255,.03);
  --ht-surface-hover:rgba(255,255,255,.05);
  --ht-border:rgba(255,255,255,.085);
  --ht-border-strong:rgba(255,255,255,.16);
  --ht-shadow:0 10px 22px rgba(2,8,23,.3);
  --ht-text-main:rgba(230,234,240,.94);
  --ht-text-secondary:rgba(191,201,216,.82);
  --ht-text-muted:rgba(154,164,178,.68);
  --ht-text-faint:rgba(154,164,178,.42);
  --ht-input-bg:#0d1421;
  --ht-input-bg-hover:#121a2b;
  --ht-input-border:rgba(255,255,255,.1);
  --ht-input-placeholder:rgba(154,164,178,.42);
  --ht-focus:rgba(138,91,255,.5);
  --ht-btn-bg:rgba(255,255,255,.04);
  --ht-btn-bg-hover:rgba(138,91,255,.2);
  --ht-btn-bg-active:rgba(138,91,255,.3);
  --ht-btn-border:rgba(255,255,255,.11);
  --ht-btn-text:rgba(170,180,194,.8);
  --ht-level-title:rgba(224,232,242,.9);
  --ht-chart-grid:rgba(255,255,255,.07);
  --ht-chart-axis:rgba(154,164,178,.5);
  --ht-chart-empty:rgba(154,164,178,.48);
  --ht-chart-line:rgba(138,91,255,.9);
  --ht-chart-dot:rgba(138,91,255,.95);
  --ht-chart-area-start:rgba(138,91,255,.34);
  --ht-chart-area-end:rgba(138,91,255,0);
  --ht-heat-empty:rgba(255,255,255,.045);
  --ht-heat-empty-today:rgba(138,91,255,.17);
  --ht-donut-track:rgba(255,255,255,.08);
  --ht-good-text:#4ADE80;
  --ht-good-bg:rgba(74,222,128,.12);
  --ht-good-border:rgba(74,222,128,.28);
  --ht-warn-text:#FBBF24;
  --ht-warn-bg:rgba(251,191,36,.12);
  --ht-warn-border:rgba(251,191,36,.28);
  --ht-bad-text:#F87171;
  --ht-bad-bg:rgba(248,113,113,.12);
  --ht-bad-border:rgba(248,113,113,.28);
  --ht-exceeded-text:rgba(203,213,225,.9);
  --ht-exceeded-bg:rgba(148,163,184,.15);
  --ht-exceeded-border:rgba(148,163,184,.32);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);padding-top:var(--nav-h)}
:root[data-theme='light']{
  --bg:#E8EDF3;--panel:rgba(0,0,0,.03);
  --text:#111827;--muted:#374151;
  --stroke:rgba(17,24,39,.15);--stroke2:rgba(17,24,39,.28);
  --accent:rgba(109,40,217,.95);--accent2:rgba(14,116,144,.95);
  --ht-surface:#FFFFFF;
  --ht-surface-strong:#FFFFFF;
  --ht-surface-hover:#F8FAFC;
  --ht-border:#E2E8F0;
  --ht-border-strong:#CBD5E1;
  --ht-shadow:0 8px 20px rgba(15,23,42,.07);
  --ht-text-main:#111827;
  --ht-text-secondary:#4B5563;
  --ht-text-muted:#6B7280;
  --ht-text-faint:#94A3B8;
  --ht-input-bg:#F9FAFB;
  --ht-input-bg-hover:#F3F4F6;
  --ht-input-border:#E2E8F0;
  --ht-input-placeholder:#9CA3AF;
  --ht-focus:rgba(109,40,217,.34);
  --ht-btn-bg:#F8FAFC;
  --ht-btn-bg-hover:#EEF2FF;
  --ht-btn-bg-active:#EDE9FE;
  --ht-btn-border:#E2E8F0;
  --ht-btn-text:#4B5563;
  --ht-level-title:#111827;
  --ht-chart-grid:#E2E8F0;
  --ht-chart-axis:#6B7280;
  --ht-chart-empty:#94A3B8;
  --ht-chart-line:#7C3AED;
  --ht-chart-dot:#6D28D9;
  --ht-chart-area-start:rgba(109,40,217,.22);
  --ht-chart-area-end:rgba(109,40,217,0);
  --ht-heat-empty:#EEF2F7;
  --ht-heat-empty-today:#DDD6FE;
  --ht-donut-track:#E5E7EB;
  --ht-good-text:#166534;
  --ht-good-bg:rgba(22,101,52,.08);
  --ht-good-border:rgba(22,101,52,.22);
  --ht-warn-text:#92400E;
  --ht-warn-bg:rgba(146,64,14,.08);
  --ht-warn-border:rgba(146,64,14,.22);
  --ht-bad-text:#B91C1C;
  --ht-bad-bg:rgba(185,28,28,.08);
  --ht-bad-border:rgba(185,28,28,.2);
  --ht-exceeded-text:#334155;
  --ht-exceeded-bg:rgba(148,163,184,.12);
  --ht-exceeded-border:rgba(148,163,184,.32);
}
:root[data-theme='light'] .nav{background:rgba(232,237,243,.96);border-bottom-color:rgba(17,24,39,.12)}
:root[data-theme='light'] .box,:root[data-theme='light'] .card{background:#fff;border-color:rgba(17,24,39,.1)}
:root[data-theme='light'] .homeTitleText{background:linear-gradient(135deg,#111827 40%,rgba(109,40,217,.7));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
:root[data-theme='light'] .navBtn{color:#334155}
:root[data-theme='light'] .navBtn:hover,:root[data-theme='light'] .navBtn.active{color:#0f172a}
:root[data-theme='light'] .navContext{color:#475569}
:root[data-theme='light'] .homeSideMenu{border-right-color:rgba(17,24,39,.12);border-bottom-color:rgba(17,24,39,.12)}
:root[data-theme='light'] .homeMenuItem.navBtn{color:#334155}
:root[data-theme='light'] .homeMenuItem.navBtn:hover{background:rgba(15,23,42,.06);color:#0f172a}
:root[data-theme='light'] .homeMenuItem.navBtn.active{background:rgba(15,23,42,.1);color:#0f172a}
:root[data-theme='light'] .homeMenuIcon{color:#64748b}
:root[data-theme='light'] .homeMenuItem.navBtn:hover .homeMenuIcon,
:root[data-theme='light'] .homeMenuItem.navBtn.active .homeMenuIcon{color:#0f172a}
:root[data-theme='light'] .navPomoPill{border-color:rgba(109,40,217,.26);background:linear-gradient(135deg,rgba(109,40,217,.12),rgba(14,165,233,.1));color:#4c1d95}
:root[data-theme='light'] .pomoNotice{background:linear-gradient(180deg,#ffffff,#f8fafc);border-color:rgba(109,40,217,.24);box-shadow:0 18px 34px rgba(15,23,42,.16)}
:root[data-theme='light'] .pomoNoticeTitle{color:#0f172a}
:root[data-theme='light'] .pomoNoticeBody{color:#475569}
:root[data-theme='light'] .pomoNoticeClose{border-color:rgba(17,24,39,.12);background:rgba(15,23,42,.04);color:#475569}
:root[data-theme='light'] .pomoNoticeClose:hover{color:#0f172a;border-color:rgba(109,40,217,.32)}
:root[data-theme='light'] .tabBtn{background:rgba(0,0,0,.04);border-color:rgba(17,24,39,.1);color:#374151}
:root[data-theme='light'] .tabBtn.active{background:rgba(109,40,217,.1);border-color:rgba(109,40,217,.4);color:#6D28D9}
:root[data-theme='light'] .calCell.inM{color:#374151}
:root[data-theme='light'] .calCell{background:rgba(0,0,0,.02)}
:root[data-theme='light'] .calCell:hover{background:rgba(0,0,0,.06)}
:root[data-theme='light'] .pendTask{color:#111827}
:root[data-theme='light'] .pendCheck{accent-color:#6D28D9}
:root[data-theme='light'] .bookTitle{color:#111827}
:root[data-theme='light'] .bookDesc{color:#374151}
:root[data-theme='light'] .bookAuthor{color:#6D28D9}
:root[data-theme='light'] .msgLoad{color:#374151}
:root[data-theme='light'] .teachStickyBar{background:linear-gradient(180deg,rgba(232,237,243,.96),rgba(232,237,243,.9));border-color:rgba(17,24,39,.12)}
:root[data-theme='light'] .teachCatBtn.active{background:rgba(109,40,217,.08);border-color:rgba(109,40,217,.26);color:#5b21b6}
:root[data-theme='light'] .teachActionIcon,:root[data-theme='light'] .teachActionBtn,:root[data-theme='light'] .teachToolBtn{color:#4b5563;border-color:rgba(17,24,39,.12)}
:root[data-theme='light'] .teachActionIcon:hover,:root[data-theme='light'] .teachActionBtn:hover,:root[data-theme='light'] .teachToolBtn:hover{color:#111827}
:root[data-theme='light'] .teachEditSelect option{background:#ffffff;color:#111827}
:root[data-theme='light'] .teachMenu{background:#ffffff;border-color:rgba(17,24,39,.16);box-shadow:0 12px 24px rgba(15,23,42,.12)}
:root[data-theme='light'] .teachMenuBtn{color:#374151}
:root[data-theme='light'] .teachMenuBtn:hover{background:rgba(15,23,42,.06);color:#0f172a}
:root[data-theme='light'] .teachMenuBtn.danger{color:#dc2626}
:root[data-theme='light'] .teachRich{color:#1f2937}
:root[data-theme='light'] .readFilterBtn{background:rgba(0,0,0,.04);border-color:rgba(17,24,39,.1);color:#374151}
:root[data-theme='light'] .readFilterBtn.active{background:rgba(109,40,217,.1);border-color:rgba(109,40,217,.4);color:#6D28D9}
:root[data-theme='light'] .readSearchInput{background:rgba(0,0,0,.04);border-color:rgba(17,24,39,.12);color:#111827}
:root[data-theme='light'] .readSearchInput::placeholder{color:#6B7280}
:root[data-theme='light'] .rsbLabel{color:#374151}
:root[data-theme='light'] .rsbSub{color:#374151}
:root[data-theme='light'] .rsbPct{color:#374151}
:root[data-theme='light'] .hCfgField label{color:#374151}
:root[data-theme='light'] .habitsConfigHead span{color:#111827}
:root[data-theme='light'] .habitsTodayTitle{color:#111827}
:root[data-theme='light'] .hGroupLabel{color:#0f172a}
:root[data-theme='light'] .tsLbl{color:#374151}
:root[data-theme='light'] .srcLink{color:#374151;opacity:.75}
:root[data-theme='light'] .pendRow{border-color:rgba(17,24,39,.08)}
:root[data-theme='light'] .boxHead h3{color:#111827}
:root[data-theme='light'] .sHead h2{color:#111827}
/* ── NAV ── */
.nav{position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--nav-h);
  background:rgba(9,13,18,.9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--stroke);display:flex;align-items:center}
.navInner{max-width:1700px;margin:auto;padding:0 clamp(16px,1.8vw,28px);display:flex;align-items:center;gap:10px;width:100%;overflow-x:auto;scrollbar-width:none}
.navSpacer{flex:1 1 auto}
.navContext{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(230,234,240,.7);white-space:nowrap;flex-shrink:0}
.navPomoPill{
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(138,91,255,.3);
  background:rgba(138,91,255,.12);
  color:var(--text);
  font-size:11px;
  font-weight:700;
  letter-spacing:.01em;
  display:none;
  align-items:center;
  gap:6px;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
}
.navPomoPill:hover{border-color:rgba(138,91,255,.52);filter:brightness(1.05)}
.themeBtn{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  flex-shrink:0;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .16s,color .16s,border-color .16s
}
.themeBtn:hover{color:var(--text);background:rgba(255,255,255,.09);border-color:var(--stroke2)}
.navInner::-webkit-scrollbar{display:none}
.navLogo{font-size:16px;font-weight:800;letter-spacing:.02em;margin-right:4px;flex-shrink:0;color:rgba(251,191,36,.96)}
.navBtn{padding:5px 14px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;
  background:transparent;border:none;color:rgba(154,164,178,.7);transition:all .2s;white-space:nowrap;flex-shrink:0;
  letter-spacing:.01em;position:relative}
.navBtn:hover{color:var(--text)}
.navBtn.active{color:var(--text);font-weight:700}
.navBtn.active::after{content:'';position:absolute;bottom:-1px;left:14px;right:14px;height:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:2px}
.pomoNotice{
  position:fixed;
  top:calc(var(--nav-h) + 12px);
  right:16px;
  width:min(350px,calc(100vw - 24px));
  z-index:1105;
  border:1px solid rgba(138,91,255,.3);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(17,24,39,.95),rgba(12,18,30,.96));
  box-shadow:0 18px 38px rgba(2,6,23,.48);
  padding:10px;
  display:none;
}
.pomoNotice.show{display:block}
.pomoNoticeHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pomoNoticeTitle{font-size:13px;font-weight:800;color:var(--text);line-height:1.25}
.pomoNoticeClose{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  border-radius:8px;
  min-height:24px;
  padding:0 9px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.pomoNoticeClose:hover{color:var(--text);border-color:rgba(138,91,255,.42)}
.pomoNoticeBody{margin-top:6px;font-size:11px;line-height:1.45;color:var(--muted)}
/* ── LAYOUT ── */
.container{max-width:1700px;margin:auto;padding:20px clamp(16px,1.8vw,28px) 60px}
.appShell{
  display:grid;
  grid-template-columns:262px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.homeSideMenu{
  border-right:1px solid rgba(122,137,159,.24);
  padding:10px 14px 10px 6px;
  position:sticky;
  top:calc(var(--nav-h) + 12px);
  max-height:calc(100vh - var(--nav-h) - 20px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(138,154,176,.35) transparent;
}
.homeSideMenu::-webkit-scrollbar{width:8px}
.homeSideMenu::-webkit-scrollbar-track{background:transparent}
.homeSideMenu::-webkit-scrollbar-thumb{
  background:rgba(138,154,176,.32);
  border-radius:999px;
}
.homeMenuList{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.homeMenuItem.navBtn{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  border-radius:10px;
  border:none;
  background:transparent;
  padding:9px 10px;
  color:#c6ccd6;
  font-size:14px;
  font-weight:560;
  letter-spacing:.01em;
}
.homeMenuItem.navBtn::after{display:none !important}
.homeMenuItem.navBtn:hover{
  color:#e9edf3;
  background:rgba(255,255,255,.035);
}
.homeMenuItem.navBtn.active{
  color:#f1f4f8;
  background:rgba(255,255,255,.06);
  font-weight:600;
}
.homeMenuIcon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#9ea5b1;
  flex:0 0 20px;
}
.homeMenuIcon svg{
  width:20px;
  height:20px;
  display:block;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}
.homeMenuItem.navBtn:hover .homeMenuIcon{color:#bcc4d0}
.homeMenuItem.navBtn.active .homeMenuIcon{color:#d3d9e2}
.homeMenuText{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mainContent{
  min-width:0;
  width:100%;
  max-width:1320px;
  margin-right:auto;
  padding-inline:clamp(8px,1.1vw,18px);
}
.section{display:none;animation:fadeIn .18s ease}
.section.visible{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.sHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.sHead h2{font-size:20px;font-weight:800;letter-spacing:-.3px;color:var(--text)}
/* ── HOME TITLE ── */
.homeTitle{font-size:28px;font-weight:800;letter-spacing:-.6px;margin-bottom:4px;display:flex;align-items:center;gap:10px}
.homeTitleText{background:linear-gradient(135deg,#E6EAF0 40%,rgba(138,91,255,.7));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.keyBtn{background:none;border:none;cursor:pointer;color:rgba(255,255,255,.18);font-size:16px;padding:2px 4px;
  border-radius:5px;transition:color .15s,background .15s;flex-shrink:0;line-height:1}
.keyBtn:hover{color:rgba(255,255,255,.55);background:rgba(255,255,255,.06)}
.homeSub{font-size:12px;color:var(--muted);margin-bottom:18px;letter-spacing:.02em}
/* ── HOME GRID: 3 pendências esq + cal+pomodoro dir ── */
.homeGrid{display:grid;grid-template-columns:3fr 2fr;gap:12px;align-items:start}
.pendCol{display:flex;flex-direction:column;gap:10px;min-width:0}
.calCol{display:flex;flex-direction:column;gap:10px}
/* ── BOX ── */
.box{background:rgba(255,255,255,.022);border:1px solid var(--stroke);border-radius:12px;padding:12px 14px}
.boxHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;flex-wrap:wrap}
.boxHead h3{font-size:13px;letter-spacing:.04em;color:rgba(255,255,255,.78);text-transform:uppercase;font-weight:700}
.twoCol{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* ── CARDS ── */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px}
.card{position:relative;display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:var(--radius2);
  text-decoration:none;color:var(--text);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025));
  border:1px solid var(--stroke);transition:transform .14s,border-color .14s,box-shadow .14s;min-height:60px;overflow:hidden}
.card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--accent),var(--accent2))}
.card:hover{border-color:var(--stroke2);transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.32)}
.icon{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);
  overflow:hidden;flex:0 0 38px;display:flex;align-items:center;justify-content:center}
.icon img{width:100%;height:100%;object-fit:cover}
.meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.ctitle{font-weight:650;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdesc{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.linkGroup{margin:18px 0 10px;padding:0 0 7px;font-size:12px;font-weight:700;letter-spacing:.06em;
  color:rgba(255,255,255,.6);text-transform:uppercase;border-bottom:1px solid var(--stroke)}
.linkGroup:first-child{margin-top:0}
/* ── PENDÊNCIAS ── */
.pendScroll{overflow-y:auto;overflow-x:hidden;max-height:170px;display:flex;flex-direction:column;gap:6px;padding-right:0;min-width:0;scrollbar-width:none}
.pendScroll::-webkit-scrollbar{width:0;height:0}
.pendHiddenNote{font-size:10px;color:var(--muted);text-align:right;margin-top:4px;opacity:.6}
/* ── PENDÊNCIAS v2 — seleção + prioridade editável ── */
.pendBoxHead{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px;flex-wrap:wrap}
.pendHeadMeta{display:flex;align-items:center;gap:6px}
.pendBox{position:relative;min-width:0}
.pendHeadToggle{
  cursor:pointer;
  border-radius:8px;
  transition:background .12s;
  padding:3px 5px;
  margin:-3px -5px 6px;
}
.pendHeadToggle:hover{background:rgba(255,255,255,.04)}
.pendHeadToggle h3{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.pendTitleBase{
  text-transform:uppercase;
}
.pendTitleSep{
  color:var(--muted);
  opacity:.72;
}
.pendTitleStatus{
  font-size:11px;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:none;
}
.pendTitleStatus.high{color:var(--red)}
.pendTitleStatus.warn{color:var(--yellow)}
.pendTitleStatus.ok{color:var(--green)}
.pendBoxBody{display:block;min-width:0;overflow-x:hidden}
.pendBox.collapsed .pendBoxBody{display:none}
.pendBox.collapsed .pendAddForm{display:none !important}
.pendCollapseBtn{
  width:24px;height:24px;border-radius:7px;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);color:var(--muted);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;line-height:1;transition:all .12s;flex-shrink:0
}
.pendCollapseBtn:hover{color:var(--text);border-color:var(--stroke2);background:rgba(138,91,255,.14)}
:root[data-theme='light'] .pendHeadToggle:hover{background:rgba(15,23,42,.05)}
.pendBulkBar{display:none;align-items:center;gap:7px;margin-bottom:7px;padding:5px 8px;
  border-radius:8px;background:rgba(248,113,113,.08);border:1px solid rgba(248,113,113,.2)}
.pendBulkBar.visible{display:flex}
.pendBulkCount{font-size:11px;color:var(--muted);flex:1}
.pendBulkDel{display:flex;align-items:center;gap:4px;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;
  cursor:pointer;background:rgba(248,113,113,.18);border:1px solid rgba(248,113,113,.35);color:var(--red);transition:background .13s}
.pendBulkDel:hover{background:rgba(248,113,113,.32)}
.pendBulkCancel{padding:4px 9px;border-radius:6px;font-size:11px;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid var(--stroke);color:var(--muted);transition:background .13s}
.pendBulkCancel:hover{background:rgba(255,255,255,.09);color:var(--text)}
.pendSelectAll{width:13px;height:13px;cursor:pointer;accent-color:var(--accent);flex-shrink:0}
.pendSelectRow{display:flex;align-items:center;gap:6px;margin-bottom:5px;padding:0 8px;min-width:0}
.pendSelectLabel{font-size:9.5px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.pendRow{display:grid;grid-template-columns:16px minmax(0,1fr) max-content;column-gap:10px;row-gap:6px;
  align-items:start;padding:9px 10px;border-radius:7px;min-width:0;overflow:visible;
  background:rgba(255,255,255,.022);border:1px solid rgba(255,255,255,.05);transition:opacity .3s,background .13s}
.pendRow.selected{background:rgba(138,91,255,.08);border-color:rgba(138,91,255,.22)}
.pendCheck{width:13px;height:13px;cursor:pointer;accent-color:rgba(138,91,255,.55);flex-shrink:0;opacity:.5;align-self:start;margin-top:2px}
.pendMain{min-width:0;align-self:start;overflow:visible}
.pendTask{font-size:12px;line-height:1.38;white-space:normal;overflow-wrap:anywhere;word-break:break-word;
  min-width:0;cursor:default;display:block;overflow:visible;text-overflow:clip;max-height:none}
.pendActions{display:flex;align-items:center;justify-content:flex-end;justify-self:end;gap:7px;white-space:nowrap;flex:0 0 auto;min-width:96px}
.pendRow,.pendMain,.pendTask,.pendActions{-ms-overflow-style:none;scrollbar-width:none}
.pendRow::-webkit-scrollbar,.pendMain::-webkit-scrollbar,.pendTask::-webkit-scrollbar,.pendActions::-webkit-scrollbar{width:0;height:0;display:none}
.prioBadge{display:inline-flex;align-items:center;padding:1px 7px;border-radius:8px;font-size:9px;font-weight:700;
  letter-spacing:.04em;flex-shrink:0;cursor:pointer;transition:all .13s;user-select:none;white-space:nowrap}
.prioBadge:hover{filter:brightness(1.25);transform:scale(1.05)}
.prioBadge:active{transform:scale(.97)}
.prioALTA{background:rgba(248,113,113,.16);color:var(--red);border:1px solid rgba(248,113,113,.25)}
.prioBaixa{background:rgba(251,146,60,.16);color:var(--orange);border:1px solid rgba(251,146,60,.25)}
.prioMedia{background:rgba(251,191,36,.16);color:var(--yellow);border:1px solid rgba(251,191,36,.25)}
.prioNone{background:rgba(255,255,255,.06);color:var(--muted);border:1px solid var(--stroke)}
.pendDelBtn{background:none;border:none;color:rgba(248,113,113,.4);cursor:pointer;font-size:15px;
  line-height:1;padding:0 2px;flex-shrink:0;transition:color .13s}
.pendDelBtn:hover{color:var(--red)}
/* ── CALENDÁRIO ── */
.calWrap{display:flex;flex-direction:column;gap:7px}
.calHdr{display:flex;align-items:center;justify-content:space-between}
.calMonthLbl{font-size:13px;font-weight:700;flex:1;text-align:center}
.calNavBtn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:19px;
  line-height:1;padding:3px 9px;border-radius:7px;transition:color .13s,background .13s}
.calNavBtn:hover{color:var(--text);background:rgba(255,255,255,.07)}
.calDayNames{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:2px}
.calDN{text-align:center;font-size:9px;font-weight:700;color:var(--muted);padding:3px 0;letter-spacing:.06em}
.calDays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.calCell{text-align:center;font-size:11px;padding:4px 2px;border-radius:6px;min-height:24px;
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.28);cursor:default;position:relative}
.calCell.inM{color:rgba(255,255,255,.65)}
.calCell.todayC{background:linear-gradient(135deg,rgba(138,91,255,.55),rgba(0,214,255,.35));color:#fff;font-weight:700}
.calCell.evFix{background:rgba(0,214,255,.14);color:var(--accent2);font-weight:700;cursor:pointer;border:1px solid rgba(0,214,255,.22)}
.calCell.evVar{background:rgba(251,191,36,.13);color:var(--yellow);font-weight:700;cursor:pointer;border:1px solid rgba(251,191,36,.2)}
.calCell.evBoth{background:linear-gradient(135deg,rgba(0,214,255,.12),rgba(251,191,36,.1));color:var(--accent2);font-weight:700;cursor:pointer;border:1px solid rgba(138,91,255,.28)}
.calCell.evFix:hover{background:rgba(0,214,255,.22)}
.calCell.evVar:hover{background:rgba(251,191,36,.2)}
.calCell.evBoth:hover{background:linear-gradient(135deg,rgba(0,214,255,.2),rgba(251,191,36,.16))}
.calCell.todayC.evFix,.calCell.todayC.evVar,.calCell.todayC.evBoth{background:linear-gradient(135deg,rgba(138,91,255,.65),rgba(0,214,255,.45));border-color:rgba(0,214,255,.4);color:#fff}
.calLegend{display:flex;gap:10px;margin-top:5px;flex-wrap:wrap}
.calLegItem{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--muted)}
.calLegDot{width:7px;height:7px;border-radius:2px}
.calLegDot.fix{background:rgba(0,214,255,.4)}
.calLegDot.var{background:rgba(251,191,36,.4)}
/* ── TOOLTIP ── */
#calTip{position:fixed;display:none;background:#19243a;border:1px solid rgba(0,214,255,.3);
  border-radius:12px;padding:11px 14px;min-width:170px;max-width:255px;z-index:9999;
  pointer-events:auto;box-shadow:0 14px 40px rgba(0,0,0,.65)}
.ttHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.ttTitle{font-size:13px;font-weight:700;color:var(--text);margin-bottom:3px;line-height:1.3}
.ttTime{font-size:10px;color:var(--muted);margin-top:2px;font-weight:700;letter-spacing:.03em}
.ttInfo{font-size:11.5px;color:var(--muted);line-height:1.5}
.ttSep{border:none;border-top:1px solid rgba(255,255,255,.08);margin:7px 0}
.ttType{font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-top:4px;display:block}
.ttType.fix{color:var(--accent2)}
.ttType.var{color:var(--yellow)}
.ttDelBtn{
  border:none;
  background:rgba(248,113,113,.14);
  color:#fca5a5;
  width:20px;
  height:20px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  flex-shrink:0;
}
.ttDelBtn:hover{background:rgba(248,113,113,.24);color:#fecaca}
/* ── POMODORO ── */
.pomoModes{display:flex;gap:5px;margin-bottom:10px}
.pomoModeBtn{flex:1;padding:5px 4px;border-radius:8px;font-size:10px;font-weight:600;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid var(--stroke);color:var(--muted);transition:all .14s;text-align:center}
.pomoModeBtn.active{background:rgba(138,91,255,.2);border-color:rgba(138,91,255,.5);color:var(--text)}
.pomoDisplay{text-align:center;margin:8px 0 12px}
.pomoClock{font-size:44px;font-weight:800;letter-spacing:2px;font-variant-numeric:tabular-nums;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.pomoCycles{font-size:10px;color:var(--muted);margin-top:4px}
.pomoControls{display:flex;gap:7px;justify-content:center}
.pomoBtn{padding:7px 18px;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer;transition:all .14s;border:1px solid}
.pomoBtnPrimary{background:linear-gradient(135deg,rgba(138,91,255,.3),rgba(0,214,255,.2));
  border-color:rgba(138,91,255,.55);color:var(--text)}
.pomoBtnPrimary:hover{background:linear-gradient(135deg,rgba(138,91,255,.45),rgba(0,214,255,.3))}
.pomoBtnSecondary{background:rgba(255,255,255,.05);border-color:var(--stroke);color:var(--muted)}
.pomoBtnSecondary:hover{background:rgba(255,255,255,.09);color:var(--text)}
.pomoBar{height:3px;background:rgba(255,255,255,.07);border-radius:3px;overflow:hidden;margin-top:10px}
.pomoBarFill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:3px;transition:width .5s linear}
/* ── CALENDAR ADD BUTTON ── */
.calAddBtn{background:none;border:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;
  padding:2px 6px;border-radius:6px;transition:color .15s,background .15s}
.calAddBtn:hover{color:var(--text);background:rgba(255,255,255,.08)}
/* ── CALENDAR MODAL ── */
.calModal{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);z-index:2000;
  display:flex;align-items:center;justify-content:center}
.calModalBox{background:#111820;border:1px solid rgba(255,255,255,.12);border-radius:16px;
  padding:24px;width:340px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;gap:12px}
.calModalHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.calModalHead span{font-size:15px;font-weight:700;color:var(--text)}
.calModalHead button{background:none;border:none;color:var(--muted);font-size:20px;cursor:pointer;line-height:1;padding:2px 6px;border-radius:6px}
.calModalHead button:hover{color:var(--text);background:rgba(255,255,255,.08)}
.calModalInput{width:100%;padding:9px 12px;background:#0d1421;border:1px solid rgba(255,255,255,.12);
  border-radius:8px;color:var(--text);font-size:13px;outline:none;transition:border-color .15s}
.calModalInput::placeholder{color:rgba(154,164,178,.4)}
.calModalInput:focus{border-color:rgba(138,91,255,.5)}
.calModalSel{width:100%;padding:9px 12px;background:#0f1520;border:1px solid rgba(255,255,255,.15);
  border-radius:8px;color:var(--text);font-size:13px;outline:none;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239AA4B2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center}
.calModalSel:focus{border-color:rgba(138,91,255,.5)}
.calModalSel option{background:#0f1520;color:#E6EAF0}
.calModalRow{display:flex;gap:8px}
.calModalActions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.calModalCancel{padding:8px 18px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--muted);font-size:13px;cursor:pointer}
.calModalCancel:hover{color:var(--text)}
.calModalSave{padding:8px 18px;border-radius:8px;background:linear-gradient(135deg,rgba(138,91,255,.8),rgba(0,214,255,.6));
  border:none;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.calModalSave:hover{filter:brightness(1.1)}
/* ── CUSTOM DATE PICKER ── */
.calDatePickerWrap{position:relative;width:100%}
.calDateInput{cursor:pointer!important;padding-right:36px}
.calDateIcon{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:15px;cursor:pointer;pointer-events:auto;user-select:none}
.calPicker{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#0d1623;border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:14px;z-index:4000;box-shadow:0 8px 32px rgba(0,0,0,.6)}
.calPickerHdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.calPickerHdr button{background:none;border:none;color:var(--muted);font-size:15px;cursor:pointer;
  padding:4px 7px;border-radius:6px;line-height:1;transition:color .15s,background .15s}
.calPickerHdr button:hover{color:var(--text);background:rgba(255,255,255,.08)}
.calPickerHdr span{font-size:13px;font-weight:700;color:var(--text);letter-spacing:.01em}
.calPickerDayNames{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}
.calPickerDayNames span{text-align:center;font-size:9.5px;color:rgba(154,164,178,.45);font-weight:600;letter-spacing:.06em;padding:2px 0}
.calPickerDays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.calPickerDay{text-align:center;padding:6px 2px;border-radius:6px;font-size:12px;cursor:pointer;
  color:var(--muted);transition:background .12s,color .12s;border:none;background:none;width:100%}
.calPickerDay:hover{background:rgba(255,255,255,.08);color:var(--text)}
.calPickerDay.today{color:var(--accent);font-weight:700}
.calPickerDay.selected{background:linear-gradient(135deg,rgba(138,91,255,.8),rgba(0,214,255,.5));color:#fff;font-weight:700}
.calPickerDay.other{opacity:.25}
.calPickerDay:disabled{opacity:.15;cursor:default}
/* ── IDIOMAS (sub-abas internas) ── */
.idiSubTabs{display:flex;gap:5px;margin-bottom:14px;border-bottom:1px solid var(--stroke);padding-bottom:10px}
.idiSubBtn{padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid var(--stroke);color:var(--muted);
  transition:all .15s;white-space:nowrap}
.idiSubBtn:hover{background:rgba(255,255,255,.09);color:var(--text);border-color:var(--stroke2)}
.idiSubBtn.active{background:linear-gradient(135deg,rgba(138,91,255,.28),rgba(0,214,255,.18));
  border:1.5px solid rgba(138,91,255,.7);color:var(--text);
  box-shadow:0 0 12px rgba(138,91,255,.25),inset 0 0 12px rgba(138,91,255,.08);font-weight:700}
.idiPanel{display:none}
.idiPanel.visible{display:block}
.idiMetodCard{background:rgba(255,255,255,.03);border:1px solid var(--stroke);border-radius:12px;padding:18px 20px;margin-top:8px}
.idiMetodTitle{font-size:16px;font-weight:700;color:var(--text);margin-bottom:6px}
.idiMetodDesc{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:14px}
.idiMetodLink{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:9px;
  text-decoration:none;font-size:12.5px;font-weight:600;color:var(--text);
  background:rgba(138,91,255,.15);border:1px solid rgba(138,91,255,.35);transition:background .14s}
.idiMetodLink:hover{background:rgba(138,91,255,.28)}
/* —— IDIOMAS V2 (painel vertical + cards editáveis) —— */
.idiV2Top{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.idiV2Langs{display:flex;gap:6px;flex-wrap:wrap}
.idiV2LangBtn{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:9px;
  border:1px solid var(--stroke);background:rgba(255,255,255,.03);color:var(--muted);
  font-size:12px;font-weight:600;cursor:pointer;transition:all .14s}
.idiV2LangBtn:hover{color:var(--text);background:rgba(255,255,255,.07)}
.idiV2LangBtn.active{background:rgba(138,91,255,.16);border-color:rgba(138,91,255,.45);color:var(--text)}
.idiV2TopActions{display:flex;gap:8px;flex-wrap:wrap}
.idiV2Search{flex:1;min-width:200px;padding:8px 11px;border-radius:9px;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);color:var(--text);outline:none;font-size:12px;font-family:inherit}
.idiV2Search:focus{border-color:rgba(138,91,255,.45)}
.idiV2Search::placeholder{color:rgba(154,164,178,.5)}
.idiV2PrimaryBtn{padding:8px 14px;border-radius:9px;border:1px solid rgba(138,91,255,.45);
  background:linear-gradient(135deg,rgba(138,91,255,.26),rgba(0,214,255,.14));color:var(--text);
  font-size:12px;font-weight:700;cursor:pointer;transition:filter .14s}
.idiV2PrimaryBtn:hover{filter:brightness(1.12)}
.idiV2Meta{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:rgba(154,164,178,.65)}
.idiV2Section{border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.018);margin-bottom:10px;overflow:hidden}
.idiV2SectionHead{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;gap:8px;cursor:pointer}
.idiV2SectionTitle{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--text)}
.idiV2SectionCount{font-size:10px;color:rgba(154,164,178,.7);padding:2px 7px;border-radius:99px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.idiV2SectionActions{display:flex;align-items:center;gap:5px}
.idiV2SectionBtn{padding:4px 9px;border-radius:7px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);
  color:var(--muted);font-size:11px;cursor:pointer;transition:all .14s}
.idiV2SectionBtn:hover{color:var(--text);background:rgba(255,255,255,.08)}
.idiV2SectionBtn.primary{border-color:rgba(138,91,255,.36);background:rgba(138,91,255,.13);color:rgba(225,232,240,.95)}
.idiAddIconBtn{
  width:28px;height:28px;padding:0;border:none;border-radius:8px;background:transparent;
  color:rgba(138,91,255,.95);font-size:20px;font-weight:700;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:transform .14s,color .14s,background .14s,text-shadow .14s
}
.idiAddIconBtn:hover{color:rgba(0,214,255,.95);background:rgba(138,91,255,.08);text-shadow:0 0 14px rgba(0,214,255,.35);transform:translateY(-1px)}
.idiAddIconBtn:focus-visible{outline:2px solid rgba(138,91,255,.45);outline-offset:2px}
.idiV2SectionBody{display:none;padding:10px 12px 12px;border-top:1px solid rgba(255,255,255,.05)}
.idiV2Section.open .idiV2SectionBody{display:block}
.idiV2FilterRow{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.idiV2FilterRow select,.idiV2FilterRow input{padding:6px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.03);color:var(--text);font-size:11px;outline:none;font-family:inherit}
.idiV2FilterRow input{min-width:160px}
.idiV2CardList{display:flex;flex-direction:column;gap:7px}
.idiV2Card{border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.02);padding:10px}
.idiV2Card[draggable="true"]{cursor:grab}
.idiV2Card.dragging{opacity:.45}
.idiV2CardTop{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px}
.idiV2CardTitle{font-size:12.5px;font-weight:700;color:var(--text);line-height:1.35}
.idiV2CardMeta{font-size:10px;color:rgba(154,164,178,.6)}
.idiV2TagRow{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}
.idiV2Tag{font-size:9px;padding:2px 6px;border-radius:999px;background:rgba(138,91,255,.12);border:1px solid rgba(138,91,255,.26);color:rgba(220,228,240,.9)}
.idiV2CardActions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.idiV2ActionBtn{padding:4px 8px;border-radius:7px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);
  color:var(--muted);font-size:10px;cursor:pointer}
.idiV2ActionBtn:hover{color:var(--text);background:rgba(255,255,255,.08)}
.idiV2ActionBtn.danger{border-color:rgba(248,113,113,.28);color:rgba(248,113,113,.85)}
.idiV2ActionBtn.ok{border-color:rgba(74,222,128,.3);color:rgba(74,222,128,.85)}
.idiV2EditGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.idiV2EditGrid .full{grid-column:1/-1}
.idiV2EditInput,.idiV2EditArea,.idiV2EditSelect{
  width:100%;padding:7px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);color:var(--text);font-size:11px;outline:none;font-family:inherit
}
.idiV2EditArea{min-height:62px;resize:vertical}
.idiV2TblWrap{overflow:auto;max-height:270px;border:1px solid rgba(255,255,255,.08);border-radius:9px}
.idiV2Tbl{width:100%;border-collapse:collapse;font-size:11px}
.idiV2Tbl th,.idiV2Tbl td{padding:7px 8px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top}
.idiV2Tbl th{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);position:sticky;top:0;background:#0f1520}
.idiV2MethodCard{border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.02);padding:16px}
.idiV2MethodCard h3{font-size:15px;margin-bottom:7px}
.idiV2MethodCard p{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:12px}
.idiDialogSelect{min-width:220px;max-width:320px}
@media(max-width:780px){
  .idiV2EditGrid{grid-template-columns:1fr}
  .idiDialogSelect{min-width:170px;max-width:230px}
}
/* ── TABS ── */
.tabsRow{display:flex;gap:5px;overflow-x:auto;margin-bottom:12px;padding-bottom:3px;
  scrollbar-width:thin;scrollbar-color:rgba(110,115,145,.4) transparent}
.tabsRow::-webkit-scrollbar{height:4px}
.tabsRow::-webkit-scrollbar-thumb{background:rgba(110,115,145,.4);border-radius:3px}
.tabBtn{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid var(--stroke);color:var(--muted);
  transition:all .15s;white-space:nowrap;flex-shrink:0}
.tabBtn:hover{background:rgba(255,255,255,.09);color:var(--text);border-color:var(--stroke2)}
.tabBtn.active{background:linear-gradient(135deg,rgba(138,91,255,.28),rgba(0,214,255,.18));
  border:1.5px solid rgba(138,91,255,.7);color:var(--text);
  box-shadow:0 0 12px rgba(138,91,255,.25),inset 0 0 12px rgba(138,91,255,.08);font-weight:700}
/* ── STATS / SEARCH / TABLE ── */
.statRow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.statChip{padding:7px 13px;border-radius:9px;background:rgba(255,255,255,.04);border:1px solid var(--stroke);text-align:center;min-width:70px}
.statN{font-size:19px;font-weight:700;background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:block;line-height:1.2}
.statL{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;display:block;margin-top:2px}
.searchInput{width:100%;padding:7px 12px;background:rgba(255,255,255,.05);border:1px solid var(--stroke);
  color:var(--text);border-radius:8px;font-size:13px;outline:none;margin-bottom:10px;transition:border-color .14s}
.searchInput:focus{border-color:rgba(138,91,255,.5)}
.searchInput::placeholder{color:var(--muted)}
.tblWrap{overflow-y:auto;max-height:340px;border-radius:10px;border:1px solid var(--stroke)}
.tblWrap::-webkit-scrollbar{width:5px}
.tblWrap::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
.tblWrap::-webkit-scrollbar-thumb{background:rgba(110,115,145,.5);border-radius:3px}
.tblWrap::-webkit-scrollbar-thumb:hover{background:rgba(150,155,185,.65)}
.dataTable{width:100%;border-collapse:collapse;font-size:12px}
.dataTable thead th{text-align:left;font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;
  letter-spacing:.06em;padding:7px 10px;border-bottom:1px solid var(--stroke);position:sticky;top:0;
  background:#0f1520;z-index:2;cursor:pointer;white-space:nowrap;user-select:none}
.dataTable thead th:hover{color:var(--text)}
.dataTable td{padding:7px 10px;border-bottom:1px solid rgba(255,255,255,.04);vertical-align:top;line-height:1.45;word-break:break-word}
.dataTable tr:last-child td{border-bottom:none}
.dataTable tbody tr:hover td{background:rgba(255,255,255,.025)}
.sortArrow::after{content:" ↕";opacity:.3;font-size:9px}
.sortArrow.asc::after{content:" ↑";opacity:1}
.sortArrow.desc::after{content:" ↓";opacity:1}
/* ── LEITURA ── */
.readStatsGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.readStatBox{padding:13px 15px;border-radius:12px;border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(135deg,rgba(138,91,255,.12),rgba(0,214,255,.08));overflow:hidden}
.readStatBox .rsbNums{display:flex;align-items:baseline;gap:5px;margin-bottom:5px}
.readStatBox .rsbMain{font-size:24px;font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.readStatBox .rsbSub{font-size:12px;color:var(--muted)}
.readStatBox .rsbLabel{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(154,164,178,.55);font-weight:700;margin-bottom:10px}
.rsbBar{height:4px;background:rgba(255,255,255,.08);border-radius:3px;overflow:hidden;margin-top:6px}
.rsbBarFill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:3px;transition:width .8s ease}
.rsbPct{font-size:11px;color:var(--muted);margin-top:3px;text-align:right}
/* ── LIVROS ── */
.bookList{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-right:2px}
.bookItem{display:flex;flex-direction:row;border-radius:16px;overflow:hidden;height:200px;
  background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.08);
  transition:border-color .2s,transform .18s,box-shadow .2s;cursor:default}
.bookItem:hover{border-color:rgba(138,91,255,.4);transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(0,0,0,.45),0 0 0 1px rgba(138,91,255,.18)}
.bookCoverArea{position:relative;width:36%;min-width:36%;flex-shrink:0;overflow:hidden;
  background:linear-gradient(160deg,rgba(20,18,40,1),rgba(10,14,26,1));
  display:flex;align-items:center;justify-content:center;font-size:32px}
.bookCoverArea::after{content:'';position:absolute;inset:0;
  background:linear-gradient(to right,transparent 70%,rgba(0,0,0,.55));pointer-events:none}
.bookCoverArea img{width:100%;height:100%;object-fit:contain;display:block;padding:8px}
.bookStatusBadge{display:inline-flex;align-items:center;gap:4px;
  font-size:9.5px;font-weight:800;padding:3px 9px;border-radius:20px;text-transform:uppercase;
  letter-spacing:.06em;flex-shrink:0;align-self:flex-start;white-space:nowrap}
.bookStatusBadge.read{background:rgba(74,222,128,.15);color:#4ADE80;border:1px solid rgba(74,222,128,.35)}
.bookStatusBadge.reading{background:rgba(251,191,36,.15);color:#FBBF24;border:1px solid rgba(251,191,36,.35)}
.bookStatusBadge.unread{background:rgba(148,163,184,.1);color:#94A3B8;border:1px solid rgba(148,163,184,.28)}
.bookMeta{flex:1;min-width:0;padding:16px 16px 14px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.bookMetaTop{display:flex;flex-direction:column;gap:5px}
.bookTitleRow{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.bookTitle{font-size:14px;font-weight:800;color:var(--text);line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bookAuthor{font-size:11px;color:rgba(138,91,255,.9);font-weight:600}
.bookDesc{font-size:11.5px;color:rgba(154,164,178,.65);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px}
@media(max-width:760px){.bookList{grid-template-columns:1fr}.bookItem{height:auto;min-height:150px}}
.teachFilterRow{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.teachFilterRow .searchInput{margin-bottom:0;flex:1;min-width:160px}
.teachRefFilter{padding:7px 10px;background:rgba(255,255,255,.05);border:1px solid var(--stroke);
  color:var(--text);border-radius:8px;font-size:12px;outline:none;cursor:pointer;min-width:150px}
.teachRefFilter:focus{border-color:rgba(138,91,255,.5)}
.teachRefFilter option{background:#1a2030;color:var(--text)}
.teachCatsGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin-bottom:10px}
.teachCatBtn{padding:10px 12px;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.016));border:1px solid rgba(255,255,255,.08);
  color:color-mix(in srgb,var(--text) 82%,#9eabbc);font-size:12px;font-weight:560;letter-spacing:.004em;line-height:1.24;text-align:left;cursor:pointer;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  transition:border-color .14s,background .14s,color .14s,box-shadow .14s;
  display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden}
.teachCatIcon{font-size:14px;line-height:1;flex:0 0 auto;opacity:.92}
.teachCatTxt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.teachCatBtn:hover{border-color:rgba(255,255,255,.14);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.024));box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.teachCatBtn.active{background:linear-gradient(180deg,rgba(138,91,255,.11),rgba(138,91,255,.06));border-color:rgba(138,91,255,.28);color:color-mix(in srgb,var(--text) 88%,#b9a7df)}
.teachStickyBar{position:sticky;top:0;z-index:4;padding:6px;border-radius:10px;
  background:linear-gradient(180deg,rgba(11,15,20,.95),rgba(11,15,20,.85));border:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.teachScroll{overflow-y:auto;max-height:470px;padding-right:4px}
.teachScroll::-webkit-scrollbar{width:5px}
.teachScroll::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
.teachScroll::-webkit-scrollbar-thumb{background:rgba(110,115,145,.5);border-radius:3px}
.teachScroll::-webkit-scrollbar-thumb:hover{background:rgba(150,155,185,.65)}
.teachItemsGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:9px}
.teachItem{padding:13px 14px;min-height:188px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid var(--stroke);
  transition:border-color .14s,transform .14s}
.teachItem:hover{border-color:var(--stroke2);transform:translateY(-1px)}
.teachItem.menuOpen{border-color:rgba(138,91,255,.32)}
.teachItemHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.teachItemTitleLine{flex:1;min-width:0}
.teachItemTitle{font-size:12.5px;line-height:1.36;color:var(--text);font-weight:700;min-width:0}
.teachItemRefInline{display:inline;margin-left:7px;font-size:10px;color:var(--orange);line-height:1.1;font-style:normal;white-space:nowrap;opacity:.98;letter-spacing:.01em}
.teachMenuWrap{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.teachActionIcon{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;flex-shrink:0}
.teachActionIcon:hover{color:var(--text);border-color:rgba(138,91,255,.35);background:rgba(138,91,255,.12)}
.teachMenu{position:absolute;top:26px;right:0;z-index:9;display:flex;flex-direction:column;gap:2px;min-width:128px;padding:5px;border-radius:9px;background:#111827;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 30px rgba(0,0,0,.45)}
.teachMenuBtn{width:100%;text-align:left;padding:6px 8px;border:none;border-radius:7px;background:transparent;color:var(--text);font-size:11px;cursor:pointer;line-height:1.25}
.teachMenuBtn:hover{background:rgba(255,255,255,.07)}
.teachMenuBtn.danger{color:#f87171}
.teachRich{font-size:12px;line-height:1.55;color:rgba(220,228,240,.86);margin-top:8px;max-height:170px;overflow:auto;padding-right:2px}
.teachRich:empty::before{content:'Sem conteúdo';color:rgba(154,164,178,.45)}
.teachMeta{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.teachMetaPill{font-size:10px;padding:3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03);color:var(--muted)}
.teachMetaPill.cat{background:rgba(138,91,255,.1);border-color:rgba(138,91,255,.26);color:rgba(220,228,240,.95)}
.teachMetaPill.fav{color:#fbbf24;border-color:rgba(251,191,36,.35);background:rgba(251,191,36,.12)}
.teachItemActions{display:flex;gap:6px;flex-wrap:wrap;opacity:0;pointer-events:none;transition:opacity .14s;margin-top:8px;min-height:26px}
.teachItem:hover .teachItemActions,.teachItem.menuOpen .teachItemActions,.teachItem.editing .teachItemActions{opacity:1;pointer-events:auto}
.teachActionBtn{padding:4px 8px;border-radius:7px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.05);color:var(--muted);font-size:10.5px;cursor:pointer}
.teachActionBtn:hover{color:var(--text);border-color:rgba(138,91,255,.35);background:rgba(138,91,255,.12)}
.teachActionBtn.ok{color:#4ade80;border-color:rgba(74,222,128,.3)}
.teachActionBtn.danger{color:#f87171;border-color:rgba(248,113,113,.32)}
.teachEditRow{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.teachEditInput,.teachEditSelect{padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);color:var(--text);font-size:12px;outline:none;font-family:inherit}
.teachEditInput{flex:1;min-width:110px}
.teachEditSelect{min-width:150px}
.teachEditSelect option{background:#101827;color:var(--text)}
.teachEditInput:focus,.teachEditSelect:focus{border-color:rgba(138,91,255,.45)}
.teachEditTools{display:flex;gap:4px;margin-top:8px}
.teachToolBtn{padding:4px 8px;border-radius:6px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.05);color:var(--muted);font-size:11px;cursor:pointer}
.teachToolBtn:hover{color:var(--text);border-color:rgba(138,91,255,.35);background:rgba(138,91,255,.12)}
.teachEditContent{margin-top:8px;min-height:110px;max-height:220px;overflow:auto;padding:8px 10px;border-radius:9px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.04);font-size:12px;line-height:1.6;color:var(--text);outline:none}
.teachEditContent:empty::before{content:attr(data-placeholder);color:rgba(154,164,178,.4)}
/* ── PC ── */
.specCompact{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.specRow{display:flex;flex-direction:column;gap:7px;padding:8px 9px;border-radius:8px;
  background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05)}
.specLbl{color:var(--text);font-size:11.2px;font-weight:600;line-height:1.35}
.specVal{font-size:11.5px;color:var(--text);line-height:1.3}
.pcItemHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pcMoneyRow{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
.pcMoneyLbl{color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.pcMoneyVal{color:var(--text);font-weight:600}
.pcItemLink{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:var(--muted);text-decoration:none;font-size:11px;line-height:1;flex-shrink:0}
.pcItemLink:hover{color:var(--text);border-color:rgba(138,91,255,.35);background:rgba(138,91,255,.1)}
.pcEditIcon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;
  border:none;background:none;color:var(--muted);border-radius:6px;cursor:pointer;line-height:1;font-size:12px;flex-shrink:0}
.pcEditIcon:hover{color:var(--text);background:rgba(138,91,255,.14)}
.pcHeadEdit{margin-left:auto}
.pcInlineForm{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.pcInlineInput{width:100%;padding:7px 9px;border-radius:7px;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);color:var(--text);font-size:11.5px;outline:none;font-family:inherit}
.pcInlineInput:focus{border-color:rgba(138,91,255,.45)}
.pcInlineRow{display:flex;gap:6px}
.pcInlineActions{display:flex;gap:6px;justify-content:flex-end}
.pcInlineBtn{padding:5px 10px;border-radius:7px;font-size:10.5px;font-weight:700;cursor:pointer;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--muted)}
.pcInlineBtn:hover{color:var(--text);border-color:rgba(138,91,255,.35);background:rgba(138,91,255,.12)}
.pcInlineBtn.ok{color:#4ade80;border-color:rgba(74,222,128,.3)}
.pcTotals{margin-top:10px;padding:10px 12px;border-radius:10px;
  background:linear-gradient(135deg,rgba(138,91,255,.1),rgba(0,214,255,.07));border:1px solid rgba(138,91,255,.2)}
.pcTotalRow{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:12px}
.pcTotalRow:not(:last-child){border-bottom:1px solid rgba(255,255,255,.05)}
.pcTotalLbl{color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.pcTotalVal{font-weight:700;font-size:13px}
.pcTotalVar{color:var(--green);font-weight:700;font-size:13px}
.pcTotalVar.neg{color:#f87171}
.pcUpGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.upItem{padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.05);display:flex;flex-direction:column;gap:7px;margin-bottom:0}
.upItemName{flex:1;font-size:12px;color:var(--text);line-height:1.35}
.upItemVal{font-size:11.5px;color:var(--muted);flex-shrink:0}
.upTotal{margin-top:8px;padding:9px 12px;border-radius:8px;background:rgba(138,91,255,.1);border:1px solid rgba(138,91,255,.2);
  display:flex;justify-content:space-between;align-items:center}
.upTotalLbl{font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.upTotalVal{font-size:17px;font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.pcBulkModal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.58);
  backdrop-filter:blur(8px);
  z-index:2600;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.pcBulkBox{
  width:min(860px,100%);
  max-height:min(86vh,760px);
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(10,15,27,.98));
  border:1px solid rgba(148,163,184,.24);
  box-shadow:0 26px 58px rgba(2,6,23,.52);
}
.pcBulkHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--text);
}
.pcBulkTitle{font-size:15px;font-weight:800;letter-spacing:.01em;color:var(--text)}
.pcBulkClose{
  width:28px;
  height:28px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.7);
  color:var(--muted);
  border-radius:9px;
  cursor:pointer;
  font-size:19px;
  line-height:1;
}
.pcBulkClose:hover{
  color:var(--text);
  border-color:rgba(138,91,255,.45);
  background:rgba(138,91,255,.14);
}
.pcBulkBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:11px;
  background:rgba(15,23,42,.55);
}
.pcBulkList{padding:0 1px 2px;overflow:auto;display:flex;flex-direction:column;gap:8px}
.pcBulkItem{
  padding:10px;
  border-radius:11px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.56);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pcBulkItemHead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pcBulkItemIdx{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.pcBulkDel{
  min-height:25px;
  padding:0 9px;
  border-radius:8px;
  border:1px solid rgba(248,113,113,.35);
  background:rgba(248,113,113,.1);
  color:#fca5a5;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.pcBulkDel:hover{background:rgba(248,113,113,.18);color:#fecaca}
.pcBulkGrid{display:grid;grid-template-columns:1fr 160px 160px;gap:8px}
.pcBulkGrid.up{grid-template-columns:1fr 180px}
.pcBulkInput{
  width:100%;
  min-height:32px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.72);
  color:var(--text);
  font-size:12px;
  outline:none;
  font-family:inherit;
}
.pcBulkInput:focus{
  border-color:rgba(138,91,255,.52);
  box-shadow:0 0 0 3px rgba(138,91,255,.18);
}
.pcBulkActions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding-top:2px;
}
.pcBulkBtn{
  min-height:32px;
  padding:0 11px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.72);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.pcBulkBtn:hover{color:var(--text);border-color:rgba(138,91,255,.4)}
.pcBulkBtn.primary{
  color:var(--text);
  border-color:rgba(138,91,255,.42);
  background:linear-gradient(135deg,rgba(138,91,255,.3),rgba(0,214,255,.16));
}
.pcBulkBtn.primary:hover{background:linear-gradient(135deg,rgba(138,91,255,.42),rgba(0,214,255,.26))}
@media(max-width:760px){
  .pcBulkGrid,.pcBulkGrid.up{grid-template-columns:1fr}
  .pcBulkBar{flex-wrap:wrap}
}
/* ── SHARED ── */
.srcRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid var(--stroke)}
.srcRow .srcLink{flex:1}
.srcLink{font-size:11px;color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:3px;opacity:.6;transition:opacity .14s}
.srcLink:hover{opacity:1;color:var(--text)}
.btnSm{padding:4px 10px;border-radius:7px;font-size:11px;font-weight:600;cursor:pointer;
  background:rgba(138,91,255,.14);border:1px solid rgba(138,91,255,.28);color:var(--text);transition:background .14s}
.btnSm:hover{background:rgba(138,91,255,.26)}
.tsLbl{font-size:10px;color:var(--muted)}
.msgLoad{color:var(--muted);font-size:12px;padding:14px;text-align:center}
.msgErr{color:var(--red);font-size:12px;padding:9px 12px;background:rgba(248,113,113,.07);
  border-radius:8px;border:1px solid rgba(248,113,113,.18);margin:4px 0}
.gSignIn{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:7px;font-size:10px;
  font-weight:600;cursor:pointer;background:rgba(66,133,244,.14);border:1px solid rgba(66,133,244,.3);color:#7aadff}
.gSignIn:hover{background:rgba(66,133,244,.26)}
.gSignedMark{display:none;color:var(--green);font-weight:700}
/* ── PEND ADD FORM ── */
.pendAddBtn{background:none;border:1px solid rgba(138,91,255,.3);color:rgba(138,91,255,.85);cursor:pointer;
  font-size:12px;font-weight:700;padding:3px 10px;border-radius:6px;
  transition:color .13s,background .13s,border-color .13s;flex-shrink:0;white-space:nowrap}
.pendAddBtn:hover{color:#fff;background:rgba(138,91,255,.25);border-color:rgba(138,91,255,.7)}
.pendAddForm{display:none;flex-direction:column;gap:6px;padding:8px;margin-top:6px;
  border-radius:8px;background:rgba(138,91,255,.06);border:1px solid rgba(138,91,255,.2)}
.pendAddForm.open{display:flex}
.pendAddInput{width:100%;padding:7px 10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  color:var(--text);border-radius:7px;font-size:12.5px;outline:none;font-family:inherit;transition:border-color .14s}
.pendAddInput:focus{border-color:rgba(138,91,255,.55)}
.pendAddInput::placeholder{color:var(--muted);font-size:11.5px}
.pendAddRow{display:flex;gap:6px;align-items:center}
.pendPrioSel{padding:6px 8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  color:var(--text);border-radius:7px;font-size:11.5px;font-weight:600;outline:none;cursor:pointer;flex-shrink:0}
.pendPrioSel option{background:#1a2030}
.pendAddSubmit{flex:1;padding:6px 12px;border-radius:7px;font-size:12px;font-weight:700;cursor:pointer;
  background:linear-gradient(135deg,rgba(138,91,255,.35),rgba(0,214,255,.2));
  border:1px solid rgba(138,91,255,.5);color:var(--text);transition:background .14s}
.pendAddSubmit:hover{background:linear-gradient(135deg,rgba(138,91,255,.5),rgba(0,214,255,.32))}
.pendAddCancel{padding:6px 9px;border-radius:7px;font-size:12px;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid var(--stroke);color:var(--muted);transition:background .13s}
.pendAddCancel:hover{background:rgba(255,255,255,.09);color:var(--text)}
@media(max-width:760px){
  .homeGrid{grid-template-columns:1fr}
  .twoCol,.readStatsGrid,.specCompact{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .idiSubTabs{flex-wrap:wrap}
}
@media(max-width:1180px){
  .appShell{
    grid-template-columns:1fr;
    gap:14px;
  }
  .homeSideMenu{
    position:static;
    max-height:none;
    border-right:none;
    border-bottom:1px solid rgba(122,137,159,.24);
    padding:0 0 12px;
  }
  .homeMenuList{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .mainContent{
    max-width:none;
    padding-inline:0;
  }
}
@media(max-width:620px){
  .homeMenuList{grid-template-columns:1fr}
}
/* ── BOOK FOOTER ── */
.bookTitleMeta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.bookTitlePages{font-size:10px;color:rgba(154,164,178,.38);font-weight:400;white-space:nowrap;flex-shrink:0}
.bookBottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:5px}
.bookNotesBtn{font-size:10.5px;color:rgba(154,164,178,.45);background:none;border:none;cursor:pointer;
  padding:0;transition:color .15s;font-weight:400;letter-spacing:.01em}
.bookNotesBtn:hover{color:rgba(154,164,178,.85);text-decoration:underline}
/* ── PENDÊNCIAS EDIT ── */
.pendEditBtn{background:none;border:none;color:rgba(154,164,178,.3);cursor:pointer;font-size:11px;
  padding:2px 4px;border-radius:4px;transition:color .15s;line-height:1;flex-shrink:0}
.pendEditBtn:hover{color:rgba(154,164,178,.8)}
.pendRow.editing .pendTask{display:none}
.pendEditInput{display:block;width:100%;min-width:0;background:rgba(255,255,255,.06);border:1px solid rgba(138,91,255,.4);
  border-radius:6px;color:var(--text);font-size:12px;padding:3px 8px;outline:none;font-family:inherit}
.pendEditInput:focus{border-color:rgba(138,91,255,.7)}
.pendSaveBtn{background:none;border:none;color:rgba(74,222,128,.7);cursor:pointer;font-size:13px;
  padding:2px 5px;border-radius:4px;transition:color .15s;line-height:1;flex-shrink:0}
.pendSaveBtn:hover{color:#4ADE80}
/* ── NOTES MODAL ── */
.notesModal{position:fixed;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);z-index:3000;display:flex;align-items:center;justify-content:center;padding:16px}
.notesModalBox{background:#0d1421;border:1px solid rgba(255,255,255,.1);border-radius:20px;
  width:min(920px,calc(100vw - 24px));height:min(92vh,900px);max-height:95vh;display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.7),0 0 0 1px rgba(138,91,255,.12)}
.notesModalHead{display:flex;align-items:flex-start;justify-content:space-between;
  padding:22px 24px 16px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}
.notesModalTitle{font-size:16px;font-weight:800;color:var(--text);line-height:1.3}
.notesModalSub{font-size:11px;color:rgba(154,164,178,.5);margin-top:3px}
.notesModalClose{background:none;border:none;color:rgba(154,164,178,.5);font-size:22px;cursor:pointer;
  padding:2px 6px;border-radius:6px;line-height:1;transition:all .15s;flex-shrink:0}
.notesModalClose:hover{color:var(--text);background:rgba(255,255,255,.08)}
.notesList{flex:1;overflow-y:auto;padding:16px 24px;display:flex;flex-direction:column;
  gap:10px;min-height:60px;scrollbar-width:thin;scrollbar-color:rgba(110,115,145,.4) transparent}
.notesList::-webkit-scrollbar{width:4px}
.notesList::-webkit-scrollbar-thumb{background:rgba(110,115,145,.4);border-radius:2px}
.noteItem{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:12px;
  padding:14px 16px 12px;position:relative;transition:border-color .15s}
.noteItem:hover{border-color:rgba(255,255,255,.12)}
.noteItemDate{font-size:9px;color:rgba(154,164,178,.35);margin-bottom:6px;letter-spacing:.06em;text-transform:uppercase}
.noteItemText{font-size:13px;color:rgba(220,228,240,.82);line-height:1.65}
.noteItemActions{position:absolute;top:8px;right:10px;display:flex;align-items:center;gap:4px}
.noteItemEdit,.noteItemDel{background:none;border:none;
  color:rgba(154,164,178,.25);font-size:15px;cursor:pointer;padding:3px 5px;line-height:1;
  border-radius:5px;transition:all .15s}
.noteItemEdit{font-size:13px}
.noteItemEdit:hover{color:#93c5fd;background:rgba(147,197,253,.1)}
.noteItemDel:hover{color:var(--red);background:rgba(248,113,113,.1)}
.notesInputArea{padding:16px 24px 20px;border-top:1px solid rgba(255,255,255,.07);flex-shrink:0}
.notesToolbar{display:flex;gap:4px;margin-bottom:8px}
.notesToolBtn{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:6px;
  color:rgba(154,164,178,.7);font-size:12px;cursor:pointer;padding:4px 9px;line-height:1;
  transition:all .15s;font-family:inherit}
.notesToolBtn:hover{background:rgba(138,91,255,.18);border-color:rgba(138,91,255,.4);color:var(--text)}
.notesToolBtn.active{background:rgba(138,91,255,.25);border-color:rgba(138,91,255,.5);color:var(--text)}
.notesColorCtl{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 7px 3px 8px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:rgba(154,164,178,.8);
  font-size:11px;
  cursor:pointer;
}
.notesColorCtl:hover{
  border-color:rgba(138,91,255,.4);
  background:rgba(138,91,255,.18);
  color:var(--text);
}
.notesColorCtl input[type="color"]{
  width:18px;
  height:18px;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}
.notesColorCtl input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
.notesColorCtl input[type="color"]::-webkit-color-swatch{
  border:none;
  border-radius:4px;
}
.notesTextarea{width:100%;padding:12px 14px;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);border-radius:12px;color:var(--text);font-size:13px;
  line-height:1.65;resize:none;outline:none;font-family:inherit;transition:border-color .15s;
  min-height:180px;display:block}
.notesTextarea:focus{border-color:rgba(138,91,255,.45);background:rgba(255,255,255,.05)}
.notesTextarea::placeholder{color:rgba(154,164,178,.3)}
.notesTextarea:empty::before{content:attr(data-placeholder);color:rgba(154,164,178,.3);pointer-events:none}
.notesActions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.notesAddBtn{padding:9px 22px;background:linear-gradient(135deg,rgba(138,91,255,.85),rgba(0,214,255,.65));
  border:none;border-radius:9px;color:#fff;font-size:13px;font-weight:700;cursor:pointer;
  transition:filter .15s;letter-spacing:.01em}
.notesAddBtn:hover{filter:brightness(1.12)}
.notesCancelBtn{padding:9px 18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);
  border-radius:9px;color:rgba(154,164,178,.7);font-size:13px;cursor:pointer;transition:all .15s}
.notesCancelBtn:hover{color:var(--text);background:rgba(255,255,255,.09)}
/* ── RSB CAT ── */
.rsbCatGrid{margin-top:14px;display:flex;flex-direction:column;gap:6px}
.rsbCatRow{display:flex;align-items:center;gap:8px}
.rsbCatName{font-size:10.5px;color:rgba(154,164,178,.65);min-width:0;flex:1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rsbCatBar{flex:2;height:3px;background:rgba(255,255,255,.07);border-radius:3px;overflow:hidden}
.rsbCatFill{height:100%;border-radius:3px;transition:width .8s ease}
.rsbCatPct{font-size:10px;color:rgba(154,164,178,.45);min-width:28px;text-align:right}
/* ════════════════════════════════════════
   HABIT TRACKER
════════════════════════════════════════ */
/* ── Níveis de leitura ── */
.hLevelTitle{
  margin:14px 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--ht-level-title)
}
/* ── Tabs de período ── */
.habitsPeriodRow{display:flex;gap:6px;flex-wrap:wrap}
.hPeriodBtn{
  padding:6px 13px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  color:var(--ht-btn-text);
  transition:all .16s;
  white-space:nowrap
}
.hPeriodBtn:hover{color:var(--ht-text-main);background:var(--ht-btn-bg-hover);border-color:var(--ht-border-strong)}
.hPeriodBtn:focus-visible{outline:2px solid var(--ht-focus);outline-offset:2px}
.hPeriodBtn:active{transform:translateY(1px)}
.hPeriodBtn.active{
  background:color-mix(in srgb, var(--accent) 15%, var(--ht-btn-bg));
  border-color:color-mix(in srgb, var(--accent) 42%, var(--ht-btn-border));
  color:var(--ht-text-main)
}
/* ── Produtividade ── */
.habitsChartBox{padding:22px 24px 20px}
.habitsChartTop{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.habitsChartMain{display:flex;flex-direction:column;gap:7px}
.habitsChartLabel{
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ht-text-faint);
  font-weight:800
}
.habitsChartScoreRow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.habitsChartScore{
  font-size:42px;
  font-weight:900;
  line-height:1;
  letter-spacing:-1.3px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text
}
.habitsTrend{
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--ht-btn-border);
  background:var(--ht-btn-bg);
  color:var(--ht-text-muted);
  white-space:nowrap
}
.habitsTrend.up{color:var(--ht-good-text);background:var(--ht-good-bg);border-color:var(--ht-good-border)}
.habitsTrend.down{color:var(--ht-bad-text);background:var(--ht-bad-bg);border-color:var(--ht-bad-border)}
.habitsTrend.neutral{color:var(--ht-text-secondary)}
.habitsChartMeta{
  display:grid;
  gap:6px;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  width:min(360px,44%)
}
.hChartMetaItem{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  border:1px solid var(--ht-border);
  background:var(--ht-surface);
  border-radius:10px;
  padding:6px 8px;
  box-shadow:var(--ht-shadow)
}
.hChartMetaItem span{font-size:9px;color:var(--ht-text-muted)}
.hChartMetaItem strong{font-size:12.5px;line-height:1.12;color:var(--ht-text-main);font-weight:780}
.hChartMetaSub{font-size:9px;color:var(--ht-text-faint);line-height:1.2}
.habitsChart{width:100%;height:220px;overflow:visible;display:block}
/* ── Config ── */
.habitsConfigBox{padding:0;overflow:hidden;margin-top:10px;margin-bottom:14px}
.habitsConfigHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  cursor:pointer;
  transition:background .16s;
  user-select:none
}
.habitsConfigHead:hover{background:var(--ht-surface-hover)}
.habitsConfigStatus{font-size:10px;color:var(--ht-text-faint);font-weight:500;margin-left:8px}
.habitsConfigArrow{
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ht-text-muted);
  font-size:11px;
  transition:transform .22s;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  flex-shrink:0
}
.habitsConfigArrow.open{transform:rotate(90deg)}
.habitsConfigBody{padding:0 18px 18px;border-top:1px solid var(--ht-border)}
.habitsConfigGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px;margin-top:16px}
.hCfgField{display:flex;flex-direction:column;gap:5px}
.hCfgField label{
  font-size:9px;
  color:var(--ht-text-muted);
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase
}
.hCfgField input,.hCfgField select{
  padding:8px 10px;
  background:var(--ht-input-bg);
  border:1px solid var(--ht-input-border);
  border-radius:8px;
  color:var(--ht-text-main);
  font-size:12px;
  outline:none;
  transition:border-color .15s,background .15s,box-shadow .15s;
  font-family:inherit;
  -webkit-appearance:none;
  appearance:none
}
.hCfgField input:hover,.hCfgField select:hover{background:var(--ht-input-bg-hover);border-color:var(--ht-border-strong)}
.hCfgField input:focus,.hCfgField select:focus{border-color:var(--ht-focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--ht-focus) 26%, transparent)}
.hCfgField input:focus-visible,.hCfgField select:focus-visible{outline:none}
.hCfgField input::placeholder{color:var(--ht-input-placeholder)}
.hCfgField input:disabled,.hCfgField select:disabled{opacity:.55;cursor:not-allowed}
.hCfgField select{
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(148,163,184,.8)'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  padding-right:28px
}
:root[data-theme='dark'] .hCfgField select option{background:#0d1421;color:#E6EAF0}
:root[data-theme='light'] .hCfgField select option{background:#fff;color:#111827}
:root[data-theme='dark'] .hCfgField input,
:root[data-theme='dark'] .hCfgField select,
:root[data-theme='dark'] .htDateInput,
:root[data-theme='dark'] .hVooInputSm{color-scheme:dark}
:root[data-theme='light'] .hCfgField input,
:root[data-theme='light'] .hCfgField select,
:root[data-theme='light'] .htDateInput,
:root[data-theme='light'] .hVooInputSm{color-scheme:light}
.habitsConfigActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--ht-border)
}
.hCfgHint{font-size:11px;color:var(--ht-good-text);flex:1;display:flex;align-items:center;gap:5px}
.hCfgSaveBtn{
  padding:9px 22px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:1px solid color-mix(in srgb, var(--accent) 48%, var(--ht-border));
  border-radius:10px;
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:filter .15s,transform .1s,box-shadow .15s;
  letter-spacing:.02em;
  box-shadow:0 8px 20px color-mix(in srgb, var(--accent) 24%, transparent)
}
.hCfgSaveBtn:hover{filter:brightness(1.05)}
.hCfgSaveBtn:focus-visible{outline:2px solid var(--ht-focus);outline-offset:2px}
.hCfgSaveBtn:active{transform:translateY(1px)}
.hCfgSaveBtn:disabled{opacity:.6;cursor:not-allowed}
/* ── Today section ── */
.habitsToday{padding:0;overflow:hidden;margin-top:8px}
.habitsTodayHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  cursor:pointer;
  transition:background .16s;
  user-select:none
}
.habitsTodayHead:hover{background:var(--ht-surface-hover)}
.habitsTodayLeft{display:flex;flex-direction:column;gap:3px}
.habitsTodayTitle{font-size:15px;font-weight:800;color:var(--ht-text-main);line-height:1.1}
.habitsTodayDateRow{display:flex;align-items:center;gap:10px}
.habitsTodayDate{font-size:11px;color:var(--ht-text-muted)}
.htDateNav{display:flex;align-items:center;gap:6px}
.htDateNavBtn{
  width:24px;
  height:24px;
  border-radius:7px;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  color:var(--ht-btn-text);
  font-size:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .15s;
  padding:0
}
.htDateNavBtn:hover{background:var(--ht-btn-bg-hover);border-color:var(--ht-border-strong);color:var(--ht-text-main)}
.htDateNavBtn:focus-visible{outline:2px solid var(--ht-focus);outline-offset:2px}
.htDateNavBtn:active{background:var(--ht-btn-bg-active)}
.htDateNavBtn:disabled{opacity:.5;cursor:not-allowed}
.htDateInput{
  background:var(--ht-input-bg);
  border:1px solid var(--ht-input-border);
  border-radius:7px;
  color:var(--ht-text-secondary);
  font-size:10.5px;
  padding:3px 7px;
  outline:none;
  font-family:inherit;
  cursor:pointer
}
.htDateInput:hover{background:var(--ht-input-bg-hover);border-color:var(--ht-border-strong)}
.htDateInput:focus{border-color:var(--ht-focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--ht-focus) 26%, transparent)}
.htDateInput:focus-visible{outline:none}
.habitsTodayRight{display:flex;align-items:center;gap:8px}
.habitsTodayScore{
  font-size:11px;
  font-weight:800;
  padding:5px 13px;
  border-radius:20px;
  border:1px solid var(--ht-border);
  background:var(--ht-btn-bg);
  color:var(--ht-text-secondary)
}
.habitsTodayScore.score-good{color:var(--ht-good-text);background:var(--ht-good-bg);border-color:var(--ht-good-border)}
.habitsTodayScore.score-warn{color:var(--ht-warn-text);background:var(--ht-warn-bg);border-color:var(--ht-warn-border)}
.habitsTodayScore.score-bad{color:var(--ht-bad-text);background:var(--ht-bad-bg);border-color:var(--ht-bad-border)}
.habitsTodayArrow{
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ht-text-muted);
  font-size:11px;
  transition:transform .22s;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  flex-shrink:0
}
.habitsTodayArrow.open{transform:rotate(90deg)}
.habitsTodayBody{padding:0 16px 18px;border-top:1px solid var(--ht-border)}
/* ── Semantic group headers ── */
.hGroupLabel{
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--ht-text-main);
  padding:18px 2px 8px;
  margin-bottom:8px;
  border-bottom:1px solid color-mix(in srgb, var(--ht-border) 85%, transparent);
  grid-column:1/-1
}
/* ── BLOCO A: Métricas (grid 4 col) ── */
.habitsGridMetrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding-top:4px}
/* ── BLOCO B: Disciplina (grid 4 col) ── */
.habitsGridDiscipline{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-top:4px}
/* ── BLOCO C: Produção (grid 6 col, smaller cards) ── */
.habitsGridProd{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:4px}
/* ── TIPO A: Metric card ── */
.hCardMetric{
  padding:11px 12px 10px;
  border-radius:12px;
  background:var(--ht-surface);
  border:1px solid var(--ht-border);
  transition:border-color .2s,background .2s,box-shadow .2s;
  display:flex;
  flex-direction:column;
  gap:8px
}
.hCardMetric:hover{border-color:var(--ht-border-strong);background:var(--ht-surface-hover);box-shadow:var(--ht-shadow)}
.hCardMetricHead{display:flex;align-items:center;gap:7px}
.hCardMetricIcon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.9;
  flex-shrink:0;
  color:color-mix(in srgb, var(--ht-text-main) 84%, var(--ht-text-muted))
}
.hCardMetricLabel{
  font-size:11px;
  font-weight:700;
  color:var(--ht-text-secondary);
  flex:1;
  letter-spacing:.01em
}
.hCardMetricPct{
  font-size:9px;
  font-weight:800;
  padding:2px 7px;
  border-radius:10px;
  background:var(--ht-btn-bg);
  color:var(--ht-text-muted);
  border:1px solid var(--ht-btn-border);
  transition:all .2s
}
.hCardMetricPct.done{background:var(--ht-good-bg);color:var(--ht-good-text);border-color:var(--ht-good-border)}
.hCardMetricStatus{font-size:14px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.hCardMetricStatus.remaining{color:var(--ht-text-main)}
.hCardMetricStatus.done{color:var(--ht-good-text)}
.hCardMetricStatus.exceeded{
  color:var(--ht-exceeded-text);
  background:var(--ht-exceeded-bg);
  border:1px solid var(--ht-exceeded-border);
  border-radius:8px;
  padding:4px 8px
}
.hCardMetricProgress{display:flex;align-items:baseline;gap:5px}
.hCardMetricVal{font-size:20px;font-weight:780;letter-spacing:-.5px;color:var(--ht-text-main);line-height:1}
.hCardMetricUnit{font-size:10px;color:var(--ht-text-muted);font-weight:600;letter-spacing:.01em}
.hCardMetricControls{display:flex;align-items:center;gap:6px}
.hQtyBtnSm{
  width:24px;
  height:24px;
  border-radius:7px;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  color:var(--ht-btn-text);
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition:all .15s;
  flex-shrink:0;
  padding:0
}
.hQtyBtnSm:hover{background:var(--ht-btn-bg-hover);border-color:var(--ht-border-strong);color:var(--ht-text-main)}
.hQtyBtnSm:focus-visible{outline:2px solid var(--ht-focus);outline-offset:2px}
.hQtyBtnSm:active{background:var(--ht-btn-bg-active)}
.hQtyBtnSm:disabled{opacity:.45;cursor:not-allowed}
.hQtyInputSm{
  flex:1;
  background:var(--ht-input-bg);
  border:1px solid var(--ht-input-border);
  border-radius:8px;
  color:var(--ht-text-main);
  font-size:14px;
  font-weight:800;
  text-align:center;
  outline:none;
  font-family:inherit;
  min-width:0;
  width:100%;
  letter-spacing:-.3px;
  padding:4px 7px
}
.hQtyInputSm:hover{background:var(--ht-input-bg-hover);border-color:var(--ht-border-strong)}
.hQtyInputSm:focus{border-color:var(--ht-focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--ht-focus) 26%, transparent)}
.hQtyInputSm:focus-visible{outline:none}
.hQtyInputSm:disabled{opacity:.55;cursor:not-allowed}
.hQtyInputSm[type="number"]{-moz-appearance:textfield;appearance:textfield}
.hQtyInputSm::-webkit-outer-spin-button,.hQtyInputSm::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hBarThin{height:3px;background:var(--ht-chart-grid);border-radius:999px;overflow:hidden;margin-top:2px}
.hBarThinFill{height:100%;border-radius:999px;transition:width .45s cubic-bezier(.4,0,.2,1)}
/* ── TIPO A: Voo card (variant) ── */
.hCardVoo{
  padding:11px 12px 10px;
  border-radius:12px;
  background:var(--ht-surface);
  border:1px solid var(--ht-border);
  display:flex;
  flex-direction:column;
  gap:8px
}
.hVooRow{display:flex;align-items:center;gap:7px;justify-content:space-between}
.hVooInputSm{
  flex:1;
  padding:5px 8px;
  background:var(--ht-input-bg);
  border:1px solid var(--ht-input-border);
  border-radius:7px;
  color:var(--ht-text-main);
  font-size:12px;
  outline:none;
  font-family:inherit;
  width:100%;
  text-align:center;
  font-weight:700;
  transition:all .15s
}
.hVooInputSm:hover{background:var(--ht-input-bg-hover);border-color:var(--ht-border-strong)}
.hVooInputSm:focus{border-color:var(--ht-focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--ht-focus) 26%, transparent)}
.hVooInputSm:focus-visible{outline:none}
.hVooInputSm:disabled{opacity:.55;cursor:not-allowed}
.hVooLabelSm{font-size:10px;color:var(--ht-text-muted);letter-spacing:.01em;min-width:92px;flex-shrink:0}
/* ── TIPO B: Toggle card (disciplina) ── */
.hCardToggle{
  padding:12px 14px;
  border-radius:12px;
  background:var(--ht-surface);
  border:1px solid var(--ht-border);
  transition:border-color .2s,background .2s,box-shadow .2s;
  display:flex;
  align-items:center;
  gap:10px
}
.hCardToggle:hover{border-color:var(--ht-border-strong);background:var(--ht-surface-hover)}
.hCardToggle.checked{
  background:color-mix(in srgb, var(--accent) 10%, var(--ht-surface));
  border-color:color-mix(in srgb, var(--accent) 38%, var(--ht-border));
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),var(--ht-shadow)
}
.hToggleIcon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.92;
  flex-shrink:0;
  color:color-mix(in srgb, var(--ht-text-main) 84%, var(--ht-text-muted))
}
.hToggleLabel{font-size:12px;font-weight:700;color:var(--ht-text-secondary);flex:1;line-height:1.3}
.hCardToggle.checked .hToggleLabel{color:var(--ht-text-main)}
.hToggleSwitch{position:relative;width:36px;height:20px;flex-shrink:0}
.hToggleSwitch input{opacity:0;width:0;height:0;position:absolute}
.hToggleSlider{
  position:absolute;
  inset:0;
  background:var(--ht-btn-bg);
  border-radius:10px;
  cursor:pointer;
  transition:all .2s;
  border:1px solid var(--ht-btn-border)
}
.hToggleSlider::before{
  content:'';
  position:absolute;
  width:14px;
  height:14px;
  left:2px;
  top:2px;
  background:color-mix(in srgb, var(--ht-text-muted) 55%, #fff);
  border-radius:50%;
  transition:all .2s
}
.hToggleSwitch input:hover + .hToggleSlider{border-color:var(--ht-border-strong);background:var(--ht-btn-bg-hover)}
.hToggleSwitch input:focus-visible + .hToggleSlider{outline:2px solid var(--ht-focus);outline-offset:2px}
.hToggleSwitch input:checked + .hToggleSlider{
  background:color-mix(in srgb, var(--accent) 28%, var(--ht-btn-bg));
  border-color:color-mix(in srgb, var(--accent) 48%, var(--ht-btn-border))
}
.hToggleSwitch input:checked + .hToggleSlider::before{
  transform:translateX(16px);
  background:color-mix(in srgb, var(--accent) 78%, #fff)
}
.hToggleSwitch input:disabled + .hToggleSlider{opacity:.55;cursor:not-allowed}
/* ── TIPO C: Produção mini card ── */
.hCardProd{
  padding:13px 14px;
  border-radius:13px;
  background:var(--ht-surface);
  border:1px solid var(--ht-border);
  transition:border-color .2s,background .2s,box-shadow .2s;
  display:flex;
  flex-direction:column;
  gap:10px;
  cursor:pointer
}
.hCardProd:hover{border-color:var(--ht-border-strong);background:var(--ht-surface-hover)}
.hCardProd.checked{
  background:color-mix(in srgb, var(--accent) 10%, var(--ht-surface));
  border-color:color-mix(in srgb, var(--accent) 38%, var(--ht-border));
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),var(--ht-shadow)
}
.hProdHead{display:flex;align-items:flex-start;gap:8px}
.hProdIcon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.95;
  flex-shrink:0;
  margin-top:1px;
  color:color-mix(in srgb, var(--ht-text-main) 84%, var(--ht-text-muted))
}
.hCardMetricIcon svg,.hToggleIcon svg,.hProdIcon svg{
  width:16px;
  height:16px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.85;
  stroke-linecap:round;
  stroke-linejoin:round
}
.hCardMetricIcon svg .fill,.hToggleIcon svg .fill,.hProdIcon svg .fill{
  fill:currentColor;
  stroke:none
}
.hProdLabel{
  font-size:13px;
  font-weight:780;
  color:var(--ht-text-secondary);
  flex:1;
  line-height:1.35
}
.hCardProd.checked .hProdLabel{color:var(--ht-text-main)}
.hProdCheck{
  width:18px;
  height:18px;
  border-radius:5px;
  border:1px solid var(--ht-btn-border);
  background:transparent;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  transition:all .15s;
  flex-shrink:0;
  position:relative
}
.hProdCheck:hover{border-color:var(--ht-border-strong);background:var(--ht-btn-bg-hover)}
.hProdCheck:focus-visible{outline:2px solid var(--ht-focus);outline-offset:2px}
.hCardProd.checked .hProdCheck{
  border-color:color-mix(in srgb, var(--accent) 52%, var(--ht-btn-border));
  background:color-mix(in srgb, var(--accent) 24%, var(--ht-btn-bg))
}
.hCardProd.checked .hProdCheck::after{
  content:'✓';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:10px;
  color:color-mix(in srgb, var(--accent) 84%, #fff);
  font-weight:900;
  line-height:1
}
.hProdBar{height:3px;background:var(--ht-chart-grid);border-radius:999px;overflow:hidden}
.hProdBarFill{height:100%;border-radius:999px;transition:width .3s}
/* ── Monthly accordions ── */
.hMonthAcc{
  margin-top:8px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--ht-border);
  background:var(--ht-surface);
  transition:border-color .2s,box-shadow .2s
}
.hMonthAcc:hover{border-color:var(--ht-border-strong);box-shadow:var(--ht-shadow)}
.hMonthHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  cursor:pointer;
  transition:background .15s;
  user-select:none
}
.hMonthHead:hover{background:var(--ht-surface-hover)}
.hMonthName{font-size:14px;font-weight:800;color:var(--ht-text-main);letter-spacing:-.2px}
.hMonthMeta{display:flex;gap:14px;align-items:center}
.hMonthStat{font-size:10.5px;color:var(--ht-text-muted)}
.hMonthStatVal{font-weight:800;color:var(--ht-text-main)}
.hMonthArrow{
  width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ht-text-muted);
  font-size:10px;
  transition:transform .22s;
  background:var(--ht-btn-bg);
  border:1px solid var(--ht-btn-border);
  flex-shrink:0
}
.hMonthArrow.open{transform:rotate(90deg)}
.hMonthBody{display:none;padding:18px;border-top:1px solid var(--ht-border)}
.hMonthBody.open{display:block}
/* ── Month body: heatmap + donut side by side ── */
.hMonthViz{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(260px,1fr);
  gap:14px;
  align-items:stretch;
  margin-bottom:16px
}
.hHeatmapWrap,.hInsightWrap{
  border:1px solid var(--ht-border);
  border-radius:14px;
  background:var(--ht-surface-strong);
  padding:14px;
  min-height:228px;
  box-shadow:var(--ht-shadow)
}
.hHeatmapWrap{display:flex;flex-direction:column;justify-content:flex-start}
.hHeatmapTitle,.hInsightTitle{
  font-size:9px;
  color:var(--ht-text-faint);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  margin-bottom:10px
}
.hHeatmap{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.hHeatmapDayName{text-align:center;font-size:8px;color:var(--ht-text-faint);padding-bottom:2px;font-weight:700;letter-spacing:.04em}
.hHeatCell{
  aspect-ratio:1;
  border-radius:6px;
  cursor:default;
  transition:transform .12s,opacity .12s,border-color .16s;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid color-mix(in srgb, var(--ht-border) 75%, transparent)
}
.hHeatCell:hover{transform:scale(1.09);z-index:2;opacity:1!important;border-color:var(--ht-border-strong)}
.hHeatCellPct{
  font-size:9px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1;
  text-shadow:0 1px 1px rgba(0,0,0,.08)
}
.hHeatCellEmpty{aspect-ratio:1;border-radius:6px;background:transparent}
.hInsightWrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  background:
    radial-gradient(120% 100% at 0% 0%,color-mix(in srgb, var(--accent) 14%, transparent),transparent 58%),
    var(--ht-surface-strong);
}
.hInsightGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  height:100%
}
.hInsightCard{
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb, var(--ht-border) 88%, transparent);
  border-radius:11px;
  background:linear-gradient(165deg,color-mix(in srgb, var(--ht-surface) 90%, transparent),color-mix(in srgb, var(--ht-surface-hover) 52%, transparent));
  padding:11px 11px 10px;
  display:flex;
  flex-direction:column;
  gap:5px;
  justify-content:space-between
}
.hInsightCard::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:2px;
  background:color-mix(in srgb, var(--ht-border-strong) 84%, transparent);
}
.hInsightCard.good::before{background:linear-gradient(90deg,#22c55e,#4ade80)}
.hInsightCard.warn::before{background:linear-gradient(90deg,#f59e0b,#fbbf24)}
.hInsightCard.info::before{background:linear-gradient(90deg,#38bdf8,#0ea5e9)}
.hInsightCard.focus::before{background:linear-gradient(90deg,#a78bfa,#22d3ee)}
.hInsightLabel{
  font-size:9px;
  color:var(--ht-text-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800
}
.hInsightValue{
  font-size:20px;
  color:var(--ht-text-main);
  font-weight:900;
  letter-spacing:-.03em;
  line-height:1.05
}
.hInsightSub{
  font-size:10px;
  color:var(--ht-text-secondary);
  font-weight:650;
  line-height:1.35
}
/* ── Habit bars in month ── */
.hMonthBars{display:flex;flex-direction:column;gap:6px}
.hBarRow{display:flex;align-items:center;gap:10px}
.hBarIcon{font-size:13px;flex-shrink:0;width:18px;text-align:center;opacity:.85}
.hBarLabel{
  font-size:10.5px;
  color:var(--ht-text-secondary);
  width:125px;
  flex-shrink:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.hBarTrack{flex:1;height:5px;background:var(--ht-chart-grid);border-radius:4px;overflow:hidden}
.hBarFill{height:100%;border-radius:4px;transition:width .7s cubic-bezier(.4,0,.2,1)}
.hBarPct{font-size:9.5px;color:var(--ht-text-muted);min-width:38px;text-align:right;font-weight:700}
@media(max-width:900px){
  .habitsChartMeta{width:100%;max-width:none}
  .habitsGridMetrics{grid-template-columns:repeat(2,1fr)}
  .habitsGridDiscipline{grid-template-columns:repeat(2,1fr)}
  .habitsGridProd{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .habitsChartTop{flex-direction:column;align-items:stretch}
  .habitsChartMeta{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .hChartMetaItem{align-items:flex-start}
  .habitsGridMetrics{grid-template-columns:repeat(2,1fr)}
  .habitsGridDiscipline{grid-template-columns:repeat(2,1fr)}
  .habitsGridProd{grid-template-columns:repeat(2,1fr)}
  .habitsConfigGrid{grid-template-columns:1fr 1fr}
  .hMonthViz{grid-template-columns:1fr}
  .hInsightGrid{grid-template-columns:1fr 1fr}
}
@media(max-width:440px){
  .habitsGridMetrics{grid-template-columns:1fr 1fr}
  .habitsGridDiscipline{grid-template-columns:1fr 1fr}
  .habitsGridProd{grid-template-columns:repeat(2,1fr)}
  .habitsChartScore{font-size:35px}
  .habitsChartMeta{grid-template-columns:1fr}
  .hInsightGrid{grid-template-columns:1fr}
}
/* ── READ FILTER ROW ── */
.readFilterRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.readFilterGroup{display:flex;gap:3px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:8px;padding:3px}
.readFilterBtn{padding:4px 11px;border-radius:6px;font-size:11px;font-weight:600;cursor:pointer;
  background:transparent;border:none;color:rgba(154,164,178,.55);transition:all .14s;white-space:nowrap}
.readFilterBtn:hover{color:var(--text)}
.readFilterBtn.active{background:rgba(138,91,255,.18);color:var(--text)}
.readSearchInput{padding:6px 10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:8px;color:var(--text);font-size:12px;outline:none;width:160px;font-family:inherit}
.readSearchInput:focus{border-color:rgba(138,91,255,.4)}
.readSearchInput::placeholder{color:rgba(154,164,178,.3)}
.readEditToggleBtn{padding:5px 10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:8px;color:rgba(154,164,178,.5);font-size:13px;cursor:pointer;transition:all .14s}
.readEditToggleBtn:hover{color:var(--text);background:rgba(255,255,255,.08)}
.readEditToggleBtn.active{color:var(--accent);border-color:rgba(138,91,255,.4);background:rgba(138,91,255,.1)}
.readAddBtn{padding:5px 12px;background:rgba(138,91,255,.15);border:1px solid rgba(138,91,255,.35);
  border-radius:8px;color:rgba(138,91,255,.9);font-size:12px;font-weight:700;cursor:pointer;transition:all .14s}
.readAddBtn:hover{background:rgba(138,91,255,.25)}
.readRefreshBtn{padding:5px 10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px;color:rgba(154,164,178,.5);font-size:13px;cursor:pointer;transition:all .14s}
.readRefreshBtn:hover{color:var(--text);background:rgba(255,255,255,.08)}
.bookInlineEditBtn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:13px;padding:2px 4px;border-radius:6px}
.bookInlineEditBtn:hover{color:var(--text);background:rgba(255,255,255,.07)}
/* ── BOOK CATEGORY TAG ── */
.bookBottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:5px}
.bookCategory{font-size:9.5px;color:rgba(154,164,178,.3);font-weight:400;letter-spacing:.04em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
/* ── BOOK EDIT MODE ── */
.bookItemEdit{flex-direction:column;height:auto!important;min-height:auto!important}
.bookItemEdit .bookCoverArea{width:100%;min-width:unset;height:140px;flex-shrink:0}
.bookItemEdit .bookMeta{padding:12px;gap:8px}
.bookEditCoverRow{display:flex;gap:6px;align-items:center}
.bookEditUploadBtn{padding:5px 8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  border-radius:7px;cursor:pointer;font-size:13px;color:var(--muted);flex-shrink:0;display:flex;align-items:center}
.bookEditUploadBtn:hover{background:rgba(255,255,255,.1)}
.bookEditField{display:flex;flex-direction:column;gap:3px}
.bookEditLbl{font-size:9px;color:rgba(154,164,178,.4);text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.bookEditInput{padding:5px 8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);
  border-radius:7px;color:var(--text);font-size:12px;outline:none;font-family:inherit;min-height:28px}
.bookEditInput:focus,.bookEditInput:focus-within{border-color:rgba(138,91,255,.45)}
.bookEditInput[contenteditable]{cursor:text}
.bookEditInput select,.bookEditInput option{background:#0d1421;color:#E6EAF0}
.bookEditRow{display:flex;gap:8px;flex-wrap:wrap}
select.bookEditInput{appearance:none;-webkit-appearance:none;background-color:#0d1421}
.bookEditNumCtl{display:flex;align-items:center;gap:4px}
.bookEditNumCtl .bookEditInput{text-align:center;padding:5px 4px}
.bookNumBtn{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);color:rgba(154,164,178,.7);cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;font-size:12px;padding:0;flex-shrink:0}
.bookNumBtn:hover{background:rgba(138,91,255,.16);border-color:rgba(138,91,255,.35);color:var(--text)}
/* Module refresh: Idiomas + Leitura */
:root[data-theme='dark'] .langModule{
  --lang-bg:rgba(12,18,27,.72);
  --lang-surface:rgba(20,28,40,.72);
  --lang-surface-soft:rgba(255,255,255,.028);
  --lang-border:rgba(148,163,184,.25);
  --lang-border-strong:rgba(148,163,184,.38);
  --lang-text:#e5ebf3;
  --lang-text-muted:#9aa5b5;
  --lang-badge-bg:rgba(138,91,255,.18);
  --lang-badge-text:#d8c7ff;
  --lang-shadow:0 10px 24px rgba(0,0,0,.3);
}
:root[data-theme='light'] .langModule{
  --lang-bg:#F4F6F8;
  --lang-surface:#FFFFFF;
  --lang-surface-soft:#FFFFFF;
  --lang-border:#E2E8F0;
  --lang-border-strong:#CBD5E1;
  --lang-text:#111827;
  --lang-text-muted:#4B5563;
  --lang-badge-bg:#EEF2FF;
  --lang-badge-text:#3730A3;
  --lang-shadow:0 10px 20px rgba(0,0,0,.06),0 2px 6px rgba(0,0,0,.04);
}
.langModule .idiV2Shell{
  max-width:1320px;
  margin:0 auto;
  background:var(--lang-bg);
  border:1px solid var(--lang-border);
  border-radius:16px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.langModule .idiV2Header{
  display:grid;
  grid-template-columns:minmax(280px,1.2fr) minmax(220px,1fr) auto;
  gap:12px;
  align-items:end;
}
.langModule .idiV2HeaderLeft h2{
  margin:0 0 8px;
  font-size:20px;
  color:var(--lang-text);
}
.langModule .idiV2Langs{display:flex;gap:8px;flex-wrap:wrap}
.langModule .idiV2LangBtn{
  background:var(--lang-surface-soft);
  border:1px solid var(--lang-border);
  color:var(--lang-text-muted);
  min-height:34px;
  padding:8px 12px;
}
.langModule .idiV2LangBtn:hover{background:var(--lang-surface);border-color:var(--lang-border-strong);color:var(--lang-text)}
.langModule .idiV2LangBtn.active{
  background:color-mix(in srgb, var(--accent) 12%, var(--lang-surface));
  border-color:color-mix(in srgb, var(--accent) 44%, var(--lang-border));
  color:var(--lang-text);
}
.langModule .idiV2Search{
  width:100%;
  min-width:0;
  height:36px;
  background:var(--lang-surface);
  border:1px solid var(--lang-border);
  color:var(--lang-text);
}
.langModule .idiV2Search::placeholder{color:#9CA3AF}
.langModule .idiV2Search:hover{border-color:var(--lang-border-strong)}
.langModule .idiV2Search:focus-visible{
  outline:none;
  border-color:color-mix(in srgb, var(--accent) 48%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.langModule .idiV2HeaderRight{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;align-items:center;align-self:center}
.langModule .idiV2PrimaryBtn,.langModule .idiV2SecondaryBtn,.langModule .idiV2IconBtn{
  height:36px;
  border-radius:10px;
  padding:0 13px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:all .14s;
}
.langModule .idiV2PrimaryBtn{
  border:1px solid color-mix(in srgb, var(--accent) 45%, var(--lang-border));
  background:linear-gradient(135deg,color-mix(in srgb, var(--accent) 34%, #ffffff00),color-mix(in srgb, var(--accent2) 20%, #ffffff00));
  color:var(--lang-text);
}
.langModule .idiV2SecondaryBtn{
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  color:var(--lang-text-muted);
}
.langModule .idiV2IconBtn{
  min-width:36px;
  width:36px;
  padding:0;
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  color:var(--lang-text-muted);
  font-size:16px;
  line-height:1;
}
.langModule .idiV2PrimaryBtn:hover,.langModule .idiV2SecondaryBtn:hover{transform:translateY(-1px);box-shadow:var(--lang-shadow)}
.langModule .idiV2IconBtn:hover{transform:translateY(-1px);box-shadow:var(--lang-shadow);color:var(--lang-text)}
.langModule .idiV2IconBtn.syncing{animation:idiV2Spin 1s linear infinite}
@keyframes idiV2Spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.langModule .idiV2PrimaryBtn:focus-visible,.langModule .idiV2SecondaryBtn:focus-visible,.langModule .idiV2IconBtn:focus-visible,.langModule .idiV2LangBtn:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 40%, transparent);outline-offset:2px}
.langModule .idiV2HeaderRight .idiV2PrimaryBtn,
.langModule .idiV2HeaderRight .idiV2SecondaryBtn,
.langModule .idiV2HeaderRight .idiV2IconBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.langModule .idiV2NewSelect{
  height:36px;
  min-width:190px;
  border-radius:10px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  color:var(--lang-text);
  padding:0 10px;
  font-size:12px;
  outline:none;
}
.langModule .idiV2NewSelect:hover{border-color:var(--lang-border-strong)}
.langModule .idiV2NewSelect:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 46%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiV2Meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--lang-text-muted);
  font-size:11px;
}
.langModule .idiV2Status{
  padding:3px 9px;
  border-radius:999px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
}
.langModule .idiV2Status.ok{
  color:color-mix(in srgb, #16a34a 80%, var(--lang-text));
  border-color:color-mix(in srgb, #16a34a 35%, var(--lang-border));
}
.langModule .idiV2Status.warn{
  color:color-mix(in srgb, #ca8a04 84%, var(--lang-text));
  border-color:color-mix(in srgb, #ca8a04 35%, var(--lang-border));
}
.langModule .idiV2Status.off{
  color:color-mix(in srgb, #dc2626 84%, var(--lang-text));
  border-color:color-mix(in srgb, #dc2626 35%, var(--lang-border));
}
.langModule #idi-v2-sections{
  max-width:1320px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.langModule .idiV2Section{
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  border-radius:12px;
  box-shadow:var(--lang-shadow);
  margin:0;
}
.langModule .idiV2SectionHead{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:11px 14px;
  border-radius:11px;
  background:linear-gradient(180deg,color-mix(in srgb, var(--lang-surface-soft) 74%, transparent),transparent);
}
.langModule .idiV2Section.open .idiV2SectionHead{border-bottom:1px solid var(--lang-border)}
.langModule .idiV2SectionTitle{
  display:flex;
  align-items:center;
  gap:8px;
  color:color-mix(in srgb, var(--lang-text) 90%, #b5c0ce);
  font-size:12.6px;
  font-weight:580;
  letter-spacing:.01em;
}
.langModule .idiV2SectionChevron{
  font-size:13px;
  color:color-mix(in srgb, var(--accent) 54%, var(--lang-text-muted));
  transition:transform .16s;
}
.langModule .idiV2Section.open .idiV2SectionChevron{transform:rotate(90deg)}
.langModule .idiV2SectionCount{
  background:var(--lang-badge-bg);
  color:var(--lang-badge-text);
  border:1px solid color-mix(in srgb, var(--accent) 32%, var(--lang-border));
  font-weight:600;
}
.langModule .idiV2SectionActions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.langModule .idiV2SectionBtn{
  min-height:30px;
  padding:0 10px;
  background:var(--lang-surface);
  border:1px solid var(--lang-border);
  color:var(--lang-text-muted);
}
.langModule .idiV2SectionBtn:hover{color:var(--lang-text);border-color:var(--lang-border-strong)}
.langModule .idiV2SectionBtn.primary{
  background:color-mix(in srgb, var(--accent) 12%, var(--lang-surface));
  border-color:color-mix(in srgb, var(--accent) 42%, var(--lang-border));
  color:var(--lang-text);
}
.langModule .idiAddIconBtn{
  width:30px;height:30px;border:none;background:transparent;color:color-mix(in srgb, var(--accent) 72%, var(--lang-text) 28%);
}
.langModule .idiAddIconBtn:hover{
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  color:color-mix(in srgb, var(--accent2) 72%, var(--lang-text) 28%);
  text-shadow:0 0 10px color-mix(in srgb, var(--accent2) 40%, transparent);
}
.langModule .idiV2SectionBtn:focus-visible,.langModule .idiV2ActionBtn:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset:2px;
}
.langModule .idiV2SectionBody{
  border-top:1px solid var(--lang-border);
  padding:12px 14px 14px;
}
.langModule .idiV2CardList{gap:10px}
.langModule .idiWordModal{
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  border-radius:12px;
  padding:10px;
}
.langModule .idiWordModalBox{display:flex;flex-direction:column;gap:9px}
.langModule .idiWordModalHead{display:flex;align-items:center;justify-content:space-between;color:var(--lang-text)}
.langModule .idiWordModalSub{font-size:11px;color:var(--lang-text-muted)}
.langModule .idiWordBulkInput{
  width:100%;
  min-height:92px;
  resize:vertical;
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface);
  color:var(--lang-text);
  padding:9px 10px;
  font-size:12px;
  outline:none;
}
.langModule .idiWordBulkInput:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 46%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiWordModalActions{display:flex;justify-content:flex-end;gap:8px}
.langModule .idiEntryModal{
  position:fixed;
  inset:0;
  z-index:2400;
  background:rgba(2,6,23,.58);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.langModule .idiEntryModalBox{
  width:min(760px,100%);
  max-height:min(86vh,760px);
  overflow:auto;
  border:1px solid var(--lang-border);
  background:linear-gradient(180deg,var(--lang-surface-soft),var(--lang-surface));
  border-radius:16px;
  box-shadow:0 26px 58px rgba(2,6,23,.46);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.langModule .idiEntryModalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:var(--lang-text);
}
.langModule .idiEntryModalHead strong{font-size:15px;letter-spacing:.01em}
.langModule .idiEntryModalSub{font-size:11px;color:var(--lang-text-muted)}
.langModule .idiEntryModalGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.langModule .idiEntryField{display:flex;flex-direction:column;gap:5px}
.langModule .idiEntryField.full{grid-column:1/-1}
.langModule .idiEntryField span{
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--lang-text-muted);
  font-weight:700;
}
.langModule .idiEntryInput,
.langModule .idiEntryArea,
.langModule .idiEntrySelect{
  width:100%;
  min-height:32px;
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface);
  color:var(--lang-text);
  padding:8px 10px;
  font-size:12px;
  outline:none;
  font-family:inherit;
}
.langModule .idiEntryArea{resize:vertical;min-height:112px}
.langModule .idiEntryInput:focus-visible,
.langModule .idiEntryArea:focus-visible,
.langModule .idiEntrySelect:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 52%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiEntryModalActions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:2px;
}
.langModule .idiDescModal{
  position:fixed;
  inset:0;
  z-index:2460;
  background:rgba(2,6,23,.62);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.langModule .idiDescModalBox{
  width:min(700px,100%);
  max-height:min(84vh,760px);
  overflow:auto;
  border:1px solid var(--lang-border);
  border-radius:14px;
  background:linear-gradient(180deg,var(--lang-surface-soft),var(--lang-surface));
  box-shadow:0 24px 56px rgba(2,6,23,.5);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.langModule .idiDescModalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.langModule .idiDescModalHead strong{
  color:var(--lang-text);
  font-size:14px;
  line-height:1.25;
}
.langModule .idiDescModalBody{
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface-soft);
  color:var(--lang-text);
  font-size:12px;
  line-height:1.5;
  padding:10px;
  white-space:pre-wrap;
}
.langModule .idiDescModalExample{
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface);
  color:var(--lang-text-muted);
  font-size:11px;
  line-height:1.45;
  padding:8px 10px;
  white-space:pre-wrap;
}
.langModule .idiMvpPanel{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(420px,1.4fr) minmax(260px,1fr);
  gap:10px;
  margin-bottom:4px;
}
.langModule .idiMvpLevelBox,
.langModule .idiMvpRankBox{
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  border-radius:12px;
  padding:10px 12px;
}
.langModule .idiMvpLevelLbl{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--lang-text-muted);font-weight:700}
.langModule .idiMvpLevelLblWrap{display:flex;align-items:center;justify-content:space-between;gap:8px}
.langModule .idiMvpCfgBtn{
  min-height:24px;
  min-width:24px;
  border-radius:7px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  color:var(--lang-text-muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  padding:0 7px;
}
.langModule .idiMvpCfgBtn:hover{color:var(--lang-text);border-color:color-mix(in srgb, var(--accent) 44%, var(--lang-border))}
.langModule .idiMvpCfgPanel{
  margin-top:8px;
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface-soft);
  padding:8px;
  overflow:auto;
}
.langModule .idiMvpCfgHead{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--lang-text)}
.langModule .idiMvpCfgHead span{font-size:10px;color:var(--lang-text-muted)}
.langModule .idiMvpCfgGrid{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.langModule .idiMvpCfgRow{
  display:grid;
  grid-template-columns:minmax(120px,1fr) repeat(6,minmax(54px,1fr));
  gap:6px;
  align-items:center;
}
.langModule .idiMvpCfgMetric{font-size:11px;font-weight:700;color:var(--lang-text);padding-left:2px}
.langModule .idiMvpCfgField{display:flex;flex-direction:column;gap:3px;font-size:10px;color:var(--lang-text-muted)}
.langModule .idiMvpCfgField input{
  width:100%;
  min-height:28px;
  border:1px solid var(--lang-border);
  border-radius:8px;
  background:var(--lang-surface);
  color:var(--lang-text);
  font-size:11px;
  padding:0 6px;
}
.langModule .idiMvpCfgActions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}
.langModule .idiMvpLevelVal{font-size:32px;font-weight:800;color:var(--lang-text);line-height:1.05;margin-top:6px}
.langModule .idiMvpLevelSub{font-size:11px;color:var(--lang-text-muted);margin-top:5px}
.langModule .idiMvpMiniChart{width:100%;height:auto;display:block}
.langModule .idiMvpEvolutionWrap{
  margin-top:9px;
  border:1px solid var(--lang-border);
  border-radius:11px;
  background:var(--lang-surface-soft);
  padding:8px;
}
.langModule .idiMvpEvolutionChart{
  width:100%;
  height:auto;
  display:block;
}
.langModule .idiMvpEvolutionLegend{
  margin-top:7px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.langModule .idiMvpEvolutionLegendItem{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  color:var(--lang-text-muted);
  font-size:10px;
  font-weight:700;
}
.langModule .idiMvpEvolutionDot{
  width:8px;
  height:8px;
  border-radius:999px;
  flex-shrink:0;
}
.langModule .idiMvpMiniGoal{font-size:11px;color:var(--lang-text-muted);margin-top:6px;line-height:1.35}
.langModule .idiMvpMetricGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.langModule .idiMvpMetric{
  border:1px solid var(--lang-border);
  background:linear-gradient(180deg,var(--lang-surface),var(--lang-surface-soft));
  border-radius:10px;
  padding:9px 10px;
}
.langModule .idiMvpMetricTop{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.langModule .idiMvpMetricLbl{font-size:10px;color:var(--lang-text-muted);text-transform:uppercase;letter-spacing:.06em}
.langModule .idiMvpMetricCefr{
  min-height:20px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 42%, var(--lang-border));
  background:color-mix(in srgb, var(--accent) 14%, var(--lang-surface));
  color:var(--lang-text);
  font-size:10px;
  font-weight:800;
  letter-spacing:.03em;
  display:inline-flex;
  align-items:center;
}
.langModule .idiMvpMetricVal{font-size:20px;font-weight:800;color:var(--lang-text);line-height:1.1;margin-top:4px}
.langModule .idiMvpMetricSub{font-size:11px;color:var(--lang-text-muted);margin-top:4px}
.langModule .idiMvpRankHead{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;color:var(--lang-text)}
.langModule .idiMvpRankTog{display:flex;gap:6px;align-items:center}
.langModule .idiMvpRankMeta{font-size:11px;color:var(--lang-text-muted);margin:6px 0}
.langModule .idiMvpRankRow{display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-top:1px dashed var(--lang-border);font-size:12px;color:var(--lang-text)}
.langModule .idiMvpRankSub{font-size:11px;color:var(--lang-text-muted);margin-top:3px}
.langModule .idiMvpRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  border-radius:9px;
}
.langModule .idiMvpTerm{
  font-size:12px;
  font-weight:700;
  color:var(--lang-text);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.langModule .idiMvpActs{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.langModule .idiIconMiniBtn{
  width:24px;
  height:24px;
  min-width:24px;
  min-height:24px;
  border:1px solid var(--lang-border);
  border-radius:7px;
  background:var(--lang-surface);
  color:var(--lang-text-muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.langModule .idiIconMiniBtn svg{
  width:13px;
  height:13px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.langModule .idiIconMiniBtn:hover{
  color:var(--lang-text);
  border-color:var(--lang-border-strong);
}
.langModule .idiPronGrid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-height:560px;
  overflow:auto;
  padding-right:4px;
  align-content:flex-start;
}
.langModule .idiPronItem{
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  border-radius:999px;
  padding:4px 6px;
  display:inline-flex;
  width:auto;
  max-width:100%;
  gap:5px;
  align-items:center;
}
.langModule .idiPronWord{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  font-weight:650;
  color:var(--lang-text);
  max-width:170px;
}
.langModule .idiPronItem .idiMvpStatusSel{
  min-height:24px;
  height:24px;
  font-size:10px;
  padding:0 5px;
  border-radius:999px;
  width:auto;
  max-width:118px;
}
.langModule .idiPronItem .idiV2SectionBtn{min-height:24px;height:24px;padding:0 7px;font-size:10px;border-radius:999px}
.langModule .idiDeleteX{
  border:none;
  background:transparent;
  color:var(--lang-text-muted);
  font-size:12px;
  line-height:1;
  padding:0 2px;
  cursor:pointer;
  opacity:.68;
}
.langModule .idiDeleteX:hover{opacity:1;color:#ef4444}
.langModule .idiPronItem .idiDeleteX{font-size:11px;padding:0 1px}
.langModule .idiAviationGrid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-height:500px;
  overflow:auto;
  padding-right:4px;
  align-content:flex-start;
}
.langModule .idiAviationItem{
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  border-radius:999px;
  padding:4px 6px;
  display:inline-flex;
  width:auto;
  max-width:100%;
  gap:5px;
  align-items:center;
}
.langModule .idiAviationWord{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  font-weight:650;
  color:var(--lang-text);
  max-width:170px;
}
.langModule .idiAviationItem .idiV2SectionBtn{
  min-height:24px;
  height:24px;
  padding:0 7px;
  font-size:10px;
  border-radius:999px;
}
.langModule .idiAviationItem .idiDeleteX{font-size:11px;padding:0 1px}
.langModule .idiMvpStatusSel{
  min-height:30px;
  border-radius:8px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  color:var(--lang-text);
  font-size:12px;
  padding:0 8px;
  outline:none;
}
.langModule .idiMvpStatusSel:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 46%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiBdtComposer{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface-soft);
  padding:9px;
  margin-bottom:10px;
}
.langModule .idiBdtTitleInput,
.langModule .idiBdtLinkInput,
.langModule .idiBdtTextInput{
  width:100%;
  border:1px solid var(--lang-border);
  border-radius:9px;
  background:var(--lang-surface);
  color:var(--lang-text);
  font-size:12px;
  font-family:inherit;
  outline:none;
}
.langModule .idiBdtTitleInput,
.langModule .idiBdtLinkInput{
  min-height:34px;
  padding:0 10px;
}
.langModule .idiBdtTextInput{
  min-height:120px;
  resize:vertical;
  padding:9px 10px;
  line-height:1.45;
}
.langModule .idiBdtTitleInput:focus-visible,
.langModule .idiBdtLinkInput:focus-visible,
.langModule .idiBdtTextInput:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 46%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiBdtList{display:flex;flex-direction:column;gap:8px}
.langModule .idiBdtCard{
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface-soft);
  padding:9px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.langModule .idiBdtHead{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.langModule .idiBdtTitle{
  font-size:12px;
  font-weight:800;
  color:var(--lang-text);
  line-height:1.35;
}
.langModule .idiBdtLink{
  font-size:11px;
  color:color-mix(in srgb, var(--accent) 65%, var(--lang-text));
  text-decoration:none;
}
.langModule .idiBdtLink:hover{text-decoration:underline}
.langModule .idiBdtBody{
  font-size:12px;
  color:var(--lang-text);
  line-height:1.55;
  white-space:pre-wrap;
  max-height:220px;
  overflow:auto;
  padding-right:2px;
}
.langModule .idiBdtStages{display:flex;gap:6px;flex-wrap:wrap}
.langModule .idiBdtStageBtn{
  min-height:25px;
  padding:0 8px;
  border:1px solid var(--lang-border);
  border-radius:999px;
  background:var(--lang-surface);
  color:var(--lang-text-muted);
  font-size:10.5px;
  font-weight:700;
  cursor:pointer;
}
.langModule .idiBdtStageBtn.active{
  background:color-mix(in srgb, var(--accent) 16%, var(--lang-surface));
  border-color:color-mix(in srgb, var(--accent) 44%, var(--lang-border));
  color:var(--lang-text);
}
.idiDescTip{
  position:fixed;
  z-index:9999;
  max-width:320px;
  padding:9px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.35);
  background:#101827;
  color:#e5ebf3;
  font-size:12px;
  line-height:1.45;
  box-shadow:0 14px 28px rgba(0,0,0,.45);
  pointer-events:none;
}
@media(max-width:1180px){
  .langModule .idiMvpPanel{grid-template-columns:1fr}
}
.langModule .idiV2FilterRow select,.langModule .idiV2FilterRow input{
  min-height:32px;
  background:var(--lang-surface);
  border:1px solid var(--lang-border);
  color:var(--lang-text);
}
.langModule .idiV2FilterRow select:focus-visible,.langModule .idiV2FilterRow input:focus-visible,
.langModule .idiV2EditInput:focus-visible,.langModule .idiV2EditArea:focus-visible,.langModule .idiV2EditSelect:focus-visible{
  outline:none;
  border-color:color-mix(in srgb, var(--accent) 46%, var(--lang-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.langModule .idiV2Card{
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  border-radius:12px;
}
.langModule .idiV2CardTitle{font-size:13px;color:var(--lang-text)}
.langModule .idiV2CardMeta{color:var(--lang-text-muted)}
.langModule .idiV2Tag{
  background:var(--lang-badge-bg);
  border:1px solid color-mix(in srgb, var(--accent) 28%, var(--lang-border));
  color:var(--lang-badge-text);
}
.langModule .idiV2ActionBtn{
  min-height:30px;
  background:var(--lang-surface);
  border:1px solid var(--lang-border);
  color:var(--lang-text-muted);
}
.langModule .idiV2ActionBtn:hover{color:var(--lang-text);border-color:var(--lang-border-strong)}
.langModule .idiV2EditInput,.langModule .idiV2EditArea,.langModule .idiV2EditSelect{
  background:var(--lang-surface);
  border:1px solid var(--lang-border);
  color:var(--lang-text);
}
.langModule .idiV2TblWrap{border:1px solid var(--lang-border)}
:root[data-theme='light'] .langModule .idiV2Tbl th{background:#F8FAFC;color:#334155}
:root[data-theme='dark'] .langModule .idiV2Tbl th{background:#0f1520;color:#94a3b8}
.langModule[data-idi-lang='pt'] .idiV2SectionBody{
  padding:9px 11px 11px;
}
.langModule .idiPtCompactGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:6px;
}
.langModule .idiPtCompactGrid .idiMvpRow{
  min-height:36px;
  padding:6px 7px;
  border-radius:8px;
  gap:6px;
}
.langModule .idiPtCompactGrid .idiMvpTerm{
  font-size:11px;
  max-width:220px;
}
.langModule .idiPtCompactGrid .idiMvpActs{
  gap:4px;
  flex-wrap:nowrap;
}
.langModule .idiPtCompactGrid .idiMvpStatusSel{
  min-height:24px;
  height:24px;
  font-size:10px;
  padding:0 5px;
  border-radius:999px;
}
.langModule .idiPtCardGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:6px;
}
.langModule .idiPtCard{
  border-radius:10px;
  padding:7px 8px;
}
.langModule .idiPtCard .idiV2CardTop{
  margin-bottom:4px;
}
.langModule .idiPtCard .idiV2CardTitle{
  font-size:12px;
  line-height:1.25;
}
.langModule .idiPtCard .idiV2CardMeta{
  font-size:10px;
  line-height:1.35;
}
.langModule .idiPtCard .idiV2CardActions{
  margin-top:6px;
  gap:4px;
}
.langModule .idiPtGrammarCard{
  border-radius:12px;
  padding:10px 11px;
  min-height:128px;
}
.langModule .idiPtGrammarCard .idiV2CardTop{
  margin-bottom:6px;
}
.langModule .idiPtGrammarCard .idiV2CardTitle{
  font-size:13px;
  line-height:1.42;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  max-width:none;
}
.langModule .idiPtGrammarCard .idiV2CardActions{
  margin-top:8px;
  gap:6px;
}
.langModule .idiPtGrammarCard .idiMvpStatusSel{
  min-height:28px;
  height:28px;
  font-size:11px;
  padding:0 7px;
  border-radius:8px;
}
.langModule[data-idi-lang='pt'] .idiPronGrid{
  gap:5px;
}
.langModule[data-idi-lang='pt'] .idiPronItem{
  padding:3px 5px;
  gap:4px;
}
.langModule[data-idi-lang='pt'] .idiPronWord{
  max-width:135px;
  font-size:10.5px;
}
.langModule[data-idi-lang='pt'] .idiPronItem .idiMvpStatusSel{
  max-width:96px;
  min-height:22px;
  height:22px;
  font-size:10px;
  padding:0 4px;
}
@media(max-width:980px){
  .langModule .idiV2Header{grid-template-columns:1fr}
  .langModule .idiV2HeaderRight{justify-content:flex-start}
}
@media(max-width:760px){
  .langModule .idiEntryModalGrid{grid-template-columns:1fr}
  .langModule .idiPtCompactGrid,
  .langModule .idiPtCardGrid{
    grid-template-columns:1fr;
  }
}
:root[data-theme='dark'] .readingModule{
  --read-bg:rgba(12,18,27,.72);
  --read-surface:rgba(20,28,40,.75);
  --read-card:rgba(19,25,36,.9);
  --read-border:rgba(148,163,184,.26);
  --read-border-strong:rgba(148,163,184,.4);
  --read-text:#e5ebf3;
  --read-text-sec:#a8b4c5;
  --read-muted:#93a0b1;
  --read-cover-bg:#04070f;
  --read-shadow:0 12px 26px rgba(0,0,0,.35);
}
:root[data-theme='light'] .readingModule{
  --read-bg:#F4F6F8;
  --read-surface:#FFFFFF;
  --read-card:#FFFFFF;
  --read-border:#E2E8F0;
  --read-border-strong:#CBD5E1;
  --read-text:#111827;
  --read-text-sec:#4B5563;
  --read-muted:#6B7280;
  --read-cover-bg:#FFFFFF;
  --read-shadow:0 10px 20px rgba(0,0,0,.06),0 2px 6px rgba(0,0,0,.04);
}
.readingModule .readingShell{
  max-width:1320px;
  margin:0 auto;
  background:var(--read-bg);
  border:1px solid var(--read-border);
  border-radius:16px;
  padding:14px;
}
.readingModule .readingHeader{
  display:grid;
  grid-template-columns:minmax(110px,.55fr) minmax(260px,1.3fr) minmax(250px,1fr);
  gap:10px;
  align-items:start;
  margin-bottom:10px;
}
.readingModule .readingHeaderLeft h2{margin:6px 0 0;color:var(--read-text)}
.readingModule .readingHeaderCenter{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.readingModule .readingHeaderRight{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.readingModule .readFilterGroup{
  background:var(--read-surface);
  border:1px solid var(--read-border);
  border-radius:10px;
  padding:4px;
}
.readingModule .readFilterBtn{
  min-height:28px;
  color:var(--read-text-sec);
  border-radius:8px;
  padding:0 11px;
}
.readingModule .readFilterBtn:hover{color:var(--read-text)}
.readingModule .readFilterBtn.active{
  background:color-mix(in srgb, var(--accent) 12%, var(--read-surface));
  border:1px solid color-mix(in srgb, var(--accent) 42%, var(--read-border));
  color:var(--read-text);
}
.readingModule .readSearchInput{
  min-width:180px;
  width:230px;
  min-height:34px;
  background:var(--read-surface);
  border:1px solid var(--read-border);
  color:var(--read-text);
}
.readingModule .readSearchInput::placeholder{color:#9CA3AF}
.readingModule .readSearchInput:focus-visible{
  outline:none;
  border-color:color-mix(in srgb, var(--accent) 46%, var(--read-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.readingModule .readEditToggleBtn,.readingModule .readRefreshBtn,.readingModule .readAddBtn{
  min-height:34px;
  border-radius:10px;
  padding:0 12px;
  font-size:12px;
  font-weight:700;
}
.readingModule .readEditToggleBtn,.readingModule .readRefreshBtn{
  background:var(--read-surface);
  border:1px solid var(--read-border);
  color:var(--read-text-sec);
}
.readingModule .readEditToggleBtn:hover,.readingModule .readRefreshBtn:hover{color:var(--read-text);border-color:var(--read-border-strong)}
.readingModule .readEditToggleBtn.active{
  color:var(--read-text);
  border-color:color-mix(in srgb, var(--accent) 44%, var(--read-border));
  background:color-mix(in srgb, var(--accent) 12%, var(--read-surface));
}
.readingModule .readAddBtn{
  color:#fff;
  border:1px solid color-mix(in srgb, var(--accent) 45%, var(--read-border));
  background:linear-gradient(135deg,color-mix(in srgb, var(--accent) 85%, #fff),color-mix(in srgb, var(--accent2) 70%, #fff));
}
.readingModule .readAddBtn:hover{filter:brightness(1.05)}
.readingModule .readingYearTabs{
  background:var(--read-surface);
  border:1px solid var(--read-border);
  border-radius:12px;
  padding:4px;
  margin-bottom:12px;
}
.readingModule .readingYearTabs .tabBtn{
  border:1px solid transparent;
  background:transparent;
  color:var(--read-text-sec);
  min-height:30px;
}
.readingModule .readingYearTabs .tabBtn:hover{color:var(--read-text)}
.readingModule .readingYearTabs .tabBtn.active{
  color:var(--read-text);
  border-color:color-mix(in srgb, var(--accent) 44%, var(--read-border));
  background:color-mix(in srgb, var(--accent) 12%, var(--read-surface));
  box-shadow:none;
}
.readingModule .readStatsGrid{gap:12px}
.readingModule .readStatBox{
  border:1px solid var(--read-border);
  background:var(--read-surface);
  box-shadow:var(--read-shadow);
  padding:14px 16px;
}
.readingModule .readStatBox .rsbLabel{color:var(--read-muted)}
.readingModule .readStatBox .rsbSub,.readingModule .rsbPct,.readingModule .rsbCatName,.readingModule .rsbCatPct{color:var(--read-text-sec)}
.readingModule .rsbBar{background:color-mix(in srgb, var(--read-border) 78%, transparent)}
.readingModule .bookList{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.readingModule #read-book-list .bookList{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:stretch !important;
}
#sec-leitura #read-book-list{
  width:100%;
  min-width:0;
}
#sec-leitura #read-book-list>.bookList{
  width:100%;
  max-width:none;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  align-items:stretch;
}
#sec-leitura #read-book-list>.bookList>.bookItem{
  width:100%;
  max-width:none;
  min-width:0;
}
#sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit){
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  min-height:248px;
  height:248px;
}
#sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea{
  width:132px;
  min-width:132px;
  max-width:132px;
  height:100%;
}
#sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
  border-radius:0;
}
#sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookMeta{
  min-width:0;
  overflow:visible;
}
@media(min-width:761px){
  :root[data-theme='dark'] #sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea{
    background:linear-gradient(180deg,#0f1b2a 0%,#0c1622 100%);
    box-shadow:inset -1px 0 0 rgba(148,163,184,.14),inset 0 1px 0 rgba(255,255,255,.03);
  }
  :root[data-theme='dark'] #sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea img{
    background:transparent;
  }
  :root[data-theme='light'] #sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea{
    background:#f8fafc;
    box-shadow:inset -1px 0 0 rgba(148,163,184,.2),inset 0 1px 0 rgba(255,255,255,.55);
  }
  :root[data-theme='light'] #sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookCoverArea img{
    background:transparent;
  }
}
#sec-leitura #read-book-list>.bookList>.bookItem:not(.bookItemEdit) .bookDesc{
  -webkit-line-clamp:5;
  line-clamp:5;
  padding-bottom:2px;
}
#sec-leitura .bookBottom .bookNotesBtn{
  margin-right:8px;
  text-transform:none;
}
.readingModule .bookItem{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  border:1px solid var(--read-border);
  background:var(--read-card);
  border-radius:14px;
  min-height:204px;
  height:204px;
  box-shadow:var(--read-shadow);
  transform:none;
  overflow:hidden;
  position:relative;
}
.readingModule .bookItem:hover{
  border-color:var(--read-border-strong);
  transform:translateY(-2px);
}
.readingModule .bookCoverArea{
  width:auto;
  min-width:0;
  height:100%;
  border-right:1px solid var(--read-border);
  background:var(--read-cover-bg);
}
.readingModule .bookCoverArea::after{display:none}
.readingModule .bookCoverArea img{
  padding:10px;
  background:var(--read-cover-bg);
  border-radius:10px;
}
.readingModule .bookMeta{
  padding:14px;
  justify-content:flex-start;
  gap:8px;
  position:relative;
}
.readingModule .bookItemTools{
  position:absolute;
  top:11px;
  right:12px;
  display:flex;
  align-items:center;
  gap:6px;
}
.readingModule .bookActionBtn{
  background:none;
  border:none;
  color:var(--read-muted);
  font-size:12px;
  cursor:pointer;
  padding:0;
  text-decoration:none;
  line-height:1;
}
.readingModule .bookActionBtn.bookActionIcon{
  font-size:14px;
  opacity:.72;
}
.readingModule .bookActionBtn.bookActionIcon:hover{
  opacity:1;
  color:var(--read-text);
}
.readingModule .bookTitle{
  font-size:14px;
  color:var(--read-text);
  padding-right:110px;
}
.readingModule .bookAuthor{color:var(--read-text-sec);font-size:11.5px}
.readingModule .bookDesc{
  color:var(--read-text-sec);
  -webkit-line-clamp:4;
  margin-top:2px;
}
.readingModule .bookCategory{
  border:1px solid var(--read-border);
  background:var(--read-surface);
  color:var(--read-muted);
  border-radius:999px;
  padding:3px 8px;
  max-width:180px;
  display:inline-flex;
}
.readingModule .bookBottom{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#sec-leitura .bookMetaStats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin-top:1px;
}
#sec-leitura .bookMetaStat{
  display:flex;
  flex-direction:column;
  gap:2px;
  border:1px solid var(--read-border);
  background:var(--read-surface);
  border-radius:8px;
  padding:6px 8px;
  min-width:0;
}
#sec-leitura .bookMetaStatLbl{
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--read-muted);
  font-weight:700;
}
#sec-leitura .bookMetaStatVal{
  font-size:12px;
  color:var(--read-text);
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.readingModule .bookNotesBtn{
  background:none;
  border:none;
  color:var(--read-muted);
  cursor:pointer;
  padding:0;
  font-size:11px;
  line-height:1;
  text-transform:lowercase;
}
.readingModule .bookNotesBtn:hover{color:var(--read-text);text-decoration:underline}
.readingModule .bookActionBtn:focus-visible,.readingModule .bookNotesBtn:focus-visible,
.readingModule .readFilterBtn:focus-visible,.readingModule .tabBtn:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset:2px;
}
.readingModule .bookInlineEditBtn{
  background:var(--read-surface);
  border:1px solid var(--read-border);
  color:var(--read-text-sec);
  min-height:36px;
  border-radius:10px;
  padding:0 10px;
  font-size:12px;
  font-weight:700;
}
.readingModule .bookInlineEditBtn:hover{color:var(--read-text);border-color:var(--read-border-strong)}
.readingModule .bookStatusBadge{
  min-height:24px;
  justify-content:center;
  font-size:9px;
  padding:3px 9px;
  letter-spacing:.04em;
  cursor:pointer;
  align-self:flex-start;
}
.readingModule .bookStatusBadge.wishlist{
  background:rgba(59,130,246,.12);
  border:1px solid rgba(59,130,246,.32);
  color:#60a5fa;
}
.readingModule .bookItemEdit{
  grid-template-columns:1fr;
  min-height:auto;
  height:auto;
}
.readingModule .bookItemEdit .bookCoverArea{
  border-right:none;
  border-bottom:1px solid var(--read-border);
  min-height:168px;
  max-height:168px;
  height:168px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.readingModule .bookItemEdit .bookCoverArea img{
  width:auto;
  max-width:100%;
  height:100%;
  max-height:100%;
  object-fit:contain;
  padding:10px;
}
.readingModule .bookEditInput,.readingModule .bookEditUploadBtn,.readingModule .bookNumBtn{
  background:var(--read-surface);
  border:1px solid var(--read-border);
  color:var(--read-text);
}
.readingModule .bookEditNumCtl{
  display:flex;
  align-items:center;
  gap:6px;
}
.readingModule .bookEditNumCtl .bookEditInput{
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:var(--read-text);
  min-height:30px;
  background:color-mix(in srgb, var(--read-surface) 88%, #0000);
}
.readingModule .bookNumBtn{
  width:26px;
  height:26px;
  font-size:14px;
  color:var(--read-text);
}
.readingModule .bookEditLbl{color:var(--read-muted)}
:root[data-theme='light'] .readingModule select.bookEditInput{background:#F9FAFB}
@media(max-width:1120px){
  .readingModule .readingHeader{grid-template-columns:1fr}
  .readingModule .readingHeaderRight{justify-content:flex-start}
}
@media(max-width:760px){
  .readingModule .bookList{grid-template-columns:1fr}
  .readingModule #read-book-list .bookList{grid-template-columns:1fr !important}
  .readingModule .bookItem{grid-template-columns:94px minmax(0,1fr)}
}
@media(max-width:560px){
  .readingModule .readSearchInput{width:100%}
  .readingModule .bookTitle{padding-right:98px}
}
/* Module refresh v3: Tooltip, Reading, Idiomas analytics, Musica */
:root[data-theme='light'] .navBtn{color:#1f2937}
:root[data-theme='light'] .navBtn:hover,:root[data-theme='light'] .navBtn.active{color:#111827}
:root[data-theme='light'] #calTip{
  background:#ffffff;
  border-color:#cbd5e1;
  box-shadow:0 10px 30px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.08);
}
:root[data-theme='light'] #calTip .ttTitle{color:#111827}
:root[data-theme='light'] #calTip .ttTime{color:#64748B}
:root[data-theme='light'] #calTip .ttInfo{color:#374151}
:root[data-theme='light'] #calTip .ttSep{border-top-color:#E2E8F0}
:root[data-theme='light'] #calTip .ttDelBtn{background:#fee2e2;color:#dc2626}
:root[data-theme='light'] #calTip .ttDelBtn:hover{background:#fecaca;color:#991b1b}
:root[data-theme='dark'] .readingModule{
  --reading-bg:rgba(12,18,27,.72);
  --reading-card:var(--read-card);
  --reading-border:var(--read-border);
  --reading-text:var(--read-text);
  --reading-text-secondary:var(--read-text-sec);
  --read-cover-bg:#04070f;
}
:root[data-theme='light'] .readingModule{
  --reading-bg:#F4F6F8;
  --reading-card:#FFFFFF;
  --reading-border:#E5E7EB;
  --reading-text:#111827;
  --reading-text-secondary:#4B5563;
  --read-cover-bg:#FFFFFF;
}
.readingModule .readingShell{
  background:var(--reading-bg,var(--read-bg));
}
.readingModule .readCategoryFilterGroup{
  display:flex;
  align-items:center;
  padding:4px 8px;
}
.readingModule .readCategorySelect{
  min-height:28px;
  min-width:172px;
  border-radius:8px;
  border:1px solid var(--read-border);
  background:var(--read-surface);
  color:var(--read-text-sec);
  font-size:12px;
  padding:0 10px;
  outline:none;
}
.readingModule .readCategorySelect:hover{border-color:var(--read-border-strong);color:var(--read-text)}
.readingModule .readCategorySelect:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 46%, var(--read-border));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.readingModule .bookItem{
  background:var(--reading-card,var(--read-card));
  border-color:var(--reading-border,var(--read-border));
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
:root[data-theme='dark'] .readingModule .bookItem{box-shadow:var(--read-shadow)}
.readingModule .bookItem:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.readingModule .bookCoverArea{
  background:var(--read-cover-bg);
}
:root[data-theme='light'] .readingModule .bookCoverArea{
  background:#fff;
}
.readingModule .bookCoverArea img{
  background:var(--read-cover-bg);
  border-radius:8px;
  object-fit:contain;
}
:root[data-theme='light'] .readingModule .bookCoverArea img{
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.readingModule .bookTitle{color:var(--reading-text,var(--read-text))}
.readingModule .bookAuthor{color:var(--reading-text-secondary,var(--read-text-sec))}
:root[data-theme='light'] .readingModule .bookAuthor{color:#2563EB}
.readingModule .bookDesc{
  color:var(--reading-text-secondary,var(--read-text-sec));
  line-height:1.6;
}
.readingModule .bookNotesBtn{opacity:1}
:root[data-theme='light'] .readingModule .bookNotesBtn{color:#6B7280}
:root[data-theme='light'] .readingModule .bookNotesBtn:hover{color:var(--accent)}
:root[data-theme='light'] .readingModule .bookStatusBadge.read{
  background:rgba(34,197,94,.12);
  color:#15803D;
  border-color:rgba(22,163,74,.28);
  font-weight:600;
}
:root[data-theme='light'] .readingModule .bookStatusBadge.reading{
  background:rgba(245,158,11,.12);
  color:#b45309;
  border-color:rgba(217,119,6,.25);
}
:root[data-theme='light'] .readingModule .bookStatusBadge.unread{
  background:#F3F4F6;
  color:#475569;
  border-color:#CBD5E1;
}
:root[data-theme='light'] .readingModule .bookStatusBadge.wishlist{
  background:rgba(59,130,246,.11);
  color:#1d4ed8;
  border-color:rgba(37,99,235,.24);
}
:root[data-theme='dark'] .langModule{
  --lang-hero-bg:linear-gradient(140deg,rgba(22,28,40,.9),rgba(14,20,30,.95));
  --lang-hero-border:rgba(138,91,255,.35);
  --lang-hero-shadow:0 16px 34px rgba(0,0,0,.35);
}
:root[data-theme='light'] .langModule{
  --lang-hero-bg:linear-gradient(145deg,#ffffff,#f8fafc);
  --lang-hero-border:#dbe4f0;
  --lang-hero-shadow:0 16px 30px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.05);
}
.langModule .idiV2Analytics{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:12px;
  margin-bottom:2px;
}
.langModule .idiHero{
  border:1px solid var(--lang-hero-border);
  background:var(--lang-hero-bg);
  border-radius:14px;
  padding:14px;
  box-shadow:var(--lang-hero-shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  position:relative;
  overflow:hidden;
}
.langModule .idiHero::after{
  content:'';
  position:absolute;
  inset:auto -30px -30px auto;
  width:150px;
  height:150px;
  border-radius:999px;
  background:radial-gradient(circle,color-mix(in srgb,var(--accent) 24%,transparent) 0%,transparent 70%);
  pointer-events:none;
}
.langModule .idiHeroTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.langModule .idiHeroLang{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--lang-text);
  font-size:18px;
  font-weight:800;
}
.langModule .idiHeroLang img{
  width:24px;
  height:18px;
  border-radius:3px;
  border:1px solid var(--lang-border);
}
.langModule .idiHeroLevel{
  display:flex;
  align-items:baseline;
  gap:8px;
}
.langModule .idiHeroLvl{
  font-size:30px;
  font-weight:900;
  color:var(--lang-text);
  line-height:1;
}
.langModule .idiHeroScore{
  font-size:14px;
  color:var(--lang-text-muted);
  font-weight:700;
}
.langModule .idiHeroTrend{
  font-size:11px;
  font-weight:700;
  color:var(--lang-text-muted);
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  border-radius:999px;
  padding:3px 9px;
}
.langModule .idiHeroTrend.up{
  color:#16a34a;
  border-color:color-mix(in srgb,#16a34a 30%,var(--lang-border));
}
.langModule .idiHeroTrend.down{
  color:#dc2626;
  border-color:color-mix(in srgb,#dc2626 30%,var(--lang-border));
}
.langModule .idiHeroProgress{
  height:9px;
  border-radius:999px;
  background:color-mix(in srgb,var(--lang-border) 65%, transparent);
  overflow:hidden;
}
.langModule .idiHeroProgressFill{
  height:100%;
  width:0;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 92%,#fff),color-mix(in srgb,var(--accent2) 80%,#fff));
  transition:width .6s cubic-bezier(.4,0,.2,1);
}
.langModule .idiHeroMsg{
  color:var(--lang-text-muted);
  font-size:12px;
}
.langModule .idiHeroStats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.langModule .idiHeroStat{
  border:1px solid var(--lang-border);
  border-radius:10px;
  background:var(--lang-surface);
  padding:8px;
}
.langModule .idiHeroStatLbl{
  color:var(--lang-text-muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.langModule .idiHeroStatVal{
  color:var(--lang-text);
  font-size:16px;
  font-weight:800;
  margin-top:2px;
}
.langModule .idiRadarWrap{
  border:1px solid var(--lang-border);
  border-radius:14px;
  background:var(--lang-surface);
  box-shadow:var(--lang-shadow);
  padding:10px;
}
.langModule .idiRadarTitle{
  color:var(--lang-text);
  font-size:12px;
  font-weight:800;
  margin:2px 0 8px;
}
.langModule .idiRadarSvg{
  width:100%;
  height:230px;
  display:block;
}
.langModule .idiSkillGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.langModule .idiSkillCard{
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  border-radius:12px;
  padding:10px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.langModule .idiSkillCard:hover{
  transform:translateY(-2px);
  box-shadow:var(--lang-shadow);
  border-color:var(--lang-border-strong);
}
.langModule .idiSkillHead{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.langModule .idiSkillName{font-size:11px;font-weight:800;color:var(--lang-text)}
.langModule .idiSkillTrend{font-size:10px;font-weight:700;color:var(--lang-text-muted)}
.langModule .idiSkillVal{font-size:20px;font-weight:900;color:var(--lang-text);line-height:1;margin:8px 0 5px}
.langModule .idiSkillLvl{font-size:11px;color:var(--lang-text-muted);margin-bottom:6px}
.langModule .idiSkillBar{
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:color-mix(in srgb,var(--lang-border) 72%, transparent);
}
.langModule .idiSkillBarFill{
  height:100%;
  width:0;
  transition:width .6s cubic-bezier(.4,0,.2,1);
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 90%,#fff),color-mix(in srgb,var(--accent2) 84%,#fff));
}
.langModule .idiBottomGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.langModule .idiTimeline,.langModule .idiNextReq{
  border:1px solid var(--lang-border);
  background:var(--lang-surface);
  border-radius:12px;
  padding:10px;
}
.langModule .idiTimelineTitle,.langModule .idiNextTitle{
  color:var(--lang-text);
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}
.langModule .idiTimelineSvg{
  width:100%;
  height:150px;
  display:block;
}
.langModule .idiReqItem{
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:var(--lang-text-secondary,#4B5563);
  font-size:12px;
  padding:5px 0;
}
.langModule .idiReqCheck{
  width:15px;
  height:15px;
  border-radius:4px;
  border:1px solid var(--lang-border);
  background:var(--lang-surface-soft);
  color:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  margin-top:2px;
}
.langModule .idiReqItem.done .idiReqCheck{
  color:#16a34a;
  border-color:color-mix(in srgb,#16a34a 38%,var(--lang-border));
  background:color-mix(in srgb,#16a34a 12%,var(--lang-surface));
}
.langModule .idiReqItem.done{color:color-mix(in srgb,#16a34a 82%,var(--lang-text))}
@media(max-width:1120px){
  .langModule .idiV2Analytics,.langModule .idiBottomGrid{grid-template-columns:1fr}
  .langModule .idiSkillGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .langModule .idiSkillGrid{grid-template-columns:1fr}
  .langModule .idiHeroStats{grid-template-columns:1fr}
}
:root[data-theme='dark'] .musicModule{
  --music-bg:rgba(12,18,27,.72);
  --music-card:rgba(20,28,40,.82);
  --music-surface:rgba(255,255,255,.03);
  --music-border:rgba(148,163,184,.25);
  --music-border-strong:rgba(148,163,184,.4);
  --music-text:#e5ebf3;
  --music-sec:#9fb0c7;
  --music-muted:#8c9bb0;
  --music-input:#0f1726;
  --music-shadow:0 12px 26px rgba(0,0,0,.35);
}
:root[data-theme='light'] .musicModule{
  --music-bg:#F4F6F8;
  --music-card:#FFFFFF;
  --music-surface:#FFFFFF;
  --music-border:#E6ECF2;
  --music-border-strong:#D9E2EA;
  --music-text:#2f3a45;
  --music-sec:#55616f;
  --music-muted:#6b7785;
  --music-input:#F9FAFB;
  --music-shadow:0 8px 20px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.03);
}
.musicModule .musicShell{
  max-width:1320px;
  margin:0 auto;
  border:1px solid var(--music-border);
  background:var(--music-bg);
  border-radius:16px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.musicModule #music-view-root{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.musicModule .musicSubnav{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  border:1px solid var(--music-border);
  border-radius:12px;
  padding:4px;
  background:var(--music-surface);
  position:sticky;
  top:calc(var(--nav-h) + 8px);
  z-index:5;
}
.musicModule .musicSubnavBtn{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:9px;
  border:1px solid transparent;
  padding:0 12px;
  background:transparent;
  color:var(--music-sec);
  font-size:12px;
  font-weight:520;
  letter-spacing:.01em;
  cursor:pointer;
}
.musicModule .musicSubnavIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  font-size:11px;
  line-height:1;
  opacity:.92;
}
.musicModule .musicSubnavBtn:hover{color:var(--music-text)}
.musicModule .musicSubnavBtn.active{
  color:var(--music-text);
  font-weight:560;
  border-color:color-mix(in srgb,var(--accent) 45%,var(--music-border));
  background:color-mix(in srgb,var(--accent) 12%,var(--music-surface));
}
.musicModule .musicSubnavBtn:focus-visible,.musicModule .musicBtn:focus-visible,.musicModule .musicInput:focus-visible,.musicModule .musicSelect:focus-visible,.musicModule .musicSearch:focus-visible{
  outline:2px solid color-mix(in srgb,var(--accent) 42%,transparent);
  outline-offset:2px;
}
.musicModule .musicMetaRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--music-muted);
  font-size:11px;
}
.musicModule .musicStatus{
  border:1px solid var(--music-border);
  border-radius:999px;
  background:var(--music-surface);
  padding:3px 9px;
  font-weight:580;
}
.musicModule .musicStatus.warn{
  color:#b45309;
  border-color:color-mix(in srgb,#f59e0b 35%,var(--music-border));
}
.musicModule .musicStatus.off{
  color:#dc2626;
  border-color:color-mix(in srgb,#ef4444 38%,var(--music-border));
}
.musicModule .musicHero{
  border:1px solid var(--music-border);
  border-radius:14px;
  background:var(--music-card);
  padding:14px;
  box-shadow:var(--music-shadow);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.musicModule .musicHero h2{
  margin:0 0 6px;
  color:var(--music-text);
  font-size:21px;
  font-weight:580;
}
.musicModule .musicHero p{
  margin:0;
  color:var(--music-sec);
  font-size:12px;
}
.musicModule .musicHeroActions{display:flex;gap:8px;flex-wrap:wrap}
.musicModule .musicKpiGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.musicModule .musicKpiCard{
  border:1px solid var(--music-border);
  border-radius:12px;
  background:var(--music-card);
  box-shadow:var(--music-shadow);
  padding:11px 12px;
}
.musicModule .musicKpiLbl{
  color:var(--music-muted);
  font-size:10px;
  font-weight:560;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.musicModule .musicKpiVal{
  color:var(--music-text);
  font-size:21px;
  font-weight:680;
  line-height:1.15;
  margin-top:6px;
}
.musicModule .musicKpiSub{
  color:var(--music-sec);
  font-size:11px;
  margin-top:5px;
  line-height:1.35;
}
.musicModule .musicInstrumentGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.musicModule .musicTrendCard{
  border:1px solid var(--music-border);
  border-radius:12px;
  background:var(--music-card);
  box-shadow:var(--music-shadow);
  padding:12px;
}
.musicModule .musicTrendBars{
  margin-top:10px;
  height:76px;
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  align-items:end;
}
.musicModule .musicTrendCol{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}
.musicModule .musicTrendBar{
  width:100%;
  min-height:4px;
  border-radius:999px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent2) 84%,#fff),color-mix(in srgb,var(--accent) 88%,#fff));
  border:1px solid color-mix(in srgb,var(--music-border) 60%,transparent);
}
.musicModule .musicTrendLbl{
  color:var(--music-muted);
  font-size:10px;
  font-weight:600;
}
.musicModule .musicTrendVal{
  color:var(--music-sec);
  font-size:10px;
}
.musicModule .musicSectionStack{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.musicModule .musicCards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.musicModule .musicCard{
  border:1px solid var(--music-border);
  border-radius:12px;
  background:var(--music-card);
  box-shadow:var(--music-shadow);
  padding:12px;
}
.musicModule .musicCardHead{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.musicModule .musicCardName{
  color:var(--music-text);
  font-size:14px;
  font-weight:560;
}
.musicModule .musicCardMeta{
  color:var(--music-sec);
  font-size:11px;
  margin-top:6px;
}
.musicModule .musicProgress{
  margin-top:8px;
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:color-mix(in srgb,var(--music-border) 70%, transparent);
}
.musicModule .musicProgressFill{
  height:100%;
  width:0;
  transition:width .5s ease;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 88%,#fff),color-mix(in srgb,var(--accent2) 84%,#fff));
}
.musicModule .musicBtn{
  min-height:34px;
  border-radius:10px;
  border:1px solid var(--music-border);
  background:var(--music-surface);
  color:var(--music-sec);
  font-size:12px;
  font-weight:560;
  padding:0 12px;
  cursor:pointer;
}
.musicModule .musicBtn:hover{border-color:var(--music-border-strong);color:var(--music-text)}
.musicModule .musicBtn.primary{
  color:#fff;
  border-color:color-mix(in srgb,var(--accent) 45%,var(--music-border));
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 85%,#fff),color-mix(in srgb,var(--accent2) 68%,#fff));
}
.musicModule .musicHead{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(250px,.95fr) auto;
  gap:9px;
  align-items:center;
}
.musicModule .musicTitle{
  color:var(--music-text);
  font-size:20px;
  margin:0 0 6px;
  font-weight:580;
}
.musicModule .musicSub{
  color:var(--music-sec);
  font-size:12px;
}
.musicModule .musicSearch{
  width:100%;
  min-height:36px;
  border-radius:10px;
  border:1px solid var(--music-border);
  background:var(--music-input);
  color:var(--music-text);
  font-size:12px;
  padding:0 11px;
}
.musicModule .musicSearch::placeholder{color:#9CA3AF}
.musicModule .musicHeadActions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap;align-items:center}
.musicModule .musicFilters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.musicModule .musicFilterGroup{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.musicModule .musicAddPicker{
  margin-top:8px;
  border:1px solid var(--music-border);
  border-radius:10px;
  background:var(--music-surface);
  padding:8px;
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto auto;
  gap:8px;
  align-items:center;
}
.musicModule .musicChip{
  border:1px solid var(--music-border);
  background:var(--music-surface);
  color:var(--music-sec);
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  font-weight:560;
}
.musicModule .musicSection{
  border:1px solid var(--music-border);
  background:var(--music-card);
  border-radius:12px;
  box-shadow:var(--music-shadow);
}
.musicModule .musicSectionHead{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  cursor:pointer;
  user-select:none;
}
.musicModule .musicSectionHead:hover{background:color-mix(in srgb,var(--music-surface) 75%,transparent)}
.musicModule .musicSectionHeadMain{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.musicModule .musicSectionTitle{
  color:var(--music-text);
  font-size:13px;
  font-weight:560;
  min-width:0;
}
:root[data-theme='light'] .musicModule .musicKpiCard,
:root[data-theme='light'] .musicModule .musicCard,
:root[data-theme='light'] .musicModule .musicTrendCard,
:root[data-theme='light'] .musicModule .musicSection,
:root[data-theme='light'] .musicModule .musicItem{
  border-color:rgba(15,23,42,.08);
  box-shadow:0 6px 16px rgba(15,23,42,.045),0 1px 2px rgba(15,23,42,.03);
}
:root[data-theme='light'] .musicModule .musicKpiLbl{
  color:#6b7785;
  font-weight:520;
  letter-spacing:.03em;
}
:root[data-theme='light'] .musicModule .musicKpiVal{
  color:#2f3a45;
  font-weight:600;
}
:root[data-theme='light'] .musicModule .musicKpiSub{color:#55616f}
:root[data-theme='light'] .musicModule .musicSectionHead{
  background:#fbfcfe;
  border-bottom:1px solid rgba(15,23,42,.06);
}
:root[data-theme='light'] .musicModule .musicSectionHead:hover{background:#f7f9fc}
:root[data-theme='light'] .musicModule .musicSectionBody{border-top:none}
:root[data-theme='light'] .musicModule .musicSectionTitle{
  color:#445365;
  font-weight:500;
}
:root[data-theme='light'] .musicModule .musicBtn,
:root[data-theme='light'] .musicModule .musicActionBtn{
  background:transparent;
  border-color:rgba(15,23,42,.12);
  color:#55616f;
  font-weight:560;
}
:root[data-theme='light'] .musicModule .musicBtn:hover,
:root[data-theme='light'] .musicModule .musicActionBtn:hover{
  background:rgba(15,23,42,.05);
  border-color:rgba(15,23,42,.2);
  color:#2f3a45;
}
:root[data-theme='light'] .musicModule .musicBtn.primary{
  color:#4a5a6c;
  border-color:rgba(99,102,241,.24);
  background:rgba(99,102,241,.08);
}
:root[data-theme='light'] .musicModule .musicActionBtn.danger{
  color:#c45c5c;
  border-color:rgba(196,92,92,.26);
}
:root[data-theme='light'] .musicModule .musicActionBtn.danger:hover{
  color:#ab4343;
  background:rgba(196,92,92,.08);
  border-color:rgba(171,67,67,.34);
}
:root[data-theme='light'] .musicModule .musicCardName{color:#3d4c5d;font-weight:580}
:root[data-theme='light'] .musicModule .musicItemTitle{color:#3d4c5d;font-weight:560}
:root[data-theme='light'] .musicModule .musicItemDesc{color:#5f6b77}
:root[data-theme='light'] .musicModule .musicPill,
:root[data-theme='light'] .musicModule .musicChip{
  background:#f3f5f7;
  border-color:#e6eaee;
  color:#4a5560;
  font-weight:500;
}
.musicModule .musicSectionChevron{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  color:var(--music-muted);
  font-size:14px;
  transition:transform .18s ease;
}
.musicModule .musicSection.collapsed .musicSectionChevron{transform:rotate(-90deg)}
.musicModule .musicSectionBodyWrap{
  overflow:hidden;
  max-height:12000px;
  opacity:1;
  transition:max-height .2s ease,opacity .2s ease;
}
.musicModule .musicSection.collapsed .musicSectionBodyWrap{
  max-height:0;
  opacity:0;
}
.musicModule .musicBadge{
  border:1px solid color-mix(in srgb,var(--accent) 35%,var(--music-border));
  background:color-mix(in srgb,var(--accent) 12%,var(--music-surface));
  color:var(--music-text);
  border-radius:999px;
  padding:2px 7px;
  font-size:10px;
  font-weight:560;
}
.musicModule .musicSectionActions{display:flex;gap:6px;align-items:center}
.musicModule .musicSectionBody{
  border-top:1px solid var(--music-border);
  padding:10px;
}
.musicModule .musicItem{
  border:1px solid var(--music-border);
  background:var(--music-surface);
  border-radius:10px;
  padding:9px;
  margin-bottom:8px;
}
.musicModule .musicItem:last-child{margin-bottom:0}
.musicModule .musicItemHead{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.musicModule .musicItemTitle{
  color:var(--music-text);
  font-size:12px;
  font-weight:560;
}
.musicModule .musicItemDesc{
  color:var(--music-sec);
  font-size:11px;
  line-height:1.5;
  margin-top:4px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.musicModule .musicItemMeta{
  margin-top:6px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.musicModule .musicPill{
  font-size:10px;
  font-weight:560;
  border-radius:999px;
  padding:3px 7px;
  border:1px solid var(--music-border);
  color:var(--music-sec);
  background:var(--music-surface);
}
.musicModule .musicPill.todo{color:#64748b}
.musicModule .musicPill.doing{
  color:#b45309;
  border-color:color-mix(in srgb,#f59e0b 35%,var(--music-border));
  background:color-mix(in srgb,#f59e0b 12%,var(--music-surface));
}
.musicModule .musicPill.done{
  color:#15803d;
  border-color:color-mix(in srgb,#22c55e 35%,var(--music-border));
  background:color-mix(in srgb,#22c55e 12%,var(--music-surface));
}
.musicModule .musicItemActions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.musicModule .musicActionBtn{
  min-height:28px;
  border-radius:8px;
  border:1px solid var(--music-border);
  background:var(--music-surface);
  color:var(--music-sec);
  font-size:10px;
  font-weight:560;
  padding:0 8px;
  cursor:pointer;
}
.musicModule .musicActionBtn:hover{color:var(--music-text);border-color:var(--music-border-strong)}
.musicModule .musicActionBtn.danger{color:#ef4444}
.musicModule .musicInput,.musicModule .musicSelect,.musicModule .musicTextarea{
  width:100%;
  border:1px solid var(--music-border);
  border-radius:8px;
  background:var(--music-input);
  color:var(--music-text);
  font-size:12px;
  padding:7px 9px;
  font-family:inherit;
}
.musicModule .musicTextarea{
  resize:vertical;
  min-height:66px;
}
.musicModule .musicEditGrid{
  display:grid;
  grid-template-columns:1fr 120px 120px;
  gap:7px;
  margin-top:7px;
}
.musicModule .musicEmpty{
  border:1px dashed var(--music-border);
  border-radius:10px;
  padding:12px;
  text-align:center;
  color:var(--music-muted);
  font-size:12px;
  background:var(--music-surface);
}
.musicModule .musicTableWrap{
  border:1px solid var(--music-border);
  border-radius:10px;
  overflow:auto;
}
.musicModule .musicTable{
  width:100%;
  border-collapse:collapse;
  font-size:11px;
}
.musicModule .musicTable th,.musicModule .musicTable td{
  border-bottom:1px solid var(--music-border);
  padding:7px 8px;
  text-align:left;
  color:var(--music-sec);
  vertical-align:top;
}
.musicModule .musicTable th{
  color:var(--music-text);
  font-weight:800;
  background:color-mix(in srgb,var(--music-border) 36%,transparent);
}
/* ── Organização ── */
.orgModule{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.orgCard{padding:14px}
.orgCard .boxHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.orgCardHead{margin-bottom:2px}
.orgHeadRight{
  display:flex;
  align-items:center;
  gap:8px;
}
.orgIconBtn{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.orgIconBtn:hover{
  color:var(--text);
  border-color:var(--stroke2);
}
.orgIconBtn.active{
  color:#38BDF8;
  border-color:rgba(56,189,248,.4);
  background:rgba(56,189,248,.14);
}
.orgSyncState{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.orgSyncState.ok{color:#4ADE80}
.orgSyncState.warn{color:#FBBF24}
.orgSyncState.err{color:#F87171}
.orgMeta{
  margin:2px 0 10px;
  font-size:11px;
  color:var(--muted);
}
.orgMeta code{
  font-family:ui-monospace,Consolas,monospace;
  font-size:11px;
}
.orgKpiGrid{
  margin-bottom:10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.orgKpi{
  border:1px solid var(--stroke);
  border-radius:10px;
  padding:8px 9px;
  background:rgba(255,255,255,.02);
}
.orgKpiLabel{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.02em;
}
.orgKpiValue{
  margin-top:3px;
  font-size:14px;
  font-weight:800;
  color:var(--text);
}
.orgKpiSub{
  margin-top:3px;
  font-size:10px;
  color:var(--muted);
}
.orgTrend{
  display:inline-flex;
  align-items:center;
  gap:4px;
  border-radius:999px;
  border:1px solid var(--stroke);
  padding:1px 6px;
  font-size:10px;
  font-weight:700;
}
.orgTrend.up{
  color:#22C55E;
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.12);
}
.orgTrend.down{
  color:#F87171;
  border-color:rgba(248,113,113,.35);
  background:rgba(248,113,113,.12);
}
.orgTrend.flat{
  color:var(--muted);
  border-color:var(--stroke);
  background:rgba(255,255,255,.03);
}
.orgChartWrap{
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.015);
  padding:8px;
  min-height:250px;
}
.orgChartSvg{
  width:100%;
  height:280px;
  display:block;
}
.orgLegend{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.orgLegendItem{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--muted);
}
.orgLegendDot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}
.orgLegendDot.total{background:#3B82F6}
.orgLegendDot.senior{background:#22C55E}
.orgLegendDot.comandante{background:#F59E0B}
.orgEditPanel{
  margin-top:10px;
  border-top:1px dashed var(--stroke);
  padding-top:10px;
  display:none;
}
.orgEditPanel.open{display:block}
.orgFormGrid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.orgFormGrid.promo{grid-template-columns:repeat(3,minmax(0,1fr))}
.orgField{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.orgField span{
  font-size:11px;
  color:var(--muted);
}
.orgField input{
  width:100%;
  min-height:34px;
  border-radius:9px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:0 10px;
  font-size:12px;
}
.orgField input:focus{
  outline:none;
  border-color:var(--accent2);
  box-shadow:0 0 0 2px rgba(0,214,255,.12);
}
.orgBtn{
  min-height:34px;
  border-radius:9px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:11px;
  font-weight:700;
  padding:0 10px;
  cursor:pointer;
}
.orgBtn:hover{border-color:var(--stroke2)}
.orgBtn.primary{
  background:rgba(59,130,246,.18);
  border-color:rgba(59,130,246,.42);
}
.orgAddBtn{align-self:end}
.orgCardActions{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.orgTableWrap{
  margin-top:10px;
  border:1px solid var(--stroke);
  border-radius:10px;
  overflow:auto;
}
.orgTable{
  width:100%;
  border-collapse:collapse;
  min-width:560px;
}
.orgTable th,
.orgTable td{
  border-bottom:1px solid var(--stroke);
  padding:8px;
  text-align:left;
  font-size:11px;
  color:var(--muted);
  vertical-align:middle;
}
.orgTable th{
  color:var(--text);
  font-weight:800;
  background:rgba(255,255,255,.02);
}
.orgTable tr:last-child td{border-bottom:none}
.orgTable input{
  width:100%;
  min-width:120px;
  min-height:30px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
  color:var(--text);
  padding:0 8px;
  font-size:11px;
}
.orgTable input:focus{
  outline:none;
  border-color:var(--accent2);
}
.orgRowDel{
  min-height:30px;
  border-radius:8px;
  border:1px solid rgba(248,113,113,.42);
  background:rgba(248,113,113,.12);
  color:#F87171;
  font-size:10px;
  font-weight:700;
  padding:0 8px;
  cursor:pointer;
}
.orgRowHint{
  margin-top:6px;
  font-size:10px;
  color:var(--muted);
}
:root[data-theme='light'] .orgChartWrap{
  background:#fff;
  border-color:rgba(17,24,39,.12);
}
:root[data-theme='light'] .orgKpi{
  background:#fff;
  border-color:rgba(17,24,39,.12);
}
:root[data-theme='light'] .orgField input,
:root[data-theme='light'] .orgTable input{
  background:#fff;
  border-color:rgba(17,24,39,.14);
  color:#111827;
}
:root[data-theme='light'] .orgIconBtn{
  border-color:rgba(17,24,39,.16);
  background:rgba(15,23,42,.04);
  color:#475569;
}
:root[data-theme='light'] .orgIconBtn:hover{color:#0f172a}
:root[data-theme='light'] .orgIconBtn.active{
  color:#0369A1;
  border-color:rgba(3,105,161,.34);
  background:rgba(14,165,233,.12);
}
:root[data-theme='light'] .orgTable th{
  background:rgba(15,23,42,.05);
  color:#111827;
}
:root[data-theme='light'] .orgTable td{
  border-bottom-color:rgba(17,24,39,.1);
  color:#374151;
}
:root[data-theme='light'] .orgBtn{
  border-color:rgba(17,24,39,.16);
  background:rgba(15,23,42,.04);
  color:#334155;
}
:root[data-theme='light'] .orgBtn.primary{
  background:rgba(37,99,235,.1);
  border-color:rgba(37,99,235,.3);
  color:#1D4ED8;
}
/* ── Exercício ── */
.exHead{
  align-items:flex-start;
  gap:12px;
}
.exTitleWrap{
  display:flex;
  align-items:center;
  gap:6px;
}
.exAddBtn{
  min-width:24px;
  min-height:24px;
  padding:0 4px;
  border:none;
  background:transparent;
  color:rgba(191,201,216,.72);
  font-size:18px;
  font-weight:600;
  line-height:1;
  border-radius:8px;
  cursor:pointer;
  transition:color .14s,background .14s,transform .14s;
}
.exAddBtn:hover{
  color:var(--text);
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.exAddBtn.open{
  color:rgba(56,189,248,.92);
}
.exPeriodRow{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.exPeriodBtn{
  min-height:28px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .14s,background .14s,color .14s;
}
.exPeriodBtn:hover{
  color:var(--text);
  border-color:var(--stroke2);
}
.exPeriodBtn.active{
  color:var(--text);
  border-color:rgba(138,91,255,.44);
  background:rgba(138,91,255,.16);
}
.exModule{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.exKpiGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:8px;
}
.exKpiCard{
  border:1px solid var(--stroke);
  border-radius:10px;
  background:rgba(255,255,255,.02);
  padding:9px 10px;
}
.exKpiLabel{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.02em;
}
.exKpiValue{
  margin-top:4px;
  font-size:15px;
  font-weight:800;
  color:var(--text);
}
.exKpiSub{
  margin-top:4px;
  font-size:10px;
  color:var(--muted);
}
.exComposer{
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  padding:11px 12px;
}
.exComposerTitle{
  font-size:12px;
  font-weight:800;
  color:var(--text);
  margin-bottom:8px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.exFormGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.exField{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.exField label{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.exField input,
.exField select,
.exField textarea{
  width:100%;
  min-height:34px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:12px;
  padding:0 10px;
  font-family:inherit;
}
.exField select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dbe7f8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:13px 13px;
  background-position:right 10px center;
}
.exField textarea{
  min-height:82px;
  resize:vertical;
  padding:8px 10px;
}
.exField input:focus,
.exField select:focus,
.exField textarea:focus{
  outline:none;
  border-color:var(--accent2);
}
.exZonesWrap{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--stroke);
}
.exZonesTitle{
  font-size:11px;
  color:var(--muted);
  margin-bottom:7px;
}
.exZonesGrid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.exActions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.exBtn{
  min-height:34px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:11px;
  font-weight:700;
  padding:0 12px;
  cursor:pointer;
}
.exBtn:hover{border-color:var(--stroke2)}
.exBtn.primary{
  background:rgba(56,189,248,.16);
  border-color:rgba(56,189,248,.38);
}
.exListTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:2px;
}
.exListTop h3{
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(230,234,240,.8);
}
.exList{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.exItem{
  border:1px solid var(--stroke);
  border-radius:10px;
  background:rgba(255,255,255,.02);
  padding:9px 10px;
}
.exItemTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.exItemActions{
  display:flex;
  align-items:center;
  gap:6px;
}
.exItemTitle{
  font-size:13px;
  font-weight:700;
  color:var(--text);
}
.exItemMeta{
  margin-top:2px;
  font-size:10px;
  color:var(--muted);
}
.exDelBtn{
  min-height:24px;
  border-radius:7px;
  border:1px solid rgba(248,113,113,.38);
  background:rgba(248,113,113,.12);
  color:#F87171;
  font-size:10px;
  font-weight:700;
  padding:0 8px;
  cursor:pointer;
}
.exEditBtn{
  min-height:24px;
  border-radius:7px;
  border:1px solid rgba(56,189,248,.38);
  background:rgba(56,189,248,.12);
  color:#38BDF8;
  font-size:10px;
  font-weight:700;
  padding:0 8px;
  cursor:pointer;
}
.exEditBtn:hover{
  background:rgba(56,189,248,.2);
}
.exDelBtn:hover{
  background:rgba(248,113,113,.2);
}
.exChipRow{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.exChip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:22px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  padding:0 8px;
  font-size:10px;
  color:var(--muted);
}
.exChip b{
  font-size:10px;
  color:var(--text);
}
.exZonesLine{
  margin-top:8px;
  font-size:10px;
  color:var(--muted);
}
.exNotes{
  margin-top:7px;
  font-size:11px;
  color:var(--text);
  white-space:pre-wrap;
  line-height:1.5;
}
:root[data-theme='light'] .exAddBtn{
  color:#64748b;
}
:root[data-theme='dark'] .exField select{
  color-scheme:dark;
}
:root[data-theme='dark'] .exField select option,
:root[data-theme='dark'] .exField select optgroup{
  background:#0f1724;
  color:#e7eef9;
}
:root[data-theme='light'] .exAddBtn:hover{
  color:#111827;
  background:rgba(15,23,42,.08);
}
:root[data-theme='light'] .exPeriodBtn{
  border-color:rgba(17,24,39,.16);
  background:#fff;
  color:#475569;
}
:root[data-theme='light'] .exPeriodBtn.active{
  color:#4c1d95;
  border-color:rgba(109,40,217,.34);
  background:rgba(109,40,217,.1);
}
:root[data-theme='light'] .exKpiCard,
:root[data-theme='light'] .exComposer,
:root[data-theme='light'] .exItem{
  background:#fff;
  border-color:rgba(17,24,39,.12);
}
:root[data-theme='light'] .exField input,
:root[data-theme='light'] .exField select,
:root[data-theme='light'] .exField textarea{
  background:#fff;
  border-color:rgba(17,24,39,.16);
  color:#111827;
}
:root[data-theme='light'] .exField select{
  color-scheme:light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme='light'] .exField select option,
:root[data-theme='light'] .exField select optgroup{
  background:#ffffff;
  color:#111827;
}
:root[data-theme='light'] .exBtn{
  border-color:rgba(17,24,39,.16);
  background:rgba(15,23,42,.04);
  color:#334155;
}
:root[data-theme='light'] .exBtn.primary{
  border-color:rgba(14,116,144,.34);
  background:rgba(14,116,144,.12);
  color:#0f766e;
}
:root[data-theme='light'] .exEditBtn{
  border-color:rgba(14,116,144,.34);
  background:rgba(14,116,144,.12);
  color:#0f766e;
}
:root[data-theme='light'] .exListTop h3{
  color:#334155;
}
:root[data-theme='light'] .exChip{
  border-color:rgba(17,24,39,.14);
  background:#fff;
  color:#64748b;
}
@media(max-width:1080px){
  .orgKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .orgFormGrid,
  .orgFormGrid.promo{grid-template-columns:repeat(2,minmax(0,1fr))}
  .orgAddBtn{grid-column:1/-1}
  .exFormGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .exZonesGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .musicModule .musicHead{grid-template-columns:1fr}
  .musicModule .musicHeadActions{justify-content:flex-start}
  .musicModule .musicAddPicker{grid-template-columns:1fr}
  .musicModule .musicCards{grid-template-columns:1fr}
  .musicModule .musicKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .musicModule .musicInstrumentGrid{grid-template-columns:1fr}
  .musicModule .musicEditGrid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .orgKpiGrid{grid-template-columns:1fr}
  .orgFormGrid,
  .orgFormGrid.promo{grid-template-columns:1fr}
  .orgCardActions{
    flex-direction:column;
    align-items:stretch;
  }
  .exPeriodRow{
    width:100%;
  }
  .exPeriodBtn{
    flex:1 1 calc(50% - 6px);
    justify-content:center;
  }
  .exFormGrid{grid-template-columns:1fr}
  .exZonesGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .exActions{
    flex-direction:column;
    align-items:stretch;
  }
  .orgChartSvg{height:250px}
}

