:root {
  color-scheme: light;
  --ink: #183633;
  --ink-strong: #102b28;
  --muted: #697c77;
  --green-950: #0e302c;
  --green-900: #153d37;
  --green-800: #1b574c;
  --green-700: #247263;
  --green-100: #e7f2ee;
  --green-50: #f1f7f4;
  --canvas: #f5f7f5;
  --paper: #ffffff;
  --line: #e2e9e5;
  --gold: #d6b778;
  --shadow: 0 18px 55px rgb(19 48 42 / 8%);
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* Secure sign-in */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  background: #f8faf8;
}
.login-story {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 76px);
  color: #f4faf6;
  background: radial-gradient(ellipse at 82% 82%, #236b59 0, transparent 35%), linear-gradient(145deg, #102d2a 0%, #123b34 52%, #195448 100%);
}
.login-story::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(#d6e9df 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(130deg, transparent 15%, #000 80%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 14px;
  color: #d9c28e;
  background: rgb(255 255 255 / 8%);
  font: 800 22px/1 'Manrope', sans-serif;
  box-shadow: inset 0 1px rgb(255 255 255 / 12%);
}
.brand strong, .brand small, .login-card-brand strong, .login-card-brand small { display: block; }
.brand strong, .login-card-brand strong { font: 700 17px/1.2 'Manrope', sans-serif; letter-spacing: -.025em; }
.brand small, .login-card-brand small { margin-top: 4px; opacity: .62; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.login-story-copy { max-width: 700px; margin: auto 0; padding: 70px 0; }
.eyebrow { margin: 0 0 11px; color: var(--green-700); font-size: 10px; font-weight: 700; letter-spacing: .17em; line-height: 1.5; }
.login-story .eyebrow { color: #d7c08d; }
.login-story h1 {
  margin: 0;
  max-width: 680px;
  color: #f6fbf7;
  font: 600 clamp(42px, 5vw, 72px)/1.08 'Manrope', sans-serif;
  letter-spacing: -.055em;
}
.login-story h1 em { color: #d7c08d; font-style: normal; }
.login-story-copy > p:last-child { max-width: 470px; margin: 26px 0 0; color: rgb(239 248 243 / 74%); font-size: 17px; line-height: 1.7; }
.login-story-foot { display: flex; align-items: center; gap: 10px; color: rgb(239 248 243 / 72%); font-size: 12px; }
.story-dot, .online-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #79c9a3; box-shadow: 0 0 0 4px rgb(121 201 163 / 13%); }
.story-orbit { position: absolute; z-index: -1; border: 1px solid rgb(227 239 231 / 12%); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 510px; height: 510px; right: -160px; bottom: -120px; }
.orbit-two { width: 360px; height: 360px; right: -86px; bottom: -46px; border-color: rgb(227 239 231 / 17%); }
.login-card {
  align-self: center;
  width: min(100% - 64px, 470px);
  margin: auto;
  padding: 56px clamp(28px, 4vw, 58px);
  border: 1px solid #e8eeea;
  border-radius: 23px;
  background: var(--paper);
  box-shadow: 0 25px 80px rgb(29 55 47 / 8%);
}
.login-card-brand { display: none; align-items: center; gap: 11px; color: var(--ink-strong); }
.login-card-brand .brand-mark { color: var(--green-700); border-color: #dcebe3; background: var(--green-50); }
.login-intro { margin: 45px 0 28px; }
.login-intro h2 { margin: 0; color: var(--ink-strong); font: 700 32px/1.2 'Manrope', sans-serif; letter-spacing: -.04em; }
.login-intro > p:last-child { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-form { display: grid; gap: 17px; }
.login-form label { color: #354b46; font-size: 12px; font-weight: 700; }
.login-form input { min-height: 50px; margin-top: 8px; border-radius: 10px; }
.login-form input[name="code"] { font-size: 20px; font-weight: 700; letter-spacing: .28em; }
.primary-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid var(--green-900);
  border-radius: 10px;
  color: white;
  background: var(--green-900);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgb(21 61 55 / 14%);
  transition: background .18s, transform .18s, box-shadow .18s;
}
.primary-button:hover { transform: translateY(-1px); background: var(--green-800); box-shadow: 0 11px 22px rgb(21 61 55 / 18%); }
.primary-button span { font-size: 18px; font-weight: 400; }
.verify-form { margin-top: 14px; }
.login-help { margin: 24px 0 0; color: #71817c; font-size: 11px; line-height: 1.65; }
.login-security { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #edf1ee; color: #667972; font-size: 10px; }
.login-security span { color: var(--green-700); font-size: 12px; }
.toast {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  top: 18px;
  left: 50%;
  max-width: min(620px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: white;
  box-shadow: 0 12px 36px rgb(18 47 40 / 15%);
  font-size: 13px;
  line-height: 1.45;
  transform: translateX(-50%);
}
.toast[hidden] { display: none; }
.toast-close { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 23px; line-height: 1; cursor: pointer; }
.toast-close:hover { background: rgb(0 0 0 / 8%); }
.toast-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.toast.success { color: #195d45; border-color: #c8e6d5; background: #f2fbf5; }
.toast.error { color: #8d2727; border-color: #f1d3ce; background: #fff7f5; }

/* Application shell and navigation */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); background: var(--canvas); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding: 25px 15px 17px;
  color: #edf6f1;
  background: linear-gradient(180deg, #123832 0%, #102f2a 100%);
  box-shadow: 10px 0 36px rgb(20 44 37 / 7%);
}
.sidebar > .brand { margin: 0 11px 34px; }
.sidebar .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
.sidebar .brand strong { font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-caption { padding: 0 12px 8px; color: #87a39a; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.nav-divider { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 9%); }
.desktop-nav-search { display: grid; margin: 0 4px 13px; }
.desktop-nav-search input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 9px; color: #f2f7f3; background: rgb(255 255 255 / 7%); font-size: 12px; }
.desktop-nav-search input::placeholder { color: #a0b8ae; }
.desktop-nav-search input:focus-visible { border-color: #d6b778; outline: 3px solid #d6b778; outline-offset: 2px; }
#module-nav { min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #43675e transparent; }
.nav-item.nav-search-hidden, .nav-caption.nav-search-empty { display: none !important; }
.nav-item {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #bfd0c9;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  transition: color .16s, background .16s, border .16s;
}
.nav-item:hover { color: #fff; background: rgb(255 255 255 / 7%); }
.nav-item.active { color: #f7fbf8; border-color: rgb(226 238 231 / 10%); background: linear-gradient(90deg, rgb(112 171 141 / 22%), rgb(112 171 141 / 8%)); box-shadow: inset 3px 0 #d7c08d; }
.nav-icon { width: 18px; color: #9bb9ad; text-align: center; font-size: 16px; line-height: 1; }
.nav-item.active .nav-icon { color: #dfca97; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; gap: 10px; margin: 15px 4px 15px; padding: 12px 10px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 11px; background: rgb(255 255 255 / 4%); }
.note-mark { color: #dec78f; font-size: 17px; }
.sidebar-note strong, .sidebar-note small, .user-meta strong, .user-meta small { display: block; }
.sidebar-note strong { margin-bottom: 4px; font-size: 10px; }
.sidebar-note small { color: #9db5ac; font-size: 9px; line-height: 1.45; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 5px 0; border-top: 1px solid rgb(255 255 255 / 11%); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 16%); border-radius: 50%; color: #e9d59e; background: #29584e; font-size: 12px; font-weight: 700; }
.user-meta { min-width: 0; }
.user-meta strong { overflow: hidden; color: #e6f0ea; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { margin-top: 4px; color: #9ab2a9; font-size: 9px; }
.app-main { min-width: 0; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(24px, 4.2vw, 62px); border-bottom: 1px solid #e8ede9; background: rgb(255 255 255 / 86%); }
.topbar-title .eyebrow { margin: 0 0 5px; color: #82938b; font-size: 9px; }
.topbar-title .eyebrow span { margin: 0 4px; color: #b0bcb5; }
.topbar h1 { margin: 0; color: var(--ink-strong); font: 700 20px/1.3 'Manrope', sans-serif; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.identity-chip { display: flex; align-items: center; gap: 9px; max-width: 280px; color: #536a62; font-size: 11px; }
.identity-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-chip .online-dot { width: 7px; height: 7px; flex-basis: 7px; }
.logout-button { min-height: 34px; padding: 0 13px; border: 1px solid #dce6e0; border-radius: 8px; color: #425950; background: white; font-size: 11px; font-weight: 600; }
.logout-button:hover { border-color: #b7d1c3; color: var(--green-800); background: var(--green-50); }
.logout-button span { margin-left: 5px; }
.content-area { width: min(100%, 1440px); margin: 0 auto; padding: clamp(24px, 4vw, 46px) clamp(20px, 4.2vw, 62px) 64px; }
.workspace-view { display: grid; align-content: start; gap: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); align-items: start; gap: 19px; }

/* Dashboard */
#view-dashboard { display: grid; gap: 26px; }
.dashboard-welcome {
  position: relative;
  min-height: 188px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 31px clamp(24px, 4vw, 43px);
  border: 1px solid #dfeae3;
  border-radius: 17px;
  background: linear-gradient(110deg, #fff 5%, #f4f8f4 100%);
  box-shadow: 0 10px 34px rgb(22 61 49 / 4%);
}
.dashboard-welcome .eyebrow { margin-bottom: 10px; }
.dashboard-welcome h2 { margin: 0; color: #173b34; font: 700 clamp(25px, 3vw, 34px)/1.2 'Manrope', sans-serif; letter-spacing: -.05em; }
.dashboard-welcome > div:first-child > p:last-child { margin: 11px 0 0; color: #697c74; font-size: 13px; }
.welcome-illustration { position: relative; width: 185px; height: 135px; flex: 0 0 185px; margin-right: 16px; }
.welcome-ring { position: absolute; top: 50%; left: 50%; display: block; border: 1px solid #d1e2d9; border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 125px; height: 125px; }
.ring-b { width: 83px; height: 83px; border-color: #bdd5c8; background: rgb(221 237 227 / 30%); }
.welcome-spark { position: absolute; top: 50%; left: 50%; display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; color: #d6bd80; background: #173e37; font-size: 25px; transform: translate(-50%, -50%) rotate(-8deg); box-shadow: 0 9px 22px rgb(23 62 55 / 18%); }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: -14px; }
.dashboard-section-heading .eyebrow { margin-bottom: 5px; }
.dashboard-section-heading h3 { margin: 0; color: var(--ink-strong); font: 700 18px/1.3 'Manrope', sans-serif; letter-spacing: -.03em; }
.dashboard-indicators-section { display: grid; gap: 13px; min-width: 0; }
.dashboard-indicators-heading { align-items: end; gap: 16px; margin-bottom: 0; }
.dashboard-indicators-heading > p { max-width: 470px; margin: 0; color: #718079; font-size: 12px; line-height: 1.5; text-align: right; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; }
.dashboard-metric-card { min-width: 0; min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 17px 18px; border: 1px solid #e1e9e4; border-radius: 13px; background: #fff; box-shadow: 0 6px 22px rgb(25 57 46 / 4%); }
.dashboard-metric-card h4 { margin: 0; color: #5d7469; font-size: 12px; font-weight: 700; line-height: 1.4; }
.dashboard-metric-value { display: block; margin: 9px 0 3px; color: #1e493d; font: 700 clamp(27px, 2.7vw, 34px)/1.1 'Manrope', sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dashboard-metric-card > p { margin: auto 0 0; color: #74847c; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-metric-positive .dashboard-metric-value { color: #2c7250; }
.dashboard-metric-alert { border-color: #ead9b1; background: #fffdf7; }
.dashboard-metric-alert .dashboard-metric-value { color: #96680c; }
.dashboard-status-breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dashboard-status-item { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #e4ebe6; border-radius: 999px; color: #5e7168; background: #fff; font-size: 11px; line-height: 1.25; }
.dashboard-status-item strong { color: #294a3e; font-size: 12px; }
.dashboard-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #8b9b92; }
.dashboard-status-em_dia .dashboard-status-dot { background: #43a16c; }
.dashboard-status-atencao .dashboard-status-dot { background: #d3a32e; }
.dashboard-status-atrasado .dashboard-status-dot { background: #ca695b; }
.dashboard-status-critico .dashboard-status-dot { background: #962f37; }
.dashboard-status-sem_atualizacao .dashboard-status-dot { background: #8b9b92; }
.dashboard-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 15px; }
.dashboard-group-card { min-width: 0; display: flex; flex-direction: column; min-height: 218px; margin: 0; padding: 21px 22px 18px; border: 1px solid #e1e9e4; border-radius: 14px; background: white; box-shadow: 0 6px 24px rgb(25 57 46 / 4%); transition: transform .18s, box-shadow .18s, border-color .18s; }
.dashboard-group-card:hover { transform: translateY(-2px); border-color: #c7ddd0; box-shadow: 0 12px 30px rgb(25 57 46 / 8%); }
.dashboard-group-card > div:first-child { display: flex; align-items: start; gap: 11px; }
.gt-badge { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #e5ebd7; border-radius: 6px; color: #6a623d; background: #faf8ef; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.dashboard-group-card h4 { margin: 1px 0 0; color: #203c34; font: 700 14px/1.4 'Manrope', sans-serif; }
.dashboard-group-card ul { flex: 1; display: grid; align-content: start; gap: 7px; margin: 19px 0; padding: 0; list-style: none; }
.dashboard-group-card li { display: flex; align-items: start; gap: 8px; color: #63756e; font-size: 12px; line-height: 1.5; }
.dashboard-group-card li::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; margin-top: 5px; border-radius: 50%; background: #85b79a; }
.text-button { width: fit-content; padding: 0; border: 0; color: var(--green-700); background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--green-900); }
.dashboard-placeholder { display: flex; align-items: center; gap: 18px; margin: 0; padding: 23px 25px; border: 1px dashed #cddbd2; border-radius: 13px; background: #f8faf8; box-shadow: none; }
.placeholder-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: #568d73; background: #e8f2ec; font-size: 19px; }
.dashboard-placeholder .eyebrow { margin-bottom: 4px; }
.dashboard-placeholder h3 { margin: 0; color: #24463c; font: 700 14px/1.4 'Manrope', sans-serif; }
.dashboard-placeholder p:last-child { margin: 5px 0 0; color: #718079; font-size: 11px; line-height: 1.55; }
.placeholder-status { margin-left: auto; color: #8b9b92; font-size: 8px; font-weight: 700; letter-spacing: .13em; white-space: nowrap; }
.empty-state { padding: 25px; border: 1px dashed #cfdbd3; border-radius: 12px; color: var(--muted); background: white; font-size: 13px; }

/* Module cards and forms */
.workspace-view > section, .module-grid > section, #view-panel > #panel, #view-audit > section {
  min-width: 0;
  margin: 0;
  padding: 25px clamp(19px, 2.5vw, 31px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 7px 26px rgb(21 52 42 / 4%);
}
.workspace-view > section > h2, .module-grid > section > h2, #view-panel #panel > h2 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font: 700 19px/1.35 'Manrope', sans-serif;
  letter-spacing: -.035em;
}
.workspace-view > section > p, .module-grid > section > p, #view-panel #panel > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#view-dashboard > .dashboard-placeholder { margin: 0; padding: 23px 25px; border: 1px dashed #cddbd2; border-radius: 13px; background: #f8faf8; box-shadow: none; }
form { display: grid; gap: 12px; margin: 17px 0; }
label { display: grid; gap: 6px; color: #38524a; font-size: 11px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d9e3dc;
  border-radius: 8px;
  outline: none;
  color: #213c34;
  background: white;
  font-size: 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a0aea7; }
input:focus, select:focus, textarea:focus { border-color: #6da58b; box-shadow: 0 0 0 3px rgb(90 154 120 / 13%); }
input[type="checkbox"], input[type="radio"] { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
fieldset { min-width: 0; margin: 3px 0; padding: 13px; border: 1px solid #e2e9e4; border-radius: 9px; }
legend { padding: 0 5px; color: #50655c; font-size: 10px; font-weight: 700; }
#people-gts { display: grid; gap: 9px; }
#people-gts label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
button:not(.nav-item):not(.logout-button):not(.text-button):not(.primary-button) {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  color: white;
  background: var(--green-800);
  font-size: 11px;
  font-weight: 700;
  transition: background .16s, border .16s, transform .16s;
}
button:not(.nav-item):not(.logout-button):not(.text-button):not(.primary-button):hover { transform: translateY(-1px); border-color: var(--green-900); background: var(--green-900); }
button.secondary { border-color: #d5e1d9 !important; color: #385c4d !important; background: #fff !important; }
button.secondary:hover { border-color: #b8d1c1 !important; background: #f3f8f4 !important; }
.actions, .panel-actions { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.panel-actions { margin: 18px 0; }
.panel-actions label { min-width: min(100%, 330px); }
article { min-width: 0; margin-top: 13px; padding: 16px 0 0; border-top: 1px solid #e9efeb; }
article > strong { color: #29493f; font-size: 12px; }
article p { margin: 7px 0; color: #6a7b74; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
article > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
article form { margin: 14px 0 6px; padding: 14px; border: 1px solid #edf1ee; border-radius: 10px; background: #fafcfb; }
article h4 { margin: 8px 0; color: #355a4b; font-size: 11px; }
article ul { padding-left: 18px; color: #5e7168; font-size: 11px; line-height: 1.65; }
#panel-list { display: grid; gap: 15px; margin-top: 18px; }
.panel-followup-dialog { width: min(900px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #d8e4dc; border-radius: 18px; color: var(--ink); background: #fff; }
.panel-followup-dialog::backdrop { background: rgb(12 30 25 / 68%); }
.panel-followup-dialog > header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e4ebe6; }
.panel-followup-dialog > header h2 { margin: 0; font-size: 19px; }
#panel-followup-detail { padding: 16px 20px; }
#panel-followup-detail article { margin: 12px 0; padding: 12px; border: 1px solid #e4ebe6; border-radius: 9px; }
#panel-followup-detail article p { white-space: pre-wrap; overflow-wrap: anywhere; }
#panel-list .panel-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid #dfe8e2; border-radius: 15px; background: #fff; box-shadow: 0 5px 17px rgb(30 61 48 / 4%); }
#panel-list .panel-card-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e8eeea; }
.panel-card-number { color: #668277; font: 600 27px/1 'Manrope', sans-serif; text-align: center; }
.panel-card-identity { min-width: 0; }
.panel-card-eyebrow { display: block; margin-bottom: 3px; color: #7b8d84; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.panel-card-title { margin: 0; color: #24463c; font: 700 15px/1.35 'Manrope', sans-serif; overflow-wrap: anywhere; }
.panel-status { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.panel-status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ''; }
.panel-status-em_dia { color: #2e7451; background: #e9f5ec; }
.panel-status-atencao { color: #93690d; background: #fbf2d9; }
.panel-status-atrasado { color: #a7473c; background: #fae9e6; }
.panel-status-critico { color: #862f32; background: #f8dfe0; }
.panel-status-sem_informacao { color: #66766f; background: #edf1ee; }
#panel-list .panel-card > div { display: grid; align-items: stretch; gap: 10px; }
#panel-list .panel-card-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; padding: 15px 4px; }
#panel-list .panel-card-progress, #panel-list .panel-card-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#panel-list .panel-card-progress { margin-top: 2px; }
#panel-list .panel-card-extras { margin-top: 10px; }
.panel-card-field { min-width: 0; }
.panel-card-overview .panel-card-field { padding: 0 5px; }
.panel-card-progress .panel-card-field { padding: 12px 13px; border-radius: 11px; background: #f3f6f4; }
.panel-card-extras .panel-card-field { padding: 11px 13px; border: 1px solid #e9efeb; border-radius: 11px; background: #fafcfb; }
.panel-card-field strong { display: block; margin-bottom: 5px; color: #52675e; font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
#panel-list .panel-card-field p { max-width: none; margin: 0; color: #3e5149; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#panel-list .panel-card-field p.is-empty { color: #8a9891; font-style: italic; }
.panel-card-empty { padding: 14px 5px 2px; color: #798a81; font-size: 12px; font-style: italic; }
#panel-list .panel-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #e8eeea; }
#panel-list .panel-card-footer p { margin: 0; color: #718178; font-size: 11px; line-height: 1.5; }
#panel-list .panel-card-footer button { flex: 0 0 auto; min-height: 31px; padding: 6px 10px; }
:is(#view-followups, #view-followup-templates) h4 { margin: 16px 0 8px; color: #3f6555; font-size: 12px; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 226px minmax(0, 1fr); }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .nav-item { font-size: 11px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .content-area { padding-right: 26px; padding-left: 26px; }
}
@media (min-width: 1280px) {
  .workspace { grid-template-columns: 278px minmax(0, 1fr); }
  .sidebar { padding-right: 19px; padding-left: 19px; }
  .sidebar > .brand { margin-bottom: 28px; }
  .nav-caption { font-size: 10px; }
  .nav-item { min-height: 43px; font-size: 13px; }
  .nav-icon { width: 21px; font-size: 17px; }
  .content-area { padding-right: clamp(38px, 4vw, 68px); padding-left: clamp(38px, 4vw, 68px); }
  .dashboard-group-card h4 { font-size: 15px; }
  .dashboard-group-card li { font-size: 12px; }
  #panel-list .panel-card-field p { font-size: 13px; }
  .panel-card-field strong { font-size: 10px; }
  #panel-list .panel-card-footer p { font-size: 11px; }
}
@media (max-width: 780px) {
  .login-page { grid-template-columns: 1fr; min-height: 100vh; padding: 20px; background: linear-gradient(150deg, #123832, #194f43); }
  .login-story { display: none; }
  .login-card { width: min(100%, 470px); padding: 31px clamp(23px, 7vw, 42px); border-radius: 19px; }
  .login-card-brand { display: flex; }
  .login-intro { margin: 31px 0 23px; }
  .workspace { display: block; padding-bottom: 70px; }
  .sidebar { position: fixed; z-index: 12; inset: auto 0 0; width: 100%; height: 66px; min-height: 0; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 13%); box-shadow: 0 -10px 26px rgb(16 47 42 / 12%); }
  .sidebar > .brand, .sidebar > .nav-caption, .sidebar-bottom, .nav-divider { display: none !important; }
  .desktop-nav-search { display: none; }
  #module-nav { height: 100%; display: flex; flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  #module-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-width: 70px; min-height: 50px; flex: 0 0 73px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 3px; border-radius: 8px; text-align: center; font-size: 8px; line-height: 1.15; white-space: normal; }
  .nav-icon { width: auto; font-size: 16px; }
  .nav-item.active { box-shadow: inset 0 2px #d7c08d; }
  .topbar { min-height: 75px; padding: 13px 17px; }
  .topbar h1 { font-size: 17px; }
  .topbar-title .eyebrow { font-size: 8px; }
  .topbar-actions { gap: 9px; }
  .identity-chip { max-width: 120px; font-size: 9px; }
  .logout-button { min-height: 32px; padding: 0 9px; font-size: 10px; }
  .content-area { padding: 18px 14px 28px; }
  .dashboard-welcome { min-height: 145px; padding: 22px 19px; }
  .dashboard-welcome h2 { font-size: 24px; }
  .dashboard-welcome > div:first-child > p:last-child { max-width: 280px; font-size: 11px; line-height: 1.55; }
  .welcome-illustration { position: absolute; right: -57px; width: 145px; opacity: .48; }
  .dashboard-welcome > div:first-child { position: relative; z-index: 1; }
  .dashboard-section-heading h3 { font-size: 16px; }
  .dashboard-indicators-section { gap: 10px; }
  .dashboard-indicators-heading { align-items: flex-start; gap: 5px; }
  .dashboard-indicators-heading > p { max-width: none; font-size: 11px; text-align: left; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dashboard-metric-card { min-height: 140px; padding: 13px 12px; }
  .dashboard-metric-card h4 { font-size: 12px; }
  .dashboard-metric-value { margin-top: 8px; font-size: clamp(25px, 8vw, 31px); }
  .dashboard-metric-card > p { font-size: 11px; }
  .dashboard-status-breakdown { gap: 6px; }
  .dashboard-status-item { min-height: 36px; gap: 6px; padding: 6px 9px; font-size: 10px; }
  .dashboard-groups { grid-template-columns: 1fr; }
  .dashboard-group-card { min-height: 0; padding: 17px; }
  .dashboard-group-card ul { margin: 12px 0; }
  .dashboard-placeholder { align-items: start; padding: 17px; }
  .placeholder-status { display: none; }
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .workspace-view > section, .module-grid > section, #view-panel > #panel { padding: 19px 16px; }
  .workspace-view > section > h2, .module-grid > section > h2, #view-panel #panel > h2 { font-size: 17px; }
  .panel-actions { align-items: stretch; }
  .panel-actions > * { width: 100%; }
}
@media (max-width: 600px) {
  #panel-list .panel-card { padding: 14px; }
  #panel-list .panel-card-header { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  #panel-list .panel-card-number { grid-row: span 2; font-size: 24px; }
  #panel-list .panel-status { grid-column: 2; justify-self: start; }
  #panel-list .panel-card-overview, #panel-list .panel-card-progress, #panel-list .panel-card-extras { grid-template-columns: 1fr; }
  #panel-list .panel-card-overview { gap: 12px; padding: 14px 2px; }
  #panel-list .panel-card-footer { align-items: stretch; flex-direction: column; }
  #panel-list .panel-card-footer button { width: 100%; }
}
@media (max-width: 390px) {
  .login-page { padding: 12px; }
  .login-card { padding: 28px 21px; }
  .identity-chip { max-width: 90px; }
  .topbar { gap: 10px; }
  .topbar-actions { gap: 6px; }
  .nav-item { min-width: 65px; flex-basis: 67px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@page { size: A4; margin: 15mm; }
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  body.printing-panel #workspace { display: block !important; min-height: 0; }
  body.printing-panel .sidebar, body.printing-panel .topbar, body.printing-panel #message { display: none !important; }
  body.printing-panel .content-area { max-width: none; margin: 0; padding: 0; }
  body.printing-panel .workspace-view { display: none !important; }
  body.printing-panel #view-panel { display: block !important; }
  body.printing-panel #view-panel #panel { display: block !important; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  body.printing-panel #panel .panel-actions, body.printing-panel #panel button { display: none !important; }
  body.printing-panel #panel > h2 { font-size: 20pt; margin: 0 0 5mm; }
  body.printing-panel #panel > p { color: #222; font-size: 10pt; }
  body.printing-panel #panel #panel-selected-gt { font-size: 14pt; font-weight: 700; }
  body.printing-panel #panel-list { display: block; }
  body.printing-panel #panel-list .panel-card { break-inside: avoid-page; page-break-inside: avoid; margin: 0 0 6mm; padding: 5mm; border: 1px solid #888; border-radius: 3mm; box-shadow: none; }
  body.printing-panel #panel-list .panel-card-header, body.printing-panel #panel-list .panel-card-overview, body.printing-panel #panel-list .panel-card-progress, body.printing-panel #panel-list .panel-card-extras, body.printing-panel #panel-list .panel-card-footer { break-inside: avoid-page; page-break-inside: avoid; }
  body.printing-panel #panel-list .panel-card-header { grid-template-columns: 10mm minmax(0, 1fr) auto; }
  body.printing-panel #panel-list .panel-card-overview { padding: 4mm 0; }
  body.printing-panel #panel-list .panel-card-progress, body.printing-panel #panel-list .panel-card-extras { gap: 3mm; }
  body.printing-panel #panel-list .panel-card-progress .panel-card-field, body.printing-panel #panel-list .panel-card-extras .panel-card-field { padding: 3mm; border: 0; border-radius: 2mm; background: #f1f1f1; }
  body.printing-panel #panel-list .panel-card-field strong { color: #444; font-size: 8pt; }
  body.printing-panel #panel-list .panel-card-field p { color: #222; font-size: 9pt; line-height: 1.4; orphans: 3; widows: 3; }
  body.printing-panel #panel-list .panel-card-footer { margin-top: 4mm; padding-top: 3mm; }
  body.printing-panel #panel-list .panel-card-footer p { color: #333; font-size: 8pt; }
}

/* Accounts and permissions */
.access-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.access-heading h2 { margin: 0 0 8px; color: var(--ink-strong); font: 700 19px/1.35 'Manrope', sans-serif; }
.access-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#user-form, #access-form { padding: 16px; border: 1px solid #e2e9e4; border-radius: 10px; background: #fafcfb; }
#user-form h3, #access-form h3 { margin: 0; font-size: 14px; }
#user-form p { margin: 0; color: var(--muted); font-size: 11px; }
#users, #access-list { color: var(--muted); font-size: 12px; margin-top: 18px; }
#users article button + button { margin-left: 7px; }

/* Drive */
#drive.drive-shell { padding: clamp(20px, 3vw, 34px); }
.drive-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.drive-header h2 { margin: 5px 0 7px; color: var(--ink-strong); font: 700 22px/1.25 'Manrope', sans-serif; }
.drive-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.drive-eyebrow { color: #749284; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.drive-gt-label { width: min(100%, 320px); }
.drive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 27px 0 18px; padding: 16px 0; border-top: 1px solid #e8eeea; border-bottom: 1px solid #e8eeea; }
.drive-breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: #456253; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.drive-breadcrumb span::before { content: '/'; margin-right: 10px; color: #b1c0b6; }
button.drive-crumb { padding: 8px 10px !important; min-height: 44px !important; border: 0 !important; color: #356f54 !important; background: transparent !important; font-size: 13px !important; }
button.drive-crumb:hover { color: #173e37 !important; background: transparent !important; }
.drive-action-form { margin: 0 0 20px; padding: 18px; border: 1px solid #dce9e0; border-radius: 12px; background: #f6faf7; }
.drive-action-form h3 { margin: 0; color: #24483b; font-size: 14px; }
.drive-action-form p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.drive-title-hint { margin-top: -8px; color: #829289; font-size: 11px; }
.drive-action-form label { max-width: 520px; }
.drive-location { margin: 0 0 14px; color: #71847a; font-size: 11px; }
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 13px; }
.drive-grid .drive-folder-card { margin: 0; padding: 0; border: 1px solid #e2ebe5; border-radius: 12px; background: #fff; overflow: hidden; }
button.drive-folder-open { width: 100%; min-height: 88px !important; display: flex; align-items: center; gap: 12px; padding: 16px !important; text-align: left; color: #29483c !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; }
button.drive-folder-open:hover { background: #f4f9f5 !important; transform: none !important; }
.drive-folder-open > span:last-child { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.drive-folder-open strong { font-size: 13px; }.drive-folder-open small { color: #819187; font-size: 11px; font-weight: 400; }
.drive-folder-icon, .drive-file-icon, .drive-empty-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: #53876a; border-radius: 10px; background: #eaf5ed; font-size: 19px; }
.drive-card-actions { padding: 0 12px 12px; gap: 6px; }.drive-card-actions button, .drive-file-actions button { min-height: 31px !important; padding: 6px 9px !important; }
.drive-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 9px; padding: 42px 20px; border: 1px dashed #d4e2d8; border-radius: 12px; background: #fafcfb; text-align: center; }
.drive-empty strong { color: #365549; font-size: 13px; }.drive-empty p { margin: 0; color: #829289; font-size: 12px; line-height: 1.5; }
.drive-file-list .drive-file-row { display: flex; align-items: center; gap: 13px; margin: 0; padding: 14px 0; border-top: 1px solid #e9efeb; }
.drive-file-content { display: block; flex: 1; min-width: 0; overflow-wrap: anywhere; }.drive-file-content strong { color: #29493f; font-size: 12px; }.drive-file-content p { margin: 4px 0 0; }
.drive-file-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.drive-download { color: #286548; font-size: 11px; font-weight: 700; text-decoration: none; }.drive-download:hover { text-decoration: underline; }
button.drive-preview-trigger { min-height: 0 !important; padding: 0 !important; border: 0 !important; color: #286548 !important; background: transparent !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.5; text-align: left; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; overflow-wrap: anywhere; }
button.drive-preview-trigger:hover { color: #173e37 !important; background: transparent !important; text-decoration-style: solid; transform: none !important; }
.drive-preview-dialog { width: min(980px, calc(100vw - 28px)); max-width: none; height: min(860px, calc(100dvh - 28px)); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #d8e4dc; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 28px 100px rgb(10 29 23 / 32%); }
.drive-preview-dialog::backdrop { background: rgb(12 30 25 / 68%); backdrop-filter: blur(3px); }
.drive-preview-shell { display: flex; flex-direction: column; width: 100%; height: 100%; }
.drive-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border-bottom: 1px solid #e5ece7; background: #fff; }
.drive-preview-header .drive-eyebrow { display: block; color: #668276; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.drive-preview-header h2 { max-width: min(60vw, 600px); margin: 4px 0 0; color: #203f35; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.drive-preview-header p { margin: 4px 0 0; color: #7d8d84; font-size: 11px; overflow-wrap: anywhere; }
.drive-preview-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.drive-preview-download { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #1b574c; border-radius: 8px; color: #fff; background: #1b574c; font-size: 11px; font-weight: 700; text-decoration: none; }
.drive-preview-download:hover { background: #153d37; }
.drive-preview-body { display: flex; flex: 1; min-height: 220px; align-items: stretch; justify-content: stretch; overflow: auto; background: #edf1ee; }
.drive-preview-body.is-image { align-items: center; justify-content: center; padding: 18px; }
.drive-preview-frame { display: block; width: 100%; min-height: 100%; flex: 1; border: 0; background: #fff; }
.drive-preview-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.drive-preview-unavailable { margin: auto; padding: 24px; color: #5e7067; font-size: 13px; text-align: center; line-height: 1.6; }
@media (max-width: 600px) { .drive-header { align-items: stretch; }.drive-gt-label { width: 100%; }.drive-file-list .drive-file-row { flex-wrap: wrap; }.drive-file-actions { margin-left: 53px; width: 100%; } }
@media (max-width: 600px) { .drive-preview-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 14px; }.drive-preview-header { align-items: flex-start; gap: 10px; padding: 13px; }.drive-preview-header h2 { max-width: 42vw; font-size: 14px; }.drive-preview-actions { gap: 6px; }.drive-preview-actions button, .drive-preview-download { min-height: 34px !important; padding: 7px 9px !important; font-size: 10px; }.drive-preview-body { min-height: 180px; }.drive-preview-body.is-image { padding: 10px; } }

/* Responsive navigation, readable controls, and inline record forms */
.mobile-more-button, .mobile-more-dialog, .nav-label-mobile { display: none; }
.module-heading, .access-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.module-heading h2 { margin: 0; color: var(--ink-strong); font: 700 19px/1.35 'Manrope', sans-serif; letter-spacing: -.035em; }
.list-search-label { margin: 15px 0 0; font-size: 12px; }
.list-search-label input { max-width: 560px; }
.list-search-empty { margin: 15px 0 0; padding: 12px 14px; border: 1px dashed #cddbd2; border-radius: 9px; color: #5c7066; background: #f8faf8; }
.inline-record-form { margin: 15px 0 18px; padding: 18px; border: 1px solid #dce9e0; border-radius: 12px; background: #f7faf8; scroll-margin-top: 16px; }
.inline-record-form h3 { margin: 0 0 2px; color: #24483b; font: 700 16px/1.35 'Manrope', sans-serif; }
.inline-record-form h4 { margin: 0 0 2px; color: #355a4b; font-size: 15px; }
.inline-record-form .actions { margin-top: 3px; }
.inline-record-form > button:only-of-type { width: fit-content; }
#user-form, #access-form { margin-top: 15px; }
#workspace .workspace-view:not(#view-followups) label { font-size: 13px; }
#workspace .workspace-view:not(#view-followups) input:not([type="checkbox"]):not([type="radio"]),
#workspace .workspace-view:not(#view-followups) select,
#workspace .workspace-view:not(#view-followups) textarea { min-height: 44px; font-size: 14px; }
#workspace .workspace-view:not(#view-followups) textarea { min-height: 96px; }
#workspace .workspace-view:not(#view-followups) article > strong { font-size: 14px; }
#workspace .workspace-view:not(#view-followups) article p { font-size: 13px; line-height: 1.55; }
#workspace .workspace-view:not(#view-followups) button:not(.nav-item):not(.logout-button):not(.text-button):not(.primary-button):not(.drive-crumb) { min-height: 44px; font-size: 13px; }
#workspace .workspace-view:not(#view-followups) input[type="checkbox"],
#workspace .workspace-view:not(#view-followups) input[type="radio"] { width: 20px; height: 20px; min-height: 20px; }
#workspace .workspace-view:not(#view-followups) .drive-card-actions button,
#workspace .workspace-view:not(#view-followups) .drive-file-actions button { min-height: 44px !important; font-size: 12px !important; }
#workspace .workspace-view:not(#view-followups) .drive-preview-download { min-height: 44px; font-size: 12px; }
#workspace :focus-visible { outline: 3px solid #d6b778; outline-offset: 3px; }

@media (max-width: 780px) {
  .workspace { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .sidebar { height: calc(66px + env(safe-area-inset-bottom)); min-height: 0; padding: 4px 6px max(4px, env(safe-area-inset-bottom)); }
  #module-nav { height: 100%; align-items: stretch; justify-content: space-between; gap: 0; overflow: visible; }
  #module-nav > .nav-caption,
  #module-nav > [data-view]:not([data-mobile-primary]),
  #module-nav > .mobile-more-button { display: none; }
  #module-nav > [data-view][data-mobile-primary], #module-nav > .mobile-more-button { width: 20%; min-width: 0; min-height: 54px; flex: 0 0 20%; align-items: center; justify-content: center; gap: 3px; padding: 3px 2px; font-size: 10px; line-height: 1.15; text-align: center; }
  #module-nav > [data-view][data-mobile-primary] > span:last-child,
  #module-nav > .mobile-more-button > span:last-child { display: block; max-width: 100%; overflow-wrap: anywhere; }
  #module-nav > [data-view][data-mobile-primary] > .nav-label-desktop { display: none; }
  #module-nav > [data-view][data-mobile-primary] > .nav-label-mobile { display: block; }
  #module-nav > [data-view="dashboard"] { order: 1; }
  #module-nav > [data-view="panel"] { order: 2; }
  #module-nav > [data-view="followups"] { order: 3; }
  #module-nav > [data-view="drive"] { order: 4; }
  #module-nav > .mobile-more-button { display: flex; order: 5; }
  #module-nav > .nav-item.active { box-shadow: inset 0 2px #d7c08d; }
  #module-nav > .mobile-more-button.active { color: #fff; background: rgb(255 255 255 / 7%); box-shadow: inset 0 2px #d7c08d; }
  .nav-icon { font-size: 18px; }
  .mobile-more-dialog { position: fixed; inset: auto 8px calc(74px + env(safe-area-inset-bottom)); width: auto; max-width: none; height: min(70dvh, 620px); max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); margin: 0; padding: 0; overflow: hidden; border: 1px solid #d8e4dc; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 70px rgb(10 29 23 / 28%); }
  .mobile-more-dialog[open] { display: block; }
  .mobile-more-dialog::backdrop { background: rgb(12 30 25 / 48%); }
  .mobile-more-shell { display: flex; height: 100%; min-height: 0; flex-direction: column; }
  .mobile-more-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e7ede9; }
  .mobile-more-header h2 { margin: 0; color: var(--ink-strong); font: 700 18px/1.3 'Manrope', sans-serif; }
  #mobile-more-nav { min-height: 0; overflow-y: auto; padding: 4px 14px 16px; overscroll-behavior: contain; }
  .mobile-more-group { margin: 14px 0 0; }
  .mobile-more-group h3 { margin: 0 0 7px; padding: 0 10px; color: #6e8579; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-more-group .nav-item { width: 100%; min-height: 48px; display: flex; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 11px; border-radius: 9px; color: #37564a; font-size: 14px; text-align: left; }
  .mobile-more-group .nav-icon { width: 22px; flex: 0 0 22px; color: #648373; font-size: 18px; }
  .mobile-more-group .nav-item.active { color: #173e37; background: #edf5ef; box-shadow: inset 3px 0 #8cae91; }
  .topbar { min-height: 75px; padding: 13px 17px; }
  .topbar h1 { font-size: 18px; }
  .topbar-title .eyebrow { font-size: 10px; }
  .identity-chip { max-width: 140px; font-size: 11px; }
  .logout-button { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .content-area { padding-bottom: 32px; }
  #workspace .workspace-view:not(#view-followups) input:not([type="checkbox"]):not([type="radio"]),
  #workspace .workspace-view:not(#view-followups) select,
  #workspace .workspace-view:not(#view-followups) textarea { font-size: 16px; }
  #workspace .workspace-view:not(#view-followups) button:not(.nav-item):not(.logout-button):not(.text-button):not(.primary-button):not(.drive-crumb) { min-height: 46px; }
  #workspace .workspace-view:not(#view-followups) .drive-preview-actions button,
  #workspace .workspace-view:not(#view-followups) .drive-preview-download { min-height: 44px !important; padding: 8px 11px !important; font-size: 12px !important; }
  #workspace .workspace-view:not(#view-followups) .drive-preview-header { flex-wrap: wrap; }
  #workspace .workspace-view:not(#view-followups) .drive-preview-header > div:first-child { width: 100%; }
  #workspace .workspace-view:not(#view-followups) .drive-preview-header h2 { max-width: 100%; font-size: 16px; }
  #workspace .workspace-view:not(#view-followups) .drive-preview-actions { width: 100%; justify-content: flex-end; }
  .module-heading h2 { font-size: 18px; }
  .inline-record-form { padding: 15px; }
  .list-search-label input { max-width: none; }
}
@media (min-width: 720px) and (max-width: 780px) {
  .dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-metric-card { padding-right: 11px; padding-left: 11px; }
}
@media (max-width: 390px) {
  #module-nav > [data-view][data-mobile-primary], #module-nav > .mobile-more-button { font-size: 10px; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 5px; }
  .identity-chip { max-width: 82px; }
  .logout-button { padding: 0 9px; }
  .dashboard-metrics { gap: 7px; }
  .dashboard-metric-card { padding: 12px 10px; }
  .dashboard-status-item { font-size: 10px; }
}
@media print {
  body.printing-panel #workspace #view-panel #panel-list .panel-card-field p { font-size: 9pt !important; line-height: 1.4 !important; }
  body.printing-panel #workspace #view-panel #panel-list .panel-card-footer p { font-size: 8pt !important; }
}
/* Assistente por etapas das fichas de atualização */
:is(#view-followups, #view-followup-templates) .followup-create-controls { display: flex; align-items: end; gap: 12px; margin: 16px 0; }
:is(#view-followups, #view-followup-templates) .followup-create-controls label { flex: 1; }
#view-followup-templates .followup-model-admin { display: grid; align-content: start; gap: 16px; }
#view-followup-templates .followup-model-admin > .module-heading p { max-width: 760px; color: #52645b; line-height: 1.5; }
#view-followup-templates .followup-model-admin article { margin: 10px 0; }
:is(#view-followups, #view-followup-templates) #followup-template-form { margin-top: 16px; }
:is(#view-followups, #view-followup-templates) #followup-template-form textarea[name="estrutura"] { min-height: 320px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
:is(#view-followups, #view-followup-templates) .followup-dialog { width: min(980px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: auto; border: 1px solid #d8e4dc; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 28px 100px rgb(10 29 23 / 32%); }
:is(#view-followups, #view-followup-templates) .followup-dialog::backdrop { background: rgb(12 30 25 / 68%); }
:is(#view-followups, #view-followup-templates) .followup-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e4ebe6; background: #fff; }
:is(#view-followups, #view-followup-templates) .followup-dialog-header h2 { margin: 0; font-size: 19px; }
:is(#view-followups, #view-followup-templates) .followup-dialog-error { margin: 12px 20px; color: #a12626; }
:is(#view-followups, #view-followup-templates) .followup-wizard { max-width: 920px; margin: 20px auto; padding: clamp(16px, 3vw, 28px); border: 1px solid #d7e1dc; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgb(29 59 45 / 7%); }
:is(#view-followups, #view-followup-templates) .wizard-header { margin-bottom: 22px; }
:is(#view-followups, #view-followup-templates) .wizard-progress { margin: 0 0 9px; color: #52705f; font-size: 15px; font-weight: 700; }
:is(#view-followups, #view-followup-templates) .wizard-progress-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #e6ede8; }
:is(#view-followups, #view-followup-templates) .wizard-progress-track span { display: block; height: 100%; border-radius: inherit; background: #43845f; transition: width .2s ease; }
:is(#view-followups, #view-followup-templates) .wizard-step-help { margin: 0 0 18px; color: #53665b; line-height: 1.55; }
:is(#view-followups, #view-followup-templates) .wizard-system-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 18px; padding: 14px; border-radius: 10px; background: #f4f7f5; }
:is(#view-followups, #view-followup-templates) .wizard-system-fields p { margin: 0; color: #45594d; font-size: 13px; }
:is(#view-followups, #view-followup-templates) .wizard-system-fields label { grid-column: 1 / -1; }
:is(#view-followups, #view-followup-templates) .wizard-previous-position { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid #779d83; background: #f5f8f6; }
:is(#view-followups, #view-followup-templates) .wizard-previous-position p { margin: 5px 0 0; }
:is(#view-followups, #view-followup-templates) .followup-wizard > label,
:is(#view-followups, #view-followup-templates) .wizard-table-row > label { display: block; margin: 14px 0; color: #304c3b; font-size: 14px; font-weight: 650; }
:is(#view-followups, #view-followup-templates) .followup-wizard input:not([type="radio"]):not([type="checkbox"]),
:is(#view-followups, #view-followup-templates) .followup-wizard select,
:is(#view-followups, #view-followup-templates) .followup-wizard textarea { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 12px; border: 1px solid #c8d4cc; border-radius: 8px; background: #fff; color: #21372b; font: inherit; }
:is(#view-followups, #view-followup-templates) .followup-wizard textarea { min-height: 120px; resize: vertical; }
:is(#view-followups, #view-followup-templates) .followup-wizard input:focus,
:is(#view-followups, #view-followup-templates) .followup-wizard select:focus,
:is(#view-followups, #view-followup-templates) .followup-wizard textarea:focus { outline: 3px solid rgb(67 132 95 / 22%); border-color: #43845f; }
:is(#view-followups, #view-followup-templates) .required-hint { color: #64756b; font-size: 12px; font-weight: 400; }
:is(#view-followups, #view-followup-templates) .wizard-choice-group,
:is(#view-followups, #view-followup-templates) .wizard-table-row { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid #d7e1dc; border-radius: 10px; }
:is(#view-followups, #view-followup-templates) .wizard-choice-group legend,
:is(#view-followups, #view-followup-templates) .wizard-table-row legend { padding: 0 6px; color: #304c3b; font-weight: 700; }
:is(#view-followups, #view-followup-templates) .wizard-choice-options { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#view-followups, #view-followup-templates) .wizard-choice-options.compact { gap: 5px; }
:is(#view-followups, #view-followup-templates) .wizard-choice-options.compact .wizard-choice { min-height: 38px; padding: 6px 9px; font-size: 12px; }
:is(#view-followups, #view-followup-templates) .wizard-row-choice-group { min-width: 0; margin: 12px 0; padding: 0; border: 0; }
:is(#view-followups, #view-followup-templates) .wizard-row-choice-group legend { padding: 0; color: #304c3b; font-size: 13px; font-weight: 650; }
:is(#view-followups, #view-followup-templates) .wizard-clear-choice { min-height: 34px !important; margin-top: 4px; padding-inline: 4px; font-size: 12px !important; }
:is(#view-followups, #view-followup-templates) .wizard-choice { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #718096; border-radius: 8px; color: #334155; background: #edf1f4; cursor: pointer; overflow-wrap: anywhere; }
:is(#view-followups, #view-followup-templates) .wizard-choice[data-tone="success"] { border-color: #5d8d69; color: #1f5b38; background: #e7f4ea; }
:is(#view-followups, #view-followup-templates) .wizard-choice[data-tone="active"] { border-color: #607eaa; color: #1e4b8f; background: #e8f1fd; }
:is(#view-followups, #view-followup-templates) .wizard-choice[data-tone="attention"] { border-color: #8d711f; color: #664d00; background: #fff4cc; }
:is(#view-followups, #view-followup-templates) .wizard-choice[data-tone="late"] { border-color: #a75273; color: #7a1e49; background: #fce7f3; }
:is(#view-followups, #view-followup-templates) .wizard-choice[data-tone="danger"] { border-color: #ad4545; color: #8a1c1c; background: #fde8e7; }
:is(#view-followups, #view-followup-templates) .wizard-choice:has(input:checked) { border-width: 2px; border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
:is(#view-followups, #view-followup-templates) .wizard-choice:focus-within { outline: 3px solid #174c37; outline-offset: 2px; }
:is(#view-followups, #view-followup-templates) .followup-wizard .wizard-choice input:focus { outline: none; }
:is(#view-followups, #view-followup-templates) .wizard-choice input,
:is(#view-followups, #view-followup-templates) .wizard-check input { width: 20px; height: 20px; accent-color: #34724f; }
:is(#view-followups, #view-followup-templates) .wizard-choice input { flex: 0 0 auto; accent-color: currentColor; }
:is(#view-followups, #view-followup-templates) .wizard-table-heading { margin: 18px 0 8px; color: #304c3b; font-weight: 700; }
:is(#view-followups, #view-followup-templates) .wizard-table-row-title { font-size: 15px; }
:is(#view-followups, #view-followup-templates) .wizard-static-cell { margin: 7px 0; color: #52645b; line-height: 1.5; }
:is(#view-followups, #view-followup-templates) .wizard-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0; color: #304c3b; }
:is(#view-followups, #view-followup-templates) .wizard-add-row,
:is(#view-followups, #view-followup-templates) .wizard-remove-row { margin: 6px 0; }
:is(#view-followups, #view-followup-templates) .wizard-remove-row { min-height: 38px !important; }
:is(#view-followups, #view-followup-templates) .wizard-review { display: grid; gap: 10px; margin: 18px 0; }
:is(#view-followups, #view-followup-templates) .wizard-review-section { margin: 0; padding: 12px 14px; border: 1px solid #e0e7e2; border-radius: 9px; }
:is(#view-followups, #view-followup-templates) .wizard-review-section h4 { margin: 0 0 7px; color: #365843; font-size: 14px; }
:is(#view-followups, #view-followup-templates) .wizard-review-section p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
:is(#view-followups, #view-followup-templates) .wizard-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 9px; margin: 20px -4px -4px; padding: 12px 4px 4px; border-top: 1px solid #e4ebe6; background: rgb(255 255 255 / 96%); }
:is(#view-followups, #view-followup-templates) .wizard-actions button { min-height: 44px; }
@media (max-width: 600px) {
  :is(#view-followups, #view-followup-templates) .followup-create-controls { align-items: stretch; flex-direction: column; }
  :is(#view-followups, #view-followup-templates) .wizard-system-fields { grid-template-columns: 1fr; }
  :is(#view-followups, #view-followup-templates) .wizard-system-fields label { grid-column: auto; }
  :is(#view-followups, #view-followup-templates) .followup-wizard { margin-inline: 0; padding: 16px; }
  :is(#view-followups, #view-followup-templates) .wizard-choice-options { display: grid; grid-template-columns: 1fr; }
  :is(#view-followups, #view-followup-templates) .wizard-actions button { flex: 1 1 calc(50% - 10px); }
}

/* Contexto e orientação da ficha */
:is(#view-followups, #view-followup-templates) .wizard-context { margin: 0 0 10px; color: #476459; font-size: 13px; line-height: 1.5; }
:is(#view-followups, #view-followup-templates) .wizard-save-status { margin: 8px 0 0; color: #526b5f; font-size: 12px; }
:is(#view-followups, #view-followup-templates) .wizard-step-nav { margin: 0; }
:is(#view-followups, #view-followup-templates) .wizard-step-nav .wizard-stage-selector { max-width: 560px; min-height: 50px; margin-top: 0; border-color: #b8cbbd; background: #f8fbf9; font-size: 16px; font-weight: 600; }
:is(#view-followups, #view-followup-templates) .wizard-field-help { margin: -7px 0 8px; color: #526b5f; font-size: 13px; line-height: 1.5; }
:is(#view-followups, #view-followup-templates) .wizard-review-edit { margin-top: 10px; }

/* Leitura e formulários dos módulos */
.workspace-view label { font-size: 13px; line-height: 1.4; }
.workspace-view input:not([type="checkbox"]):not([type="radio"]), .workspace-view select, .workspace-view textarea { font-size: 14px; min-height: 44px; }
.workspace-view .inline-record-form { padding: 20px; border: 1px solid #d7e6dc; border-radius: 12px; background: #f7faf8; }
.workspace-view .inline-record-form h3, .workspace-view .inline-record-form h4 { margin: 0; color: var(--ink-strong); }
.workspace-view .inline-record-form p, .workspace-view fieldset p { margin: 0; color: #526b5f; font-size: 13px; line-height: 1.5; }
.workspace-view > section > p, .module-grid > section > p, #view-panel #panel > p { font-size: 14px; }
.workspace-view button:focus-visible, .workspace-view a:focus-visible, .workspace-view select:focus-visible { outline: 3px solid #75a78d; outline-offset: 2px; }
@media (max-width: 600px) { .workspace-view .inline-record-form { padding: 16px; } .workspace-view input:not([type="checkbox"]):not([type="radio"]), .workspace-view select, .workspace-view textarea { font-size: 16px; } }

/* Listas de trabalho: leitura e hierarquia em todas as telas */
:is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article { margin: 12px 0 0; padding: 18px; border: 1px solid #dce8e0; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgb(21 52 42 / 4%); }
:is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article > strong { color: #203f35; font-size: 15px; line-height: 1.45; }
:is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article p, :is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article li { color: #4a6257; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
:is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article > button { margin: 6px 7px 0 0; }
:is(#view-followups, #view-followup-templates) .wizard-field-help { display: block; margin: 6px 0 0; font-weight: 400; }
@media (max-width: 600px) { :is(#gts,#subgts,#people-list,#institutions-list,#sources-list,#users,#access-list,#composition-list,#plan-list,#delivery-list,#followup-list,#actions-list,#meetings-list,#referrals-list,#dependencies-list,#audit-list) > article { padding: 15px; } }
.template-builder { display: grid; gap: 12px; margin: 16px 0; }
.template-builder-step, .template-builder-field, .template-builder-column { min-width: 0; border: 1px solid #dce8e0; border-radius: 12px; background: #fff; }
.template-builder-step { padding: 16px; }
.template-builder-step > summary, .template-json-advanced > summary { color: #24483b; font-size: 15px; font-weight: 700; cursor: pointer; }
.template-builder-step > label { margin-top: 12px; }
.template-builder-field { display: grid; gap: 10px; margin: 14px 0; padding: 16px; background: #f9fbf9; }
.template-builder-field legend { font-size: 14px; }
.template-builder-field label, .template-builder-column label { font-size: 13px; }
.template-builder-field label:has(input[type="checkbox"]), .template-builder-settings label { display: flex; align-items: center; gap: 8px; }
.template-builder-field input[type="checkbox"], .template-builder-settings input[type="checkbox"] { flex: 0 0 18px; }
.template-builder-options { display: grid; gap: 8px; padding: 12px; border: 1px solid #e1eae4; border-radius: 10px; background: #fff; }
.template-builder-options > strong { color: #355a4b; font-size: 13px; }
.template-builder-option { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 10px; }
.template-builder-column { display: grid; gap: 10px; padding: 13px; }
.template-builder-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.template-json-advanced { margin: 12px 0; padding: 14px; border: 1px solid #e1eae4; border-radius: 10px; background: #fff; }
.template-json-advanced > label { margin-top: 12px; }
@media (max-width: 780px) { .template-builder-option { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .template-builder-option, .template-builder-settings { grid-template-columns: 1fr; } }
