/* ============================================================
   GameRent — Admin (WordPress-style) · #/admin
   ============================================================ */
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.adm-side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--bg-1); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.adm-side .brand { padding: 6px 10px 16px; }
.adm-side-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-faint); padding: 14px 12px 6px; }
.adm-nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--tx-dim); cursor: pointer; transition: background .14s, color .14s; }
.adm-nav:hover { background: var(--bg-2); color: var(--tx); }
.adm-nav.on { background: var(--ac-soft); color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac-line); }
.adm-nav svg { width: 17px; height: 17px; flex-shrink: 0; }
.adm-nav .dirty { margin-left: auto; width: 7px; height: 7px; border-radius: 99px; background: var(--warn); }
.adm-side-foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--tx-mute); line-height: 1.5; }

.adm-main { min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 28px; background: rgba(var(--bg-rgb),.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 19px; }
.adm-top .sub { font-size: 13px; color: var(--tx-mute); }
.adm-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.adm-body { padding: 26px 28px 80px; max-width: 1180px; display: flex; flex-direction: column; gap: 22px; }
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.adm-card { background: var(--card); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; }
.adm-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.adm-card-h h2 { font-size: 16px; }
.adm-card-h p { font-size: 13px; color: var(--tx-mute); margin-top: 3px; }
.adm-stat { background: var(--card); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.adm-stat b { font-family: var(--f-disp); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.adm-stat span { font-size: 12.5px; color: var(--tx-mute); }

/* fields */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label { font-size: 12.5px; font-weight: 700; color: var(--tx-dim); display: flex; justify-content: space-between; gap: 8px; }
.fld > label small { font-weight: 500; color: var(--tx-faint); }
.fld input, .fld textarea, .fld select { width: 100%; background: var(--bg-2); border: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); padding: 10px 12px; font-size: 14px; color: var(--tx); transition: box-shadow .15s, background .15s; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; background: var(--bg-1); box-shadow: inset 0 0 0 1.5px var(--ac-line); }
.fld textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.fld .hint { font-size: 12px; color: var(--tx-faint); }
.fld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.fld-stack { display: flex; flex-direction: column; gap: 14px; }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; user-select: none; }
.sw-track { width: 38px; height: 22px; border-radius: 99px; background: var(--bg-4); position: relative; transition: background .18s; flex-shrink: 0; }
.sw-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw.on .sw-track { background: var(--ac); }
.sw.on .sw-track::after { transform: translateX(16px); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--tx-mute); }
.seg button.on { background: var(--card); color: var(--tx); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); }

/* lists / tables */
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.adm-row.off { opacity: .55; }
.adm-row .grip { color: var(--tx-faint); display: inline-flex; flex-direction: column; gap: 2px; }
.adm-row .grip button { width: 22px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--tx-mute); }
.adm-row .grip button:hover { background: var(--bg-4); color: var(--tx); }
.adm-row .grip button[disabled] { opacity: .3; pointer-events: none; }
.adm-row .t { font-weight: 600; font-size: 14px; }
.adm-row .s { font-size: 12.5px; color: var(--tx-mute); }
.adm-row .sp { flex: 1; min-width: 0; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-mute); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:hover td { background: var(--bg-2); }
.adm-table input { width: 100%; min-width: 72px; background: transparent; border: 0; border-bottom: 1px dashed var(--line-3); padding: 4px 2px; font-family: var(--f-disp); font-size: 13.5px; color: var(--tx); }
.adm-table input:focus { outline: none; border-bottom-color: var(--ac); }
.adm-table .th-tier { font-family: var(--f-disp); font-weight: 700; }
.adm-cover { width: 34px; height: 46px; border-radius: 5px; object-fit: cover; background: var(--bg-3); flex-shrink: 0; }
.adm-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg-3); color: var(--tx-dim); }
.adm-pill.ok { background: var(--ok-soft); color: var(--ok); }
.adm-pill.warn { background: rgba(255,194,77,.14); color: var(--warn); }
.adm-pill.off { background: var(--danger-soft); color: var(--danger); }
.adm-search { position: relative; }
.adm-search input { width: 100%; height: 40px; border-radius: var(--r-pill); background: var(--bg-2); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px 0 38px; font-size: 14px; color: var(--tx); }
.adm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tx-mute); }

/* drawer */
.adm-drawer-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.adm-drawer { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--bg-1); box-shadow: var(--sh-3); padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 18px; animation: drawerIn .25s cubic-bezier(.22,.61,.36,1); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.adm-drawer-h { display: flex; align-items: center; gap: 12px; }
.adm-drawer-h h2 { font-size: 18px; flex: 1; }

/* swatches */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; transition: transform .15s; }
.swatch:hover { transform: scale(1.06); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tx); }
.swatch span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 5px; font-size: 11px; color: var(--tx-mute); white-space: nowrap; }
.markpick { display: flex; gap: 8px; }
.markpick button { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--tx-dim); display: inline-flex; align-items: center; justify-content: center; }
.markpick button.on { background: var(--ac); color: var(--ac-ink); }
.adm-preview { border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }

.adm-mobile-note { display: none; }
@media (max-width: 960px){
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-side .brand, .adm-side-h, .adm-side-foot { display: none; }
  .adm-grid-2, .adm-grid-3 { grid-template-columns: 1fr; }
  .adm-body { padding: 18px 16px 60px; }
  .adm-top { padding: 0 16px; }
}
