/* queues.css: owned by stream Q; linked from index.html. */

/* lists */
/* A section as a list, the overview, Decided: the pages around the card. Native twins in Queues/*.swift. */
.q-gl { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.q-gl-s { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; }
.q-gspace { flex: 1; }
.q-tag { display: inline-block; padding: 2px 9px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--ink-2); font-size: var(--fs-2xs); color: var(--bone-dim); line-height: 1.5; }

/* links above and below a list */
.q-bg-link, .q-foot-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: var(--fs-md); color: var(--sea); }
.q-bg-link { color: var(--bone); margin: 2px 0 6px; }
.q-bg-link .q-gl { color: var(--sea); width: 18px; height: 18px; }
.q-foot { margin: 14px 0 0; }
.q-foot.q-how { margin-top: 6px; }
.q-foot-link { font-size: var(--fs-sm); }
.q-foot-link span { color: var(--bone-faint); }
.q-next .q-foot-link { font-size: var(--fs-md); }
@media (hover: hover) { .q-bg-link:hover, .q-foot-link:hover { text-decoration: underline; } }

/* the group tools: which groups, cards or list, how to group */
.q-gtools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 4px 0 18px; }
.q-gpick .lib-picker, .q-gtools .lib-picker, .q-dctl .lib-picker { padding: 0; }
.q-gpick .picker-btn { min-width: 0; }
.q-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.q-seg button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; background: transparent; color: var(--bone-faint); }
.q-seg button[aria-checked=true] { background: var(--ink-3); color: var(--bone); }
@media (hover: hover) { .q-seg button:hover { color: var(--bone); } }
.q-group-by select, .q-dctl select, .q-t-sel select {
  padding: 7px 28px 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--bone-dim); max-width: 100%;
  background: transparent linear-gradient(45deg, transparent 50%, var(--bone-faint) 50%) calc(100% - 15px) 52% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--bone-faint) 50%, transparent 50%) calc(100% - 10px) 52% / 5px 5px no-repeat;
  font-size: var(--fs-sm); -webkit-appearance: none; appearance: none;
}

/* a group */
.q-group { margin: 0 0 26px; }
.q-gh { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 400; }
.q-gh-fold { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; padding: 6px 0; border: 0; background: none; color: var(--bone); text-align: left; }
.q-gh-fold .q-gh-t { font: 400 var(--fs-h3)/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-gh-fold b { font-weight: 400; font-size: var(--fs-base); color: var(--sea); font-variant-numeric: tabular-nums; }
.q-gh-chev { align-self: center; width: 13px; height: 13px; color: var(--bone-faint); transform: rotate(90deg); transition: transform .15s var(--ease); }
.q-gh-fold[aria-expanded=false] .q-gh-chev { transform: none; }
.q-gh-ic { align-self: center; color: var(--bone-dim); }
.q-gh-open { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-sm); color: var(--sea); white-space: nowrap; }
.q-gh-open .q-gl { width: 12px; height: 12px; }

/* cards, side by side */
.q-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.q-gc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-card); border-radius: var(--radius); background: var(--ink-1); cursor: pointer; }
@media (hover: hover) { .q-gc:hover, .q-ov-card:hover { border-color: var(--sea-line); } }
.q-gc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.q-gc-st, .q-gr-st { margin-left: auto; font-size: var(--fs-xs); color: var(--bone-faint); }
.failed .q-gc-st, .failed .q-gr-st { color: var(--rose); }
.q-gc-title { margin: 0; font: 400 var(--fs-h3)/1.3 var(--serif); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.q-gc-title a, .q-gr-title a { color: var(--bone); }
.q-gc-do { margin: 0; font-size: var(--fs-md); line-height: 1.45; color: var(--bone-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.q-gc-from, .q-gr-from { margin: 0; font-size: var(--fs-sm); color: var(--bone-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-gc-acts, .q-gr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 4px; }
.q-gc-acts .btn, .q-gr-acts .btn { padding: 8px 18px; font-size: var(--fs-sm); }
.q-act-err { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--rose); }
.q-copy { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--bone-faint); opacity: 0; transition: opacity .12s; }
.q-gc:hover .q-copy, .q-gr:hover .q-copy, .q-dr:hover .q-copy, .q-ov-card:hover .q-copy, .q-copy:focus-visible { opacity: 1; }
@media (hover: none) { .q-copy { opacity: .7; } }
.q-copy:hover { color: var(--bone); background: var(--ink-3); }

/* a list, one line per item */
.q-grows { display: flex; flex-direction: column; margin-left: 28px; }
.q-gr, .q-dr { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 4px 14px; padding: 18px 10px; border-top: 1px solid var(--line); cursor: pointer; }
.q-gr:last-child { border-bottom: 1px solid var(--line); }
.q-grows .q-gr:first-child { border-top: 0; }
@media (hover: hover) { .q-gr:hover, .q-dr:hover { background: var(--ink-1); } }
.q-gr-ic { margin-top: 4px; color: var(--bone-faint); }
.q-gr-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.q-gr-title { margin: 0; font: 400 var(--fs-2xl)/1.35 var(--serif); overflow-wrap: anywhere; }
.q-gr-do { margin: 0; font-size: var(--fs-sm); color: var(--bone-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.q-gr-meta { color: var(--bone-faint); }
.q-gr-st { margin: 0; }
.q-gr-acts { grid-column: 3; grid-row: 1; margin: 0; padding: 0; flex-wrap: nowrap; justify-content: flex-end; align-items: flex-start; }
.q-gr-acts .q-act-err { position: absolute; right: 10px; bottom: 3px; flex-basis: auto; }
.q-gr .q-copy { margin-left: 0; }
@media (max-width: 700px) {
  .q-grows { margin-left: 0; }
  .q-gr, .q-dr { grid-template-columns: 20px minmax(0, 1fr); padding: 16px 2px; }
  .q-gr-acts { grid-column: 2; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; padding-top: 6px; }
  .q-gr-acts .q-act-err { position: static; flex-basis: 100%; }
  .q-dr .q-copy { grid-column: 2; justify-self: start; }
}

/* the overview */
.q-ov-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 12px; }
.q-ov-head .label { margin: 0; flex: none; }
.q-ov-head .label::after { display: none; }
.q-ov-pos { font-size: var(--fs-sm); color: var(--sea); font-variant-numeric: tabular-nums; }
.q-ov-head .pill-btn { display: inline-flex; align-items: center; gap: 4px; }
.q-ov-head .pill-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-ov-card-wrap { margin: 0 0 8px; padding: 6px 22px 22px; border: 1px solid var(--line-card); border-radius: var(--radius); }
.q-ov-card-wrap .q-steps, .q-ov-card-wrap .q-hist-link { display: none; }
@media (max-width: 559px) { .q-ov-card-wrap { padding: 4px 14px 16px; } }
.q-ov-hide { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); margin: 18px 0 4px; font-size: var(--fs-md); color: var(--bone-dim); cursor: pointer; }
.q-ov-hide input { accent-color: var(--sea); width: 17px; height: 17px; margin: 0; }
.q-ov-group { margin: 14px 0 0; }
.q-ov-group .label { margin: 0 0 12px; }
.q-ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.q-ov-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 20px 22px; border: 1px solid var(--line-card); border-radius: var(--radius); background: var(--ink-1); cursor: pointer; }
.q-ov-card.zero { opacity: .6; }
.q-ov-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.q-ov-top h3 { margin: 0; font: 400 var(--fs-h2)/1.2 var(--serif); }
.q-ov-top h3 a { color: var(--bone); }
.q-ov-top b { font: 400 30px/1 var(--sans); color: var(--sea); font-variant-numeric: tabular-nums; }
.q-ov-card.zero .q-ov-top b { color: var(--bone-faint); }
.q-ov-about { margin: 0; font-size: var(--fs-sm); color: var(--bone-faint); }
.q-ov-card ul { margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 8px; }
.q-ov-card li { font-size: var(--fs-md); color: var(--bone-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-ov-card .q-copy { position: absolute; right: 10px; bottom: 8px; }

/* decided */
.q-dctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 4px 0 8px; }
.q-facet { display: inline-flex; align-items: center; gap: 8px; }
.q-facet-cap { font-size: var(--fs-sm); color: var(--bone-faint); }
.q-drows { display: flex; flex-direction: column; }
.q-dr { grid-template-columns: 22px minmax(0, 1fr) auto; }
.q-dr:last-child { border-bottom: 1px solid var(--line); }
.q-dr-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.q-dr-you { margin: 0; font-size: var(--fs-sm); color: var(--bone-dim); }
.q-dr-out { margin-top: 2px; font-size: var(--fs-sm); color: var(--bone-faint); }
.q-dr-out p { margin: 0; }
.q-dr-out.done { color: var(--sea); }
.q-dr-out.failed { color: var(--rose); }
.q-dr-out.in_progress, .q-dr-out.waiting, .q-dr-out.needs_input { color: var(--bone-dim); }
.q-dr-out .q-dr-text { color: var(--bone-dim); margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 559px) { .q-dctl .q-gspace { display: none; } .q-dctl { gap: 4px 16px; } }

/* card */
/* The action card, as the native one: in sight what decides, then one More. */
.q-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: var(--fs-sm); }
.q-link { padding: 0; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sea-line); background: none; border: 0; font: inherit; cursor: pointer; }
.q-decide { margin: 14px 0 16px; display: grid; gap: 16px; }
.q-from { display: block; padding-left: 12px; border-left: 2px solid var(--line-strong); color: inherit; }
.q-from[hidden] { display: none; }
.q-from .label, .q-does .label, .q-merge .label, .q-merge-becomes .label { display: block; margin: 0 0 4px; }
.q-from .label::after, .q-does .label::after, .q-merge-becomes .label::after { display: none; }
.q-from q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; quotes: none; font: italic 400 var(--fs-md)/1.5 var(--serif); color: var(--bone); }
.q-from q::before { content: "\201C"; } .q-from q::after { content: "\201D"; }
.q-top .q-kind { color: var(--bone-dim); font-weight: 500; }
.q-does { display: grid; gap: 12px; }
.q-does > .label { margin: 0; }
.q-says { margin: 0; font: 400 var(--fs-lg)/1.45 var(--serif); color: var(--bone); }
.q-line { margin: 0; font-size: var(--fs-xs); color: var(--bone-dim); }
.q-rename { display: grid; gap: 6px; justify-items: start; }
.q-rename-old { font: 400 16px/1.3 var(--serif); color: var(--bone-dim); overflow-wrap: anywhere; }
a.q-rename-old { color: var(--sea); text-decoration: underline; }
.q-rename-new { font: 400 18px/1.3 var(--serif); color: var(--bone); overflow-wrap: anywhere; }
.q-prows { display: grid; gap: 10px; }
.q-prow .label { display: block; margin: 0 0 3px; }
.q-prow .label::after { display: none; }
.q-prow p { margin: 0; font-size: var(--fs-md); line-height: 1.45; color: var(--bone); overflow-wrap: anywhere; white-space: pre-wrap; }
.q-prow p.q-prow-long { padding-left: 10px; border-left: 2px solid var(--line-strong); font: 400 var(--fs-md)/1.5 var(--serif); }
.q-prow .link-btn { margin-top: 2px; }
.q-nrows { display: grid; gap: 2px; }
.q-nrow { display: grid; gap: 3px; padding: 7px 0; color: inherit; }
.q-nrow-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.q-nrow-t b { font-weight: 400; font-size: var(--fs-md); color: var(--bone); overflow-wrap: anywhere; }
.q-nrow-t small { font-size: var(--fs-2xs); color: var(--bone-faint); }
.q-nrow-x { font-size: var(--fs-sm); line-height: 1.45; color: var(--bone-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .q-nrow:hover .q-nrow-t b { text-decoration: underline; } }
.q-does .q-tap { font: var(--fs-sm)/1.4 var(--sans, inherit); color: var(--bone-dim); }
.q-tap { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.q-tap-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bone-dim); transform: translateY(-1px); }
.q-question { margin: 14px 0; font: 400 var(--fs-lg)/1.5 var(--serif); color: var(--bone); }
.q-card > .q-fields, .q-card > .q-body { margin-top: 14px; }

/* a merge proposal */
.q-merge { margin: 14px 0 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--sea-line-soft); background: var(--sea-wash); }
.q-merge-head { margin: 0; font: 400 var(--fs-lg)/1.45 var(--serif); color: var(--bone); }
.q-merge-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.q-merge-list li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: var(--fs-md); }
.q-merge-list a, .q-merge-list span { min-width: 0; overflow-wrap: anywhere; color: var(--bone); }
.q-merge-list small { color: var(--bone-faint); font-size: var(--fs-2xs); }
.q-mk-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bone-faint); }
.q-merge-list .kept .q-mk-dot { background: var(--sea); border-color: var(--sea); }
.q-merge-becomes { margin: 10px 0; }
.q-merge-becomes p { margin: 2px 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
.q-merge-note { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--bone-dim); }

/* the one More: small text and a chevron, no card; "Less" when open (native TextFold) */
.q-more { margin: 22px 0 0; }
.q-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap); padding: 0 2px;
  font-size: var(--fs-sm); color: var(--sea);
}
.q-more > summary::-webkit-details-marker { display: none; }
.q-more > summary svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.q-more[open] > summary svg { transform: rotate(180deg); }
.q-more-o, .q-more[open] .q-more-c { display: none; }
.q-more[open] .q-more-o { display: inline; }
@media (hover: hover) { .q-more > summary:hover { text-decoration: underline; } }
.q-more-body { display: grid; gap: 24px; padding: 12px 0 8px; }
.q-more-sec .label { margin: 0 0 10px; }
.q-more-sec .label::after { display: none; }
.q-more .thread:empty { display: none; }
.q-details > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-sm); color: var(--sea); list-style: none; }
.q-details > summary::-webkit-details-marker { display: none; }
.q-details > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.q-details[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.q-details .q-body { margin-top: 8px; }
.q-details-why { margin: 8px 0 0; font-size: var(--fs-md); line-height: 1.5; color: var(--moon); }
.q-foot-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.q-quiet-btn { min-height: var(--tap); padding: 0 2px; border: 0; background: none; font-size: var(--fs-sm); color: var(--bone-dim); }
@media (hover: hover) { .q-quiet-btn:hover { color: var(--bone); text-decoration: underline; } }
.q-sub-label { margin: 0 0 8px; font-size: var(--fs-2xs); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); font-weight: 500; }

/* how it changed */
.q-rev { padding: 0 0 14px; }
.q-rev.reverted { opacity: .6; }
.q-rev p { margin: 0 0 4px; }
.q-rev-head { font-size: var(--fs-base); color: var(--bone); }
.q-rev-head small { font-size: var(--fs-sm); color: var(--bone-faint); }
.q-rev-head a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.q-rev-split { padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-2xs); }
.q-rev-line { font-size: var(--fs-sm); color: var(--bone-faint); overflow-wrap: anywhere; }
.q-rev-line span:last-child { color: var(--bone); }
.q-rev-why { font-size: var(--fs-sm); color: var(--moon); }
.q-rev .pill-btn { margin-top: 6px; }
.q-coaching { margin: 16px 0 0; }

/* All tasks: one row of controls, then the rows (Work's row styles in styles.css) */
.q-t-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 10px; }
.q-t-ctl .lib-picker, .q-t-ctl .picker { display: inline-block; }
.q-t-sel select {   min-height: 36px; }
.q-trow { position: relative; padding-right: 40px; }
.q-trow .q-copy { position: absolute; top: 10px; right: 4px; margin: 0; }
.q-trow:hover .q-copy { opacity: 1; }
.q-trow.w-blocked .w-state { color: var(--moon, var(--bone)); }
.q-trow.w-failed .w-state { color: var(--rose, var(--bone)); }
.q-trow.w-done .w-state { color: var(--verdigris, var(--sea)); }
/* the coaching view has its own heading */
.q-card:has(#qCoaching) > .q-title, .q-card:has(#qCoaching) > .byline { display: none; }
@media (max-width: 600px) { .q-t-ctl .q-t-sel { flex: 1 1 42%; } .q-t-sel select { width: 100%; } }

/* These labels hold his words now (You said (on Oct 10), What: Reminder in "Reminders"): as written, as in the apps. */
.q-decide .label { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.q-decide .label::after { display: none; }
.q-what-in { color: var(--sea); text-decoration: underline; }
