:root {
  color-scheme: light;
  --page-bg: #f5f2ed;
  --page-pattern: rgba(255, 157, 109, .08);
  --page-stripe: rgba(255, 255, 255, .42);
  --panel: #fffdf9;
  --panel-strong: #fff;
  --ink: #302a27;
  --muted: #786f69;
  --line: #e7ddd5;
  --accent: #ef774f;
  --accent-strong: #db5d37;
  --accent-soft: #ffeadc;
  --focus: #1468b3;
  --danger: #bd3f3f;
  --shadow: 0 18px 50px rgba(68, 46, 33, .12);
  --deck-main: #be2152;
  --deck-sub: #be2152;
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page-bg); }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 12px 12px, var(--page-pattern) 2px, transparent 2.5px),
    linear-gradient(135deg, transparent 0 49%, var(--page-stripe) 49% 51%, transparent 51% 100%);
  background-size: 28px 28px, 110px 110px;
}
body.theme-dark {
  color-scheme: dark;
  --page-bg: #22242f;
  --page-pattern: rgba(124, 128, 163, .04);
  --page-stripe: rgba(255, 255, 255, .016);
  --panel: #2b2e3b;
  --panel-strong: #343746;
  --ink: #faf8ff;
  --muted: #c4c4d2;
  --line: #505465;
  --accent: #9992ef;
  --accent-strong: #beb5ff;
  --accent-soft: #39364f;
  --danger: #ff8297;
  --shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}
button:disabled, input:disabled { cursor: not-allowed; opacity: .56; }
button, input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel-strong);
}
button { min-height: 40px; padding: 8px 13px; font-weight: 800; transition: border-color .16s, background .16s, transform .16s; }
button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
button:active:not(:disabled) { transform: translateY(1px); }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.55; }
label { display: block; margin-top: 12px; font-size: .84rem; font-weight: 800; }
a { color: var(--accent-strong); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1760px;
  min-height: 106px;
  margin: 0 auto;
  padding: 17px clamp(14px, 2.5vw, 38px) 13px;
}
.topbar h1 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.1vw, 2.15rem); letter-spacing: .02em; }
.topbar h1 small { font-size: .46em; color: var(--muted); font-weight: 700; }
.tagline { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.theme-toggle { width: 46px; height: 46px; border-radius: 50%; font-size: 1.35rem; flex: none; }
.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, .85fr);
  gap: 16px;
  max-width: 1760px;
  height: calc(100dvh - 106px);
  min-height: 500px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.5vw, 38px) 18px;
}
.panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.board-panel { display: flex; flex-direction: column; }
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 96% 7%, color-mix(in srgb, var(--deck-sub) 16%, transparent), transparent 40%),
    radial-gradient(circle at 2% 99%, color-mix(in srgb, var(--deck-main) 12%, transparent), transparent 45%);
}
.section-heading h2, .settings-heading h2 { margin: 3px 0 0; font-size: 1.35rem; }
.board-top .section-heading { min-width: 0; }
.current-deck-label { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.board-top-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.board-top-actions button { flex: none; }
.accent-button {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.accent-button:hover:not(:disabled) { color: #fff; background: var(--accent-strong); }
.danger-link { color: var(--danger); }
.danger-button { color: #fff; border-color: #a63243; background: #bd3f50; }
.danger-button:hover:not(:disabled) { color: #fff; background: #a63243; }
.board-content { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 17px 20px 20px; }
.board-help, .field-hint { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.item-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: min-content;
  gap: 7px;
  align-content: start;
  min-height: 0;
  margin-top: 14px;
  overflow-y: auto;
  padding: 2px 4px 10px 2px;
  scrollbar-color: var(--accent-soft) transparent;
}
.add-item-list-button { width: 100%; min-height: 44px; }
.board-memo { flex: none; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.board-memo h3 { margin: 0; font-size: 1rem; }
.board-memo textarea { display: block; margin-top: 8px; resize: none; }
.item-card {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--deck-main) 48%, var(--line));
  border-radius: 17px;
  background: color-mix(in srgb, var(--deck-main) 7%, var(--panel-strong));
}
.item-card.is-member { border-color: #46b981; background: color-mix(in srgb, #46b981 9%, var(--panel-strong)); }
.item-card.is-locked { opacity: .65; }
.item-card.is-dragging { opacity: .35; }
.item-card.is-drop-target { outline: 3px dashed var(--deck-main); outline-offset: 1px; }
.copy-card {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
}
.copy-card:hover:not(:disabled) { background: color-mix(in srgb, var(--deck-main) 14%, var(--panel-strong)); }
.copy-card strong { flex: 0 1 auto; min-width: 0; overflow: hidden; padding-right: 10px; border-right: 1px solid var(--line); text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.copy-card span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .77rem; }
.item-controls .member-tag { margin-right: auto; color: #207c55; font-size: .7rem; font-weight: 900; }
.item-controls .drag-handle { margin-right: 0; }
.item-controls button { flex: none; }
.item-card.is-locked .item-controls { opacity: 1; }
.copy-card em { align-self: flex-start; color: #207c55; font-style: normal; font-size: .68rem; font-weight: 900; }
.copy-card.is-copied { background: color-mix(in srgb, #46b981 25%, var(--panel-strong)); }
.item-actions { display: flex; flex: none; justify-content: flex-end; align-items: center; gap: 3px; padding: 3px 7px; border-left: 1px solid var(--line); }
.item-actions button { min-height: 30px; padding: 2px 7px; border: 0; background: transparent; font-size: .8rem; }
.item-actions .move-item { display: none; }
.item-actions .drag-handle { margin-right: auto; cursor: grab; font-size: 1.15rem; }
.item-actions .drag-handle:active { cursor: grabbing; }
.item-actions .touch-sort { display: none; }
.empty-state { grid-column: 1 / -1; padding: 35px 18px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 1.05rem; }
.settings-panel { display: flex; flex-direction: column; }
.settings-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings-heading > div { min-width: 0; }
.settings-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-color: var(--accent-soft) transparent; }
.settings-footer { flex: none; padding-top: 12px; border-top: 1px solid var(--line); }
.setting-section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.setting-section:last-child { border-bottom: 0; }
.setting-section h3 { margin: 0 0 10px; font-size: 1rem; }
.setlist-section { padding-bottom: 14px; }
.setlist-add-button { width: 100%; margin-top: 9px; }
.help-section { margin: 0 20px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.help-button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-button-row button { min-width: 0; }
.developer-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 20px 18px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); }
.developer-main-link { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
.developer-main-link:hover strong { color: var(--accent-strong); text-decoration: underline; }
.developer-icon { display: block; width: 46px; height: 46px; object-fit: contain; }
.developer-copy { display: grid; min-width: 0; gap: 1px; }
.developer-copy small { color: var(--muted); font-size: .65rem; font-weight: 800; }
.developer-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.developer-links { display: grid; gap: 4px; }
.developer-links a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 27px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent-strong); background: var(--panel-strong); font-size: .66rem; font-weight: 900; line-height: 1.2; text-align: center; text-decoration: none; }
.developer-links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.wide-button { width: 100%; }
.profile-main-row { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.profile-main-row h3 { min-width: 0; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.profile-main-row > button:not(.profile-icon-button) { min-height: 34px; padding: 5px 8px; white-space: nowrap; font-size: .76rem; }
.profile-icon-button { display: grid; flex: none; place-items: center; width: 62px; height: 62px; min-height: 62px; overflow: hidden; padding: 0; border: 2px solid var(--deck-main); border-radius: 50%; background: var(--panel-strong); color: var(--muted); font-size: 1.35rem; }
.profile-main-row .profile-icon-button { width: 54px; height: 54px; min-height: 54px; }
.profile-icon-button img { width: 100%; height: 100%; object-fit: contain; }
#remove-profile-icon-button { min-height: 25px; margin-top: 5px; padding: 2px 7px; font-size: .68rem; font-weight: 700; }
.profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.profile-links.is-single { grid-template-columns: minmax(0, 1fr); }
.profile-links:empty { display: none; }
.streamer-section:has(.profile-links:empty) { display: none; }
.profile-link-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 62px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); color: var(--ink); text-decoration: none; }
.profile-link-card strong, .profile-link-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link-card strong { font-size: .86rem; }
.profile-link-card small { color: var(--muted); font-size: .69rem; }
a.profile-link-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.profile-link-card.is-empty { opacity: .65; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); cursor: pointer; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { margin-top: 2px; color: var(--muted); font-size: .69rem; font-weight: 500; }
.toggle-row input { position: relative; flex: none; appearance: none; width: 42px; height: 25px; min-height: 25px; padding: 0; border-radius: 99px; background: #abb1bf; }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .16s; }
.toggle-row input:checked { background: var(--deck-main); }
.toggle-row input:checked::after { transform: translateX(17px); }
.color-buttons { display: flex; gap: 8px; }
.color-buttons button { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 8px; min-width: 0; font-size: .8rem; }
.color-swatch { display: block; flex: none; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch-color, transparent); }
.color-swatch.is-empty { background: var(--panel-strong); }
.share-result { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); }
.share-result label { margin-top: 0; }
.share-result input { margin: 7px 0; font-size: .76rem; }
.import-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); font-size: .8rem; font-weight: 700; }
.import-notice[hidden] { display: none; }
.import-notice button { flex: none; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 20px; max-width: min(440px, calc(100vw - 40px)); padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); box-shadow: var(--shadow); font-size: .86rem; font-weight: 800; }
.toast.is-error { border-color: var(--danger); color: var(--danger); }
dialog { width: min(560px, calc(100vw - 24px)); max-height: min(86dvh, 800px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); }
dialog::backdrop { background: rgba(25, 20, 31, .58); }
.dialog-content { padding: 22px; }
.info-dialog-content p { line-height: 1.65; }
.guide-steps { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); counter-increment: guide; }
.guide-steps strong::before { content: counter(guide) '. '; color: var(--accent-strong); }
.guide-steps span { color: var(--muted); font-size: .84rem; line-height: 1.55; }
.info-panel { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-strong); }
.info-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.info-panel p { margin: 7px 0; font-size: .84rem; }
.info-contact { font-size: .84rem; }
.dialog-content h2 { margin: 4px 0 16px; font-size: 1.3rem; }
.dialog-content label { margin-top: 14px; }
.dialog-content textarea { min-height: 110px; }
.profile-link-edit-row { display: grid; grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.profile-link-edit-row input { min-width: 0; }
.streamer-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content; gap: 7px; max-height: min(36dvh, 280px); min-height: 0; overflow-y: auto; padding: 2px 4px 4px 2px; scrollbar-color: var(--accent-soft) transparent; }
.streamer-card { display: flex; align-items: stretch; min-width: 0; overflow: hidden; border: 2px solid var(--line); border-left: 5px solid var(--card-color); border-radius: 15px; background: color-mix(in srgb, var(--card-color) 7%, var(--panel-strong)); }
.streamer-card.is-active { border-color: var(--card-color); border-left-width: 5px; background: color-mix(in srgb, var(--card-color) 16%, var(--panel-strong)); }
.streamer-card.is-dragging { opacity: .4; }
.streamer-card.is-drop-target { outline: 3px dashed var(--deck-main); outline-offset: 1px; }
.streamer-card-select { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 7px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.streamer-card-select strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streamer-card-select small { flex: none; color: var(--ink); font-size: .69rem; font-weight: 900; }
.streamer-card-actions { display: flex; flex: none; align-items: center; gap: 2px; padding: 3px 7px; border-left: 1px solid var(--line); }
.streamer-card-actions button { min-height: 36px; padding: 3px 8px; border: 0; background: transparent; }
.streamer-card-actions .streamer-move { display: none; }
.streamer-card-actions .streamer-drag { cursor: grab; font-size: 1.2rem; }
.streamer-card-actions .streamer-drag:active { cursor: grabbing; }
.profile-edit-subtitle { margin: 20px 0 8px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 1rem; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dialog-actions .danger-link { margin-right: auto; }
.copy-preview { margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); }
.copy-preview span { display: block; color: var(--muted); font-size: .75rem; }
.copy-preview code { display: block; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .9rem; }
.color-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.color-preset { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 3px; font-size: .71rem; }
.color-preset::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--swatch-color, var(--panel-strong)); }
.color-preset[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.color-choice { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 3px; font-size: .7rem; }
.color-choice-swatch { display: block; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; }
.color-choice.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.color-choice.is-none { justify-content: center; }
.color-code-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.color-code-row span { font-size: 1.2rem; font-weight: 900; }
.color-code-row input { flex: 1; }
.import-preview { max-height: 80dvh; overflow: auto; }
.import-preview h3 { margin: 16px 0 7px; }
.import-preview ul { margin: 6px 0 12px; padding-left: 22px; }
.import-preview li { padding: 4px 0; overflow-wrap: anywhere; }
.import-preview small { display: block; color: var(--muted); }
.import-preview .member-mark { color: #207c55; font-weight: 800; }
.preview-line { margin: 6px 0; overflow-wrap: anywhere; font-size: .82rem; }
.preview-items { max-height: 34dvh; margin: 9px 0; padding-left: 24px; overflow: auto; }
.preview-item { padding: 7px 0; border-bottom: 1px solid var(--line); }
.preview-item strong { display: block; }
.preview-item pre { margin: 3px 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; overflow: visible; }
  .board-panel { height: max(520px, calc(100dvh - 124px)); }
  .settings-panel { display: block; overflow: visible; }
  .settings-scroll { overflow: visible; }
}
@media (max-width: 570px) {
  .topbar { min-height: 92px; padding: 15px 12px; }
  .topbar h1 { font-size: 1.3rem; }
  .tagline { font-size: .72rem; }
  .app-shell { padding: 0 10px 14px; gap: 10px; }
  .board-panel { height: max(520px, calc(100dvh - 106px)); }
  .board-top, .board-content, .settings-heading, .setting-section { padding-left: 13px; padding-right: 13px; }
  .board-top { flex-wrap: wrap; }
  .board-top-actions { width: 100%; justify-content: flex-end; gap: 6px; }
  .board-top-actions button { min-height: 34px; padding: 5px 9px; font-size: .78rem; }
  .copy-card { padding: 6px 9px; }
  .copy-card strong { padding-right: 0; border-right: 0; }
  .copy-card span { display: none; }
  .item-actions { gap: 1px; padding: 2px 4px; }
  .item-actions button { padding: 2px 5px; }
  .item-controls .member-tag { max-width: 55px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .61rem; }
  .item-actions .drag-handle { display: none; }
  .item-actions .touch-sort { display: inline-block; }
  .item-actions .move-item { display: inline-block; }
  .streamer-card-actions .streamer-drag { display: none; }
  .streamer-card-actions .streamer-move { display: inline-block; }
  .board-help { display: none; }
  .color-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .import-notice { flex-wrap: wrap; }
  .profile-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-main-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 5px; }
  .profile-main-row .profile-icon-button { width: 46px; height: 46px; min-height: 46px; }
  .profile-main-row > button:not(.profile-icon-button) { padding: 5px 6px; font-size: .7rem; }
  .developer-card { margin-right: 13px; margin-left: 13px; }
  .help-section { margin-right: 13px; margin-left: 13px; }
}

/* Document Picture-in-Picture uses the same palette and color variables. */
body.mini-body { height: 100dvh; min-height: 0; overflow: hidden; background-size: 28px 28px, 110px 110px; }
.mini-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding: 10px; }
.mini-heading { display: flex; align-items: center; min-height: 34px; margin-bottom: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.mini-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.mini-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content; gap: 6px; flex: 1; min-height: 0; overflow: auto; align-content: start; padding: 2px 2px 8px; scrollbar-color: var(--accent-soft) transparent; }
.mini-copy-button { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; column-gap: 8px; min-width: 0; min-height: 46px; padding: 7px 10px; border: 2px solid color-mix(in srgb, var(--deck-main) 52%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--deck-main) 12%, var(--panel)); text-align: left; }
.mini-copy-button .mini-item-name { min-width: 0; overflow: hidden; padding-right: 8px; border-right: 1px solid var(--line); text-overflow: ellipsis; white-space: nowrap; }
.mini-copy-button .mini-item-snippet { min-width: 0; overflow: hidden; color: var(--muted); font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-copy-button.is-member { border-color: #46b981; background: color-mix(in srgb, #46b981 12%, var(--panel)); }
.mini-copy-button.is-copied { border-color: #2da36a; background: color-mix(in srgb, #46b981 28%, var(--panel)); }
.mini-copy-button small { grid-column: 1 / -1; color: #207c55; font-weight: 900; }
.mini-copy-button.is-locked { opacity: .58; }
.mini-empty { padding: 20px 14px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.mini-status { min-height: 21px; margin-top: 5px; color: var(--muted); font-size: .73rem; text-align: center; }

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