:root {
  --navy-950: #071429;
  --navy-900: #0b1d38;
  --navy-800: #10294c;
  --blue-700: #075fc8;
  --blue-600: #0878e8;
  --blue-500: #1699f2;
  --cyan-300: #6fd8ff;
  --orange-500: #f07b32;
  --ink: #15243a;
  --muted: #66758a;
  --line: #dfe6ef;
  --line-soft: #ebf0f6;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --canvas-warm: #fbfaf7;
  --success: #15956f;
  --danger: #c74444;
  --warning: #b56814;
  --shadow-sm: 0 8px 24px rgba(13, 35, 66, 0.07);
  --shadow-lg: 0 28px 70px rgba(7, 25, 54, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 272px;
  --status-height: 34px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(480px, 0.92fr);
  min-height: 100vh;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px 64px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 78%, rgba(20, 153, 242, 0.33), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(240, 123, 50, 0.2), transparent 27%),
    linear-gradient(145deg, #071429 0%, #0b2345 55%, #0a3f76 100%);
}

.login-brand::after {
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 66px rgba(255, 255, 255, 0.025),
    0 0 0 132px rgba(255, 255, 255, 0.018);
  content: "";
}

.ambient {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 34px 11px rgba(111, 216, 255, 0.36);
}

.ambient-one {
  top: 22%;
  right: 18%;
}

.ambient-two {
  left: 9%;
  bottom: 25%;
  background: var(--orange-500);
  box-shadow: 0 0 42px 13px rgba(240, 123, 50, 0.3);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-lockup-light {
  color: #fff;
}

.brand-lockup b {
  font-weight: 800;
}

.brand-symbol {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 5px 16px rgba(8, 120, 232, 0.24);
}

.brand-symbol i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: #fff;
  transform: skew(-18deg);
}

.brand-symbol i:nth-child(1) { height: 8px; opacity: 0.72; }
.brand-symbol i:nth-child(2) { height: 13px; opacity: 0.86; }
.brand-symbol i:nth-child(3) { height: 18px; }

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0;
}

.eyebrow,
.page-kicker {
  margin: 0 0 10px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-brand .eyebrow {
  color: var(--cyan-300);
}

.login-brand h1 {
  max-width: 590px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.login-brand-copy > p:last-child {
  max-width: 480px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 17px;
  line-height: 1.65;
}

.login-brand-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.73), rgba(255, 255, 255, 0.73)),
    radial-gradient(circle at 70% 16%, #dcedfc, transparent 34%),
    var(--canvas-warm);
}

.login-card {
  width: min(100%, 420px);
}

.mobile-brand {
  display: none;
  margin-bottom: 64px;
}

.login-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.login-intro {
  margin: 10px 0 34px;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin: 20px 0 8px;
  color: #34445a;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #d5dde8;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

textarea {
  min-height: 100px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 153, 242, 0.1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 78px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 5px 4px;
  color: var(--blue-700);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.form-message {
  min-height: 20px;
  margin: 13px 0 4px;
  color: var(--danger);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 10px 22px rgba(8, 120, 232, 0.22);
}

.button-secondary {
  color: var(--navy-800);
  border-color: #d9e1eb;
  background: #fff;
}

.button-danger {
  color: var(--danger);
  border-color: #f0d2d2;
  background: #fffafa;
}

.button-wide {
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  padding: 0 18px;
}

.login-help {
  margin: 24px 0 0;
  color: #8995a5;
  font-size: 12px;
  text-align: center;
}

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

.sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 24px 18px 18px;
  color: #dce7f4;
  background:
    radial-gradient(circle at 10% 8%, rgba(22, 153, 242, 0.2), transparent 22%),
    linear-gradient(175deg, var(--navy-900), var(--navy-950));
  transition: width 200ms ease;
}

.sidebar-head,
.sidebar-footer,
.sidebar-profile,
.product-label {
  display: flex;
  align-items: center;
}

.sidebar-head {
  justify-content: space-between;
  min-height: 38px;
}

.sidebar .brand-lockup {
  color: #fff;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.sidebar .icon-button {
  color: #a8bad0;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
}

.product-label {
  gap: 12px;
  margin: 30px 6px 20px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.product-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 5px rgba(240, 123, 50, 0.12);
}

.product-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-copy b {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  letter-spacing: 0.09em;
}

.product-copy small {
  margin-top: 2px;
  color: #6f88a7;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #8fa4bd;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}

.nav-button:hover {
  color: #e6f0fb;
  background: rgba(255, 255, 255, 0.045);
}

.nav-button.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(8, 120, 232, 0.34), rgba(22, 153, 242, 0.12));
  box-shadow: inset 3px 0 0 var(--blue-500);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  flex: 0 0 22px;
  font-size: 16px;
}

.nav-label {
  white-space: nowrap;
}

.sidebar-footer {
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-profile {
  gap: 10px;
  min-width: 0;
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue-600), #7142d8);
  font-size: 12px;
  font-weight: 800;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-copy b,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy b { color: #fff; font-size: 12px; }
.profile-copy small { margin-top: 3px; color: #738ba7; font-size: 10px; }

.app-shell.sidebar-is-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar-is-collapsed .brand-name,
.sidebar-is-collapsed .product-copy,
.sidebar-is-collapsed .nav-label,
.sidebar-is-collapsed .profile-copy {
  display: none;
}

.sidebar-is-collapsed .sidebar-head,
.sidebar-is-collapsed .product-label,
.sidebar-is-collapsed .sidebar-footer,
.sidebar-is-collapsed .nav-button {
  justify-content: center;
}

.sidebar-is-collapsed .sidebar-collapse {
  position: absolute;
  top: 70px;
  transform: rotate(180deg);
}

.sidebar-is-collapsed .product-label { margin-top: 62px; }

.workspace-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) var(--status-height);
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.topbar .page-kicker { margin-bottom: 3px; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.mobile-menu { display: none; }

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(12, 105, 210, 0.018) 25%, transparent 25%) 0 0 / 32px 32px,
    var(--canvas);
}

.workspace {
  min-width: 0;
  overflow: auto;
  padding: 30px;
}

.context-panel {
  width: min(430px, 36vw);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 45px rgba(12, 32, 61, 0.07);
}

.context-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.context-panel-head h2 {
  margin: 0;
  color: var(--navy-950);
  font: 700 20px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.context-content { padding: 6px 24px 28px; }

.statusbar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 0 30px;
  color: #8390a1;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statusbar > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.statusbar > span:last-child { margin-left: auto; }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(21, 149, 111, 0.12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  min-height: 210px;
  padding: 34px 36px;
  color: #fff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 20%, rgba(22, 153, 242, 0.32), transparent 30%),
    linear-gradient(120deg, var(--navy-950), #0d3767);
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025);
  content: "";
}

.hero-copy { position: relative; z-index: 1; }

.hero-copy .eyebrow { color: var(--cyan-300); }

.hero-copy h2 {
  max-width: 640px;
  margin: 0;
  font: 700 clamp(27px, 3vw, 42px)/1.12 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.hero-badge {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.surface-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.surface-card h3 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font: 700 15px/1.3 "Manrope", sans-serif;
}

.surface-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--blue-700);
  border-radius: 12px;
  background: #eef7ff;
  font-weight: 800;
}

.screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.screen-toolbar-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font: 700 21px/1.3 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.screen-toolbar-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
}

.filter-bar input,
.filter-bar select { min-height: 42px; }

.clickable-row { cursor: pointer; }
.clickable-row:focus { outline: 2px solid var(--blue-500); outline-offset: -2px; }

.lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.lead-header h2 { margin: 0 0 6px; color: var(--navy-950); font: 700 28px/1.2 "Manrope", sans-serif; }
.lead-header p:last-child { margin: 0; color: var(--muted); }
.lead-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.tab-bar { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tab-button { min-height: 38px; padding: 0 15px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tab-button.active { color: var(--blue-700); background: #eaf4ff; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.detail-row span { color: var(--muted); }
.detail-row b { text-align: right; }
.detail-grid .button { margin-top: 18px; }

.timeline,
.stack-list { display: grid; gap: 12px; margin-top: 16px; }
.timeline-item { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.timeline-item small { margin-left: 10px; color: var(--muted); }
.timeline-item p { margin: 12px 0 0; color: #34445a; line-height: 1.6; white-space: pre-wrap; }
.compact-card { padding: 17px 19px; }
.compact-card h3 { margin-top: 9px; }
.compact-card small { color: var(--muted); }

.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.goal-card > p { margin-bottom: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 12px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fbfcfe; }
.metric span { display: block; min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.35; text-transform: uppercase; }
.metric b { display: block; margin-top: 6px; color: var(--navy-900); font: 700 21px/1 "Manrope", sans-serif; }

.watcher-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.briefing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.briefing-block { padding: 18px; }
.briefing-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 12px 3px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; }
.briefing-row:last-child { border-bottom: 0; }
.briefing-row:not(.static-row):hover { color: var(--blue-700); }
.briefing-row span { color: var(--muted); font-size: 12px; text-align: right; }
.wide-block { margin-top: 18px; }

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #7a889b;
  background: #fbfcfe;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.data-table td { color: #34445a; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdff; }

.person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.person-cell .profile-avatar {
  color: var(--blue-700);
  border-color: #dceaff;
  background: #eef6ff;
}

.person-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.person-meta b { color: var(--navy-900); }
.person-meta small { margin-top: 2px; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eaf4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.success { color: #0c7d5c; background: #e8f7f2; }
.badge.neutral { color: #68768a; background: #eef1f5; }
.badge.warning { color: var(--warning); background: #fff3e4; }

.table-action {
  padding: 6px 9px;
  color: var(--blue-700);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.table-action:hover { background: #eef6ff; }

.empty-state,
.loading-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.panel-form { padding-top: 2px; }

.form-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.form-section:last-child { border-bottom: 0; }

.form-section h3 {
  margin: 0 0 2px;
  color: var(--navy-900);
  font: 700 14px/1.3 "Manrope", sans-serif;
}

.form-section > p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
}

.permission-category {
  margin: 20px 0 7px;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-row:has(input:disabled) {
  cursor: default;
}

.check-row:has(input:disabled) .check-copy::after {
  margin-top: 4px;
  color: var(--blue-700);
  content: "Incluída pelo perfil";
  font-size: 10px;
  font-weight: 600;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  margin: 2px 0 0;
  flex: 0 0 17px;
}

.check-copy {
  display: flex;
  flex-direction: column;
  color: #34445a;
  font-size: 13px;
  font-weight: 600;
}

.check-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 48px;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  padding: 13px 16px;
  color: #fff;
  border-radius: 11px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toast-in 180ms ease-out;
}

.toast.error { background: #8f3030; }
.toast.success { background: #0c7659; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .login-view { grid-template-columns: 0.95fr 1.05fr; }
  .login-brand { padding: 42px; }
  .section-grid { grid-template-columns: 1fr 1fr; }
  .context-panel { width: min(400px, 44vw); }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .login-view { display: block; background: var(--canvas-warm); }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 34px 24px; }
  .mobile-brand { display: inline-flex; }
  .app-shell,
  .app-shell.sidebar-is-collapsed { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-104%);
    transition: transform 200ms ease;
  }
  .app-shell.mobile-nav-open .sidebar { transform: translateX(0); }
  .sidebar-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    background: rgba(4, 15, 31, 0.42);
    backdrop-filter: blur(2px);
  }
  .mobile-nav-open .sidebar-scrim { display: block !important; }
  .sidebar-is-collapsed .brand-name,
  .sidebar-is-collapsed .product-copy,
  .sidebar-is-collapsed .nav-label,
  .sidebar-is-collapsed .profile-copy { display: initial; }
  .sidebar-is-collapsed .sidebar-head,
  .sidebar-is-collapsed .product-label,
  .sidebar-is-collapsed .sidebar-footer,
  .sidebar-is-collapsed .nav-button { justify-content: initial; }
  .sidebar-is-collapsed .sidebar-collapse { position: static; transform: none; }
  .sidebar-is-collapsed .product-label { margin-top: 30px; }
  .sidebar-collapse { display: none; }
  .mobile-menu { display: inline-grid; }
  .topbar { min-height: 78px; padding: 15px 18px; }
  .workspace { padding: 18px; }
  .workspace-layout { position: relative; display: block; overflow: hidden; }
  .context-panel {
    position: absolute;
    z-index: 15;
    inset: 0 0 0 auto;
    width: min(430px, 100%);
  }
  .section-grid { grid-template-columns: 1fr; }
  .briefing-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-header { align-items: flex-start; flex-direction: column; }
  .lead-actions { justify-content: flex-start; }
  .filter-bar { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; padding: 28px; }
  .hero-badge { justify-self: start; }
  .statusbar { padding: 0 18px; }
  .statusbar > span:nth-child(2) { display: none; }
  .screen-toolbar { align-items: flex-start; }
  .table-shell { overflow-x: auto; }
  .data-table { min-width: 860px; }
}

@media (max-width: 480px) {
  .login-panel { place-items: start center; }
  .login-card h2 { font-size: 31px; }
  .topbar-actions .button span:first-child { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
