.woo-panel-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

/* ─── Accordion ──────────────────────────────────────────────────────────── */

.woo-panel-copy { display: flex; flex-direction: column; }
.woo-acc-list { display: flex; flex-direction: column; }
.woo-acc-item { border-top: 1px solid var(--border); }
.woo-acc-item:last-child { border-bottom: 1px solid var(--border); }

.woo-acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 2px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.woo-acc-ic {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.woo-acc-ic svg { width: 15px; height: 15px; }

.woo-acc-item.active .woo-acc-ic { background: var(--accent); color: #fff; }

.woo-acc-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--fg); }

.woo-acc-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--fg-mute);
  transition: transform .25s ease, color .25s ease;
}
.woo-acc-item.active .woo-acc-chevron { transform: rotate(45deg); color: var(--accent); }

.woo-acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.woo-acc-item.active .woo-acc-body { max-height: 160px; }

.woo-acc-body-inner { padding: 0 2px 22px 62px; }
.woo-acc-body-inner p { margin: 0 0 10px; font-size: 14px; color: var(--fg-dim); line-height: 1.55; max-width: 380px; }
.woo-acc-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; cursor: default; }
a.woo-acc-link { cursor: pointer; }
a.woo-acc-link:hover { text-decoration: underline; }

/* ─── Device frame ───────────────────────────────────────────────────────── */

.woo-device-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 10, 20, .2);
}
.woo-device-frame.woo-device-frame--sticky { position: sticky; top: 100px; }

.woo-device-chrome {
  height: 36px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.woo-device-dots { display: flex; gap: 6px; }
.woo-device-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }
.woo-device-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--fg-mute);
  text-align: center;
}

.woo-panel-stage { position: relative; min-height: 300px; padding: 24px; }

.woo-panel-view {
  position: absolute;
  inset: 0;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.woo-panel-view.active { opacity: 1; pointer-events: auto; }

.woo-view-title {
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* staging view */
.woo-stage-row { display: flex; gap: 12px; }
.woo-stage-card { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.woo-dot-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.woo-d { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.woo-url-mini { font-size: 11px; color: var(--fg-mute); }
.woo-push-btn {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
}

/* toolkit view */
.woo-site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.woo-swatch { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.woo-swatch[data-swatch-color="accent"] { background: var(--accent); }
.woo-swatch[data-swatch-color="ok"]     { background: var(--ok); }
.woo-swatch[data-swatch-color="warn"]   { background: var(--warn); }
.woo-swatch[data-swatch-color="danger"] { background: var(--danger); }
.woo-site-ic-group { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.woo-site-ic {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.woo-site-ic svg { width: 14px; height: 14px; }
.woo-site-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; } /* shrinks so the version pill stays inside the frame */
.woo-site-btn {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

/* database view */
.woo-db-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.woo-db-row:last-child { border-bottom: none; }
.woo-db-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.woo-db-ic svg { width: 13px; height: 13px; }
.woo-db-name { flex: 1; font-size: 13px; font-weight: 600; }
.woo-db-size { font-size: 11px; color: var(--fg-mute); }

/* ssh view */
.woo-terminal {
  background: #14151a;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  color: #c9d6ff;
  line-height: 1.7;
}
.woo-terminal-prompt { color: #7fd3a3; }
.woo-terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #c9d6ff;
  vertical-align: -2px;
  animation: woo-terminal-blink 1s steps(1) infinite;
}
@keyframes woo-terminal-blink { 50% { opacity: 0; } }

/* cron view */
.woo-cron-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.woo-cron-row:last-child { border-bottom: none; }
.woo-cron-txt { font-size: 13px; font-weight: 600; }
.woo-cron-next { font-size: 11px; color: var(--accent); background: var(--surface-2); padding: 4px 9px; border-radius: 999px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .woo-panel-inner { grid-template-columns: 1fr; gap: 36px; }
  .woo-device-frame { order: -1; }
  .woo-device-frame.woo-device-frame--sticky { position: static; }
}

@media (max-width: 520px) {
  .woo-acc-body-inner { padding-left: 44px; }
  .woo-stage-row { flex-direction: column; }
  .woo-site-row { gap: 8px; }
  .woo-site-ic-group { display: none; } /* decorative; frees room for name + pill */
}

@media (prefers-reduced-motion: reduce) {
  .woo-terminal-cursor { animation: none; }
}
