:root {
    --sg-primary: #2563eb;
    --sg-primary-hover: #1d4ed8;
    --sg-bg: #f3f4f6;
    --sg-card-bg: #ffffff;
    --sg-text-main: #1f2937;
    --sg-text-muted: #6b7280;
    --sg-border: #e5e7eb;
    --sg-success: #10b981;
    --sg-warning: #f59e0b;
    --sg-danger: #ef4444;
}

.sg-mmcs-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 20px auto;
}

/* --- Status Bar --- */
.sg-mmcs-status-bar {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sg-mmcs-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.sg-mmcs-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
}
.sg-mmcs-status-dot.off { background: #9ca3af; }
.sg-mmcs-status-dot.coming-soon { background: var(--sg-success); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.sg-mmcs-status-dot.maintenance { background: var(--sg-warning); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }

.sg-mmcs-http-badge {
    font-size: 10px;
    font-weight: 700;
    background: #f3f4f6;
    color: #4b5563;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sg-mmcs-http-badge-warn {
    background: #fef3c7;
    color: #92400e;
}
.sg-mmcs-http-warn {
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}
.sg-mmcs-status-actions {
    display: flex;
    gap: 8px;
}

/* --- Navigation --- */
.sg-mmcs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--sg-border);
    margin-bottom: 24px;
}
.sg-mmcs-nav-item {
    text-decoration: none;
    color: var(--sg-text-muted);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.sg-mmcs-nav-item:hover { color: var(--sg-primary); }
.sg-mmcs-nav-item.active {
    color: var(--sg-primary);
    border-bottom-color: var(--sg-primary);
}
/* Keep a visible focus indicator (WCAG 2.4.7); only drop the default WP glow. */
.sg-mmcs-nav-item:focus { box-shadow: none; }
.sg-mmcs-nav-item:focus-visible {
    outline: 2px solid var(--sg-primary);
    outline-offset: -2px;
    border-radius: 4px;
}

/* --- Cards --- */
.sg-mmcs-card {
    background: var(--sg-card-bg);
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}
.sg-mmcs-card-header {
    background: #f9fafb;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sg-border);
}
.sg-mmcs-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.sg-mmcs-card-body {
    padding: 20px;
}

/* --- Toggle Cards (Mode Selection) --- */
.sg-mmcs-toggle-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.sg-mmcs-radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--sg-border);
    border-radius: 8px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fff;
}
.sg-mmcs-radio-card:hover { border-color: #cbd5e1; }
.sg-mmcs-radio-card.active {
    border-color: var(--sg-primary);
    background: #eff6ff;
}
.sg-mmcs-radio-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
/* Visible focus ring for the visually-hidden radio (WCAG 2.4.7). */
.sg-mmcs-radio-card:focus-within {
    outline: 2px solid var(--sg-primary);
    outline-offset: 2px;
}
/* Icons intentionally removed from admin cards. */
.sg-mmcs-radio-card strong {
    display: block;
    font-size: 14px;
    color: var(--sg-text-main);
    margin-bottom: 4px;
}
.sg-mmcs-radio-card span {
    font-size: 12px;
    color: var(--sg-text-muted);
    line-height: 1.4;
}

/* --- Info Box --- */
.sg-mmcs-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #0c4a6e;
}
.sg-mmcs-info-box .dashicons {
    color: #0284c7;
    font-size: 20px;
}
.sg-mmcs-info-box ul { margin: 4px 0 0 16px; list-style: disc; }

/* --- Form Elements --- */
.sg-mmcs-field-group {
    display: block;
    margin-bottom: 16px;
}
.sg-mmcs-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}
.sg-mmcs-label-sm {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4b5563;
}
.sg-mmcs-indent {
    margin-left: 28px;
    padding-left: 16px;
    border-left: 2px solid var(--sg-border);
    margin-top: 12px;
}

/* Standard Radio Block */
.sg-mmcs-radio-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--sg-border);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}
.sg-mmcs-radio-block:hover { background: #f9fafb; }
.sg-mmcs-radio-block input { margin-top: 4px; }
.sg-mmcs-radio-block span { font-size: 14px; color: #374151; }
.sg-mmcs-radio-block strong { display: block; color: #111827; }
.sg-mmcs-radio-block small { color: #6b7280; font-size: 12px; }

.sg-mmcs-checkbox-lg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #111827;
}

/* --- Repeater Fields --- */
.sg-repeater-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}
.sg-repeater-handle {
    cursor: move;
    color: #9ca3af;
    padding: 4px;
}
.sg-repeater-handle:hover { color: #374151; }
.sg-repeater-content { flex: 1; }
.sg-repeater-placeholder {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    height: 40px;
    margin-bottom: 8px;
}
.sg-mmcs-row { display: flex; gap: 10px; align-items: center; width: 100%; }
.sg-mmcs-row input[type="text"], 
.sg-mmcs-row input[type="url"],
.sg-mmcs-row select { width: 100%; }

/* Access Control multi-select styling */
.sg-mmcs-row select[multiple] {
  width: 100%;
  min-height: 140px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.sg-mmcs-row select[multiple] option {
  padding: 6px 8px;
}
.sg-mmcs-row .small-text { width: 80px !important; }

/* --- Grids & Layout --- */
.sg-mmcs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sg-mmcs-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.sg-mmcs-stat { border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 14px; }
.sg-mmcs-stat-num { font-size: 22px; font-weight: 700; line-height: 1; }
.sg-mmcs-stat-label { color: #6b7280; font-size: 12px; margin-top: 6px; }
@media(max-width: 782px) {
    .sg-mmcs-grid-2, .sg-mmcs-grid-3, .sg-mmcs-toggle-row { grid-template-columns: 1fr; }
}

/* --- Utilities --- */
.sg-mmcs-sub-option { margin-left: 32px; margin-bottom: 12px; }
/* Scoped to our wrapper so we do not restyle other screens' rules. */
.sg-mmcs-wrap hr { border: 0; border-top: 1px solid var(--sg-border); margin: 20px 0; }
.sg-mmcs-footer { margin-top: 30px; }
.sg-mmcs-toggle-box { margin-bottom: 24px; }
.sg-mmcs-input-group input { width: 100%; max-width: 400px; }
.sg-mmcs-subtitle { 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase; 
    color: #9ca3af; 
    margin: 0 0 10px; 
    letter-spacing: 0.5px;
}
.sg-mmcs-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.sg-mmcs-badge.active { background: #d1fae5; color: #065f46; }

/* Image Input Wrapper */
.sg-img-input { flex: 1; }

/* --- Admin Modal (New) --- */
.sg-mmcs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.sg-mmcs-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: sg-modal-pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes sg-modal-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.sg-mmcs-modal-header {
    background: #f9fafb;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.sg-mmcs-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}
.sg-mmcs-modal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}
.sg-mmcs-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Preset preview modal */
.sg-preset-preview{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:14px;
  margin-top:10px;
}
.sg-preset-preview-label{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;}
.sg-preset-preview-head{font-size:16px;font-weight:800;color:#0f172a;margin-bottom:6px;}
.sg-preset-preview-msg{font-size:13px;color:#334155;white-space:pre-wrap;line-height:1.5;}

/* Better focus + nicer multi-select */
.sg-mmcs-row select[multiple]{
  min-height:180px;
  font-size:13px;
  line-height:1.4;
}
.sg-mmcs-row select[multiple]:focus{
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Countdown finish fields layout */
.sg-countdown-finish-fields{gap:16px;align-items:flex-start;}
.sg-countdown-finish-fields .sg-mmcs-field-group{flex:1;}
@media(max-width:782px){.sg-countdown-finish-fields{flex-direction:column;}}


/* =======================================================
   Template Preview Cards (Design tab)

   Each thumbnail is a structural miniature of the real
   front-end layout, driven by the .sg-tm-* skeleton the
   PHP emits and tinted with the user's own colours via
   --sg-prev-bg-color / --sg-prev-text / --sg-prev-accent.
======================================================== */
.sg-tmpl-hint{ margin-top:0; margin-bottom:12px; }

.sg-tmpl-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:16px;
}

.sg-tmpl-card{
  position:relative;
  border:1px solid var(--sg-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.sg-tmpl-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(15,23,42,.10);
  border-color:#cbd5e1;
}
.sg-tmpl-card.active{
  border-color:var(--sg-primary);
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
}

/* Keep the radio focusable (never display:none) so the picker is keyboard-operable. */
.sg-tmpl-radio{
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  padding:0;
  border:0;
  opacity:0;
  pointer-events:none;
}
.sg-tmpl-radio:focus-visible + .sg-tmpl-label{
  outline:2px solid var(--sg-primary);
  outline-offset:-2px;
  border-radius:11px;
}
.sg-tmpl-label{
  display:block;
  cursor:pointer;
  margin:0;
}

/* Selected badge */
.sg-tmpl-card.active::after{
  content:"";
  position:absolute;
  top:10px;
  left:10px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--sg-primary) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M8.1 13.9 4.7 10.5l1.2-1.2 2.2 2.2 5.5-5.5 1.2 1.2z'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow:0 2px 6px rgba(15,23,42,.28);
  z-index:3;
  pointer-events:none;
}

/* ---------- Thumbnail canvas ---------- */
.sg-tmpl-thumb{
  position:relative;
  display:block;
  aspect-ratio:16 / 10;
  min-height:120px;
  overflow:hidden;
  background-color:var(--sg-prev-bg-color, #eef2f7);
  background-image:var(--sg-prev-bg-image, none);
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--sg-border);
}

/* Graphic / image pane. Hidden unless a layout opts in. */
.sg-tm-media{ display:none; }

/* Content surface. Default = centred, no chrome. */
.sg-tm-panel{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:12px;
  text-align:center;
}

/* Skeleton parts. Colours derive from the user's palette. */
.sg-tm-logo{
  width:18px;
  height:18px;
  border-radius:5px;
  overflow:hidden;
  background:var(--sg-prev-accent, #2563eb);
  box-shadow:0 2px 6px rgba(15,23,42,.18);
  flex:none;
  margin-bottom:2px;
}
.sg-tm-logo img{ width:100%; height:100%; object-fit:cover; display:block; }

.sg-tm-h{
  width:74%;
  height:8px;
  border-radius:999px;
  background:var(--sg-prev-text, #1f2937);
  opacity:.85;
  flex:none;
}
.sg-tm-t{
  width:60%;
  height:4px;
  border-radius:999px;
  background:var(--sg-prev-text, #1f2937);
  opacity:.38;
  flex:none;
}
.sg-tm-t2{ width:44%; }

.sg-tm-cd{
  display:flex;
  gap:3px;
  margin-top:2px;
  flex:none;
}
.sg-tm-cd i{
  width:13px;
  height:13px;
  border-radius:3px;
  background:var(--sg-prev-text, #1f2937);
  opacity:.22;
}

.sg-tm-form{
  display:flex;
  align-items:center;
  gap:3px;
  margin-top:3px;
  flex:none;
}
.sg-tm-form > i{
  width:44px;
  height:10px;
  border-radius:3px;
  background:#fff;
  border:1px solid rgba(15,23,42,.18);
}
.sg-tm-cta{
  width:26px;
  height:10px;
  border-radius:3px;
  background:var(--sg-prev-accent, #2563eb);
}

.sg-tm-soc{
  display:flex;
  gap:4px;
  margin-top:3px;
  flex:none;
}
.sg-tm-soc i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--sg-prev-text, #1f2937);
  opacity:.3;
}

/* ---------- Layout 1: Split Screen (content left, image right) ---------- */
.sg-tm-split .sg-tm-media,
.sg-tm-split-rev .sg-tm-media{
  display:block;
  position:absolute;
  top:0;
  bottom:0;
  width:42%;
  z-index:1;
  background-color:var(--sg-prev-accent, #2563eb);
  background-image:var(--sg-prev-bg-image, none);
  background-size:cover;
  background-position:center;
}
.sg-tm-split .sg-tm-media{ right:0; }
.sg-tm-split .sg-tm-panel{
  right:42%;
  background:#fff;
  align-items:flex-start;
  text-align:left;
  padding:12px 10px;
}
.sg-tm-split .sg-tm-h,
.sg-tm-split .sg-tm-t,
.sg-tm-split .sg-tm-t2{ width:88%; }
.sg-tm-split .sg-tm-t2{ width:64%; }

/* ---------- Layout 1 (Maintenance): Graphic Left ---------- */
.sg-tm-split-rev .sg-tm-media{ left:0; }
.sg-tm-split-rev .sg-tm-panel{
  left:42%;
  background:#fff;
  align-items:flex-start;
  text-align:left;
  padding:12px 10px;
}
.sg-tm-split-rev .sg-tm-h,
.sg-tm-split-rev .sg-tm-t,
.sg-tm-split-rev .sg-tm-t2{ width:88%; }
.sg-tm-split-rev .sg-tm-t2{ width:64%; }

/* ---------- Layout 2: Minimal Center / Clean Card ---------- */
.sg-tm-center .sg-tm-panel{
  inset:14px 18px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(15,23,42,.14);
  padding:10px;
}

/* ---------- Layout 3: Hero Overlay ---------- */
.sg-tm-hero .sg-tm-media{
  display:block;
  position:absolute;
  inset:0;
  z-index:1;
  background-color:#334155;
  background-image:var(--sg-prev-bg-image, none);
  background-size:cover;
  background-position:center;
}
.sg-tm-hero .sg-tm-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,.35), rgba(15,23,42,.78));
}
.sg-tm-hero .sg-tm-h{ background:#fff; opacity:.95; }
.sg-tm-hero .sg-tm-t{ background:#fff; opacity:.55; }
.sg-tm-hero .sg-tm-cd i{ background:#fff; opacity:.3; }
.sg-tm-hero .sg-tm-soc i{ background:#fff; opacity:.45; }

/* ---------- Layout 4 / 6: Glassmorphism & Glass Panel ---------- */
.sg-tm-glass .sg-tm-media{
  display:block;
  position:absolute;
  inset:0;
  z-index:1;
  background-color:var(--sg-prev-accent, #6366f1);
  background-image:var(--sg-prev-bg-image, linear-gradient(135deg,#6366f1,#ec4899));
  background-size:cover;
  background-position:center;
}
/* Frost the panel itself, so the blur samples the artwork behind it. */
.sg-tm-glass .sg-tm-panel{
  inset:14px 16px;
  background:rgba(255,255,255,.28);
  border:1px solid rgba(255,255,255,.55);
  border-radius:10px;
  box-shadow:0 8px 22px rgba(15,23,42,.20);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:10px;
}
.sg-tm-glass .sg-tm-h{ background:#fff; opacity:.95; }
.sg-tm-glass .sg-tm-t{ background:#fff; opacity:.6; }
.sg-tm-glass .sg-tm-cd i{ background:#fff; opacity:.35; }
.sg-tm-glass .sg-tm-cta{ background:#fff; }
.sg-tm-glass .sg-tm-soc i{ background:#fff; opacity:.5; }

/* ---------- Layout 3 (Maintenance): Dark Mode / Neon ---------- */
.sg-tm-dark{ background-color:#0f172a; background-image:none; }
.sg-tm-dark .sg-tm-panel{ background:transparent; }
.sg-tm-dark .sg-tm-logo{
  background:#22d3ee;
  box-shadow:0 0 10px rgba(34,211,238,.75);
}
.sg-tm-dark .sg-tm-h{
  background:#22d3ee;
  opacity:1;
  box-shadow:0 0 10px rgba(34,211,238,.55);
}
.sg-tm-dark .sg-tm-t{ background:#cbd5e1; opacity:.45; }
.sg-tm-dark .sg-tm-cd i{
  background:rgba(34,211,238,.22);
  border:1px solid rgba(34,211,238,.5);
}
.sg-tm-dark .sg-tm-form > i{ background:rgba(255,255,255,.10); border-color:rgba(148,163,184,.5); }
.sg-tm-dark .sg-tm-cta{ background:#22d3ee; box-shadow:0 0 8px rgba(34,211,238,.6); }
.sg-tm-dark .sg-tm-soc i{ background:#22d3ee; opacity:.6; }

/* ---------- Layout 4 (Maintenance): Simple Text ---------- */
.sg-tm-simple{ background-image:none; }
.sg-tm-simple .sg-tm-panel{
  background:transparent;
  gap:6px;
}
.sg-tm-simple .sg-tm-logo{ display:none; }
.sg-tm-simple .sg-tm-h{ width:56%; height:7px; }
.sg-tm-simple .sg-tm-t{ width:70%; }
.sg-tm-simple .sg-tm-t2{ width:50%; }

/* ---------- Layout 5 (Maintenance): Gradient Spotlight ---------- */
.sg-tm-gradient{ background-image:none; }
.sg-tm-gradient .sg-tm-media{
  display:block;
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.42), transparent 58%),
    linear-gradient(135deg, #6366f1 0%, #a855f7 48%, #ec4899 100%);
}
.sg-tm-gradient .sg-tm-h{ background:#fff; opacity:.98; }
.sg-tm-gradient .sg-tm-t{ background:#fff; opacity:.6; }
.sg-tm-gradient .sg-tm-cd i{ background:rgba(255,255,255,.3); }
.sg-tm-gradient .sg-tm-cta{ background:#fff; }
.sg-tm-gradient .sg-tm-soc i{ background:#fff; opacity:.55; }

/* ---------- Card footer ---------- */
.sg-tmpl-meta{
  display:block;
  padding:10px 12px 12px;
}
.sg-tmpl-meta strong{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#111827;
  line-height:1.3;
}
.sg-tmpl-meta span{
  display:block;
  font-size:11px;
  color:var(--sg-text-muted);
  line-height:1.35;
  margin-top:2px;
}

/* Preview button floats over the thumbnail, outside the <label>. */
.sg-tmpl-actions{
  position:absolute;
  top:8px;
  right:8px;
  z-index:4;
  opacity:0;
  transition:opacity .14s ease;
}
.sg-tmpl-card:hover .sg-tmpl-actions,
.sg-tmpl-card:focus-within .sg-tmpl-actions{ opacity:1; }
.sg-tmpl-preview-btn.button{
  height:24px;
  line-height:22px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(15,23,42,.14);
  box-shadow:0 2px 8px rgba(15,23,42,.18);
}
.sg-tmpl-preview-btn.button:hover{ background:#fff; }

.sg-tmpl-features{
  display:block;
  margin:0 12px 12px;
  font-size:10px;
  line-height:1.2;
  color:var(--sg-text-muted);
  text-transform:uppercase;
  letter-spacing:.03em;
}

@media (max-width: 782px){
  .sg-tmpl-grid{ grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
  .sg-tmpl-actions{ opacity:1; }
}


/* ---------- Coming Soon Layout 5: Launch Card ---------- */
.sg-tm-launch .sg-tm-media{
  display:block;
  position:absolute;
  top:14px;
  left:16px;
  right:16px;
  height:26px;
  border-radius:6px 6px 0 0;
  z-index:2;
  background-color:var(--sg-prev-accent, #2563eb);
  background-image:var(--sg-prev-bg-image, none);
  background-size:cover;
  background-position:center;
}
.sg-tm-launch .sg-tm-panel{
  inset:14px 16px;
  top:40px;
  background:#fff;
  border-radius:0 0 8px 8px;
  box-shadow:0 6px 18px rgba(15,23,42,.14);
  padding:8px;
  gap:4px;
}
.sg-tm-launch .sg-tm-logo{ margin-top:-14px; margin-bottom:2px; }
.sg-tm-launch .sg-tm-cd{ order:-1; margin-bottom:2px; }
.sg-tm-launch .sg-tm-cd i{ width:15px; height:15px; opacity:.32; }

/* ---------- Coming Soon Layout 6: Editorial ---------- */
.sg-tm-editorial .sg-tm-panel{
  inset:0;
  align-items:flex-start;
  justify-content:center;
  text-align:left;
  padding:14px 16px;
  gap:4px;
}
.sg-tm-editorial .sg-tm-logo{ margin-bottom:4px; }
.sg-tm-editorial .sg-tm-h{ width:82%; height:10px; }
.sg-tm-editorial .sg-tm-h::after{
  content:"";
  display:block;
  width:26px;
  height:3px;
  border-radius:999px;
  margin-top:8px;
  background:var(--sg-prev-accent, #2563eb);
}
.sg-tm-editorial .sg-tm-t{ width:70%; margin-top:6px; }
.sg-tm-editorial .sg-tm-t2{ width:52%; }
.sg-tm-editorial .sg-tm-cd,
.sg-tm-editorial .sg-tm-form,
.sg-tm-editorial .sg-tm-soc{ margin-top:5px; }
