:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #235bff;
  --success-bg: #ecfdf3;
  --success-text: #027a48;
  --error-bg: #fef3f2;
  --error-text: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.05;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
}

.notice.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.notice.error {
  background: var(--error-bg);
  color: var(--error-text);
}

a {
  color: var(--accent);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: white;
}

button.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.small-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button.secondary {
  background: #eef2ff;
  color: var(--accent);
}

.wide-card {
  max-width: 980px;
}

.placeholder-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}

.placeholder-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.placeholder-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.node-list {
  display: grid;
  gap: 12px;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.node-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.node-route {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.good {
  background: #ecfdf3;
  color: #027a48;
}

.badge.caution {
  background: #fffaeb;
  color: #b54708;
}

.badge.warning {
  background: #fff7ed;
  color: #c2410c;
}

.badge.severe {
  background: #fef3f2;
  color: #b42318;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .node-row,
  .node-route {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}

.exposure-grid {
  margin-top: -12px;
}

.caution-box {
  background: #fffaeb;
  color: #93370d;
}

.node-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: -4px 0 12px;
  padding: 0 8px 8px;
}

.node-detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}

.node-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.node-detail-grid strong {
  font-size: 15px;
}

@media (max-width: 900px) {
  .node-detail-grid {
    grid-template-columns: 1fr;
  }
}

.node-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.node-actions a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.soft-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.button.danger {
  background: #fef3f2;
  color: #b42318;
}

.route-split-table {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.route-split-head,
.route-split-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.route-split-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.route-split-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}

@media (max-width: 900px) {
  .route-split-head {
    display: none;
  }

  .route-split-row {
    grid-template-columns: 1fr;
  }
}

.route-row-list {
  display: grid;
  gap: 8px;
  margin: -4px 0 12px;
  padding: 0 8px;
}

.route-row-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
}

.route-row-item span {
  color: var(--text);
  font-weight: 700;
}

.route-row-item strong {
  text-align: right;
}

.route-row-item em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

@media (max-width: 900px) {
  .route-row-item {
    grid-template-columns: 1fr;
  }

  .route-row-item strong,
  .route-row-item em {
    text-align: left;
  }
}

.evidence-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}

.evidence-question strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.evidence-question p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.evidence-question span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.evidence-controls {
  display: grid;
  gap: 8px;
}

.evidence-controls label {
  font-size: 13px;
}

@media (max-width: 900px) {
  .evidence-item {
    grid-template-columns: 1fr;
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.app-brand {
  display: grid;
  gap: 2px;
}

.app-brand a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.app-brand span {
  color: var(--muted);
  font-size: 13px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.app-nav a:hover,
.app-nav a.active {
  background: #eef2ff;
  color: var(--accent);
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav {
    flex-wrap: wrap;
  }
}

.consent-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.consent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  cursor: pointer;
}

.consent-item input {
  width: auto;
  margin-top: 4px;
}

.consent-item strong {
  display: block;
  margin-bottom: 6px;
}

.consent-item span {
  color: var(--muted);
  line-height: 1.6;
}

.consent-item strong {
  color: var(--text);
}

.consent-item.optional {
  background: #f8fafc;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.simple-table th,
.simple-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simple-table td {
  font-size: 14px;
}

.chain-map {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.chain-node {
  position: relative;
}

.chain-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
}

.chain-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.chain-value {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.chain-value strong {
  font-size: 17px;
}

.chain-routes {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.chain-route-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  font-size: 14px;
}

.chain-route-row span {
  font-weight: 700;
}

.chain-route-row strong,
.chain-route-row em {
  text-align: right;
}

.chain-route-row em {
  color: var(--muted);
  font-style: normal;
}

.chain-children {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  margin-left: 34px;
  padding-left: 24px;
  border-left: 2px solid #dbe3ef;
}

.chain-children .chain-node::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -24px;
  width: 24px;
  border-top: 2px solid #dbe3ef;
}

.depth-1 .chain-card {
  background: #ffffff;
}

.depth-2 .chain-card {
  background: #fbfcfd;
}

.depth-3 .chain-card {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .chain-main {
    grid-template-columns: 1fr;
  }

  .chain-value {
    justify-items: start;
  }

  .chain-route-row {
    grid-template-columns: 1fr;
  }

  .chain-route-row strong,
  .chain-route-row em {
    text-align: left;
  }

  .chain-children {
    margin-left: 12px;
    padding-left: 16px;
  }
}

.findings-panel {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}

.findings-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.findings-list {
  display: grid;
  gap: 12px;
}

.finding {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.finding strong {
  display: block;
  margin-bottom: 8px;
}

.finding p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.finding.info {
  border-color: #dbe4ff;
  background: #f5f7ff;
}

.finding.warning {
  border-color: #fedf89;
  background: #fffaeb;
}

.finding.severe {
  border-color: #fecdca;
  background: #fef3f2;
}

.finding-detail {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.finding-detail h3 {
  margin: 12px 0 6px;
  font-size: 14px;
}

.finding-detail p {
  font-size: 14px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.inline-form button {
  font: inherit;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: none;
}

.link-button:hover {
  text-decoration: underline;
}

.button.danger {
  background: #b42318;
  color: #ffffff;
}

.button.danger:hover {
  background: #912018;
}

.notice.error {
  border-color: #fecdca;
  background: #fef3f2;
  color: #7a271a;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f7f7f4;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 50;
}

.app-sidebar__brand {
  padding-bottom: 8px;
}

.app-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111111;
  text-decoration: none;
}

.app-sidebar__mark {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: #111111;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.app-sidebar__logo strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.app-sidebar__logo small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
}

.app-sidebar__section {
  display: grid;
  gap: 8px;
}

.app-sidebar__primary {
  display: block;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.app-sidebar__primary:hover {
  background: rgba(0, 0, 0, 0.82);
}

.app-sidebar__label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.app-sidebar__select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  background: #f7f7f4;
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.app-sidebar__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.52);
}

.app-sidebar__nav {
  display: grid;
  gap: 6px;
}

.app-sidebar__nav a,
.app-sidebar__footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 11px 12px;
  color: rgba(0, 0, 0, 0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.app-sidebar__nav a:hover,
.app-sidebar__footer a:hover {
  background: #f7f7f4;
  color: #111111;
}

.app-sidebar__nav a.is-active {
  background: #eef4f1;
  color: #111111;
}

.app-sidebar__footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 14px;
}

.app-sidebar__maps {
  display: grid;
  gap: 8px;
}

.app-sidebar__maps summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.app-sidebar__maps summary::-webkit-details-marker {
  display: none;
}

.app-sidebar__maps summary span:last-child {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f7f7f4;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0;
}

.app-sidebar__map-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.app-sidebar__map-link {
  display: block;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 11px 12px;
  color: #111111;
  text-decoration: none;
}

.app-sidebar__map-link:hover {
  background: #f7f7f4;
}

.app-sidebar__map-link.is-active {
  border-color: rgba(0, 0, 0, 0.1);
  background: #eef4f1;
}

.app-sidebar__map-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}

.app-sidebar__map-link small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.48);
}

.chain-dock {
  min-height: 86px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
}

.chain-dock__metrics {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.chain-dock__metric {
  min-width: 138px;
  border-radius: 18px;
  background: #f7f7f4;
  padding: 12px 14px;
}

.chain-dock__metric span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.chain-dock__metric strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.15;
}

.chain-dock__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.chain-dock__actions a,
.chain-dock__actions button {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.chain-dock__actions a:hover,
.chain-dock__actions button:hover {
  background: #f7f7f4;
}

.chain-dock__actions .primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.chain-dock__actions .primary:hover {
  background: rgba(0, 0, 0, 0.82);
}

@media (max-width: 1120px) {
  .chain-dock {
    align-items: flex-start;
    flex-direction: column;
  }

  .chain-dock__metrics {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chain-dock__actions {
    justify-content: flex-start;
  }
}

.app-main {
  min-width: 0;
}

.app-empty-canvas {
  position: fixed;
  left: 280px;
  top: 80px;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.app-empty-canvas__card {
  pointer-events: auto;
  max-width: 520px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  padding: 34px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

@media (max-width: 860px) {
  .app-empty-canvas {
    left: 0;
    top: 220px;
  }
}

@media (max-width: 860px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: relative;
    height: auto;
  }
}

/* Sidebar overflow fixes */
.app-layout {
  overflow: hidden;
}

.app-sidebar {
  width: 280px;
  min-width: 0;
  overflow: hidden;
}

.app-sidebar__brand,
.app-sidebar__section,
.app-sidebar__maps,
.app-sidebar__nav,
.app-sidebar__footer {
  min-width: 0;
}

.app-sidebar__logo {
  min-width: 0;
}

.app-sidebar__logo span:last-child {
  min-width: 0;
  overflow: hidden;
}

.app-sidebar__logo strong,
.app-sidebar__logo small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__primary {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__maps summary {
  min-width: 0;
}

.app-sidebar__maps summary span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__map-list {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.app-sidebar__map-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.app-sidebar__map-link > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.app-sidebar__map-link strong,
.app-sidebar__map-link small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Canvas empty-state should sit in the visible viewport, not the 8000px canvas */
#viewport {
  position: relative;
}

.app-empty-canvas {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.app-empty-canvas__card {
  pointer-events: auto;
}

.map-title-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.map-title-input {
  width: min(560px, 58vw);
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #111111;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: 4px 8px;
}

.map-title-input:hover {
  background: #f7f7f4;
}

.map-title-input:focus {
  border-color: rgba(0, 0, 0, 0.16);
  background: #ffffff;
  outline: none;
}

.map-title-edit {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.map-title-edit:hover {
  background: #f7f7f4;
  color: #111111;
}

.map-title-edit svg {
  width: 16px;
  height: 16px;
}

.app-sidebar__primary-button {
  appearance: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.map-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.32);
}

.map-create-modal {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.map-create-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding: 22px 24px;
}

.map-create-modal__header p {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.map-create-modal__header h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.map-create-modal__header button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.map-create-modal__header button:hover {
  background: #f7f7f4;
}

.map-create-modal__form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.map-create-modal__form label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #111111;
}

.map-create-modal__form input,
.map-create-modal__form select,
.map-create-modal__form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 14px;
  font: inherit;
}

.map-create-modal__form input:focus,
.map-create-modal__form select:focus,
.map-create-modal__form textarea:focus {
  border-color: #111111;
  outline: none;
}

.map-create-modal__notice {
  border-radius: 18px;
  background: #f7f7f4;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.58);
}

.map-create-modal__form button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  padding: 13px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.map-create-modal__form button[type="submit"]:hover {
  background: rgba(0, 0, 0, 0.82);
}

.app-empty-canvas__actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.app-empty-canvas__actions button.primary {
  background: #111111;
  color: #ffffff;
}
