/* Settings and the pages and sheets that come from it (model, tools, skills, archive, the connections, DeepSeek), and the menu that opens from a button. Orbita's boards Impostazioni-1/2 and
   Fogli-1/2/3: the cells and chips are Orbita's own; this lays out what they hold. */
.cell.tall { min-height: 64px; }
.screen-seg { margin-left: auto; width: 176px; flex: none; }
.version { text-align: center; padding-top: 6px; }
.fieldrow { display: grid; min-width: 0; }
.fieldrow .fld .ic { color: var(--tx3); }
.fieldrow .fld input { width: 100%; }
.fieldrow .hint { overflow-wrap: anywhere; }
.steps { margin: 0; padding: 0 4px 0 22px; display: grid; gap: 10px; font: 500 14px/20px var(--f); color: var(--tx2); }
.steps strong { color: var(--tx); }
textarea.input.secret { min-height: 130px; resize: vertical; font-family: var(--m, ui-monospace, monospace); }
.input.secret { -webkit-text-security: disc; }                    /* a secret typed or pasted: text shown as dots (not type=password, which makes iOS slow to show the keyboard) */
.sec-label { padding-left: 4px; margin: 0 0 8px; }
/* the pictures in batch, on the page of ChatGPT (js/views/imagebatch.js): its groups are spaced like the ones of a page */
.imgbatch { display: grid; gap: 20px; margin-top: 8px; min-width: 0; }
/* sheets: the header may carry an icon tile and a state, the groups inside are flat */
.sheet-lead { width: 40px; height: 40px; border-radius: 12px; }
.sheet-lead .ic { width: 22px; height: 22px; }
.sheet-head .chip { flex: none; }
.sheet-head h2 { flex: 1; }
.sheet-note { margin: 0; }
.sheet .grp { background: var(--field); box-shadow: none; border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.foot-row .btn { padding: 0 12px; }
.resbox { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 16px; }
.resbox[hidden] { display: none; }
.resbox.ok { background: var(--ok-soft); color: var(--tx); }
.resbox.bad { background: var(--crit-soft); color: var(--tx); }
.res-i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.res-i .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.resbox.ok .res-i { background: var(--ok-f); }
.resbox.bad .res-i { background: var(--crit-f); }
.resbox > .t-su { align-self: center; overflow-wrap: anywhere; }
/* the list of models: a button for each, the round mark of the chosen one */
.pickrow { min-height: 64px; }
.pickrow.on { background: var(--acc-soft); }
.pick { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line2); }
.pick.on { background: var(--acc); color: var(--on-acc); box-shadow: none; }
.pick .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.seg[data-count="5"] > * { padding: 0 2px; font-size: 13px; min-width: 0; }
.optsheet { display: grid; gap: 20px; }
.optsheet .reset { justify-self: start; margin-top: 4px; }
.optsheet .sec { gap: 0; }
.optsheet .sec-label + * { margin-top: 0; }
.optsheet .hint { margin-top: 8px; }
.warnbox { margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: var(--warn-soft); display: grid; gap: 10px; }
.warnbox .row { display: flex; flex-wrap: wrap; gap: 8px; }
.toolsum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.how { display: grid; gap: 8px; }
.how h3 { padding-left: 4px; }
.codebox pre { margin: 0; padding: 12px 14px; font: 400 13px/20px var(--m); color: var(--code-tx); white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
.cell.flat { min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.cell.flat.tall { min-height: 68px; }
.skel-row { display: flex; gap: 12px; padding: 12px; }
.skel-row .sk:first-child { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.cell-v .btn { flex: none; }
/* the menu that opens from a button (board Fogli-3) */
.scrim.soft { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.scrim.soft.on { opacity: .8; }
.menu { position: fixed; z-index: 41; width: 272px; max-width: calc(100vw - 24px); background: var(--sheet); border-radius: 24px; transform-origin: top right; opacity: 0; transform: scale(.92); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 280ms var(--ease); }
.menu.on { opacity: 1; transform: none; pointer-events: auto; }
.menu-r { position: relative; }
.menu-r.two { min-height: 56px; }
.menu-t { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.menu-go { margin-left: auto; color: var(--tx3); display: grid; }
.menu-r.danger { color: var(--crit); }
.menu-hair { margin: 6px 12px; }
/* the limits and the consumption (views/usage.js), on the page of each service: one titled card (the title says when it was read, a button reads again) with, for each window of a limit, a line, a bar and
   when it starts over; for DeepSeek the balance and three amounts side by side */
.ucap { display: inline-flex; align-items: center; gap: 8px; }
.ucap .btn-ic { width: 32px; height: 32px; }
.ucard { align-items: flex-start; gap: 12px; padding: 14px 16px; }
.ubody { flex: 1; min-width: 0; display: grid; gap: 14px; }
.uage { flex: none; text-align: right; }
.urow { display: grid; gap: 6px; }
.uline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.uval { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.uval.warn { color: var(--warn); }
.uval.crit { color: var(--crit); }
.pl.ubar { height: 8px; border-radius: 4px; }               /* (the line of completion's own bar, a little thicker; progress.css comes later, so the selector is the stronger one) */
.pl.ubar > i { min-width: 0; }
.pl.ubar.warn > i { background: var(--warn-f); }
.pl.ubar.crit > i { background: var(--crit-f); }
.uwhen { overflow-wrap: anywhere; }
.ustats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ustat { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--field); }
.ustat > span:first-child { white-space: nowrap; }
.ustat b { font: 600 16px/20px var(--f); font-variant-numeric: tabular-nums; white-space: nowrap; }
.utok { overflow-wrap: anywhere; }
@media (max-width: 350px) {                                  /* a very narrow phone: one amount per row (the name and the money side by side, the tokens under them) */
  .ustats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ustat { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 9px 12px; }
  .ustat .utok { grid-column: 1 / -1; }
}
.ubal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ubal b { font: 700 22px/26px var(--f); font-variant-numeric: tabular-nums; }
.unote, .uerr { margin: 0; overflow-wrap: anywhere; }
.uerr { color: var(--tx2); }
.ubtns { display: flex; flex-wrap: wrap; gap: 8px; }
/* the skills of Claude (views/skills.js): a row whose tap opens the skill and whose switch, at its end, turns it on or off; a skill that is off has the quiet tile */
.cell.split > .sw { margin: 0 16px 0 8px; }
.cell-i.mute { background: var(--field); color: var(--tx3); }
.cell-sub.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; text-overflow: ellipsis; }
.skillrow[data-on="false"] .cell-title { color: var(--tx2); }
.rowchip { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0 4px; }
.skills-empty { padding: 22px 16px 26px; }
/* The loop of the sessions on the page of a skill (views/skill.js): where it comes from and how much it is used, the reports of the sessions of the projects, and its versions */
.skillorigin { margin: -4px 0 0; text-align: left; padding: 0 4px; overflow-wrap: anywhere; }
.reportrow, .verrow { align-items: flex-start; }
.reportrow .cell-sub, .verrow .cell-sub { overflow-wrap: anywhere; }
.reportrow .cell-v, .verrow .cell-v { align-self: flex-start; padding-top: 2px; }
button.verrow:active { background: var(--field); }
/* Users: a suspended person's row is quieter, and the number in their sheet is easy to select and copy */
.userrow[data-state="off"] .cell-title { color: var(--tx2); }
.cell-body code { display: block; margin-top: 2px; font: 500 15px/20px var(--m); letter-spacing: .02em; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }

/* The model of a project, in two steps (js/models.js, js/views/model.js): the services, then the models of the one chosen with their context and their three prices */
.mlist .mrow { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.mname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mrow .cell-body { gap: 2px; }
.mprice { font-variant-numeric: tabular-nums; }
.mrow.off { cursor: default; }
.srow.off .cell-title { color: var(--tx2); }
.srow .cell-i.brandtile { flex: none; }
.ubal.small { align-items: baseline; flex-wrap: wrap; row-gap: 2px; }
.ubal.small b { font: 600 16px/20px var(--f); }
.ubal b.crit { color: var(--crit); }

/* the archive: the buttons at the end of a row (restore, delete for good) */
.arch-acts { gap: 6px; }
.arch-erase { color: var(--crit); }
/* the sheet of a person: one quiet line for the state, the projects with a header and quiet round buttons */
.usum { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 4px; }
.usum .light { margin-right: 0; }
.givenhead { align-items: center; min-height: 36px; }
.givenhead .btn { flex: none; }
.givenrow .givenx { flex: none; width: 40px; height: 40px; margin-right: -6px; color: var(--tx3); }
.givenrow .givenx:active { color: var(--crit); }
.mrow .behind { color: var(--warn); }                                                /* a Claude name whose last answer came from an older version: said in the warning colour */
.optsheet .back { justify-self: start; }                      /* the way back to the list of services, at the top of the page of a service */
.optsheet .gwopen { margin-top: 14px; }                       /* the page of OmniRoute in the sheet has only a note and this button: a little air between them */
/* «Nuova skill» (js/views/skillimport.js): the steps of the sheet (the choice, the link, the skills a repository holds) take turns */
.importstep { display: grid; gap: 16px; }
.importstep[hidden] { display: none; }
.sheet-foot[hidden], .importfoot .btn[hidden] { display: none; }
.importsheet .warnbox { margin-top: 0; }
.importsheet .fieldrow { margin: 0; }
