:root {
  color-scheme: light;
  --bg: #f5fbfb;
  --surface: #ffffff;
  --surface-2: #eef8f8;
  --surface-3: #dceeed;
  --surface-muted: #f4faf9;
  --ink: #183235;
  --muted: #60777a;
  --soft: #8aa0a2;
  --line: #d9e8e7;
  --line-strong: #bfd4d2;
  --accent-soft: #e5fbfa;
  --accent-soft-2: #b9eeee;
  --accent-mid: #37c3c5;
  --accent: #13aeb3;
  --accent-hover: #0c8e95;
  --accent-strong: #08777f;
  --pop: #3f8fda;
  --pop-hover: #276fb9;
  --pop-soft: #ecf6ff;
  --pop-soft-2: #c9e5fb;
  --tech: #13aeb3;
  --tech-hover: #0c8e95;
  --tech-soft: #e5fbfa;
  --tech-soft-2: #b9eeee;
  --sun-soft: #fff7e8;
  --solar-wash: #f4fcfb;
  --slate: #235b61;
  --slate-hover: #17444a;
  --slate-soft: #eaf6f5;
  --slate-soft-2: #cfe6e4;
  --slate-tint: #f4faf9;
  --rose: #dc2626;
  --rose-soft: #fef2f2;
  --champagne: #f2fbf9;
  --success: #16a34a;
  --success-soft: #ecfdf3;
  --warning: #d97706;
  --warning-soft: #fff7df;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: var(--slate);
  --info-soft: var(--slate-soft);
  --focus-ring: 0 0 0 4px rgba(19, 174, 179, 0.18);
  --shadow: 0 22px 60px rgba(24, 50, 53, 0.09);
  --shadow-soft: 0 8px 24px rgba(24, 50, 53, 0.05);
  --shadow-breath: 0 14px 34px rgba(24, 50, 53, 0.055);
  --radius: 12px;
  --radius-sm: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --text-caption: 0.72rem;
  --text-small: 0.82rem;
  --text-body: 0.92rem;
  --text-card-action: 1rem;
  --text-section: 1.08rem;
  --text-context: 1.38rem;
  --text-page: 2rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--slate-soft);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd7d4;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #9fb0ad;
  border: 3px solid transparent;
  background-clip: content-box;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.auth-brand {
  color: var(--ink);
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 700;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.auth-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

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

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.status-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #cfe6da;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: var(--text-small);
  line-height: 1.45;
}

.status-toast strong {
  display: block;
  margin-bottom: 2px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 12;
  width: 76px;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 20px;
  overflow: hidden;
  border-right: 1px solid rgba(226, 229, 225, 0.76);
  transition: width 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.workspace {
  grid-column: 2;
}

.sidebar:hover,
body.sidebar-pinned .sidebar {
  width: 240px;
  padding: 16px;
  box-shadow: 18px 0 45px rgba(24, 50, 53, 0.08);
}

body.sidebar-pinned .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 216px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 174, 179, 0.18);
  background: var(--slate);
  color: #ffffff;
  font-weight: 800;
}

.brand span,
.sidebar-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.brand > div:not(.brand-mark),
.sidebar-footer span:not(.status-dot) {
  opacity: 0;
  transition: opacity 140ms ease;
}

.sidebar:hover .brand > div:not(.brand-mark),
body.sidebar-pinned .brand > div:not(.brand-mark),
.sidebar:hover .sidebar-footer span:not(.status-dot),
body.sidebar-pinned .sidebar-footer span:not(.status-dot) {
  opacity: 1;
}

.sidebar-pin {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease;
}

.sidebar:hover .sidebar-pin,
body.sidebar-pinned .sidebar-pin {
  opacity: 1;
}

.sidebar-pin[aria-pressed="true"] {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  min-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
}

.nav-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(247, 248, 246, 0.92);
  color: var(--soft);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.sidebar:hover .nav-label,
body.sidebar-pinned .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(247, 248, 246, 0.9);
  color: var(--ink);
}

.nav-item.active {
  background: var(--slate-soft);
  color: var(--slate);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--slate);
}

.nav-item.active .nav-icon {
  background: #ffffff;
  color: var(--slate);
  box-shadow: 0 8px 18px rgba(19, 174, 179, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 252, 255, 0.78);
  backdrop-filter: blur(22px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 30px 13px;
  border-bottom: 1px solid rgba(226, 229, 225, 0.72);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: var(--text-page);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h2 {
  font-size: var(--text-section);
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.tool-menu {
  position: relative;
}

.tool-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 230px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-menu-panel button {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.tool-menu-panel button:hover {
  background: var(--surface-muted);
}

.search-box {
  width: min(420px, 36vw);
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 229, 225, 0.9);
  border-radius: 999px;
  padding: 0 12px;
  height: 38px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.search-box:focus-within {
  background: var(--surface);
  border-color: rgba(19, 174, 179, 0.36);
  box-shadow: var(--focus-ring);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}

.global-search-results {
  position: absolute;
  top: 74px;
  right: 32px;
  z-index: 20;
  width: min(520px, calc(100vw - 64px));
  max-height: 60vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 229, 225, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-result {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(247, 248, 246, 0.7);
  padding: 10px 12px;
}

.search-result:hover {
  border-color: rgba(201, 206, 199, 0.9);
  background: #ffffff;
}

.content {
  padding: 26px 32px 40px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.cockpit-brief {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 2px 2px 0;
}

.cockpit-brief > div {
  position: relative;
}

.cockpit-brief h2 {
  margin-top: 6px;
  font-size: var(--text-context);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.info-heading {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.quiet-clock {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--info);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0 4px;
}

.info-dot {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: -2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.66rem;
  line-height: 1;
  padding: 0;
  transform: translateY(-0.35em);
}

.info-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.info-dot:hover,
.info-dot:focus-visible,
.info-dot[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
}

.info-popover {
  position: absolute;
  z-index: 20;
  max-width: 340px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.panel,
.table-card,
.kanban-column,
.large-calendar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 229, 225, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-breath);
}

.panel {
  padding: var(--space-5);
}

.panel-header,
.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.panel-header .panel-icon + div {
  margin-right: auto;
}

.panel-icon,
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--slate);
}

.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.panel-icon svg,
.metric-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-icon {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
}

.date-icon,
.action-icon {
  color: var(--pop-hover);
  background: var(--pop-soft);
  border-color: var(--pop-soft-2);
}

.panel-header .section-kicker,
.module-header .section-kicker {
  margin-bottom: 5px;
}

.panel-header h2 {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.18;
}

.priority-panel {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  border: 1px solid rgba(19, 174, 179, 0.28);
  background: var(--surface);
  box-shadow: var(--shadow-breath);
  min-height: 86px;
  padding: 17px var(--space-5);
  padding-left: calc(var(--space-5) + 6px);
}

.priority-panel::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-mid);
}

.important-dates-panel {
  display: grid;
  gap: var(--space-3);
  background: var(--slate-tint);
  border-color: rgba(201, 206, 199, 0.72);
  box-shadow: var(--shadow-breath);
  min-height: 104px;
}

.important-date-list {
  display: grid;
  gap: 0;
}

.important-date-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(221, 229, 227, 0.58);
}

.important-date-row:first-child {
  border-top: 0;
}

.important-date-row time {
  color: var(--slate);
  font-size: var(--text-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.important-date-row strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-small);
  line-height: 1.25;
}

.important-date-row.compact {
  padding: 8px 0;
}

.important-dates-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: var(--space-4);
  min-height: 460px;
  overflow: hidden;
}

.important-date-form {
  overflow: auto;
  padding-right: 4px;
}

.important-date-manager-row {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.important-date-manager-row > button {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.important-date-manager-row time {
  color: var(--accent-mid);
  font-size: var(--text-caption);
  font-weight: 800;
  text-transform: uppercase;
}

.important-date-manager-row strong,
.important-date-manager-row small {
  display: block;
}

.important-date-manager-row em {
  color: var(--soft);
  font-size: var(--text-caption);
  font-style: normal;
}

.important-date-inline-list {
  display: grid;
  gap: 0;
}

.priority-panel .section-kicker,
.activity-panel .section-kicker {
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.panel > .muted,
.important-date-list > .muted,
.timeline > .muted,
.task-list:empty::before,
.empty-hint {
  display: block;
  padding: 12px 0;
  color: var(--soft);
  font-size: var(--text-small);
  line-height: 1.55;
}

.task-list:empty::before {
  content: "Sem tarefas em foco para este dia.";
}

.entity-id {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.decision-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.decision-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 0;
}

.decision-list .compact-button {
  display: none;
}

.decision-list .compact-button:hover,
.decision-list .compact-button:focus-visible {
  display: none;
}

.decision-list-main {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.decision-list-main:hover strong,
.decision-list-main:focus-visible strong {
  color: var(--slate);
}

.decision-list-main:focus-visible {
  outline: none;
  box-shadow: inset 2px 0 0 var(--slate);
}

.decision-list-main strong {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.36;
}

.decision-list-main span {
  display: inline;
}

.decision-person {
  color: var(--slate);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.decision-separator {
  color: var(--soft);
  padding: 0 4px;
}

.decision-action {
  color: var(--ink);
  font-weight: 650;
}

.decision-list-main small {
  display: block;
  max-width: 52rem;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.5;
}

.decision-explain {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 0;
  cursor: pointer;
}

.decision-explain:hover,
.decision-explain:focus-visible,
.decision-explain[aria-expanded="true"] {
  color: var(--slate);
  outline: none;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.compact-button {
  padding: 0 12px;
}

.primary-button {
  background: var(--accent-soft-2);
  border-color: rgba(19, 174, 179, 0.45);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(19, 174, 179, 0.14);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(226, 229, 225, 0.9);
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(201, 206, 199, 0.95);
  background: #ffffff;
  color: var(--ink);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.password-field input {
  width: 100%;
}

.import-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.import-date-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.import-date-grid input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  color: var(--ink);
}

.import-date-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.ghost-button {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--muted);
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  background: var(--surface);
  border-color: var(--line);
}

.pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill.urgent {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
}

.metrics-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-breath);
  border-color: rgba(226, 229, 225, 0.82);
}

.metric {
  --metric-tint: var(--surface);
  --metric-line: rgba(226, 229, 225, 0.78);
  background: var(--metric-tint);
  border-right: 1px solid rgba(226, 229, 225, 0.74);
  border-radius: 0;
  padding: 20px var(--space-4);
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 126px;
  position: relative;
  overflow: hidden;
}

.metric-button {
  width: 100%;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.metric-button:hover,
.metric-button:focus-visible {
  background: rgba(235, 252, 252, 0.72);
  outline: none;
}

.metric-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  border-radius: 10px;
  background: var(--slate-tint);
  border: 1px solid var(--line);
}

.metric:nth-child(1) .metric-icon {
  color: var(--pop-hover);
  background: var(--pop-soft);
  border-color: var(--pop-soft-2);
}

.metric:nth-child(2) .metric-icon {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
}

.metric:nth-child(3) .metric-icon,
.metric:nth-child(4) .metric-icon {
  color: var(--slate);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--metric-line);
  pointer-events: none;
}

.metric > * {
  position: relative;
  z-index: 1;
}

.metric:nth-child(1) {
  --metric-tint: var(--slate-tint);
  --metric-line: rgba(19, 174, 179, 0.18);
}

.metric:nth-child(2) {
  --metric-tint: var(--solar-wash);
  --metric-line: rgba(63, 143, 218, 0.2);
}

.metric:nth-child(3) {
  --metric-tint: var(--slate-tint);
  --metric-line: rgba(19, 174, 179, 0.16);
}

.metric:nth-child(4) {
  --metric-tint: var(--surface-muted);
  --metric-line: rgba(8, 119, 127, 0.15);
}

.metric:last-child {
  border-right: 0;
}

.work-diary-panel {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  background: var(--surface);
  border-color: rgba(226, 229, 225, 0.82);
  box-shadow: var(--shadow-breath);
}

.work-diary-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.work-diary-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
}

.work-diary-quick textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.4;
  max-height: 120px;
  resize: vertical;
}

.work-diary-quick textarea:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(19, 174, 179, 0.12);
  outline: none;
}

.work-diary-compact div {
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 11px 14px;
  background: var(--surface-muted);
  border: 1px solid rgba(221, 229, 227, 0.62);
  border-radius: var(--radius-sm);
}

.work-diary-compact span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-diary-compact strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.work-diary-recent {
  display: grid;
  gap: 6px;
}

.work-diary-crossday {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(218, 143, 78, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 247, 239, 0.64);
  color: var(--muted);
  font-size: var(--text-small);
}

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

.work-diary-mini-row {
  display: grid;
  grid-template-columns: 48px 92px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(221, 229, 227, 0.58);
}

.work-diary-mini-row span,
.work-diary-mini-row small {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 700;
}

.work-diary-mini-row p {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objective-contact-suggestions {
  grid-column: 3 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.objective-contact-suggestions span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.objective-contact-suggestion {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
}

.objective-contact-suggestion > button:first-child {
  max-width: 170px;
  min-height: 26px;
  border: 1px solid rgba(116, 197, 199, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: 800;
  overflow: hidden;
  padding: 3px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objective-contact-icon {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(116, 197, 199, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 900;
}

.objective-contact-suggestion > button:first-child:hover,
.objective-contact-suggestion > button:first-child:focus-visible,
.objective-contact-icon:hover,
.objective-contact-icon:focus-visible {
  background: rgba(198, 246, 247, 0.72);
  border-color: rgba(31, 184, 190, 0.62);
  color: var(--ink);
}

.work-diary-mini-actions {
  display: flex;
  gap: 4px;
  justify-content: end;
}

.today-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}

.today-signal-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(221, 229, 227, 0.72);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.today-signal-card.is-warning {
  border-color: rgba(218, 143, 78, 0.34);
  background: rgba(255, 247, 239, 0.6);
}

.today-signal-card.is-good {
  border-color: rgba(22, 166, 118, 0.25);
  background: rgba(236, 253, 245, 0.52);
}

.today-signal-card span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-signal-card strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.today-signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-small);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: var(--ink);
  border-color: rgba(19, 174, 179, 0.38);
  background: rgba(164, 242, 244, 0.34);
}

.work-diary-modal {
  width: min(1180px, calc(100vw - 32px));
}

.work-diary-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: var(--space-5);
  min-height: 520px;
}

.work-diary-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.work-diary-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 6px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.work-diary-row:hover,
.work-diary-row:focus-visible,
.work-diary-row.active {
  border-color: #d6e1de;
  background: var(--slate-soft);
}

.work-diary-row span,
.work-diary-row small,
.work-diary-row em {
  color: var(--muted);
  font-size: var(--text-caption);
  font-style: normal;
}

.work-diary-row strong {
  color: var(--ink);
}

.work-diary-row em,
.work-diary-row p {
  grid-column: 2 / -1;
  margin: 0;
}

.work-diary-row p {
  color: var(--muted);
  font-size: var(--text-small);
}

.work-diary-row-actions {
  grid-column: 2 / -1;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.work-diary-form {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.metric span,
.metric small {
  color: var(--soft);
}

.metric span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-caption);
  font-weight: 800;
  color: var(--muted);
}

.metric small {
  display: block;
  min-height: 1.25em;
  font-size: var(--text-small);
  line-height: 1.25;
  color: var(--muted);
}

.metric strong,
.big-number {
  margin: var(--space-2) 0;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

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

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

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

.agenda-panel,
.tasks-panel,
.work-diary-panel,
.today-expenses-panel,
.today-objectives-panel,
.today-signals-panel,
.metrics-panel,
.activity-panel {
  grid-column: 1 / -1;
}

.activity-panel {
  background: var(--surface);
  border-color: rgba(221, 229, 227, 0.72);
  box-shadow: var(--shadow-breath);
}

.agenda-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.week-day {
  min-height: 66px;
  display: grid;
  place-items: center;
  gap: var(--space-1);
  background: var(--surface-muted);
  border: 0;
  color: var(--muted);
  text-align: center;
}

.week-day.active {
  background: #123f44;
  color: #ffffff;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.week-day.today:not(.active) {
  background: #ffffff;
  color: var(--accent-mid);
  box-shadow: inset 0 0 0 2px var(--accent-mid);
}

.week-day small {
  font-size: var(--text-caption);
  font-weight: 700;
}

.week-day strong {
  font-size: 1rem;
}

.week-day:not(.active):hover {
  background: var(--surface);
  color: var(--ink);
}

.agenda-editor {
  display: grid;
  grid-template-columns: minmax(160px, 0.58fr) 100px minmax(220px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  margin-top: var(--space-3);
  padding: 14px;
  border: 1px solid rgba(201, 206, 199, 0.8);
  border-radius: var(--radius);
  background: var(--slate-tint);
  box-shadow: var(--shadow-soft);
}

.agenda-editor-title {
  display: grid;
  gap: 4px;
  align-self: center;
}

.agenda-editor-title strong {
  color: var(--ink);
  font-size: var(--text-small);
  line-height: 1.28;
}

.agenda-editor-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.agenda-day-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(221, 229, 227, 0.72);
}

.agenda-day-heading strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  text-transform: capitalize;
}

.danger-button {
  color: var(--danger);
  border-color: #efc4c4;
  background: var(--danger-soft);
}

.timeline {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.time-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

button.time-row {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 10px 8px;
  text-align: left;
}

button.time-row:hover {
  background: rgba(244, 247, 242, 0.5);
}

.time-row span {
  color: var(--slate);
  font-size: var(--text-small);
  font-weight: 820;
}

.time-row div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.time-row div > strong {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 760;
}

.time-row div > small:not(.pill) {
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-board {
  display: grid;
  gap: 0;
  max-width: 980px;
  border-left: 1px solid rgba(203, 215, 212, 0.76);
  margin-left: 8px;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 20px 0;
  box-shadow: none;
}

.timeline-card[role="button"] {
  cursor: pointer;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--slate);
  margin-top: 4px;
  box-shadow: 0 0 0 5px rgba(75, 85, 99, 0.12);
  transform: translateX(-14px);
}

.timeline-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.timeline-card .section-kicker {
  margin-bottom: 4px;
  color: var(--soft);
  letter-spacing: 0.04em;
}

.timeline-card .muted {
  margin-top: 4px;
  font-size: var(--text-small);
}

.brain-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.commercial-flow-panel {
  margin-bottom: 16px;
  padding: var(--space-5);
  border: 1px solid rgba(226, 229, 225, 0.86);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-breath);
}

.commercial-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.commercial-flow-header h3 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.commercial-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.commercial-flow-step {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(226, 229, 225, 0.7);
}

.commercial-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -8px;
  width: 8px;
  height: 1px;
  background: rgba(130, 145, 171, 0.35);
}

.commercial-flow-bar {
  display: flex;
  align-items: end;
  height: 44px;
}

.commercial-flow-bar span {
  width: 100%;
  border-radius: 999px 999px 4px 4px;
  background: var(--slate);
  opacity: 0.82;
}

.commercial-flow-step strong {
  color: var(--ink);
  font-size: var(--text-small);
  line-height: 1.2;
}

.commercial-flow-step small {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 700;
}

.commercial-doc-panel {
  grid-column: 1 / -1;
}

#communication-output {
  min-height: 220px;
  font-family: inherit;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.86);
}

.assistant-prompt {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
}

.commercial-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.document-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.commercial-summary .metric,
.document-summary .metric {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.document-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 280px));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.document-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 13px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.document-row.active {
  border-color: #d6e1de;
  background: var(--slate-soft);
}

.document-row:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.document-preview textarea,
#document-preview-body {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}

.decision-stack {
  display: grid;
  gap: 8px;
}

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

.attention-item {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.attention-item:first-child {
  border-top: 0;
}

.attention-item strong {
  color: var(--ink);
}

.attention-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.brain-form {
  display: grid;
  gap: 14px;
}

.brain-item.processed {
  opacity: 0.7;
}

.time-row div,
.task-list li,
.activity-item,
.kanban-card {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.kanban-card {
  display: grid;
  gap: 6px;
}

.kanban-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  transition: background 140ms ease, border-color 140ms ease;
}

.task-list li:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.task-check {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.task-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
  flex: 0 0 auto;
}

.task-check span {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.task-list li.is-done {
  opacity: 0.58;
}

.task-list li.is-done .task-check span {
  text-decoration: line-through;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item strong {
  display: block;
  margin-bottom: 4px;
}

.clickable-row strong,
.property-body > strong,
.process-card strong,
.document-row strong,
.brain-item strong {
  color: var(--ink);
  line-height: 1.25;
}

.clickable-row td:first-child {
  min-width: 260px;
}

.contact-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-3);
}

.contact-search {
  flex: 1 1 320px;
}

.contact-search input {
  min-height: 38px;
  border-color: rgba(221, 229, 227, 0.78);
  background: rgba(255, 255, 255, 0.86);
}

.contact-sort {
  width: min(220px, 34vw);
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: var(--space-2);
  color: var(--soft);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-sort select {
  min-height: 38px;
  font-size: var(--text-small);
  letter-spacing: 0;
  text-transform: none;
}

.contacts-radar {
  display: grid;
  gap: 4px;
}

.contact-list-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--text-small);
}

.contact-radar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(110px, 0.58fr) minmax(92px, 0.42fr) minmax(180px, 0.92fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 54px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(221, 229, 227, 0.62);
  color: inherit;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.contact-radar-row:hover,
.contact-radar-row:focus-visible,
.contact-radar-row:focus-within {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(203, 215, 212, 0.92);
  outline: none;
}

.contact-radar-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-radar-identity > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-radar-row mark {
  border-radius: 3px;
  background: var(--warning-soft);
  color: inherit;
  padding: 0 2px;
}

.contact-type-badge,
.contact-status-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.contact-type-badge {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.contact-type-badge::before,
.contact-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--soft);
}

.contact-type-badge.buyer::before,
.contact-status-badge.active::before {
  background: var(--success);
}

.contact-type-badge.owner::before,
.contact-status-badge.attention::before,
.contact-status-badge.negotiation::before {
  background: var(--accent);
}

.contact-type-badge.partner::before {
  background: var(--slate);
}

.contact-type-badge.service::before {
  background: var(--slate);
}

.contact-type-badge.personal::before,
.contact-status-badge.neutral::before,
.contact-status-badge.archived::before {
  background: var(--soft);
}

.contact-status-badge.blocked::before {
  background: var(--danger);
}

.contact-status-badge {
  min-width: 0;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(250, 249, 245, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-last {
  display: grid;
  gap: 2px;
  color: var(--soft);
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
}

.contact-last small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-next {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 760;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.contact-next.is-empty {
  color: var(--soft);
  font-weight: 600;
}

.contact-next.is-soft {
  color: var(--muted);
  font-weight: 650;
}

.contact-quick-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.contact-radar-row:hover .contact-quick-actions,
.contact-radar-row:focus-within .contact-quick-actions {
  opacity: 1;
  pointer-events: auto;
}

.contact-quick-actions button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.contact-quick-actions button:hover,
.contact-quick-actions button:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--slate);
  outline: none;
}

.subtle {
  display: block;
  color: var(--muted);
  font-size: var(--text-small);
  margin-top: 3px;
  line-height: 1.35;
}

.module-header {
  position: relative;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}

.module-header h2 {
  margin-top: 4px;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.module-header .primary-button,
.module-header .secondary-button {
  min-height: 38px;
}

.table-card {
  overflow: auto;
  border-color: #d8e3e0;
  -webkit-overflow-scrolling: touch;
}

.view-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 var(--space-4);
  overflow-x: auto;
  padding-bottom: 2px;
}

.view-tabs button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(226, 229, 225, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 700;
  font-size: var(--text-small);
}

.view-tabs button.active {
  border-color: rgba(75, 85, 99, 0.22);
  background: var(--slate-soft);
  color: var(--slate);
}

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

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(226, 229, 225, 0.74);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(247, 248, 246, 0.72);
  font-weight: 800;
}

tbody tr:hover {
  background: rgba(247, 248, 246, 0.7);
}

.property-grid,
.process-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.report-grid .panel {
  display: grid;
  gap: 6px;
  min-height: 128px;
  align-content: center;
}

.objectives-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--space-4);
}

.objectives-form {
  margin-bottom: var(--space-4);
}

.objectives-year-panel {
  margin-bottom: var(--space-4);
}

[data-objectives-collapse-id] > .panel-header {
  cursor: pointer;
  user-select: none;
}

[data-objectives-collapse-id] > .panel-header::after {
  content: "−";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

[data-objectives-collapse-id].is-collapsed > .panel-header::after {
  content: "+";
}

[data-objectives-collapse-id].is-collapsed > :not(.panel-header) {
  display: none;
}

.objectives-year-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
}

.objectives-year-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
}

.objectives-year-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.objectives-form .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.objectives-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
}

.objectives-form input,
.objectives-form select,
.objectives-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.objectives-form input,
.objectives-form select {
  min-height: 42px;
  padding: 0 12px;
}

.unit-input {
  position: relative;
  display: block;
}

.unit-input input {
  padding-right: 42px;
}

.unit-input.has-prefix input {
  padding-left: 42px;
  padding-right: 12px;
}

.unit-input-mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 900;
  pointer-events: none;
}

.unit-input.has-prefix .unit-input-mark {
  left: 14px;
}

.unit-input.has-suffix .unit-input-mark {
  right: 14px;
}

.objectives-form textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.vehicle-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.choice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 12px;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  color: var(--text);
  font-weight: 900;
}

.choice-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.choice-card.active {
  border-color: rgba(24, 188, 192, 0.58);
  background: rgba(209, 249, 249, 0.72);
  box-shadow: 0 0 0 3px rgba(24, 188, 192, 0.1);
}

.choice-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.62;
}

.vehicle-custom-cost {
  margin-top: 12px;
}

.objectives-wide-label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkbox-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 800;
  padding: 4px 10px;
}

.checkbox-pill input {
  width: auto;
  min-height: 0;
}

.objectives-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.objectives-field-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: var(--text-small);
  font-weight: 750;
}

.objectives-field-grid label.is-sensitive-field {
  background: rgba(255, 247, 237, 0.8);
}

.report-controls-grid {
  grid-template-columns: minmax(220px, 320px) minmax(160px, 220px) minmax(160px, 220px);
  align-items: end;
}

.report-controls-grid input,
.report-controls-grid select {
  min-height: 38px;
  font-size: var(--text-small);
}

.report-period-tabs {
  gap: 6px;
  margin-top: 10px;
}

.report-period-tabs button {
  min-height: 34px;
  border-radius: 8px;
  font-size: var(--text-small);
  padding: 6px 11px;
}

.report-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 7px;
  max-width: 980px;
}

.objectives-field-grid .report-field-option {
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 9px;
  font-size: var(--text-small);
  line-height: 1.2;
}

.objectives-field-grid .report-field-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.objectives-field-grid .report-field-option span {
  min-width: 0;
}

.report-preview-label textarea {
  min-height: 220px;
  font-size: var(--text-small);
  line-height: 1.45;
}

.objectives-table-card {
  background: rgba(255, 255, 255, 0.78);
}

.objectives-table-card th {
  width: 230px;
  color: var(--slate);
  background: rgba(241, 250, 250, 0.72);
}

.objectives-table-card td:nth-child(2) {
  width: 230px;
  color: var(--text);
  font-weight: 800;
}

.objectives-table-card tr.is-sensitive-row td {
  background: rgba(241, 250, 250, 0.5);
}

.objectives-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.property-card,
.process-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 229, 225, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-breath);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.property-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
}

.process-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.readiness-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--slate);
}

.check-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  text-align: left;
}

.check-row span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 900;
}

.check-row.done {
  background: var(--success-soft);
  border-color: #cfe6da;
}

.check-row.done span {
  border-color: #cfe6da;
  background: var(--success);
  color: var(--surface);
}

.check-row.done strong {
  text-decoration: line-through;
  color: var(--muted);
}

.dependency-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  text-align: left;
}

.property-opportunity-panel {
  display: grid;
  gap: 0;
  align-content: start;
}

.property-opportunity-block {
  align-self: start;
}

.property-opportunity-block .detail-block-heading {
  margin-bottom: 4px;
}

.property-opportunity-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.property-opportunity-tabs button {
  width: auto;
  min-width: 0;
  min-height: 28px;
  max-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
}

.property-opportunity-tabs button.active {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  border-bottom-color: var(--surface);
  color: var(--ink);
  transform: translateY(1px);
}

.property-opportunity-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-top-left-radius: 0;
  overflow: hidden;
  background: var(--surface);
}

.property-opportunity-head,
.property-opportunity-row {
  display: grid;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.property-opportunity-table-leads .property-opportunity-head,
.property-opportunity-table-leads .property-opportunity-row {
  grid-template-columns: minmax(120px, 1.25fr) minmax(60px, 0.52fr) minmax(92px, 0.85fr) 64px auto;
}

.property-opportunity-table-matches .property-opportunity-head,
.property-opportunity-table-matches .property-opportunity-row {
  grid-template-columns: minmax(120px, 1.2fr) 58px minmax(116px, 0.95fr) minmax(116px, 0.95fr) auto;
}

.property-opportunity-table-proposals .property-opportunity-head,
.property-opportunity-table-proposals .property-opportunity-row {
  grid-template-columns: minmax(120px, 1.1fr) minmax(84px, 0.7fr) minmax(110px, 0.9fr) minmax(60px, 0.5fr) auto;
}

.property-opportunity-head {
  min-height: 24px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: var(--text-caption);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-opportunity-row {
  min-height: 30px;
  padding: 3px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 720;
}

.property-opportunity-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-opportunity-name {
  color: var(--ink);
  font-weight: 850;
}

.property-opportunity-row .compact-button {
  min-height: 24px;
  padding: 0 8px;
  font-size: var(--text-caption);
}

.property-opportunity-scroll {
  height: 116px;
  overflow: auto;
  scrollbar-width: thin;
}

.property-opportunity-empty {
  display: grid;
  align-items: center;
  height: 116px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-top-left-radius: 0;
  color: var(--muted);
  background: var(--surface);
  font-size: var(--text-small);
  font-weight: 720;
}

.property-origin-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.property-origin-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(24px, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 34px;
  padding: 5px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 760;
}

.property-origin-row:first-child {
  border-top: 0;
}

.property-origin-row i {
  border-bottom: 1px dotted color-mix(in srgb, var(--muted) 42%, transparent);
}

.property-origin-row strong {
  color: var(--ink);
}

.property-origin-total {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
}

.compact-empty {
  margin: 0;
  padding: 8px 0;
}

.signal-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 12px;
}

.ghost-link {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.property-image {
  aspect-ratio: 16 / 9;
  background: #f4f1ea;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
  position: relative;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.property-placeholder span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(19, 174, 179, 0.08);
  color: var(--accent);
  font-size: 1.35rem;
}

.property-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.property-body > strong {
  font-size: 1.02rem;
  line-height: 1.24;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.property-price {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.property-price-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 9px 13px;
  background: var(--accent);
  color: white;
  font-weight: 850;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 -10px 30px rgba(20, 24, 38, 0.08);
}

.property-location {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.35;
}

.property-specs,
.property-description {
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.35;
}

.property-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.property-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.property-card-footer .muted {
  margin: 0;
  font-size: var(--text-small);
}

.property-detail-media {
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) minmax(320px, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.property-detail-media img,
.property-detail-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f4f1ea;
  object-fit: cover;
}

.property-detail-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.property-detail-media p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.property-detail-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.property-360-header {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(180px, 0.34fr);
  gap: 16px;
  align-items: stretch;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.property-360-media img,
.property-360-media .property-detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 190px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
}

.property-360-main {
  min-width: 0;
}

.property-360-main h3 {
  margin-top: 5px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.property-360-address,
.property-360-description {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.property-360-address {
  color: var(--ink);
  font-weight: 780;
}

.property-360-full-description {
  margin-top: 8px;
}

.property-360-full-description summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: var(--text-small);
  font-weight: 820;
}

.property-360-full-description p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.property-360-action {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.property-360-action span,
.property-360-strip span,
.property-compact-head {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-360-action strong {
  color: var(--ink);
  line-height: 1.3;
}

.property-action-link {
  appearance: none;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}

.property-action-link:hover,
.property-action-link:focus-visible {
  color: var(--accent-strong);
}

.property-360-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.property-360-strip div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
}

.property-360-strip div:last-child {
  border-right: 0;
}

.property-360-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.25;
}

.property-compact-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.property-compact-head,
.property-compact-row {
  display: grid;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.property-participants-table .property-compact-head,
.property-participants-table .property-compact-row {
  grid-template-columns: minmax(130px, 1.1fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(150px, 1fr) auto;
}

.property-references-table .property-compact-head,
.property-references-table .property-compact-row {
  grid-template-columns: minmax(110px, 0.8fr) minmax(130px, 1fr) minmax(130px, 1fr) 70px;
}

.property-compact-head {
  padding: 6px 8px;
  background: var(--surface-muted);
}

.property-compact-row {
  min-height: 36px;
  padding: 5px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 720;
}

.property-compact-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-sequence-block {
  gap: 8px;
}

.property-sequence-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 196px;
  overflow-y: auto;
  background: var(--surface);
  scrollbar-width: thin;
}

.property-sequence-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
  min-height: 31px;
  padding: 4px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
}

.property-sequence-row:first-child {
  border-top: 0;
}

.property-sequence-row span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 900;
}

.property-sequence-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.property-sequence-row em {
  justify-self: end;
  color: var(--muted);
  font-size: var(--text-caption);
  font-style: normal;
  font-weight: 850;
}

.property-sequence-row.done span {
  background: var(--success-soft);
  color: var(--success);
}

.property-sequence-row.current {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.property-sequence-row.current span {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.document-readiness-block {
  gap: 8px;
}

.document-readiness-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.document-readiness-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 5px 9px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
}

.document-readiness-summary div:last-child {
  border-right: 0;
}

.document-readiness-summary strong {
  color: var(--ink);
  font-size: var(--text-small);
}

.document-readiness-summary .has-blockers {
  background: var(--danger-soft);
  color: #8c2525;
}

.document-readiness-summary .has-blockers strong {
  color: #8c2525;
}

.document-readiness-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.document-readiness-index button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 820;
  cursor: pointer;
}

.document-readiness-index button:last-child {
  border-right: 0;
}

.document-readiness-index button.active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
}

.document-readiness-index strong {
  color: var(--accent-strong);
  font-size: var(--text-caption);
}

.document-readiness-scroll,
.document-readiness-empty {
  height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.document-readiness-scroll {
  overflow: auto;
  scrollbar-width: thin;
}

.document-readiness-empty {
  display: grid;
  align-items: center;
  padding: 10px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 720;
}

.document-readiness-group h4 {
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: var(--text-small);
}

.document-readiness-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 112px 142px 72px minmax(120px, 0.9fr);
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 720;
}

.document-readiness-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.document-readiness-row select,
.document-readiness-row input {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: var(--text-caption);
}

.document-readiness-blocking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
}

.document-readiness-blocking input {
  min-height: auto;
  padding: 0;
}

.detail-anchor-highlight {
  animation: detail-anchor-pulse 1400ms ease;
}

@keyframes detail-anchor-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  24% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

.property-image-controls {
  display: grid;
  gap: 10px;
  max-width: min(100%, 760px);
}

.property-main-image-upload {
  width: min(100%, 420px);
}

.property-image-save-button {
  width: fit-content;
}

.property-image-save-button.is-ready {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.kanban-column {
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.kanban-column h3 {
  margin-bottom: 14px;
  color: var(--slate);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kanban-column > div {
  display: grid;
  gap: 10px;
}

.large-calendar {
  padding: 18px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.calendar-hour {
  color: var(--muted);
}

.calendar-event {
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--slate-soft);
  border: 1px solid #d6e1de;
  padding: 14px;
}

.muted-event {
  background: var(--surface-2);
  border-color: var(--line);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(17, 26, 61, 0.34);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  background: var(--surface);
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 229, 225, 0.92);
}

.detail-modal {
  width: min(1040px, 100%);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 18px 22px 15px;
  border-bottom: 1px solid rgba(226, 229, 225, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  flex: 0 0 auto;
}

.modal-header h2 {
  margin-top: 4px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

form {
  display: grid;
  gap: 12px;
}

.modal > form,
.modal > .detail-list,
.modal > #detail-body,
.modal > #archive-body,
.modal > #integrity-body,
.modal > #health-body,
.modal > #integrations-body,
.modal > #audit-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal > form {
  flex: 1 1 auto;
  align-content: start;
}

.modal > #detail-body {
  flex: 1 1 auto;
  background: var(--surface);
}

.dynamic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.inline-check {
  margin-right: auto;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
}

.inline-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--success);
}

input,
select,
textarea {
  border: 1px solid rgba(226, 229, 225, 0.95);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  min-height: 36px;
  width: 100%;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  background: var(--surface);
  border-color: rgba(75, 85, 99, 0.44);
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.field-wide {
  grid-column: 1 / -1;
}

.clickable-row,
.property-card,
.process-card,
.kanban-card,
.task-list li {
  cursor: default;
}

.clickable-row:hover,
.property-card:hover,
.process-card:hover,
.kanban-card:hover,
.task-list li:hover {
  outline: 2px solid rgba(23, 79, 85, 0.08);
  outline-offset: -2px;
}

.property-card:hover,
.process-card:hover,
.kanban-card:hover,
.document-row:hover {
  transform: translateY(-1px);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
}

.detail-flow {
  display: grid;
  gap: 20px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h3 {
  margin-top: 5px;
  font-size: 1.58rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.detail-hero p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.detail-state-chip {
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-small);
}

.detail-state-chip span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-weight: 900;
}

.detail-state-chip.blocked {
  color: #8c2525;
  background: var(--danger-soft);
  border-color: #efc4c4;
}

.detail-state-chip.attention {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #ead59a;
}

.detail-state-chip.ready {
  color: var(--success);
  background: var(--success-soft);
  border-color: #cfe6da;
}

.detail-summary-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(260px, 1.35fr) minmax(130px, 0.6fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-summary-strip div {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.detail-summary-strip div:last-child {
  border-right: 0;
}

.detail-summary-strip span,
.detail-facts span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-summary-strip strong,
.detail-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.25;
}

.detail-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-block {
  display: grid;
  gap: 12px;
  padding: 2px 0 0;
}

.detail-block.is-muted {
  opacity: 0.96;
}

.detail-block-heading {
  display: grid;
  gap: 5px;
}

.detail-block-heading h3 {
  font-size: 1.02rem;
  line-height: 1.18;
}

.detail-block-body {
  display: grid;
  gap: 10px;
}

.detail-collapsible {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-collapsible > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 2px 0 6px;
}

.detail-collapsible > summary::-webkit-details-marker {
  display: none;
}

.detail-collapsible > summary span:first-child {
  display: grid;
  gap: 5px;
}

.detail-collapsible > summary strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.18;
}

.detail-collapsible-indicator::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.detail-collapsible[open] .detail-collapsible-indicator::before {
  content: "-";
}

.detail-block-body > .detail-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.detail-decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: start;
  border: 1px solid rgba(201, 206, 199, 0.82);
  border-radius: 18px;
  background: var(--slate-tint);
  padding: 18px;
  box-shadow: var(--shadow-breath);
}

.detail-decision-panel h3 {
  margin-top: 6px;
  font-size: 1.24rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.detail-decision-panel p:not(.section-kicker) {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-facts div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(226, 229, 225, 0.88);
  border-radius: var(--radius-sm);
  background: rgba(247, 248, 246, 0.78);
}

.detail-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

.detail-card {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  display: grid;
  gap: 7px;
}

.ficha360-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 16px;
  align-items: stretch;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.ficha360-media img,
.ficha360-placeholder {
  width: 100%;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  object-fit: cover;
}

.ficha360-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ficha360-title {
  min-width: 0;
  align-self: center;
}

.ficha360-title h3 {
  margin-top: 5px;
  font-size: 1.45rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ficha360-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.ficha360-tags span {
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(221, 229, 227, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.ficha360-header-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ficha360-header-meta div,
.ficha360-card {
  border: 1px solid rgba(221, 229, 227, 0.86);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.ficha360-header-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
}

.ficha360-header-meta span,
.ficha360-facts span,
.ficha360-readiness-row > span,
.ficha360-documents-compact span,
.ficha360-notes-compact span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ficha360-header-meta strong,
.ficha360-facts strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ficha360-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.92fr) minmax(280px, 0.83fr);
  gap: 14px;
  align-items: start;
}

.ficha360-memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.ficha360-memory-grid .detail-block {
  height: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(221, 229, 227, 0.86);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
}

.ficha360-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.ficha360-card-heading {
  display: grid;
  gap: 4px;
}

.ficha360-card-heading h3 {
  font-size: 1.02rem;
  line-height: 1.18;
}

.ficha360-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ficha360-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

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

.ficha360-readiness-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.76fr) minmax(110px, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.ficha360-readiness-row strong {
  color: var(--ink);
  font-size: var(--text-small);
  text-align: right;
}

.ficha360-readiness-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-muted));
}

.ficha360-readiness-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ficha360-insights-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.ficha360-insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ficha360-insight-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 760;
}

.ficha360-insight-chips .warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.ficha360-participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.ficha360-participant-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ficha360-participant-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-strong);
  font-weight: 900;
}

.ficha360-participant-card div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ficha360-participant-card strong,
.ficha360-participant-card span,
.ficha360-participant-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ficha360-participant-card span,
.ficha360-participant-card small {
  color: var(--muted);
  font-size: var(--text-small);
}

.ficha360-timeline-list {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow: auto;
}

.ficha360-timeline-list article,
.ficha360-notes-compact,
.ficha360-documents-compact {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.ficha360-documents-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
}

.live-detail-form {
  display: grid;
  gap: 20px;
}

.contact-360-form {
  gap: 18px;
}

.contact-360-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 2px 0 2px;
}

.contact-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.contact-context-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(221, 229, 227, 0.82);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: var(--text-small);
  font-weight: 720;
}

.contact-360-id {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 7px;
}

.contact-360-id span {
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-360-id strong {
  color: var(--soft);
  font-size: var(--text-small);
}

.contact-decision-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(218, 143, 78, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 247, 239, 0.74);
}

.contact-decision-band span,
.contact-360-card-title span,
.contact-fact-list dt {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-decision-band strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.22;
}

.contact-decision-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.contact-360-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.08fr) minmax(260px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.contact-360-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.contact-360-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(221, 229, 227, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(26, 36, 55, 0.04);
}

.contact-360-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-360-card-title.has-action {
  align-items: center;
}

.contact-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.contact-fact-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.46fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.contact-fact-list dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-action-lines {
  display: grid;
  gap: 10px;
}

.contact-action-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(221, 229, 227, 0.74);
  border-radius: var(--radius-sm);
  background: rgba(247, 248, 246, 0.62);
}

.contact-action-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.contact-action-line button {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.contact-action-icon {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.contact-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: var(--text-small);
}

.contact-social-row span {
  padding: 4px 8px;
  border: 1px solid rgba(221, 229, 227, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

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

.contact-moment-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid rgba(221, 229, 227, 0.7);
}

.contact-moment-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-moment-row time {
  color: var(--accent-strong);
  font-weight: 850;
  font-size: var(--text-small);
}

.contact-moment-row strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.contact-moment-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.3;
}

.contact-related-list,
.contact-interaction-list {
  display: grid;
  gap: 6px;
}

.contact-related-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(221, 229, 227, 0.7);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-related-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-related-row strong,
.contact-interaction-row strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-related-row small,
.contact-interaction-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.3;
}

.contact-related-row em {
  color: var(--soft);
  font-size: var(--text-caption);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-related-row:hover strong {
  color: var(--accent-strong);
}

.contact-interaction-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid rgba(221, 229, 227, 0.7);
}

.contact-interaction-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-interaction-row > span {
  color: var(--soft);
  font-size: var(--text-caption);
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.live-field.field-wide {
  grid-column: 1 / -1;
}

.live-field span {
  color: var(--muted);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.live-channel-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.live-channel-group + .live-channel-group {
  margin-top: 2px;
}

.live-channel-group h4,
.classification-grid h4,
.relationship-graph h4 {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.2;
}

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

.live-channel-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.phone-input-pair {
  display: grid;
  grid-template-columns: minmax(72px, 92px) minmax(160px, 1fr);
  gap: 8px;
}

.phone-country-code {
  max-width: 92px;
}

.contact-note-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-notes-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.contact-notes-history > summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.contact-notes-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contact-note-card {
  display: grid;
  gap: 4px;
}

.contact-note-card time {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 750;
}

.contact-note-card p {
  overflow-wrap: anywhere;
}

.import-link-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-primary {
  white-space: nowrap;
}

.property-participants,
.property-references {
  display: grid;
  gap: 10px;
}

.property-participant-row,
.property-reference-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.property-participant-row .subtle,
.property-reference-row .subtle {
  align-self: center;
  margin: 0;
}

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

.classification-grid section,
.relationship-graph section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 229, 225, 0.88);
  border-radius: var(--radius);
  background: rgba(247, 248, 246, 0.72);
}

.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-picker .inline-check {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 140ms ease, background 140ms ease;
}

.role-picker .inline-check:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.relationship-graph {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.live-timeline-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

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

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

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.health-grid strong {
  font-size: 28px;
}

.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.health-pill {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.health-pill.ok {
  background: var(--success-soft);
  color: var(--success);
}

.health-pill.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.health-pill.error {
  background: color-mix(in srgb, var(--danger) 12%, white);
  color: var(--danger);
}

.health-pill.neutral {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.integrations-grid {
  display: grid;
  gap: 12px;
}

.integrations-form {
  display: grid;
  gap: 24px;
}

.integration-onboarding {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.integration-onboarding > div strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.integration-onboarding ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integration-onboarding li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.integration-onboarding li span,
.integration-step-guide li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 900;
}

.integration-onboarding li strong {
  color: var(--ink);
  font-size: var(--text-small);
}

.integration-onboarding li small {
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.35;
}

.integration-group {
  display: grid;
  gap: 12px;
}

.integration-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 18px 18px 14px 24px;
  border: 1px solid rgba(221, 229, 227, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.integration-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.integration-card.is-configurable {
  display: grid;
}

.integration-accent-blue::before {
  background: #3f8fda;
}

.integration-accent-green::before {
  background: #19b36b;
}

.integration-accent-turquoise::before {
  background: var(--accent);
}

.integration-accent-dark::before {
  background: var(--ink);
}

.integration-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.integration-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 1.15rem;
  font-weight: 900;
}

.integration-accent-blue .integration-icon {
  background: #ecf6ff;
  color: #276fb9;
}

.integration-accent-green .integration-icon {
  background: #eafaf1;
  color: #149458;
}

.integration-accent-dark .integration-icon {
  background: var(--surface-2);
  color: var(--ink);
}

.integration-card strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--ink);
  font-size: 1.02rem;
}

.integration-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 56px;
}

.integration-capabilities span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 750;
}

.integration-divider {
  height: 1px;
  background: var(--line);
}

.integration-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--text-small);
}

.integration-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.integration-scopes {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.integration-scopes span,
.integration-meta-table span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.integration-scopes p {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}

.integration-meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.integration-meta-table div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.integration-meta-table div:nth-child(2n) {
  border-right: 0;
}

.integration-meta-table div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.integration-meta-table strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}

.integration-diagnostics {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.integration-diagnostics summary {
  cursor: pointer;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 850;
}

.integration-diagnostic-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.integration-diagnostic-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.integration-diagnostic-row strong,
.integration-diagnostic-row small {
  display: block;
}

.integration-diagnostic-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-caption);
  overflow-wrap: anywhere;
}

.integration-config {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.integration-step-guide {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.integration-step-guide ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integration-step-guide li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.integration-step-guide p {
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.35;
}

.integration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 800;
}

.integration-fields input,
.integration-fields select,
.integration-fields textarea {
  width: 100%;
}

.integration-notes {
  grid-column: 1 / -1;
}

.integration-secret-field small {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}

.integration-meta {
  color: var(--soft);
  font-size: var(--text-caption);
}

.integration-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface) 32%);
}

.integration-actions strong {
  color: var(--ink);
}

.attachment-row,
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attachment-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.attachment-upload {
  border: 1px dashed #d6e1de;
  border-radius: var(--radius);
  padding: 12px;
  background: var(--slate-soft);
}

.attachment-upload input {
  width: 100%;
  background: transparent;
}

.key-value {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.key-value span:first-child {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.modal > form > .modal-actions {
  position: sticky;
  bottom: -18px;
  margin: 10px -22px -18px;
  z-index: 1;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .workspace {
    grid-column: 1;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    width: auto;
    min-height: 0;
    padding: 8px;
    display: block;
    overflow: visible;
  }

  .sidebar:hover,
  body.sidebar-pinned .sidebar {
    width: auto;
    padding: 8px;
    box-shadow: none;
  }

  .brand,
  .sidebar-footer,
  .sidebar-pin {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 92px);
    grid-template-columns: none;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 10px 6px;
    font-size: 0.82rem;
    text-indent: 0;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    background: transparent;
  }

  .nav-icon svg {
    width: 17px;
    height: 17px;
  }

  .nav-label {
    opacity: 1;
    transform: none;
  }

  .content {
    padding-bottom: 96px;
  }

  .dashboard-grid,
  .kanban,
  .property-grid,
  .process-grid,
  .report-grid,
  .commercial-summary,
  .commercial-grid,
  .document-summary,
  .document-filters,
  .document-layout,
  .brain-layout {
    grid-template-columns: 1fr;
  }

  .today-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-360-main-grid,
  .contact-360-secondary-grid,
  .contact-decision-band,
  .property-detail-media {
    grid-template-columns: 1fr;
  }

  .commercial-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-flow-step::after {
    display: none;
  }

  .metrics-panel {
    grid-template-columns: 1fr;
  }

  .contact-radar-row {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(92px, 0.45fr);
  }

  .integration-fields {
    grid-template-columns: 1fr;
  }

  .integration-card-grid {
    grid-template-columns: 1fr;
  }

  .integration-onboarding ol {
    grid-template-columns: 1fr;
  }

  .integration-actions,
  .integration-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-card-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integration-card-heading .health-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .integration-capabilities {
    padding-left: 0;
  }

  .contact-next {
    grid-column: 1 / -1;
  }

  .contact-quick-actions {
    opacity: 1;
    pointer-events: auto;
  }

  .agenda-editor {
    grid-template-columns: 1fr;
  }

  .agenda-editor-title {
    padding-bottom: 4px;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    padding: 18px;
    gap: 12px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .topbar-actions .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cockpit-brief {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .contact-list-toolbar {
    display: grid;
  }

  .contact-sort {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .objectives-summary,
  .objectives-form .form-grid,
  .report-controls-grid,
  .objectives-year-controls,
  .objectives-field-grid,
  .vehicle-method-grid,
  .objectives-two-columns,
  .today-signal-grid {
    grid-template-columns: 1fr;
  }

  .contact-radar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
  }

  .contact-status-badge,
  .contact-last {
    grid-column: 1;
  }

  .contact-next {
    grid-column: 1 / -1;
  }

  .contact-quick-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .global-search-results {
    top: 142px;
    right: 18px;
    width: calc(100vw - 36px);
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal,
  .detail-modal,
  .work-diary-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions > button {
    flex: 1 1 140px;
  }

  .dynamic-fields {
    grid-template-columns: 1fr;
  }

  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .important-dates-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .detail-hero,
  .detail-decision-panel,
  .detail-split {
    grid-template-columns: 1fr;
  }

  .contact-360-header {
    display: grid;
  }

  .contact-360-id {
    justify-items: start;
    white-space: normal;
  }

  .contact-fact-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-action-line {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .contact-action-line button {
    grid-column: 2;
    justify-self: start;
  }

  .contact-interaction-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-hero {
    display: grid;
  }

  .detail-summary-strip {
    grid-template-columns: 1fr;
  }

  .detail-summary-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-summary-strip div:last-child {
    border-bottom: 0;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .live-field-grid,
  .classification-grid,
  .relationship-graph,
  .live-timeline-tools {
    grid-template-columns: 1fr;
  }

  .live-channel-row {
    grid-template-columns: 1fr;
  }

  .phone-input-pair,
  .property-participant-row,
  .property-reference-row,
  .work-diary-layout {
    grid-template-columns: 1fr;
  }

  .work-diary-quick,
  .work-diary-mini-row {
    grid-template-columns: 1fr;
  }

  .objective-contact-suggestions {
    grid-column: 1;
  }

  .work-diary-mini-actions {
    justify-content: start;
  }

  .work-diary-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .content {
    padding: 18px 18px 92px;
  }

  .week-grid {
    grid-template-columns: repeat(7, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .side-nav {
    overflow-x: auto;
  }

  .nav-item {
    min-width: 86px;
  }
}

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

/* Visual language refinement v1 */
:root {
  --shadow: 0 18px 44px rgba(24, 50, 53, 0.08);
  --shadow-soft: 0 5px 18px rgba(24, 50, 53, 0.045);
  --shadow-breath: 0 8px 22px rgba(24, 50, 53, 0.045);
}

body {
  background: var(--bg);
}

.app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

body.sidebar-pinned .app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  width: 72px;
  padding: 18px 10px;
  gap: 18px;
  background: #123f44;
  color: rgba(255, 255, 255, 0.82);
  border-right: 0;
  box-shadow: none;
}

.sidebar:hover,
body.sidebar-pinned .sidebar {
  width: 224px;
  padding: 18px 14px;
  box-shadow: 18px 0 40px rgba(18, 63, 68, 0.16);
}

.brand {
  min-width: 196px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(72, 219, 219, 0.34);
  background: rgba(72, 219, 219, 0.14);
  color: var(--accent);
}

.auth-brand,
.sidebar .brand strong {
  color: #ffffff;
}

.sidebar .brand span,
.sidebar-footer {
  color: rgba(255, 255, 255, 0.56);
}

.sidebar-pin {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-pin[aria-pressed="true"] {
  border-color: rgba(72, 219, 219, 0.42);
  background: rgba(72, 219, 219, 0.13);
  color: var(--accent);
}

.side-nav {
  gap: 4px;
}

.nav-item {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 650;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
  background: transparent;
  color: #ffffff;
}

.nav-item.active::after {
  inset: 9px auto 9px 0;
  width: 3px;
  background: var(--accent);
}

.nav-item.active .nav-icon {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.topbar {
  min-height: 66px;
  align-items: center;
  padding: 12px 28px;
  background: rgba(248, 249, 250, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: none;
}

.topbar-actions {
  gap: 8px;
}

.quiet-clock {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 2px;
}

.search-box {
  height: 40px;
  width: min(480px, 40vw);
  border-color: rgba(229, 231, 235, 0.92);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
}

.search-box:focus-within {
  border-color: rgba(19, 174, 179, 0.42);
  box-shadow: var(--focus-ring);
}

.content {
  padding: 28px 34px 44px;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
}

.cockpit-brief {
  margin-bottom: 18px;
}

.cockpit-brief h2 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  letter-spacing: -0.03em;
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 750;
}

.dashboard-grid {
  gap: 16px;
}

.panel,
.table-card,
.kanban-column,
.large-calendar,
.property-card,
.process-card,
.document-row,
.detail-card,
.integration-card,
.detail-decision-panel,
.commercial-flow-panel,
.commercial-summary .metric,
.document-summary .metric {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(31, 41, 55, 0.035);
}

.panel {
  padding: 18px;
}

.panel-header,
.module-header {
  margin-bottom: 14px;
}

.module-header {
  padding: 0 0 14px;
  border-bottom-color: rgba(229, 231, 235, 0.72);
}

.module-header h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.priority-panel {
  min-height: 74px;
  padding: 15px 18px 15px 24px;
  border-color: rgba(19, 174, 179, 0.28);
}

.priority-panel::before {
  inset: 15px auto 15px 0;
  width: 3px;
  background: var(--accent);
}

.important-dates-panel,
.work-diary-panel,
.activity-panel,
.commercial-flow-panel {
  background: var(--surface);
}

.decision-list-main {
  padding-top: 2px;
}

.decision-list-main strong {
  font-size: 0.96rem;
}

.decision-person {
  color: var(--ink);
  text-decoration-color: rgba(75, 85, 99, 0.35);
}

.decision-list-main small,
.decision-explain {
  color: var(--muted);
}

.metrics-panel {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 3px 14px rgba(31, 41, 55, 0.035);
}

.metric {
  min-height: 104px;
  padding: 16px 18px;
  border-right-color: rgba(229, 231, 235, 0.72);
}

.metric::before {
  border-top-width: 2px;
}

.metric span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.metric strong,
.big-number {
  margin: 4px 0;
  font-size: 2rem;
}

.metric small {
  font-size: 0.78rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 34px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent-soft-2);
  border-color: rgba(19, 174, 179, 0.45);
  color: #08383c;
  box-shadow: 0 8px 18px rgba(19, 174, 179, 0.12);
}

.secondary-button,
.ghost-button,
.icon-button {
  background: var(--surface);
  border-color: rgba(229, 231, 235, 0.95);
  color: var(--slate);
  box-shadow: none;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.tool-menu-panel,
.global-search-results,
.modal {
  border-color: rgba(229, 231, 235, 0.92);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}

.modal {
  border-radius: 18px;
}

.modal-header {
  padding: 16px 22px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(229, 231, 235, 0.78);
}

.modal-actions {
  padding: 12px 22px;
  border-top-color: rgba(229, 231, 235, 0.78);
}

input,
select,
textarea {
  min-height: 36px;
  border-color: rgba(229, 231, 235, 0.96);
  background: var(--surface);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

.view-tabs {
  gap: 8px;
  margin-bottom: 14px;
}

.view-tabs button {
  min-height: 30px;
  border-color: rgba(229, 231, 235, 0.96);
  background: var(--surface);
}

.view-tabs button.active {
  border-color: rgba(19, 174, 179, 0.32);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.contact-radar-row {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(229, 231, 235, 0.82);
  box-shadow: 0 1px 2px rgba(24, 50, 53, 0.018);
}

.contact-radar-row:hover,
.contact-radar-row:focus-visible,
.contact-radar-row:focus-within {
  background: var(--surface-muted);
  border-color: rgba(19, 174, 179, 0.18);
  box-shadow: 0 2px 10px rgba(24, 50, 53, 0.035);
}

.property-grid,
.process-grid,
.report-grid {
  gap: 16px;
}

.property-card,
.process-card {
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.property-card:hover,
.process-card:hover,
.kanban-card:hover,
.document-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
}

.property-body {
  padding: 14px;
  gap: 6px;
}

.property-body > strong {
  font-size: 1rem;
}

.property-specs,
.property-description,
.property-location,
.subtle,
.muted {
  color: var(--muted);
}

.process-card {
  padding: 14px;
}

.week-day {
  min-height: 58px;
}

.time-row div,
.task-list li,
.activity-item,
.kanban-card {
  background: var(--surface);
  border-color: rgba(229, 231, 235, 0.84);
  padding: 10px 12px;
}

.work-diary-compact div,
.work-diary-row,
.detail-card,
.signal-card,
.dependency-row,
.check-row,
.integration-card {
  border-color: rgba(229, 231, 235, 0.86);
}

table th,
table td {
  padding: 11px 14px;
  border-bottom-color: rgba(229, 231, 235, 0.74);
}

th {
  background: var(--surface-muted);
}

.contact-status-badge,
.pill {
  background: var(--surface-2);
  color: var(--muted);
}

.detail-decision-panel {
  background: var(--surface);
}

.attachment-upload,
.live-timeline-tools,
.role-picker .inline-check {
  background: var(--surface);
}

/* Properties list view */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(31, 41, 55, 0.035);
}

.property-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(136px, auto);
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}

.property-card:last-child {
  border-bottom: 0;
}

.property-card:hover,
.property-card:focus-visible {
  transform: none;
  outline: none;
  background: var(--surface-muted);
  box-shadow: none;
}

.property-image {
  width: 72px;
  height: 72px;
  aspect-ratio: auto;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #eaf6f5;
  justify-self: center;
}

.property-image img {
  border-radius: inherit;
}

.property-placeholder {
  gap: 3px;
  font-size: 0;
}

.property-placeholder span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 1rem;
}

.property-placeholder strong {
  display: none;
}

.property-body {
  min-width: 0;
  padding: 0;
  gap: 5px;
}

.property-body > strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.property-location {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.property-specs,
.property-description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.property-specs {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-description {
  -webkit-line-clamp: 1;
}

.property-action {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 780;
  line-height: 1.3;
  padding: 5px 9px;
  overflow-wrap: anywhere;
}

.property-price-column {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 136px;
  color: var(--muted);
  text-align: right;
}

.property-price-column strong {
  color: var(--pop-hover);
  font-size: 1.08rem;
  font-weight: 760;
  white-space: nowrap;
}

.property-price-column span {
  color: var(--soft);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.property-price-badge,
.property-meta,
.property-card-footer {
  display: none;
}

/* Fresh turquoise visual refinement */
body {
  background: #f5fbfb;
}

.app-shell {
  background: #f5fbfb;
}

.sidebar,
.sidebar:hover,
body.sidebar-pinned .sidebar {
  background: #123f44;
}

.brand-mark {
  border-color: rgba(72, 219, 219, 0.38);
  background: rgba(72, 219, 219, 0.16);
  color: var(--accent);
}

.nav-item {
  color: rgba(255, 255, 255, 0.64);
}

.nav-icon {
  color: rgba(255, 255, 255, 0.68);
}

.nav-item:hover {
  background: rgba(72, 219, 219, 0.09);
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active .nav-icon {
  color: #ffffff;
}

.topbar {
  background: rgba(245, 251, 251, 0.94);
}

.search-box {
  background: #ffffff;
  border-color: rgba(229, 231, 235, 0.88);
}

.search-box:focus-within {
  border-color: rgba(19, 174, 179, 0.55);
  box-shadow: 0 0 0 4px rgba(19, 174, 179, 0.14);
}

.cockpit-brief {
  padding: 6px 2px 2px;
}

.cockpit-brief .eyebrow,
.module-header .eyebrow {
  color: var(--slate);
}

.info-dot:hover,
.info-dot:focus-visible,
.info-dot[aria-expanded="true"] {
  color: var(--tech-hover);
  border-color: var(--tech-soft-2);
  background: var(--tech-soft);
}

.priority-panel {
  background: #ffffff;
  border-color: rgba(19, 174, 179, 0.28);
}

.important-dates-panel {
  background: #ffffff;
  border-color: rgba(229, 231, 235, 0.9);
  border-top: 3px solid rgba(63, 143, 218, 0.28);
}

.important-date-row time,
.decision-person {
  color: var(--pop-hover);
}

.decision-list-main:hover strong,
.decision-list-main:focus-visible strong,
.decision-explain:hover,
.decision-explain:focus-visible,
.decision-explain[aria-expanded="true"] {
  color: var(--pop-hover);
}

.decision-list-main:focus-visible {
  box-shadow: inset 2px 0 0 var(--pop);
}

.metrics-panel {
  background: #ffffff;
}

.metric:nth-child(1) {
  --metric-tint: #ffffff;
  --metric-line: rgba(19, 174, 179, 0.23);
}

.metric:nth-child(2) {
  --metric-tint: #ffffff;
  --metric-line: rgba(63, 143, 218, 0.22);
}

.metric:nth-child(3) {
  --metric-tint: #ffffff;
  --metric-line: rgba(19, 174, 179, 0.16);
}

.metric:nth-child(4) {
  --metric-tint: #ffffff;
  --metric-line: rgba(220, 38, 38, 0.14);
}

.work-diary-panel {
  background: #ffffff;
}

.activity-panel {
  background: #f7fcfb;
}

.view-tabs button.active {
  border-color: rgba(19, 174, 179, 0.44);
  background: var(--accent-soft);
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  color: var(--ink);
}

.property-grid {
  border-color: rgba(229, 231, 235, 0.78);
}

.property-card {
  position: relative;
  overflow: visible;
}

.property-card::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--tech);
  opacity: 0;
  transition: opacity 140ms ease;
}

.property-card:hover::before,
.property-card:focus-visible::before {
  opacity: 1;
}

.property-card:hover,
.property-card:focus-visible {
  background: #f2fbf9;
}

.property-price-column strong {
  color: var(--tech-hover);
}

.property-placeholder span {
  background: var(--tech-soft);
  color: var(--tech-hover);
}

.timeline-dot,
.commercial-flow-bar span,
.readiness-bar span {
  background: var(--pop);
}

.time-row span,
.contact-quick-actions button:hover,
.contact-quick-actions button:focus-visible {
  color: var(--tech-hover);
}

.contact-type-badge.partner::before,
.contact-type-badge.service::before {
  background: var(--tech);
}

.detail-decision-panel {
  background: #ffffff;
  border-color: rgba(19, 174, 179, 0.24);
}

.detail-summary-strip {
  background: #f2fbf9;
}

@media (max-width: 1040px) {
  .sidebar,
  .sidebar:hover,
  body.sidebar-pinned .sidebar {
    background: #123f44;
  }
}

@media (max-width: 1040px) {
  .app-shell,
  body.sidebar-pinned .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .sidebar:hover,
  body.sidebar-pinned .sidebar {
    width: auto;
    padding: 8px;
    background: #123f44;
  }

  .nav-item {
    min-width: 82px;
  }

  .side-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 92px);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .property-grid {
    border-radius: 12px;
  }

  .property-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    min-height: 104px;
    padding: 14px;
  }

  .property-image {
    width: 56px;
    height: 56px;
  }

  .property-price-column {
    grid-column: 2;
    justify-items: start;
    text-align: left;
    min-width: 0;
  }

  .property-price-column strong {
    font-size: 0.98rem;
  }
}

@media (max-width: 980px) {
  .ficha360-header {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ficha360-header-meta,
  .ficha360-decision-grid,
  .ficha360-memory-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ficha360-insights-card,
  .ficha360-memory-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .property-360-header {
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  }

  .property-360-action {
    grid-column: 1 / -1;
  }

  .property-360-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-360-strip div:nth-child(3n) {
    border-right: 0;
  }

  .property-participants-table .property-compact-head,
  .property-participants-table .property-compact-row,
  .property-references-table .property-compact-head,
  .property-references-table .property-compact-row {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  }

  .document-readiness-row {
    grid-template-columns: minmax(150px, 1fr) 112px 140px 72px minmax(110px, 0.8fr);
    min-width: 680px;
  }

  .property-participants-table .property-compact-head span:nth-child(4),
  .property-participants-table .property-compact-row span:nth-child(4),
  .property-references-table .property-compact-head span:nth-child(4),
  .property-references-table .property-compact-row span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 640px) {
  .ficha360-header,
  .ficha360-decision-grid,
  .ficha360-memory-grid {
    grid-template-columns: 1fr;
  }

  .ficha360-header-meta,
  .ficha360-facts,
  .ficha360-documents-compact {
    grid-template-columns: 1fr;
  }

  .ficha360-media img,
  .ficha360-placeholder {
    height: 170px;
  }

  .property-360-header,
  .property-360-strip {
    grid-template-columns: 1fr;
  }

  .property-360-strip div,
  .property-360-strip div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .property-360-strip div:last-child {
    border-bottom: 0;
  }

  .property-360-media img,
  .property-360-media .property-detail-placeholder {
    max-height: none;
  }

  .property-compact-table {
    overflow-x: auto;
  }

  .document-readiness-index {
    grid-template-columns: 1fr;
  }

  .document-readiness-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-readiness-summary div:nth-child(2n) {
    border-right: 0;
  }

  .document-readiness-index button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .document-readiness-index button:last-child {
    border-bottom: 0;
  }

  .property-participants-table .property-compact-head,
  .property-participants-table .property-compact-row,
  .property-references-table .property-compact-head,
  .property-references-table .property-compact-row {
    min-width: 560px;
  }
}
