:root {
  color-scheme: light;
  --ink: #1d2633;
  --muted: #687385;
  --line: #d8dee8;
  --page: #f4f6f8;
  --panel: #ffffff;
  --accent: #0e7c86;
  --accent-strong: #075a62;
  --danger: #c84630;
  --warning: #b98212;
  --success: #2e7d52;
  --shadow: 0 18px 45px rgba(31, 42, 55, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}

body.auth-locked {
  overflow: hidden;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(23, 59, 68, 0.94), rgba(14, 124, 134, 0.86)),
    var(--page);
}

.login-screen[hidden] {
  display: none;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1fr);
  width: min(940px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(18, 27, 36, 0.24);
}

.login-brand {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 430px;
  padding: 32px;
  color: #ffffff;
  background: #173b44;
}

.login-logo {
  width: min(100%, 360px);
  max-height: 210px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.login-brand strong {
  display: block;
  font-size: 2.2rem;
}

.login-brand span {
  display: block;
  margin-top: 8px;
  color: #bfd5d8;
  font-weight: 700;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 36px;
}

.login-form h1 {
  font-size: 2rem;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(200, 70, 48, 0.32);
  border-radius: 8px;
  color: var(--danger);
  background: #fff3f0;
  font-weight: 700;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  padding: 24px;
  color: #f8fbfc;
  background: #173b44;
}

.brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 222px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: #bfd5d8;
  font-size: 0.88rem;
}

.main-nav {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.main-nav-button {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #eef8f9;
  background: transparent;
  font-weight: 700;
  text-align: left;
}

.main-nav-button:hover,
.main-nav-button.active {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav-button[hidden] {
  display: none;
}

.sector-nav {
  display: grid;
  gap: 7px;
}

.sector-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #eef8f9;
  background: transparent;
  text-align: left;
}

.sector-button:hover,
.sector-button.active {
  background: rgba(255, 255, 255, 0.12);
}

.sector-button small {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #173b44;
  background: #d7ecef;
  text-align: center;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar,
.actions,
.form-header,
.toolbar,
.toolbar-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
}

h2 {
  font-size: 1.08rem;
}

.actions {
  gap: 8px;
}

.access-switcher {
  min-width: 230px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.access-switcher select {
  min-height: 42px;
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.session-summary {
  display: grid;
  min-width: 190px;
  gap: 2px;
  padding: 6px 0;
}

.session-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-summary strong {
  line-height: 1.15;
}

.session-summary small {
  color: var(--muted);
}

.session-action {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 42, 55, 0.08);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(31, 42, 55, 0.08);
}

.file-button input {
  display: none;
}

.department-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(14, 124, 134, 0.25);
  border-radius: 8px;
  background: #e8f5f6;
}

.department-view[hidden] {
  display: none;
}

.department-view-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, max-content));
  align-items: start;
  gap: 28px;
}

.department-view span,
.department-view strong {
  display: block;
}

.department-view span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.department-view strong {
  margin-top: 4px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.department-view button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ceo-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.ceo-dashboard[hidden],
.decisions-view[hidden],
.employees-view[hidden],
.meetings-view[hidden],
.goals-view[hidden],
.expansion-works-view[hidden],
.sector-nav[hidden],
#taskMetrics[hidden],
#taskBoard[hidden] {
  display: none;
}

.decisions-view,
.employees-view,
.meetings-view,
.goals-view,
.expansion-works-view {
  display: grid;
  gap: 18px;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.work-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.work-card:hover,
.work-card.active {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(14, 124, 134, 0.16);
}

.work-card span,
.work-card small {
  color: var(--muted);
}

.work-card span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-card strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.work-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 124, 134, 0.25);
  border-radius: 8px;
  background: #e8f5f6;
}

.work-focus[hidden] {
  display: none;
}

.work-focus span,
.work-focus strong,
.work-focus small {
  display: block;
}

.work-focus span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-focus strong {
  margin-top: 4px;
}

.work-focus small {
  margin-top: 4px;
  color: var(--muted);
}

.commercial-category-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.commercial-category-panel[hidden] {
  display: none;
}

.category-actions,
.category-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-form[hidden] {
  display: none;
}

.category-form input,
.category-form textarea {
  min-width: 0;
  flex: 1 1 220px;
}

.category-form textarea {
  flex: 2 1 360px;
  min-height: 82px;
}

.category-form .ghost-action,
.category-actions .ghost-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 700;
}

.category-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.commercial-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.commercial-category-card {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: var(--shadow);
}

.commercial-category-card:hover,
.commercial-category-card.active {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(14, 124, 134, 0.16);
}

.commercial-category-card.has-late {
  border-color: rgba(200, 70, 48, 0.38);
}

.commercial-category-card strong,
.commercial-category-card span {
  display: block;
}

.commercial-category-card strong {
  line-height: 1.25;
}

.commercial-category-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.category-card-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.commercial-category-focus {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.commercial-category-focus[hidden] {
  display: none;
}

.commercial-category-focus .panel-title {
  margin-bottom: 0;
}

.commercial-category-focus .panel-title span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.commercial-category-guide {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.commercial-category-guide[hidden] {
  display: none;
}

.commercial-category-description {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.category-description-list {
  margin: 0;
  padding-left: 20px;
}

.category-description-list li + li {
  margin-top: 5px;
}

.commercial-category-guide span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.commercial-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commercial-example-list button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c9dce1;
  border-radius: 8px;
  color: var(--accent-strong);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.commercial-example-list button:hover {
  border-color: var(--accent);
  background: #e8f5f6;
}

.work-focus-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-focus button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

.work-focus .danger-action {
  background: var(--danger);
}


.section-heading,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading {
  padding: 2px 0;
}

.section-heading h2,
.panel-title h3 {
  margin: 0;
}

.section-heading h2 {
  font-size: 1.18rem;
}

.section-heading > span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.ceo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.ceo-card,
.executive-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ceo-card {
  width: 100%;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ceo-card:hover,
.ceo-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(14, 124, 134, 0.16);
  transform: translateY(-1px);
  outline: 0;
}

.ceo-card span,
.ceo-card small {
  display: block;
  color: var(--muted);
}

.ceo-card span {
  font-size: 0.86rem;
}

.ceo-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.ceo-card small {
  margin-top: 6px;
  font-size: 0.78rem;
}

.ceo-card.danger strong,
.danger-text {
  color: var(--danger);
}

.ceo-card.warning strong,
.warning-text {
  color: var(--warning);
}

.ceo-card.success strong {
  color: var(--success);
}

.executive-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.personal-dashboard {
  display: grid;
  gap: 16px;
}

.personal-dashboard[hidden] {
  display: none;
}

.personal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.executive-panel {
  min-width: 0;
  padding: 14px;
}

.panel-title {
  margin-bottom: 12px;
}

.panel-title h3 {
  font-size: 0.98rem;
}

.ranking-table-wrap {
  overflow-x: auto;
}

.ranking-table {
  min-width: 520px;
}

.ranking-table th,
.ranking-table td {
  padding: 11px 10px;
}

.attention-list {
  display: grid;
  gap: 9px;
}

.attention-item {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  text-align: left;
}

.attention-item:hover {
  background: #edf5f6;
}

.attention-item strong,
.attention-item small {
  display: block;
}

.attention-item strong {
  line-height: 1.35;
}

.attention-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--success);
}

.status-dot.late {
  background: var(--danger);
}

.status-dot.critical {
  background: var(--warning);
}

.status-dot.active {
  background: var(--accent);
}

.status-dot.done {
  background: #9aa4b2;
}

.quiet-text {
  margin: 0;
  color: var(--muted);
}

.metric {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.metric.static {
  cursor: default;
}

.metric.static:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: none;
}

.metric:hover,
.metric.active {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(14, 124, 134, 0.16);
  transform: translateY(-1px);
}

.metric.active {
  outline: 3px solid rgba(14, 124, 134, 0.15);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.metric.danger strong {
  color: var(--danger);
}

.metric.warning strong {
  color: var(--warning);
}

.metric.success strong {
  color: var(--success);
}

.board {
  display: block;
}

.task-form,
.task-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.task-form {
  display: grid;
  gap: 14px;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.form-header {
  justify-content: space-between;
  gap: 10px;
}

.primary-action,
.secondary-action,
.form-header button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

.secondary-action {
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  background: #e8f5f6;
}

.ghost-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.form-header .ghost-action {
  color: var(--ink);
  background: #ffffff;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(14, 124, 134, 0.18);
  border-color: var(--accent);
}

textarea {
  min-height: 118px;
  padding-top: 10px;
  line-height: 1.45;
  resize: vertical;
}

.attachment-field small {
  color: var(--muted);
  font-size: 0.78rem;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.attachment-meta {
  min-width: 0;
}

.attachment-meta strong,
.attachment-meta small {
  display: block;
}

.attachment-meta strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta small,
.attachment-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.attachment-empty {
  margin: 0;
}

.attachment-actions {
  flex: 0 0 auto;
}

.attachment-actions button,
.attachment-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.checkbox-option input {
  width: auto;
  accent-color: var(--accent);
}

.task-area {
  min-width: 0;
  min-height: 58vh;
}

.toolbar {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.toolbar-actions {
  justify-content: flex-end;
  gap: 10px;
}

.search-wrap {
  display: flex;
  align-items: center;
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 11px;
  background: #ffffff;
}

.search-wrap input {
  border: 0;
}

.search-wrap input:focus {
  outline: 0;
}

.toolbar select {
  max-width: 190px;
}

.submit-action {
  justify-self: end;
  min-width: 180px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(29, 38, 51, 0.42);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(31, 42, 55, 0.22);
  padding: 20px;
}

.small-modal {
  width: min(460px, 100%);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.decisions-view table {
  min-width: 1120px;
}

.employees-view table {
  min-width: 1240px;
}

.meetings-view table {
  min-width: 1480px;
}

.goals-view table {
  min-width: 1160px;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  font-size: 0.92rem;
}

.task-title {
  max-width: 520px;
  font-weight: 700;
}

.task-link {
  max-width: 100%;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.task-link:hover {
  text-decoration: underline;
}

.task-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.detail-panel {
  width: min(820px, 100%);
}

.detail-content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.detail-content span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-content strong {
  display: block;
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.detail-grid > div,
.detail-section {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-content p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.alta {
  color: #812a19;
  background: #ffe0d8;
}

.pill.media {
  color: #765006;
  background: #fff0c9;
}

.pill.baixa {
  color: #255a3e;
  background: #dff3e8;
}

.status-select {
  min-width: 142px;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.row-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: #eef2f6;
}

.row-actions .attachment-indicator {
  color: #006272;
  background: #dff7fb;
}

.due-late {
  color: var(--danger);
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.sector-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sector-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sector-card strong {
  display: block;
  margin-bottom: 8px;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf0;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.sector-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 180px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 18px;
  }

  .sector-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .board {
    display: block;
  }

  .executive-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px;
  }

  .topbar,
  .department-view,
  .work-focus,
  .section-heading,
  .toolbar,
  .toolbar-actions,
  .form-header {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    align-self: stretch;
    flex-wrap: wrap;
  }

  .department-view-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .access-switcher {
    width: 100%;
  }

  .session-summary,
  .session-action {
    width: 100%;
  }

  .metrics,
  .ceo-grid,
  .personal-dashboard-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .attachment-item {
    align-items: stretch;
    flex-direction: column;
  }

  .attachment-actions,
  .attachment-actions button,
  .attachment-actions a {
    width: 100%;
  }

  .attachment-actions button,
  .attachment-actions a {
    justify-content: center;
  }

  .toolbar select {
    max-width: none;
  }

  .submit-action {
    justify-self: stretch;
  }
}
