:root{
  --bg:#eef0ff;
  --panel:#ffffff;
  --panel-2:#f7f8ff;
  --ink:#0c0f14;
  --muted:#5a6177;
  --line:rgba(30,40,80,.14);
  --shadow:0 10px 30px rgba(20,24,70,.08);
  --shadow-hover:0 14px 40px rgba(20,24,70,.12);

  --radius:18px;
  --radius-sm:12px;

  --accent:#A829A7;
  --accent-2:#8c1f8b;
  --good:#1b8a5a;
  --warn:#8a4b00;

  --max:1220px;
  --left:240px;
  --right:320px;

  --ring:rgba(168,41,167,.35);
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

html{
  background:
    radial-gradient(1200px 600px at 40% -200px, rgba(168, 41, 167, .10), transparent 60%),
    radial-gradient(900px 500px at 90% 0px, rgba(29, 155, 240, .10), transparent 60%),
    var(--bg);
  background-repeat:no-repeat;
  background-attachment:fixed,fixed,scroll;
  background-color:var(--bg);
}

body{
  margin:0;
  min-height:100%;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:transparent;
}

::selection{ background:rgba(168,41,167,.18); }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

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

/* ─────────────────────────────────────────
   Shared “surface” feel + hover lift
───────────────────────────────────────── */
.vibe-left-card,
.vibe-top,
.vibe-card,
.script-card,
.vibe-post,
.side-card,
.vibe-admin,
.comment-form,
.vibe-flash-errors,
.vibe-flash-messages{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background-color .12s ease;
}

.vibe-left-card:hover,
.vibe-top:hover,
.vibe-card:hover,
.script-card:hover,
.vibe-post:hover,
.side-card:hover,
.vibe-admin:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(30,40,80,.18);
}

/* ─────────────────────────────────────────
   Layout grid
───────────────────────────────────────── */
.vibe-shell{
  max-width:var(--max);
  margin:0 auto;
  padding:16px 14px 40px;
  display:grid;
  grid-template-columns:var(--left) minmax(0,1fr) var(--right);
  gap:16px;
  align-items:start;
}

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

/* ✅ Admin view doesn't have right sidebar, so don't reserve a 3rd column */
@media (min-width:721px){
  body.view-admin .vibe-shell{
    grid-template-columns:var(--left) minmax(0,1fr);
  }
}

/* ─────────────────────────────────────────
   Left column
───────────────────────────────────────── */
.vibe-left{
  position:sticky;
  top:14px;
  align-self:start;
}

.vibe-left-card{ padding:13px; }

.vibe-brand{
  display:block;
  margin-bottom:10px;
}

/* logo */
logotext{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  display:inline-block;
  position:relative;
  font-weight:850;
  letter-spacing:-3px;
  color:var(--accent);
  font-size:42px;
  margin:0;
  text-shadow:
    -1px -1px 0 #F2F4FF,
     1px -1px 0 #F2F4FF,
    -1px  1px 0 #F2F4FF,
     1px  1px 0 #F2F4FF;
  transform-origin:left center;
  transition:transform .25s ease-out;
}
logotext:hover{ transform:scaleX(1.10); }
logotext .scriptz{ color:var(--ink); }
logotext::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:100%;
  height:1px;
  background:var(--ink);
  opacity:.75;
}

logotext .v-wiggle{ display:inline-block; }
logotext .v1{
  margin-right:-10px;
  transform:translateY(2px) rotate(-8deg) scale(1.2);
  transform-origin:bottom left;
}
logotext .v2{ margin-right:-7px; transform:translateY(-2px) rotate(7deg); }
logotext .v3{ margin-right:-6px; transform:translateY(1px) rotate(-6deg); }
logotext .v4{ margin-right:-5px; transform:translateY(-1px) rotate(5deg); }

.vibe-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
}

.vibe-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:800;
  letter-spacing:.1px;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease;
}

.vibe-nav a:hover{
  text-decoration:none;
  background:rgba(168,41,167,.08);
  border-color:rgba(168,41,167,.18);
  color:var(--ink);
}

.vibe-nav a.is-active{
  background:rgba(168,41,167,.12);
  border-color:rgba(168,41,167,.22);
  color:var(--ink);
}

.vibe-left-foot{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed var(--line);
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.vibe-left-foot a:hover{
  text-decoration:none;
  color:var(--accent);
}

/* ─────────────────────────────────────────
   Top + flash
───────────────────────────────────────── */
.vibe-top{
  padding:13px 14px;
  margin-bottom:10px;
}
.vibe-top h1{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.25;
}
.vibe-top p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.vibe-flash-errors,
.vibe-flash-messages{
  padding:10px 12px;
  margin-bottom:10px;
}
.vibe-flash-errors{ border-left:4px solid #ff6b6b; }
.vibe-flash-messages{ border-left:4px solid #00a86b; }

/* ─────────────────────────────────────────
   Generic content card
───────────────────────────────────────── */
.vibe-card{
  padding:13px 14px;
  margin-bottom:10px;
}

/* check-list */
.check-list{
  list-style:none;
  margin:10px 0 0;
  padding:0;
}
.check-list li{
  padding:6px 0 6px 24px;
  position:relative;
  color:var(--muted);
  font-size:13px;
}
.check-list li::before{
  content:"✔";
  position:absolute;
  left:0;
  top:6px;
  color:var(--ink);
}

/* ─────────────────────────────────────────
   Script list cards
───────────────────────────────────────── */
.script-list{
  list-style:none;
  margin:0;
  padding:0;
}
.script-card{
  padding:11px 13px;
  margin-bottom:9px;
  overflow:hidden;
}
.script-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.script-card-title{
  font-weight:900;
  letter-spacing:.1px;
  border-bottom:1px dotted rgba(168,41,167,.55);
}
.script-card-title:hover{
  text-decoration:none;
  color:var(--accent);
  border-bottom-color:var(--accent);
}
.script-card-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.script-card-date{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.script-card-excerpt{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
}

/* tags */
.script-card-tags{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.vibe-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(168,41,167,.20);
  background:rgba(168,41,167,.06);
  color:var(--ink);
  font-size:12px;
  font-weight:800;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease,transform .12s ease;
}
.vibe-tag:hover{
  text-decoration:none;
  background:rgba(168,41,167,.10);
  border-color:rgba(168,41,167,.35);
  transform:translateY(-1px);
}
.vibe-tag.is-active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

/* badges */
.script-badge-new{
  display:inline-block;
  padding:2px 8px;
  font-size:11px;
  border-radius:999px;
  background:#ffeaa7;
  color:var(--warn);
  font-weight:900;
}
.script-badge-pop{
  display:inline-block;
  padding:2px 8px;
  font-size:11px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  letter-spacing:.06em;
}

/* action bar */
.vibe-actions{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(30,40,80,.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.vibe-actions-left,
.vibe-actions-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.vibe-like-btn{
  border:1px solid rgba(168,41,167,.25);
  background:rgba(168,41,167,.08);
  color:var(--ink);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:background-color .12s ease,transform .12s ease,border-color .12s ease;
}
.vibe-like-btn:hover{
  background:rgba(168,41,167,.12);
  transform:translateY(-1px);
}
.vibe-like-btn.is-liked{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.vibe-like-btn[disabled]{
  opacity:.75;
  cursor:default;
  transform:none;
}

.vibe-comment-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(30,40,80,.14);
  background:rgba(30,40,80,.04);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  color:var(--ink);
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-comment-link:hover{
  text-decoration:none;
  background:rgba(30,40,80,.07);
  transform:translateY(-1px);
}

.vibe-share-mini{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}
.vibe-share-mini a{
  font-weight:900;
  color:var(--muted);
  border-bottom:1px dotted rgba(168,41,167,.55);
}
.vibe-share-mini a:hover{
  text-decoration:none;
  color:var(--accent);
  border-bottom-color:var(--accent);
}

/* load more button */
.vibe-load-more{
  margin-top:10px;
  padding:10px 14px;
  font-size:14px;
  border-radius:999px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-load-more:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
}
.vibe-load-more[disabled]{
  opacity:.6;
  cursor:default;
  transform:none;
}

/* ─────────────────────────────────────────
   Single post
───────────────────────────────────────── */
.vibe-post{ padding:13px 14px; }

h1.vibe-title{
  font-size:20px;
  margin:0 0 6px;
}

.vibe-meta{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.vibe-post-tools{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 12px;
}

.vibe-btn{
  padding:8px 12px;
  font-size:13px;
  border-radius:999px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-btn:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
}
.vibe-btn--soft{
  background:rgba(168,41,167,.08);
  color:var(--ink);
  border-color:rgba(168,41,167,.25);
}
.vibe-btn--soft:hover{ background:rgba(168,41,167,.12); }
.vibe-used-btn--done{
  background:#c3f7c7 !important;
  border-color:#8bc34a !important;
  color:#234b10 !important;
}

.vibe-post-share{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
}
.vibe-post-share .share-label{
  font-weight:900;
  margin-right:6px;
  color:var(--ink);
}
.vibe-post-share a{
  margin-right:10px;
  font-weight:900;
  border-bottom:1px dotted rgba(168,41,167,.55);
}
.vibe-post-share a:hover{
  text-decoration:none;
  color:var(--accent);
  border-bottom-color:var(--accent);
}

.vibe-body{
  margin-top:10px;
  line-height:1.65;
}
.vibe-body p{ margin:0 0 16px; }
.vibe-body h2,
.vibe-body h3,
.vibe-body h4{
  margin:18px 0 10px;
  line-height:1.25;
}
.vibe-body ul,
.vibe-body ol{
  margin:10px 0 18px 20px;
}
.vibe-body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.95em;
  background:rgba(30,40,80,.06);
  border:1px solid rgba(30,40,80,.12);
  padding:1px 6px;
  border-radius:999px;
}

.vibe-back{
  margin-top:14px;
  font-weight:900;
}
.vibe-back a{
  color:var(--accent);
  border-bottom:1px dotted rgba(168,41,167,.55);
}
.vibe-back a:hover{
  text-decoration:none;
  border-bottom-color:var(--accent);
}

/* code box + copy button */
.vibe-code-box{
  position:relative;
  margin:16px 0 24px;
  border:1px solid var(--line);
  background:var(--panel-2);
  padding:10px;
  overflow:auto;
  border-radius:var(--radius-sm);
}
.vibe-code-box pre{
  margin:0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:13px;
  line-height:1.45;
  white-space:pre;
}
.vibe-code-box pre code{
  background:transparent;
  border:0;
  padding:0;
  border-radius:0;
}
.vibe-code-copy{
  position:absolute;
  top:8px;
  right:8px;
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-code-copy:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
}

/* ─────────────────────────────────────────
   Forms
───────────────────────────────────────── */
button,input,textarea,select{ font:inherit; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
textarea,
select{
  width:100%;
  display:block;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 10px;
  font-size:14px;
  background:#fff;
  color:var(--ink);
  transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease;
}

textarea{ resize:vertical; min-height:120px; }

input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:rgba(168,41,167,.40);
  box-shadow:0 0 0 4px var(--ring);
}

input::placeholder,
textarea::placeholder{
  color:rgba(90,97,119,.75);
}

/* ─────────────────────────────────────────
   Comments (and contact form uses same look)
───────────────────────────────────────── */
.vibe-comments{
  margin-top:16px;
  padding-top:14px;
  border-top:1px dashed rgba(30,40,80,.22);
}
.vibe-comments h2{
  margin:0 0 10px;
  font-size:16px;
}

.comment-list{
  list-style:none;
  margin:0 0 12px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.comment{
  border:1px solid var(--line);
  background:var(--panel-2);
  border-radius:var(--radius-sm);
  padding:10px 12px;
}

.comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.comment-name{ font-weight:900; font-size:13px; }
.comment-time{ color:var(--muted); font-size:12px; white-space:nowrap; }

.comment-body{
  color:var(--ink);
  font-size:13px;
  line-height:1.55;
  white-space:pre-wrap;
}

.comment-form{
  border-radius:var(--radius-sm);
  padding:12px;
}

.comment-form label{
  display:block;
  font-weight:900;
  font-size:12px;
  margin:10px 0 6px;
  color:var(--muted);
}

/* contact form spacing */
.comment-form.contact-form label{ margin:12px 0 6px; }
.comment-form.contact-form input,
.comment-form.contact-form textarea,
.comment-form.contact-form select{ margin:0 0 12px; }

@media (max-width:720px){
  .comment-form.contact-form label{ margin-top:10px; }
  .comment-form.contact-form input,
  .comment-form.contact-form textarea,
  .comment-form.contact-form select{ margin-bottom:10px; }
}

.comment-form button,
.comment-form input[type="submit"]{
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  font-weight:900;
  padding:10px 14px;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.comment-form button:hover,
.comment-form input[type="submit"]:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
}

/* honeypot */
.vibe-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ─────────────────────────────────────────
   Right column
───────────────────────────────────────── */
.vibe-right{
  position:sticky;
  top:14px;
  align-self:start;
}

.side-card{
  padding:12px 13px;
  margin-bottom:12px;
}

.side-card h2{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.2px;
}

.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
}

.side-list a{
  font-weight:900;
  border-bottom:1px dotted rgba(168,41,167,.55);
}
.side-list a:hover{
  text-decoration:none;
  color:var(--accent);
  border-bottom-color:var(--accent);
}

.side-sub{
  color:var(--muted);
  font-size:12px;
  margin-left:6px;
}

/* “Trends” style (your latest look) */
.vibe-right .side-card h2{
  margin:0;
  padding:12px 12px 10px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
  border-bottom:1px solid rgba(30,40,80,.10);
}
.vibe-right .side-list{ margin:0; padding:0; gap:0; }
.vibe-right .side-list li{ margin:0; padding:0; border-bottom:1px solid rgba(30,40,80,.10); }
.vibe-right .side-list li:last-child{ border-bottom:0; }
.vibe-right .side-list li a{
  display:block;
  padding:10px 12px 6px;
  font-weight:900;
  border-bottom:0;
  text-decoration:none;
  line-height:1.25;
}
.vibe-right .side-list li a:hover{
  text-decoration:none;
  background:rgba(30,40,80,.035);
}
.vibe-right .side-sub{
  display:block;
  padding:0 12px 10px;
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.vibe-right .side-list li:hover a{ color:var(--accent); }
.vibe-right .side-list li:hover .side-sub{ color:rgba(90,97,119,.92); }
.vibe-right .side-card{ overflow:hidden; }

.vibe-right .side-list--plain {
    gap: 8px;
}

.vibe-right .side-list--plain li {
    border-bottom: 0;
}

.vibe-right .side-list--plain li a {
    padding: 8px 12px;
}

.vibe-right .side-list--plain li a:hover {
    background: transparent;
}

.vibe-right .side-list--plain .side-sub {
    padding: 0 12px 10px;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.site-footer{
  max-width:var(--max);
  margin:0 auto 30px; /* desktop spacing is fine */
  padding:10px 16px 0;
  color:var(--muted);
  font-size:12px;
}
.site-footer .footer-links a{
  color:var(--muted);
  border-bottom:1px dotted rgba(168,41,167,.45);
}
.site-footer .footer-links a:hover{
  text-decoration:none;
  color:var(--accent);
  border-bottom-color:var(--accent);
}

/* ─────────────────────────────────────────
   Admin
───────────────────────────────────────── */
.vibe-admin{
  padding:14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.vibe-admin-toolbar{ flex-wrap:wrap; }

.vibe-admin-toolbar a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(30,40,80,.14);
  background:rgba(30,40,80,.04);
  font-weight:900;
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-admin-toolbar a:hover{
  text-decoration:none;
  background:rgba(30,40,80,.07);
  transform:translateY(-1px);
}

.vibe-admin-toolbar button{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(30,40,80,.14);
  background:rgba(30,40,80,.04);
  font-weight:900;
  cursor:pointer;
  transition:background-color .12s ease,transform .12s ease;
}
.vibe-admin-toolbar button:hover{
  background:rgba(30,40,80,.07);
  transform:translateY(-1px);
}

.vibe-admin-form label{
  display:block;
  font-weight:900;
  font-size:12px;
  margin:10px 0 6px;
  color:var(--muted);
}

.vibe-admin-form input[type="text"],
.vibe-admin-form input[type="password"],
.vibe-admin-form input[type="email"],
.vibe-admin-form textarea{
  width:100%;
  display:block;
  box-sizing:border-box;
}

.vibe-admin-form textarea{ min-height:320px; }

.vibe-admin-form button,
.vibe-btn-delete{
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  transition:transform .12s ease;
}
.vibe-admin-form button:hover,
.vibe-btn-delete:hover{ transform:translateY(-1px); }

.vibe-btn-delete{
  border:1px solid rgba(255,0,0,.25);
  background:rgba(255,0,0,.08);
  padding:10px 14px;
}
.vibe-btn-delete:hover{ background:rgba(255,0,0,.12); }

/* Admin table polish */
.vibe-admin-table{
  width:100% !important;
  max-width:100%;
  border-collapse:collapse !important;
  table-layout:fixed;
}
.vibe-admin-table th,
.vibe-admin-table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(30,40,80,.10);
  vertical-align:top;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vibe-admin-table thead th{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.vibe-admin-table td{ white-space:nowrap; }
.vibe-admin-table td:nth-child(1),
.vibe-admin-table td:nth-child(3){
  white-space:normal;
  word-break:break-word;
}
.vibe-admin-table td:nth-child(2),
.vibe-admin-table td:nth-child(3){
  overflow-wrap:anywhere;
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width:1050px){
  :root{ --right:300px; --left:220px; }
}

/* ✅ IMPORTANT: remove the old "hide right sidebar" rule
   and instead stack it below main on smaller screens */
@media (max-width:980px){
  .vibe-shell{
    grid-template-columns:1fr;
  }
  .vibe-left{
    position:static;
  }
  .vibe-right{
    display:block;
    position:static;
    top:auto;
    margin-top:12px;
  }
}

@media (max-width:720px){

  /* Slight logo tweaks */
  logotext{
    font-size:40px;
    letter-spacing:-2px;
  }
  logotext .v1{ margin-right:-10px; }
  logotext .v2{ margin-right:-7px; }
  logotext .v3{ margin-right:-8px; }

  /* Avoid fixed bg jank */
  html{ background-attachment:scroll,scroll,scroll; }

  /* Edge-to-edge layout */
  .vibe-shell{
    padding:0 !important;
    gap:0 !important;
    max-width:none !important;
  }

  /* Cards flush */
  .vibe-left-card,
  .vibe-top,
  .vibe-card,
  .script-card,
  .vibe-post,
  .side-card,
  .vibe-admin,
  .comment-form,
  .vibe-flash-errors,
  .vibe-flash-messages{
    border-radius:0 !important;
    margin:0 !important;
    border-left:0 !important;
    border-right:0 !important;
  }

  .vibe-card,
  .side-card{
    margin-bottom:0 !important;
  }

  /* ✅ Load More wrapper: full-bleed white strip */
  .vibe-load-more-wrap{
    background:var(--panel);
    border-top:1px solid var(--line);
    padding:10px 0 12px;
    margin:0;
  }
  #vibe-load-more.vibe-load-more{
    width:calc(100% - 20px);
    margin:0 auto;
    display:block;
    box-sizing:border-box;
  }

  /* ✅ THIS fixes the bottom “gray strip”:
     footer had margin-bottom:30px on desktop. */
  .site-footer{
    max-width:none !important;
    margin:0 !important; /* removes the empty strip under the footer */
    padding:12px 14px 18px !important;
    background:var(--panel) !important;
    border-top:1px solid var(--line);
  }

  /* ✅ Kill gradients on mobile so nothing peeks through anywhere */
  html{
    background:var(--panel) !important;
    background-image:none !important;
  }
  body{
    background:var(--panel) !important;
  }
}

/* ─────────────────────────────────────────
   ADMIN MOBILE FIX
───────────────────────────────────────── */
@media (min-width:721px){
  body.view-admin .vibe-shell{
    grid-template-columns:var(--left) minmax(0,1fr);
  }
}

@media (max-width:720px){
  body.view-admin .vibe-shell{ grid-template-columns:1fr; }
  body.view-admin .vibe-left{ position:static; }
  body.view-admin .vibe-left-card{ margin-bottom:12px; }
  body.view-admin .vibe-admin-toolbar{ flex-wrap:wrap; gap:8px; }

  body.view-admin .vibe-admin-table{ table-layout:auto; }
  body.view-admin .vibe-admin-table thead{ display:none; }

  body.view-admin .vibe-admin-table,
  body.view-admin .vibe-admin-table tbody,
  body.view-admin .vibe-admin-table tr,
  body.view-admin .vibe-admin-table td{
    display:block;
    width:100%;
  }

  body.view-admin .vibe-admin-table tr{
    border:1px solid var(--line);
    background:var(--panel-2);
    border-radius:var(--radius-sm);
    padding:10px 12px;
    margin:0 0 10px;
  }

  body.view-admin .vibe-admin-table td{
    border:0;
    padding:6px 0;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  body.view-admin .vibe-admin-table td::before{
    display:block;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:900;
    margin-bottom:2px;
  }

  body.view-admin .vibe-admin-table td:nth-child(1)::before{ content:"Title"; }
  body.view-admin .vibe-admin-table td:nth-child(2)::before{ content:"Slug"; }
  body.view-admin .vibe-admin-table td:nth-child(3)::before{ content:"Tags"; }
  body.view-admin .vibe-admin-table td:nth-child(4)::before{ content:"Status"; }
  body.view-admin .vibe-admin-table td:nth-child(5)::before{ content:"Created"; }
  body.view-admin .vibe-admin-table td:nth-child(6)::before{ content:"Used"; }
  body.view-admin .vibe-admin-table td:nth-child(7)::before{ content:"Actions"; }
}
