/* kit/overfield.js: a field typed into over a phone's keyboard (15.2843, 15.2881) - a row's field spread out of its cell
   (.kb-spread) and a list's search line (.kb-field: the combo's, the menu's) - and its button inside (15.2879, 15.2914) */
.kb-spread { position: fixed; z-index: var(--z-popover); margin: 0; }
.kb-spread::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(-1 * var(--sp-150));
  background: var(--bg);
}
.kb-spread > .title-field-input, .kb-spread.inline-field, .kb-spread > input { width: 100%; min-width: 0 !important; }
/* 15.2916 («Поле ввода сделац… как у айфонов… И приведи их к единому виду»): every field over the keyboard - a list's
   typed field, a position's category, a row's own name, a list's search line (15.2919) - is one iPhone field: a grey
   rounded field on the bar's white, no frame, its words in the reading size, the button inside at its right end (the
   cells' own sizes stand inline and the lists' frames are the kit's, hence the weight) */
/* the list over the field casts its shadow up and aside, never down over the field under it */
.kb-spread .combo-drop { box-shadow: var(--sh-overlay-up); }
:is(.combo, .title-field).kb-spread { height: var(--h-field); }
.combo.kb-spread > .combo-button { height: 100%; }
.combo.typeahead.open.kb-spread > .combo-typed,
.kb-spread > input.title-field-input.title-field-input,
.kb-spread > input.inline-field, input.kb-spread, .kb-field > input.kb-field-input {
  flex: 1 1 auto; field-sizing: fixed; inset: 0; width: 100% !important; min-width: 0 !important; margin: 0 !important;
  height: var(--h-field) !important; min-height: 0 !important;
  font-size: var(--fs-l) !important; line-height: var(--lh-l) !important; font-weight: var(--fw-reg) !important;
  color: var(--ink) !important; caret-color: var(--acc);
  padding: 0 var(--h-field) 0 var(--sp-150) !important;
  /* the fill stands on the input itself: a property set on the spread field restyled its whole list (15.2967) */
  background: color-mix(in srgb, var(--ink3) 14%, var(--bg)) !important; border: 0 !important; border-radius: 10px !important;
  box-shadow: none !important; outline: none !important;
}
:is(.kb-spread, .kb-field) input::-webkit-search-cancel-button { display: none; }
.title-field.kb-spread { display: flex; }
/* the list waits hidden while its field moves; let go, it leaves at once (15.2820, 15.2879) */
.kb-gliding :is(.combo-drop, .title-field-suggest) { opacity: 0; transition: none; }
.combo.kb-spread:not(.open) > .combo-drop { display: none; transition: none; }
/* a list's search line on a phone (15.2919): the field and its button in one box, the button at the field's right end */
.kb-field { position: relative; display: flex; flex: none; height: var(--h-field); }
.kb-field > .kb-close { position: absolute; top: 2px; right: 2px; bottom: 2px; aspect-ratio: 1; }
/* the button inside the field: a cross clears its words, an arrow down lets it go (15.2879, 15.2914) */
.kb-close { display: grid; place-items: center; padding: 0;
            border: 0; background: transparent; color: var(--ink3);
            animation: kb-close-in 220ms ease-out both; }
/* the spread field's button stands on its own layer over the field, which moves (kit/overfield.js places it) */
.kb-close.kb-float { position: fixed; z-index: calc(var(--z-popover) + 1); }
/* the clear button an iPhone's: a grey ring-less disc, its cross cut out in the field's ground (15.2916) */
.kb-clear { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
            background: var(--ink3); color: var(--card); }
.kb-clear .ic svg { stroke-width: 3; }
.kb-close:active .kb-clear { opacity: .6; }
@keyframes kb-close-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kb-close { animation: none; } }
