/* Gmail search operators (/tools/gmail-search-operators): the query builder and the operator table's filter. */
.gq form { display: grid; gap: 16px; }
.gq .t-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gq .t-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.gq input[type="date"], .gq input[type="number"] { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: 15px/1.4 var(--sans); color-scheme: light dark; }
.gq input[type="date"]:focus, .gq input[type="number"]:focus { outline: 2px solid var(--cr-blue); outline-offset: 1px; }
.gq .gq-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(58px, .6fr) minmax(0, 1fr); gap: 8px; }
.gq .gq-pair.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.gq .gq-mb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.gq select:disabled, .gq input:disabled { opacity: .5; }
.gq .check { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; width: max-content; }
.gq .check input { width: 17px; height: 17px; accent-color: var(--ink); }
.gq .gq-out { display: grid; gap: 8px; }
.gq .gq-head { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.gq output.out { display: block; margin: 0; min-height: 46px; font-size: 14.5px; user-select: all; -webkit-user-select: all; }
.gq output.out.dim { color: var(--ink-3); user-select: none; -webkit-user-select: none; font-family: var(--sans); }
.gq .gq-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gq .gq-actions .b { height: 38px; }
.gq .gq-actions .b:disabled { opacity: .45; cursor: default; transform: none; }
.gq .gq-actions .grow { flex: 1 1 0; }
.prose ul.gq-notes { margin: 0; padding-left: 1.15em; list-style: disc; }
.prose ul.gq-notes li { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.prose ul.gq-notes li::marker { color: var(--cr-amber); }
.gq-status { margin-top: -8px; min-height: 1.4em; font-size: 14px; color: var(--cr-green); }

/* the operator table */
.ops-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.ops-bar input[type="search"] { flex: 1 1 240px; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 15px/1.4 var(--sans); }
.ops-bar input[type="search"]:focus { outline: 2px solid var(--cr-blue); outline-offset: 1px; }
.ops-bar label.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.ops-bar label.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.ops-bar .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ops-bar small { font-size: 13px; color: var(--ink-3); }
.prose .tbl.ops { margin-top: 12px; }
.prose table#ops { font-size: 14.5px; }
.prose table#ops td:first-child code { white-space: nowrap; }
.prose table#ops td:nth-child(3) code { display: inline-block; margin: 0 4px 4px 0; font-size: 13px; }
.prose table#ops td:last-child { min-width: 150px; }
.prose table#ops tr[hidden] { display: none; }
.prose table#ops .yes { color: var(--cr-green); font-weight: 600; }
.prose table#ops .no { color: var(--ink-3); }
.dk-prose .nw { white-space: nowrap; }
.prose table.recipes td code { font-size: 13.5px; }

@media (max-width: 640px) {
  /* the operator table as one card per operator, so the Roost column isn't scrolled out of sight */
  .prose table#ops, .prose table#ops tbody, .prose table#ops tr, .prose table#ops td { display: block; }
  .prose table#ops thead { display: none; }
  .prose table#ops tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .prose table#ops tr:last-child { border-bottom: 0; }
  .prose table#ops td { padding: 3px 0; border: 0; min-width: 0; }
  .prose table#ops td:first-child code { white-space: normal; }
  .prose table#ops td:nth-child(4)::before { content: "In Roost’s ⌘K: "; font-weight: 600; color: var(--ink-2); }
  .prose table.recipes, .prose table.recipes tbody, .prose table.recipes tr, .prose table.recipes td { display: block; }
  .prose table.recipes tr:first-child { display: none; }
  .prose table.recipes tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .prose table.recipes tr:last-child { border-bottom: 0; }
  .prose table.recipes td { padding: 3px 0; border: 0; }
  .prose table.recipes td:first-child { font-weight: 600; color: var(--ink); }
  .prose table.recipes td:nth-child(2)::before { content: "Gmail: "; color: var(--ink-3); }
  .prose table.recipes td:nth-child(3)::before { content: "Roost’s ⌘K: "; color: var(--ink-3); }
  .gq .gq-actions .grow { display: none; }
  .gq .t-row.gq-wide { grid-template-columns: minmax(0, 1fr); }
}
