:root {
    --blue: #0460b1;
    --blue-2: #004f9f;
    --navy: #0b2239;
    --green: #008a45;
    --yellow: #ffd600;
    --red: #e53935;
    --red-dark: #b42318;
    --ink: #14263a;
    --muted: #52677c;
    --line: #dce5ed;
    --surface: #f3f7fa;
    --white: #fff;
    --shadow: 0 10px 30px rgba(11, 34, 57, .08);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--surface); }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.sidebar { background: var(--navy); color: #fff; padding: 24px 16px; position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 30; display: flex; flex-direction: column; }
.sidebar-logo { display: block; width: 178px; margin: 2px 8px 30px; }
.module-context { margin: -14px 8px 18px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.045); }
.module-context span { display: block; color: #91a9bd; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.module-context strong { display: block; color: #fff; font-size: 12px; }
.module-context small { display: block; color: #68b8e7; font-size: 9px; margin-top: 4px; }
.module-context:hover { border-color: rgba(103,181,226,.6); background: rgba(255,255,255,.08); }
.nav-label { color: #87a2b9; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 20px 12px 7px; }
.nav-link { display: flex; gap: 11px; align-items: center; padding: 10px 12px; color: #d9e7f2; border-radius: 9px; font-size: 13px; margin: 2px 0; transition: .15s ease; }
.nav-link:hover { background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: #164b70; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #59b5ea; flex: none; }
.nav-link.active .nav-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,214,0,.15); }
.sidebar-foot { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot strong { display: block; font-size: 12px; }
.sidebar-foot span { color: #91a9bd; font-size: 10px; }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 20; }
.crumb { color: var(--muted); font-size: 12px; }
.user { display: flex; align-items: center; gap: 11px; }
.user-copy { text-align: right; }
.user-copy strong { display: block; font-size: 12px; }
.user-copy span { color: var(--muted); font-size: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #d9edf8; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 12px; overflow: hidden; text-decoration: none; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.logout { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; padding: 8px; }
.menu-button { display: none; border: 0; border-radius: 8px; background: #e7f2f9; color: var(--navy); padding: 8px 10px; cursor: pointer; }

.content { padding: 32px; max-width: 1480px; margin: 0 auto; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 900; margin-bottom: 7px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 25px; }
.page-title { font-size: 28px; line-height: 1.1; margin: 0; color: var(--navy); }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font-weight: 750; font-size: 12px; cursor: pointer; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 5px 13px rgba(4,96,177,.2); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-danger { background: #fff; border-color: #f2c7c4; color: var(--red-dark); }

.flash { background: #e8f7ef; color: #075e35; border: 1px solid #a8ddbf; padding: 12px 15px; border-radius: 9px; font-size: 12px; margin-bottom: 20px; }
.flash.error { background: #fff0ef; color: #912018; border-color: #f0bab5; }

.camp-notifications { position: fixed; z-index: 150; top: 88px; right: 22px; width: min(390px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.camp-notification { pointer-events: auto; display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 13px; background: #fff; padding: 11px 12px; box-shadow: 0 16px 42px rgba(11,34,57,.18); animation: camp-notification-in .2s ease-out both; }
.camp-notification.is-success { border-left-color: var(--green); }
.camp-notification.is-warning { border-left-color: var(--yellow); }
.camp-notification.is-error { border-left-color: var(--red); }
.camp-notification img { width: 52px; height: 52px; object-fit: contain; }
.camp-notification strong { display: block; color: var(--navy); font-size: 12px; margin-bottom: 3px; }
.camp-notification p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.camp-notification button { align-self: start; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.camp-notification.is-leaving { opacity: 0; transform: translateX(18px); transition: .18s ease; }

.bem-context-banner { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; margin: 0 0 24px; padding: 14px 16px; border: 1px solid #d4e8f6; border-radius: 16px; background: #f5faff; }
.bem-context-banner > img { width: 58px; height: 58px; object-fit: contain; transition: .18s ease; }
.bem-context-banner strong { color: #064f8f; font-size: 14px; }
.bem-context-banner p { margin: 4px 0 0; color: #526b7e; font-size: 12px; line-height: 1.5; }
.bem-context-banner button { border: 1px solid #b9d7ea; border-radius: 9px; background: white; color: var(--blue); padding: 8px 10px; font-size: 10px; font-weight: 800; cursor: pointer; }
.bem-context-banner.is-collapsed { padding-block: 8px; }
.bem-context-banner.is-collapsed > img { width: 38px; height: 38px; }
.bem-context-banner.is-collapsed p { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px rgba(11,34,57,.025); }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-row { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.stat-value { font-size: 27px; font-weight: 850; color: var(--navy); }
.stat-trend { color: var(--green); font-size: 10px; font-weight: 800; }
.stat-trend.danger { color: var(--red-dark); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 20px; }
.card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.card-title { margin: 0; font-size: 14px; color: var(--navy); }
.card-hint { color: var(--muted); font-size: 10px; margin-top: 4px; }

.chart { height: 205px; display: flex; align-items: flex-end; gap: 16px; padding: 18px 6px 0; border-bottom: 1px solid var(--line); }
.bar-wrap { flex: 1; text-align: center; min-width: 28px; }
.bar { max-width: 54px; margin: auto; border-radius: 5px 5px 0 0; background: #67b3e2; min-height: 14px; position: relative; }
.bar.current { background: var(--yellow); }
.bar.alert { background: var(--red); }
.bar-value { position: absolute; top: -18px; left: 0; right: 0; font-size: 9px; font-weight: 800; color: var(--muted); }
.bar-label { display: block; margin: 8px 0 9px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.bem-note { margin-top: 17px; background: #eaf5fb; border-radius: 9px; padding: 10px 12px; display: flex; gap: 11px; align-items: center; font-size: 11px; }
.bem-note img { width: 47px; height: 47px; object-fit: contain; }
.bem-note strong { display: block; color: var(--navy); margin-bottom: 3px; }

.deadline-list { display: grid; gap: 1px; }
.deadline { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf2f5; }
.deadline:last-child { border-bottom: 0; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.signal.critical { background: var(--red); }
.signal.attention { background: var(--yellow); }
.deadline strong { display: block; font-size: 11px; }
.deadline span { color: var(--muted); font-size: 9px; }
.days { padding: 4px 7px; border-radius: 12px; font-size: 9px; font-weight: 850; background: #e8f3f9; color: var(--blue-2); white-space: nowrap; }
.days.critical { color: var(--red-dark); background: #fee9e7; }
.days.attention { color: #6b5000; background: #fff6bf; }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 190px auto; gap: 10px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 14px; }
.input, .select, .textarea { width: 100%; border: 1px solid #ccd8e2; background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 10px; font-size: 12px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,96,177,.1); }
.textarea { min-height: 80px; resize: vertical; }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 820px; }
th { background: #f3f8fb; color: #52677c; text-align: left; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 13px; }
td { padding: 12px 13px; border-top: 1px solid #e8eef3; font-size: 11px; vertical-align: middle; }
td strong { display: block; color: var(--navy); }
td small { color: var(--muted); font-size: 9px; }
.badge { display: inline-flex; border-radius: 20px; padding: 4px 8px; font-size: 9px; font-weight: 850; background: #e6f3fa; color: var(--blue-2); }
.badge.critical { background: #fee9e7; color: var(--red-dark); }
.badge.attention { background: #fff3ac; color: #6b5000; }
.badge.ended { background: #edf0f2; color: #52606d; }
.row-action { border: 0; background: #e7f2f9; color: var(--blue-2); border-radius: 6px; padding: 6px 9px; cursor: pointer; font-size: 10px; font-weight: 750; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.pagination nav { display: flex; gap: 5px; }
.pagination a, .pagination span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,25,42,.62); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.modal-head { padding: 19px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-close { border: 0; background: transparent; font-size: 23px; color: var(--muted); cursor: pointer; }
.modal-body { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.field.full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 20px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); background: #fff; }
.login-brand { background: var(--navy); color: #fff; padding: 54px 8vw; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.login-brand::before, .login-brand::after { content: ""; position: absolute; width: 470px; height: 470px; border: 68px solid #174766; border-radius: 50%; right: -160px; bottom: -210px; }
.login-brand::after { width: 260px; height: 260px; border-width: 52px; right: -35px; bottom: -115px; border-color: #0e3652; }
.login-logo { width: 210px; position: relative; z-index: 2; }
.login-message { max-width: 570px; position: relative; z-index: 2; }
.login-message h1 { font-size: clamp(38px, 5vw, 63px); line-height: .98; margin: 0 0 22px; letter-spacing: -.045em; }
.login-message p { color: #d3e0ea; line-height: 1.7; max-width: 500px; font-size: 15px; }
.login-side { background: #f5f8fa; display: grid; place-items: center; padding: 32px 40px; overflow: hidden; }
.login-stage { width: min(460px, 100%); display: grid; gap: 4px; }
.login-bem { display: flex; align-items: flex-end; justify-content: center; min-height: 178px; position: relative; z-index: 2; margin: 0 4px -13px; }
.bem-character { width: 145px; height: 165px; position: relative; flex: none; display: grid; place-items: end center; animation: bem-arrive .75s cubic-bezier(.2,.9,.3,1.25) both, bem-float 3.2s ease-in-out .8s infinite; transform-origin: 50% 85%; }
.bem-character img { width: 145px; height: 145px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 10px 10px rgba(11,34,57,.12)); }
.bem-shadow { position: absolute; width: 76px; height: 13px; border-radius: 50%; background: rgba(11,34,57,.13); bottom: 2px; animation: bem-shadow 3.2s ease-in-out .8s infinite; }
.comic-bubble { position: relative; width: 245px; align-self: flex-start; margin-top: 17px; background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px; box-shadow: 6px 7px 0 #d7e6ef; animation: bubble-pop .55s cubic-bezier(.2,.9,.3,1.2) .3s both; }
.comic-bubble::before { content: ""; position: absolute; right: -18px; bottom: 18px; width: 28px; height: 24px; background: #fff; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: skewX(-35deg) rotate(-8deg); }
.comic-bubble strong, .comic-bubble span { position: relative; z-index: 1; display: block; }
.comic-bubble strong { color: var(--blue); font-size: 15px; margin-bottom: 5px; }
.comic-bubble span { color: var(--ink); font-size: 11px; line-height: 1.45; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 37px; box-shadow: 0 18px 55px rgba(11,34,57,.12); }
.login-symbol { width: 62px; margin-bottom: 22px; }
.login-card h2 { margin: 0 0 9px; color: var(--navy); font-size: 25px; }
.login-card p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.google-btn { width: 100%; border: 1px solid #cdd8e1; background: #fff; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 780; }
.google-btn:hover { border-color: var(--blue); background: #f6fbfe; }
.google-g { color: var(--blue); font-size: 16px; font-weight: 900; margin-right: 8px; }
.login-disclaimer { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 17px; color: #6f8293; font-size: 9px; line-height: 1.5; }

.empty-panel { min-height: 530px; display: grid; place-items: center; text-align: center; }
.empty-inner { max-width: 430px; }
.empty-inner img { width: 155px; height: 155px; object-fit: contain; }
.empty-inner h2 { color: var(--navy); font-size: 22px; margin: 8px 0; }
.empty-inner p { color: var(--muted); font-size: 12px; line-height: 1.6; }

.identity-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.identity-lead { grid-column: 1 / -1; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.identity-lead img { width: min(400px, 46%); }
.identity-lead p { color: var(--muted); max-width: 470px; line-height: 1.7; font-size: 13px; }
.concept { padding: 22px; }
.concept img { display: block; height: 160px; max-width: 100%; margin: 0 auto 20px; }
.concept h3 { font-size: 13px; margin: 0 0 5px; }
.concept p { font-size: 10px; color: var(--muted); margin: 0; }
.swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.swatch { min-height: 88px; border-radius: 9px; color: #fff; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 9px; }
.swatch.light { color: var(--navy); border: 1px solid var(--line); }
.swatch strong { font-size: 10px; }

.report-sheet { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 5px; padding: 34px; }
.report-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--navy); }
.report-head img { width: 230px; }
.report-meta { color: var(--muted); font-size: 9px; text-align: right; line-height: 1.5; }
.report-title { margin: 26px 0 5px; font-size: 21px; color: var(--navy); }
.report-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 19px 0; }
.report-kpi { background: #f1f7fb; border-left: 4px solid var(--blue); padding: 13px; }
.report-kpi strong { display: block; font-size: 22px; }
.report-kpi span { color: var(--muted); font-size: 9px; }
.report-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--line); }

.bem-assistant { position: fixed; right: 24px; bottom: 22px; z-index: 80; display: flex; align-items: flex-end; gap: 2px; filter: drop-shadow(0 14px 24px rgba(11,34,57,.16)); }
.bem-assistant-bubble { width: 280px; background: #fff; border: 1px solid #bfd5e4; border-radius: 14px 14px 3px 14px; padding: 14px 16px; transform-origin: right bottom; animation: assistant-bubble-in .45s cubic-bezier(.2,.9,.3,1.15) both; transition: opacity .2s ease, transform .2s ease, width .2s ease, padding .2s ease; }
.bem-assistant-bubble strong, .bem-assistant-bubble span { display: block; }
.bem-assistant-bubble strong { color: var(--navy); font-size: 12px; margin-bottom: 5px; }
.bem-assistant-bubble span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.bem-assistant-toggle { width: 92px; height: 92px; padding: 0; border: 0; background: transparent; position: relative; cursor: pointer; animation: bem-float 3.2s ease-in-out infinite; transform-origin: 50% 85%; }
.bem-assistant-toggle img { width: 92px; height: 92px; object-fit: contain; position: relative; z-index: 2; }
.bem-pulse { position: absolute; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: rgba(4,96,177,.16); inset: 27px 22px auto auto; animation: bem-pulse 2.2s ease-out infinite; }
.bem-assistant.tone-critical .bem-assistant-bubble { border-left: 4px solid var(--red); }
.bem-assistant.tone-attention .bem-assistant-bubble { border-left: 4px solid var(--yellow); }
.bem-assistant.tone-success .bem-assistant-bubble { border-left: 4px solid var(--green); }
.bem-assistant.tone-help .bem-assistant-bubble, .bem-assistant.tone-welcome .bem-assistant-bubble { border-left: 4px solid var(--blue); }
.bem-assistant.is-collapsed .bem-assistant-bubble { opacity: 0; width: 0; padding-left: 0; padding-right: 0; transform: scale(.75) translateX(25px); pointer-events: none; border-width: 0; overflow: hidden; }

.platform-page { background: #eef4f7; min-height: 100vh; }
.platform-header { height: 78px; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 max(28px, calc((100vw - 1320px) / 2)); position: sticky; top: 0; z-index: 30; }
.platform-header > a img { display: block; width: 205px; }
.platform-user { display: flex; align-items: center; gap: 11px; }
.platform-main { width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 34px; }
.bem-photo-reminder { display: flex; align-items: center; gap: 14px; margin: -20px 0 24px; padding: 12px 16px; border: 1px solid #cfe4f5; border-radius: 16px; background: #f4faff; color: #173f62; }
.bem-photo-reminder img { width: 44px; height: 44px; object-fit: contain; }
.bem-photo-reminder div { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.bem-photo-reminder span { color: #5c7388; font-size: 13px; }
.bem-photo-reminder a, .profile-primary, .profile-back { border: 0; border-radius: 10px; background: #0460b1; color: white; padding: 10px 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.profile-page { max-width: 1050px; margin: 0 auto; }
.profile-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.profile-heading h1 { margin: 0 0 6px; font-size: 32px; }
.profile-heading p { margin: 0; color: #63788c; }
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
.profile-card { background: white; border: 1px solid #dce6ed; border-radius: 18px; padding: 24px; display: flex; gap: 18px; align-items: center; box-shadow: 0 10px 28px rgba(26, 63, 94, .07); }
.profile-photo { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #082f4f; color: white; font-size: 27px; font-weight: 800; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { margin: 0 0 5px; }
.profile-card p { margin: 0 0 10px; color: #63788c; }
.profile-role { display: inline-flex; border-radius: 999px; background: #e9f4fc; color: #0460b1; padding: 5px 9px; font-size: 12px; font-weight: 750; }
.profile-upload { display: block; }
.bem-inline { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 12px; border-radius: 13px; background: #f4faff; }
.bem-inline img { width: 48px; height: 48px; object-fit: contain; }
.bem-inline p { margin: 2px 0 0; font-size: 12px; }
.profile-upload form { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.profile-upload label { font-weight: 750; }
.profile-upload input { border: 1px solid #ccd9e3; border-radius: 10px; padding: 10px; }
.profile-upload small { color: #687d90; }
.profile-primary { align-self: flex-start; margin-top: 6px; }
.profile-danger { align-self: flex-start; border: 0; background: transparent; color: #b42318; font-weight: 750; cursor: pointer; padding: 7px 0; }
.platform-footer { width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #d4e0e8; color: var(--muted); font-size: 9px; }
.modules-hero { min-height: 245px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(390px, .6fr); align-items: center; gap: 30px; margin-bottom: 26px; }
.modules-hero-copy h1 { margin: 0 0 15px; color: var(--navy); font-size: clamp(37px, 5vw, 61px); letter-spacing: -.045em; line-height: 1; }
.modules-hero-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 700px; }
.modules-admin-button { display: inline-flex; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #0460b1; color: white; text-decoration: none; font-weight: 800; font-size: 13px; }
.module-bem { display: flex; justify-content: flex-end; align-items: center; min-height: 190px; }
.module-bem img, .preview-bem img { width: 155px; height: 155px; object-fit: contain; filter: drop-shadow(0 11px 11px rgba(11,34,57,.12)); animation: bem-float 3.2s ease-in-out infinite; }
.module-bem-bubble { width: 220px; position: relative; background: #fff; border: 1px solid #bdd2e1; border-radius: 14px 14px 3px 14px; padding: 14px 16px; box-shadow: 5px 6px 0 #d9e6ee; animation: bubble-pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.module-bem-bubble::after { content: ""; position: absolute; right: -10px; bottom: 15px; width: 18px; height: 18px; background: #fff; border-right: 1px solid #bdd2e1; border-bottom: 1px solid #bdd2e1; transform: rotate(-8deg) skew(-22deg); }
.module-bem-bubble strong, .module-bem-bubble span { display: block; position: relative; z-index: 1; }
.module-bem-bubble strong { color: var(--blue); font-size: 13px; margin-bottom: 5px; }
.module-bem-bubble span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.module-card { min-height: 392px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 26px rgba(11,34,57,.06); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.module-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--blue); }
.module-card.admission::before { background: linear-gradient(90deg, var(--green), var(--yellow)); }
.module-card.movement::before { background: linear-gradient(90deg, var(--blue), var(--red)); }
.module-card:hover, .module-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(11,34,57,.13); border-color: #a8c9df; outline: none; }
.module-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.module-status { display: inline-flex; border-radius: 20px; padding: 5px 9px; font-size: 9px; font-weight: 850; }
.module-status.available { color: #075e35; background: #e6f6ed; }
.module-status.planned { color: #6b5000; background: #fff5ba; }
.module-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf5fa; color: var(--blue); font-size: 17px; transition: transform .2s ease; }
.module-card:hover .module-arrow { transform: translateX(3px); }
.module-icon { width: 74px; height: 74px; border-radius: 17px; background: #eaf5fb; position: relative; margin-bottom: 20px; display: grid; place-items: center; }
.module-icon span { position: absolute; border-radius: 50%; background: var(--blue); width: 13px; height: 13px; }
.module-icon span:nth-child(1) { left: 16px; top: 19px; }
.module-icon span:nth-child(2) { right: 15px; top: 30px; background: var(--yellow); }
.module-icon span:nth-child(3) { left: 25px; bottom: 13px; background: var(--green); }
.module-icon::after { content: ""; width: 39px; height: 3px; border-radius: 3px; background: #9fc9e2; transform: rotate(18deg); }
.module-card.admission .module-icon { background: #ebf8f0; }
.module-card.admission .module-icon span:nth-child(1) { background: var(--green); }
.module-card.admission .module-icon span:nth-child(2) { background: var(--yellow); }
.module-card.admission .module-icon span:nth-child(3) { background: var(--blue); }
.module-card.movement .module-icon { background: #eef1f8; }
.module-card.movement .module-icon span:nth-child(1) { background: var(--blue); }
.module-card.movement .module-icon span:nth-child(2) { background: var(--red); }
.module-number { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 900; margin-bottom: 5px; }
.module-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 25px; }
.module-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 17px; }
.module-card-meta { border-top: 1px solid #e7eef3; padding-top: 13px; display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 9px; }
.module-card-meta strong { color: var(--navy); font-size: 12px; }
.module-cta { margin-top: auto; padding-top: 18px; color: var(--blue); font-size: 11px; font-weight: 850; }
.shared-core { margin-top: 16px; background: var(--navy); color: #fff; border-radius: 14px; padding: 21px 24px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.shared-core > div { display: flex; align-items: center; gap: 14px; }
.core-symbol { width: 43px; height: 43px; display: grid; place-items: center; border: 5px solid var(--blue); border-right-color: transparent; border-radius: 50%; color: var(--yellow); font-weight: 900; }
.shared-core strong { font-size: 12px; }
.shared-core p { margin: 4px 0 0; color: #a9bdcc; font-size: 9px; }
.shared-core ul { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.shared-core li { border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 6px 9px; color: #d9e5ee; font-size: 9px; }
.back-link { display: inline-flex; margin-bottom: 20px; color: var(--blue); font-size: 11px; font-weight: 800; }
.preview-hero { min-height: 370px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 42px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 35px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.preview-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(var(--green), var(--yellow)); }
.preview-hero.tone-movement::before { background: linear-gradient(var(--blue), var(--red)); }
.preview-copy h1 { font-size: 48px; margin: 13px 0 12px; color: var(--navy); letter-spacing: -.04em; }
.preview-copy > p { color: var(--muted); line-height: 1.7; max-width: 650px; font-size: 14px; margin: 0 0 24px; }
.preview-bem { display: flex; align-items: center; justify-content: flex-end; }
.preview-content { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.preview-content h2 { color: var(--navy); font-size: 20px; margin: 0 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.feature-item { background: #f2f7fa; border: 1px solid #e0e9ef; border-radius: 9px; padding: 13px; display: flex; align-items: center; gap: 10px; }
.feature-item span { color: var(--blue); font-size: 9px; font-weight: 900; }
.feature-item strong { font-size: 11px; }
.preview-note { position: relative; overflow: hidden; }
.preview-note p { color: var(--muted); font-size: 11px; line-height: 1.65; max-width: 80%; }
.preview-note img { position: absolute; width: 105px; height: 105px; opacity: .09; right: -10px; bottom: -15px; }

/* Processos SEI */
.module-card.processes::before { background: linear-gradient(90deg, #f08c2e, var(--yellow)); }
.module-card.processes .module-icon { background: #fff4e8; }
.module-card.processes .module-icon span:nth-child(1) { width: 38px; height: 7px; border-radius: 3px; background: #f08c2e; left: 18px; top: 18px; }
.module-card.processes .module-icon span:nth-child(2) { width: 29px; height: 7px; border-radius: 3px; background: var(--blue); left: 18px; top: 33px; }
.module-card.processes .module-icon span:nth-child(3) { width: 21px; height: 7px; border-radius: 3px; background: var(--green); left: 18px; bottom: 18px; }
.module-card.processes .module-icon::after { width: 2px; height: 39px; background: #f3c394; transform: none; left: 11px; position: absolute; }

.process-page { width: min(1600px, calc(100vw - 56px)); margin-left: 50%; transform: translateX(-50%); }
.process-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; margin-bottom: 18px; }
.process-breadcrumb a { color: var(--blue); font-weight: 800; }
.process-breadcrumb strong { color: var(--navy); }
.process-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.process-hero h1 { margin: 0 0 8px; color: var(--navy); font-size: 37px; letter-spacing: -.035em; }
.process-hero p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 680px; }

.process-kpis { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(235px, 1.15fr); gap: 11px; margin-bottom: 15px; }
.process-kpis > article { min-height: 94px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; box-shadow: 0 3px 12px rgba(11,34,57,.035); }
.process-kpis small, .process-kpis strong, .process-kpis em { display: block; font-style: normal; }
.process-kpis small { color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.process-kpis strong { color: var(--navy); font-size: 23px; line-height: 1; }
.process-kpis em { color: var(--muted); font-size: 8px; margin-top: 5px; }
.process-kpi-icon { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 900; }
.process-kpi-icon.blue { color: var(--blue); background: #e8f4fb; }
.process-kpi-icon.red { color: var(--red-dark); background: #feebe9; }
.process-kpi-icon.yellow { color: #795b00; background: #fff5bd; }
.process-kpi-icon.green { color: var(--green); background: #e8f7ef; }
.process-kpis > .process-attention { background: var(--navy); border-color: var(--navy); color: #fff; padding: 7px 14px 7px 4px; }
.process-attention img { width: 70px; height: 70px; object-fit: contain; flex: none; }
.process-attention small { color: #9bb2c4; }
.process-attention strong { color: #fff; font-size: 11px; line-height: 1.45; }

.process-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 185px 190px 160px auto; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; }
.process-search { height: 37px; display: flex; align-items: center; gap: 8px; border: 1px solid #ccd8e2; border-radius: 8px; padding: 0 10px; color: var(--muted); }
.process-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,96,177,.1); }
.process-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.process-toolbar .select { height: 37px; padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
.view-switch { display: flex; background: #edf3f6; border-radius: 8px; padding: 3px; }
.view-switch button { width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.view-switch button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(11,34,57,.1); }
.process-filter-result { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; margin: 11px 2px; }
.process-filter-result strong { color: var(--navy); }
.process-filter-result button { display: none; margin-left: 6px; border: 0; padding: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.process-filter-result button:hover { text-decoration: underline; }

.process-board { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); align-items: start; gap: 10px; overflow-x: auto; padding: 0 1px 18px; scrollbar-color: #b8cad6 transparent; }
.process-column { min-width: 230px; background: #e8eff3; border: 1px solid #d8e3ea; border-radius: 11px; padding: 9px; }
.process-column > header { min-height: 57px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 5px 5px 9px; }
.process-column > header > div { display: grid; grid-template-columns: 9px 1fr; column-gap: 7px; align-items: center; }
.process-column > header strong { color: var(--navy); font-size: 11px; }
.process-column > header small { grid-column: 2; color: var(--muted); font-size: 8px; margin-top: 3px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.stage-screening { background: #6e86a0; }
.stage-analysis { background: #f08c2e; }
.stage-waiting { background: var(--yellow); box-shadow: inset 0 0 0 1px #d6b300; }
.stage-decision { background: #8d62c4; }
.stage-completed { background: var(--green); }
.stage-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 12px; background: #d5e1e8; color: var(--muted); font-size: 9px; font-weight: 850; }
.process-card-list { display: grid; gap: 8px; }
.process-card { width: 100%; display: flex; flex-direction: column; text-align: left; border: 1px solid #d7e2e9; border-radius: 9px; padding: 12px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 2px 6px rgba(11,34,57,.04); transition: .16s ease; position: relative; overflow: hidden; }
.process-card:hover, .process-card:focus-visible { outline: none; transform: translateY(-2px); border-color: #93bad2; box-shadow: 0 8px 18px rgba(11,34,57,.1); }
.process-card.is-overdue { border-left: 3px solid var(--red); }
.process-card.is-new { animation: process-card-in .45s cubic-bezier(.2,.9,.3,1.1) both; }
.process-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.priority { display: inline-flex; align-items: center; width: max-content; border-radius: 20px; padding: 4px 7px; font-size: 8px; font-weight: 850; }
.priority-critical { color: #8d1c14; background: #fee8e5; }
.priority-high { color: #9a4815; background: #fff0df; }
.priority-medium { color: #255a7b; background: #e7f3fa; }
.priority-low { color: #436052; background: #e9f4ee; }
.card-menu { color: #9aacba; font-size: 10px; letter-spacing: 1px; }
.sei-number { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .02em; margin-bottom: 5px; }
.process-card > strong { color: var(--navy); font-size: 11px; line-height: 1.35; }
.process-summary { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 5px; min-height: 26px; }
.process-meta { display: grid; gap: 4px; color: #64788a; font-size: 8px; padding: 9px 0; margin-top: 9px; border-top: 1px solid #edf1f4; }
.process-next { padding: 8px; border-radius: 6px; background: #f3f7f9; color: var(--navy); font-size: 8px; font-weight: 720; line-height: 1.35; }
.process-next small { display: block; color: var(--muted); font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.process-card-foot { display: flex; gap: 7px; align-items: center; margin-top: 10px; }
.responsible-avatar { width: 27px; height: 27px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; color: var(--blue); background: #dff0f9; font-size: 8px; font-weight: 900; }
.responsible-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-with-avatar, .user-picker-row { display: flex; align-items: center; gap: .55rem; }
.user-picker-row .select { flex: 1; min-width: 0; }
.user-picker-row .responsible-avatar { width: 34px; height: 34px; }
.process-card-foot > span:last-child { min-width: 0; }
.process-card-foot small, .process-card-foot em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.process-card-foot small { color: var(--navy); font-size: 8px; font-weight: 800; }
.process-card-foot em { color: var(--muted); font-size: 7px; margin-top: 2px; }
.process-card-foot em.overdue { color: var(--red-dark); font-weight: 850; }
.process-progress { height: 3px; background: #e9eff3; position: absolute; inset: auto 0 0; }
.process-progress i { display: block; height: 100%; background: var(--blue); }
.is-overdue .process-progress i { background: var(--red); }
.stage-empty { display: none; padding: 22px 8px; border: 1px dashed #bdccd5; border-radius: 8px; color: var(--muted); text-align: center; font-size: 8px; }
.stage-empty.show { display: block; }

.process-board.list-view { display: block; overflow: visible; }
.process-board.list-view .process-column { min-width: 0; margin-bottom: 9px; padding: 8px; }
.process-board.list-view .process-column > header { min-height: auto; align-items: center; }
.process-board.list-view .process-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-board.list-view .process-card { display: grid; grid-template-columns: 110px minmax(170px, 1fr) minmax(150px, .8fr) minmax(160px, .9fr) 130px; align-items: center; gap: 12px; min-height: 76px; }
.process-board.list-view .process-card-top { grid-column: 1; grid-row: 1; margin: 0; }
.process-board.list-view .sei-number { grid-column: 2; grid-row: 1; margin: 0; }
.process-board.list-view .process-card > strong { grid-column: 3; grid-row: 1; }
.process-board.list-view .process-summary, .process-board.list-view .process-next { display: none; }
.process-board.list-view .process-meta { grid-column: 4; grid-row: 1; border: 0; padding: 0; margin: 0; }
.process-board.list-view .process-card-foot { grid-column: 5; grid-row: 1; margin: 0; }
.process-board.list-view .process-card-list { grid-template-columns: 1fr; }

.process-insights { scroll-margin-top: 95px; margin-top: 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px; box-shadow: var(--shadow); }
.process-insights[hidden] { display: none; }
.insights-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.insights-head h2 { margin: 0; color: var(--navy); font-size: 19px; }
.insights-grid { display: grid; grid-template-columns: 1fr 1.35fr .85fr; gap: 13px; }
.insights-grid > article { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.insights-grid h3 { margin: 0 0 13px; color: var(--navy); font-size: 11px; }
.insight-bars { display: grid; gap: 8px; }
.insight-bars span { display: grid; grid-template-columns: 110px 1fr 18px; gap: 7px; align-items: center; }
.insight-bars span::before { content: ""; grid-column: 2; grid-row: 1; width: var(--value); height: 6px; border-radius: 5px; background: #62aedb; }
.insight-bars i, .insight-bars b { font-size: 8px; font-style: normal; }
.insight-bars i { color: var(--muted); }
.insight-bars b { color: var(--navy); }
.stage-time { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stage-time div { padding: 11px 6px; text-align: center; border-radius: 7px; background: #eef6fa; }
.stage-time div.attention { background: #fff0df; }
.stage-time strong, .stage-time span { display: block; }
.stage-time strong { color: var(--navy); font-size: 17px; }
.stage-time span { color: var(--muted); font-size: 7px; margin-top: 3px; }
.insights-grid > article > p { color: var(--muted); font-size: 8px; }
.insights-grid > .insight-callout { background: var(--navy); color: #fff; border-color: var(--navy); display: flex; align-items: center; gap: 10px; }
.insight-callout img { width: 70px; height: 70px; object-fit: contain; }
.insight-callout strong { font-size: 10px; }
.insight-callout p { color: #b7c9d6; font-size: 8px; line-height: 1.5; margin: 5px 0 0; }

.process-detail-card { width: min(880px, 100%); }
.detail-kicker { display: block; color: var(--blue); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.process-detail-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .7fr); }
.detail-main { padding: 25px; }
.detail-main h3 { margin: 12px 0 7px; color: var(--navy); font-size: 21px; }
.detail-main > p { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-main h4 { color: var(--navy); font-size: 10px; margin: 21px 0 8px; }
.detail-progress > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; margin-bottom: 6px; }
.detail-progress > span { display: block; height: 6px; border-radius: 5px; background: #e5edf2; overflow: hidden; }
.detail-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.next-action-box { padding: 11px 13px; border-left: 3px solid var(--yellow); border-radius: 0 7px 7px 0; color: var(--navy); background: #fff9dc; font-size: 10px; font-weight: 750; }
.detail-stage-change { display: flex; gap: 8px; }
.detail-aside { padding: 25px; background: #f2f6f8; border-left: 1px solid var(--line); }
.detail-aside dl { margin: 0; display: grid; gap: 14px; }
.detail-aside dt { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.detail-aside dd { margin: 0; color: var(--navy); font-size: 10px; font-weight: 750; }
.demo-note { margin-top: 25px; padding: 11px; border-radius: 7px; background: #e3edf3; }
.demo-note strong, .demo-note span { display: block; }
.demo-note strong { color: var(--navy); font-size: 9px; margin-bottom: 4px; }
.demo-note span { color: var(--muted); font-size: 8px; line-height: 1.5; }
.process-toast { position: fixed; z-index: 150; left: 50%; bottom: 25px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; border-radius: 8px; padding: 11px 15px; font-size: 10px; box-shadow: 0 12px 35px rgba(11,34,57,.3); transition: .22s ease; }
.process-toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes process-card-in {
    from { opacity: 0; transform: translateY(-12px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bem-arrive {
    0% { opacity: 0; transform: translateY(36px) rotate(-7deg) scale(.72); }
    70% { opacity: 1; transform: translateY(-5px) rotate(2deg) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes bem-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    45% { transform: translateY(-7px) rotate(-1.5deg); }
    55% { transform: translateY(-7px) rotate(1.5deg); }
}
@keyframes bem-shadow {
    0%, 100% { opacity: .9; transform: scaleX(1); }
    50% { opacity: .55; transform: scaleX(.78); }
}
@keyframes bubble-pop {
    0% { opacity: 0; transform: translateY(16px) scale(.75); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes assistant-bubble-in {
    0% { opacity: 0; transform: translateY(12px) scale(.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bem-pulse {
    0% { opacity: .55; transform: scale(.6); }
    75%, 100% { opacity: 0; transform: scale(1.75); }
}

@media print {
    .sidebar, .topbar, .page-head, .no-print { display: none !important; }
    .app-shell, .main { display: block; }
    .content { padding: 0; }
    .report-sheet { border: 0; box-shadow: none; }
}

@media (max-width: 1180px) {
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-kpis { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
    .process-kpis > .process-attention { grid-column: 1 / -1; min-height: 76px; }
    .process-toolbar { grid-template-columns: minmax(240px, 1fr) repeat(3, 160px) auto; overflow-x: auto; }
    .insights-grid { grid-template-columns: 1fr 1fr; }
    .insights-grid > .insight-callout { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-brand { min-height: 390px; padding: 38px; }
    .login-message h1 { font-size: 44px; margin-top: 80px; }
    .login-side { padding: 24px; }
    .modules-hero { grid-template-columns: 1fr; }
    .module-bem { justify-content: flex-start; }
    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: 330px; }
    .preview-hero { grid-template-columns: 1fr; }
    .preview-bem { justify-content: flex-start; }
    .preview-content { grid-template-columns: 1fr; }
    .process-page { width: min(100vw - 30px, 1600px); }
    .process-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-kpis > .process-attention { grid-column: 1 / -1; }
    .process-toolbar { grid-template-columns: minmax(250px, 1fr) repeat(3, 170px) auto; }
    .process-board.list-view .process-card { grid-template-columns: 100px minmax(150px, 1fr) minmax(130px, .8fr) minmax(150px, .9fr) 120px; }
}

@media (max-width: 760px) {
    .app-shell { display: block; }
    .main { grid-column: auto; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .sidebar.open { transform: translateX(0); }
    .menu-button { display: inline-block; }
    .topbar { padding: 0 16px; }
    .crumb { display: none; }
    .content { padding: 22px 15px; }
    .page-head { flex-direction: column; }
    .stats, .filters, .form-grid, .report-kpis { grid-template-columns: 1fr; }
    .identity-board { grid-template-columns: 1fr; }
    .identity-lead, .swatches { grid-column: auto; }
    .identity-lead { flex-direction: column; align-items: flex-start; }
    .identity-lead img { width: 100%; }
    .swatches { grid-template-columns: repeat(2, 1fr); }
    .login-brand { display: none; }
    .login-side { min-height: 100vh; padding: 22px; }
    .login-bem { min-height: 142px; margin-bottom: -10px; }
    .bem-character { width: 115px; height: 135px; }
    .bem-character img { width: 115px; height: 115px; }
    .comic-bubble { width: min(210px, calc(100vw - 165px)); padding: 11px 13px; margin-top: 11px; }
    .comic-bubble strong { font-size: 13px; }
    .comic-bubble span { font-size: 10px; }
    .bem-assistant { right: 10px; bottom: 10px; }
    .bem-assistant-bubble { width: min(245px, calc(100vw - 98px)); }
    .bem-assistant-toggle { width: 78px; height: 78px; }
    .bem-assistant-toggle img { width: 78px; height: 78px; }
    .platform-header { height: 68px; padding: 0 15px; }
    .platform-header > a img { width: 155px; }
    .platform-header .user-copy { display: none; }
    .platform-main { width: min(100% - 28px, 1260px); padding-top: 28px; }
    .platform-footer { width: min(100% - 28px, 1260px); flex-direction: column; }
    .modules-hero { min-height: auto; gap: 15px; }
    .modules-hero-copy h1 { font-size: 39px; }
    .module-bem { min-height: 140px; }
    .module-bem img, .preview-bem img { width: 115px; height: 115px; }
    .module-bem-bubble { width: min(220px, calc(100vw - 165px)); }
    .shared-core { align-items: flex-start; flex-direction: column; }
    .shared-core ul { justify-content: flex-start; }
    .preview-hero { padding: 28px 24px; }
    .preview-copy h1 { font-size: 38px; }
    .preview-bem { align-items: flex-end; }
    .feature-grid { grid-template-columns: 1fr; }
    .process-hero { align-items: flex-start; flex-direction: column; }
    .process-hero h1 { font-size: 32px; }
    .process-kpis { grid-template-columns: 1fr 1fr; }
    .process-kpis > article { min-height: 84px; padding: 11px; }
    .process-kpis > .process-attention { grid-column: 1 / -1; }
    .process-toolbar { display: flex; overflow-x: auto; align-items: stretch; }
    .process-search { min-width: 250px; }
    .process-toolbar .select { min-width: 165px; }
    .process-board { grid-template-columns: repeat(6, minmax(260px, 85vw)); }
    .process-board.list-view .process-card { display: flex; min-height: 0; }
    .process-board.list-view .process-card-top { width: 100%; }
    .process-board.list-view .process-summary, .process-board.list-view .process-next { display: flex; }
    .insights-grid { grid-template-columns: 1fr; }
    .insights-grid > .insight-callout { grid-column: auto; }
    .stage-time { grid-template-columns: repeat(2, 1fr); }
    .process-detail-body { grid-template-columns: 1fr; }
    .detail-aside { border-left: 0; border-top: 1px solid var(--line); }
    .detail-stage-change { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .bem-character,
    .bem-shadow,
    .comic-bubble,
    .bem-assistant-bubble,
    .bem-assistant-toggle,
    .bem-pulse {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

@keyframes camp-notification-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 700px) {
    .camp-notifications { top: 76px; right: 12px; width: calc(100vw - 24px); }
    .bem-context-banner { grid-template-columns: 46px 1fr; align-items: start; }
    .bem-context-banner > img { width: 46px; height: 46px; }
    .bem-context-banner button { grid-column: 2; justify-self: start; }
}
/* CAMP Conecta v1.0 — integrações operacionais */
.login-form { display:grid; gap:1rem; margin-top:1.25rem; }
.login-form .btn { width:100%; justify-content:center; }
.check-line { display:flex; align-items:center; gap:.55rem; font-size:.86rem; color:#526277; white-space:nowrap; }
.process-filter-form { flex-wrap:wrap; }
.process-filter-form .process-search { min-width:260px; flex:1; }
.process-card-link { color:inherit; display:contents; text-decoration:none; }
.process-card[draggable="true"] { cursor:grab; }
.process-card.is-dragging { opacity:.45; transform:rotate(1deg) scale(.98); }
.process-column [data-drop-zone] { min-height:120px; }
.process-record { background:#fff; border:1px solid #e5ebf1; border-radius:24px; padding:1.5rem; margin:1.5rem 0; }
.process-record .detail-main { min-width:0; }
.process-timeline { display:grid; gap:0; margin-top:1rem; }
.process-timeline article { display:grid; grid-template-columns:18px 1fr; gap:.8rem; position:relative; padding-bottom:1.2rem; }
.process-timeline article > span { width:11px; height:11px; border-radius:50%; background:#0460b1; margin-top:.35rem; box-shadow:0 0 0 4px #e7f1fa; }
.process-timeline article:not(:last-child)::before { content:""; position:absolute; left:5px; top:16px; bottom:0; width:1px; background:#d9e4ee; }
.process-timeline p { margin:.2rem 0; color:#526277; }
.process-timeline small { color:#718096; }
.process-side-form { border-top:1px solid #e5ebf1; margin-top:1rem; padding-top:1rem; display:grid; gap:.8rem; }
.process-edit-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:2rem; }
.process-edit-grid form { display:grid; align-content:start; gap:1rem; }
.danger-zone { display:grid; grid-template-columns:1fr 1fr; gap:2rem; border-color:#f2c8c4; }
.danger-zone form { display:flex; gap:1rem; align-items:end; }
.danger-zone .field { flex:1; }
@media (max-width: 900px) {
    .process-filter-form .select, .process-filter-form .btn { flex:1 1 180px; }
    .process-record { grid-template-columns:1fr; }
    .process-edit-grid, .danger-zone { grid-template-columns:1fr; }
}
/* Troca obrigatória de senha */
.password-change-card { margin: 2rem auto; display: grid; gap: 1rem; }
.password-change-card .btn { width: 100%; }
.password-control { position: relative; }
.password-control .input { padding-right: 46px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.password-toggle:hover { background: #edf5fa; color: var(--blue); }
.password-toggle:focus-visible { outline: 3px solid rgba(4,96,177,.18); color: var(--blue); }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-requirements { border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; padding: 13px 14px; }
.password-requirements > strong { display: block; color: var(--navy); font-size: 11px; margin-bottom: 9px; }
.password-requirements ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.password-requirements li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.password-requirements li.is-met { color: #075e35; }
.password-requirements li.is-unmet { color: var(--red-dark); }
.password-requirements li.is-server-only { color: var(--blue-2); }
.password-requirement-marker { width: 17px; height: 17px; flex: 0 0 17px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 900; line-height: 1; }
.password-requirements small { display: block; color: var(--muted); font-size: 9px; margin-top: 1px; }
.field-error { margin: 6px 0 0; color: var(--red-dark); font-size: 10px; line-height: 1.45; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }


/* Atualizações operacionais e assinaturas */
.process-update-card { position: sticky; top: 82px; z-index: 12; border-color: #bfd9ea; box-shadow: 0 16px 38px rgba(11,34,57,.1); }
.process-update-card form { display: grid; gap: 14px; }
.process-update-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.process-update-head h2 { margin: 0; color: var(--navy); font-size: 20px; }
.process-update-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.signature-choice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #d6e5ef; border-radius: 11px; padding: 12px; background: #f6fbfe; cursor: pointer; }
.signature-choice input { margin-top: 2px; width: 17px; height: 17px; }
.signature-choice strong, .signature-choice small { display: block; }
.signature-choice strong { color: var(--navy); font-size: 12px; }
.signature-choice small, .signature-document-field > small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.signature-document-field[hidden] { display: none; }
.process-timeline article { grid-template-columns: 34px 1fr; gap: .9rem; }
.process-timeline article::before { left: 16px !important; }
.timeline-avatar { width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #e1f0f8; color: var(--blue); font-size: 9px; font-weight: 900; box-shadow: 0 0 0 4px #fff; z-index: 1; }
.timeline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.timeline-acknowledgement .timeline-avatar { background: #e7f6ed; color: #08713f; }
.timeline-link { display: inline-flex; margin-left: 8px; color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.signature-status { display: inline-flex; border: 1px solid #c9dbe7; border-radius: 20px; padding: 3px 7px; background: #f4f8fb; color: var(--muted); font-size: 9px; font-weight: 800; }
.signature-status-signed { border-color: #a9d9bd; background: #eaf8f0; color: #08613a; }
.signature-status-correction_requested { border-color: #efc7c3; background: #fff0ef; color: #92251c; }
.signature-status-awaiting_correction_reason { border-color: #ead58a; background: #fff9dc; color: #725600; }
@media (max-width: 900px) {
    .process-update-card { position: static; }
    .process-update-head { flex-direction: column; }
    .process-update-head .btn { width: 100%; }
}

.signature-deliveries { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.signature-deliveries span { border: 1px solid #d7e3eb; border-radius: 7px; padding: 4px 7px; background: #f8fbfd; color: var(--muted); font-size: 9px; }
.signature-deliveries strong { color: var(--navy); }
