/* Admin → Singles' Home (singles-home.js, 5 November 2026). Hairline lists in
   the ds- look; every form is a centred dialog, never a side panel. */

.shm { max-width: 1040px; display: flex; flex-direction: column; gap: 16px; }

.shm-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--fill); border-radius: 12px; align-self: flex-start; flex-wrap: wrap; }
.shm-tab { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: transparent; }
.shm-tab.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(24, 20, 26, .08); }

.shm-panel { display: flex; flex-direction: column; gap: 12px; }
.shm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shm-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.shm-muted { font-size: 12px; color: var(--ink-2); }

.shm-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shm-row {
  display: grid; grid-template-columns: auto 104px minmax(0, 1fr) 190px auto;
  align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line);
}
.shm-row:first-child { border-top: 0; }
.shm-row.media { grid-template-columns: auto 88px minmax(0, 1fr) auto; }
.shm-row.media.spot { grid-template-columns: 88px minmax(0, 1fr) auto; }
.shm-form .shm-note { margin-bottom: 14px; }
.shm-row.compact { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
.shm-row.off .shm-main, .shm-row.off .shm-chip, .shm-row.off .shm-who, .shm-row.off .shm-thumb { opacity: .5; }
.shm-row.sk { grid-template-columns: 1fr; height: 44px; }

.shm-move { display: flex; flex-direction: column; gap: 2px; }
.shm-icon { width: 28px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: transparent; }
.shm-icon:hover:not(:disabled) { background: var(--fill); color: var(--ink); }
.shm-icon:disabled { opacity: .25; cursor: default; }

.shm-chip { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.shm-chip.auto { background: var(--fill); color: var(--ink-2); }

.shm-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shm-title { text-align: left; font-size: 14.5px; font-weight: 600; color: var(--ink); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-title:hover { color: var(--accent); }
.shm-detail { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-extra { display: flex; gap: 12px; align-items: center; margin-top: 2px; }
.shm-link { font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; padding: 0; }
.shm-who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink); }

.shm-switch { padding: 0; }

.shm-thumb { width: 88px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--fill); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.shm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shm-form { display: flex; flex-direction: column; }
.shm-form .field { margin-bottom: 12px; }
.shm-form .field textarea { min-height: 76px; }
.shm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shm-three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.shm-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); }
.shm-check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 2px 0 12px; }
.shm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.shm-error { margin: 0 0 8px; min-height: 1px; font-size: 13px; color: var(--stop); }
.shm-error:empty { display: none; }
.shm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.shm-actions .shm-left { margin-right: auto; }

.shm-picker { display: flex; align-items: center; gap: 12px; }
.shm-pic { width: 96px; height: 60px; border-radius: 8px; background: var(--fill); overflow: hidden; flex-shrink: 0; }
.shm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shm-picker input[type=file] { padding: 8px 0; background: none; font-size: 13px; }

@media (max-width: 760px) {
  .shm-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .shm-row .shm-chip, .shm-row .shm-who { display: none; }
  .shm-row.media { grid-template-columns: auto minmax(0, 1fr) auto; }
  .shm-row.media.spot { grid-template-columns: minmax(0, 1fr) auto; }
  .shm-row.media .shm-thumb { display: none; }
  .shm-two, .shm-three { grid-template-columns: 1fr; gap: 0; }
}
