/* ---------- Showcase (carousel of product screens) ---------- */
.showcase {
  margin-top: 8px;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.showcase-tabs::-webkit-scrollbar {
  display: none;
}

.sc-tab {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.sc-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.sc-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(120deg, rgba(35, 84, 245, 0.9), rgba(155, 101, 248, 0.9));
  border-color: transparent;
}

.showcase-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sc-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.sc-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.06);
}

/* App window frame */
.app-window {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.aw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #f1f1f3;
  border-bottom: 1px solid #e3e3e6;
}

.aw-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4d4d8;
}

.aw-bar .dot.r {
  background: #ff5f57;
}
.aw-bar .dot.y {
  background: #febc2e;
}
.aw-bar .dot.g {
  background: #28c840;
}

.aw-url {
  margin-left: 12px;
  flex: 1;
  background: #fff;
  border: 1px solid #e3e3e6;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 0.74rem;
  color: #8e8e8e;
  font-family: "Geist", system-ui, sans-serif;
  text-align: center;
  max-width: 320px;
  margin-inline: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aw-body {
  position: relative;
  height: clamp(420px, 50vw, 500px);
  background: #fff;
}

.sc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

.sc-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.showcase-caption {
  text-align: center;
  max-width: 60ch;
  margin: 22px auto 0;
  min-height: 52px;
}

.showcase-caption h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.showcase-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-dot[aria-selected="true"] {
  background: linear-gradient(120deg, var(--syntris-1), var(--syntris-2));
  width: 24px;
  border-radius: 999px;
}

/* ================= SynDent app design system (scoped) ================= */
.app {
  --bg: #ffffff;
  --fg: #252525;
  --primary: #2f2f2f;
  --pfg: #fafafa;
  --card: #ffffff;
  --border: #ebebeb;
  --muted: #f5f5f5;
  --mfg: #8e8e8e;
  --rad: 10px;
  font-family: "Geist", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  height: 100%;
}

.app * {
  box-sizing: border-box;
}

/* top bar */
.sd-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.sd-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
}

.sd-mark {
  width: 18px;
  height: 15px;
}

.sd-tabs {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.sd-tab {
  padding: 4px 12px 8px;
  font-size: 0.8rem;
  color: var(--mfg);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.sd-tab.on {
  color: var(--fg);
  border-bottom-color: var(--primary);
}

.sd-top-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sd-icobtn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--mfg);
  font-size: 0.85rem;
}

.sd-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* screen header (table screens) */
.sd-screenhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  flex: none;
}

.sd-screenhead h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sd-screenhead .acts {
  display: flex;
  gap: 8px;
}

.sd-round {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(37, 37, 37, 0.28);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--fg);
  font-size: 0.95rem;
}

/* tables */
.sd-tablewrap {
  margin: 0 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sd-tscroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.sd-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sd-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sd-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mfg);
  padding: 11px 14px;
  background: #fcfcfc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sd-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--fg);
}

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

.sd-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.sd-muted {
  color: var(--mfg);
}

.sd-strong {
  font-weight: 600;
}

.sd-tablefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: #fcfcfc;
  font-size: 0.74rem;
  color: var(--mfg);
  margin-top: auto;
}

.sd-pag {
  display: flex;
  gap: 6px;
}

.sd-pag span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--fg);
}

/* badges */
.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--muted);
  color: #555;
  border: 1px solid var(--border);
}

.sd-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.sd-badge.ok {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.25);
}
.sd-badge.warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.25);
}
.sd-badge.bad {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
}
.sd-badge.info {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}
