/* Home only: how the shared drawing kit (site.css) is composed into the six
   screens the home page draws. Values come from X2-Home.dc.html. */

/* Main columns crop at the drawing's edge instead of squashing their parts. */
.frame-main > * { flex-shrink: 0; }
.frame-main.crop { overflow: hidden; }
.frame-main.crop > * { min-width: 424px; }
.frame-main.tight { gap: 14px; padding: 20px clamp(14px, 1.5vw, 20px); }
.frame-main.roomy { gap: 14px; padding: 20px clamp(14px, 1.8vw, 24px) 22px; }
.d-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.d-head > :last-child { font-size: 13px; color: var(--ink-3); }
.d-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
.d-label-row > :last-child { font-size: 12.5px; line-height: 16px; color: var(--ink-3); }
.d-meta { color: var(--ink-3); }
.d-strong { font-weight: 600; }

/* Ticket #7: the message, the assignment and the reply box. */
.d-msg { display: flex; gap: 12px; }
.d-msg > :last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-msg-text { font-size: 15px; line-height: 24px; }
.d-event { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.d-event::before { content: ""; flex: none; width: 6px; height: 6px; margin-inline: 14px; border-radius: 50%; background: var(--line-strong); }
.d-event b { color: var(--ink-2); font-weight: 550; }
.d-reply { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 150px; padding: 12px 12px 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-3); }
.d-person { display: flex; align-items: center; gap: 12px; }
.d-person > :last-child { display: flex; flex-direction: column; min-width: 0; }
.d-person b { font-size: 16px; line-height: 22px; font-weight: 600; }
.wallet-body.name { font-weight: 550; }
.wallet-body.tight { padding: 8px 14px 14px; }
.wallet-body.tight > :first-child { font-size: 15px; font-weight: 600; }
.d-split { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; }
.d-split > :first-child { font-weight: 600; }
.d-split > :last-child { color: var(--ink-2); }

/* Ticket list rows. */
.tk-title { display: flex; align-items: baseline; gap: 10px; }
.tk-title .id { flex: none; width: 28px; color: var(--ink-2); }
.is-pointed .tk-title .id { color: var(--ink); }
.tk-title > :last-child { min-width: 0; font-weight: 600; }
.tk-meta, .tk-due { padding-left: 38px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.tk-due { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink); }
.tk-due > :not(.state):not(.due) { color: var(--ink-2); }
.due { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.due svg { width: 13px; height: 13px; flex: none; }

/* A record card with its corner kind tab (repair R-10, device C02JN0T2PG9W). */
.d-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.d-card-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 20px 6px; }
.d-card .kind-head .id { padding: 5px 16px 0; }
.d-rows.k64 .d-row { flex-wrap: wrap; gap: 2px 12px; min-height: 40px; }
.d-rows.k64 .k { flex-basis: 64px; }
.d-row > svg.ok { color: var(--ok); }
.d-row > svg.warn { color: var(--warn); }
.d-checks.activity { padding: 2px 4px 0; }

/* History and flow-step rows: one line each, a word on the right. */
.d-list.rows > * { flex-direction: row; align-items: center; gap: 10px; }
.d-list.rows .end { margin-left: auto; padding-left: 8px; font-size: 13px; line-height: 18px; white-space: nowrap; }
.d-list.rows .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-list.rows .grow > :last-child:not(:first-child) { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.d-list.rows .grow > :first-child { font-weight: 600; }
.d-undo { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* The library kiosk: its own green band at every size, no side frame. */
.kiosk-band { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; background: var(--green); color: var(--green-ink); font-size: 13.5px; line-height: 19px; }
.kiosk-band .area { margin-left: auto; color: var(--green-ink-2); }
.kiosk { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.4vw, 28px); }
.kiosk .d-title { margin-top: 6px; }
.kiosk-tap { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.kiosk-tap svg { width: 16px; height: 16px; flex: none; }
.kiosk-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.kiosk-opts > span { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 16px; line-height: 22px; font-weight: 600; }
.kiosk-opts svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.kiosk-opts svg:last-child { width: 12px; height: 12px; margin-left: auto; }
.kiosk-own { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* Explorer copy: the guide link sits at its own width; Devices carries the
   walk-through for schools that own their students' devices. */
.xp-copy > .link { align-self: flex-start; margin-top: 6px; }
.xp-copy .callout { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.xp-copy .callout .label { margin-bottom: 4px; }
.d-list.rows .kind-chip { flex: none; min-width: 58px; justify-content: center; }
