/* The list of projects (views/home.js): the title row, the glass cards, the states with the Nucleo (empty), the shimmer (loading) and the page that says the server cannot be reached. */
.home-head { padding: calc(var(--top) + 4px) 20px 16px; display: grid; gap: 12px; }
.ptop-end { display: flex; align-items: center; gap: 8px; }
.btn-ic-acc .ic { stroke-width: 2.2; }
.psub { margin: -8px 4px 0; }
.search { display: flex; align-items: center; gap: 8px; }
.search .fld { margin: 0; flex: 1; min-width: 0; }
.search .btn { flex: none; }
.gswitch .seg { width: 100%; }
/* the answer of the search takes the place of the list */
.sresults { padding: 0 20px calc(var(--tab-room, 0px) + 32px); display: grid; gap: 16px; align-content: start; }
.sresults[hidden] { display: none; }
.sr-hint, .sr-wait { padding: 8px 4px; }
.sr-wait { display: flex; align-items: center; gap: 10px; color: var(--tx2); font: 500 15px/20px var(--f); }
.sres { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.sres .ptile { margin-top: 2px; }
.sres-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sres-title .truncate { min-width: 0; }
.sres-title .chip { flex: none; }
.sres-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.sres-who { color: var(--tx2); font-weight: 600; }
.sres .cell-v { align-self: center; }
.sres mark { background: var(--acc-soft); color: var(--acc-tx); border-radius: 4px; padding: 0 2px; }
.search input[type="search"] { -webkit-appearance: none; appearance: none; }
.search input[type="search"]::-webkit-search-cancel-button { display: none; }
.fld-x[hidden] { display: none; }
.list { list-style: none; margin: 0; padding: 0 20px calc(var(--tab-room, 0px) + 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.list > li { display: block; min-width: 0; }
.list:empty { display: none; }
.glabel { padding: 8px 4px 0; margin-bottom: -4px; }
.glabel:first-child { padding-top: 0; }
.pcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; padding: 14px 16px; text-align: left; color: var(--tx); transition: transform 120ms var(--ease), background .2s; }
.pcard:active { transform: scale(.985); }
.pcard[aria-current="true"] { background: var(--acc-soft); border-color: var(--acc-line); }
.pcard-pinned { border-color: var(--line2); }                                 /* the operating system: its card on the Home (a stronger line, so it reads as the fixed one) */
.item-title { min-width: 0; }
.item-sub { display: block; }
.pc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.item-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.pcard-sk { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.pc-top-sk { display: flex; align-items: center; justify-content: space-between; }
/* the big states: the Nucleo and the first request, or what went wrong */
.state-big { padding: 8px 16px calc(var(--tab-room, 0px) + 16px); gap: 0; }
.empty-nuc { position: relative; width: 300px; height: 300px; max-width: 100%; margin-bottom: -6px; }
.state-big h2 { margin-top: 8px; }
.state-big p { margin-top: 8px; max-width: 290px; text-wrap: pretty; }
.state-big .btn { margin-top: 26px; width: min(290px, 100%); }
.orb-big { width: 84px; height: 84px; margin-top: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--crit-soft); color: var(--crit); }
.orb-big .ic { width: 38px; height: 38px; stroke-width: 1.6; }
.orb-big + h2 { margin-top: 20px; }
.state-big .btn + p { margin-top: 14px; }
/* the icon of each project: a soft tile in front of its name (the same tile, bigger, on the project's own page: project.css) */
.pc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-head .item-title { flex: 1; min-width: 0; }
.pc-sk-l { display: flex; align-items: center; gap: 12px; }
.ptile { flex: none; }
.ptile-card { width: 36px; height: 36px; border-radius: 12px; }
.ptile-card .ic { width: 20px; height: 20px; }
.ptile.has-img { padding: 0; overflow: hidden; background: var(--bg2); }
.ptile.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the choice of the group of a new project sits in the row of the title, so the page does not grow (the keyboard leaves little room) */
.ptop > .seg { width: 176px; flex: none; }
