/* 18 — شغل ساعة يخلص في دقيقة
   Examples of small programs the course trains you to build: they run on your own computer, offline.
   Hero: a desk photo; the file cleaner plays ON the laptop screen (projected with matrix3d in app.js).
   Then five programs, each a desktop window that plays its before → after once when it arrives and keeps the result.
   Warm paper white + one indigo; each program keeps one colour for its icon and result. */
:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --win: #ffffff;
  --chrome: #f5f6fa;
  --line: #e3e5ec;
  --line-2: #cfd3df;
  --ink: #15192b;
  --ink-2: #434a5f;
  --ink-3: #5d6479;
  --acc: #3443c4;
  --ok: #17613c;
  --pdf: #d1453c;
  --font: 'Zain', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --shadow-win: 0 1px 1px rgba(21, 25, 43, .04), 0 14px 30px -14px rgba(21, 25, 43, .24), 0 44px 80px -40px rgba(21, 25, 43, .34);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.num-t { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; }
.nw { white-space: nowrap; }

/* entrance pieces hidden before the first paint, handed to GSAP (app.js) */
.js-anim [data-a], .js-anim #h1, .js-anim .app { visibility: hidden; }

/* ── hero ── */
.hero { max-width: 1240px; margin: 0 auto; padding: 30px 16px 8px; display: grid; gap: 22px; }
.hero-txt { display: grid; gap: 10px; justify-items: start; }
.hero h1 { font-size: clamp(28px, 9vw, 64px); line-height: 1.32; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; margin-top: 4px; }
.hero h1 .ln { display: block; }
/* the five programs at a glance: one row of chips that jump to their cards (scrolls sideways on narrow phones) */
.jump { justify-self: stretch; min-width: 0; margin-top: 6px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 14px; border-radius: 99px; background: #fff;
  border: 1px solid #e2ddd2; color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 14px -12px rgba(60, 44, 20, .5); transition: border-color .2s, transform .2s; }
.jump a:hover { border-color: color-mix(in srgb, var(--t) 45%, #fff); }
.jump a:active { transform: scale(.97); }
.cic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--t); color: #fff; flex: none; }
.cic svg { width: 18px; height: 18px; }
.app { scroll-margin-top: 16px; }

.hero-pic { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: #e9e2d6;
  box-shadow: 0 30px 60px -36px rgba(60, 44, 20, .45); isolation: isolate; }
.hero-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 90% 50%; }
/* the laptop screen: a 440×282 desktop, projected onto the photo's screen corners by app.js */
.screen { position: absolute; left: 0; top: 0; width: 440px; height: 282px; transform-origin: 0 0; background: #eef0f5; overflow: hidden;
  display: grid; grid-template-rows: 36px 1fr 30px; font-size: 17px; visibility: hidden; }
.screen.on { visibility: visible; }
.screen .s-bar { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--ink-2); }
.screen .s-bar i { width: 22px; height: 22px; border-radius: 6px; background: #0f7c6c; }
.screen .s-body { display: grid; grid-template-columns: 1fr 26px 1.35fr; align-items: center; gap: 6px; padding: 10px 14px; }
.screen .s-in { display: grid; gap: 8px; justify-items: center; color: var(--ink-2); font-weight: 700; }
/* the messy Downloads folder: a heap of mixed files */
.pile { position: relative; width: 104px; height: 84px; }
.pile i { position: absolute; width: 34px; height: 42px; border-radius: 4px; background: var(--pdf); box-shadow: 0 6px 12px -6px rgba(21, 25, 43, .45); }
.pile i::after { content: ''; position: absolute; inset: 7px 6px auto; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .7); box-shadow: 0 6px 0 rgba(255, 255, 255, .55), 0 12px 0 rgba(255, 255, 255, .4); }
.pile i:nth-child(1) { right: 6px; top: 30px; transform: rotate(-14deg); background: #2b5fb8; }
.pile i:nth-child(2) { right: 34px; top: 36px; transform: rotate(9deg); background: #1e7a46; }
.pile i:nth-child(3) { right: 62px; top: 26px; transform: rotate(-6deg); }
.pile i:nth-child(4) { right: 22px; top: 4px; transform: rotate(12deg); background: #d98a1c; }
.pile i:nth-child(5) { right: 50px; top: 0; transform: rotate(-10deg); background: #2b5fb8; }
.screen .s-arrow { width: 30px; height: 30px; color: #0f7c6c; }
.screen .s-out { display: grid; gap: 7px; }
.screen .s-out li { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); font-weight: 800; color: var(--ink); }
.screen .s-out li::before { content: ''; width: 22px; height: 17px; border-radius: 3px 5px 3px 3px; background: #e0a526; flex: none; }
.screen .s-out li span { flex: 1; }
.screen .s-out li b { color: #0f7c6c; font-variant-numeric: tabular-nums; }
.screen .s-st { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #fff; border-top: 1px solid var(--line); color: var(--ok); font-weight: 700; font-size: 15px; }

.toast { position: absolute; z-index: 2; inset-inline: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 36px -18px rgba(21, 25, 43, .45); }
.t-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--t); color: #fff; display: grid; place-items: center; flex: none; }
.t-ic svg { width: 22px; height: 22px; }
.t-tx { display: grid; line-height: 1.35; min-width: 0; flex: 1; }
.t-tx b { font-size: 17px; font-weight: 800; }
.t-tx span { font-size: 16px; color: var(--ink-2); }
.t-ok { width: 26px; height: 26px; color: #1e8a52; flex: none; }

@media (min-width: 700px) {
  .hero-pic { aspect-ratio: 3 / 2; }
  .hero-pic > img { object-position: 50% 50%; }
  .toast { inset-inline: auto 22px; bottom: 22px; width: 360px; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 44px; padding: 56px 24px 24px; }
  .hero h1 { font-size: clamp(40px, 3.4vw, 50px); }
  .hero h1 .ln { display: block; }
  }

/* ── the five programs ── */
.apps { max-width: 1240px; margin: 0 auto; padding: 36px 16px 24px; display: grid; gap: 22px; }
.app { display: grid; gap: 18px; padding: 22px 16px 18px; background: var(--card); border-radius: 26px; border: 1px solid #ebe7de;
  box-shadow: 0 1px 1px rgba(60, 44, 20, .03), 0 24px 44px -34px rgba(60, 44, 20, .35); }
.txt { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: center; padding-inline: 4px; }
.ic { grid-row: 1; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--t);
  box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--t) 80%, transparent); }
.ic svg { width: 24px; height: 24px; }
.txt h2 { grid-row: 1; font-size: 28px; line-height: 1.25; font-weight: 900; }
.txt p { grid-column: 1 / -1; font-size: 19px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; margin-top: 6px; }
.txt .made { margin-top: 10px; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px;
  background: color-mix(in srgb, var(--t) 8%, #fff); border: 1px solid color-mix(in srgb, var(--t) 22%, #fff); color: var(--ink); font-size: 16px; font-weight: 700; }
.txt .made::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--t); flex: none; }
.txt .made bdi { font-family: var(--font); font-weight: 800; }

@media (min-width: 900px) {
  .apps { gap: 28px; padding: 56px 24px 40px; }
  .app { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: 48px; padding: 40px 48px; }
  .app:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
  .app:nth-child(even) .txt { order: 2; }
  .txt h2 { font-size: 36px; }
  .txt p { font-size: 21px; }
  .ic { width: 52px; height: 52px; border-radius: 15px; }
  .ic svg { width: 28px; height: 28px; }
}

/* a desktop window: title bar with window buttons, local path, panes, offline status bar */
.win { background: var(--win); border-radius: 12px; box-shadow: var(--shadow-win); overflow: hidden; border: 1px solid rgba(21, 25, 43, .1); font-size: 15px; line-height: 1.4; }
.bar { height: 38px; display: flex; align-items: center; gap: 8px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.bar b { font-weight: 800; color: var(--ink-2); padding-inline-start: 14px; flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl { display: flex; align-self: stretch; direction: ltr; order: 2; }
.ctl i { position: relative; width: 38px; }
.ctl i::before { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: 1.5px solid var(--ink-3); }
.ctl i:nth-child(1)::before { height: 0; border-width: 0 0 1.5px; width: 10px; top: 8px; }
.ctl i:nth-child(2)::before { border-radius: 1px; }
.ctl i:nth-child(3)::before { border: 0; background: linear-gradient(45deg, transparent 46%, var(--ink-3) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--ink-3) 46% 54%, transparent 54%); }
.path { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.path svg { width: 16px; height: 16px; flex: none; color: #e0a526; }
.path span { overflow: hidden; text-overflow: ellipsis; }
.path .pc { font-style: normal; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); align-items: stretch; gap: 6px; min-height: 226px; padding: 12px 12px 12px; }
.to { width: 20px; height: 20px; color: var(--t); align-self: center; justify-self: center; }
.pane { position: relative; padding-top: 30px; display: grid; align-content: center; gap: 8px; min-width: 0; }
.lbl { position: absolute; top: 0; right: 0; padding: 1px 10px; border-radius: 99px; background: var(--chrome); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 800; line-height: 20px; }
.out .lbl { background: color-mix(in srgb, var(--t) 12%, #fff); border-color: color-mix(in srgb, var(--t) 35%, #fff); color: var(--t); }
.status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; height: 34px; border-top: 1px solid var(--line); background: var(--chrome); color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.off { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.off svg { width: 16px; height: 16px; flex: none; }
.off { flex: none; }
.status > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-out { color: var(--t); }

/* file-type badge */
.fic { flex: none; display: block; width: 12px; height: 15px; border-radius: 3px; position: relative; background: var(--pdf); }
.fic::after { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 5px; background: rgba(255, 255, 255, .55); border-bottom-right-radius: 3px; }
.fic.xl { background: #1e7a46; }
.one { display: flex; align-items: center; gap: 7px; font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 14px; }
.files { display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--chrome); border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; }
.files li span { overflow: hidden; text-overflow: ellipsis; }
em { font-style: normal; unicode-bidi: isolate; }
.files li em { margin-inline-start: -4px; flex: none; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.files li.more { justify-content: center; background: none; border-style: dashed; color: var(--ink-3); }
.out .files li:not(.more) { background: #fff; border-color: color-mix(in srgb, var(--t) 22%, #fff); }

.mono { font-family: var(--mono); font-size: max(12px, .9em); font-weight: 500; }
.fic.doc { background: #2b5fb8; }
.fic.mp4 { background: var(--t); }

/* 1 · pdf: each source file has its colour, and the merged pages keep it */
.sa { --s: #3443c4; } .sb { --s: #d98a1c; } .sc { --s: #0f7c6c; }
.files li.sa .fic, .files li.sb .fic, .files li.sc .fic { background: var(--s); }
.pages { display: flex; gap: 6px; }
.pages .pgx { flex: none; width: calc((100% - 18px) / 4); }
.pgx { position: relative; aspect-ratio: 1 / 1.32; padding: 7px 5px; display: grid; align-content: start; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-top: 4px solid var(--s); border-radius: 3px; box-shadow: 0 5px 10px -8px rgba(21, 25, 43, .45); }
.pgx::after { content: attr(data-n); position: absolute; inset: auto 0 3px 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.pgx i { height: 3px; border-radius: 2px; background: var(--line-2); }
.pgx i:nth-child(2) { width: 78%; } .pgx i:nth-child(3) { width: 56%; }
.pgx.gone::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top left, transparent 47%, var(--pdf) 47% 53%, transparent 53%); }
.pgx.gone { opacity: .5; }

/* 2 · cleaner: the duplicate is struck through, a renamed file sits under its folder */
.files li.dup { position: relative; opacity: .55; }
.files li.dup s { position: absolute; inset-inline: 8px; top: 50%; height: 2px; margin-top: -1px; background: var(--pdf); transform-origin: 100% 50%; }
.dirs { display: grid; gap: 6px; }
.dirs li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--t) 7%, #fff); border: 1px solid color-mix(in srgb, var(--t) 24%, #fff); font-weight: 800; font-size: 14px; white-space: nowrap; }
.dirs svg { width: 18px; height: 18px; flex: none; color: #e0a526; }
.dirs span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dirs b { font-size: 14px; color: var(--t); }
.dirs li.ren { margin-inline-start: 26px; padding-block: 5px; background: #fff; border-color: var(--line); font-weight: 700; font-size: 13px; gap: 6px; }
.dirs li.ren em { flex: none; margin-inline-start: -4px; color: var(--ink-3); font-weight: 600; }
.dirs li.ren .mono { color: var(--t); }
.dirs li.bin { background: #fdf2f0; border: 1px dashed #e8b3ab; color: #a8352a; }
.dirs li.bin b { color: #a8352a; }

/* 3 · grades: the raw sheet, then the report */
.sheet { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; line-height: 1.25; background: #fff; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 4px 2px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.sheet th { background: #eaf3ec; color: #1e5c39; font-weight: 800; }
.sheet th:first-child, .sheet td:first-child { width: 31%; text-align: start; padding-inline: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet th:last-child { width: 17%; white-space: nowrap; }
.more-t { justify-self: center; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.report { display: grid; gap: 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: grid; gap: 2px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--t) 6%, #fff); border: 1px solid color-mix(in srgb, var(--t) 20%, #fff); }
.tile > span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tile b { display: flex; align-items: baseline; gap: 5px; font-size: 26px; line-height: 1.1; font-weight: 900; color: var(--t); }
.tile small { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tile.warn { background: #fdf3f1; border-color: #f0c9c1; }
.tile.warn b { color: #b23a2c; }
.chart { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.chart .cap { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 70px; }
.bcol { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 3px; height: 100%; }
.bcol i { display: block; height: calc(var(--h) * 50px); border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--t) 45%, #fff); transform-origin: 50% 100%; }
.bcol em { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.bcol.hot i { background: #c2412f; }
.bcol.hot em { color: #b23a2c; }
.flag { font-size: 13px; font-weight: 800; color: #b23a2c; }

/* 4 · waiting periods */
.sub { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.absent, .assign { display: grid; gap: 6px; }
.absent li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 8px; background: var(--chrome); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.chips { display: flex; gap: 5px; }
.chips i, .per { font-style: normal; flex: none; padding: 1px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 800; line-height: 20px; white-space: nowrap; }
.chips i { background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.assign li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: #fff; border: 1px solid color-mix(in srgb, var(--t) 22%, #fff); font-size: 14px; font-weight: 800; white-space: nowrap; }
.per { background: color-mix(in srgb, var(--t) 12%, #fff); color: var(--t); }
.assign li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.assign li em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.slips { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 14px; font-weight: 800; color: var(--ink); }
.slips > svg { width: 18px; height: 18px; color: var(--t); flex: none; }
.slips .stack { position: relative; width: 34px; height: 24px; flex: none; }
.slips .stack i { position: absolute; top: 0; right: 0; width: 18px; height: 23px; border-radius: 2px; background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--t); box-shadow: 0 3px 6px -4px rgba(21, 25, 43, .4); }
.slips .stack i:nth-child(2) { right: 5px; transform: rotate(-6deg); }
.slips .stack i:nth-child(3) { right: 10px; transform: rotate(-12deg); }
.slips .stack i:nth-child(4) { right: 15px; transform: rotate(-18deg); }

/* 5 · honour video: photos and a names sheet in, a playing MP4 out */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.player { position: relative; display: grid; grid-template-rows: 1fr 24px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #1d1433; box-shadow: 0 10px 22px -14px rgba(29, 20, 51, .7); }
.slides { position: relative; overflow: hidden; }
.sl { position: absolute; inset: 0; display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 10px; padding: 8px 12px;
  background: radial-gradient(120% 90% at 70% 40%, #3b2766 0%, #1d1433 70%); }
.sl:not(:first-child) { opacity: 0; visibility: hidden; }
.sl .ph { display: block; overflow: hidden; border-radius: 999px 999px 10px 10px; border: 2px solid #d9b25a; aspect-ratio: 1 / 1.1; }
.sl img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 35%; }
.sl .cap { display: grid; gap: 2px; justify-items: center; text-align: center; }
.sl .cap b { font-family: 'Aref Ruqaa', 'Zain', serif; font-weight: 700; font-size: 27px; line-height: 1.35; color: #f2d58e; white-space: nowrap; }
.sl .cap span { font-size: 12px; font-weight: 700; color: #ddd3ef; }
.ctrl { direction: ltr; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #140d26; color: #fff; }
.ctrl svg { width: 12px; height: 12px; flex: none; }
.ctrl .track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ctrl .track i { display: block; height: 100%; background: #f2d58e; transform-origin: 0 50%; transform: scaleX(.36); }
.ctrl .tm { font-family: var(--mono); font-size: 12px; color: #ddd3ef; }

/* footer */
.foot { max-width: 1240px; margin: 0 auto; padding: 18px 16px 96px; color: var(--ink-3); font-size: 15px; text-align: center; }

@media (min-width: 900px) {
  .cols { min-height: 220px; padding: 14px 16px; gap: 10px; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
  .files li, .dirs li, .one, .assign li, .absent li { font-size: 15px; }
  .dirs li.ren { font-size: 13px; }
}
/* phones: before above after, each at full window width, so names are never cut */
@media (max-width: 699px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
  .to { transform: rotate(-90deg); }
  .pane { align-content: start; }
  #a-pdf .out { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; }
  #a-pdf .pages { max-width: 210px; }
  #a-video .in { grid-template-columns: minmax(0, 1fr) max-content; align-items: center; column-gap: 8px; }
}
@media (max-width: 519px) {
  .path .pc { display: none; }
}
/* phones: the result is the main view; «before» folds behind a one-line toggle under it */
.peek { display: none; }
@media (max-width: 699px) {
  .jump { margin-inline: -16px; }
  .jump ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 8px;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .jump ul::-webkit-scrollbar { display: none; }
  .jump li { flex: none; }
  .cols > .to { display: none; }
  .cols > .out { order: 1; }
  .cols > .peek { order: 2; }
  .cols > .in { order: 3; display: none; padding: 10px; border-radius: 10px; background: var(--chrome); }
  .win.open .cols > .in { display: grid; }
  .cols > .in .lbl { display: none; }
  .peek { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px;
    border-radius: 10px; border: 1px dashed var(--line-2); background: #fff; color: var(--ink-2); font: 800 15px/1.3 var(--font); cursor: pointer; text-align: start; }
  .peek svg { width: 18px; height: 18px; flex: none; color: var(--t); transform: rotate(-90deg); transition: transform .25s; }
  .win.open .peek svg { transform: rotate(90deg); }
  .win.open .peek { border-style: solid; }
  /* a little rhythm: every second card sits on a light wash of its own colour */
  .app:nth-child(even) { background: color-mix(in srgb, var(--t) 5%, #fff); border-color: color-mix(in srgb, var(--t) 14%, #fff); }
  .apps { gap: 18px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 29px; }
    .txt h2 { font-size: 24px; }
  .toast { top: 12px; bottom: auto; }
  .path .pc { display: none; }
  #a-pdf .out { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  #a-video .in { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .ctl i { width: 30px; }
  .toast { padding: 10px 12px; }
  .t-tx b { font-size: 16px; }
  .t-ok { display: none; }
  .t-tx b, .t-tx span { white-space: nowrap; }
  .t-tx span { font-size: 14px; }
  .app { padding-inline: 10px; }
  .cols { padding-inline: 8px; }
  .files li, .dirs li, .assign li, .absent li { padding-inline: 6px; font-size: 13px; }
  .sheet th:first-child, .sheet td:first-child { padding-inline: 4px; }
  .sheet { font-size: 12px; }
  .sl .cap b { font-size: 23px; }
  .tile b { font-size: 22px; }
  .path { font-size: 13px; }
  .status { padding: 0 10px; font-size: 13px; }
}
/* 24 Nov 2026 clarity round: the line under the title says what these are, every card says it is an example of a
   program, and the program names wrap on phones instead of scrolling out of sight */
.hero .sub { font-size: 19px; line-height: 1.55; font-weight: 700; color: var(--ink-2); text-wrap: balance; margin-top: -2px; }
.txt .kind { grid-column: 1 / -1; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--t); }
.txt .kind::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--t); flex: none; }
.txt .ic, .txt h2 { grid-row: 2; }
@media (min-width: 1000px) { .hero .sub { font-size: 22px; } .txt .kind { font-size: 16px; } }
@media (max-width: 999px) {
  .jump { margin-inline: 0; }
  .jump ul { flex-wrap: wrap; overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
