/* =====================================================================
   Webfoot Work Orders — v0_2
   App chrome: Alyrica brand system (alyrica.net palette, Raleway/Roboto)
   Sheet: the established printed work-order document (Arial, doc palette)
   ===================================================================== */

:root {
  /* Alyrica brand */
  --navy: #0A2334; --blue: #0973B8; --teal: #0AC4AE; --green: #3EB549;
  --sky: #33AAFF; --orange: #EB4800; --amber: #D97706;
  --bg: #EEF3F8; --paper: #F5F7FA; --gray: #979D9E;
  /* derived UI */
  --ink: #0A2334; --ink-2: #47617a; --line: #d8e2ea; --card: #ffffff;
  --blue-soft: #e3f0f9; --teal-soft: #dcf6f2; --green-soft: #e4f5e5;
  --amber-soft: #fdf1dd; --red: #c0392b; --red-soft: #fbe7e4;
  --shadow: 0 1px 2px rgba(10,35,52,.06), 0 4px 14px rgba(10,35,52,.07);
  --shadow-lg: 0 6px 28px rgba(10,35,52,.16);
  --r: 10px; --r-sm: 6px;
  /* sheet document palette (matches the QGIS gold template) */
  --d-slate: #243640; --d-muted: #5b6b73; --d-border: #c2ccd2; --d-blue: #0e6cb1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1b26; --paper: #12242f; --card: #16293a;
    --ink: #e8eff5; --ink-2: #9db2c2; --line: #27455c;
    --blue-soft: #123a55; --teal-soft: #0e3d38; --green-soft: #17371c;
    --amber-soft: #3d2f12; --red-soft: #47201b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
    --shadow-lg: 0 6px 28px rgba(0,0,0,.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1b26; --paper: #12242f; --card: #16293a;
  --ink: #e8eff5; --ink-2: #9db2c2; --line: #27455c;
  --blue-soft: #123a55; --teal-soft: #0e3d38; --green-soft: #17371c;
  --amber-soft: #3d2f12; --red-soft: #47201b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,.brandfont { font-family: Raleway, Roboto, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 3px; }

/* ---------------- top bar ---------------- */
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(10,35,52,.03);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 600;
}
.topbar .in {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.topbar img.logo { height: 26px; display: block; }
.topbar .app {
  font-family: Raleway; font-weight: 800; font-size: 15px;
  letter-spacing: .2px; color: var(--ink); white-space: nowrap;
}
.topbar .app .thin { font-weight: 600; color: var(--ink-2); }
.topbar .pub { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.topbar .pub .dot { color: var(--green); }
.topbar .spacer { flex: 1; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
  color: var(--ink-2);
}
.topnav a:hover { background: var(--blue-soft); text-decoration: none; color: var(--blue); }
.topnav a.on { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topnav a.on { background: var(--blue); }
}
.iconbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 15px; transition: all .12s;
}
.iconbtn:hover { border-color: var(--blue); color: var(--blue); }
.iconbtn.locked { color: var(--amber); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue); color: #fff; border: 0; border-radius: var(--r-sm);
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .12s, transform .05s; text-decoration: none !important;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--blue); border-color: var(--blue); filter: none; }
.btn.green { background: var(--green); }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }

/* ---------------- layout ---------------- */
.wrap { max-width: 1280px; margin: 20px auto 60px; padding: 0 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.notice { background: var(--amber-soft); border: 1px solid #eacb8a;
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.notice.error { background: var(--red-soft); border-color: #dfa49b; }

/* ---------------- stat chips ---------------- */
.statbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--ink-2); transition: all .12s;
}
.chip b { color: var(--ink); font-size: 13px; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.chip:hover { border-color: var(--blue); }
.chip.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.chip.on b { color: var(--blue); }

/* ---------------- toolbar ---------------- */
.toolrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 240px; }
.search input {
  width: 100%; padding: 9px 12px 9px 34px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink);
}
.search::before { content: "\1F50D"; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: 13px; opacity: .55; }
.toolrow select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; background: var(--card); color: var(--ink);
}
.countline { font-size: 12px; color: var(--ink-2); margin: 0 2px 8px; }

/* ---------------- list table ---------------- */
.card.tablecard { overflow: hidden; overflow: clip; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list thead th {
  text-align: left; padding: 10px 12px; font-size: 10.5px; letter-spacing: 1.2px;
  color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line);
  background: var(--paper); position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 5;
}
table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.list tbody tr { cursor: pointer; transition: background .1s; }
table.list tbody tr:hover { background: var(--blue-soft); }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; }
td .woid { font-weight: 700; color: var(--ink); }
td .sub { font-size: 11px; color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 2.5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.draft { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.pill.ready { background: var(--teal-soft); color: #067e70; }
.pill.sent { background: var(--blue-soft); color: var(--blue); }
.pill.asbuilt { background: var(--green-soft); color: #2a7d33; }
.pill.hold { background: var(--red-soft); color: var(--red); }
.flag {
  display: inline-block; border-radius: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  background: var(--red-soft); color: var(--red);
}
.flag.warn { background: var(--amber-soft); color: var(--amber); }
.flag.info { background: var(--blue-soft); color: var(--blue); }

/* ---------------- WO page ---------------- */
.wohead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.wohead .grow { flex: 1; }
.wolayout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .wolayout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .side { position: static; } }
.side .card { padding: 14px 16px; }
.side h3 {
  margin: 0 0 10px; font-size: 10.5px; letter-spacing: 1.4px; color: var(--ink-2);
  font-weight: 800;
}
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 1px;
  color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font: inherit; font-size: 13px;
  background: var(--card); color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; }
.field .hint { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
.statuseg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.statuseg button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: var(--r-sm); padding: 7px 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .1s;
}
.statuseg button.on { border-color: var(--blue); background: var(--blue-soft);
  color: var(--blue); font-weight: 700; }
.savebar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  display: none; }
.savebar.dirty .dirty-dot { display: block; }

.derivrow { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { font-size: 11px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 8px; color: var(--ink-2); }
.dchip b { color: var(--ink); }

.comments .c { border-top: 1px solid var(--line); padding: 8px 0; }
.comments .c:first-child { border-top: 0; }
.comments .who { font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
.comments .who b { color: var(--ink); }
.crow { display: flex; gap: 8px; margin-top: 10px; }
.crow input { flex: 1; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 13px; background: var(--card); color: var(--ink); }

/* ---------------- QA dashboard ---------------- */
.qagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 16px; }
.qacard { padding: 16px 18px; }
.qacard h3 { margin: 0 0 12px; font-size: 10.5px; letter-spacing: 1.4px;
  color: var(--ink-2); font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi .v { font-family: Raleway; font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi .l { font-size: 11px; letter-spacing: .8px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.kpi.warnv .v { color: var(--amber); }
.kpi.badv .v { color: var(--red); }
.bar { display: grid; grid-template-columns: 64px 1fr 88px; gap: 10px;
  align-items: center; padding: 3.5px 0; font-size: 12.5px; }
.bar .track { display: block; height: 12px; background: var(--paper); border-radius: 6px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 6px; min-width: 2px; }
.bar .r { text-align: right; color: var(--ink-2); }
.reviewtbl td { padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--line); }
.reviewtbl tr:last-child td { border-bottom: 0; }

/* ---------------- batch ---------------- */
.batchbar { position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 500; margin-bottom: 16px;
  padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.progress { flex: 1; min-width: 160px; height: 8px; background: var(--paper);
  border-radius: 4px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--teal); width: 0; transition: width .3s; }

/* ---------------- toasts + modal ---------------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; border-radius: var(--r-sm);
  padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow-lg);
  animation: tin .18s ease-out; max-width: 340px; }
.toast.err { background: var(--red); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modalback { position: fixed; inset: 0; background: rgba(10,35,52,.45);
  z-index: 800; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; padding: 20px 22px; }
.modal h2 { margin: 0 0 4px; font-size: 17px; }
.modal .sub { font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }

/* ---------------- skeleton ---------------- */
.skel { border-radius: var(--r-sm); background: linear-gradient(90deg,
  var(--paper) 25%, var(--line) 50%, var(--paper) 75%);
  background-size: 200% 100%; animation: sk 1.1s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* =====================================================================
   THE SHEET — printed work-order document (fixed identity, Arial)
   Budgeted to fit US Letter with zero page margin.
   ===================================================================== */
.sheetzone { min-width: 0; }
.sheetscale { transform-origin: top left; }
.sheet {
  width: 8.5in; height: 11in; margin: 0 auto 20px; background: #fff;
  color: var(--d-slate); font-family: Arial, Helvetica, sans-serif;
  box-shadow: var(--shadow-lg); border-radius: 2px;
  padding: .40in .40in .30in; display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.sheet .hdr { display: flex; justify-content: space-between; align-items: flex-start; }
.sheet .hdr img { height: .40in; }
.sheet .hdr .t1 { font-size: 15pt; font-weight: bold; text-align: right; letter-spacing: .5px; }
.sheet .hdr .t2 { font-size: 8pt; color: var(--d-muted); text-align: right; }
.sheet .rule { border-top: 3px solid var(--d-blue); margin: 7px 0 9px; }

.wostrip { background: #eef1f3; border: 1px solid var(--d-border);
  display: flex; padding: 7px 10px; margin-bottom: 8px; }
.wostrip .col { padding: 0 10px; }
.wostrip .col + .col { border-left: 2px solid var(--d-border); }
.wostrip .cap { font-size: 7.5pt; letter-spacing: 2px; color: var(--d-muted); }
.wostrip .c-wo { width: 31%; }
.wostrip .c-wo .v { font-size: 17pt; font-weight: bold; line-height: 1.15; }
.wostrip .c-addr { width: 38%; }
.wostrip .c-addr .v { font-size: 12pt; font-weight: bold; margin-top: 5px; }
.wostrip .c-cust { width: 31%; }
.wostrip .c-cust .row { display: flex; align-items: flex-end; gap: 6px; margin-top: 7px; }
.wostrip .c-cust .lbl { font-size: 7.5pt; letter-spacing: 2px; color: var(--d-muted); white-space: nowrap; }
.wostrip .c-cust .line { flex: 1; border-bottom: 1px solid var(--d-muted);
  min-height: 14px; font-size: 10pt; padding: 0 2px; }

.mapbox { position: relative; border: 1px solid var(--d-border); }
.mapbox .map { height: 4.5in; width: 100%; background: #dde3e6; }
.northarrow { position: absolute; top: 8px; right: 10px; z-index: 450;
  background: rgba(255,255,255,.88); border-radius: 3px; padding: 2px 7px;
  font-size: 9pt; font-weight: bold; text-align: center; line-height: 1.05;
  color: var(--d-slate); }
.demoimg { position: absolute; left: 8px; bottom: 8px; z-index: 450;
  background: rgba(255,255,255,.85); border-radius: 3px; padding: 2px 7px;
  font-size: 7pt; color: #5b6b73; font-style: italic; }
.maplegend { display: flex; flex-wrap: wrap; gap: 3px 16px; align-items: center;
  border: 1px solid var(--d-border); border-top: 0; padding: 4px 8px;
  font-size: 7.5pt; color: var(--d-slate); }
.maplegend .it { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.sw { display: inline-block; width: 24px; height: 0; border-top: 3px solid; }
.sw.dash { border-top-style: dashed; }
.sw.xtick { position: relative; }
.sw.xtick::after { content: "\2715 \2715"; position: absolute; left: 3px; top: -8px;
  font: bold 7px/1 Arial; color: #111; letter-spacing: 5px; }
.swpt { display: inline-block; width: 9px; height: 9px; border: 1.5px solid; }

.specstrip { margin-top: 9px; }
.specstrip .bar2 { background: var(--d-slate); color: #fff; font-size: 9pt;
  font-weight: bold; letter-spacing: 1px; padding: 3px 7px; }
.specstrip table { width: 100%; border-collapse: collapse; }
.specstrip td { width: 16.6%; border-right: 1px solid var(--d-border);
  padding: 4px 7px; vertical-align: top; }
.specstrip td:last-child { border-right: 0; }
.specstrip .cap { font-size: 6.5pt; letter-spacing: .6px; color: var(--d-muted); }
.specstrip .v { font-size: 11pt; font-weight: bold; }
.specstrip .foot { font-size: 6.5pt; font-style: italic; color: var(--d-muted); padding: 2px 7px 0; }

.verif { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; font-size: 8pt; }
.verif .cap { font-size: 9pt; font-weight: bold; letter-spacing: 1.5px; color: var(--d-muted); }
.verif .lbl { color: var(--d-muted); }
.verif .line { border-bottom: 1px solid var(--d-muted); flex: 1; min-height: 13px;
  font-size: 10pt; padding: 0 2px; }

.engnotes { margin-top: 10px; }
.engnotes .cap { font-size: 9pt; font-weight: bold; letter-spacing: 1.5px; color: var(--d-muted); }
.engnotes .cap i { font-weight: normal; font-size: 8pt; letter-spacing: 0; }
.engnotes .box { border: 1px solid var(--d-border); height: .55in; margin-top: 3px;
  padding: 4px 8px; font-size: 8.5pt; font-style: italic; overflow: hidden; }

.stnotes { margin-top: 10px; }
.stnotes .bar2 { background: var(--d-blue); color: #fff; font-size: 9pt;
  font-weight: bold; letter-spacing: 1px; padding: 3px 7px; }
.stnotes ol { margin: 0; list-style: none; counter-reset: sn;
  border: 1px solid var(--d-border); border-top: 0; padding: 5px 8px; }
.stnotes li { counter-increment: sn; font-size: 8pt; padding: 1.5px 0; display: flex; gap: 6px; }
.stnotes li::before { content: counter(sn) "."; color: var(--d-blue); font-weight: bold;
  min-width: 14px; }

.sheetfoot { margin-top: auto; display: flex; justify-content: space-between;
  font-size: 7.5pt; color: var(--d-muted); padding-top: 8px; }

/* ---------------- print ---------------- */
@page { size: letter portrait; margin: 0; }
@media print {
  body { background: #fff; }
  .topbar, .toolrow, .wohead, .side, .statbar, .batchbar, .countline,
  .noprint, #toasts, .modalback, .leaflet-control-container { display: none !important; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .wolayout { display: block; }
  .sheetscale { transform: none !important; height: auto !important; }
  .sheet { box-shadow: none; border-radius: 0; margin: 0;
    page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}

/* ---------------- project map view ---------------- */
.mapview { position: relative; height: calc(100dvh - 58px); min-height: 480px; }
#bigmap { position: absolute; inset: 0; background: #dde3e6; z-index: 1; }
.mappanel { position: absolute; top: 14px; left: 14px; z-index: 500;
  width: 330px; max-width: calc(100% - 28px);
  display: flex; flex-direction: column; gap: 8px; }
.mapsearch { padding: 8px; }
.mapresults { display: flex; flex-direction: column; margin-top: 6px; }
.mapresults button { display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 7px 9px; border: 0; background: none; cursor: pointer;
  text-align: left; border-top: 1px solid var(--line); font: inherit;
  font-size: 12.5px; color: var(--ink); }
.mapresults button:hover { background: var(--blue-soft); }
.mapresults button span { color: var(--ink-2); font-size: 11.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.mapresults .none { padding: 8px 9px; font-size: 12px; color: var(--ink-2);
  border-top: 1px solid var(--line); }
.mapchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mapchips .chip { box-shadow: var(--shadow); }
.demomapnote { position: absolute; right: 14px; bottom: 26px; z-index: 500;
  background: rgba(255,255,255,.85); border-radius: 4px; padding: 3px 8px;
  font-size: 11px; font-style: italic; color: #5b6b73; }
.wopop .leaflet-popup-content-wrapper { border-radius: 10px;
  box-shadow: var(--shadow-lg); background: var(--card); color: var(--ink); }
.wopop .leaflet-popup-tip { background: var(--card); }
.wopop .leaflet-popup-content { margin: 12px 14px; font-family: Roboto, Arial, sans-serif; }
.wopopin { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.wopopin .ph { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wopopin .pd { color: var(--ink-2); font-size: 11.5px; }
.wopopin .btn.small { align-self: flex-start; margin-top: 2px; color: #fff !important; }

/* ---------------- project selector ---------------- */
.projsel { border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 6px 26px 6px 12px; font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; max-width: 220px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 10px) 55%;
  background-size: 4px 4px; background-repeat: no-repeat; }
.projsel:hover { border-color: var(--blue); }
.projsel.solo { pointer-events: none; background-image: none; padding-right: 12px; }
