/* The page of a single content being made in Create (create.js creaPage): the learner app's «Crea» page, copied as it is
   (frontend/learner/v2.css «Crea», and the field of kit/course-builder.css). A step's page (kit/step-detail.css): the
   title, the tabs and one card on the left, as tall as the face on the right; one turn of the chat at a time in the
   card, the resoconto in its place once ready, folded into the corner pill while the talk goes on. */

/* ---------- the field (kit/course-builder.css): a hairline at rest, the ring of colour when written in, turning while SOLVE thinks ---------- */
@property --cb-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.kit .cb-ask { --cb-ring: conic-gradient(from var(--cb-turn), #0a84ff, #5e5ce6, #a35cf0, #e07ac8, #5e5ce6, #0a84ff); }
.kit .cb-ask { position: relative; isolation: isolate; width: 100%; padding: 1px; border-radius: 26px; background: var(--k-line-2); text-align: start; animation: cb-turn 14s linear infinite; }
.kit .cb-ask::after { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: var(--cb-ring); opacity: 0; transition: opacity .5s var(--k-ui); pointer-events: none; }
.kit .cb-ask::before { content: ""; position: absolute; z-index: -1; inset: 14px 40px -16px; border-radius: 40px; background: var(--cb-ring); filter: blur(28px); opacity: 0; transition: opacity .6s var(--k-ui); pointer-events: none; }
.kit .cb-ask:focus-within::after { opacity: .7; }
.kit .cb-ask:focus-within::before { opacity: .14; }
.kit .cb-ask.is-busy { animation-duration: 2.6s; }
.kit .cb-ask.is-busy::after { opacity: 1; }
.kit .cb-ask.is-busy::before { opacity: .26; }
.kit .cb-ask-in { position: relative; z-index: 1; display: grid; border-radius: 25px; background: var(--k-panel); box-shadow: 0 1px 2px oklch(0% 0 0 / .04), 0 18px 40px -28px oklch(0% 0 0 / .28); }
.kit .cb-ask textarea { display: block; width: 100%; min-height: 28px; max-height: 200px; margin: 0; padding: 16px 20px 4px; border: 0; background: none; resize: none; color: var(--k-ink); font: inherit; font-size: 15.5px; line-height: 1.5; outline: 0; field-sizing: content; }
.kit .cb-ask textarea::placeholder { color: var(--k-ink-3); }
/* after the first words: one line, the files' button, the words, the buttons */
.kit .cb-ask-line { display: flex; align-items: flex-end; gap: 6px; padding: 8px; }
.kit .cb-ask-line textarea { flex: 1; min-width: 0; padding: 7px 6px; }

.kit .cb-tool, .kit .cb-send { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background-color .2s var(--k-ui), color .2s var(--k-ui), transform .35s var(--k-spring), opacity .2s var(--k-ui); }
.kit .cb-tool { background: none; color: var(--k-ink-3); }
.kit .cb-tool:hover:not(:disabled) { background: var(--k-fill); color: var(--k-ink); }
.kit label.cb-tool svg { stroke-width: 1.75; transition: transform .55s var(--spring, ease); }
.kit label.cb-tool:active svg { transform: rotate(90deg) scale(.8); transition: transform .1s ease-out; }
.kit .cb-send { background: var(--k-ink); color: var(--k-panel); }
.kit .cb-send .k-icon { transform: rotate(-90deg); }
.kit .cb-send:not(:disabled):hover { transform: scale(1.07); }
.kit .cb-send:disabled { background: var(--k-fill); color: var(--k-ink-3); cursor: default; }
.kit .cb-send:focus-visible, .kit .cb-tool:focus-visible { outline: 2px solid var(--k-blue-text); outline-offset: 2px; }
@keyframes cb-turn { to { --cb-turn: 360deg; } }

/* ---------- «Crea» (learner v2.css): a step's page, the chat in its card ---------- */
.kit.crea-page .k-item { --h: min(740px, calc(100dvh - 150px)); }
.kit.crea-page .k-item-door { height: var(--h); aspect-ratio: 3 / 4; }
.kit.crea-page .k-item-hero { align-items: start; column-gap: clamp(36px, 5vw, 72px); }
.kit .crea-left { display: flex; flex-direction: column; height: var(--h); min-height: 460px; max-width: 600px; width: 100%; min-width: 0; }
.kit .crea-head { display: grid; gap: 12px; justify-items: start; min-width: 0; width: 100%; }
/* the title on one line: what does not fit ends in «…» */
.kit .crea-title { max-width: 100%; margin: 0; overflow: hidden; font-family: var(--k-serif); font-size: clamp(30px, 3vw, 42px); font-weight: 400; line-height: 1.12; letter-spacing: -.028em;
  white-space: nowrap; text-overflow: ellipsis; color: var(--item-ink); }
.kit .crea-title.is-empty { color: var(--item-quiet); }
.kit .crea-left > .ss-ed-tabs { align-self: flex-start; margin-top: 22px; }
.kit .crea-left > .k-item-notice { margin: 12px 0 0; }
/* each tab in one card that reaches the foot of the face */
.kit .crea-card { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 16px; padding: 28px 30px 18px; border-radius: 34px; background: var(--k-panel-2); box-shadow: 0 0 0 1px var(--item-hair); }
:root[data-theme="light"] .kit .crea-card { background: #fff; box-shadow: 0 0 0 1px rgb(0 12 31 / .05), 0 2px 6px rgb(0 12 31 / .06), 0 28px 60px -22px rgb(0 12 31 / .28); }
.kit .crea-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 0 2px 12px; overflow-y: auto; scrollbar-width: none; }
/* centred while it fits, from the top when it does not (a centred column that overflows loses its top) */
.kit .crea-mid::before, .kit .crea-mid::after { content: ""; flex: 1 1 0; }
.kit .crea-mid > * { flex-shrink: 0; }
.kit .crea-mid.is-top::before { flex: 0 0 0; }
.kit .crea-mid.is-top { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 28px; }
/* one turn of the chat */
.kit .crea-me { align-self: flex-end; max-width: 82%; margin: 0; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--k-fill); font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--item-soft); }
/* two lines and an ellipsis, clamped on an inner span: clamped on the bubble itself, its padding showed a sliver of the third line (1 Nov) */
.kit .crea-me span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kit .crea-solve { display: grid; gap: 10px; justify-items: start; }
.kit .crea-who-says { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--k-sans, Inter, sans-serif); letter-spacing: .02em; color: var(--item-quiet); }
.kit .crea-who-says i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #a77bff); color: var(--k-white); }
.kit .crea-say { margin: 0; font-family: var(--k-serif); font-size: 21px; line-height: 1.38; letter-spacing: -.008em; color: var(--item-ink); text-wrap: pretty; }
.kit .crea-say.is-sm { font-size: 19px; }
.kit .crea-picks { display: grid; gap: 6px; margin-top: 2px; }
.kit .crea-picks button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px 0 18px; border: 0; border-radius: 16px;
  background: var(--k-fill); font: 500 15px var(--k-sans, Inter, sans-serif); text-align: left; color: var(--item-ink); cursor: pointer; transition: background .15s; }
.kit .crea-picks button .k-icon { opacity: 0; transform: translateX(-4px); transition: all .15s; color: var(--item-quiet); }
.kit .crea-picks button:hover { background: color-mix(in srgb, var(--k-ink) 10%, transparent); }
.kit .crea-picks button:hover .k-icon { opacity: 1; transform: none; }
.kit .crea-ask { flex: none; }
.kit .crea-ask .cb-ask-in { background: var(--k-panel); }
:root[data-theme="light"] .kit .crea-ask .cb-ask-in { background: var(--k-panel-2); }
.kit .crea-ask textarea { resize: none; }
.kit .crea-card .crea-mats { margin: 0 0 10px; }
.kit .crea-wait { display: inline-flex; gap: 5px; padding: 6px 0; }
.kit .crea-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--item-quiet); animation: crea-dot 1.2s ease-in-out infinite; }
.kit .crea-wait i:nth-child(2) { animation-delay: .15s; } .kit .crea-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes crea-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.kit .crea-in { animation: crea-in .5s cubic-bezier(.22, .61, .36, 1) both; }
.kit .crea-in:nth-child(2) { animation-delay: .07s; } .kit .crea-in:nth-child(3) { animation-delay: .14s; } .kit .crea-in:nth-child(4) { animation-delay: .21s; } .kit .crea-in:nth-child(5) { animation-delay: .28s; }
@keyframes crea-in { from { opacity: 0; transform: translateY(10px); } }
/* the resoconto: on the card itself, no box in the box */
.kit.crea-page { overflow-x: clip; } /* the face comes in from the right: on a phone that is not a side scroll */
.kit .crea-rc { display: grid; gap: 20px; }
.kit .crea-rc-top { display: flex; align-items: center; gap: 14px; }
.kit .crea-pic { position: relative; flex: none; display: block; width: 46px; height: 46px; }
.kit .crea-pic.is-big { width: 64px; height: 64px; }
.kit .crea-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.kit .crea-rc-top > span:not(.crea-pic) { display: grid; gap: 3px; min-width: 0; }
.kit .crea-rc-top small { font-size: 13px; color: var(--item-quiet); }
.kit .crea-rc-top b { font-family: var(--k-serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; color: var(--item-ink); }
.kit .crea-rc-line { display: grid; gap: 5px; }
.kit .crea-rc-line small, .kit .crea-lbl { font-size: 12.5px; font-weight: 600; color: var(--item-quiet); }
.kit .crea-lbl { margin-bottom: -6px; }
.kit .crea-rc-line p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--item-ink); }
.kit .crea-qs { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.kit .crea-qs li { display: flex; gap: 14px; align-items: baseline; font-family: var(--k-serif); font-size: 21px; line-height: 1.3; color: var(--item-ink); }
.kit .crea-qs li i { flex: none; width: 14px; font: 600 12px var(--k-sans, Inter, sans-serif); font-style: normal; color: var(--item-quiet); }
.kit .crea-text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--item-ink); }
/* Persone and Altro: sections with a name, rows with room */
.kit .crea-sec { margin-top: 26px; }
.kit .crea-mid > .crea-sec:first-child, .kit .crea-mid > .crea-who + .crea-sec { margin-top: 0; }
.kit .crea-mid > .crea-who + .crea-sec { margin-top: 20px; }
.kit .crea-sec h4 { margin: 0 0 4px; font: 600 12px var(--k-sans, Inter, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--item-quiet); }
.kit .crea-who { display: flex; align-items: center; gap: 18px; }
.kit .crea-who > span:not(.crea-faces):not(.crea-pic) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kit .crea-who b { font-family: var(--k-serif); font-size: 24px; font-weight: 400; letter-spacing: -.015em; color: var(--item-ink); }
.kit .crea-who small { font-size: 14px; color: var(--item-quiet); }
.kit .crea-sec .ss-setting { padding: 12px 0; gap: 24px; }
.kit .crea-sec .ss-setting + .ss-setting { border-top: 1px solid var(--item-hair); }
.kit .crea-sec .ss-setting-main b { font-size: 16.5px; }
.kit .crea-sec .ss-setting-main small { font-size: 13.5px; }
.kit .crea-sec .ss-ed-range { min-width: 240px; }
.kit .crea-sec .ss-ed-seg button { height: 36px; padding: 0 14px; font-size: 14px; }
/* room for the ring of the face chosen: the card's middle scrolls, and clips what passes its edge */
.kit .crea-who.is-many { flex-wrap: wrap; }
.kit .crea-who.is-many .crea-faces { flex-basis: 100%; }
.kit .crea-faces { display: flex; flex-wrap: wrap; gap: 10px; flex: none; padding: 6px; }
.kit .crea-faces button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.kit .crea-faces button img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .5; transition: opacity .15s; }
.kit .crea-faces button:hover img { opacity: .85; }
.kit .crea-faces button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--k-panel-2), 0 0 0 4px var(--item-blue, #0a84ff); }
:root[data-theme="light"] .kit .crea-faces button[aria-pressed="true"] img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--item-blue, #0071e3); }
/* a choice that shapes the whole thing: tiles, not a switch */
.kit .crea-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 12px 0 4px; }
.kit .crea-tiles button { display: grid; gap: 3px; justify-items: start; align-content: start; padding: 14px 14px 13px; border: 0; border-radius: 18px; background: var(--k-fill); text-align: left; font: inherit; color: var(--item-soft); cursor: pointer; }
.kit .crea-tiles button b { font-size: 15.5px; font-weight: 600; color: var(--item-ink); }
.kit .crea-tiles button small { font-size: 12.5px; line-height: 1.35; color: var(--item-quiet); }
.kit .crea-tiles button[aria-pressed="true"] { background: var(--k-panel); box-shadow: inset 0 0 0 1.5px var(--item-ink); }
:root[data-theme="light"] .kit .crea-tiles button[aria-pressed="true"] { background: #fff; }
.kit .crea-own { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.kit .crea-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--k-fill); font: 500 14px var(--k-sans, Inter, sans-serif); color: var(--item-ink); cursor: pointer; white-space: nowrap; }
/* the person's own words about their part */
.kit .crea-role { display: grid; gap: 8px; padding: 12px 0 0; }
.kit .crea-role b { font-size: 16.5px; font-weight: 500; color: var(--item-ink); }
.kit .crea-role textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--k-fill); resize: none;
  font: 15px/1.5 var(--k-sans, Inter, sans-serif); color: var(--item-ink); outline: none; transition: background .15s; }
.kit .crea-role textarea:focus { background: color-mix(in srgb, var(--k-ink) 10%, transparent); }
.kit .crea-role textarea::placeholder { color: var(--item-quiet); }
.kit .crea-note { margin: 10px 0 0; font-size: 13.5px; color: var(--item-quiet); }
/* deleting is said in red, and asks first (create.js createDiscard) */
.kit .crea-btn.is-bad { background: rgb(255 69 58 / .14); color: #ff6961; }
.kit .crea-btn.is-bad:hover { background: rgb(255 69 58 / .22); }
:root[data-theme="light"] .kit .crea-btn.is-bad { background: rgb(215 0 21 / .08); color: #d70015; }
/* the face's button when there is something to make: one soft call */
.kit .crea-door .k-item-join:disabled { opacity: .4; cursor: default; }
/* a role said in a few words, and never wider than the face */
.kit .crea-door .k-item-live { max-width: calc(100% - 36px); }
.kit .crea-door .k-item-live b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kit .crea-door .k-item-join.is-ready { animation: crea-call 1.6s ease-out .4s 2; }
@keyframes crea-call { 0% { box-shadow: 0 0 0 0 rgb(10 132 255 / .55); } 100% { box-shadow: 0 0 0 16px rgb(10 132 255 / 0); } }
@media (max-width: 960px) {
  .kit .crea-left { height: auto; min-height: 0; max-width: none; }
  .kit .crea-card { min-height: 420px; }
  .kit.crea-page .k-item-door { height: auto; }
}
@media (max-width: 640px) {
  .kit .crea-card { padding: 22px 18px 14px; border-radius: 26px; }
  .kit .crea-sec .ss-setting { flex-direction: column; align-items: stretch; gap: 10px; }
  .kit .crea-sec .ss-ed-range { min-width: 0; }
  .kit .crea-who { flex-wrap: wrap; }
  .kit .crea-who .crea-faces { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kit .crea-in, .kit .crea-door .k-item-join.is-ready, .kit .crea-wait i { animation: none; } }
.crea-mats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.crea-mat { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--k-fill, var(--v-fill)); font-size: 13.5px; color: var(--item-soft, var(--v-ink-2)); }
.crea-mat i { display: grid; color: var(--item-quiet, var(--v-ink-3)); }
.crea-mat b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--item-ink, var(--v-ink)); }
.crea-mat button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.crea-mat button:hover { background: var(--k-fill-2); }
.crea-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }

/* ---------- the resoconto folded into the card's corner while the conversation goes on ---------- */
.kit .crea-card { position: relative; }
.kit .crea-card.has-pill { padding-top: 84px; }
.kit .crea-pill { position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 36px); height: 48px; padding: 0 14px 0 12px;
  border: 0; border-radius: 16px; background: var(--k-panel); box-shadow: 0 0 0 1px var(--item-hair), 0 12px 28px -16px rgb(0 0 0 / .55); font: inherit; color: var(--item-ink); text-align: left; cursor: pointer;
  transform-origin: top right; transition: transform .2s, box-shadow .2s; }
.kit .crea-pill.is-new { animation: crea-jump .62s cubic-bezier(.22, .61, .36, 1) both; }
:root[data-theme="light"] .kit .crea-pill { background: #fff; box-shadow: 0 0 0 1px rgb(0 12 31 / .06), 0 12px 28px -14px rgb(0 12 31 / .3); }
.kit .crea-pill:hover { transform: translateY(-1px); }
.kit .crea-pill .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgb(48 209 88 / .18); }
.kit .crea-pill > span { display: grid; min-width: 0; }
.kit .crea-pill small { font-size: 11.5px; font-weight: 600; color: var(--item-quiet); }
.kit .crea-pill b { overflow: hidden; max-width: 260px; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.kit .crea-pill > .k-icon { flex: none; color: var(--item-quiet); }
@keyframes crea-jump { 0% { opacity: 0; transform: translateY(22px) scale(.85); } 55% { opacity: 1; transform: translateY(-7px) scale(1.02); } 78% { transform: translateY(2px); } 100% { transform: none; } }
/* the resoconto opening from that corner, and its own button to fold it */
.kit .crea-rc { position: relative; }
.kit .crea-rc.is-opening { transform-origin: top center; animation: crea-jump .62s cubic-bezier(.22, .61, .36, 1) both; }
.kit .crea-rc .crea-rc-top { padding-right: 48px; }
.kit .crea-fold { position: absolute; top: 0; right: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: var(--k-fill); color: var(--item-soft); cursor: pointer; transform: rotate(180deg); transition: background .15s; }
.kit .crea-fold:hover { background: color-mix(in srgb, var(--k-ink) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .kit .crea-pill.is-new, .kit .crea-rc.is-opening { animation: none; } }
/* drawn again for nothing new (create.js creaPage `is-calm`): nothing plays its entrance again */
.kit .k-item.is-calm .crea-in, .kit .k-item.is-calm .crea-pill.is-new, .kit .k-item.is-calm .crea-rc.is-opening, .kit .k-item.is-calm .crea-door .k-item-join.is-ready { animation: none; }
/* a turn longer than the card: it scrolls, its edges fading instead of cut */
.kit .crea-mid.is-over { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 22px, #000 calc(100% - 22px), transparent); padding-top: 18px; padding-bottom: 22px; }

/* ---------- this app ---------- */
/* «Crea» while it writes: the spinner in the button's white */
.kit .crea-door .k-item-join .crea-spin { flex: none; }
.kit .crea-door .k-item-join:has(.crea-spin) { opacity: 1; }
/* a phone: the face above, as a step's page, but short, so the card and its field follow it on the first screen */
@media (max-width: 640px) {
  .kit.crea-page .k-item { width: calc(100% - 32px); padding-top: 16px; }
  .kit.crea-page .k-item-hero { gap: 22px; margin-top: 16px; }
  .kit.crea-page .k-item-door { width: 100%; aspect-ratio: 16 / 10; }
  .kit .crea-title { font-size: 28px; }
  .kit .crea-left > .ss-ed-tabs { margin-top: 16px; max-width: 100%; }
  .kit .crea-left > .ss-ed-tabs button { padding: 0 15px; }
  .kit .crea-card { min-height: 340px; }
  .kit .crea-say { font-size: 19px; }
  .kit .crea-qs li { font-size: 19px; }
  .kit .crea-pill b { max-width: 180px; }
}
/* from Create's box to this page (create.js morphTo): the copies that fly and fade, over everything, untouchable */
.crea-morph { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.crea-morph > * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .crea-morph { display: none; } }
/* SOLVE's words in the creation chat in Inter, not the serif (Ale, 5 Nov: «usa un font tipo inter») */
/* the same font and size as the person's words above (Ale, 12 Nov: one font in the chat) */
.kit .crea-say { font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -.011em; font-weight: 400; }
.kit .crea-say.is-sm { font-size: 15px; }

/* ---------- a whole course's choices on its outline (10 Nov): the entry test's switch, «Chi trovi» ---------- */
/* the course's chat is not in the kit's scope: the switch and the faces as Create's single page draws them (.kit) */
.outline .ss-switch { flex: none; margin-left: 12px; padding: 4px; border: 0; background: none; cursor: pointer; }
.outline .k-item-switch { position: relative; display: block; width: 38px; height: 22px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 13%, transparent); transition: background-color .25s; }
.outline .k-item-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 2px 6px rgb(0 0 0 / .1); transition: transform .3s ease; }
.outline .ss-switch[aria-checked="true"] .k-item-switch { background: #0a84ff; }
.outline .ss-switch[aria-checked="true"] .k-item-switch::after { transform: translateX(16px); }
.outline .crow .c-r { display: inline-flex; align-items: center; }
.outline .crow.is-off .c-node, .outline .crow.is-off .c-t b { opacity: .45; }
/* the steps the last change touched, lit as the course page lights the next step (.crow.is-next); the change said under
   SOLVE's words with the chat's own list (.solve ol), the outline drawn under it; where it was before, one quiet line (12 Nov) */
.outline .crow.is-new { width: calc(100% + 28px); margin: 4px -14px; padding: 18px 14px; border-radius: 22px; background: var(--blue-f); }
.wsf .solve { scroll-margin-top: 28px; }
.outline .crow.is-new::before { left: 37px; }
.solve .ol-changes li { grid-template-columns: 28px 1fr; font-size: 14.5px; }
.solve .ol-changes li b { font-weight: 600; }
.solve .ol-was { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
/* a course's ready answers: the roleplay page's (.kit .crea-picks) with the app's own tokens */
.wsf .crea-picks, .cz-which .crea-picks { display: grid; gap: 6px; width: 100%; margin-top: 4px; }
.wsf .crea-picks button, .cz-which .crea-picks button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px 0 18px; border: 0; border-radius: 16px;
  background: var(--fill); font: 500 15px var(--sans); text-align: left; color: var(--ink); cursor: pointer; transition: background .15s; }
.wsf .crea-picks button > svg, .cz-which .crea-picks button > svg { opacity: 0; transform: translateX(-4px); transition: all .15s; color: var(--ink-3); }
@media (hover: hover) { .wsf .crea-picks button:hover, .cz-which .crea-picks button:hover { background: var(--fill-2); } .wsf .crea-picks button:hover > svg, .cz-which .crea-picks button:hover > svg { opacity: 1; transform: none; } }
.ol-people .alist { display: grid; }
.ol-who + .ol-who { border-top: 1px solid var(--line); }
.ol-row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ol-row::before { display: none; }
.ol-row .c-hit { display: grid; place-items: center; }
.ol-pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ol-row .c-t small { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ol-row .c-t b { display: block; }
.ol-row .c-t i { display: block; }
.ol-row .c-r em { font-style: normal; font-size: 13.5px; color: var(--blue, #0a84ff); }
.ol-faces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px 64px; }
.ol-faces button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.ol-faces button img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .55; transition: opacity .15s; }
.ol-faces button:hover img { opacity: .9; }
.ol-faces button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px #0a84ff; }
.ol-faces .ol-auto { display: grid; place-items: center; background: var(--fill, rgba(127,127,127,.12)); color: var(--ink-3); }
.ol-faces .ol-auto[aria-pressed="true"] { color: #fff; background: #0a84ff; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px #0a84ff; }
@media (max-width: 640px) { .ol-faces { padding-left: 0; } }

/* ---------- after Luca's test (11 Nov) ---------- */
/* the words that do not say what to make: the question and the four kinds, as Explore's chips (.xcats) */
.cz-which { width: min(640px, 100%); margin: 18px auto 0; text-align: center; }
.cz-which p { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.cz-which .crea-picks span { display: inline-flex; align-items: center; gap: 10px; }
/* the kind on a single content's page is a pill that opens the kinds (the course page's .kpill-w and .kmenu) */
.kit .crea-head .kpill-w { justify-self: start; }
.kit .crea-kind { border: 0; font: inherit; cursor: pointer; }
.kit .crea-kind > svg:last-child { margin-left: -2px; opacity: .7; }
/* the way back is an arrow with its name in the tooltip: «‹ Crea» sat next to «Crea →» */
.kit .k-item-back.is-icon { padding: 7px 9px; }
.wsf .pill-back[title] { padding-inline: 10px; }
/* the kinds' menu inside the kit's page: the app's own .xmenu rows (the kit resets buttons) */
.kit .crea-head .kmenu { text-align: left; }
.kit .crea-head .kmenu button { display: flex; width: 100%; justify-content: flex-start; gap: 10px; border: 0; background: none; font: inherit; font-size: 14.5px; cursor: pointer; }
.kit .crea-head .kmenu button > svg:last-child:not(:first-child) { margin-left: auto; }
@media (hover: hover) { .kit .crea-head .kmenu button:hover { background: var(--fill); } }
/* a row's own icon is its first: the check that marks the chosen kind goes to the right, never the icon of the others */
.kmenu button > svg:first-child { margin-left: 0; }
/* the plan's line on the picture stays inside it: it wraps, centred, within the card's width (11 Nov, 390 px) */
.kit .crea-door .k-item-presence.is-only { width: max-content; max-width: calc(100% - 32px); white-space: normal; text-align: center; border-radius: 18px; }
.kit .crea-door .k-item-presence.is-only b { display: block; line-height: 1.35; }

/* ---------- after Sara's test (11 Nov) ---------- */
/* a face's name under it, always (not only on hover) */
.crea-faces.has-names { gap: 6px 4px; }
.crea-faces.has-names button { display: grid; justify-items: center; gap: 4px; width: 70px; height: auto; padding: 2px 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.crea-faces.has-names button img { width: 38px; height: 38px; }
.crea-faces.has-names button small { max-width: 100%; font-size: 10.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; color: var(--k-ink-3, var(--ink-3)); }
.crea-faces.has-names button[aria-pressed="true"] small { font-weight: 600; color: var(--k-ink, var(--ink)); }
.ol-faces.has-names button { width: 70px; height: auto; border-radius: 12px; }
.ol-faces.has-names .ol-auto { background: none; color: var(--ink-3); box-shadow: none; }
.ol-faces .ol-auto-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fill, rgba(127,127,127,.12)); }
.ol-faces .ol-auto[aria-pressed="true"] { background: none; box-shadow: none; color: var(--ink); }
.ol-faces .ol-auto[aria-pressed="true"] .ol-auto-ic { color: #fff; background: #0a84ff; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px #0a84ff; }
/* the kinds, each with one line on what it is (the menu under the pill, the question on Create) */
.kmenu.has-lines { min-width: 280px; max-width: min(340px, calc(100vw - 32px)); }
.kmenu.has-lines button { height: auto; min-height: 42px; padding: 9px 14px; align-items: flex-start; }
.kmenu.has-lines button > span { display: grid; gap: 2px; text-align: left; }
.kmenu.has-lines button b { font-weight: inherit; color: var(--ink); }
.kmenu.has-lines button small { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); white-space: normal; }
.kmenu.has-lines button > svg:first-child { margin-top: 2px; }
.cz-which .crea-picks button { min-height: 56px; padding-block: 8px; }
.cz-which .crea-picks .cz-kind { display: grid; gap: 1px; text-align: left; }
.cz-which .cz-kind b { font-weight: 550; }
.cz-which .cz-kind small { font-size: 12.5px; font-weight: 450; color: var(--ink-3); }

/* ---------- after Marco's test (11 Nov) ---------- */
/* a switch that says what it is next to it: «Inclusa» / «Tolta», where the line above points */
.outline .ss-switch.has-label { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 99px; background: var(--fill); font: 600 12.5px var(--sans); color: var(--ink-2); }
.outline .ss-switch.has-label[aria-checked="false"] { color: var(--ink-3); }
/* the ways an exam asks: two to a row, each line readable whole */
.kit .crea-tiles.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit .crea-tiles.is-wide small { white-space: normal; line-height: 1.35; }
/* «Crea» off because the plan has none left: the reason under it, with the way to the plans */
.kit .k-item-door-note.is-out { color: var(--k-ink-2, var(--ink-2)); }
.kit .k-item-door-note.is-out a { color: var(--item-blue, #0071e3); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.round:disabled { opacity: .45; cursor: default; }
/* the course chat's composer, pinned under the conversation; «↓» above it while the newest words are further down */
.wsf .chat { padding-bottom: 8px; }
.wsf-dock { position: sticky; }
.wsf-dock .wsf-down { position: absolute; left: 50%; top: -34px; translate: -50% 0; z-index: 2; background: var(--card); box-shadow: var(--shadow); }
.wsf-dock .wsf-down[hidden] { display: none; }

/* ---------- the face pickers, bigger, in one row that scrolls (Ale, 11 Nov) ---------- */
.faces-rail { position: relative; display: grid; gap: 6px; min-width: 0; }
.faces-rail .rail-nav { justify-self: end; }
.crea-faces.is-rail { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 2px 4px; }
.crea-faces.is-rail::-webkit-scrollbar { display: none; }
.crea-faces.is-rail button { flex: none; width: 88px; scroll-snap-align: start; }
.crea-faces.is-rail button img { width: 58px; height: 58px; }
.crea-faces.is-rail button small { font-size: 12.5px; }
.ol-who .faces-rail { padding: 0 0 16px 64px; }
@media (max-width: 640px) { .ol-who .faces-rail { padding-left: 0; } }
.kit .crea-who .faces-rail { flex-basis: 100%; }
@media (hover: none) { .faces-rail .rail-nav { display: none; } }
/* the course chat is outside the kit: its faces round, faded until chosen, as the kit's */
.crea-faces.is-rail button { padding: 4px 0; border: 0; background: none; cursor: pointer; }
.crea-faces.is-rail button img { border-radius: 50%; object-fit: cover; opacity: .6; transition: opacity .15s; }
@media (hover: hover) { .crea-faces.is-rail button:hover img { opacity: .9; } }
.crea-faces.is-rail button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px #0a84ff; }

/* ---------- the outline as an index (Ale, 12 Nov, proposal B): one line for the course, one row per step ---------- */
/* as wide as the chat (rows of titles only would make it as narrow as its longest title), its own spacing, not the grid's gap */
.wsf .outline.is-index { justify-self: stretch; width: 100%; min-width: 0; gap: 0; }
.outline.is-index .oli-sum { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-3); }
.outline.is-index .oli-sum b { font-weight: 600; color: var(--ink-2); }
.outline.is-index h3 { margin-top: 12px; }
.outline.is-index .oli-list { margin-top: 26px; min-width: 0; }
.outline.is-index .oli-grp + .oli-grp { margin-top: 22px; }
.outline.is-index .oli-mod { margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.outline.is-index .oli-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink); }
.outline.is-index button.oli-row { cursor: pointer; }
.outline.is-index .oli-ic { display: grid; place-items: center; flex: none; width: 18px; color: var(--lesson); }
.outline.is-index .k-case .oli-ic, .outline.is-index .oli-ic.k-case { color: var(--case); }
.outline.is-index .k-exam .oli-ic, .outline.is-index .oli-ic.k-exam { color: var(--exam); }
.outline.is-index .k-course .oli-ic, .outline.is-index .oli-ic.k-course { color: var(--ink-3); }
.outline.is-index .oli-t { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: 15.5px; font-weight: 450; letter-spacing: -.01em; }
/* a long title goes to a second line (a phone), never cut */
.outline.is-index .oli-tt { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.outline.is-index .oli-new { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--blue-f); font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--blue); }
/* on a phone «Aggiornato» is a dot, so the title keeps its room */
@media (max-width: 520px) { .outline.is-index .oli-new { width: 8px; height: 8px; padding: 0; font-size: 0; background: var(--blue); } }
.outline.is-index .oli-min { flex: none; font-style: normal; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.outline.is-index .oli-chev { display: grid; place-items: center; flex: none; color: var(--faint); transition: transform .2s var(--out); }
.outline.is-index .is-open .oli-chev { transform: rotate(180deg); }
.outline.is-index .oli-row .ss-switch { margin-left: 0; }
.outline.is-index .oli-row.is-off .oli-t { color: var(--ink-3); }
.outline.is-index .oli-step.is-open .oli-row { border-bottom-color: transparent; }
.outline.is-index .oli-brief { display: grid; justify-items: start; gap: 10px; padding: 0 0 16px 32px; border-bottom: 1px solid var(--line); animation: rise .3s var(--out); }
.outline.is-index .oli-brief p { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.outline.is-index .oli-brief .lnk { padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--blue); text-decoration: none; }
@media (hover: hover) { .outline.is-index button.oli-row:hover .oli-t { color: var(--blue); } .outline.is-index button.oli-row:hover .oli-chev { color: var(--ink-3); } }
.outline.is-index .oli-people { margin-top: 18px; }
/* the pickers it opens, in the index's own type: no serif, no italics */
.outline.is-index .ol-people .crow .c-t b { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.outline.is-index .ol-people .crow .c-t i { font-style: normal; font-family: var(--sans); font-size: 13.5px; }
.outline.is-index .oli-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.outline.is-index .oli-faces { display: flex; flex: none; }
.outline.is-index .oli-faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--card); }
.outline.is-index .oli-faces img + img { margin-left: -8px; }
.outline.is-index .oli-line { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.outline.is-index .oli-line b { font-weight: 500; color: var(--ink); }
.outline.is-index .oli-who .lnk { padding: 0; border: 0; background: none; cursor: pointer; flex: none; font-size: 14px; font-weight: 500; color: var(--blue); text-decoration: none; }
.outline.is-index .oli-people .ol-people { margin-top: 10px; }
.outline.is-index .outline-foot { margin-top: 22px; }

/* ---------- «Annulla» and «Salva» on a content being changed (12 Nov): where «Riscrivi» was, once something is touched ---------- */
.kit .crea-door .k-item-meet:has(.is-save) { animation: crea-edit-in .35s var(--k-spring, ease) both; }
@keyframes crea-edit-in { from { opacity: 0; translate: -50% 10px; } to { opacity: 1; translate: -50% 0; } }
.kit .crea-door .k-item-join.is-quiet { background: rgb(17 18 20 / .34); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.kit .crea-door .k-item-join.is-quiet:hover { background: rgb(17 18 20 / .46); }
.kit .crea-door .k-item-join { height: 48px; }
@media (prefers-reduced-motion: reduce) { .kit .crea-door .k-item-meet:has(.is-save) { animation: none; } }

/* what SOLVE is doing while it answers, in place of the three dots: one quiet line with a light passing over it, a new
   phase rising in (Ale, 15 Nov 2026); and the square that stops it, where the arrow was */
.crea-status { margin: 0; padding: 6px 0; font-size: 14.5px; line-height: 1.4; }
.crea-status.dots, .kit .crea-status.crea-wait { display: block; }
.crea-status span { --dim: var(--k-ink-3, var(--ink-3)); --lit: var(--k-ink, var(--ink));
  background: linear-gradient(90deg, var(--dim) 0%, var(--dim) 35%, var(--lit) 50%, var(--dim) 65%, var(--dim) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: crea-shine 2.4s linear infinite; }
.crea-status.is-new span { animation: crea-shine 2.4s linear infinite, crea-rise .35s ease-out; }
@keyframes crea-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes crea-rise { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.crea-status span { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .crea-status span { animation: none; color: var(--dim); background: none; } }
.send.is-stop, .kit .cb-send.is-stop { cursor: pointer; }
.send[hidden] { display: none; }
