/* Library, History, Usage: values from Library.dc.html, History.dc.html, DesktopUsage.dc.html, PhoneUsage.dc.html. */
.pg .lwrap, .pg .uwrap { max-width: 1440px; margin: 0 auto; padding: 14px var(--gutter) 20px; box-sizing: border-box; }
.pg .pagehead { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pg .lcols { display: flex; flex-wrap: wrap; gap: 20px; }
.pg .lcols > main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pg .search { flex: 1 1 320px; height: 44px; border-radius: var(--r-12); background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 8px; box-sizing: border-box; }
.pg .search input { flex: 1; border: none; outline: none; font: inherit; font-size: var(--fs-14); background: none; color: var(--text); }
.pg .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pg .chip { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--stroke); background: var(--card); font: inherit;
  font-size: var(--fs-13); color: var(--text); cursor: pointer; }
.pg .chip.on { border-color: var(--text); background: var(--text); color: var(--card); }
.pg .b { font-weight: 600; }
.pg .k { font-size: var(--fs-12); color: var(--muted); }

/* ---------------- Library */
.library .bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.library .agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.library .asset { display: flex; flex-direction: column; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-14); overflow: hidden; padding: 0;
  text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.library .asset.on { border: 2px solid var(--accent); }
.library .asset .thumb { height: 130px; width: 100%; }
.library .asset .meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.library .asset .n { font-size: var(--fs-14); font-weight: 600; }
.library .t, .history .t { font-size: var(--fs-12); color: var(--muted); }
.library .adetail { flex: 1 1 340px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-18);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; text-align: left; }
.library .aview { position: relative; height: 200px; border-radius: var(--r-12); background: var(--view); overflow: hidden; cursor: grab; touch-action: none; }
.library .aview canvas { width: 100%; height: 100%; display: block; }
.library .aview.none { display: flex; align-items: center; justify-content: center; font-size: var(--fs-12); color: var(--muted); cursor: default; }
.library .head { display: flex; flex-direction: column; gap: 4px; }
.library .head h1 { margin: 0; text-align: left; font-size: var(--fs-20); font-weight: 600; }
.library .head .mono { font-size: var(--fs-13); }
.library .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.library .tile { background: var(--tile); border-radius: var(--r-10); padding: 10px 12px; }
.library .tile .k { font-size: var(--fs-12); color: var(--muted); }
.library .tile .v { font-size: var(--fs-15); font-weight: 400; margin-top: 2px; }
.library .used { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-14); }
.library .used .b { font-size: var(--fs-13); }
.library .acts { display: flex; gap: 10px; margin-top: auto; }
.library .acts > * { flex: 1; height: 44px; border-radius: var(--r-12); display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--fs-14); text-decoration: none; }
.library .acts .dark { background: var(--text); color: var(--card); font-weight: 600; }
.library .acts .ghost { border: 1px solid var(--outline); background: var(--card); color: var(--text); cursor: pointer; }

/* ---------------- History */
.history .lcols > main { flex: 1 1 520px; gap: 12px; }
.history .search { flex: none; }
.history .chip { height: 34px; border-radius: 17px; }
.history .hlist { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-16); overflow: hidden; }
.history .hrow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; width: 100%; border: none; border-top: 1px solid var(--soft);
  background: var(--card); font: inherit; color: var(--text); text-align: left; cursor: pointer; box-sizing: border-box; }
.history .hrow:first-child { border-top: none; }
.history .hrow.on { background: var(--blue-tint); border-left: 3px solid var(--accent); }
.history .hrow .thumb { width: 56px; height: 42px; border-radius: var(--r-8); flex: none; }
.history .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.history .tt .n { font-size: var(--fs-14); font-weight: 600; }
.history .vd { font-size: var(--fs-12); font-weight: 600; }
.history .vd.red { color: var(--red); }
.history .pad { padding: 12px 14px; }
.history .hdetail { flex: 999 1 620px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-18);
  padding: 20px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.history .dh { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.history .dh h1 { margin: 0; font-size: 22px; font-weight: 600; }
.history .dh a { font-size: var(--fs-14); font-weight: 600; text-decoration: none; }
.history .rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.history .round { display: flex; flex-direction: column; gap: 8px; }
.history .rl { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.history .shot { position: relative; height: 220px; width: 100%; max-width: none; border-radius: var(--r-12); }
.history .pin { position: absolute; width: 24px; height: 24px; border-radius: var(--r-12); background: var(--amber-mark); color: var(--text);
  font-size: var(--fs-12); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.history .said { background: var(--tile); border-radius: var(--r-10); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-14); }
.history .said .who { font-size: var(--fs-12); font-weight: 600; }
.history .said.warn { background: var(--warn-tint); }
.history .said.warn .who { color: var(--amber); }
.history .kept { border-top: 1px solid var(--soft); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-14); }
.history .kept .b { font-size: var(--fs-13); }
.history .kept .c { margin-top: 4px; }

/* ---------------- Usage */
.usage .chip { height: 32px; border-radius: var(--r-16); }
.usage .phone { display: none; }
.usage .desk { display: flex; flex-direction: column; gap: 16px; }
.usage .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.usage .ut { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-14); padding: 14px 16px; }
.usage .ut .v { font-size: var(--fs-26); margin-top: 4px; }
.usage .ut .s { margin-top: 2px; }
.usage .row { display: flex; flex-wrap: wrap; gap: 16px; }
.usage .wide { flex: 999 1 600px; min-width: 0; }
.usage .side { flex: 1 1 320px; min-width: 0; }
.usage .box.side { display: flex; flex-direction: column; gap: 12px; }
.usage .side.col { display: flex; flex-direction: column; gap: 16px; }
.usage .box h2 { margin: 0; }
.usage .box .k { margin-top: 4px; }
.usage .ch { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.usage .legend { display: flex; gap: 14px; font-size: var(--fs-12); color: var(--muted); flex-wrap: wrap; }
.usage .legend span { display: flex; align-items: center; gap: 6px; }
.usage .legend i { width: 10px; height: 10px; border-radius: 2px; }
.usage .legend i.line { width: 14px; height: 2px; border-radius: 0; background: var(--text); }
.usage svg[role="img"] { margin-top: 4px; display: block; }
.usage .yax { font-size: var(--fs-11); color: var(--muted); margin-top: 12px; }
.usage .xax { display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--muted); }
.usage .shares { display: flex; flex-direction: column; gap: 10px; }
.usage .share .l, .usage .l { display: flex; justify-content: space-between; font-size: var(--fs-13); }
.usage .box > .l { margin-top: 10px; }
.usage .track { height: 8px; border-radius: 4px; background: var(--soft); margin-top: 4px; }
.usage .track > div { height: 8px; border-radius: 4px; background: var(--accent); }
.usage .box > .track { margin-top: 6px; }
.usage .share.thin .l { font-size: var(--fs-14); }
.usage .share.thin .track, .usage .share.thin .track > div { height: 6px; border-radius: 3px; }
.usage .words { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: var(--fs-13); }
.usage .words > div { display: flex; justify-content: space-between; }
.usage .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.usage .big { font-size: 22px; }
.usage .alerts { display: flex; flex-direction: column; gap: 10px; }
.usage .alert { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--r-16); padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start; color: var(--warn-text); font-size: var(--fs-13); }
.usage .alert svg { flex: none; margin-top: 1px; }
.usage .alert > div { display: flex; flex-direction: column; gap: 2px; }
.usage .alert .b { font-size: var(--fs-14); }

@media (max-width: 600px) {
  .pg .lwrap, .pg .uwrap { padding: 0 12px 12px; }
  .pg .pagehead { justify-content: flex-start; }
  .library .pagehead, .history .pagehead { display: none; }
  .history .rounds { grid-template-columns: minmax(0, 1fr); }
  .usage .desk { display: none; }
  .usage .phone { display: flex; flex-direction: column; gap: 10px; }
  .usage .pagehead { margin-bottom: 10px; }
  .usage .chip { height: 30px; padding: 0 10px; font-size: var(--fs-12); }
  .usage .phone .box { padding: 14px; }
  .usage .phone .two { margin-top: 0; }
  .usage .wk { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
  .usage .wk .mono { font-size: 40px; font-weight: 500; }
  .usage .wk span:last-child { font-size: var(--fs-14); font-weight: 600; }
  .usage .wbar { position: relative; height: 10px; border-radius: 5px; background: var(--soft); margin-top: 10px; overflow: hidden; }
  .usage .wbar > div { position: absolute; left: 0; top: 0; height: 10px; background: var(--accent); }
  .usage .wbar > .p { background: var(--projected); }
  .usage .l.k { margin-top: 6px; font-size: var(--fs-11); }
  .usage .mid { font-size: 22px; margin-top: 4px; }
  .usage .tgt { margin-top: 10px; }
  .usage .mb { margin-bottom: 8px; }
  .usage .box.l { align-items: center; }
  .usage .col2 { display: flex; flex-direction: column; gap: 2px; }
  .usage .col2 .mono { font-size: 18px; }
  .usage .box.l a { font-size: var(--fs-14); text-decoration: none; }
  body.usage-full .usage .desk { display: flex; }
}
