:root {
  --page: #dfdfde;
  --shell: #ffffff;
  --sidebar: #f6f6f5;
  --surface: #fbfbfa;
  --soft: #f2f2f1;
  --line: #e7e7e4;
  --line-strong: #dcdcd8;
  --ink: #111317;
  --muted: #777b82;
  --faint: #a8abb0;
  --accent: #111317;
  --green: #111317;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

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

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.browser-frame {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--shell);
  box-shadow: none;
}

.window-bar {
  display: none;
  height: 42px;
  grid-template-columns: auto auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f6;
}

.traffic,
.history {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.traffic span:nth-child(1) { background: #f26363; }
.traffic span:nth-child(2) { background: #f4c14f; }
.traffic span:nth-child(3) { background: #67c66d; }

.history button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #9fa2a6;
  font-size: 18px;
  line-height: 1;
}

.address {
  justify-self: center;
  width: min(360px, 100%);
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eeeeed;
  color: #565b61;
  font-size: 10px;
  font-weight: 700;
}

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

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 16px;
  font-weight: 850;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 26%, transparent 27%),
    conic-gradient(from 20deg, #111317 0 82%, transparent 82% 100%);
}

.collapse-button {
  position: absolute;
  top: 26px;
  right: 18px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #70747b;
  font-size: 10px;
  font-weight: 900;
}

.create-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  border-radius: 13px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(17, 19, 23, 0.12);
}

.create-button span {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.sidebar-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0;
}

.sidebar-search span {
  display: none;
}

.sidebar-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 42px;
  border: 0;
  border-radius: 13px;
  background:
    linear-gradient(transparent, transparent),
    #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sidebar-search::before {
  content: "⌕";
  position: absolute;
  transform: translate(15px, 11px);
  color: #7c8087;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group > span {
  margin: 4px 0 5px 13px;
  color: #9b9da2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-group a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 12px;
  color: #42464d;
  font-size: 14px;
  font-weight: 760;
}

.nav-group a i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #4e535a;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.nav-group a em {
  margin-left: auto;
  color: #858990;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.nav-group a:hover,
.nav-group a.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-group a.is-active i {
  background: var(--ink);
  color: #ffffff;
}

.nav-links a {
  min-height: 30px;
  gap: 10px;
  padding: 0 13px;
  color: #5d6268;
  font-size: 12px;
  font-weight: 700;
}

.nav-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ea1a6;
}

.utility-nav {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.utility-nav a {
  min-height: 32px;
  padding: 0 13px;
  color: #555b63;
  font-size: 12px;
  font-weight: 760;
}

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

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  color: #747980;
  font-size: 12px;
  font-weight: 760;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar a {
  color: #333941;
  font-size: 12px;
  font-weight: 800;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 48px 28px;
}

.page-head p,
.page-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.page-head p {
  margin-bottom: 7px;
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.head-actions,
.toolbar,
.tabs,
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-search {
  position: relative;
}

.table-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.table-search input {
  width: 240px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.ghost-button,
.dark-button,
.toolbar button,
.tabs button,
.pagination button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #343941;
  font-size: 12px;
  font-weight: 800;
}

.dark-button {
  background: var(--ink);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 48px 28px;
}

.stats-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.stats-grid strong {
  font-size: 27px;
  line-height: 1;
}

.stats-grid em {
  color: #778088;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.content-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 0 48px 42px;
}

.map-preview-panel[hidden] {
  display: none;
}

.media-preview-panel[hidden] {
  display: none;
}

.workflow-preview-panel[hidden] {
  display: none;
}

.password-preview-panel[hidden] {
  display: none;
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 0 24px 24px;
}

.quiet-map {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(17, 19, 23, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 19, 23, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 55% 42%, rgba(17, 19, 23, 0.08), transparent 22%),
    radial-gradient(circle at 42% 58%, rgba(17, 19, 23, 0.06), transparent 20%),
    #fafafa;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.quiet-map::before {
  content: "";
  position: absolute;
  inset: 34px 90px 34px 80px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  border-radius: 48% 52% 46% 54% / 42% 45% 55% 58%;
  transform: rotate(-10deg);
  background: rgba(255, 255, 255, 0.58);
}

.map-label {
  position: absolute;
  z-index: 2;
  color: #5c626a;
  font-size: 11px;
  font-weight: 850;
}

.label-basel { left: 24%; top: 27%; }
.label-zurich { left: 57%; top: 38%; }
.label-bern { left: 35%; top: 62%; }
.label-luzern { left: 48%; top: 57%; }
.label-stgallen { left: 73%; top: 30%; }

.map-cluster {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 19, 23, 0.14);
  font-size: 11px;
  font-weight: 900;
}

.cluster-a { left: 28%; top: 36%; }
.cluster-b { left: 58%; top: 45%; }
.cluster-c { left: 37%; top: 67%; }
.cluster-d { left: 51%; top: 62%; }
.cluster-e { left: 76%; top: 39%; }

.map-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.map-summary > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-summary strong {
  font-size: 34px;
  line-height: 1;
}

.map-summary p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.map-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.map-list-item strong {
  font-size: 12px;
}

.map-list-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.media-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 0 24px 24px;
}

.media-dropzone {
  min-height: 258px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}

.media-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.media-dropzone span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
}

.media-dropzone strong {
  margin-top: 6px;
  font-size: 14px;
}

.media-dropzone small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

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

.media-card {
  min-height: 258px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.media-thumb {
  position: relative;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(17, 19, 23, 0.08), transparent),
    var(--surface);
}

.media-thumb::before,
.media-thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 19, 23, 0.12);
}

.media-thumb::before {
  width: 72%;
  height: 16px;
  left: 14%;
  bottom: 28%;
}

.media-thumb::after {
  width: 42%;
  height: 42%;
  right: -8%;
  top: -10%;
  background: rgba(17, 19, 23, 0.07);
}

.media-card:nth-child(2) .media-thumb {
  background:
    radial-gradient(circle at 34% 35%, rgba(17, 19, 23, 0.16), transparent 18%),
    linear-gradient(160deg, #fafafa, #ededeb);
}

.media-card:nth-child(3) .media-thumb {
  background:
    linear-gradient(90deg, rgba(17, 19, 23, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 19, 23, 0.08) 1px, transparent 1px),
    #f8f8f7;
  background-size: 22px 22px;
}

.media-card:nth-child(4) .media-thumb {
  background:
    radial-gradient(circle at 70% 32%, rgba(17, 19, 23, 0.15), transparent 20%),
    radial-gradient(circle at 32% 70%, rgba(17, 19, 23, 0.1), transparent 18%),
    #f4f4f2;
}

.media-meta {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.media-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.media-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.workflow-lane {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.workflow-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.workflow-lane h3 {
  margin: 0;
  font-size: 13px;
}

.workflow-lane header span {
  min-width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.workflow-task {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.workflow-task strong {
  font-size: 12px;
}

.workflow-task p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workflow-task footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.workflow-task footer span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}

.password-workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px;
}

.vault-card,
.generator-card,
.security-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.vault-card span,
.generator-card span,
.security-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vault-card strong,
.generator-card strong,
.security-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.vault-card p,
.security-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.vault-card button,
.generator-card button {
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.generator-card {
  background: #ffffff;
}

.generator-card strong {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
  word-break: break-all;
}

.strength-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.strength-bar span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

@media (max-width: 1100px) {
  .map-workspace,
  .media-workspace,
  .workflow-board,
  .password-workspace {
    grid-template-columns: 1fr;
  }
}

/* Public start page preview */
.start-page {
  min-height: 100vh;
  background: #f1f1f0;
}

.start-with-sidebar {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  background: #ffffff;
}

.start-sidebar {
  position: sticky;
  top: 0;
  grid-row: 1 / 3;
  min-height: 100vh;
  align-self: start;
}

.start-with-sidebar .start-header,
.start-with-sidebar main {
  grid-column: 2;
}

.start-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.start-with-sidebar .start-header {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(16px);
}

.start-with-sidebar .start-header > .brand {
  display: none;
}

.start-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.start-header nav a {
  color: #30343a;
  font-size: 13px;
  font-weight: 820;
}

.start-login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--ink);
  color: #ffffff !important;
}

.start-hero {
  position: relative;
  min-height: calc(100vh - 176px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 58px 54px 70px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.start-with-sidebar .start-hero {
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(360px, 0.82fr) minmax(430px, 1fr);
  gap: 32px;
  padding: 54px 42px 64px;
}

.start-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 560px;
}

.start-with-sidebar .start-copy {
  grid-column: 1;
  grid-row: 1;
}

.start-copy p {
  margin: 0 0 14px;
  color: #8a8e94;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.start-copy h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.start-with-sidebar .start-copy h1 {
  font-size: clamp(48px, 5vw, 78px);
}

.start-copy > span {
  display: block;
  max-width: 500px;
  color: #555c65;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.7;
}

.start-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.start-actions .dark-button,
.start-actions .ghost-button,
.start-process .dark-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
}

.hero-interface {
  position: absolute;
  right: 44px;
  bottom: 54px;
  width: min(760px, 58vw);
  min-width: 0;
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(250, 250, 249, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.09);
}

.start-with-sidebar .hero-interface {
  position: relative;
  right: auto;
  bottom: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 430px;
  align-self: center;
}

.hero-appbar,
.hero-metrics,
.hero-table {
  position: relative;
  z-index: 1;
}

.hero-appbar {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #333840;
  font-size: 12px;
  font-weight: 850;
}

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

.hero-metrics article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-metrics strong {
  font-size: 32px;
}

.hero-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.hero-table div {
  display: grid;
  grid-template-columns: 1fr 150px 80px;
  gap: 16px;
  min-height: 62px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.hero-table div:last-child {
  border-bottom: 0;
}

.hero-table strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11px;
}

.start-section {
  padding: 74px 54px;
  background: #f7f7f6;
}

.start-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.start-section h2,
.start-process h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.start-section p,
.start-process p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

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

.start-feature-grid article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.start-feature-grid span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.start-feature-grid h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.start-process {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 54px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.start-process > div {
  max-width: 720px;
}

@media (max-width: 1100px) {
  .start-with-sidebar {
    display: block;
  }

  .start-sidebar {
    min-height: auto;
  }
}

@media (max-width: 1320px) {
  .start-with-sidebar .start-hero {
    grid-template-columns: 1fr;
  }

  .start-with-sidebar .start-copy,
  .start-with-sidebar .hero-interface {
    grid-column: 1;
  }

  .start-with-sidebar .hero-interface {
    grid-row: 2;
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .start-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .start-header nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .start-hero {
    min-height: auto;
    padding: 44px 20px;
  }

  .hero-interface {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: auto;
    margin-top: 36px;
  }

  .hero-metrics,
  .start-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-table div {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .start-section,
  .start-process {
    padding: 42px 20px;
  }

  .start-process {
    align-items: flex-start;
    flex-direction: column;
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
}

.panel-header h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.tabs {
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.tabs button {
  min-width: 78px;
  background: #ffffff;
}

.tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.data-table {
  width: 100%;
}

.row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr) 100px;
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  column-gap: 18px;
}

.row.head {
  min-height: 42px;
  background: var(--surface);
  color: #6f747b;
  font-size: 11px;
  font-weight: 900;
}

.row:not(.head) {
  color: #2e333a;
  font-size: 12px;
  font-weight: 720;
}

.contact-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.contact-cell > span:last-child {
  min-width: 0;
}

.avatar {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.contact-cell strong,
.contact-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f0ef;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.pagination {
  padding: 18px 24px;
}

.pagination button {
  min-width: 34px;
  padding: 0 10px;
  border-radius: 50%;
  background: #ffffff;
}

.pagination .is-active {
  background: var(--ink);
  color: #ffffff;
}

.pagination .load-more {
  margin-left: auto;
  border-radius: 999px;
}

.side-panel {
  display: none;
}

.activity-list {
  display: grid;
  padding: 0 24px 24px;
}

.activity-list article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.activity-list article > span {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.activity-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.contact-page-head .head-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.contact-stats strong {
  font-size: 27px;
}

.contact-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 0 48px 56px;
}

.contact-profile-panel {
  overflow: hidden;
}

.profile-hero {
  min-height: 150px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.profile-hero p,
.source-box span,
.profile-note span,
.detail-card span {
  margin: 0 0 6px;
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
}

.profile-hero div > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.profile-tabs button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #3d4249;
  font-size: 12px;
  font-weight: 820;
}

.profile-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.profile-section {
  padding: 24px;
}

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

.detail-card {
  min-height: 108px;
  display: grid;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.detail-card strong {
  color: #22262d;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wir-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 230px;
  padding: 12px;
}

.wir-ring {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--ink) 0 32%, var(--line) 32% 100%);
}

.wir-ring strong {
  display: block;
  max-width: 86px;
  text-align: center;
  font-size: 21px;
  line-height: 1.05;
}

.wir-ring span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wir-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.wir-card p,
.source-box p,
.profile-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--soft);
  color: #30343a;
  font-size: 11px;
  font-weight: 850;
}

.source-box {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.source-box .dark-button {
  width: fit-content;
}

.contact-action-panel {
  align-self: start;
  overflow: hidden;
}

.action-stack {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.action-stack a,
.action-stack button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-stack a[aria-disabled="true"],
.action-stack button:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.send-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.send-status.is-success {
  color: #087b5b;
}

.send-status.is-error {
  color: #a23c19;
}

.profile-note {
  margin: 0 18px 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
}

@media (max-width: 1100px) {
  body {
    padding: 0;
  }

  .browser-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .window-bar {
    display: none;
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .collapse-button,
  .create-button,
  .sidebar-search,
  .nav-links,
  .utility-nav {
    display: none;
  }

  .nav-group {
    display: flex;
    overflow-x: auto;
  }

  .sidebar .nav-group.nav-links {
    display: none;
  }

  .nav-group > span {
    display: none;
  }

  .nav-group a {
    min-width: max-content;
  }

  .topbar {
    display: none;
  }

  .page-head,
  .stats-grid,
  .content-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-profile-grid {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;
  }

  .row.head {
    display: none;
  }
}

@media (max-width: 720px) {
  .contact-page-head .head-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .contact-page-head .head-actions a {
    flex: 0 0 auto;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

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

  .wir-ring {
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .start-sidebar .nav-links {
    display: none;
  }

  .start-sidebar > .nav-group:not(.nav-links) {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .start-sidebar > .nav-group:not(.nav-links)::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 520px) {
  .start-page {
    overflow-x: hidden;
  }

  .start-header {
    padding: 14px 18px;
  }

  .start-header nav {
    gap: 10px;
  }

  .start-header nav a {
    font-size: 12px;
  }

  .start-login {
    padding: 0 13px;
  }

  .start-with-sidebar .start-hero {
    width: 100%;
    max-width: 100vw;
    padding: 42px 20px 52px;
  }

  .start-with-sidebar .start-copy {
    width: 100%;
    max-width: 310px;
  }

  .start-with-sidebar .start-copy h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.04;
    letter-spacing: 0;
  }

  .start-copy > span {
    font-size: 16px;
    line-height: 1.62;
  }

  .start-actions {
    flex-wrap: wrap;
  }

  .start-with-sidebar .hero-interface {
    max-width: 100%;
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .hero-appbar {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }
}
/* Public module pages and dashboard section pages */
.module-main {
  padding: 112px 56px 80px;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 48px;
  align-items: end;
  min-height: 420px;
  border-bottom: 1px solid var(--line);
}

.module-copy p {
  margin: 0 0 18px;
  color: #8b9098;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 7vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.module-copy > span {
  display: block;
  max-width: 660px;
  margin-top: 26px;
  color: #4d535c;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.module-preview {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(17, 19, 23, 0.08);
}

.module-preview header,
.module-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.module-preview header strong,
.module-card header strong {
  font-size: 18px;
  font-weight: 800;
}

.module-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

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

.module-lines span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--line);
  color: #5a6069;
  font-size: 14px;
  font-weight: 700;
}

.module-lines span:first-child {
  border-top: 0;
}

.module-lines b {
  color: var(--ink);
}

.module-section {
  padding: 56px 0 0;
}

.module-section > h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.module-section > p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #59606a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

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

.module-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.module-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.module-card p {
  margin: 0;
  color: #59606a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

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

.site-map-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-module-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.dashboard-module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.dashboard-module-head span {
  display: block;
  margin-bottom: 7px;
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-module-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.12;
}

.dashboard-module-head p {
  margin: 0;
  color: #66707a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.dashboard-module-list {
  display: grid;
}

.dashboard-module-list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(92px, auto) 82px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}

.dashboard-module-list a:first-child {
  border-top: 0;
}

.dashboard-module-list a:hover {
  background: #fbfbfa;
}

.dashboard-module-list i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0f0ef;
  color: #111317;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-module-list strong,
.dashboard-module-list small {
  display: block;
  min-width: 0;
}

.dashboard-module-list strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 900;
}

.dashboard-module-list small {
  color: #69717b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-module-list em {
  justify-self: end;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f1ef;
  color: #343941;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-module-list b {
  justify-self: end;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-shell-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111317;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.contacts-stats {
  padding-bottom: 22px;
}

.contacts-database-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.contacts-database-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.contacts-database-head span {
  display: block;
  margin-bottom: 7px;
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contacts-database-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.12;
}

.contacts-database-head p {
  margin: 0;
  color: #66707a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.contacts-database-head strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f1ef;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
}

.contacts-controlbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}

.contacts-search {
  display: grid;
  gap: 8px;
}

.contacts-search span {
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contacts-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.contacts-filterbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.contacts-filterbar button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #343941;
  font-size: 12px;
  font-weight: 850;
}

.contacts-filterbar button.is-active {
  border-color: #111317;
  background: #111317;
  color: #ffffff;
}

.contact-database-table {
  display: grid;
  width: 100%;
}

.contact-db-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) minmax(170px, 0.75fr) minmax(150px, 0.65fr) minmax(120px, 0.5fr) 86px;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 13px 24px;
  border-top: 1px solid var(--line);
}

a.contact-db-row {
  transition: background 160ms ease, transform 160ms ease;
}

a.contact-db-row:hover {
  background: #fbfbfa;
}

.contact-db-head {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  background: #f8f8f7;
  color: #747980;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-db-main,
.contact-db-place,
.contact-db-owner {
  min-width: 0;
}

.contact-db-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-db-main i {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0ef;
  color: #111317;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.contact-db-main strong,
.contact-db-place strong,
.contact-db-owner strong,
.contact-db-main small,
.contact-db-place small,
.contact-db-owner small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-db-main strong,
.contact-db-place strong,
.contact-db-owner strong {
  margin-bottom: 3px;
  color: #111317;
  font-size: 13px;
  font-weight: 900;
}

.contact-db-main small,
.contact-db-place small,
.contact-db-owner small {
  color: #69717b;
  font-size: 11px;
  font-weight: 700;
}

.contact-db-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0f0ef;
  color: #111317;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.contact-db-action {
  justify-self: end;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
}

.contacts-loadbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fbfbfa;
}

.contacts-loadbar span {
  color: #69717b;
  font-size: 12px;
  font-weight: 800;
}

.contacts-loadbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
}

.contacts-loadbar button[hidden] {
  display: none;
}

.contact-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 0 48px 56px;
}

.contact-detail-main,
.contact-detail-side {
  min-width: 0;
}

.contact-work-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.contact-profile-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}

.contact-profile-summary h2 {
  margin: 0 0 5px;
  font-size: 27px;
  line-height: 1.1;
}

.contact-profile-summary p {
  margin: 0;
  color: #69717b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-kicker {
  display: block;
  margin-bottom: 7px;
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-profile-summary > strong {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f1ef;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.contact-editor-section {
  padding: 24px;
}

.editor-section-head {
  margin-bottom: 18px;
}

.editor-section-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.editor-section-head p {
  margin: 0;
  color: #66707a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.compact-head {
  margin-top: 30px;
}

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

.contact-form-grid label {
  display: grid;
  gap: 8px;
}

.contact-form-grid label > span {
  color: #858a92;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea,
.task-create-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfa;
  color: #111317;
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.contact-form-grid input,
.contact-form-grid select,
.task-create-row input {
  min-height: 44px;
  padding: 0 13px;
}

.contact-form-grid textarea {
  min-height: 260px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus,
.task-create-row input:focus {
  border-color: #111317;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #111317;
}

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

.attribute-chip {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
  color: #343941;
  font-size: 13px;
  font-weight: 850;
}

.attribute-chip input {
  width: 18px;
  height: 18px;
  accent-color: #111317;
}

.attribute-chip:has(input:checked) {
  border-color: #111317;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #111317;
}

.task-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

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

.contact-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
}

.contact-task label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #343941;
  font-size: 13px;
  font-weight: 850;
}

.contact-task input {
  width: 18px;
  height: 18px;
  accent-color: #111317;
}

.contact-task span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-task.is-done span {
  color: #8b9098;
  text-decoration: line-through;
}

.contact-task button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #4f555e;
  font-size: 12px;
  font-weight: 850;
}

.email-form-grid {
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
}

.email-body-field {
  grid-column: 1 / -1;
}

.email-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.email-action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.email-action-row a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.contact-email-status {
  margin-top: 12px;
  text-align: left;
}

.contact-detail-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.contact-side-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.contact-side-card > span {
  color: #8f9399;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-side-card strong {
  font-size: 24px;
  line-height: 1;
}

.contact-side-card p {
  margin: 0;
  color: #66707a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-side-card a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #111317;
  font-size: 12px;
  font-weight: 900;
}

.contact-side-card a::after {
  content: "->";
  color: #8f9399;
}

@media (max-width: 1180px) {
  .contact-db-row {
    grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.75fr) minmax(130px, 0.65fr) minmax(110px, 0.5fr);
  }

  .contact-db-row > span:last-child,
  .contact-db-head > span:last-child {
    display: none;
  }
}

@media (max-width: 1120px) {
  .contact-detail-layout {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }

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

@media (max-width: 820px) {
  .contacts-database-head,
  .contacts-controlbar,
  .contacts-loadbar {
    display: grid;
    align-items: start;
  }

  .contacts-controlbar {
    grid-template-columns: 1fr;
  }

  .contacts-filterbar {
    justify-content: flex-start;
  }

  .contact-db-head {
    display: none;
  }

  .contact-db-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 18px 20px;
  }

  .contact-db-main strong,
  .contact-db-place strong,
  .contact-db-owner strong,
  .contact-db-main small,
  .contact-db-place small,
  .contact-db-owner small {
    white-space: normal;
  }

  .contact-db-action {
    justify-self: start;
  }

  .contact-detail-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-profile-summary,
  .contact-form-grid,
  .attribute-grid,
  .task-create-row,
  .email-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-profile-summary {
    align-items: start;
  }

  .contact-profile-summary > strong {
    justify-self: start;
  }

  .contact-editor-section {
    padding: 20px;
  }

  .contact-task {
    grid-template-columns: 1fr;
  }

  .contact-task button {
    width: fit-content;
  }
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed #b9bdc4;
  border-radius: 22px;
  background: #fbfbfa;
  color: #59606a;
  text-align: center;
  font-weight: 800;
}

.drop-zone span {
  display: block;
  margin-top: 8px;
  color: #8b9098;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .module-main {
    padding: 88px 28px 64px;
  }

  .module-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .module-grid,
  .site-map-grid {
    grid-template-columns: 1fr;
  }
}

/* Direct Mail */
.mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.55fr);
  gap: 18px;
  padding: 0 56px 72px;
}

.mail-composer,
.mail-side {
  min-width: 0;
}

.mail-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.mail-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(17, 19, 23, 0.04);
}

.mail-card-primary {
  padding: 24px;
}

.mail-side .mail-card {
  padding: 20px;
}

.mail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.mail-card-head.compact {
  margin-bottom: 14px;
}

.mail-card-head h2 {
  margin: 6px 0 6px;
  font-size: 24px;
  line-height: 1.12;
}

.mail-side .mail-card-head h2 {
  font-size: 18px;
}

.mail-card-head p {
  max-width: 560px;
  margin: 0;
  color: #666c74;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.mail-step {
  color: #9aa0a8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.mail-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1f1ef;
  color: #4f555e;
  font-size: 12px;
  font-weight: 900;
}

.mail-status-pill.is-ready {
  background: #111317;
  color: #fff;
}

.recipient-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.recipient-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.recipient-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfa;
  color: var(--ink);
  text-align: left;
}

.recipient-chip > span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0f0ef;
  font-size: 12px;
  font-weight: 900;
}

.recipient-chip strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-chip small {
  overflow: hidden;
  color: #6a7078;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-chip.is-selected {
  border-color: #111317;
  background: #fff;
  box-shadow: inset 0 0 0 1px #111317;
}

.recipient-chip.is-selected > span {
  background: #111317;
  color: #fff;
}

.mail-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mail-form-grid label {
  display: grid;
  gap: 8px;
}

.mail-form-grid label > span {
  color: #858a92;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mail-form-grid input,
.mail-form-grid select,
.mail-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.mail-form-grid input,
.mail-form-grid select {
  min-height: 48px;
  padding: 0 14px;
}

.mail-form-grid textarea {
  min-height: 146px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.mail-form-grid input:focus,
.mail-form-grid select:focus,
.mail-form-grid textarea:focus {
  border-color: #111317;
  background: #fff;
  box-shadow: inset 0 0 0 1px #111317;
}

.mail-message {
  grid-column: 1 / -1;
}

.mail-dropzone {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 26px;
  border: 1px dashed #b8bcc2;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(17, 19, 23, 0.035), transparent 48%),
    #fbfbfa;
  color: var(--ink);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mail-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mail-dropzone.is-dragging {
  border-color: #111317;
  background: #fff;
  transform: translateY(-2px);
}

.mail-drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #111317;
  color: #fff;
  font-size: 32px;
  font-weight: 500;
}

.mail-dropzone strong {
  font-size: 21px;
  font-weight: 900;
}

.mail-dropzone small {
  display: block;
  max-width: 440px;
  margin-top: 8px;
  color: #6a7078;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.attachment-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.attachment-empty,
.attachment-item {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.attachment-empty {
  display: grid;
  place-items: center;
  color: #8b9098;
  font-size: 13px;
  font-weight: 800;
}

.attachment-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
}

.attachment-item > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f1ef;
  color: #4f555e;
  font-size: 10px;
  font-weight: 900;
}

.attachment-item strong,
.attachment-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item strong {
  font-size: 13px;
  font-weight: 900;
}

.attachment-item small {
  color: #777b82;
  font-size: 12px;
  font-weight: 700;
}

.attachment-item-sending {
  background: #fbfbfa;
}

.attachment-item-sent {
  background: #f4fbf7;
}

.attachment-item-error {
  background: #fff6f1;
}

.attachment-item-sent > span {
  background: #e1f5ea;
  color: #0b6f52;
}

.attachment-item-error > span {
  background: #ffe5d8;
  color: #a23c19;
}

.attachment-item button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #4f555e;
  font-size: 12px;
  font-weight: 850;
}

.mail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.mail-send-note {
  flex: 1 1 auto;
  margin: 0;
  color: #69717b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.mail-send-note.is-success {
  color: #087b5b;
}

.mail-send-note.is-error {
  color: #a23c19;
}

.mail-button-primary,
.mail-button-secondary,
.template-list button {
  min-height: 44px;
  border-radius: 13px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.mail-button-primary {
  border: 0;
  background: #111317;
  color: #fff;
}

.mail-button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.mail-button-secondary,
.template-list button {
  border: 1px solid var(--line);
  background: #fff;
  color: #111317;
}

.mail-checklist,
.template-list,
.mail-activity {
  display: grid;
  gap: 9px;
}

.mail-checklist span,
.mail-activity span {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0 0 24px;
  color: #5a6069;
  font-size: 13px;
  font-weight: 800;
}

.mail-checklist span::before,
.mail-activity span::before {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dadc;
}

.mail-checklist span.is-done::before {
  background: #111317;
}

.template-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.template-list button::after {
  content: "->";
  color: #858a92;
}

.mail-activity span {
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.mail-activity span:first-child {
  border-top: 0;
}

.mail-activity b {
  color: #111317;
}

@media (max-width: 1120px) {
  .mail-layout {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 720px) {
  .dashboard-module-head {
    display: grid;
    align-items: start;
    padding: 20px;
  }

  .dashboard-module-head .dark-button {
    width: fit-content;
  }

  .dashboard-module-list a {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 84px;
    padding: 16px 20px;
  }

  .dashboard-module-list i {
    width: 34px;
    height: 34px;
  }

  .dashboard-module-list em,
  .dashboard-module-list b {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-module-list b {
    display: none;
  }

  .page-head {
    display: grid;
    align-items: start;
    gap: 14px;
  }

  .head-actions {
    justify-content: flex-start;
  }

  .mail-card-primary {
    padding: 18px;
  }

  .mail-layout,
  .mail-card,
  .recipient-chip,
  .mail-form-grid {
    min-width: 0;
  }

  .mail-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mail-card-head,
  .recipient-row,
  .mail-form-grid {
    grid-template-columns: 1fr;
  }

  .mail-card-head {
    display: grid;
  }

  .mail-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .mail-actions button {
    width: 100%;
  }

  .mail-send-note {
    width: 100%;
    text-align: left;
  }

  .recipient-chip strong,
  .recipient-chip small,
  .attachment-item strong,
  .attachment-item small {
    white-space: normal;
  }

  .attachment-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .attachment-item button {
    grid-column: 1 / -1;
  }
}
