/* Insiders — the Filter panel (#ins-pop) and View settings (#ins-cpop) in Attio's style (user 2026-11-04: "make this
   dropdown Attio style" / "same with this one"). Surface (white, r12, soft ring + shadow) comes from aiq-table-attio.css;
   this file does the inside: Attio form-popover fields (12/500 grey label, 32px r9 select with a hairline ring),
   menu rows (32px, r8, 14/500, grey hover, blue check), 16px r6 tick boxes (blue fill when on), group labels 12/500
   grey with full-width rules between groups, a footer rule with a ghost Reset and the blue Done.
   Desktop + app shell only; phones keep their sheets. Attio radii: excluded from scripts/square_corners.py. */
html.at-shell.aiq-desk { --ipa-label: rgba(0,0,0,.55); --ipa-sub: rgba(0,0,0,.63); --ipa-ring: rgba(0,0,0,.08);
  --ipa-hover: #F6F7F7; --ipa-box: rgba(0,0,0,.16); --ipa-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101112' stroke-opacity='.55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html.at-shell.aiq-desk[data-theme="dark"] { --ipa-label: rgba(255,255,255,.55); --ipa-sub: rgba(255,255,255,.6); --ipa-ring: rgba(255,255,255,.10);
  --ipa-hover: rgba(255,255,255,.05); --ipa-box: rgba(255,255,255,.22); --ipa-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1F2F3' stroke-opacity='.6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* ── shared: tick boxes (16×16, r6, hairline ring; on = blue fill + white check) ── */
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) input[type="checkbox"]:not(#_):not(#_) { -webkit-appearance: none; appearance: none; flex: none;
  width: 16px; height: 16px; margin: 0; border: 0; border-radius: 6px; background: var(--a-bg, #fff); box-shadow: inset 0 0 0 1px var(--ipa-box);
  cursor: pointer; display: inline-grid; place-content: center; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) input[type="checkbox"]:checked:not(#_):not(#_) { background: var(--a-blue, #266DF0); box-shadow: none; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) input[type="checkbox"]:checked::after { content: ''; width: 8px; height: 4px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) input[type="checkbox"]:disabled:not(#_):not(#_) { opacity: .4; cursor: default; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) input[type="checkbox"]:focus-visible { outline: 2px solid var(--a-blue, #266DF0); outline-offset: 1px; }

/* ── shared footer: full-width rule, ghost Reset left, blue Done right (28px) ── */
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) > .ft:not(#_) { border-top: 1px solid var(--a-line); padding: 8px; margin: 0; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) > .ft .aiq-btn:not(#_):not(#_) { height: 28px !important; padding: 0 10px !important; border-radius: 8px !important;
  font: 500 14px/20px Inter, system-ui, sans-serif !important; margin: 0 !important; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) > .ft .aiq-btn.txt:not(#_):not(#_) { border: 0 !important; background: transparent !important;
  box-shadow: none !important; color: var(--ipa-sub) !important; }
html.at-shell.aiq-desk :is(#ins-pop, #ins-cpop) > .ft .aiq-btn.txt:hover:not(#_):not(#_) { background: var(--ipa-hover) !important; color: var(--a-ink) !important; }

/* ── Filter: two columns of Attio form fields ── */
html.at-shell.aiq-desk #ins-pop:not(#_):not(#_) { width: 480px; padding: 0 !important; gap: 0; column-gap: 0; overflow: hidden;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
html.at-shell.aiq-desk #ins-pop:not([hidden]):not(#_) { display: grid; }
html.at-shell.aiq-desk #ins-pop > label:not(.chk):not(#_):not(#_) { display: grid; gap: 4px; padding: 12px 6px 0 12px;
  font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--ipa-label); letter-spacing: 0; border-radius: 0; }
/* the right-hand column of the grid: mirror the padding so both columns are equal */
html.at-shell.aiq-desk #ins-pop > label:not(.chk):nth-of-type(even):not(#_):not(#_) { padding: 12px 12px 0 6px; }
html.at-shell.aiq-desk #ins-pop select:not(#_):not(#_) { -webkit-appearance: none; appearance: none; width: 100%; height: 32px;
  padding: 0 28px 0 8px; border: 0 !important; border-radius: 9px !important; background: var(--a-bg, #fff) var(--ipa-caret) no-repeat right 8px center / 14px 14px !important;
  box-shadow: inset 0 0 0 1px var(--ipa-ring) !important; color: var(--a-ink) !important; font: 500 14px/20px Inter, system-ui, sans-serif !important; cursor: pointer;
  text-overflow: ellipsis; }
html.at-shell.aiq-desk #ins-pop select:hover:not(#_):not(#_) { background-color: var(--ipa-hover) !important; }
html.at-shell.aiq-desk #ins-pop select:focus:not(#_):not(#_) { outline: 0; box-shadow: inset 0 0 0 1px var(--a-blue, #266DF0), 0 0 0 3px rgba(38,109,240,.14) !important; }
/* a field that's narrowing the list reads in ink, the default in grey (Attio's empty values are .50) */
html.at-shell.aiq-desk #ins-pop select:has(option:first-child:checked):not(#_):not(#_) { color: var(--ipa-sub) !important; }
html.at-shell.aiq-desk #ins-pop > label.chk:not(#_):not(#_) { display: flex; align-items: center; gap: 8px; margin: 12px 0 12px; padding: 0 12px;
  font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--a-ink); }

/* ── View settings: Attio menu — group label, 32px rows, rules between groups ── */
html.at-shell.aiq-desk #ins-cpop:not(#_):not(#_) { width: 288px; padding: 4px 0 0 !important; overflow: hidden; }
html.at-shell.aiq-desk #ins-cpop .ins-cpop-h:not(#_) { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px 4px;
  font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--ipa-sub); }
html.at-shell.aiq-desk #ins-cpop .ins-cpop-h span:not(#_) { font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--ipa-label); }
html.at-shell.aiq-desk #ins-cpop .ins-cper:not(#_) { margin: 0 0 4px; padding: 0 0 4px; border-bottom: 1px solid var(--a-line); }
html.at-shell.aiq-desk #ins-cpop :is(.ins-cper-o, .ins-citem):not(#_):not(#_) { box-sizing: border-box; display: flex; align-items: center; gap: 8px;
  width: calc(100% - 8px); height: 32px; margin: 0 4px; padding: 0 8px; border-radius: 8px;
  font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--a-ink); background: none; }
html.at-shell.aiq-desk #ins-cpop :is(.ins-cper-o, .ins-citem):hover:not(#_):not(#_) { background: var(--ipa-hover); }
html.at-shell.aiq-desk #ins-cpop .ins-cper-o.on:not(#_):not(#_) { color: var(--a-blue, #266DF0); }
html.at-shell.aiq-desk #ins-cpop .ins-cper-o.on::after { border-color: var(--a-blue, #266DF0); }
html.at-shell.aiq-desk #ins-cpop .ins-citem.off .ins-clab:not(#_) { color: var(--ipa-label); }
html.at-shell.aiq-desk #ins-cpop .ins-cgrip:not(#_) { color: var(--ipa-label); opacity: .7; }
html.at-shell.aiq-desk #ins-cpop .ins-clist:not(#_) { padding-bottom: 4px; }
