/* The page of a project (views/project.js): the face of the project (banner, icon over its corner, name, chips), the line of completion, the four pills (media, repository, site, bot) and the sheets that change them, the lists, and the glass bar at the
   foot with the way into the chat. Orbita's own pieces; this only lays them out. */
.proj { gap: 16px; padding-bottom: calc(var(--bar-room, 120px) + 8px); }
.psec:empty { display: none; }
.psec-hero { display: grid; gap: 12px; }
/* the face of the project: the banner, the icon hanging from its lower corner with the name beside it, then the chips */
.hero-top { position: relative; }
.hero-art { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 360px; border-radius: 24px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line2), var(--sh1); }
.bfill { position: absolute; inset: 0; background: radial-gradient(120% 160% at 88% -10%, var(--acc-soft), transparent 62%), linear-gradient(160deg, var(--surf2), var(--bg2)); }
.bfill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-more { position: absolute; top: 10px; right: 10px; }
.hero-pill { position: absolute; right: 12px; bottom: 12px; }
.hero-pill.chip { height: 36px; padding: 0 14px; gap: 8px; color: var(--tx); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--sh1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.hero-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, var(--sk-hi) 50%, transparent 70%); background-size: 220% 100%; animation: hero-shine 1.8s linear infinite; }
@keyframes hero-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-shine { animation: none; opacity: .5; } }
.hero-id { display: flex; align-items: flex-start; gap: 14px; padding: 0 4px; }
.hero-id h1 { flex: 1; min-width: 0; padding-top: 6px; overflow-wrap: anywhere; }
.hero-icon { position: relative; z-index: 1; flex: none; margin-top: -36px; border-radius: 24px; box-shadow: 0 0 0 4px var(--bg); }
.ptile-hero { width: 72px; height: 72px; border-radius: 22px; }
.ptile-hero .ic { width: 34px; height: 34px; }
.proj-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px; }
.vchip { position: relative; cursor: pointer; }
.vchip::after { content: ""; position: absolute; inset: -8px -4px; }
.hero-note { margin: 0; padding: 0 4px; }
.hero-note.fail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--crit-soft); }
.hero-sk { width: 100%; height: 132px; border-radius: 24px; }
.psec-hero > .btn { justify-self: start; }
/* lists */
.clip1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfoot { text-align: center; font-variant-numeric: tabular-nums; }
/* the way into the chat: a glass bar at the foot of the page */
.cta-bar { position: absolute; z-index: 20; left: 16px; right: 16px; bottom: calc(26px + var(--sab)); max-width: 460px; height: 68px; margin: 0 auto; border-radius: 34px; padding: 4px; }
.cta-bar .btn { height: 60px; }
@media (min-width: 900px) { .proj { padding-bottom: 120px; } }
/* the picker: "Automatica" and the icons, five to a row */
.icsec { margin-top: 18px; }
.icgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.icopt { aspect-ratio: 1; min-height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--tx2); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); transition: transform 120ms var(--ease), background .2s; }
.icopt .ic { width: 24px; height: 24px; }
.icopt:active { transform: scale(.94); }
.icopt.on { background: var(--acc-soft); color: var(--acc-tx); box-shadow: inset 0 0 0 2px var(--acc); }
/* the versions page (views/versions.js): a card for each publication, the newest open */
.versions-in { gap: 16px; }
.vlist { display: grid; gap: 16px; }
.ver { padding: 0; display: grid; overflow: hidden; }
.vhead { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px; text-align: left; color: var(--tx); border: 0; background: transparent; border-radius: 0; font: inherit; }
.vhead.static { cursor: default; }
button.vhead:active { background: var(--field); }
.vhead-in { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vtop { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.vnum { overflow-wrap: anywhere; }
.vdate { margin-left: auto; }
.vsum { overflow-wrap: anywhere; text-wrap: pretty; }
.vkinds { display: flex; flex-wrap: wrap; gap: 6px; }
.vchev { flex: none; color: var(--tx3); margin-top: 2px; }
.vbody { padding: 0 16px 8px; border-top: 1px solid var(--line); }
.vmd { padding-top: 12px; overflow-wrap: anywhere; }
.vmd h3 { font-size: 15px; line-height: 1.3; margin: 14px 0 4px; }
.vmd > :first-child { margin-top: 0; }
.vfoot { padding: 4px 8px 10px; display: flex; justify-content: flex-start; }
.ver-sk { display: grid; gap: 12px; padding: 16px; }
.vempty { padding: 8px 0 0; }
/* the search for the bot of a project, in the sheet of the links */
.botfind { display: grid; gap: 8px; justify-items: start; margin-top: -4px; min-width: 0; }
.botfound:empty { display: none; }
.botfound .hint { margin: 0; }
.botpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.botopt { cursor: pointer; min-height: 40px; padding: 0 14px; font-weight: 600; }
.botscan { display: grid; gap: 12px; }
/* the sheet of the pictures: what the project has now, and the picker of its own images */
.imgsheet { display: grid; gap: 16px; }
.imgsheet .cell-sub { color: var(--tx2); }
.cover-pv { position: relative; width: min(100%, 300px); aspect-ratio: 16 / 9; margin: 0 auto 34px; }
.cover-pv .bfill { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); }
.cover-pv-icon { position: absolute; left: 14px; bottom: -34px; display: block; border-radius: 22px; box-shadow: 0 0 0 4px var(--sheet-solid, var(--bg)); }
.imgpicker { display: grid; gap: 12px; }
.imgpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.imgopt { position: relative; aspect-ratio: 1; padding: 0; border-radius: 16px; overflow: hidden; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); transition: transform 120ms var(--ease); }
.imgopt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgopt:active { transform: scale(.96); }
.imgopt.broken::after { content: ""; position: absolute; inset: 0; background: var(--track); }
/* the sheets that ask Claude for a change (views/projectlinks.js): the field, the confirmation, the answer */
.askform, .askbody { display: grid; gap: 14px; }
.askhint { margin: 0 4px; }
.askcur { margin: -4px 4px 0; overflow-wrap: anywhere; }
.askfoot { display: grid; gap: 8px; }
.askerr { margin: 0 4px; color: var(--crit); font: 600 14px/19px var(--f); overflow-wrap: anywhere; }
.askerr:empty { display: none; }
.sheet-sym.ok { background: var(--ok-soft); color: var(--ok); }
/* the page of a skill of Claude (views/skill.js): its tile and name, what it is for, what is wrong with it, its files */
.skillhead { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.skilltile { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-tx); }
.skillname { flex: 1; min-width: 0; display: grid; gap: 2px; }
.skillname .ptitle { margin: 0; overflow-wrap: anywhere; }
.skillabout { display: grid; gap: 10px; padding: 16px; }
.skillabout p { margin: 0; }
.skillabout .how h3 { padding-left: 0; }
.skillproblems { display: grid; gap: 8px; padding: 14px 16px; background: var(--warn-soft); }
.skillproblems.bad { background: var(--crit-soft); }
.skillproblems p { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* the statistics at the foot of the page (js/pstats.js): the space as one bar with its legend, the other numbers as rows */
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.psec-foot { padding-top: 4px; }
.stat-space { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.stat-head { display: flex; align-items: center; gap: 12px; }
.stat-total { margin-left: auto; font: 700 20px/24px var(--f); font-variant-numeric: tabular-nums; text-align: right; }
.stat-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--track); }
.stat-bar > span { min-width: 6px; }
.tone-acc { background: var(--acc); }
.tone-steel { background: var(--steel); }
.tone-ok { background: var(--ok-f); }
.tone-warn { background: var(--warn-f); }
.stat-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stat-legend li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stat-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.stat-v { margin-left: auto; padding-left: 8px; color: var(--tx2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the sheets of the icon and of the banner: the picture now, the description, the three versions */
.cover-pv.nopad { margin-bottom: 0; }
.pic-pv-icon { display: grid; place-items: center; margin: 0 auto; }
.imgsheet .sec { gap: 12px; }
.imgsheet textarea { min-height: 84px; }

/* the card of the operating system (js/views/system.js): the buttons under its rows, the list of what changes, and the small window with the last lines of what the deploy said (behind a tap when it failed) */
.psec-system { display: grid; gap: 14px; }
.sysact { display: grid; gap: 10px; }
.sysact .why { margin: 0 4px; }
.psec-system .notice { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }                /* the text keeps the width of the row; «Chiedi a Claude» goes under it when they do not fit together */
.psec-system .notice .grow { flex: 1 1 180px; min-width: 0; }
.psec-system .notice > .btn { margin-left: auto; }
.syschanges, .syschanges-sheet { display: grid; gap: 12px; }
.syslist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; text-align: left; }
.syslist li { padding: 10px 14px; border-radius: 14px; background: var(--field); overflow-wrap: anywhere; }
.sysdetails > summary { list-style: none; cursor: pointer; }
.sysdetails > summary::-webkit-details-marker { display: none; }
.sysdetails[open] > summary { margin-bottom: 10px; }
.syslog { margin: 0; padding: 12px 14px; max-height: 260px; overflow: auto; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); font: 12px/17px var(--m); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tx2); }
.syslog:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
