/* (ex)SpenserBot — CSS-art icon set.
   No emoji, no icon font, no SVG, no image file: every glyph is drawn with
   background / border / border-radius / clip-path / box-shadow.

   Geometry: the `.i` element is always a fixed 1em × 1em box and is the
   containing block for every shape, so percentages always mean "of the 24-unit
   icon square" and the drawing scales with font-size. Shapes are painted in
   DOM order — ::before (bottom), optional <span> (middle), ::after (top) —
   which is why each icon's markup is <i class="i i-…"><span></span></i> even
   when the third layer is unused.

   Colour comes from currentColor. Knockouts (lens holes, text lines, shield
   checks) paint var(--i-hole, transparent); a surface opts in by setting
   --i-hole to its own background colour, so one icon reads correctly on paper,
   on white panels, and on the dark band. */

.i {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
  color: inherit;
  font-style: normal;
}
.i::before, .i::after, .i > span {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
}

/* ── camera — receipt photo ────────────────────────────────────────────── */
.i-camera::before { /* viewfinder bump */
  left: 26%; top: 5%; width: 34%; height: 24%;
  background: currentColor; border-radius: 26% 26% 0 0;
}
.i-camera > span { /* body */
  left: 0; top: 24%; width: 100%; height: 68%;
  background: currentColor; border-radius: 14%;
}
.i-camera::after { /* lens */
  left: 30%; top: 38%; width: 40%; height: 40%;
  background: var(--i-hole, transparent); border-radius: 50%;
}

/* ── doc — PDF receipt / CSV report ────────────────────────────────────── */
.i-doc::before { /* page */
  left: 4%; top: 2%; width: 92%; height: 96%;
  background: currentColor; border-radius: 8%;
}
.i-doc > span { /* dog-eared corner */
  left: 74%; top: 2%; width: 22%; height: 22%;
  background: var(--i-hole, transparent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.i-doc::after { /* text lines */
  left: 22%; top: 44%; width: 56%; height: 5%;
  background: var(--i-hole, transparent); border-radius: 999px;
  box-shadow: 0 0.22em 0 var(--i-hole, transparent);
  transform: translateY(0.11em);
}

/* ── pen — free-text logging ───────────────────────────────────────────── */
.i-pen { transform: rotate(36deg); }
.i-pen::before { /* barrel */
  left: 37%; top: 4%; width: 26%; height: 62%;
  background: currentColor; border-radius: 14% 14% 4% 4%;
}
.i-pen::after { /* nib */
  left: 37%; top: 66%; width: 26%; height: 30%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ── loop — correction rounds ──────────────────────────────────────────── */
.i-loop::before { /* ring, open in the top-right quadrant */
  left: 8%; top: 8%; width: 84%; height: 84%;
  border: 0.1em solid currentColor; border-radius: 50%;
  border-top-color: transparent; border-right-color: transparent;
}
.i-loop > span { /* arrow head closing the gap */
  left: 55%; top: 3%; width: 0; height: 0;
  border: 0.24em solid transparent;
  border-top-color: currentColor;
  transform: rotate(-15deg);
}

/* ── bars — monthly CSV report ─────────────────────────────────────────── */
.i-bars::before { left: 6%; top: 50%; width: 20%; height: 42%; background: currentColor; border-radius: 22%; }
.i-bars::after  { left: 74%; top: 66%; width: 20%; height: 26%; background: currentColor; border-radius: 22%; }
.i-bars > span  { left: 40%; top: 14%; width: 20%; height: 78%; background: currentColor; border-radius: 22%; }

/* ── trash — delete ────────────────────────────────────────────────────── */
.i-trash::before { /* can, with two knockout ribs */
  left: 15%; top: 34%; width: 70%; height: 62%;
  background: currentColor; border-radius: 10% 10% 24% 24%;
  box-shadow: inset 0.1em 0 0 var(--i-hole, transparent),
              inset -0.1em 0 0 var(--i-hole, transparent);
}
.i-trash > span { /* lid */
  left: 8%; top: 20%; width: 84%; height: 9%;
  background: currentColor; border-radius: 40%;
}
.i-trash::after { /* handle */
  left: 36%; top: 5%; width: 28%; height: 15%;
  border: 0.09em solid currentColor; border-bottom: none;
  border-radius: 40% 40% 0 0;
}

/* ── case — travel & business trips ────────────────────────────────────── */
.i-case::before { /* body */
  left: 1%; top: 30%; width: 98%; height: 62%;
  background: currentColor; border-radius: 12%;
}
.i-case > span { /* handle */
  left: 35%; top: 10%; width: 30%; height: 22%;
  border: 0.09em solid currentColor; border-bottom: none;
  border-radius: 30% 30% 0 0;
}
.i-case::after { /* clasp */
  left: 42%; top: 42%; width: 16%; height: 11%;
  background: var(--i-hole, transparent); border-radius: 12%;
}

/* ── house — personal budgeting ────────────────────────────────────────── */
.i-house::before { /* roof */
  left: 0; top: 4%; width: 100%; height: 48%;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 76% 74%, 50% 30%, 24% 74%, 24% 100%, 0 100%);
}
.i-house > span { /* walls */
  left: 14%; top: 46%; width: 72%; height: 50%;
  background: currentColor; border-radius: 4% 4% 0 0;
}
.i-house::after { /* door */
  left: 41%; top: 58%; width: 18%; height: 38%;
  background: var(--i-hole, transparent); border-radius: 10% 10% 0 0;
}

/* ── receipt — freelancer tax prep ─────────────────────────────────────── */
.i-receipt::before { /* paper */
  left: 22%; top: 0; width: 56%; height: 100%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 90%, 75% 100%, 62.5% 90%,
                     50% 100%, 37.5% 90%, 25% 100%, 12.5% 90%, 0 100%);
}
.i-receipt > span { /* total */
  left: 34%; top: 72%; width: 22%; height: 7%;
  background: var(--i-hole, transparent); border-radius: 999px;
}
.i-receipt::after { /* line items */
  left: 34%; top: 20%; width: 34%; height: 6%;
  background: var(--i-hole, transparent); border-radius: 999px;
  box-shadow: 0 0.22em 0 var(--i-hole, transparent), 0 0.44em 0 var(--i-hole, transparent);
}

/* ── people — small teams ──────────────────────────────────────────────── */
.i-people::before { /* shoulders */
  left: 1%; top: 54%; width: 98%; height: 36%;
  background: currentColor; border-radius: 50% 50% 14% 14% / 92% 92% 14% 14%;
}
.i-people > span { /* back head */
  left: 3%; top: 20%; width: 30%; height: 30%;
  background: currentColor; border-radius: 50%;
}
.i-people::after { /* front head */
  left: 54%; top: 8%; width: 40%; height: 40%;
  background: var(--i-hole, transparent);
  box-shadow: inset 0 0 0 0.12em currentColor; border-radius: 50%;
}

/* ── db — self-hosted SQLite storage ───────────────────────────────────── */
.i-db::before { /* top disc */
  left: 8%; top: 2%; width: 84%; height: 30%;
  background: currentColor; border-radius: 50%;
}
.i-db > span { /* middle disc */
  left: 8%; top: 35%; width: 84%; height: 28%;
  background: currentColor; border-radius: 50%;
}
.i-db::after { /* bottom disc */
  left: 8%; top: 65%; width: 84%; height: 32%;
  background: currentColor; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
}

/* ── user — per-user isolation ─────────────────────────────────────────── */
.i-user::before { /* shoulders */
  left: 8%; top: 52%; width: 84%; height: 44%;
  background: currentColor; border-radius: 50% 50% 14% 14% / 92% 92% 12% 12%;
}
.i-user::after { /* head */
  left: 30%; top: 4%; width: 40%; height: 40%;
  background: currentColor; border-radius: 50%;
}

/* ── shield — whitelist + audit log ────────────────────────────────────── */
.i-shield::before { /* shield */
  left: 4%; top: 0; width: 92%; height: 100%;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%);
}
.i-shield > span { /* short check stroke */
  left: 24%; top: 46%; width: 22%; height: 12%;
  background: var(--i-hole, transparent); border-radius: 30%;
  transform: rotate(46deg);
}
.i-shield::after { /* long check stroke */
  left: 40%; top: 46%; width: 36%; height: 12%;
  background: var(--i-hole, transparent); border-radius: 30%;
  transform: rotate(-48deg);
}

/* ── help — question-mark button ───────────────────────────────────────── */
.i-help::before { /* ring */
  left: 2%; top: 2%; width: 96%; height: 96%;
  border: 0.1em solid currentColor; border-radius: 50%;
}
.i-help > span { /* hook of the question mark */
  left: 32%; top: 20%; width: 36%; height: 30%;
  border: 0.1em solid currentColor; border-radius: 50%;
  border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(10deg);
}
.i-help::after { /* dot */
  left: 45%; top: 70%; width: 10%; height: 10%;
  background: currentColor; border-radius: 50%;
}

/* ── check — a field confirmed ─────────────────────────────────────────── */
.i-check::before { /* short stroke, down to the vertex */
  left: 9%; top: 46.5%; width: 24%; height: 14%;
  background: currentColor; border-radius: 30%; transform: rotate(41.6deg);
}
.i-check::after { /* long stroke, up from the vertex */
  left: 23.2%; top: 34%; width: 71.6%; height: 14%;
  background: currentColor; border-radius: 30%; transform: rotate(-35.9deg);
}

/* ── plus — Add button ─────────────────────────────────────────────────── */
.i-plus::before { left: 9%; top: 43%; width: 82%; height: 14%; background: currentColor; border-radius: 999px; }
.i-plus::after  { left: 43%; top: 9%; width: 14%; height: 82%; background: currentColor; border-radius: 999px; }

/* ── list — List button ────────────────────────────────────────────────── */
.i-list::before { /* rows */
  left: 33%; top: 42%; width: 61%; height: 9%;
  background: currentColor; border-radius: 999px;
  box-shadow: 0 0.24em 0 currentColor, -0.24em 0 0 currentColor;
}
.i-list::after { /* bullets */
  left: 6%; top: 44%; width: 11%; height: 11%;
  background: currentColor; border-radius: 50%;
  box-shadow: 0 0.25em 0 currentColor, -0.25em 0 0 currentColor;
}

/* ── plane — send ──────────────────────────────────────────────────────── */
.i-plane::before { /* body */
  left: 1%; top: 5%; width: 98%; height: 90%;
  background: currentColor;
  clip-path: polygon(2% 44%, 100% 2%, 60% 98%, 46% 60%);
}
.i-plane::after { /* fold */
  left: 46%; top: 58%; width: 24%; height: 6%;
  background: var(--i-hole, transparent);
  transform: rotate(-32deg); transform-origin: left center;
}
