/* ===========================================================
   SINIXSLAYS — futuristic single-page portfolio
   Change --accent / --accent-2 below to recolor the whole site.
   =========================================================== */
:root {
  --accent:       #ffb000;   /* amber / gold */
  --accent-2:     #ff7a00;   /* deeper orange */
  --accent-soft:  rgba(255, 176, 0, 0.14);
  --accent-glow:  rgba(255, 176, 0, 0.55);

  --bg:           #08080d;
  --bg-2:         #0d0d16;
  --panel:        rgba(18, 18, 26, 0.72);
  --panel-solid:  #12121c;
  --border:       rgba(255, 176, 0, 0.16);
  --border-soft:  rgba(255, 255, 255, 0.08);

  --text:         #ecedf3;
  --muted:        #8b8c9c;
  --ok:           #3ad29f;
  --danger:       #ff4d5e;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;

  /* Per-element fonts — overridden (inline on <html>) when an admin picks a Google Font. */
  --font-title:     var(--font);
  --font-desc:      var(--font);
  --font-tagline:   var(--mono);
  --font-copyright: var(--mono);
  --font-footer:    var(--mono);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);          /* solid dark base — any overscroll shows dark, not a bright gap */
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
/* Stationary gradient backdrop. A fixed positioned LAYER avoids the mobile
   `background-attachment: fixed` repaint glitch that flashed a gap on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  background: radial-gradient(ellipse at 50% -10%, var(--bg-2) 0%, var(--bg) 60%);
}

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

/* ===================== Background ===================== */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.aurora span:nth-child(1) {
  width: 72vw; height: 50vh; left: 14vw; bottom: -18vh;
  background: radial-gradient(ellipse at center, rgba(255, 90, 12, 0.22), transparent 70%);
  animation: flick1 6s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  width: 56vw; height: 40vh; left: -8vw; bottom: -16vh;
  background: radial-gradient(ellipse at center, rgba(225, 30, 0, 0.20), transparent 70%);
  animation: flick2 7.5s ease-in-out infinite;
}
.aurora span:nth-child(3) {
  width: 52vw; height: 38vh; right: -8vw; bottom: -14vh;
  background: radial-gradient(ellipse at center, rgba(255, 140, 20, 0.18), transparent 70%);
  animation: flick3 5.5s ease-in-out infinite;
}
@keyframes flick1 { 0%,100% { opacity: 0.5; transform: translateY(0) scaleY(1); } 50% { opacity: 0.9; transform: translateY(-3vh) scaleY(1.08); } }
@keyframes flick2 { 0%,100% { opacity: 0.45; transform: translateY(0); } 50% { opacity: 0.8; transform: translateY(-2vh); } }
@keyframes flick3 { 0%,100% { opacity: 0.5; transform: translateY(0); } 50% { opacity: 0.85; transform: translateY(-2.5vh); } }

/* Sized to the LARGE viewport (lvh) — a fixed length that does NOT change when the
   mobile address bar shows/hides, so the layer always covers the screen and never
   needs a mid-scroll resize (which is what caused the gap + jump). 100vh is the
   fallback for browsers without lvh. translateZ(0) keeps each layer GPU-composited. */
#bg { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; display: block; transform: translateZ(0); }
#fire { position: fixed; left: 0; bottom: 0; width: 100%; height: 55vh; height: 55lvh; z-index: 1; display: none; pointer-events: none; transform: translateZ(0); }
.vignette {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 2; pointer-events: none; transform: translateZ(0);
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---- Fire background mode (toggled by the "background" site setting) ---- */
html[data-bg="fire"] { --bg: #000000; --bg-2: #060606; }
html[data-bg="fire"] body::before { background: radial-gradient(ellipse 130% 90% at 50% 112%, #230a00 0%, #0a0200 32%, #000 66%); }
html[data-bg="fire"] #fire { display: block; }
html[data-bg="fire"] #bg { z-index: 2; }
html[data-bg="fire"] .vignette { z-index: 3; }
html[data-bg="fire"] .app { z-index: 4; }

/* ===================== Loader ===================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(ellipse at center, var(--bg-2) 0%, var(--bg) 70%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-core { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.loader-mark, .loader-mark-img {
  width: 60px; height: 60px; color: var(--accent); object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  animation: pulse 1.8s ease-in-out infinite;
}
.loader-slash { stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw 1.6s ease-in-out infinite; }
.loader-ring {
  position: absolute; inset: 0;
  border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent-2);
  border-radius: 50%; filter: drop-shadow(0 0 6px var(--accent-glow));
  animation: spin 1.1s linear infinite;
}
.loader-bar { width: min(260px, 60vw); height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader-bar span {
  display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px var(--accent-glow); transition: width 0.35s ease;
}
.loader-status { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.65; } 50% { opacity: 1; } }
@keyframes draw { 0% { stroke-dashoffset: 22; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -22; } }

/* ===================== App layout ===================== */
.app {
  position: relative; z-index: 3; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(28px, 7vh, 80px) 20px 70px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.app.ready { opacity: 1; transform: none; }

/* ===================== Hero ===================== */
.hero { text-align: center; margin-bottom: clamp(34px, 7vh, 70px); }
.logo { display: inline-flex; align-items: center; gap: 22px; }
.logo-mark { width: 92px; height: 92px; color: var(--accent); filter: drop-shadow(0 0 12px var(--accent-glow)); }
.logo-mark.sm { width: 30px; height: 30px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.logo-text { margin: 0; font-size: clamp(3.4rem, 9vw, 6.8rem); font-weight: 800; letter-spacing: clamp(3px, 1vw, 10px); line-height: 1; }
.logo-accent { color: var(--accent); text-shadow: 0 0 22px var(--accent-glow); }
.logo-img { max-height: 180px; max-width: min(680px, 90vw); object-fit: contain; filter: drop-shadow(0 0 18px var(--accent-glow)); }
.tagline { margin: 16px 0 0; font-family: var(--font-tagline); font-size: clamp(11px, 2.6vw, 14px); letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }

/* ===================== Project grid (logo-first, no boxes) ===================== */
.content { width: 100%; max-width: min(1680px, 94vw); flex: 1; }
.grid { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; row-gap: 38px; }
.empty { text-align: center; color: var(--muted); font-family: var(--mono); letter-spacing: 2px; padding: 60px 0; }

/* 6 per row on desktop; column count steps down on smaller screens.
   The 120px = 5 column-gaps (5 × 24px) between 6 cards. */
.card { flex: 1 1 calc((100% - 120px) / 6); max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 10px 8px; border-radius: 14px; transition: transform 0.25s ease; }
@media (max-width: 1080px) { .card { flex-basis: calc((100% - 72px) / 4); } }  /* 4 per row */
@media (max-width: 760px)  { .card { flex-basis: calc((100% - 48px) / 3); } }  /* 3 per row */
a.card { cursor: pointer; }
a.card:hover { transform: translateY(-6px); }
.card-logo { height: 110px; width: 100%; display: flex; align-items: center; justify-content: center; }
.card-logo-img {
  max-height: 100%; max-width: 78%; object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}
a.card:hover .card-logo-img { transform: scale(1.07); filter: drop-shadow(0 0 22px var(--accent-glow)); }
.card-body { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.card-title { margin: 0; font-family: var(--font-title); font-size: 1rem; font-weight: 700; letter-spacing: 0.3px; }
.card-desc { margin: 0; font-family: var(--font-desc); font-size: 0.86rem; line-height: 1.5; color: var(--muted); max-width: 32ch; }

/* ===================== Footer ===================== */
.footer { margin-top: 56px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: rgba(236, 237, 243, 0.6); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; align-items: center; gap: 14px; }
#copyright { font-family: var(--font-copyright); }

/* ===================== Social icons (above footer) ===================== */
.socials { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 56px; }
.social-row-line { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.socials[hidden] { display: none; }
.socials:not([hidden]) + .footer { margin-top: 22px; }
.social-link { width: 24px; height: 24px; color: var(--muted); display: inline-flex; transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease; }
.social-link svg { width: 100%; height: 100%; fill: currentColor; }
.social-link:hover { color: var(--accent); transform: translateY(-3px); filter: drop-shadow(0 0 8px var(--accent-glow)); }

/* ===================== Admin entry ===================== */
.admin-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.admin-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-footer); font-size: 11px; letter-spacing: 1.5px;
  color: rgba(180, 181, 196, 0.6); padding: 4px 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.admin-link:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

/* ===================== Modal ===================== */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,8,0.74); backdrop-filter: blur(5px); animation: fade 0.25s ease; }
.modal-panel {
  position: relative; width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--accent-soft); padding: 28px;
  animation: rise 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 176, 0, 0.45) transparent;
}
/* Themed scrollbar (WebKit / Chromium) — the 3px border matches the panel bg
   so the thumb looks slim and inset rather than full-width. */
.modal-panel::-webkit-scrollbar { width: 14px; }
.modal-panel::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 10px; margin: 6px; }
.modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-2), var(--accent));
  border: 3px solid var(--panel-solid);
  border-radius: 10px;
}
.modal-panel::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); border-radius: 8px;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-head .logo-mark { color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.admin-view h2 { margin: 0; font-size: 1.3rem; letter-spacing: 1px; }
.panel-head { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 14px; }
.admin-head { padding-right: 44px; }

/* ===================== Tabs ===================== */
.tabs { display: flex; gap: 2px; margin-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.tab {
  background: none; border: none; color: var(--muted);
  padding: 10px 14px; font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane[hidden] { display: none; }

/* ===================== Forms ===================== */
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label, .img-field > label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
input[type="text"], input[type="url"], input[type="password"], textarea, select {
  width: 100%; background: #0c0c14; border: 1px solid var(--border-soft); border-radius: 9px;
  color: var(--text); font-family: var(--font); font-size: 0.95rem; padding: 11px 13px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select {
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffb000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option { background: #12121c; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; scrollbar-width: thin; scrollbar-color: rgba(255, 176, 0, 0.4) transparent; }
textarea::-webkit-scrollbar { width: 10px; }
textarea::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar-thumb { background: rgba(255, 176, 0, 0.3); border: 3px solid #0c0c14; border-radius: 8px; }
textarea::-webkit-scrollbar-thumb:hover { background: rgba(255, 176, 0, 0.55); }
input[type="file"] { font-size: 0.85rem; color: var(--muted); }
input[type="file"]::file-selector-button {
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 12px; margin-right: 12px; cursor: pointer; font-family: var(--font);
}
.checkbox { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--muted); cursor: pointer; display: inline-flex; }
.checkbox input { width: auto; }
.checkbox[hidden] { display: none; }
#login-form { display: flex; flex-direction: column; gap: 12px; }
.img-preview img { max-width: 100%; max-height: 140px; border-radius: 9px; border: 1px solid var(--border-soft); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

.btn {
  border: 1px solid var(--border-soft); border-radius: 9px; padding: 11px 18px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.4px;
  cursor: pointer; background: #1a1a26; color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1100; border-color: transparent; box-shadow: 0 6px 20px rgba(255,140,0,0.28); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--border); }
#logout:hover { color: var(--accent); border-color: var(--accent); }
.btn.danger { color: var(--danger); }

.error { color: var(--danger); font-size: 0.85rem; margin: 4px 0 0; }
.status-msg { color: var(--ok); font-size: 0.88rem; margin: 6px 0 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ===================== Settings image fields ===================== */
.img-field { margin-bottom: 18px; }
.img-field > label { display: block; margin-bottom: 8px; }
.img-row { display: flex; gap: 14px; align-items: flex-start; }
.img-thumb {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: 10px; border: 1px solid var(--border-soft);
  background: #0c0c14; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.img-thumb.wide { width: 120px; flex-basis: 120px; }
.img-thumb img { width: 100%; height: 100%; object-fit: contain; }
.img-empty { font-size: 0.66rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.img-controls { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ===================== Admin list ===================== */
.list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin: 4px 0 14px; }
.list-title { font-size: 0.95rem; letter-spacing: 1px; margin: 0; }
.list-title .hint { font-size: 0.8rem; }
.btn.small { padding: 8px 13px; font-size: 0.84rem; }
.btn.create { background: var(--accent-soft); color: var(--accent); border-color: var(--border); white-space: nowrap; }
.btn.create:hover { background: rgba(255, 176, 0, 0.22); color: var(--accent); }
#project-form { background: #0c0c14; border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px 16px 18px; margin-bottom: 18px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row { display: flex; align-items: center; gap: 12px; background: #0c0c14; border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; }
.admin-row.dragging { opacity: 0.4; border-color: var(--accent); }
.drag-handle { cursor: grab; color: var(--muted); font-size: 14px; letter-spacing: -2px; user-select: none; }
.admin-thumb { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; overflow: hidden; background: #0c0c14; display: flex; align-items: center; justify-content: center; }
.admin-thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-meta strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-meta span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-actions { display: flex; gap: 4px; flex-shrink: 0; }
.admin-actions button { background: #1a1a26; border: 1px solid var(--border-soft); color: var(--muted); border-radius: 7px; padding: 6px 9px; font-size: 0.78rem; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.admin-actions button:hover { color: var(--text); border-color: var(--border); }
.admin-actions button.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ===================== Social links (admin) ===================== */
.social-list { display: flex; flex-direction: column; gap: 6px; }
.social-row { display: flex; align-items: center; gap: 10px; background: #0c0c14; border: 1px solid var(--border-soft); border-radius: 9px; padding: 7px 10px; }
.social-row.dragging { opacity: 0.4; border-color: var(--accent); }
.social-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }
.social-ico svg { width: 100%; height: 100%; fill: currentColor; }
.social-name { font-size: 0.85rem; width: 84px; flex: 0 0 84px; color: var(--text); white-space: nowrap; }
.social-row .social-url { flex: 1; width: auto; padding: 8px 11px; font-size: 0.88rem; }
.adminlink-note { flex: 1; color: var(--muted); font-size: 0.8rem; font-style: italic; }

/* on/off toggle switch (social rows) */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: 0 0 36px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #2a2a38; border-radius: 20px; cursor: pointer; transition: background 0.2s ease; }
.switch .slider::before { content: ""; position: absolute; height: 14px; width: 14px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: transform 0.2s ease, background 0.2s ease; }
.switch input:checked + .slider { background: var(--accent-soft); }
.switch input:checked + .slider::before { transform: translateX(16px); background: var(--accent); }

/* ===================== Responsive ===================== */
@media (max-width: 560px) {
  .logo { gap: 14px; }
  .logo-mark { width: 58px; height: 58px; }
  .logo-text { font-size: clamp(2.6rem, 13vw, 3.8rem); }
  .logo-img { max-height: 120px; }
  #fire { height: 70vh; height: 70lvh; }                          /* taller flame band so it reads on small screens */

  /* Stacked one-per-row: logo on the left, title + description on the right. */
  .grid { flex-direction: column; flex-wrap: nowrap; align-items: stretch; row-gap: 14px; }
  .card {
    flex: 0 0 auto; max-width: none; width: 100%;
    flex-direction: row; align-items: center; text-align: left;
    gap: 16px; padding: 10px 8px;
  }
  a.card:hover { transform: none; }
  .card-logo { flex: 0 0 76px; width: 76px; height: 76px; }
  .card-logo-img { max-width: 100%; }
  .card-body { align-items: flex-start; gap: 5px; }
  .card-title { font-size: 0.98rem; }
  .card-desc { font-size: 0.82rem; max-width: none; }

  .modal-panel { padding: 22px 18px; }
  .tab { padding: 9px 10px; font-size: 0.85rem; }
  .admin-meta span { display: none; }
  .list-title .hint { display: none; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  .loader-ring, .loader-mark, .loader-mark-img, .loader-slash, .aurora span { animation: none; }
  .app { transition: opacity 0.4s ease; transform: none; }
  a.card:hover { transform: none; }
}
