/* Native Admin Studio */
.ns-root { display: grid; gap: 16px; }
.ns-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ns-eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ns-hero h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
}
.ns-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.ns-kpis--inline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-column: 1 / -1;
}
.ns-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  animation: ns-in 0.35s ease both;
}
.ns-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ns-kpi strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}
@keyframes ns-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ns-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ns-tab {
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--muted);
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 12px;
}
.ns-tab.on {
  background: var(--dark);
  color: var(--gold);
  border-color: var(--dark);
}
.ns-panel { min-width: 0; }
.ns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ns-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
  border-radius: 16px;
  overflow: hidden;
}
.ns-card--wide { grid-column: 1 / -1; }
.ns-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ns-card__head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}
.ns-card__head select,
.ns-toolbar input,
.ns-toolbar select,
.ns-form input,
.ns-form select {
  border: 1px solid var(--line);
  background: var(--field-bg);
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
}
.ns-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.ns-toolbar input { flex: 1 1 180px; min-width: 140px; }
.ns-empty { color: var(--muted); margin: 12px 0; }
.ns-table-wrap {
  overflow: auto;
  max-height: 58vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.ns-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
}
.ns-table th,
.ns-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.35;
}
.ns-table th:nth-child(1),
.ns-table td:nth-child(1) { width: 12%; }
.ns-table th:nth-child(2),
.ns-table td:nth-child(2) { width: 10%; }
.ns-table th:nth-child(3),
.ns-table td:nth-child(3) { width: 22%; }
.ns-table th:nth-child(4),
.ns-table td:nth-child(4) { width: 18%; }
.ns-table th:nth-child(5),
.ns-table td:nth-child(5) { width: 14%; }
.ns-table th:nth-child(6),
.ns-table td:nth-child(6) { width: 12%; }
.ns-table th:nth-child(7),
.ns-table td:nth-child(7) { width: 12%; }
.ns-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.ns-table .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ns-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.18);
  color: #6a4e1a;
  font-size: 12px;
  font-weight: 600;
}
.ns-row-actions { white-space: nowrap; }
.ns-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 180px;
}
.ns-bars__col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  justify-items: center;
  animation: ns-in 0.35s ease both;
  min-height: 160px;
}
.ns-bars__val { font-size: 10px; color: var(--muted); }
.ns-bars__track {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  background: rgba(0,0,0,0.04);
}
.ns-bars__fill {
  width: 100%;
  background: linear-gradient(180deg, #e8d5a3, #c9a962);
  min-height: 3px;
}
.ns-bars__label { font-size: 10px; color: var(--muted); text-align: center; }
.ns-hbar { display: grid; gap: 10px; }
.ns-hbar__row { animation: ns-in 0.35s ease both; }
.ns-hbar__meta {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}
.ns-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #1c1814;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.ns-hbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-hbar__val { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ns-hbar__val em { font-style: normal; margin-left: 6px; opacity: 0.7; }
.ns-hbar__track {
  height: 8px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.ns-hbar__fill { height: 100%; transition: width 0.4s ease; }
.ns-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--elevated);
  border-radius: 12px;
  overflow: hidden;
}
.ns-seg button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.ns-seg button.on { background: var(--dark); color: var(--gold); }
.ns-month {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
}
.ns-month strong {
  min-width: 120px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.ns-month__btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ns-month__btn:hover {
  background: rgba(201, 169, 98, 0.22);
}
.ns-cal__head,
.ns-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.ns-cal {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--soft);
}
.ns-cal__head {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.ns-cal__cell {
  min-height: 88px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 14px;
}
.ns-cal__cell.is-pad { background: transparent; border-color: transparent; }
.ns-cal__cell.has { border-color: rgba(201, 169, 98, 0.55); background: var(--soft); }
.ns-cal__day { font-weight: 700; font-size: 12px; }
.ns-cal__events { display: grid; gap: 3px; margin-top: 6px; }
.ns-cal__chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.25;
  padding: 2px 4px;
  border-radius: 6px;
  border-left: 3px solid #c9a962;
  background: rgba(201, 169, 98, 0.2);
  overflow: hidden;
}
.ns-cal__chip-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns-cal__guests {
  flex: 0 0 auto;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  background: rgba(20, 17, 14, 0.72);
  color: #fff;
}
.ns-cal__chip--draft { background: rgba(140,140,140,.14); border-left-color: #8d867c; }
.ns-cal__chip--confirm { background: rgba(90,160,255,.16); border-left-color: #5aa0ff; }
.ns-cal__chip--prepay { background: rgba(255,166,13,.18); border-left-color: #ffa60d; }
.ns-cal__chip--paid { background: rgba(64,190,120,.18); border-left-color: #40be78; }
.ns-cal__chip--done { background: rgba(56,178,172,.16); border-left-color: #38b2ac; }
.ns-cal__chip--move { background: rgba(167,139,250,.16); border-left-color: #a78bfa; }
.ns-cal__chip--cancel { background: rgba(255,106,61,.14); border-left-color: #ff6a3d; opacity: .85; text-decoration: line-through; }
.ns-day { margin-bottom: 14px; }
.ns-day__head {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ns-event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--elevated);
  margin-bottom: 6px;
  cursor: pointer;
}
.ns-event__time { color: var(--gold-ink, #8a6a2b); font-weight: 700; font-size: 13px; }
.ns-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--dark);
  color: var(--gold);
  padding: 12px 16px;
  z-index: 40;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.ns-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.ns-modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.ns-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ns-modal h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
}
.ns-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.ns-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.ns-form .ns-span2 { grid-column: 1 / -1; }
.ns-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .ns-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ns-kpis, .ns-kpis--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-form { grid-template-columns: 1fr; }

.main--studio{padding:12px 0 24px;}
