/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwf7I-NP.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMw77I-NP.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* math */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuM3b7I-NP.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuM2T7I-NP.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwX7I-NP.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwf7I-NP.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMw77I-NP.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* math */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuM3b7I-NP.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuM2T7I-NP.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwX7I-NP.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ══════════════════════════════════════════════════
   APA · Conferência de Relatórios — tema teal/sálvia (glass)
   Drop-in: substitui styles.css. NENHUM id/classe alterado
   (app.js e login.js continuam funcionando).
   Fontes: DM Sans (corpo) + Lora (títulos).
══════════════════════════════════════════════════ */

:root {
  --teal: #00403b;
  --teal2: #0a5a52;
  --teal3: #0c6056;
  --sage: #93a070;
  --bg1: #cad9d0;
  --bg2: #e8efe9;
  --bg3: #f4f7f4;
  --card: rgba(255,255,255,0.62);
  --card-solid: #ffffff;
  --linha: rgba(10,90,82,0.14);
  --linha2: rgba(10,90,82,0.10);
  --texto: #04332e;
  --texto2: #00403b;
  --muted: #647a6f;
  --muted2: #889a8b;
  --ok: #5a7d33;
  --ok-bg: rgba(111,143,63,0.18);
  --no: #a14e35;
  --no-bg: rgba(181,101,74,0.16);
  --amarelo: #9a7d28;
  --amarelo-bg: rgba(194,162,63,0.16);
  --azul: #2b5fb7;
  --azul-bg: rgba(43,95,183,0.14);
  --glass-shadow: 0 18px 40px -26px rgba(4,51,46,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

@keyframes apaRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes apaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes apaModalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes apaRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto2);
  font-size: 14px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(147,160,112,0.18), transparent 42%),
    linear-gradient(150deg, var(--bg1) 0%, var(--bg2) 44%, var(--bg3) 100%);
  background-attachment: fixed;
}
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ── Marca ── */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(150deg, var(--teal2), var(--teal));
  color: #fff; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(0,64,59,0.55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 700; color: var(--texto); }
.brand-text span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ── Login ── */
.login-body {
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 100vh;
}

/* Shell dividido */
.lg-shell {
  display: grid; grid-template-columns: 1.05fr 1fr;
  width: 100%; max-width: 1000px; min-height: 600px;
  border-radius: 28px; overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 44px 100px -40px rgba(4,51,46,0.55), inset 0 1px 0 rgba(255,255,255,0.75);
  animation: apaRise .55s cubic-bezier(.16,1,.3,1) both;
}

/* ── Painel de marca ── */
.lg-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 42px 40px; color: #eaf3ee; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(147,160,112,0.34), transparent 55%),
    radial-gradient(90% 70% at 92% 100%, rgba(12,96,86,0.7), transparent 60%),
    linear-gradient(155deg, #0a5a52 0%, #00403b 60%, #04332e 100%);
}
.lg-brand::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 78%);
  mask-image: linear-gradient(160deg, #000, transparent 78%);
}
.lg-brand > * { position: relative; z-index: 1; }
.lg-brand-top { display: flex; align-items: center; gap: 12px; }
.lg-brand-top .brand-badge {
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.lg-wordmark { font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: rgba(234,243,238,0.82); max-width: 180px; line-height: 1.3; }

.lg-brand-mid { padding: 8px 0; }
.lg-seal { width: 108px; height: 108px; margin-bottom: 26px; }
.lg-seal-svg { width: 100%; height: 100%; overflow: visible; }
.lg-seal-ring, .lg-seal-ring2, .lg-seal-check { fill: none; stroke-linecap: round; }
.lg-seal-ring { stroke: rgba(255,255,255,0.32); stroke-width: 2; stroke-dasharray: 6 10; transform-origin: 60px 60px; animation: lgSpin 26s linear infinite; }
.lg-seal-ring2 { stroke: rgba(255,255,255,0.5); stroke-width: 1.5; stroke-dasharray: 264; stroke-dashoffset: 264; animation: lgDraw 1.1s .25s cubic-bezier(.16,1,.3,1) forwards; }
.lg-seal-check { stroke: #b9e6c9; stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: lgDraw .55s .95s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }

.lg-title { font-family: 'Lora', Georgia, serif; font-size: 33px; font-weight: 700; line-height: 1.12; letter-spacing: -0.5px; color: #fff; max-width: 11ch; }
.lg-tag { margin-top: 14px; font-size: 14px; font-weight: 500; line-height: 1.55; color: rgba(234,243,238,0.8); max-width: 34ch; }

.lg-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lg-trust li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; color: rgba(234,243,238,0.8); }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: #9fd6b4; box-shadow: 0 0 0 4px rgba(159,214,180,0.18); }

/* ── Formulário ── */
.lg-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 40px; background: rgba(255,255,255,0.5); }
.lg-form-inner { width: 100%; max-width: 340px; animation: apaFade .6s .15s both; }
.lg-form-head { margin-bottom: 26px; }
.lg-kicker { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--sage); }
.lg-welcome { font-family: 'Lora', Georgia, serif; font-size: 27px; font-weight: 700; color: var(--texto); margin-top: 7px; letter-spacing: -0.3px; }
.lg-sub { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 5px; }
#loginForm { display: flex; flex-direction: column; gap: 6px; }
#loginForm label { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

.lg-field { position: relative; display: flex; align-items: center; }
.lg-field-ic { position: absolute; left: 13px; width: 18px; height: 18px; color: #9aa384; pointer-events: none; transition: color .16s; }
.lg-field input { padding-left: 40px; }
.lg-field:focus-within .lg-field-ic { color: var(--teal3); }
.lg-reveal { position: absolute; right: 8px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: transparent; color: #9aa384; cursor: pointer; border-radius: 8px; transition: color .16s, background .16s; }
.lg-reveal svg { width: 18px; height: 18px; }
.lg-reveal:hover { background: rgba(10,90,82,0.08); color: var(--teal3); }
.lg-reveal.on { color: var(--teal3); }

.lg-foot { margin-top: 22px; font-size: 12px; font-weight: 500; color: var(--muted2); text-align: center; }

@media (max-width: 820px) {
  .lg-shell { grid-template-columns: 1fr; max-width: 420px; min-height: 0; }
  .lg-brand { padding: 32px 30px; }
  .lg-brand-mid { padding: 22px 0; }
  .lg-seal { width: 76px; height: 76px; margin-bottom: 18px; }
  .lg-title { font-size: 26px; }
  .lg-tag { display: none; }
}

input, textarea, select {
  font: inherit; padding: 11px 13px;
  border: 1.5px solid rgba(190,196,162,0.75);
  border-radius: 12px; background: rgba(255,255,255,0.75); color: var(--texto2); width: 100%;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: #9aa384; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal3);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 4px rgba(10,90,82,0.14);
}
button { font: inherit; cursor: pointer; border: none; border-radius: 12px; }
#btnEntrar, .btn-primary {
  margin-top: 18px; padding: 13px;
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  color: #fff; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 12px 26px -10px rgba(0,64,59,0.6);
  transition: transform .15s, filter .18s;
}
#btnEntrar:hover, .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07); }
button:disabled { opacity: .6; cursor: default; transform: none; }
.msg { min-height: 18px; font-size: 13px; font-weight: 500; margin: 10px 0 0; }
.msg.erro { color: var(--no); }
.msg.ok { color: var(--ok); }

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 20;
}
.btn-ghost {
  background: rgba(10,90,82,0.06); color: var(--teal3); font-weight: 700; padding: 9px 16px;
  border: 1px solid var(--linha); transition: background .16s;
}
.btn-ghost:hover { background: rgba(10,90,82,0.14); }

/* ── Layout ── */
.layout { display: grid; grid-template-columns: 316px 1fr; gap: 18px; min-height: calc(100vh - 66px); padding: 18px; max-width: 1500px; margin: 0 auto; }
.sidebar {
  align-self: start; position: sticky; top: 84px;
  border-radius: 20px; padding: 18px 16px;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--glass-shadow);
  max-height: calc(100vh - 102px); overflow: auto;
}
.sidebar h2 { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted2); font-weight: 700; margin-bottom: 12px; padding: 2px 4px; }
.lista { display: flex; flex-direction: column; gap: 9px; }
.item {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px;
  transition: border-color .16s, box-shadow .16s, transform .15s, background .16s;
  animation: apaRise .45s cubic-bezier(.16,1,.3,1) both;
}
.item:nth-child(1) { animation-delay: 0s; }
.item:nth-child(2) { animation-delay: .05s; }
.item:nth-child(3) { animation-delay: .1s; }
.item:nth-child(4) { animation-delay: .15s; }
.item:nth-child(5) { animation-delay: .2s; }
.item:hover { border-color: rgba(10,90,82,0.4); transform: translateY(-1px); background: rgba(255,255,255,0.8); }
.item.sel { border-color: var(--teal3); background: rgba(10,90,82,0.08); box-shadow: 0 0 0 2px rgba(10,90,82,0.18); }
.item-tit { font-weight: 700; color: var(--texto); }
.item-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.item .badge { align-self: flex-start; margin-top: 2px; }

.content {
  padding: 22px 26px; overflow: auto;
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--glass-shadow);
}
.vazio { color: var(--muted); padding: 60px 40px; text-align: center; font-weight: 500; }

/* ── Detalhe ── */
.detalhe { animation: apaFade .4s ease both; }
.detalhe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--linha); }
.detalhe-head h1 { font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: -0.3px; color: var(--texto); }
.detalhe-head .muted { margin-top: 5px; }
.status-wrap { text-align: right; }
.status-wrap .small { margin-top: 5px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(10,90,82,0.1); color: var(--muted);
}
.badge-aguardando { background: var(--amarelo-bg); color: var(--amarelo); }
.badge-aprovado { background: var(--ok-bg); color: var(--ok); }
.badge-reprovado { background: var(--no-bg); color: var(--no); }
.badge-em_correcao { background: var(--azul-bg); color: var(--azul); }

.acao-bar { display: flex; gap: 12px; margin: 20px 0; }
.btn-ok { background: linear-gradient(135deg, #6f8f3f, #4f6d2b); color: #fff; padding: 12px 24px; font-weight: 700; box-shadow: 0 10px 22px -10px rgba(79,109,43,0.6); transition: transform .15s, filter .18s; }
.btn-ok:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-no { background: linear-gradient(135deg, #b5654a, #8f4a33); color: #fff; padding: 12px 24px; font-weight: 700; box-shadow: 0 10px 22px -10px rgba(143,74,51,0.6); transition: transform .15s, filter .18s; }
.btn-no:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ── Histórico ── */
.hist { margin: 18px 0; border: 1px solid var(--linha); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,0.5); }
.hist summary { cursor: pointer; font-weight: 700; color: var(--teal3); font-size: 13px; }
.timeline { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tl { border-left: 3px solid var(--linha); padding: 2px 0 2px 14px; }
.tl-aprovado { border-color: var(--ok); }
.tl-reprovado { border-color: var(--no); }
.tl-enviado, .tl-reenviado { border-color: var(--sage); }
.tl-tipo { font-weight: 700; display: block; color: var(--texto); }
.tl-data { font-size: 12px; color: var(--muted); font-weight: 500; }
.tl-obs { margin-top: 6px; background: rgba(255,255,255,0.7); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--texto2); }

/* ── Tabs / filtros / tabela ── */
.tabs { display: flex; gap: 6px; margin: 20px 0 14px; border-bottom: 1px solid var(--linha); }
.tab-btn { background: transparent; padding: 9px 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; border-radius: 0; transition: color .16s, border-color .16s; }
.tab-btn:hover { color: var(--teal3); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

.filtros { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(10,90,82,0.05); border: 1px solid var(--linha2); }
.filtros label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); min-width: 220px; }
.filtros .small { padding-bottom: 10px; }
#contagem { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 10px; background: rgba(255,255,255,0.7); border: 1px solid var(--linha); color: var(--teal3); font-weight: 600; font-size: 11.5px; }

/* ── Combobox pesquisável ── */
.combo { position: relative; }
.combo select[data-combo] { display: none; }
.combo-field { position: relative; }
.combo-input {
  width: 100%; padding: 11px 38px 11px 13px;
  border: 1.5px solid rgba(190,196,162,0.75); border-radius: 12px;
  background: rgba(255,255,255,0.75); color: var(--texto2); font: inherit;
  cursor: text; transition: border-color .16s, box-shadow .16s, background .16s;
}
.combo-input:focus { outline: none; border-color: var(--teal3); background: rgba(255,255,255,0.98); box-shadow: 0 0 0 4px rgba(10,90,82,0.14); }
.combo-caret {
  position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; pointer-events: auto; cursor: pointer;
  border-right: 2px solid var(--teal3); border-bottom: 2px solid var(--teal3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.combo.open .combo-caret { transform: translateY(-30%) rotate(225deg); }
.combo-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: auto; z-index: 30;
  min-width: 100%; width: max-content; max-width: min(460px, 88vw);
  max-height: 300px; overflow: auto; padding: 6px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(190,196,162,0.7); border-radius: 14px;
  box-shadow: 0 24px 50px -16px rgba(4,51,46,0.4);
  animation: apaRise .16s ease both;
}
.combo-opt {
  padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--texto2); white-space: normal; overflow-wrap: anywhere; line-height: 1.4;
  transition: background .12s;
}
.combo-opt:hover { background: rgba(10,90,82,0.08); }
.combo-opt.sel { background: rgba(10,90,82,0.12); font-weight: 700; color: var(--teal); }
.combo-empty { padding: 12px; text-align: center; color: var(--muted2); font-size: 12.5px; }
.combo-panel::-webkit-scrollbar { width: 8px; }
.combo-panel::-webkit-scrollbar-thumb { background: rgba(10,90,82,0.2); border-radius: 999px; }

.view { animation: apaFade .3s ease both; }
.tabela-wrap { overflow: auto; border: 1px solid var(--linha); border-radius: 14px; background: rgba(255,255,255,0.65); max-height: 60vh; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
thead th {
  position: sticky; top: 0; background: #e7efe9; text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--linha); font-weight: 700; white-space: nowrap; z-index: 1;
  font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
}
tbody tr { animation: apaRowIn .3s ease both; }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--linha2); color: var(--texto2); }
tbody tr:nth-child(even) { background: rgba(10,90,82,0.025); }
tbody tr:hover { background: rgba(10,90,82,0.07); }
caption { padding: 24px; color: var(--muted); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; background: rgba(4,51,46,0.42); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 60; animation: apaFade .18s ease both; }
.modal-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px; padding: 24px 26px; width: 100%; max-width: 480px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 40px 90px -30px rgba(4,51,46,0.6);
  animation: apaModalIn .26s cubic-bezier(.16,1,.3,1) both;
}
.modal-card h3 { font-family: 'Lora', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--texto); }
.modal-card .muted { margin-top: 6px; }
.modal-card #obsLabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; }
.modal-card textarea { margin-top: 0; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ── Scrollbar ── */
.sidebar::-webkit-scrollbar, .tabela-wrap::-webkit-scrollbar, .content::-webkit-scrollbar { width: 8px; height: 8px; }
.sidebar::-webkit-scrollbar-thumb, .tabela-wrap::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb { background: rgba(10,90,82,0.2); border-radius: 999px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
}
