/* ==========================================================================
   MindSprout — owner studio
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.studio-body {
  background: #f2efe5;
  min-height: 100vh;
}

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

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.studio-sidebar {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  background: var(--ink);
  color: var(--cream);
  overflow-y: auto;
  scrollbar-width: thin;
}

.studio-sidebar-top {
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.studio-sidebar .brand {
  margin-bottom: 0.5rem;
}

.studio-brand-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, 0.45);
}

.studio-nav {
  display: grid;
  gap: 4px;
  padding: 18px 0;
}

.studio-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.68rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.studio-nav-btn:hover {
  background: rgba(255, 250, 240, 0.08);
  color: var(--cream);
}

.studio-nav-btn.is-active {
  background: rgba(255, 250, 240, 0.13);
  color: var(--cream);
  box-shadow: inset 3px 0 0 var(--sun);
}

.studio-nav-icon {
  width: 22px;
  text-align: center;
  font-size: 1rem;
}

.studio-nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
}

.studio-nav-count:empty,
.studio-nav-count[data-empty="true"] {
  display: none;
}

.studio-sidebar-bottom {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 250, 240, 0.1);
}

.studio-health {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 250, 240, 0.52);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(79, 190, 122, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
  flex: 0 0 auto;
}

.studio-side-link {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(255, 250, 240, 0.72);
}

.studio-side-link:hover {
  color: var(--cream);
}

.studio-side-link.muted {
  color: rgba(255, 250, 240, 0.45);
}

.studio-sidebar .brand-name {
  color: var(--cream);
}

.studio-sidebar .brand-name span {
  color: #9be9bb;
}

.studio-sidebar .brand-mark {
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.14);
}

/* --------------------------------------------------------------------------
   Main + top bar
   -------------------------------------------------------------------------- */

.studio-main {
  min-width: 0;
}

.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.9rem clamp(1rem, 2.5vw, 2rem);
  background: rgba(242, 239, 229, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 49, 63, 0.08);
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.studio-breadcrumb {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.studio-breadcrumb span {
  color: var(--leaf-deep);
}

.studio-topnote {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.studio-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  animation: pulse-dot 2s ease-in-out infinite;
}

.studio-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  flex: 0 0 auto;
}

.studio-menu span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.studio-content {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2.5vw, 2rem) 4rem;
}

.studio-panel {
  display: none;
}

.studio-panel.is-active {
  display: block;
  animation: fade-in 0.3s ease both;
}

.studio-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.studio-eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.studio-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.studio-heading-sub {
  max-width: 720px;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.studio-date {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  text-align: right;
  box-shadow: var(--shadow-sm);
}

.studio-date-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.studio-date strong {
  font-size: 0.85rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Metrics
   -------------------------------------------------------------------------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  border-radius: 12px;
  background: var(--sun-soft);
  font-size: 1.1rem;
}

.metric-card:nth-child(2) .metric-icon { background: var(--sky-soft); }
.metric-card:nth-child(3) .metric-icon { background: var(--leaf-soft); }
.metric-card:nth-child(4) .metric-icon { background: var(--coral-soft); }

.metric-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.metric-value {
  margin: 0.2rem 0 0.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-foot {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Cards + dashboard grids
   -------------------------------------------------------------------------- */

.studio-card {
  padding: 1.3rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.studio-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.studio-grid-chart {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
}

.studio-grid-lower {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card-head h2 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.card-chip {
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.card-link-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--leaf-deep);
}

.card-link-btn:hover {
  color: var(--ink);
}

/* Chart */

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.5rem;
  height: 210px;
  padding-top: 0.5rem;
}

.chart-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  min-width: 0;
}

.chart-bar {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 40px;
  min-height: 3px;
  border-radius: 7px 7px 3px 3px;
  overflow: hidden;
  background: var(--cream-deep);
}

.chart-seg {
  width: 100%;
  flex: 0 0 auto;
}

.chart-day {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
}

.chart-col.is-today .chart-day {
  color: var(--ink);
  font-weight: 900;
}

.chart-empty {
  grid-column: 1 / -1;
  align-self: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Attention / activity */

.attention-list {
  display: grid;
  gap: 0.55rem;
}

.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--cream);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.attention-item:hover {
  border-color: var(--sun);
  transform: translateX(2px);
}

.attention-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--white);
  font-size: 0.9rem;
}

.attention-copy {
  min-width: 0;
}

.attention-copy strong {
  display: block;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attention-copy small {
  display: block;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.empty-mini {
  padding: 1.4rem 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.activity-list {
  display: grid;
  gap: 0.1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.9rem;
}

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.activity-copy small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.activity-time {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.activity-list-tall {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.sample-tag {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  margin-left: 0.35rem;
  border-radius: 4px;
  background: var(--cream-deep);
  color: var(--ink-muted);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.quick-actions {
  display: grid;
  gap: 0.45rem;
}

.quick-actions button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-actions button:hover {
  background: var(--sun-soft);
  border-color: var(--sun);
}

.notice-mini {
  margin-top: 0.9rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--coral-soft);
  color: #8f3d2f;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Toolbars, segmented control
   -------------------------------------------------------------------------- */

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: #e8e3d6;
  border: 1px solid rgba(20, 49, 63, 0.06);
}

.segmented button {
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 49, 63, 0.12);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-field select,
.toolbar-field input {
  height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.toolbar-search input {
  min-width: 190px;
}

/* --------------------------------------------------------------------------
   Feedback inbox
   -------------------------------------------------------------------------- */

.feedback-list {
  display: grid;
  gap: 0.75rem;
}

.feedback-item {
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.feedback-item.is-resolved {
  background: #fbfaf4;
}

.feedback-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.feedback-item-head time {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-complaint { background: var(--coral-soft); color: var(--coral-deep); }
.type-suggestion { background: var(--sky-soft); color: #1f7cad; }
.type-praise { background: var(--leaf-soft); color: var(--leaf-deep); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-open { background: var(--sun-soft); color: #7a5a00; }
.status-resolved { background: var(--leaf-soft); color: var(--leaf-deep); }
.status-ok { background: var(--leaf-soft); color: var(--leaf-deep); }
.status-refunded { background: var(--coral-soft); color: var(--coral-deep); }
.status-paused { background: var(--cream-deep); color: var(--ink-muted); }

.feedback-message {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.feedback-meta {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.feedback-meta a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback-meta .feedback-stars {
  color: var(--sun);
  letter-spacing: 0.08em;
}

.feedback-tools {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-soft);
}

.feedback-tools .studio-field {
  margin-bottom: 0.55rem;
}

.feedback-tools textarea {
  min-height: 58px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-danger-ghost {
  background: transparent;
  border-color: var(--coral-soft);
  color: var(--coral-deep);
}

.btn-danger-ghost:hover {
  background: var(--coral-soft);
  border-color: var(--coral);
}

/* --------------------------------------------------------------------------
   Orders table
   -------------------------------------------------------------------------- */

.table-card {
  padding: 0.6rem;
}

.table-wrap {
  overflow-x: auto;
}

.studio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.studio-table th {
  padding: 0.6rem 0.7rem;
  text-align: left;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.studio-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.76rem;
  font-weight: 600;
  vertical-align: middle;
}

.studio-table tbody tr:last-child td {
  border-bottom: 0;
}

.studio-table .order-id {
  font-weight: 900;
  white-space: nowrap;
}

.studio-table .order-customer strong {
  display: block;
  font-weight: 900;
}

.studio-table .order-customer small {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.table-actions {
  display: flex;
  gap: 0.3rem;
  justify-content: flex-end;
}

.table-btn {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.table-btn:hover {
  background: var(--cream);
}

.table-btn.danger {
  color: var(--coral-deep);
  border-color: var(--coral-soft);
}

.table-btn.danger:hover {
  background: var(--coral-soft);
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 2.4rem;
}

.empty-state h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.empty-state.small {
  padding: 2rem 1rem;
}

.empty-state.small h2 {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Settings / forms
   -------------------------------------------------------------------------- */

.settings-form {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.settings-stack {
  display: grid;
  gap: 1rem;
}

.studio-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.studio-field > span {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.studio-field input,
.studio-field textarea,
.studio-field select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid var(--line-soft);
  border-radius: 10px;
  background: #fcfaf5;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
  resize: vertical;
}

.studio-field input:focus,
.studio-field textarea:focus,
.studio-field select:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--white);
}

.studio-field small {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.studio-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.switch-list {
  display: grid;
  gap: 0.2rem;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-row > span strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.switch-row > span small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.4;
}

.switch-row input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d8d2c2;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
}

.switch-row input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(20, 49, 63, 0.18);
  transition: transform 0.18s ease;
}

.switch-row input:checked {
  background: var(--leaf);
}

.switch-row input:checked::after {
  transform: translateX(20px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}

.form-hint {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hint {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.5;
}

.plain-list {
  display: grid;
  gap: 0.5rem;
}

.plain-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sun-deep);
}

.card-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
}

.gpay-g-admin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}

.payment-method-copy {
  flex: 1;
}

.payment-method-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
}

.payment-method-copy small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.method-lock {
  font-size: 1rem;
}

.launch-checklist {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--sun-soft);
  border: 1px dashed #e3c45a;
}

.launch-checklist h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d5000;
  margin-bottom: 0.4rem;
}

.launch-checklist ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.launch-checklist li {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6d5000;
  line-height: 1.5;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.owner-warning {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: var(--coral-soft);
  border: 1px solid rgba(220, 81, 61, 0.18);
}

.owner-warning strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--coral-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.owner-warning p {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8f3d2f;
  line-height: 1.5;
}

.check-list {
  display: grid;
  gap: 0.45rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 0.58rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Responsive studio
   -------------------------------------------------------------------------- */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(13, 37, 48, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.studio-body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-grid-chart,
  .studio-grid-lower,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .attention-card {
    order: 2;
  }
}

@media (max-width: 980px) {
  .studio-shell {
    display: block;
  }

  .studio-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 210;
    width: 282px;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 20px 0 50px rgba(13, 37, 48, 0.25);
  }

  .studio-body.sidebar-open .studio-sidebar {
    transform: none;
  }

  .studio-menu {
    display: flex;
  }

  .studio-topnote {
    display: none;
  }

  .studio-topbar {
    min-height: 68px;
  }

  .studio-heading {
    flex-direction: column;
    gap: 0.7rem;
  }

  .studio-date {
    text-align: left;
    min-width: 0;
  }

  .studio-date-label {
    display: inline;
    margin-right: 0.4rem;
  }

  .studio-date strong {
    display: inline;
  }
}

@media (max-width: 700px) {
  .studio-topbar-actions .topbar-hide {
    display: none;
  }

  .studio-heading-sub {
    font-size: 0.8rem;
  }

  .metric-grid {
    gap: 0.6rem;
  }

  .metric-card {
    padding: 0.85rem;
  }

  .metric-value {
    font-size: 1.6rem;
  }

  .studio-card {
    padding: 1rem;
  }

  .chart {
    height: 170px;
    gap: 0.25rem;
  }

  .chart-day {
    font-size: 0.52rem;
  }

  .panel-toolbar {
    align-items: stretch;
  }

  .toolbar-right {
    width: 100%;
  }

  .toolbar-field {
    flex: 1;
  }

  .toolbar-field select,
  .toolbar-field input {
    width: 100%;
  }

  .toolbar-search {
    flex-basis: 100%;
  }

  .feedback-item-head time {
    margin-left: 0;
  }

  .studio-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions .btn {
    flex: 1;
  }

  .studio-heading h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 460px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .studio-topbar {
    padding-inline: 0.75rem;
  }

  .studio-topbar-actions .live-chip {
    display: none;
  }

  .studio-content {
    padding-inline: 0.75rem;
  }

  .segmented {
    border-radius: 14px;
  }

  .segmented button {
    flex: 1;
  }

  .workspace-actions .btn,
  .owner-actions .btn {
    flex: 1;
  }
}

/* Small additions */
.chart-bar {
  max-height: calc(100% - 24px);
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
