/* ============================================================
   Raw Host — dark theme (satu bahasa desain dengan DAPA Checker)
   ============================================================ */

:root {
  --bg:          #070a12;
  --bg-soft:     #0b101c;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --line:        rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);

  --text:        #e8edf7;
  --text-dim:    #99a4bb;
  --text-faint:  #6b7590;

  --accent:      #6d7cff;
  --accent-2:    #22d3ee;
  --accent-soft: rgba(109, 124, 255, .16);

  --good:   #34d399;
  --warn:   #fbbf24;
  --bad:    #fb7185;
  --info:   #60a5fa;
  --violet: #a78bfa;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, .95);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Atribut hidden harus menang atas display eksplisit milik .btn dkk. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; }
strong { font-weight: 650; }

button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }

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

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(109, 124, 255, .10), transparent 70%),
    linear-gradient(180deg, #080c16 0%, #070a12 45%, #05070e 100%);
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 44vw; height: 44vw; top: -14vw; left: -8vw;  background: #3b3fd6; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; top: 4vw;  right: -10vw; background: #0e7490; animation-delay: -9s; }
.aurora span:nth-child(3) { width: 32vw; height: 32vw; top: 52vw; left: 28vw;   background: #6d28d9; opacity: .3; animation-delay: -17s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vw, 0) scale(1.15); }
}

/* ---------- Hero ---------- */
.hero { padding: 3.4rem 0 2rem; max-width: 720px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 700; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: .85rem; color: var(--text-dim); font-size: 1.02rem; }
.hero-tight { padding: 2.2rem 0 1.5rem; max-width: 100%; }
.view-title { font-family: var(--mono); font-size: clamp(1.2rem, 3vw, 1.75rem); word-break: break-all; }

.link-btn {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-faint); font-size: .84rem; text-decoration: none;
  border-bottom: 1px dashed var(--line-strong); transition: color .2s, border-color .2s;
}
.link-btn svg { width: 15px; height: 15px; }
.link-btn:hover { color: var(--accent-2); border-color: var(--accent-2); }
.back-link { margin: 0 0 1rem; }

/* ---------- Tabs ---------- */
.tabs {
  position: relative; display: inline-flex; gap: .25rem; padding: .3rem;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  margin-bottom: 1.25rem;
}
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .58rem 1.05rem; border: 0; border-radius: 11px;
  background: none; color: var(--text-dim); font-weight: 550; font-size: .9rem;
  cursor: pointer; transition: color .2s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: #fff; }
.tab-glider {
  position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(109, 124, 255, .9), rgba(34, 211, 238, .65));
  box-shadow: 0 8px 22px -10px rgba(109, 124, 255, .95);
  transition: transform .34s var(--ease), width .34s var(--ease);
}

/* ---------- Panels ---------- */
.panel { display: none; animation: rise .38s var(--ease); }
.panel.is-active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Card ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
}

/* ---------- Fields & buttons ---------- */
.field { position: relative; flex: 1; min-width: 0; }
.field-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-faint); pointer-events: none;
}
.field input {
  width: 100%; padding: .85rem 2.4rem .85rem 2.7rem;
  border: 1px solid transparent; border-radius: 13px;
  background: rgba(0, 0, 0, .28); color: var(--text);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  border-color: rgba(109, 124, 255, .6);
  background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input[type="search"]::-webkit-search-cancel-button { display: none; }
.field input:disabled { opacity: .5; cursor: not-allowed; }

.field-sm input { padding: .55rem .8rem .55rem 2.3rem; border-radius: 10px; font-size: .87rem; }
.field-sm { flex: 0 1 230px; }
.field-sm .field-icon { left: .7rem; width: 15px; height: 15px; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .82rem 1.4rem; border: 1px solid transparent; border-radius: 13px;
  font-weight: 600; font-size: .9rem; white-space: nowrap; cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6 55%, var(--accent-2));
  background-size: 180% 180%;
  box-shadow: 0 12px 30px -14px rgba(109, 124, 255, 1);
  animation: sheen 7s linear infinite;
}
@keyframes sheen { 50% { background-position: 100% 50%; } }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }

.btn-sm { padding: .5rem .85rem; font-size: .82rem; border-radius: 10px; }

.spinner {
  display: none; width: 15px; height: 15px; flex: none;
  border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy .spinner { display: block; }
.btn.is-busy { pointer-events: none; opacity: .8; }

/* ---------- Options row ---------- */
.opts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  padding: .95rem .35rem .25rem; font-size: .85rem; color: var(--text-dim);
}
.note-pill { display: inline-flex; align-items: flex-start; gap: .5rem; color: var(--text-faint); font-size: .82rem; }
.note-pill svg { width: 15px; height: 15px; flex: none; margin-top: .18rem; color: var(--accent-2); }

.ctl { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--text-dim); }
.ctl input, .ctl select {
  padding: .45rem .6rem; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ctl input { width: 220px; }
.ctl select { min-width: 160px; cursor: pointer; }
.ctl select option { background: #0d121e; color: var(--text); }
.ctl input:focus, .ctl select:focus { border-color: rgba(109, 124, 255, .6); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctl-wide { flex: 1 1 260px; }
.ctl-wide input { flex: 1; width: auto; min-width: 0; }

/* ---------- Dropzone ---------- */
.drop-card { padding: 1.15rem; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 3rem 1.5rem; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  transition: border-color .22s, background .22s, transform .22s var(--ease);
}
.dropzone:hover { border-color: rgba(109, 124, 255, .55); background: rgba(109, 124, 255, .05); }
.dropzone:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.dropzone.is-over {
  border-color: var(--accent-2); background: rgba(34, 211, 238, .08);
  transform: scale(1.005);
  box-shadow: inset 0 0 60px -20px rgba(34, 211, 238, .5);
}
.drop-icon { width: 42px; height: 42px; color: var(--accent); opacity: .85; margin-bottom: .4rem; }
.dropzone strong { font-size: 1.02rem; }
.dropzone span { color: var(--text-dim); font-size: .88rem; }
.dropzone em { font-style: normal; color: var(--accent-2); }
.dropzone small { color: var(--text-faint); font-size: .77rem; margin-top: .45rem; }

.picked {
  list-style: none; margin: .9rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: .35rem;
  max-height: 220px; overflow-y: auto;
}
.picked li {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .7rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
  font-size: .84rem;
}
.picked .pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .8rem; }
.picked .pk-size { color: var(--text-faint); font-family: var(--mono); font-size: .76rem; flex: none; }
.picked .pk-warn { color: var(--bad); font-size: .74rem; flex: none; }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.hint { font-size: .82rem; color: var(--text-faint); }
.foot-actions { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }

/* ---------- Paste ---------- */
.bulk-card { padding: 1.15rem; }
.bulk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.bulk-head label { font-size: .85rem; font-weight: 550; color: var(--text-dim); }
.counter {
  font-size: .76rem; font-family: var(--mono); color: var(--accent-2);
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .2);
  padding: .18rem .55rem; border-radius: 999px;
}
.counter.over { color: #fda4af; background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .28); }

#pasteInput {
  width: 100%; padding: .9rem 1rem; resize: vertical; min-height: 260px;
  border: 1px solid var(--line); border-radius: 13px;
  background: rgba(0, 0, 0, .3); color: var(--text);
  font-family: var(--mono); font-size: .86rem; line-height: 1.65;
  outline: none; transition: border-color .2s, box-shadow .2s;
  tab-size: 4;
}
#pasteInput:focus { border-color: rgba(109, 124, 255, .6); box-shadow: 0 0 0 4px var(--accent-soft); }
#pasteInput::placeholder { color: var(--text-faint); }

.bulk-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.3rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.bulk-actions { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }

/* ---------- Daftar item ---------- */
.list-card { margin-top: 1.6rem; overflow: hidden; }
.table-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line);
}
.toolbar-spacer { flex: 1 1 auto; }
.shown-count { font-size: .78rem; color: var(--text-faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.segmented {
  display: inline-flex; gap: .2rem; padding: .22rem;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.seg {
  padding: .35rem .7rem; border: 0; border-radius: 8px;
  background: none; color: var(--text-dim); font-size: .8rem; font-weight: 550;
  cursor: pointer; transition: .18s;
}
.seg b { font-family: var(--mono); font-weight: 650; color: var(--text-faint); margin-left: .3rem; font-size: .78rem; }
.seg:hover { color: var(--text); }
.seg.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg.is-active b { color: var(--accent-2); }

.items { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; }

.item {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(0, 0, 0, .24);
  padding: .85rem 1rem;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .2s;
}
.item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); transform: translateY(-1px); }
.item:hover::before { opacity: .9; }

.item-head { display: flex; align-items: center; gap: .75rem; }

.type-badge {
  flex: none; min-width: 52px; padding: .32rem .55rem; text-align: center;
  border-radius: 8px; border: 1px solid rgba(109, 124, 255, .3);
  background: rgba(109, 124, 255, .12); color: #a5b1ff;
  font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}

.item-main { flex: 1; min-width: 0; }
.item-name {
  display: block; color: var(--text); font-family: var(--mono); font-size: .92rem; font-weight: 550;
  text-decoration: none; word-break: break-all;
}
.item-name:hover { color: var(--accent-2); text-decoration: underline; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .22rem; font-size: .76rem; color: var(--text-faint); }
.item-meta .dot { opacity: .5; }

.tag { padding: .08rem .4rem; border-radius: 6px; font-size: .67rem; font-weight: 600; letter-spacing: .02em; }
.tag-paste { background: rgba(167, 139, 250, .14); color: var(--violet); border: 1px solid rgba(167, 139, 250, .25); }
.tag-perm  { background: rgba(52, 211, 153, .12); color: var(--good); border: 1px solid rgba(52, 211, 153, .22); }

.item-acts { display: flex; gap: .4rem; flex: none; }
.inline-form { display: inline; margin: 0; }

.row-btn {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text-dim); cursor: pointer; transition: .18s;
}
.row-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.row-btn svg { width: 15px; height: 15px; }
.row-btn.danger:hover { color: #fda4af; border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .12); }

/* Satu baris perintah dengan pengalih bentuk — tidak ada teks yang terpotong
   di tiga tempat sekaligus seperti versi tiga kotak. */
.cmdbar {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
  margin-top: .75rem; padding: .35rem .4rem .35rem .4rem;
  border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, .34);
  transition: border-color .2s;
}
.item:hover .cmdbar { border-color: rgba(255, 255, 255, .12); }

.cmd-tabs {
  display: inline-flex; gap: .1rem; flex: none;
  padding: .12rem; border-radius: 8px; background: rgba(255, 255, 255, .04);
}
.cmd-tab {
  padding: .24rem .55rem; border: 0; border-radius: 6px; background: none;
  color: var(--text-faint); font-family: var(--mono); font-size: .7rem; font-weight: 600;
  cursor: pointer; transition: .16s;
}
.cmd-tab:hover { color: var(--text-dim); }
.cmd-tab.is-active {
  background: rgba(109, 124, 255, .18); color: #a9b4ff;
  box-shadow: inset 0 0 0 1px rgba(109, 124, 255, .3);
}

/* Perintah panjang bisa digeser, bukan dipotong elipsis. */
.cmd-view {
  flex: 1; min-width: 0; padding: .2rem .15rem;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  font-family: var(--mono); font-size: .75rem; color: var(--accent-2);
}
/* Fade kanan hanya muncul kalau perintahnya memang lebih panjang dari kolom. */
.cmd-view.is-clip {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
.cmd-view::-webkit-scrollbar { height: 0; }
.cmd-view::selection { background: rgba(34, 211, 238, .3); }

.copy-btn {
  flex: none; padding: .3rem .68rem; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-dim); font-size: .72rem; font-weight: 600; cursor: pointer; transition: .18s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.copy-btn.copied { color: var(--good); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .12); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 4rem 1.5rem; color: var(--text-faint); text-align: center; }
.empty-state svg { width: 46px; height: 46px; opacity: .4; margin-bottom: .5rem; }
.empty-state p { font-size: .95rem; color: var(--text-dim); }
.empty-state small { font-size: .8rem; }
.empty-note { padding: 2rem; text-align: center; color: var(--text-faint); font-size: .88rem; }

/* ---------- Tampilan isi ---------- */
.code-wrap { max-height: 74vh; overflow: auto; overscroll-behavior: contain; }
.code {
  margin: 0; padding: 1.1rem 1.25rem;
  font-family: var(--mono); font-size: .82rem; line-height: 1.7;
  color: #cfd8ea; white-space: pre; tab-size: 4;
}

.alert {
  display: flex; gap: .6rem; margin: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: .85rem;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .22); color: #fcd34d;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box {
  position: relative; width: min(920px, 100%); max-height: 88dvh; overflow-y: auto;
  padding: 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #0a0e18;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
  animation: pop .3s var(--ease);
}
.modal-narrow { width: min(600px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  color: var(--text-dim); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: .18s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-box h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.help-list { margin: 0; font-size: .88rem; }
.help-list dt { font-weight: 650; color: var(--accent-2); margin-top: .85rem; }
.help-list dt:first-child { margin-top: 0; }
.help-list dd { margin: .2rem 0 0; color: var(--text-dim); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 120; display: flex; flex-direction: column; gap: .55rem; pointer-events: none; }
.toast {
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .85rem;
  border: 1px solid var(--line-strong); background: #10151f; color: var(--text);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .95);
  animation: toastIn .3s var(--ease); max-width: 340px;
}
.toast.ok  { border-color: rgba(52, 211, 153, .35); }
.toast.err { border-color: rgba(251, 113, 133, .35); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(18px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }

/* ---------- Footer ---------- */
.site-foot { padding: 2.5rem 0 3rem; color: var(--text-faint); font-size: .8rem; max-width: 900px; }
.site-foot em { color: var(--text-dim); font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .wrap { width: min(1240px, 100% - 1.6rem); }
  .hero { padding: 2.2rem 0 1.5rem; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .dropzone { padding: 2.2rem 1rem; }
  .bulk-actions, .foot-actions { margin-left: 0; width: 100%; }
  .bulk-actions .btn, .foot-actions .btn { flex: 1; }
  .ctl-wide { flex: 1 1 100%; }
  .ctl input, .ctl select { width: 100%; min-width: 0; }
  .table-toolbar { gap: .5rem; }
  .field-sm { flex: 1 1 100%; }
  .toolbar-spacer { display: none; }
  .shown-count { width: 100%; }
  .item-head { flex-wrap: wrap; }
  .item-acts { width: 100%; justify-content: flex-start; }
  .toasts { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { max-width: none; }
}

/* Layar sempit: perintah turun ke barisnya sendiri agar tetap terbaca. */
@media (max-width: 560px) {
  .cmdbar { flex-wrap: wrap; }
  .cmd-view { order: 3; flex: 1 1 100%; }
  .copy-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); background-clip: content-box; }

::selection { background: rgba(109, 124, 255, .35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
