:root {
  --poi-border: #e7ebf2;
  --poi-blue: #4c8df6;
  --poi-blue-dark: #2463d3;
  --poi-sidebar: #1d2338;
  --poi-sidebar-2: #252b45;
  --poi-text: #1f2937;
  --poi-muted: #64748b;
  --poi-bg: #f6f8fc;
}

.poi-page {
  background: var(--poi-bg);
}

.poi-page .dash-main {
  min-height: 100vh;
  background: #fff;
}

.poi-page .dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--poi-border);
}

.poi-page .search-box {
  max-width: 376px;
  border-radius: 12px;
  background: #f7f9fc;
  border-color: #dfe5ef;
}

.poi-page .dash-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px 32px 48px;
}

.poi-sidebar {
  background: linear-gradient(180deg, var(--poi-sidebar) 0%, var(--poi-sidebar-2) 100%);
}

.poi-sidebar .logo {
  width: 118px;
}

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

.poi-title-wrap,
.poi-menu-anchor {
  position: relative;
}

.poi-title-btn {
  border: 0;
  background: transparent;
  font: inherit;
  color: #14213d;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
}

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

.poi-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d8601f;
}

.poi-warning a {
  color: #2463d3;
  text-decoration: none;
}

.poi-icon-btn,
.poi-primary-btn,
.poi-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.poi-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #d7dde7;
  background: #fff;
  color: #334155;
}

.poi-primary-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  background: var(--poi-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(76, 141, 246, 0.18);
}

.poi-outline-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d5dce8;
  background: #fff;
  color: #334155;
  font-weight: 600;
}

.poi-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.poi-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d6ddea;
  border-radius: 10px;
  background: #fff;
  color: #3f4a5f;
}

.poi-chip select {
  border: 0;
  background: transparent;
  font: inherit;
  color: #334155;
  outline: 0;
  min-width: 170px;
}

.poi-empty {
  min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.poi-empty-card {
  max-width: 820px;
  margin: 0 auto;
}

.poi-empty-figure {
  width: 760px;
  max-width: 100%;
  min-height: 270px;
  margin: 0 auto 20px;
  position: relative;
}

.poi-board {
  width: 370px;
  height: 230px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e3ebff 0%, #f4f7ff 100%);
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  box-shadow: inset 0 -24px 0 rgba(255, 255, 255, 0.55);
}

.poi-board::before,
.poi-board::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(194, 206, 236, 0.7);
}

.poi-board::before {
  top: 48px;
}

.poi-board::after {
  top: 104px;
}

.poi-card-line,
.poi-card-line-2 {
  position: absolute;
  left: 96px;
  width: 92px;
  height: 5px;
  background: #c4d2fb;
  border-radius: 999px;
}

.poi-card-line {
  top: 70px;
}

.poi-card-line-2 {
  top: 126px;
}

.poi-check,
.poi-cross {
  position: absolute;
  right: 56px;
  width: 62px;
  height: 24px;
  border-radius: 6px;
}

.poi-check {
  top: 112px;
  background: #54d36b;
}

.poi-cross {
  top: 58px;
  background: #f26464;
}

.poi-step {
  position: absolute;
  max-width: 150px;
  font-size: 14px;
  line-height: 1.35;
  color: #96a6c8;
  font-weight: 700;
}

.poi-step.left {
  left: 20px;
  top: 110px;
  text-align: right;
}

.poi-step.right {
  right: 0;
  top: 18px;
  text-align: left;
}

.poi-step.bottom {
  right: 36px;
  top: 118px;
  text-align: left;
}

.poi-empty-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  color: #111827;
}

.poi-empty-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #52627f;
}

.poi-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: none;
  z-index: 40;
}

.poi-dropdown.right {
  left: auto;
  right: 0;
  min-width: 200px;
}

.poi-dropdown[aria-hidden="false"] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poi-dropdown a,
.poi-dropdown button {
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #334155;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.poi-dropdown a.active,
.poi-dropdown a:hover,
.poi-dropdown button:hover {
  background: #edf4ff;
  color: #2463d3;
}

.poi-table-wrap {
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  overflow: hidden;
}

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

.poi-table th,
.poi-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
}

.poi-table th {
  font-size: 12px;
  color: #556987;
  text-transform: uppercase;
  font-weight: 700;
}

.poi-table td {
  font-size: 14px;
  color: #1f2937;
}

.poi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.poi-pill.enabled {
  color: #0f7b43;
  background: #dff8e9;
}

.poi-pill.locked {
  color: #b45309;
  background: #fff0e6;
}

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

.poi-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #2463d3;
}

.poi-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.poi-heading h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.poi-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poi-lock-note {
  color: #666;
  font-size: 14px;
}

.poi-lock-note a {
  color: #2463d3;
  text-decoration: none;
}

.poi-settings-page {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f8faff;
  color: #111827;
}

.poi-settings-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f9fafc;
  display: grid;
  grid-template-columns: 280px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--poi-border);
}

.poi-settings-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.poi-settings-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--poi-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #ef4444;
  font-size: 24px;
}

.poi-settings-title {
  font-size: 18px;
  font-weight: 800;
}

.poi-settings-sub {
  margin-top: 4px;
  color: var(--poi-muted);
  font-size: 13px;
}

.poi-settings-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f5fb;
  border: 1px solid var(--poi-border);
  padding: 12px 14px;
  border-radius: 16px;
}

.poi-settings-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.poi-settings-close {
  background: #fff;
  border: 1px solid var(--poi-border);
  color: var(--poi-text);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poi-settings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 86px);
}

.poi-settings-sidebar {
  background: #fff;
  border-right: 1px solid var(--poi-border);
  padding: 10px 0 20px;
}

.poi-sidebar-group-title {
  padding: 18px 20px 8px;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
}

.poi-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poi-settings-link,
.poi-settings-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.poi-settings-parent.active,
.poi-settings-link.active {
  background: #4c8df6;
  color: #fff;
}

.poi-settings-subnav {
  display: flex;
  flex-direction: column;
}

.poi-settings-subnav a {
  padding: 12px 34px;
  color: #1f2937;
  text-decoration: none;
}

.poi-settings-subnav a.active {
  background: #4c8df6;
  color: #fff;
}

.poi-settings-main {
  padding: 18px 22px 30px;
}

.poi-settings-card {
  background: #fff;
  border: 1px solid var(--poi-border);
  border-radius: 16px;
  overflow: hidden;
}

.poi-settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--poi-border);
}

.poi-settings-card-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.poi-settings-tabs {
  display: flex;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--poi-border);
}

.poi-settings-tabs a {
  display: inline-flex;
  padding: 16px 0 14px;
  color: #2563eb;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.poi-settings-tabs a.active {
  color: #111827;
  border-bottom-color: #4c8df6;
}

.poi-settings-body {
  padding: 22px;
}

.poi-inline-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef7ff;
  color: #2463d3;
}

.poi-locked-card {
  margin-top: 26px;
  border: 1px solid var(--poi-border);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
}

.poi-lock-illus {
  width: 180px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50px;
  background: radial-gradient(circle at 50% 30%, #dfe7ff 0, #eef3ff 45%, transparent 46%);
  position: relative;
}

.poi-lock-illus::before {
  content: "";
  width: 62px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(180deg, #7e69d9, #8d31be);
  position: absolute;
  left: 54px;
  top: 34px;
}

.poi-locked-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.poi-locked-card p {
  max-width: 780px;
  margin: 0 auto 24px;
  color: #334155;
  line-height: 1.5;
}

.poi-config-grid {
  display: grid;
  grid-template-columns: 1.7fr 240px 1fr;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
}

.poi-config-copy {
  font-size: 16px;
  line-height: 1.65;
}

.poi-config-copy .good {
  color: #16a34a;
}

.poi-config-select select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}

.poi-check-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 26px 0;
}

.poi-check-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.poi-check-list input {
  width: 20px;
  height: 20px;
}

.poi-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.poi-modal[aria-hidden="false"] {
  display: flex;
}

.poi-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.poi-modal-card {
  position: relative;
  width: min(750px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.poi-modal-card.small {
  width: min(540px, 92vw);
}

.poi-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--poi-border);
}

.poi-modal-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.poi-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef3fb;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.poi-modal-body {
  padding: 28px;
}

.poi-modal-actions {
  display: flex;
  gap: 12px;
  padding: 0 28px 24px;
}

.poi-alert-modal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.poi-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff9d3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.poi-alert-modal h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.poi-alert-modal p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.poi-list-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.poi-list-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #14213d;
}

.poi-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf4ff;
  color: #4c8df6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.poi-list-table-wrap {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.poi-release-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #59667d;
  font-size: 15px;
}

.poi-release-note a {
  color: #2563eb;
  text-decoration: none;
}

.poi-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.poi-status-pill.enabled {
  background: #daf5ea;
  color: #157347;
}

.poi-status-pill.locked {
  background: #fde5db;
  color: #b45309;
}

.poi-empty-row {
  padding: 42px 14px;
  text-align: center;
  color: #64748b;
}

.poi-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.poi-form-group label {
  font-size: 16px;
  color: #1f2937;
}

.poi-modal-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7ddea;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  color: #334155;
}

.poi-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #111827;
}

.poi-check-inline input {
  width: 20px;
  height: 20px;
}

.poi-inline-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.poi-text-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.poi-entry-card {
  max-width: 920px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  padding: 28px;
}

.poi-entry-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #14213d;
}

.poi-entry-head p {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.5;
}

.poi-entry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.poi-text-input,
.poi-textarea,
.poi-static-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7ddea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #334155;
  background: #fff;
}

.poi-textarea {
  min-height: 120px;
  resize: vertical;
}

.poi-static-field {
  display: flex;
  align-items: center;
  background: #f8fafc;
}

.poi-entry-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.poi-flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.poi-flash.ok {
  background: #effdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.poi-flash.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 960px) {
  .poi-settings-top {
    grid-template-columns: 1fr;
  }

  .poi-settings-layout {
    grid-template-columns: 1fr;
  }

  .poi-config-grid {
    grid-template-columns: 1fr;
  }

  .poi-entry-grid {
    grid-template-columns: 1fr;
  }

  .poi-page .dash-content {
    padding: 16px 14px 32px;
  }
}
