:root {
  --review-violet: #6d4aff;
  --review-violet-strong: #5534e8;
  --review-violet-soft: #f2efff;
  --review-ink: #172033;
  --review-muted: #788399;
  --review-line: #e8ebf2;
  --review-canvas: #f7f8fc;
  --review-success: #15966f;
  --review-warning: #d98400;
  --review-danger: #d94a57;
}

.geo-review-menu-entry {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.geo-review-menu-entry:hover,
.geo-review-menu-entry.is-active {
  border-color: rgb(196 181 253 / 0.55);
  background: #f5f3ff;
  color: #6d28d9;
}

.geo-review-menu-entry svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.geo-review-admin-nav-muted {
  border-color: transparent !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

.geo-review-shell,
.geo-review-shell * {
  box-sizing: border-box;
}

.geo-review-shell {
  position: fixed;
  z-index: 39;
  inset: 56px 0 0 240px;
  overflow: auto;
  background:
    radial-gradient(circle at 8% 0%, rgb(109 74 255 / 0.07), transparent 24rem),
    var(--review-canvas);
  color: var(--review-ink);
  font-family: inherit;
  animation: geo-review-enter 180ms ease-out both;
}

@keyframes geo-review-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.geo-review-page {
  width: min(1500px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 30px 32px 44px;
}

.geo-review-heading,
.geo-review-heading-actions,
.geo-review-tabs,
.geo-review-toolbar,
.geo-review-card-title,
.geo-review-source,
.geo-review-actions,
.geo-review-modal-actions {
  display: flex;
  align-items: center;
}

.geo-review-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.geo-review-eyebrow {
  margin: 0 0 6px;
  color: var(--review-violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.geo-review-heading h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.geo-review-heading p:last-child {
  margin: 8px 0 0;
  color: var(--review-muted);
  font-size: 13px;
}

.geo-review-heading-actions {
  flex: none;
  gap: 10px;
}

.geo-review-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--review-line);
  border-radius: 11px;
  background: #fff;
  color: #445069;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.geo-review-button:hover:not(:disabled) {
  border-color: #c9c2f5;
  color: var(--review-violet-strong);
  transform: translateY(-1px);
}

.geo-review-button:focus-visible,
.geo-review-tab:focus-visible,
.geo-review-menu-entry:focus-visible,
.geo-review-input:focus-visible,
.geo-review-select:focus-visible,
.geo-review-textarea:focus-visible {
  outline: 3px solid rgb(109 74 255 / 0.18);
  outline-offset: 2px;
}

.geo-review-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.geo-review-button.primary {
  border-color: var(--review-violet);
  background: var(--review-violet);
  color: #fff;
  box-shadow: 0 8px 18px rgb(109 74 255 / 0.2);
}

.geo-review-button.primary:hover:not(:disabled) {
  border-color: var(--review-violet-strong);
  background: var(--review-violet-strong);
  color: #fff;
}

.geo-review-button.danger {
  border-color: #f2c8cd;
  color: var(--review-danger);
}

.geo-review-button.danger:hover:not(:disabled) {
  border-color: var(--review-danger);
  background: #fff5f6;
  color: #bc303e;
}

.geo-review-overview {
  display: grid;
  grid-template-columns: minmax(760px, 3.6fr) repeat(3, minmax(135px, 0.8fr));
  gap: 12px;
  margin-bottom: 18px;
}

.geo-review-tabs {
  min-width: 0;
  min-height: 118px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--review-line);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 12px 32px rgb(46 49 75 / 0.055);
}

.geo-review-tab {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 7px;
  min-height: 88px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfbfe, #f8f9fc);
  color: #5d687c;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.geo-review-tab:hover {
  border-color: #e1dcfb;
  box-shadow: 0 8px 20px rgb(79 55 176 / 0.08);
  transform: translateY(-1px);
}

.geo-review-tab.is-active {
  border-color: #cfc5ff;
  background: linear-gradient(145deg, #f3f0ff, #eeebff);
  color: var(--review-violet-strong);
  box-shadow: 0 9px 24px rgb(85 52 232 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.9);
}

.geo-review-tab-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--review-violet);
  box-shadow: inset 0 0 0 1px #e8e2ff;
}

.geo-review-tab-icon svg {
  width: 20px;
  height: 20px;
}

.geo-review-tab strong,
.geo-review-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-review-tab strong {
  color: var(--review-ink);
  font-size: 13px;
  line-height: 1.25;
}

.geo-review-tab small {
  margin-top: 4px;
  color: #8992a5;
  font-size: 10px;
}

.geo-review-tab em {
  grid-column: 2;
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff8e7;
  color: var(--review-warning);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.geo-review-stat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--review-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgb(109 74 255 / 0.08), transparent 70px),
    #fff;
  box-shadow: 0 12px 32px rgb(46 49 75 / 0.055);
}

.geo-review-stat::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #8b73ff, #5f3ee9);
  content: "";
}

.geo-review-stat span {
  color: var(--review-muted);
  font-size: 11px;
  font-weight: 600;
}

.geo-review-stat strong {
  margin-top: 10px;
  color: var(--review-ink);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.geo-review-panel {
  overflow: hidden;
  border: 1px solid var(--review-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(46 49 75 / 0.055);
}

.geo-review-toolbar {
  min-height: 66px;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--review-line);
}

.geo-review-search {
  position: relative;
  min-width: 230px;
  flex: 1;
}

.geo-review-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: #95a0b3;
  transform: translateY(-50%);
  pointer-events: none;
}

.geo-review-input,
.geo-review-select,
.geo-review-textarea {
  border: 1px solid var(--review-line);
  border-radius: 11px;
  background: #fff;
  color: var(--review-ink);
  font: inherit;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.geo-review-input:hover,
.geo-review-select:hover,
.geo-review-textarea:hover {
  border-color: #cfc8f6;
}

.geo-review-input {
  width: 100%;
  height: 40px;
  padding: 0 13px 0 40px;
}

.geo-review-select {
  width: 132px;
  height: 40px;
  padding: 0 32px 0 12px;
}

.geo-review-updated {
  margin-left: auto;
  color: #99a2b3;
  font-size: 10px;
  white-space: nowrap;
}

.geo-review-table-wrap {
  min-height: 390px;
  overflow: auto;
}

.geo-review-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.geo-review-table th {
  height: 42px;
  padding: 0 14px;
  background: #f8f9fc;
  color: #7c879b;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.geo-review-table td {
  min-height: 64px;
  padding: 13px 14px;
  border-top: 1px solid #eff1f5;
  color: #4b566b;
  vertical-align: middle;
}

.geo-review-table tbody tr:hover {
  background: #fbfaff;
}

.geo-review-table strong,
.geo-review-table small {
  display: block;
}

.geo-review-table strong {
  overflow: hidden;
  color: var(--review-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-review-table small {
  margin-top: 4px;
  overflow: hidden;
  color: #929caf;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-review-tags,
.geo-review-source {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.geo-review-tag,
.geo-review-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.geo-review-tag {
  padding: 3px 7px;
  background: #f2f4f8;
  color: #5f6a7e;
  font-size: 9px;
}

.geo-review-source {
  flex-wrap: nowrap;
  color: var(--review-violet-strong);
  font-size: 10px;
  font-weight: 650;
}

.geo-review-source svg {
  width: 14px;
  height: 14px;
}

.geo-review-status {
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 700;
}

.geo-review-status.pending_review {
  background: #fff6df;
  color: var(--review-warning);
}

.geo-review-status.approved {
  background: #e9f8f2;
  color: var(--review-success);
}

.geo-review-status.rejected {
  background: #fff0f2;
  color: var(--review-danger);
}

.geo-review-actions {
  flex-wrap: wrap;
  gap: 6px;
}

.geo-review-actions .geo-review-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10px;
}

.geo-review-empty,
.geo-review-loading {
  display: grid;
  min-height: 390px;
  place-content: center;
  color: #929caf;
  text-align: center;
}

.geo-review-empty strong {
  margin-top: 10px;
  color: #536077;
  font-size: 13px;
}

.geo-review-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid #e7e3fb;
  border-top-color: var(--review-violet);
  border-radius: 50%;
  animation: geo-review-spin 700ms linear infinite;
}

@keyframes geo-review-spin { to { transform: rotate(360deg); } }

.geo-review-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 0.34);
  backdrop-filter: blur(4px);
}

.geo-review-modal {
  width: min(700px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(23 32 51 / 0.22);
  animation: geo-review-modal-enter 170ms ease-out both;
}

@keyframes geo-review-modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.geo-review-modal-head,
.geo-review-modal-body,
.geo-review-modal-actions {
  padding: 20px 22px;
}

.geo-review-modal-head {
  border-bottom: 1px solid var(--review-line);
}

.geo-review-modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.geo-review-modal-head p {
  margin: 6px 0 0;
  color: var(--review-muted);
  font-size: 11px;
}

.geo-review-modal-body {
  display: grid;
  gap: 14px;
}

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

.geo-review-detail {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fafbfe;
}

.geo-review-detail.wide {
  grid-column: 1 / -1;
}

.geo-review-detail span,
.geo-review-detail strong {
  display: block;
}

.geo-review-attachments {
  display: grid;
  gap: 12px;
}

.geo-review-attachment-group {
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 13px;
  background: #fafbfe;
}

.geo-review-attachment-group h3 {
  margin: 0 0 9px;
  color: #59657a;
  font-size: 11px;
}

.geo-review-attachment-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.geo-review-attachment {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 10px;
  border: 1px solid #e5e8f0;
  border-radius: 10px;
  background: #fff;
  color: #4f5b70;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.geo-review-attachment:hover {
  border-color: #cfc8f6;
  background: #f8f6ff;
}

.geo-review-attachment:disabled {
  cursor: wait;
  opacity: 0.62;
}

.geo-review-attachment > span {
  display: grid;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--review-violet-soft);
  color: var(--review-violet);
}

.geo-review-attachment svg {
  width: 16px;
  height: 16px;
}

.geo-review-attachment strong,
.geo-review-attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-review-attachment strong { font-size: 11px; }
.geo-review-attachment small { color: #929caf; font-size: 9px; }
.geo-review-attachment-empty { margin: 0; color: #929caf; font-size: 10px; }

.geo-review-preview-image,
.geo-review-preview-frame {
  display: block;
  width: 100%;
  min-height: 460px;
  border: 1px solid var(--review-line);
  border-radius: 12px;
  background: #f5f6f9;
}

.geo-review-preview-image {
  max-height: 62vh;
  object-fit: contain;
}

.geo-review-preview-frame { height: 62vh; }

.geo-review-preview-download {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #59657a;
  text-align: center;
}

.geo-review-preview-download p {
  margin: -5px 0 2px;
  color: #929caf;
  font-size: 10px;
}

.geo-review-detail span {
  color: #8b96a9;
  font-size: 9px;
}

.geo-review-detail strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.geo-review-field label {
  display: block;
  margin-bottom: 7px;
  color: #4d596e;
  font-size: 11px;
  font-weight: 650;
}

.geo-review-textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

.geo-review-field-error {
  min-height: 17px;
  margin: 6px 0 0;
  color: var(--review-danger);
  font-size: 10px;
}

.geo-review-modal-actions {
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--review-line);
}

.geo-review-toast-stack {
  position: fixed;
  z-index: 100;
  top: 80px;
  right: 24px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.geo-review-toast {
  padding: 13px 15px;
  border: 1px solid #e6e9f1;
  border-left: 3px solid var(--review-violet);
  border-radius: 12px;
  background: #fff;
  color: #445069;
  font-size: 11px;
  box-shadow: 0 14px 38px rgb(23 32 51 / 0.14);
  animation: geo-review-enter 160ms ease-out both;
}

.geo-review-toast.error {
  border-left-color: var(--review-danger);
}

@media (max-width: 1400px) {
  .geo-review-page { padding-inline: 20px; }
  .geo-review-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .geo-review-tabs { grid-column: 1 / -1; }
  .geo-review-stat { min-height: 96px; }
}

@media (max-width: 1180px) {
  .geo-review-tab { grid-template-columns: 36px minmax(0, 1fr); }
  .geo-review-tab-icon { width: 36px; height: 36px; }
}

@media (max-width: 900px) {
  .geo-review-shell { inset: 56px 0 0; }
}

@media (max-width: 640px) {
  .geo-review-page { padding: 20px 14px 34px; }
  .geo-review-heading { align-items: flex-start; flex-direction: column; }
  .geo-review-heading-actions { width: 100%; }
  .geo-review-heading-actions .geo-review-button { flex: 1; }
  .geo-review-overview { grid-template-columns: 1fr; }
  .geo-review-tabs { align-items: stretch; flex-direction: column; }
  .geo-review-tab { min-height: 68px; }
  .geo-review-stat { min-height: 80px; }
  .geo-review-toolbar { align-items: stretch; flex-direction: column; }
  .geo-review-search { width: 100%; }
  .geo-review-select { width: 100%; }
  .geo-review-updated { margin-left: 0; }
  .geo-review-detail-grid { grid-template-columns: 1fr; }
  .geo-review-attachment-group > div { grid-template-columns: 1fr; }
  .geo-review-preview-image,
  .geo-review-preview-frame { min-height: 340px; height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  .geo-review-shell,
  .geo-review-modal,
  .geo-review-toast {
    animation: none;
  }
}
