/* Shared dashboard layout fixes. Scope selectors to the affected screens. */
@media (min-width:761px) {
  #pgd-dashboard .pgd-days {align-items:stretch}
  #pgd-dashboard .pgd-day {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:48px;padding:7px 11px}
  #pgd-dashboard .pgd-day strong {display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  #pgd-dashboard .pgd-day-full {display:inline!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #pgd-dashboard .pgd-day-compact {display:none!important}
  #pgd-dashboard .pgd-day-meta {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none;white-space:nowrap}
  #pgd-dashboard .pgd-day-meta em,#pgd-dashboard .pgd-day-meta time {display:inline;font-size:10px;white-space:nowrap}
  body.detailpage .detail-hero {max-width:none;width:100%;margin-inline:0}
  body.detailpage .detail-day-list > button,body.detailpage .detail-day-list > a,body.detailpage .detail-day-list > .pending {display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;min-height:48px;padding:7px 10px;white-space:nowrap}
  body.detailpage .detail-day-list strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.detailpage .detail-day-list span {margin-left:auto;white-space:nowrap}
  body.detailpage .detail-day-list small {margin-left:3px;white-space:nowrap}
}
#pgd-dashboard .pgd-head .pgd-context {min-width:0;margin-left:auto;text-align:right;color:#c6d5dd;font-size:12px;font-weight:750;line-height:1.3}
#pgd-dashboard .pgd-archive .pgd-head .pgd-archive-all {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border:1px solid #7397a2;border-radius:8px;background:#25404a;color:#eef8f7;text-decoration:none;font-size:12px;font-weight:850;white-space:nowrap}
#pgd-dashboard .pgd-archive .pgd-head .pgd-archive-all:hover,#pgd-dashboard .pgd-archive .pgd-head .pgd-archive-all:focus-visible {border-color:#f5c76d;color:#ffe0a0}
#pgd-dashboard .pgd-archive-edition {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:60px;padding:9px 12px;border:1px solid #667d87;border-radius:9px;background:#20333d;color:#f5f8f7;text-align:left;cursor:pointer}
#pgd-dashboard .pgd-archive-edition:hover,#pgd-dashboard .pgd-archive-edition:focus-visible {border-color:#f4c768}
#pgd-dashboard .pgd-archive-edition span,#pgd-dashboard .pgd-archive-source {font-size:12px;color:#bcd2d8}
#pgd-dashboard .pgd-archive-source {display:block;margin:9px 0;line-height:1.5}
#pgd-dashboard .pgd-archive-table {width:100%;border:1px solid #627983;border-radius:10px;overflow:hidden}
#pgd-dashboard .pgd-archive-table-head,#pgd-dashboard .pgd-archive-table-row {display:grid;grid-template-columns:40px minmax(115px,1fr) repeat(3,minmax(48px,70px)) minmax(60px,82px);align-items:center;gap:4px;padding:10px 12px;text-align:right;font-variant-numeric:tabular-nums}
#pgd-dashboard .pgd-archive-table-head {background:#20343d;color:#d6e5e8;font-size:12px;font-weight:850}
#pgd-dashboard .pgd-archive-table-row {border-top:1px solid #3d5660;color:#f1f6f5;font-size:14px}
#pgd-dashboard .pgd-archive-table-row:nth-child(odd) {background:#1b303a}
#pgd-dashboard .pgd-archive-table-head span:nth-child(2),#pgd-dashboard .pgd-archive-table-row strong {text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pgd-dashboard .pgd-archive-table-row b:last-child {color:#ffcf73}
body.detailpage .topnav {background:#0d1b23!important;backdrop-filter:none}
body.detailpage .topnav #tnLive {display:none!important}
@media (max-width:760px) {
  #pgd-dashboard .pgd-archive-table-head,#pgd-dashboard .pgd-archive-table-row {grid-template-columns:24px minmax(75px,1fr) repeat(3,30px) 46px;gap:2px;padding:8px 5px;font-size:11px}
  #pgd-dashboard .pgd-archived .pgd-today {flex-direction:column;align-items:stretch}
  #pgd-dashboard .pgd-day-meta {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
  #pgd-dashboard .pgd-day-meta time,#pgd-dashboard .pgd-day-meta em {display:block;font-size:9px}
  #pgd-dashboard .pgd-head:has(.pgd-context) {flex-wrap:wrap}
  #pgd-dashboard .pgd-head .pgd-context {flex-basis:100%;margin-left:0;text-align:left;font-size:11px}
  #pgd-dashboard .pgd-archive .pgd-head {flex-wrap:wrap}
  #pgd-dashboard .pgd-archive .pgd-head .pgd-archive-all {min-height:30px;font-size:11px}
  body.detailpage #view.v-rank .rankwrap .lbsplit table {table-layout:fixed!important;width:100%!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit th.tmh {width:39%!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit th.rk {width:7%!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit th.dl {width:5%!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit .tag {display:flex;width:100%;min-width:0;align-items:center;gap:4px;flex-wrap:nowrap}
  body.detailpage #view.v-rank .rankwrap .lbsplit .tnm {display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;line-height:1.2!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit tbody tr {height:48px!important}
  body.detailpage #view.v-rank .rankwrap .lbsplit tbody td {height:48px!important;max-height:48px;overflow:hidden;vertical-align:middle}
}
