/* Components people mix up, part 2: inputs & navigation. Every rule is scoped under a .ci-* root. */

.ci-lab { font: 600 10.5px/1.2 var(--f-mono); letter-spacing: 0.02em; color: color-mix(in srgb, var(--stage-ink) 62%, transparent); }

/* accordion */
.ci-acc { width: min(88%, 380px); display: grid; gap: 6px; }
.ci-acc details { background: var(--stage-card); border: 1px solid var(--stage-line); border-radius: 10px; overflow: hidden; }
.ci-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.ci-acc summary::-webkit-details-marker { display: none; }
.ci-acc summary svg { width: 16px; height: 16px; opacity: 0.6; transition: transform 0.25s ease; }
.ci-acc details[open] summary svg { transform: rotate(180deg); }
.ci-acc p { margin: 0; padding: 0 12px 11px; font-size: 12.5px; line-height: 1.45; color: color-mix(in srgb, var(--stage-ink) 78%, transparent); }
.ci-acc details[open] p { animation: ci-acc-in 0.3s ease both; }
@keyframes ci-acc-in { from { opacity: 0; transform: translateY(-4px); } }

/* tabs */
.ci-tabs { width: min(90%, 400px); padding: 2px 14px 12px; border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-tabs-list { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--stage-line); }
.ci-tabs-list button { background: none; border: 0; padding: 10px 8px; font: 600 13px var(--f-display); color: color-mix(in srgb, var(--stage-ink) 58%, transparent); cursor: pointer; }
.ci-tabs-list button[aria-selected="true"] { color: var(--stage-ink); }
.ci-tabs-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--d-violet); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1), width 0.25s cubic-bezier(0.3, 0.7, 0.4, 1); }
.ci-tabs-panel { padding-top: 12px; min-height: 78px; font-size: 13px; }
.ci-tabs-panel b { font-size: 15px; }
.ci-tabs-panel p { margin: 4px 0 0; line-height: 1.45; color: color-mix(in srgb, var(--stage-ink) 78%, transparent); }
.ci-tabs-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; }
.ci-tabs-panel dt { color: color-mix(in srgb, var(--stage-ink) 62%, transparent); }
.ci-tabs-panel dd { margin: 0; font-weight: 650; }

/* segmented control */
.ci-seg { width: min(86%, 360px); display: grid; gap: 14px; }
.ci-seg-ctl { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--stage-ink) 9%, transparent); }
.ci-seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 8px;
  background: color-mix(in srgb, var(--stage-card), #fff 12%); box-shadow: 0 1px 3px rgb(0 0 0 / 0.16);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.ci-seg-ctl button { position: relative; padding: 7px 0; border: 0; border-radius: 8px; background: none; color: var(--stage-ink); font: 600 13px var(--f-display); cursor: pointer; transition: opacity 0.2s; }
.ci-seg-ctl button[aria-checked="false"] { opacity: 0.62; }
.ci-seg-chart { height: 88px; display: flex; align-items: flex-end; gap: 8px; padding: 0 4px; border-bottom: 1px solid var(--stage-line); }
.ci-seg-chart i { flex: 1; height: 40%; border-radius: 4px 4px 0 0; background: var(--d-blue); transition: height 0.45s cubic-bezier(0.3, 0.7, 0.4, 1); }

/* select */
.ci-sel { align-self: start; justify-self: end; margin: 16px 8% 0 0; width: min(64%, 250px); display: grid; gap: 6px; }
.ci-sel-wrap { position: relative; }
.ci-sel-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; cursor: pointer;
  border-radius: 9px; border: 1px solid var(--stage-line); background: var(--stage-card); color: var(--stage-ink); font: 600 13.5px var(--f-display);
}
.ci-sel-trigger[aria-expanded="true"] { border-color: var(--d-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-violet) 25%, transparent); }
.ci-sel-trigger svg { width: 16px; height: 16px; opacity: 0.6; }
.ci-sel-list, .ci-combo-list { list-style: none; margin: 0; padding: 4px; background: var(--stage-card); border: 1px solid var(--stage-line); border-radius: 10px; }
.ci-sel-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; box-shadow: 0 12px 28px rgb(0 0 0 / 0.18); transform-origin: top; animation: ci-pop 0.16s ease-out; }
.ci-sel-list li, .ci-combo-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.ci-sel-list li svg { width: 14px; height: 14px; flex: none; visibility: hidden; color: var(--d-violet); }
.ci-sel-list li[aria-selected="true"] { font-weight: 650; }
.ci-sel-list li[aria-selected="true"] svg { visibility: visible; }
.ci-sel-list li.is-hi, .ci-combo-list li[aria-selected="true"] { background: color-mix(in srgb, var(--d-violet) 15%, transparent); }
@keyframes ci-pop { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }

/* combobox */
.ci-combo { align-self: start; margin-top: 14px; width: min(80%, 300px); display: grid; gap: 6px; }
.ci-combo-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 9px; background: var(--stage-card); border: 1px solid var(--d-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-violet) 25%, transparent); }
.ci-combo-field svg { width: 16px; height: 16px; flex: none; opacity: 0.55; }
.ci-combo-field input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: none; background: none; color: var(--stage-ink); font: 500 14px var(--f-display); }
.ci-combo-list li { display: block; }
.ci-combo-list b { font-weight: 800; text-decoration: underline; text-decoration-color: var(--d-violet); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.ci-combo-list .ci-combo-none { font-style: italic; opacity: 0.6; cursor: default; }

/* chip */
.ci-chip { width: min(90%, 400px); display: grid; gap: 7px; }
.ci-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ci-fchip {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--stage-line); background: transparent; color: var(--stage-ink); font: 600 12.5px var(--f-display);
  transition: background-color 0.15s, border-color 0.15s, padding 0.15s;
}
.ci-fchip svg { width: 0; height: 14px; transition: width 0.15s; }
.ci-fchip[aria-pressed="true"] { padding-left: 8px; background: color-mix(in srgb, var(--d-violet) 18%, var(--stage-card)); border-color: color-mix(in srgb, var(--d-violet) 55%, transparent); }
.ci-fchip[aria-pressed="true"] svg { width: 14px; }
.ci-chip-field { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px; border-radius: 10px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-ichip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--stage-ink) 9%, transparent); font-size: 12.5px; font-weight: 600; }
.ci-ichip button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 15px; line-height: 1; opacity: 0.6; cursor: pointer; }
.ci-ichip button:hover { opacity: 1; background: color-mix(in srgb, var(--stage-ink) 12%, transparent); }
.ci-chip-ph { padding-left: 4px; font-size: 12.5px; opacity: 0.45; }

/* badge vs chip vs tag vs pill */
.ci-bdg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--stage-line); }
.ci-bdg-cell { display: grid; align-content: center; justify-items: center; gap: 7px; padding: 8px; text-align: center; background: var(--stage); }
.ci-bdg-spec { height: 30px; display: flex; align-items: center; gap: 10px; }
.ci-bdg-cell p { margin: 0; font-size: 11px; line-height: 1.3; color: color-mix(in srgb, var(--stage-ink) 70%, transparent); }
.ci-bdg-cell strong { display: block; font-size: 12.5px; color: var(--stage-ink); }
.ci-bdg-bell { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.ci-bdg-bell svg { width: 24px; height: 24px; }
.ci-bdg-count {
  position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #e5484d; color: #fff; font: 700 10.5px/18px var(--f-display); text-align: center; box-shadow: 0 0 0 2px var(--stage);
}
.ci-bdg-count.is-bump { animation: ci-bump 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ci-bump { from { transform: scale(0.55); } }
.ci-bdg-status { padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--d-lime) 35%, transparent); font-size: 10.5px; font-weight: 700; }
.ci-bdg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 12px; border-radius: 999px; border: 1px solid var(--stage-line); background: var(--stage-card); font-size: 12.5px; font-weight: 600; }
.ci-bdg-chip i { font-style: normal; opacity: 0.6; }
.ci-bdg-tag { padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--d-blue) 18%, transparent); font: 500 12px var(--f-mono); }
.ci-bdg-pill { padding: 5px 14px; border-radius: 999px; background: var(--stage-ink); color: var(--stage); font-size: 12px; font-weight: 700; }
.ci-bdg-pill.ci-bdg-pill2 { background: var(--d-violet); color: #fff; }

/* switch */
.ci-sw { width: min(88%, 360px); display: grid; border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-sw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; }
.ci-sw-row + .ci-sw-row { border-top: 1px solid var(--stage-line); }
.ci-sw-row b, .ci-sw-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; }
.ci-sw-check input { margin: 0; width: 16px; height: 16px; accent-color: var(--d-violet); }
.ci-sw-row small { font: 500 10.5px var(--f-mono); color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }
.ci-switch { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--stage-ink) 24%, transparent); cursor: pointer; transition: background-color 0.18s ease-out; }
.ci-switch i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transition: transform 0.18s ease-out; }
.ci-switch[aria-checked="true"] { background: #30c45a; }
.ci-switch[aria-checked="true"] i { transform: translateX(18px); }
.ci-sw-save { flex: none; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--stage-line); background: transparent; color: var(--stage-ink); font: 650 12px var(--f-display); cursor: pointer; }

/* stepper (wizard steps) */
.ci-step { width: min(92%, 420px); display: grid; gap: 14px; }
.ci-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ci-step-list li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ci-step-list li + li::before {
  content: ""; position: absolute; top: 13px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; border-radius: 2px;
  background: linear-gradient(var(--d-violet), var(--d-violet)) left / var(--fill, 0%) 100% no-repeat, var(--stage-line);
  transition: background-size 0.3s ease;
}
.ci-step-list li[data-state="done"]::before, .ci-step-list li[data-state="current"]::before { --fill: 100%; }
.ci-step-list b {
  position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--stage-line); background: var(--stage); color: color-mix(in srgb, var(--stage-ink) 60%, transparent);
  font-size: 12.5px; font-weight: 750; transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ci-step-list b svg { display: none; width: 14px; height: 14px; }
.ci-step-list li[data-state="current"] b { border-color: var(--d-violet); color: var(--stage-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--d-violet) 22%, transparent); }
.ci-step-list li[data-state="done"] b { border-color: var(--d-violet); background: var(--d-violet); color: #fff; }
.ci-step-list li[data-state="done"] b span { display: none; }
.ci-step-list li[data-state="done"] b svg { display: block; }
.ci-step-list em { font-style: normal; font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--stage-ink) 65%, transparent); }
.ci-step-list li[data-state="current"] em { color: var(--stage-ink); }
.ci-step-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 10px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-step-txt { margin: 0; min-width: 0; font-size: 12.5px; font-weight: 600; }
.ci-step-foot div { display: flex; flex: none; gap: 6px; }
.ci-step-foot button { padding: 6px 10px; border-radius: 7px; border: 1px solid var(--stage-line); background: transparent; color: var(--stage-ink); font: 650 12px var(--f-display); cursor: pointer; }
.ci-step-foot .ci-step-next { border-color: var(--stage-ink); background: var(--stage-ink); color: var(--stage); }

/* number input */
.ci-num { width: min(88%, 360px); display: grid; border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-num-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.ci-num-row + .ci-num-row { border-top: 1px solid var(--stage-line); }
.ci-num-row b { display: block; font-size: 14px; }
.ci-num-row small { font-size: 11.5px; color: color-mix(in srgb, var(--stage-ink) 62%, transparent); }
.ci-num-ctl { display: flex; align-items: center; gap: 4px; }
.ci-num-ctl button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--stage-line); background: transparent; color: var(--stage-ink); font: 500 18px/1 var(--f-display); cursor: pointer; }
.ci-num-ctl button:disabled { opacity: 0.3; cursor: not-allowed; }
.ci-num-val { width: 34px; height: 32px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-num-val .is-up { animation: ci-num-up 0.14s ease-out; }
.ci-num-val .is-down { animation: ci-num-down 0.14s ease-out; }
@keyframes ci-num-up { from { opacity: 0; transform: translateY(70%); } }
@keyframes ci-num-down { from { opacity: 0; transform: translateY(-70%); } }

/* breadcrumbs */
.ci-bc { width: min(90%, 400px); display: grid; gap: 6px; }
.ci-bc-ol { list-style: none; margin: 0 0 8px; padding: 9px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; border-radius: 10px; background: var(--stage-card); border: 1px solid var(--stage-line); font-size: 13px; }
.ci-bc-ol li { display: flex; align-items: center; }
.ci-bc-ol li + li::before { content: ""; width: 6px; height: 6px; margin: 0 9px 0 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.4; }
.ci-bc-ol a { color: color-mix(in srgb, var(--stage-ink) 70%, transparent); text-decoration: none; }
.ci-bc-ol a:hover { color: var(--stage-ink); text-decoration: underline; }
.ci-bc-ol [aria-current="page"] { font-weight: 700; }
.ci-bc-more button { padding: 0 7px; border: 0; border-radius: 5px; background: color-mix(in srgb, var(--stage-ink) 10%, transparent); color: inherit; font: 700 13px/20px var(--f-display); cursor: pointer; }

/* pagination */
.ci-pg { position: absolute; inset: 0; padding: 14px 14px 38px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.ci-pg-sec { min-height: 0; display: grid; align-content: start; gap: 6px; }
.ci-pg-num { display: flex; align-items: center; gap: 3px; }
.ci-pg-num button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 7px; background: none; color: var(--stage-ink); font: 600 13px var(--f-display); font-variant-numeric: tabular-nums; cursor: pointer; }
.ci-pg-num button:hover:not(:disabled) { background: color-mix(in srgb, var(--stage-ink) 8%, transparent); }
.ci-pg-num button[aria-current="page"] { background: var(--stage-ink); color: var(--stage); }
.ci-pg-num button:disabled { opacity: 0.3; cursor: default; }
.ci-pg-num span { padding: 0 2px; opacity: 0.5; }
.ci-pg-two { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ci-pg-two .ci-pg-sec { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.ci-pg-box { position: relative; min-height: 0; overflow: hidden auto; scrollbar-width: none; padding: 6px; border-radius: 10px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-pg-box::-webkit-scrollbar { display: none; }
.ci-pg-box.ci-pg-inf { overflow: hidden; }
.ci-pg-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ci-pg-rows li { height: 20px; display: flex; align-items: center; gap: 6px; }
.ci-pg-rows i { flex: none; width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--d-blue) 45%, var(--stage-card)); }
.ci-pg-rows span { flex: 1; height: 6px; border-radius: 3px; background: var(--stage-line); }
.ci-pg-rows li:nth-child(3n + 2) span { flex: 0 0 55%; }
.ci-pg-rows li:nth-child(3n) span { flex: 0 0 72%; }
.ci-pg-rows li.is-new { animation: ci-row-in 0.35s ease-out; }
@keyframes ci-row-in { from { opacity: 0; transform: translateY(6px); } }
.ci-pg-more { width: 100%; margin-top: 6px; padding: 5px; border-radius: 7px; border: 1px dashed var(--stage-line); background: none; color: var(--stage-ink); font: 650 11.5px var(--f-display); cursor: pointer; }
.ci-pg-roll { animation: ci-roll 6s linear infinite; }
@keyframes ci-roll { to { transform: translateY(calc(-50% - 2.5px)); } }
.ci-pg-spin { position: absolute; left: 50%; bottom: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--stage-line); border-top-color: var(--d-violet); background: var(--stage-card); box-shadow: 0 0 0 6px var(--stage-card); animation: ci-spin 0.8s linear infinite; }
@keyframes ci-spin { to { transform: rotate(1turn); } }

/* facepile */
.ci-face { display: grid; justify-items: center; gap: 12px; text-align: center; }
.ci-face-pile { display: flex; padding-left: 10px; }
.ci-face-pile span {
  width: 40px; height: 40px; margin-left: -9px; padding-right: 5px; display: grid; place-items: center; border-radius: 50%;
  background: var(--c); color: #14172b; font: 750 12px var(--f-display); box-shadow: 0 0 0 2.5px var(--stage);
  transition: margin 0.22s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.ci-face-pile:hover span, .ci-face-pile.is-open span { margin-left: 4px; }
.ci-face-pile .ci-face-more { padding-right: 0; background: var(--stage-card); color: var(--stage-ink); box-shadow: 0 0 0 2.5px var(--stage), inset 0 0 0 1px var(--stage-line); }
.ci-face p { margin: 0; font-size: 13px; }
.ci-face p b { font-weight: 700; }
.ci-face-pile.ci-face-sm { padding-left: 7px; }
.ci-face-sm span { width: 26px; height: 26px; margin-left: -7px; padding-right: 3px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--stage); }
.ci-face-pile.ci-face-sm:hover span { margin-left: -7px; }

/* menu icons */
.ci-mi { width: 100%; padding: 0 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ci-mi figure { margin: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ci-mi-ico {
  position: relative; width: clamp(36px, 12cqi, 46px); aspect-ratio: 1; display: grid; place-content: center; place-items: center;
  border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); color: var(--stage-ink);
}
.ci-mi figcaption { font-size: clamp(9.5px, 3.1cqi, 12px); font-weight: 700; line-height: 1.2; }
.ci-mi figcaption small { display: block; margin-top: 2px; font: 500 clamp(8.5px, 2.6cqi, 9.5px)/1.2 var(--f-mono); color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }
.ci-mi-burger { padding: 0; cursor: pointer; }
.ci-mi-burger i { position: absolute; left: calc(50% - 10px); width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.ci-mi-burger i:nth-child(1) { top: calc(50% - 7px); }
.ci-mi-burger i:nth-child(2) { top: calc(50% - 1px); }
.ci-mi-burger i:nth-child(3) { top: calc(50% + 5px); }
.ci-mi-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ci-mi-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.ci-mi-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.ci-mi-kebab, .ci-mi-meat { gap: 3px; }
.ci-mi-meat { grid-auto-flow: column; }
.ci-mi-kebab i, .ci-mi-meat i, .ci-mi-bento i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ci-mi-bento { grid-template-columns: repeat(3, 4px); gap: 4px; }
.ci-mi-doner { gap: 4px; }
.ci-mi-doner i { height: 2px; border-radius: 2px; background: currentColor; }
.ci-mi-doner i:nth-child(1) { width: 20px; }
.ci-mi-doner i:nth-child(2) { width: 14px; }
.ci-mi-doner i:nth-child(3) { width: 8px; }

/* floating action button */
.ci-fab { position: absolute; inset: 0; overflow: hidden; }
.ci-fab-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; transition: opacity 0.2s; }
.ci-fab.is-open .ci-fab-list { opacity: 0.35; }
.ci-fab-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--stage-card); }
.ci-fab-list i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c); }
.ci-fab-list b { display: block; font-size: 12.5px; }
.ci-fab-list small { font-size: 10.5px; color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }
.ci-fab-btn {
  position: absolute; right: 14px; bottom: 14px; width: 50px; height: 50px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 16px; background: var(--d-violet); color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgb(60 30 160 / 0.35), 0 2px 4px rgb(0 0 0 / 0.2);
}
.ci-fab-btn i { position: relative; width: 18px; height: 18px; transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1); }
.ci-fab-btn i::before, .ci-fab-btn i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ci-fab-btn i::after { transform: rotate(90deg); }
.ci-fab.is-open .ci-fab-btn i { transform: rotate(45deg); }
.ci-fab-dial { position: absolute; right: 22px; bottom: 72px; display: grid; justify-items: end; gap: 6px; }
.ci-fab-act {
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--stage-ink); cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
  transition: opacity 0.18s, transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1); transition-delay: calc(var(--i) * 40ms);
}
.ci-fab.is-open .ci-fab-act { opacity: 1; transform: none; pointer-events: auto; }
.ci-fab-act span { padding: 4px 8px; border-radius: 6px; background: var(--stage-card); box-shadow: 0 2px 6px rgb(0 0 0 / 0.15); font: 650 11.5px var(--f-display); }
.ci-fab-act i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--stage-card); box-shadow: 0 3px 10px rgb(0 0 0 / 0.18); }
.ci-fab-act i::before { content: ""; width: 13px; height: 13px; border-radius: 4px; background: var(--d-violet); }

/* range slider */
.ci-rs { width: min(86%, 360px); display: grid; gap: 22px; }
.ci-rs-blk { display: grid; gap: 10px; }
.ci-rs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ci-rs-head output { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-rs input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.ci-rs input.ci-rs-single { background: linear-gradient(to right, var(--d-violet) var(--p), var(--stage-line) var(--p)) center / 100% 4px no-repeat; }
.ci-rs input[type="range"]::-webkit-slider-runnable-track { height: 20px; background: transparent; }
.ci-rs input[type="range"]::-moz-range-track { background: transparent; }
.ci-rs input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--d-violet); box-shadow: 0 1px 4px rgb(0 0 0 / 0.25); pointer-events: auto; cursor: grab; }
.ci-rs input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--d-violet); box-shadow: 0 1px 4px rgb(0 0 0 / 0.25); pointer-events: auto; cursor: grab; }
.ci-rs-dual { position: relative; height: 20px; }
.ci-rs-track { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: var(--stage-line); }
.ci-rs-track i { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 4px; background: var(--d-violet); }
.ci-rs-dual input[type="range"] { position: absolute; inset: 0; pointer-events: none; }

/* OTP input */
.ci-otp { display: grid; justify-items: center; gap: 12px; text-align: center; }
.ci-otp-k { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--stage-ink) 78%, transparent); }
.ci-otp-boxes { display: flex; align-items: center; gap: 6px; }
.ci-otp-boxes input {
  width: clamp(30px, 10cqi, 42px); height: clamp(38px, 12.5cqi, 50px); padding: 0; text-align: center; outline: none;
  border-radius: 9px; border: 1.5px solid var(--stage-line); background: var(--stage-card); color: var(--stage-ink);
  font: 700 clamp(16px, 5.4cqi, 22px) var(--f-display); caret-color: var(--d-violet); transition: border-color 0.15s, box-shadow 0.15s;
}
.ci-otp-boxes input:focus, .ci-otp-boxes input.is-fake-focus { border-color: var(--d-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-violet) 25%, transparent); }
.ci-otp-dash { width: 8px; height: 2px; margin: 0 2px; background: var(--stage-line); }
.ci-otp-status { margin: 0; font: 500 11.5px var(--f-mono); color: color-mix(in srgb, var(--stage-ink) 65%, transparent); }
.ci-otp.is-ok .ci-otp-boxes input { border-color: #30c45a; }
.ci-otp.is-ok .ci-otp-status { font-weight: 700; color: color-mix(in srgb, #30c45a 65%, var(--stage-ink)); }

/* floating label */
.ci-fl { width: min(82%, 320px); display: grid; gap: 12px; }
.ci-fl-item { display: grid; gap: 5px; }
.ci-fl-field { position: relative; display: block; }
.ci-fl-field input { width: 100%; height: 46px; border-radius: 8px; outline: none; color: var(--stage-ink); font: 500 14px var(--f-display); transition: border-color 0.15s; }
.ci-fl-field span {
  position: absolute; left: 12px; top: 50%; margin-left: -4px; padding: 0 4px; pointer-events: none;
  transform: translateY(-50%); transform-origin: left center; font-size: 14px; color: color-mix(in srgb, var(--stage-ink) 60%, transparent);
  transition: top 0.15s ease-out, transform 0.15s ease-out, color 0.15s;
}
.ci-fl-out input { padding: 0 12px; border: 1.5px solid var(--stage-line); background: transparent; }
.ci-fl-out input:focus, .ci-fl-out.is-active input { border-color: var(--d-violet); }
.ci-fl-out input:focus + span, .ci-fl-out input:not(:placeholder-shown) + span, .ci-fl-out.is-active span { top: 0; transform: translateY(-50%) scale(0.78); background: var(--stage); }
.ci-fl-out input:focus + span, .ci-fl-out.is-active span { color: var(--d-violet); }
.ci-fl-fill input { padding: 16px 12px 2px; border: 0; border-bottom: 2px solid color-mix(in srgb, var(--stage-ink) 40%, transparent); border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--stage-ink) 7%, transparent); }
.ci-fl-fill input:focus { border-bottom-color: var(--d-violet); }
.ci-fl-fill input:focus + span, .ci-fl-fill input:not(:placeholder-shown) + span { top: 13px; transform: translateY(-50%) scale(0.75); }
.ci-fl-fill input:focus + span { color: var(--d-violet); }

/* dropzone */
.ci-dz { position: absolute; inset: 0; padding: 12px 14px 38px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
.ci-dz-zone {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 3px; text-align: center; cursor: pointer;
  border: 2px dashed var(--stage-line); border-radius: 12px; transition: border-color 0.15s, background-color 0.15s;
  animation: ci-dz-zone 5s ease infinite;
}
.ci-dz-zone svg { width: 26px; height: 26px; opacity: 0.7; }
.ci-dz-zone b { font-size: 14px; }
.ci-dz-zone span { font-size: 11.5px; color: color-mix(in srgb, var(--stage-ink) 68%, transparent); }
.ci-dz-zone u { color: var(--d-violet); text-decoration-thickness: 1.5px; }
.ci-dz-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ci-dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ci-dz.is-over .ci-dz-zone { border-style: solid; border-color: var(--d-violet); background: color-mix(in srgb, var(--d-violet) 10%, transparent); }
@keyframes ci-dz-zone {
  0%, 24% { border-style: dashed; border-color: var(--stage-line); background-color: transparent; }
  28%, 48% { border-style: solid; border-color: var(--d-violet); background-color: color-mix(in srgb, var(--d-violet) 10%, transparent); }
  54%, 100% { border-style: dashed; border-color: var(--stage-line); background-color: transparent; }
}
.ci-dz-ghost {
  position: absolute; right: 8%; top: 9%; display: flex; align-items: center; gap: 6px; padding: 6px 10px; pointer-events: none;
  border-radius: 8px; background: var(--stage-card); box-shadow: 0 8px 20px rgb(0 0 0 / 0.2); font-size: 12px; font-weight: 600;
  animation: ci-dz-ghost 5s ease infinite;
}
.ci-dz-ghost i, .ci-dz-list li i { flex: none; width: 13px; height: 16px; border-radius: 2px; background: #e5484d; }
@keyframes ci-dz-ghost {
  0% { opacity: 0; transform: translate(4cqi, -2cqi) rotate(6deg); }
  8% { opacity: 1; transform: translate(4cqi, -2cqi) rotate(6deg); }
  26%, 46% { opacity: 1; transform: translate(-26cqi, 11cqi) rotate(-3deg); }
  52%, 100% { opacity: 0; transform: translate(-26cqi, 13cqi) scale(0.8); }
}
.ci-dz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ci-dz-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--stage-card); border: 1px solid var(--stage-line); font-size: 12.5px; font-weight: 600; }
.ci-dz-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-dz-list small { margin-left: 8px; font: 500 10.5px var(--f-mono); color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }
.ci-dz-list em { flex: none; width: 64px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--stage-line); }
.ci-dz-list em b { display: block; width: 100%; height: 100%; background: var(--d-violet); animation: ci-dz-bar 1.2s ease-out both; }
@keyframes ci-dz-bar { from { width: 0; } }
.ci-dz-list .ci-dz-auto { animation: ci-dz-row 5s ease infinite; }
.ci-dz-list .ci-dz-auto em b { animation: ci-dz-bar-auto 5s ease infinite; }
@keyframes ci-dz-row { 0%, 46% { opacity: 0; transform: translateY(6px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ci-dz-bar-auto { 0%, 50% { width: 0; } 80%, 100% { width: 100%; } }
.ci-dz.is-user .ci-dz-zone { animation: none; }
.ci-dz.is-user .ci-dz-ghost { display: none; }

/* resizable panels */
.ci-rz { position: absolute; inset: 12px; display: grid; grid-template-columns: var(--split) 10px minmax(0, 1fr); overflow: hidden; border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-rz-pane { min-width: 0; overflow: hidden; padding: 10px 12px; display: grid; align-content: start; gap: 6px; }
.ci-rz-pane .ci-lab { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
.ci-rz-pane p { margin: 0; padding: 3px 6px; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 12px var(--f-mono); }
.ci-rz-pane p:first-of-type { background: color-mix(in srgb, var(--d-violet) 16%, transparent); }
.ci-rz-pane.ci-rz-code { background: var(--stage); }
.ci-rz-code i { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--d-blue) 40%, var(--stage-line)); }
.ci-rz-code i:nth-of-type(3n) { background: color-mix(in srgb, var(--d-pink) 40%, var(--stage-line)); }
.ci-rz-handle { position: relative; display: grid; place-items: center; cursor: col-resize; touch-action: none; background: var(--stage-card); border-inline: 1px solid var(--stage-line); }
.ci-rz-handle i { width: 4px; height: 28px; border-radius: 4px; background: var(--stage-line); transition: background-color 0.15s, height 0.15s; }
.ci-rz-handle:hover i, .ci-rz-handle:focus-visible i { height: 40px; background: var(--d-violet); }

/* tree view */
.ci-tree-wrap { position: absolute; inset: 12px; overflow: hidden; padding: 8px; border-radius: 12px; background: var(--stage-card); border: 1px solid var(--stage-line); }
.ci-tree, .ci-tree ul { list-style: none; margin: 0; padding: 0; }
.ci-tree ul { margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--stage-line); }
.ci-tree [aria-expanded="false"] > ul { display: none; }
.ci-tree li { outline: none; }
.ci-tree li:focus-visible > .ci-tree-row { outline: 2px solid var(--accent); outline-offset: -2px; }
.ci-tree-row { height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 6px; border-radius: 6px; white-space: nowrap; font: 500 12.5px var(--f-mono); cursor: pointer; }
.ci-tree-row:hover { background: color-mix(in srgb, var(--stage-ink) 7%, transparent); }
.ci-tree-row.is-sel { background: color-mix(in srgb, var(--d-violet) 16%, transparent); }
.ci-tree-chev { flex: none; width: 12px; height: 12px; opacity: 0.6; transition: transform 0.18s; }
.ci-tree [aria-expanded="true"] > .ci-tree-row .ci-tree-chev { transform: rotate(90deg); }
.ci-tree-file > .ci-tree-row { padding-left: 24px; }
.ci-tree-ico { flex: none; width: 14px; height: 11px; border-radius: 2px 3px 2px 2px; background: var(--d-amber); }
.ci-tree-file .ci-tree-ico { width: 11px; height: 13px; border-radius: 2px; background: color-mix(in srgb, var(--stage-ink) 30%, transparent); }
