/* The download sheet (download-sheet.js): a bottom sheet on phones, a centred box on bigger screens. */
.dl-sheet { width: 100%; max-width: 480px; margin: auto auto 0; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: #141716; color: #f2f2f2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);  max-height: 85vh; overflow: auto; }
.dl-sheet::backdrop { background: rgba(0,0,0,.6); }
@media (min-width: 700px) { .dl-sheet { margin: auto; border-radius: 18px; } }
.dl-in { padding: 14px 16px 18px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dl-head b { font-size: 17px; }
.dl-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.dl-x .icon, .dl-opt .icon, .dl-note .icon, .dl-msg .icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.dl-opts { display: grid; grid-gap: 8px; gap: 8px; }
.dl-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dl-opt:hover:not(:disabled) { border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); }
.dl-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dl-opt:disabled { opacity: .5; cursor: not-allowed; }
.dl-opt.is-busy { opacity: .7; cursor: progress; }
.dl-opt-t { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.dl-opt-t b { font-size: 15px; }
.dl-opt-t small { font-size: 12.5px; color: rgba(255,255,255,.6); }
.dl-opt.is-free .dl-opt-t small { color: #39ff6a; color: var(--tc-primary, #39ff6a); }
.dl-opt.is-premium .dl-opt-ic { color: #DAA520; }
.dl-opt-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); }
.dl-note, .dl-msg { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); }
.dl-note a, .dl-msg a { color: #39ff6a; color: var(--tc-primary, #39ff6a); font-weight: 700; }
.dl-note .icon { color: #DAA520; margin-top: 1px; }
.dl-msg.is-bad { color: #ffb4a8; }
.dl-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; padding: 12px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.7); }
.dl-loading .tc-loader { margin: 0; flex: none; }

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
.tc-rich .dl-sheet { box-shadow: 0 -10px 40px rgba(0,0,0,.6); }
/* compat:rich:end */

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .dl-opt > :not(:last-child) { margin-right: 12px; }
.no-flexgap .dl-note > :not(:last-child), .no-flexgap .dl-msg > :not(:last-child) { margin-right: 8px; }
.no-flexgap .dl-loading > :not(:last-child) { margin-bottom: 12px; }
/* compat:no-flexgap:end */
