:root {
  --bg: #e9ebee;
  --box: #fff;
  --border: #d8dbe0;
  --text: #2b2f36;
  --muted: #7a818c;
  --nav: #1b1e23;
  --accent: #2f73c9;
  --platinum: #9fb6cf;
  --gold: #d6a531;
  --silver: #a8adb3;
  --bronze: #c07a45;
  --green: #4caf50;
  --ultra: #c0392b;
  --very: #d35400;
  --rare: #2f73c9;
  --common: #7a818c;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.45 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Navbar */
.navbar { background: var(--nav); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; }
.navbar nav { display: flex; gap: 4px; }
.navbar nav a { color: #c8ccd2; padding: 15px 12px; font-weight: 500; border-bottom: 3px solid transparent; }
.navbar nav a:hover, .navbar nav a.active { color: #fff; text-decoration: none; border-bottom-color: var(--accent); }

/* Trophy cups */
.cup { flex: none; vertical-align: middle; }
.cup use { stroke: rgba(80,55,30,.25); stroke-width: .3; }
.cup-platinum { fill: var(--platinum); }
.cup-gold { fill: var(--gold); }
.cup-silver { fill: var(--silver); }
.cup-bronze { fill: var(--bronze); }

/* Profile header */
.profile-header, .game-header {
  background: linear-gradient(180deg, #2c323b, #20252c);
  color: #fff;
  padding-top: 24px;
}
.profile-inner { display: flex; gap: 20px; align-items: center; }
.avatar { width: 110px; height: 110px; border-radius: 6px; border: 3px solid rgba(255,255,255,.15); background: #111; }
.profile-main { flex: 1; min-width: 0; }
.sync-button { align-self: center; margin: 4px 0 4px 8px; min-height: 36px; padding: 8px 18px; border: 1px solid #659ce0; border-radius: 20px; background: linear-gradient(135deg, #397fd6, #245da7); box-shadow: 0 2px 6px #0003; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; }
.sync-button:hover:not(:disabled) { background: #3c84df; box-shadow: 0 3px 10px #0005; }
.sync-button:focus-visible { outline: 2px solid #b5d7ff; outline-offset: 3px; }
.sync-button:disabled { opacity: .6; cursor: wait; }
#manual-sync-result { padding-top: 12px; padding-bottom: 12px; font-size: 13px; }
#manual-sync-result:empty { display: none; }
.sync-dialog { max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.sync-dialog::backdrop { background: rgba(0,0,0,.5); }
.sync-dialog h2, .sync-dialog p { margin: 0; }
.profile-main h1, .game-header h1 { margin: 0 0 4px; font-size: 28px; font-weight: 600; }
.about { color: #b7bdc6; margin: 4px 0 10px; max-width: 700px; }
.trophy-totals { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 20px; font-weight: 600; }
.trophy-totals .count { display: inline-flex; align-items: center; gap: 6px; }
.trophy-totals .total { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; }
.trophy-totals small { font-size: 11px; color: #9aa1ab; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

.level-box { width: 150px; text-align: center; background: rgba(0,0,0,.25); border-radius: 6px; padding: 12px; }
.level-num { font-size: 36px; font-weight: 700; line-height: 1; }
.level-label { font-size: 11px; color: #9aa1ab; text-transform: uppercase; letter-spacing: .5px; margin: 4px 0; }
.level-box .progress { margin: 8px 0 2px; background: rgba(255,255,255,.12); }
.tier-1 .level-num, .tier-2 .level-num, .tier-3 .level-num { color: var(--bronze); }
.tier-4 .level-num, .tier-5 .level-num, .tier-6 .level-num { color: var(--silver); }
.tier-7 .level-num, .tier-8 .level-num, .tier-9 .level-num { color: var(--gold); }
.tier-10 .level-num { color: var(--platinum); }

.stats-row { display: flex; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.stat { flex: 1 1 120px; padding: 14px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: 20px; font-weight: 600; }
.stat-label { display: block; font-size: 11px; color: #9aa1ab; text-transform: uppercase; letter-spacing: .5px; }

/* Layout */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 20px; align-items: start; }
main.container { padding-top: 20px; padding-bottom: 20px; }
.box { background: var(--box); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.box-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #f6f7f9; }
.box-title h2 { margin: 0; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.box-title span { color: var(--muted); }
.empty { color: var(--muted); padding: 16px; margin: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters input, .filters select { font: inherit; padding: 5px 8px; border: 1px solid var(--border); border-radius: 3px; background: #fff; }
.filters input { width: 180px; }
.trophy-filters { padding: 14px; gap: 12px; }
.trophy-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.trophy-filters select { min-height: 40px; }
.load-more { display: block; margin: 12px auto; padding: 8px 16px; font: inherit; cursor: pointer; }
.load-more[hidden], #games-message:empty { display: none; }
.scroll-sentinel { height: 1px; }
.guide-link { font-size: 12px; }
.trophy-info .guide-link { display: inline-block; margin-top: 4px; }

/* Games table */
.games-table, .trophy-table { width: 100%; border-collapse: collapse; }
.games-table td, .trophy-table td { padding: 8px 10px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.games-table tr:last-child td, .trophy-table tr:last-child td { border-bottom: 0; }
.games-table tr:hover, .trophy-table tr:hover { background: #f8f9fb; }
.game-row.completed { background: #f2f9f2; }
.game-row.platinum-earned, .trophy-group.platinum-earned { background: #edf5fc; }
.trophy-group.completed { background: #f2f9f2; }
.game-row.completed:hover, .trophy-table .trophy-row.earned:hover { background: #dcefdc; }
.game-row.platinum-earned:hover { background: #d9eafb; }
.trophy-row.unearned { background: var(--box); }
.game-icon { width: 120px; }
.game-icon img { width: 110px; height: 60px; object-fit: cover; border-radius: 3px; background: #ddd; }
.game-title { font-weight: 600; font-size: 15px; color: var(--text); }
.game-sub { color: var(--muted); font-size: 12px; }
.recording-link { display: block; position: relative; width: 160px; max-width: 100%; margin-top: 8px; border-radius: 5px; overflow: hidden; background: #111; color: #fff; }
.recording-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.recording-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #d90000; padding: 3px 12px; border-radius: 6px; font-size: 18px; }
.trophy-recording { width: 120px; }
.trophy-recording .recording-link { width: 100px; margin: 0; }
.trophy-recording .recording-link img { height: 56px; }
.recording-link:hover .recording-play { background: #f00; }
.mini-trophy .recording-link img { width: 100%; height: auto; background: #111; border-radius: 0; }
.game-platform-inline { display: none; }
.trophy-type-rarity { width: 75px; }
.trophy-type-rarity .rarity { display: block; margin-top: 5px; }
.game-header .platinum-time { color: #b7bdc6; margin-top: 8px; }
.game-counts { display: flex; gap: 10px; margin-top: 3px; font-size: 12px; }
.count { display: inline-flex; align-items: center; gap: 3px; }
.game-progress { width: 150px; text-align: right; }
.progress-value { font-weight: 600; font-size: 13px; }
.game-platform { width: 110px; text-align: right; white-space: nowrap; }
.plat-earned { display: inline-block; margin-left: 4px; vertical-align: middle; }

.progress { height: 8px; background: #e3e6ea; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.progress .bar { height: 100%; background: var(--accent); border-radius: 4px; }
.progress.complete .bar { background: var(--green); }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: #3a4350; color: #fff; margin-left: 3px; vertical-align: middle; }
.tag.plus { background: #f5b301; color: #222; }
.tag.hidden-tag { background: #e3e6ea; color: var(--muted); }

/* Sidebar */
.cabinet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.cabinet-item { position: relative; display: grid; align-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: #222; }
.cabinet-item .cabinet-blur { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: blur(12px) brightness(.65); transform: scale(1.2); }
.cabinet-item .cabinet-cover { position: relative; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.cabinet-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cabinet-large { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 14px; }
.cabinet[hidden], #goal-form[hidden] { display: none; }
#completion-goal input { min-width: 0; width: 100%; font: inherit; padding: 8px; }
#completion-goal button, #platinum-view { min-height: 36px; font: inherit; }
#goal-message:empty { display: none; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-trophy { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #eef0f3; }
.mini-trophy:last-child { border-bottom: 0; }
.mini-trophy img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; background: #ddd; }
.mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Trophy tables */
.trophy-icon { width: 70px; }
.trophy-icon img { width: 56px; height: 56px; border-radius: 3px; object-fit: cover; background: #ddd; }
.trophy-icon img.game-thumb { width: 90px; height: 50px; }
.trophy-name { font-weight: 600; color: var(--text); font-size: 14px; }
.trophy-detail { color: #5a616b; font-size: 13px; }
.trophy-game { color: var(--muted); font-size: 12px; }
.trophy-date { width: 120px; text-align: center; font-size: 13px; white-space: nowrap; }
.trophy-date small, .trophy-rarity small { color: var(--muted); font-size: 11px; display: block; }
.trophy-rarity { width: 100px; text-align: center; }
.trophy-type { width: 44px; text-align: center; }
.log-num { width: 60px; color: var(--muted); font-weight: 600; text-align: center; }
.trophy-row.earned { background: #f2f9f2; }
.trophy-row.unearned .trophy-icon img { filter: grayscale(1); opacity: .55; }
.trophy-row.unearned .trophy-type .cup { opacity: .45; }
.trophy-row:target { outline: 2px solid var(--accent); outline-offset: -2px; }
.trophy-progress { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.trophy-progress .progress { flex: 1; margin: 0; }
.hide-earned .trophy-row.earned { display: none; }

.rarity { font-weight: 700; font-size: 13px; }
.rarity.ultra-rare { color: var(--ultra); }
.rarity.very-rare { color: var(--very); }
.rarity.rare { color: var(--rare); }
.rarity.common { color: var(--common); }

/* Game page */
.game-header { position: relative; overflow: hidden; padding-bottom: 24px; }
.game-header::before {
  content: ""; position: absolute; inset: -40px; background: var(--cover) center / cover no-repeat;
  filter: blur(28px) brightness(.35); transform: scale(1.1);
}
.game-header-inner { position: relative; display: flex; gap: 20px; align-items: center; }
.game-cover { width: 240px; max-width: 35vw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.4); background: #111; }
.game-header-text { flex: 1; min-width: 0; }
.game-unobtainable { width: fit-content; margin: 10px 0; padding: 8px 12px; border: 1px solid #e8ad55; border-radius: 4px; background: #422e13; color: #ffe0ad; font-weight: 600; }
.game-unobtainable small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
.game-header-progress { width: 180px; text-align: center; }
.game-header-progress .progress { background: rgba(255,255,255,.15); }
.big-progress { font-size: 34px; font-weight: 700; }
.game-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.group-header { display: flex; gap: 14px; align-items: center; padding: 10px 14px; background: linear-gradient(110deg, #dce8f5, #eef3f9); border-left: 4px solid var(--accent); border-bottom: 1px solid #bdcfe2; }
.group-header img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.group-header h3 { margin: 0; font-size: 17px; color: #233f60; }
.group-text { flex: 1; }
.group-progress { width: 180px; display: flex; align-items: center; gap: 10px; }
.group-progress .progress { flex: 1; margin: 0; }
.group-progress .progress-value { white-space: nowrap; }

.game-icon.ps5 img { height: 110px; object-fit: contain; }
.cabinet-item.ps5 .cabinet-cover { aspect-ratio: 1; object-fit: contain; }
.trophy-icon.ps5 img.game-thumb { width: 90px; height: 90px; object-fit: contain; }
.game-header.ps5 .game-cover { aspect-ratio: 1; object-fit: contain; }
.group-header.ps5 img { aspect-ratio: 1; object-fit: contain; }

.footer { color: var(--muted); font-size: 12px; padding: 20px 0 30px; text-align: center; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 12px; }
.pagination span { color: var(--muted); }

@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  .profile-inner, .game-header-inner { flex-wrap: wrap; }
  .level-box, .game-header-progress { width: 100%; }
}
@media (max-width: 640px) {
  .game-icon { width: 80px; }
  .game-icon img { width: 72px; height: 40px; }
  .game-icon.ps5 img { height: 72px; }
  .trophy-icon.ps5 img.game-thumb { width: 56px; height: 56px; }
  .game-platform, .trophy-rarity small, .log-num { display: none; }
  .game-progress { width: 90px; }
  .trophy-icon { width: 50px; }
  .trophy-icon img { width: 40px; height: 40px; }
  .trophy-date { width: 80px; white-space: normal; }
  .filters input { width: 100%; }
  .navbar nav a { padding: 15px 6px; }
  .brand span { display: none; }
  .container { padding-left: 12px; padding-right: 12px; }
  .nav-inner { height: auto; min-height: 52px; flex-wrap: wrap; justify-content: center; gap: 4px; padding-top: 8px; }
  .navbar nav { flex-wrap: wrap; justify-content: center; }
  .navbar nav a { padding: 12px 8px; }
  .profile-inner { gap: 12px; }
  .avatar { width: 72px; height: 72px; }
  .profile-main h1, .game-header h1 { font-size: 23px; overflow-wrap: anywhere; }
  .trophy-totals { gap: 10px; font-size: 16px; }
  .stat { flex-basis: 33%; padding: 12px 4px; }
  .stat-value { font-size: 18px; }
  .level-box { padding: 10px; }
  .filters { width: 100%; gap: 10px; }
  .filters input, .filters select { min-height: 44px; font-size: 16px; max-width: 100%; }
  .filters select { flex: 1 1 140px; min-width: 0; }
  .trophy-filters label { flex: 1 1 40%; min-width: 0; }
  .trophy-filters select { flex: none; width: 100%; }
  .games-table tbody, .trophy-table tbody { display: block; }
  .games-table tr, .trophy-table tr { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 12px; border-bottom: 1px solid var(--border); }
  .games-table td, .trophy-table td { width: auto; padding: 0; border: 0; min-width: 0; }
  .game-icon, .trophy-icon { grid-column: 1; grid-row: 1; align-self: start; }
  .game-icon img, .game-icon.ps5 img { width: 64px; height: auto; }
  .trophy-icon img, .trophy-icon.ps5 img.game-thumb { width: 56px; height: auto; }
  .log-table .trophy-icon:has(.game-thumb) { display: none; }
  .game-info, .trophy-info { grid-column: 2 / -1; grid-row: 1; overflow-wrap: anywhere; }
  .trophy-type { grid-column: 1; grid-row: 2; text-align: left; }
  .trophy-recording { grid-column: 2 / -1; }
  .trophy-recording:empty { display: none; }
  .trophy-date, .trophy-rarity, .game-progress { grid-column: 2 / -1; text-align: left; white-space: normal; }
  .trophy-date br { display: none; }
  .trophy-date small, .trophy-rarity small { display: inline; margin-left: 6px; font-size: 12px; }
  .games-table .game-progress { grid-column: 1 / -1; }
  .game-progress-line { display: flex; align-items: center; gap: 8px; }
  .game-progress-line .progress { flex: 1; min-width: 24px; margin: 0; }
  .game-platform-inline { display: inline-flex; align-items: center; gap: 2px; }
  .game-platform-inline .tag { margin: 0; padding: 1px 4px; font-size: 10px; white-space: nowrap; }
  .game-platform-inline .plat-earned { margin-left: 2px; }
  .games-table .game-platform { display: none; }
  .game-title, .trophy-name { font-size: 16px; line-height: 1.4; }
  .trophy-detail { font-size: 14px; margin: 4px 0; }
  .game-sub, .trophy-game { font-size: 13px; }
  .game-counts { flex-wrap: wrap; gap: 8px; }
  .guide-link { font-size: 14px; padding: 6px 0; }
  .recording-link { width: 144px; }
  .trophy-type-rarity { text-align: center; }
  .game-header-inner { gap: 14px; }
  .game-cover { width: 110px; max-width: 30vw; }
  .game-header-text .game-counts { gap: 6px; }
  .game-toolbar, .group-header { flex-wrap: wrap; gap: 12px; }
  .group-header { gap: 8px; }
  .group-header img { width: 48px; }
  .group-text { min-width: 140px; }
  .group-progress { width: 100%; text-align: left; }
  .mini-name, .mini-sub { white-space: normal; overflow-wrap: anywhere; }
  .pagination { gap: 12px; }
  .pagination a { padding: 8px 4px; }
}

/* Auth banner & admin */
.sync-banner { background: #e8f1fb; color: #174b7a; border-bottom: 1px solid #b9d4ee; padding: 8px 16px; text-align: center; font-size: 13px; }
.auth-banner { background: #fff4d6; color: #6b4e00; border-bottom: 1px solid #f0d58a; padding: 8px 16px; text-align: center; font-size: 13px; }
.auth-banner a { font-weight: 600; margin-left: 4px; }
.admin { max-width: 720px; }
.notice { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; border: 1px solid; }
.notice-ok { background: #edf7ed; border-color: #b7dfb9; color: #1e4620; }
.notice-bad { background: #fdecea; border-color: #f5c2bd; color: #611a15; }
.status-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.box-title .status-ok { background: #e3f3e4; color: #2e7d32; }
.box-title .status-warn { background: #fff4d6; color: #8a6500; }
.box-title .status-bad { background: #fdecea; color: #b3261e; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; padding: 14px; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; word-break: break-word; }
.admin-form { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.admin-form ol { margin: 0; padding-left: 20px; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.admin-form input { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 3px; font-weight: 400; }
.admin-form button { align-self: flex-start; font: inherit; font-weight: 600; padding: 8px 16px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; cursor: pointer; }
.backlog-content { padding: 20px; }
.backlog-content > p, #backlog-message { overflow-wrap: anywhere; }
.backlog-form select, .backlog-form button { font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid var(--border); border-radius: 4px; background: #fff; max-width: 100%; }
.backlog-form button { background: var(--accent); color: #fff; cursor: pointer; }
.backlog-form button:disabled { opacity: .6; cursor: not-allowed; }
.box-title h1 { margin: 0; font-size: 18px; }
.backlog-form { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 6px; background: #f5f7fa; }
.backlog-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.backlog-selects > label { display: grid; gap: 8px; align-content: start; font-size: 13px; font-weight: 600; }
.backlog-selects select { width: 100%; min-width: 0; font-weight: 400; }
.backlog-checkboxes { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.backlog-form fieldset { margin: 0; padding: 10px 12px 12px; border: 1px solid #cbd5e1; border-radius: 4px; min-width: 0; background: #fff; }
.backlog-form legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.backlog-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.backlog-platforms label { display: flex; align-items: center; min-height: 44px; gap: 6px; padding: 0 8px; border: 1px solid #e0e5ec; border-radius: 4px; font-size: 13px; cursor: pointer; }
.backlog-platforms label:has(input:checked) { background: #edf4fc; border-color: #9abce2; }
.backlog-platforms input { accent-color: var(--accent); }
.backlog-help { font-size: 13px; color: var(--muted); line-height: 1.6; }
.backlog-help summary { cursor: pointer; color: var(--accent); width: fit-content; }
.backlog-help p { margin-bottom: 0; }
.backlog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.backlog-result { display: grid; justify-items: start; gap: 12px; overflow-wrap: anywhere; }
#backlog-count { display: inline-block; padding: 10px 0; }
#backlog-candidates { margin-bottom: 20px; overflow-wrap: anywhere; }
#backlog-candidates-list { padding-left: 24px; }
#backlog-candidates-list li { padding: 6px 0; }
.backlog-art { max-width: 100%; width: 240px; height: auto; }
.backlog-art.ps5 { width: 160px; }
@media (max-width: 960px) {
  .backlog-checkboxes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .backlog-content { padding: 14px; }
  .backlog-form { padding: 14px; gap: 16px; }
  .backlog-selects { grid-template-columns: 1fr; }
  .backlog-actions { align-items: stretch; flex-direction: column; gap: 4px; }
}
