/* VLClipper — monochrome dashboard */
:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #111316;
  --surface-raised: #17191d;
  --surface-soft: #0d0f12;
  --surface-hover: #202328;
  --text: #f2f3f5;
  --muted: #92969f;
  --line: #292c32;
  --line-soft: #202329;
  --accent: #d7d9de;
  --accent-2: #f3f4f6;
  --accent-grad: linear-gradient(180deg, #d9dce1 0%, #aeb2ba 100%);
  --accent-soft: rgba(210, 214, 222, .09);
  --danger: #d2d4d9;
  --ok: #b9bcc3;
  --radius: 16px;
  --rim: inset 0 1px 0 rgba(255,255,255,.055);
  --shadow: 0 12px 32px rgba(0,0,0,.28);
  --glow: 0 5px 16px rgba(0,0,0,.36);
  --sheen: linear-gradient(145deg, rgba(255,255,255,.025), transparent 42%);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 14px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
h1 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; font-weight: 720; }
h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.015em; }
p { margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
::selection { background: rgba(215,217,222,.22); }
:focus-visible { outline: 2px solid #d8dbe1; outline-offset: 3px; }

/* Layout */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; max-width: 1800px; margin: 0 auto; }
.side { position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 5px;
  background: #0d0f11; border-right: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 10px; padding: 3px 10px 26px; font-weight: 750; font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.brand span { color: var(--text); }
.brand img { width: 29px; height: 29px; filter: grayscale(1); opacity: .9; }
.nav { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #a6a9b0; cursor: pointer; font-weight: 550;
  transition: background .16s, color .16s, transform .16s; }
.nav:hover { background: #17191d; color: var(--text); }
.nav.active { color: #f4f5f7; background: #202328; box-shadow: inset 0 1px 0 rgba(255,255,255,.045); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .spacer { flex: 1; }
.main { width: 100%; max-width: 1320px; padding: 38px 44px 72px; min-width: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .side { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; align-items: center; padding: 9px 10px; overflow-x: auto; gap: 3px;
    background: rgba(13,15,17,.96); border: 0; border-bottom: 1px solid var(--line-soft); }
  .brand { padding: 0 8px 0 3px; }
  .brand span, .side .spacer { display: none; }
  .me { display: flex; flex: none; width: 40px; height: 40px; padding: 3px; margin: 0 3px 0 0; border-radius: 50%; }
  .me img { width: 32px; height: 32px; }
  .me div { display: none; }
  .nav { white-space: nowrap; padding: 9px 11px; }
  .nav span { display: none; }
  .main { padding: 24px 17px 50px; }
}

/* Raised, tactile controls */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #34373e;
  background: linear-gradient(180deg, #24272c, #1a1c20); color: var(--text); padding: 8px 15px; border-radius: 10px;
  font: inherit; font-weight: 620; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #08090b, 0 5px 12px rgba(0,0,0,.26);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease; }
.btn:hover { background: linear-gradient(180deg, #30333a, #22252a); border-color: #484c54; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 0 #08090b, 0 9px 18px rgba(0,0,0,.34); }
.btn:focus-visible { outline: 2px solid #d8dbe1; outline-offset: 4px; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.35), 0 0 0 #08090b; }
.btn.primary:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.22), 0 0 0 #666a72; }
.chip { box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 2px 0 #070809, 0 4px 8px rgba(0,0,0,.2); }
.chip:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3), 0 1px 0 #070809; }
.btn.primary { color: #101114; background: linear-gradient(180deg, #e1e3e7, #bfc2c9); border-color: #e7e9ed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 3px 0 #666a72, 0 6px 14px rgba(0,0,0,.28); }
.btn.primary:hover { background: linear-gradient(180deg, #f1f2f4, #d1d3d8); border-color: #fff; }
.btn.danger { color: #e0e2e6; border-color: #454950; background: linear-gradient(180deg, #292c32, #1d1f23); }
.btn.danger:hover { border-color: #666a73; background: linear-gradient(180deg, #35383f, #24262b); }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 7px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .48; cursor: default; transform: none; box-shadow: none; }
.btn.discord { color: #f3f4f6; border-color: #41444b; background: linear-gradient(180deg, #34373e, #25272d); justify-content: center; padding: 11px 16px; }
.btn.discord svg { width: 20px; height: 20px; }
.btn.discord:hover { filter: brightness(1.15); }
.btn.disabled { opacity: .5; pointer-events: none; }
input, select, textarea { width: 100%; padding: 9px 12px; color: var(--text); background: #0c0e11; border: 1px solid #30333a; border-radius: 9px;
  font: inherit; box-shadow: inset 0 2px 4px rgba(0,0,0,.22); transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: #71757e; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #777c85; background: #101216; box-shadow: 0 0 0 3px rgba(215,217,222,.1), inset 0 1px 3px rgba(0,0,0,.2); }
input[type=color] { padding: 3px; height: 40px; width: 56px; cursor: pointer; }
label.field { display: grid; gap: 6px; font-weight: 600; }
label.field small { font-weight: 400; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border: 1px solid #30333a; border-radius: 9px; color: #a0a4ac; background: #111316; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: .15s ease; }
.chip:hover { color: var(--text); border-color: #4a4e56; background: #1b1e22; }
.chip.active { color: #f3f4f6; border-color: #60646d; background: #292c32; box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }

.card, .stat, .item, .toast, .side { background: var(--sheen), var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--rim), var(--shadow); }
.card { border-radius: var(--radius); padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 23px; }
.stat { border-radius: 13px; padding: 16px 18px; }
.stat b { display: block; font-size: 25px; font-weight: 730; letter-spacing: -.035em; color: #e2e4e8; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; } .stat { padding: 14px; } }

/* Upload gallery */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 15px; }
.item { position: relative; overflow: hidden; padding: 6px; border-radius: 14px; cursor: pointer; transition: transform .18s ease, border-color .18s, box-shadow .18s; }
.item:hover { transform: translateY(-3px); border-color: #454950; box-shadow: var(--rim), 0 16px 34px rgba(0,0,0,.42); }
.item.selected { outline: 2px solid #c8cbd1; outline-offset: 2px; }
.thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0a0b0d; border-radius: 9px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hidden-image { filter: grayscale(1) blur(8px); transform: scale(1.08); }
.ext { padding: 10px 15px; border: 1px solid #41444b; border-radius: 10px; color: #e0e2e6; background: linear-gradient(180deg,#292c32,#1c1e23); font-size: 13px; font-weight: 750; letter-spacing: .05em; }
.item .info { padding: 10px 8px 7px; }
.item .name { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.item .meta { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.item .quick { position: absolute; top: 13px; right: 13px; display: flex; gap: 5px; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; }
.item:hover .quick, .item:focus-within .quick { opacity: 1; transform: none; }
.item .quick .btn { background: rgba(12,13,15,.9); color: #fff; border-color: #555962; }
.item .check { position: absolute; top: 14px; left: 14px; display: none; width: 23px; height: 23px; border: 2px solid #c8cbd1; border-radius: 7px; background: rgba(10,11,13,.8); }
.selecting .item .check { display: block; }
.item.selected .check { background: #c8cbd1; }
.badge { display: inline-block; padding: 1px 8px; border: 1px solid #41444b; border-radius: 999px; color: #d8dbe0; background: #24272c; font-size: 11px; font-weight: 700; }
.badge.warn { color: #d2d4d9; border-color: #454950; background: #222429; }
.empty { padding: 64px 16px; border: 1px dashed #363940; border-radius: var(--radius); color: var(--muted); background: #0d0f12; text-align: center; }
.empty h2 { color: var(--text); }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* Modal and copy rows */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); animation: fade .16s; }
.modal { width: min(560px,100%); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #34373e; border-radius: 18px;
  background: #141619; box-shadow: 0 28px 80px rgba(0,0,0,.65); animation: pop .2s ease-out; }
.modal.wide { width: min(880px,100%); }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 21px; border-bottom: 1px solid var(--line-soft); }
.modal header h2 { overflow: hidden; margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.modal .body { display: grid; gap: 16px; padding: 21px; }
.preview { display: flex; align-items: center; justify-content: center; min-height: 160px; overflow: hidden; border-radius: 12px; background: #0b0c0e; box-shadow: inset 0 0 0 1px var(--line-soft); }
.preview img, .preview video { display: block; max-width: 100%; max-height: 50vh; }
.preview img.hidden-image { filter: grayscale(1) blur(12px); transform: scale(1.08); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.copyrow { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; }
.copyrow span { color: var(--muted); font-size: 13px; font-weight: 600; }
.copyrow input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
@media (max-width: 500px) { .copyrow { grid-template-columns: 1fr auto; } .copyrow span { grid-column: 1/-1; } }

/* Apps and setup help */
.apps { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 15px; }
.app { display: flex; flex-direction: column; gap: 10px; }
.app.hero { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; background: linear-gradient(135deg,#202328,#141619 70%); }
.app .icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #41444b; border-radius: 12px; color: #e1e3e7; background: linear-gradient(180deg,#2a2d33,#1a1c20); }
.app .icon svg { width: 22px; height: 22px; }
.app p { color: var(--muted); }
.app .grow { flex: 1; }
@media (max-width: 640px) { .app.hero { grid-template-columns: 1fr; } }
.cmd { display: flex; gap: 8px; align-items: stretch; }
.cmd code { flex: 1; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0c0e11; white-space: nowrap; }
.steps { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.steps li::marker { color: #b8bbc2; font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.key { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0e1013; }
kbd { padding: 2px 8px; border: 1px solid #41444b; border-bottom-width: 2px; border-radius: 6px; background: #202328; font: 600 12px ui-monospace, Menlo, monospace; }
.note { padding: 10px 13px; border: 1px solid #34373e; border-radius: 10px; color: var(--muted); background: #191b1f; font-size: 13px; }

/* Tables, settings, embeds */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: rgba(255,255,255,.035); }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,380px); gap: 18px; align-items: start; }
.settings form { display: grid; gap: 16px; }
.settings #folder-form { display: flex; }
.folder-filter { width: auto; min-width: 150px; }
.folder-list { display: grid; gap: 8px; }
.folder-row { justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0e1013; }
.divider { width: 100%; border: 0; border-top: 1px solid var(--line-soft); }
.danger-zone { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #35383f; background: linear-gradient(145deg,rgba(255,255,255,.025),transparent 55%), #111316; }
.danger-zone h2 { color: #e0e2e6; }
.danger-zone p { margin-top: 5px; max-width: 700px; }
@media (max-width: 620px) { .danger-zone { align-items: stretch; flex-direction: column; } .danger-zone .btn { align-self: flex-start; } }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } }
.embed { display: grid; gap: 6px; padding: 12px 14px; border-left: 4px solid #b8bbc2; border-radius: 8px; background: #0e1013; }
.embed.bare { padding: 0; border-left: 0; background: none; }
.embed.bare .img { margin-top: 0; }
.embed .site { color: var(--muted); font-size: 12px; }
.embed .t { color: #e1e3e7; font-weight: 650; }
.embed .d { font-size: 13px; }
.embed .img { aspect-ratio: 16/9; margin-top: 6px; border-radius: 7px; background: linear-gradient(135deg,#444951,#17191d); }
.embed input, .settings input[type=color] { accent-color: #bfc2c9; }

/* Login, profile, notifications */
.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.login .card { display: grid; gap: 16px; width: min(390px,100%); padding: 30px; border-radius: 18px; }
.login .brand { justify-content: center; padding: 0; font-size: 21px; }
.login .brand img { width: 39px; height: 39px; }
.err { min-height: 18px; color: var(--danger); font-size: 13px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(360px,calc(100vw - 32px)); }
.toast { display: grid; gap: 6px; padding: 12px 15px; border-radius: 12px; background: #17191d; animation: slide .2s ease-out; }
.toast.ok { box-shadow: inset 4px 0 0 var(--ok), var(--shadow); }
.toast.bad { box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.toast .bar { height: 4px; overflow: hidden; border-radius: 3px; background: #292c32; }
.toast .bar i { display: block; width: 0; height: 100%; background: #c8cbd1; transition: width .15s; }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }
#drop { position: fixed; inset: 10px; z-index: 90; display: flex; align-items: center; justify-content: center; border: 2px dashed #aeb2ba; border-radius: 18px; background: rgba(18,20,23,.9); backdrop-filter: blur(9px); pointer-events: none; }
#drop div { padding: 14px 24px; border: 1px solid #555962; border-radius: 10px; color: #f1f2f4; background: linear-gradient(180deg,#30333a,#202328); font-size: 17px; font-weight: 700; box-shadow: 0 8px 25px rgba(0,0,0,.4); }
.me { display: flex; align-items: center; gap: 10px; padding: 9px; margin: 0 0 16px; border: 1px solid #30333a; border-radius: 11px; background: linear-gradient(180deg,#17191d,#111316); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 3px 0 #08090b, 0 6px 14px rgba(0,0,0,.2); }
.me img { flex: none; width: 34px; height: 34px; border: 2px solid #454950; border-radius: 50%; filter: grayscale(1); }
.me div { display: grid; min-width: 0; line-height: 1.25; }
.me b, .me small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.me small { color: var(--muted); font-size: 12px; }
.record-audio { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; }
.record-audio input { width: 16px; height: 16px; margin: 0; accent-color: #bfc2c9; }
.record-status { justify-items: center; text-align: center; }
.record-clock { color: #f2f3f5; font: 700 34px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.record-indicator { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: #c9cbd0; box-shadow: 0 0 0 4px rgba(215,217,222,.12); animation: record-pulse 1.2s ease-in-out infinite; }
@keyframes record-pulse { 50% { opacity: .45; transform: scale(.85); } }
@media (max-width: 760px) { .me { margin-bottom: 0; } }

/* Changelogs and notification settings */
.timeline { display: grid; gap: 12px; }
.changelog-entry { display: grid; gap: 8px; }
.changelog-entry h2 { margin: 0; }
.changelog-entry p { margin: 0; white-space: pre-wrap; }
.event-options { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.event-options legend { padding: 0 6px; color: var(--muted); }
.event-options label { display: flex; align-items: center; gap: 8px; }
.event-options input { accent-color: #bfc2c9; }

/* Invites */
.invite-card { display: grid; gap: 14px; }
.slots { display: flex; gap: 6px; margin-top: 8px; }
.slot { width: 30px; height: 8px; border: 1px solid #34373e; border-radius: 4px; background: #15171a; }
.slot.used { border-color: #777c85; background: #aeb2ba; }
.help summary { color: #d0d2d7; font-weight: 600; cursor: pointer; }
.help ol { margin-top: 8px; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 32px; height: 32px; border: 1px solid #454950; border-radius: 50%; filter: grayscale(1); }
* { scrollbar-width: thin; scrollbar-color: #41444b transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
